From 19ecbace2b390c547b95ccf540d5fd2e158e39dd Mon Sep 17 00:00:00 2001 From: Bozo Jovicic Date: Tue, 8 Jul 2025 15:17:28 +0200 Subject: [PATCH 1/7] MWPW-169236 [Merch Cards] Support for Volume Discount Flex Promos --- libs/deps/mas/commerce.js | 6 +- libs/deps/mas/merch-card.js | 2 +- libs/features/mas/dist/mas.js | 112 +++++++++--------- libs/features/mas/src/checkout-mixin.js | 12 ++ libs/features/mas/src/inline-price.js | 3 + libs/features/mas/src/merch-card.js | 1 + libs/features/mas/test/merch-card.test.html | 24 +++- .../features/mas/test/merch-card.test.html.js | 49 +++++++- libs/features/mas/test/mocks/offers.json | 17 ++- 9 files changed, 163 insertions(+), 63 deletions(-) diff --git a/libs/deps/mas/commerce.js b/libs/deps/mas/commerce.js index 10b3a61e00..f3d3a8dfbe 100644 --- a/libs/deps/mas/commerce.js +++ b/libs/deps/mas/commerce.js @@ -1,6 +1,6 @@ window.masPriceLiterals = {"total":38,"offset":0,"limit":38,"data":[{"lang":"ar","recurrenceLabel":"{recurrenceTerm, select, MONTH {/الشهر} YEAR {/العام} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {كل شهر} YEAR {كل عام} other {}}","perUnitLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","freeLabel":"مجانًا","freeAriaLabel":"مجانًا","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":"أو بدلاً من ذلك بقيمة {alternativePrice}","strikethroughAriaLabel":"بشكل منتظم بقيمة {strikethroughPrice}"},{"lang":"bg","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/год.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на месец} YEAR {на година} other {}}","perUnitLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","freeLabel":"Безплатно","freeAriaLabel":"Безплатно","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":"Алтернативно на {alternativePrice}","strikethroughAriaLabel":"Редовно на {strikethroughPrice}"},{"lang":"cs","recurrenceLabel":"{recurrenceTerm, select, MONTH {/měsíc} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za měsíc} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenci} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenci} other {}}","freeLabel":"Zdarma","freeAriaLabel":"Zdarma","taxExclusiveLabel":"{taxTerm, select, GST {bez daně ze zboží a služeb} VAT {bez DPH} TAX {bez daně} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {včetně daně ze zboží a služeb} VAT {včetně DPH} TAX {včetně daně} IVA {včetně IVA} SST {včetně SST} KDV {včetně KDV} other {}}","alternativePriceAriaLabel":"Případně za {alternativePrice}","strikethroughAriaLabel":"Pravidelně za {strikethroughPrice}"},{"lang":"da","recurrenceLabel":"{recurrenceTerm, select, MONTH {/md} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pr. måned} YEAR {pr. år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. skat} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skat} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"de","recurrenceLabel":"{recurrenceTerm, select, MONTH {/Monat} YEAR {/Jahr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pro Monat} YEAR {pro Jahr} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","freeLabel":"Kostenlos","freeAriaLabel":"Kostenlos","taxExclusiveLabel":"{taxTerm, select, GST {zzgl. GST} VAT {zzgl. MwSt.} TAX {zzgl. Steuern} IVA {zzgl. IVA} SST {zzgl. SST} KDV {zzgl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. MwSt.} TAX {inkl. Steuern} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativ: {alternativePrice}","strikethroughAriaLabel":"Regulär: {strikethroughPrice}"},{"lang":"en","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}"},{"lang":"et","recurrenceLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","perUnitLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","freeLabel":"Tasuta","freeAriaLabel":"Tasuta","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":"Teise võimalusena hinnaga {alternativePrice}","strikethroughAriaLabel":"Tavahind {strikethroughPrice}"},{"lang":"fi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/kk} YEAR {/v} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuukausittain} YEAR {vuosittain} other {}}","perUnitLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","freeLabel":"Maksuton","freeAriaLabel":"Maksuton","taxExclusiveLabel":"{taxTerm, select, GST {ilman GST:tä} VAT {ilman ALV:tä} TAX {ilman veroja} IVA {ilman IVA:ta} SST {ilman SST:tä} KDV {ilman KDV:tä} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {sis. GST:n} VAT {sis. ALV:n} TAX {sis. verot} IVA {sis. IVA:n} SST {sis. SST:n} KDV {sis. KDV:n} other {}}","alternativePriceAriaLabel":"Vaihtoehtoisesti hintaan {alternativePrice}","strikethroughAriaLabel":"Säännöllisesti hintaan {strikethroughPrice}"},{"lang":"fr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mois} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {par mois} YEAR {par an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {par licence} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {par licence} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","taxExclusiveLabel":"{taxTerm, select, GST {hors TPS} VAT {hors TVA} TAX {hors taxes} IVA {hors IVA} SST {hors SST} KDV {hors KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {TPS comprise} VAT {TVA comprise} TAX {taxes comprises} IVA {IVA comprise} SST {SST comprise} KDV {KDV comprise} other {}}","alternativePriceAriaLabel":"Autre prix {alternativePrice}","strikethroughAriaLabel":"Prix habituel {strikethroughPrice}"},{"lang":"he","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","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":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"},{"lang":"hu","recurrenceLabel":"{recurrenceTerm, select, MONTH {/hó} YEAR {/év} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {havonta} YEAR {évente} other {}}","perUnitLabel":"{perUnit, select, LICENSE {licencenként} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {licencenként} other {}}","freeLabel":"Ingyenes","freeAriaLabel":"Ingyenes","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":"Másik lehetőség: {alternativePrice}","strikethroughAriaLabel":"Általában {strikethroughPrice} áron"},{"lang":"it","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mese} YEAR {/anno} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mese} YEAR {all'anno} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licenza} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licenza} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {escl. GST} VAT {escl. IVA.} TAX {escl. imposte} IVA {escl. IVA} SST {escl. SST} KDV {escl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. IVA} TAX {incl. imposte} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"In alternativa a {alternativePrice}","strikethroughAriaLabel":"Regolarmente a {strikethroughPrice}"},{"lang":"ja","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {毎月} YEAR {毎年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","freeLabel":"無料","freeAriaLabel":"無料","taxExclusiveLabel":"{taxTerm, select, GST {GST 別} VAT {VAT 別} TAX {税別} IVA {IVA 別} SST {SST 別} KDV {KDV 別} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 込} VAT {VAT 込} TAX {税込} IVA {IVA 込} SST {SST 込} KDV {KDV 込} other {}}","alternativePriceAriaLabel":"特別価格 : {alternativePrice}","strikethroughAriaLabel":"通常価格 : {strikethroughPrice}"},{"lang":"ko","recurrenceLabel":"{recurrenceTerm, select, MONTH {/월} YEAR {/년} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {월간} YEAR {연간} other {}}","perUnitLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","freeLabel":"무료","freeAriaLabel":"무료","taxExclusiveLabel":"{taxTerm, select, GST {GST 제외} VAT {VAT 제외} TAX {세금 제외} IVA {IVA 제외} SST {SST 제외} KDV {KDV 제외} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 포함} VAT {VAT 포함} TAX {세금 포함} IVA {IVA 포함} SST {SST 포함} KDV {KDV 포함} other {}}","alternativePriceAriaLabel":"또는 {alternativePrice}에","strikethroughAriaLabel":"또는 {alternativePrice}에"},{"lang":"lt","recurrenceLabel":"{recurrenceTerm, select, MONTH { per mėn.} YEAR { per metus} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per mėn.} YEAR {per metus} other {}}","perUnitLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","freeLabel":"Nemokamai","freeAriaLabel":"Nemokamai","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":"Arba už {alternativePrice}","strikethroughAriaLabel":"Normaliai už {strikethroughPrice}"},{"lang":"lv","recurrenceLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","perUnitLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","freeLabel":"Bezmaksas","freeAriaLabel":"Bezmaksas","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":"Alternatīvi par {alternativePrice}","strikethroughAriaLabel":"Regulāri par {strikethroughPrice}"},{"lang":"nb","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd.} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per måned} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisens} other {}}","freeLabel":"Fri","freeAriaLabel":"Fri","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. avgift} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. avgift} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Regelmessig til {strikethroughPrice}"},{"lang":"nl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd} YEAR {/jr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per maand} YEAR {per jaar} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licentie} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licentie} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. btw} TAX {excl. belasting} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. btw} TAX {incl. belasting} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Nu {alternativePrice}","strikethroughAriaLabel":"Normaal {strikethroughPrice}"},{"lang":"pl","recurrenceLabel":"{recurrenceTerm, select, MONTH { / mies.} YEAR { / rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH { / miesiąc} YEAR { / rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licencję} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licencję} other {}}","freeLabel":"Bezpłatne","freeAriaLabel":"Bezpłatne","taxExclusiveLabel":"{taxTerm, select, GST {bez GST} VAT {bez VAT} TAX {netto} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {z GST} VAT {z VAT} TAX {brutto} IVA {z IVA} SST {z SST} KDV {z KDV} other {}}","alternativePriceAriaLabel":"Lub za {alternativePrice}","strikethroughAriaLabel":"Cena zwykła: {strikethroughPrice}"},{"lang":"pt","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mês} YEAR {/ano} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {por mês} YEAR {por ano} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licença} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licença} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {ICMS não incluso} VAT {IVA não incluso} TAX {impostos não inclusos} IVA {IVA não incluso} SST { SST não incluso} KDV {KDV não incluso} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {ICMS incluso} VAT {IVA incluso} TAX {impostos inclusos} IVA {IVA incluso} SST {SST incluso} KDV {KDV incluso} other {}}","alternativePriceAriaLabel":"Ou a {alternativePrice}","strikethroughAriaLabel":"Preço normal: {strikethroughPrice}"},{"lang":"ro","recurrenceLabel":"{recurrenceTerm, select, MONTH {/lună} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pe lună} YEAR {pe an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pe licență} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pe licență} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","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":"Alternativ, la {alternativePrice}","strikethroughAriaLabel":"În mod normal, la {strikethroughPrice}"},{"lang":"ru","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/г.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {в месяц} YEAR {в год} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","freeLabel":"Бесплатно","freeAriaLabel":"Бесплатно","taxExclusiveLabel":"{taxTerm, select, GST {искл. налог на товары и услуги} VAT {искл. НДС} TAX {искл. налог} IVA {искл. ИВА} SST {искл. SST} KDV {искл. КДВ} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {вкл. налог на товары и услуги} VAT {вкл. НДС} TAX {вкл. налог} IVA {вкл. ИВА} SST {вкл. SST} KDV {вкл. КДВ} other {}}","alternativePriceAriaLabel":"Альтернативный вариант за {alternativePrice}","strikethroughAriaLabel":"Регулярно по цене {strikethroughPrice}"},{"lang":"sk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesiac} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za mesiac} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","freeLabel":"Zadarmo","freeAriaLabel":"Zadarmo","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":"Prípadne za {alternativePrice}","strikethroughAriaLabel":"Pravidelne za {strikethroughPrice}"},{"lang":"sl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesec} YEAR {/leto} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {na mesec} YEAR {na leto} other {}}","perUnitLabel":"{perUnit, select, LICENSE {na licenco} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {na licenco} other {}}","freeLabel":"Brezplačno","freeAriaLabel":"Brezplačno","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":"Druga možnost je: {alternativePrice}","strikethroughAriaLabel":"Redno po {strikethroughPrice}"},{"lang":"sv","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mån} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per månad} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licens} other {}}","freeLabel":"Kostnadsfritt","freeAriaLabel":"Kostnadsfritt","taxExclusiveLabel":"{taxTerm, select, GST {exkl. GST} VAT {exkl. moms} TAX {exkl. skatt} IVA {exkl. IVA} SST {exkl. SST} KDV {exkl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skatt} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt för {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"tr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/ay} YEAR {/yıl} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {(aylık)} YEAR {(yıllık)} other {}}","perUnitLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","freeLabel":"Ücretsiz","freeAriaLabel":"Ücretsiz","taxExclusiveLabel":"{taxTerm, select, GST {GST hariç} VAT {KDV hariç} TAX {vergi hariç} IVA {IVA hariç} SST {SST hariç} KDV {KDV hariç} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST dahil} VAT {KDV dahil} TAX {vergi dahil} IVA {IVA dahil} SST {SST dahil} KDV {KDV dahil} other {}}","alternativePriceAriaLabel":"Ya da {alternativePrice}","strikethroughAriaLabel":"Standart fiyat: {strikethroughPrice}"},{"lang":"uk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/міс.} YEAR {/рік} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на місяць} YEAR {на рік} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","freeLabel":"Безкоштовно","freeAriaLabel":"Безкоштовно","taxExclusiveLabel":"{taxTerm, select, GST {без GST} VAT {без ПДВ} TAX {без податку} IVA {без IVA} SST {без SST} KDV {без KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {разом із GST} VAT {разом із ПДВ} TAX {разом із податком} IVA {разом з IVA} SST {разом із SST} KDV {разом із KDV} other {}}","alternativePriceAriaLabel":"Або за {alternativePrice}","strikethroughAriaLabel":"Звичайна ціна {strikethroughPrice}"},{"lang":"zh-hans","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","freeLabel":"免费","freeAriaLabel":"免费","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":"或定价 {alternativePrice}","strikethroughAriaLabel":"正常价 {strikethroughPrice}"},{"lang":"zh-hant","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每個授權} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每個授權} other {}}","freeLabel":"免費","freeAriaLabel":"免費","taxExclusiveLabel":"{taxTerm, select, GST {不含 GST} VAT {不含 VAT} TAX {不含稅} IVA {不含 IVA} SST {不含 SST} KDV {不含 KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {含 GST} VAT {含 VAT} TAX {含稅} IVA {含 IVA} SST {含 SST} KDV {含 KDV} other {}}","alternativePriceAriaLabel":"或者在 {alternativePrice}","strikethroughAriaLabel":"標準價格為 {strikethroughPrice}"},{"lang":"es","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mes} YEAR {/año} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mes} YEAR {al año} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licencia} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licencia} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {GST no incluido} VAT {IVA no incluido} TAX {Impuestos no incluidos} IVA {IVA no incluido} SST {SST no incluido} KDV {KDV no incluido} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST incluido} VAT {IVA incluido} TAX {Impuestos incluidos} IVA {IVA incluido} SST {SST incluido} KDV {KDV incluido} other {}}","alternativePriceAriaLabel":"Alternativamente por {alternativePrice}","strikethroughAriaLabel":"Normalmente a {strikethroughPrice}"},{"lang":"in","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {tidak termasuk PBJ} VAT {tidak termasuk PPN} TAX {tidak termasuk pajak} IVA {tidak termasuk IVA} SST {tidak termasuk SST} KDV {tidak termasuk KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk PBJ} VAT {termasuk PPN} TAX {termasuk pajak} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Atau seharga {alternativePrice}","strikethroughAriaLabel":"Normalnya seharga {strikethroughPrice}"},{"lang":"vi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/tháng} YEAR {/năm} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mỗi tháng} YEAR {mỗi năm} other {}}","perUnitLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","freeLabel":"Miễn phí","freeAriaLabel":"Miễn phí","taxExclusiveLabel":"{taxTerm, select, GST {chưa bao gồm thuế hàng hóa và dịch vụ} VAT {chưa bao gồm thuế GTGT} TAX {chưa bao gồm thuế} IVA {chưa bao gồm IVA} SST {chưa bao gồm SST} KDV {chưa bao gồm KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(đã bao gồm thuế hàng hóa và dịch vụ)} VAT {(đã bao gồm thuế GTGT)} TAX {(đã bao gồm thuế)} IVA {(đã bao gồm IVA)} SST {(đã bao gồm SST)} KDV {(đã bao gồm KDV)} other {}}","alternativePriceAriaLabel":"Giá ưu đãi {alternativePrice}","strikethroughAriaLabel":"Giá thông thường {strikethroughPrice}"},{"lang":"th","recurrenceLabel":"{recurrenceTerm, select, MONTH {/เดือน} YEAR {/ปี} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {ต่อเดือน} YEAR {ต่อปี} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","freeLabel":"ฟรี","freeAriaLabel":"ฟรี","taxExclusiveLabel":"{taxTerm, select, GST {ไม่รวมภาษี GST} VAT {ไม่รวม VAT} TAX {ไม่รวมภาษี} IVA {ไม่รวม IVA} SST {ไม่รวม SST} KDV {ไม่รวม KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {รวมภาษี GST} VAT {รวม VAT} TAX {รวมภาษี} IVA {รวม IVA} SST {รวม SST} KDV {รวม KDV} other {}}","alternativePriceAriaLabel":"ราคาพิเศษ {alternativePrice}","strikethroughAriaLabel":"ราคาปกติ {strikethroughPrice}"},{"lang":"el","recurrenceLabel":"{recurrenceTerm, select, MONTH {/μήνα} YEAR {/έτος} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {κάθε μήνα} YEAR {ανά έτος} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","freeLabel":"Δωρεάν","freeAriaLabel":"Δωρεάν","taxExclusiveLabel":"{taxTerm, select, GST {(μη συμπεριλαμβανομένου GST)} VAT {(μη συμπεριλαμβανομένου ΦΠΑ)} TAX {(μη συμπεριλαμβανομένου φόρο)} IVA {(μη συμπεριλαμβανομένου IVA)} SST {(μη συμπεριλαμβανομένου SST)} KDV {(μη συμπεριλαμβανομένου KDV)} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(συμπεριλαμβανομένου του GST)} VAT {(συμπεριλαμβανομένου ΦΠΑ)} TAX {(συμπεριλαμβανομένου του φόρου)} IVA {(συμπεριλαμβανομένου του IVA)} SST {(συμπεριλαμβανομένου του SST)} KDV {(συμπεριλαμβανομένου του KDV)} other {}}","alternativePriceAriaLabel":"Διαφορετικά, {alternativePrice}","strikethroughAriaLabel":"Κανονική τιμή {strikethroughPrice}"},{"lang":"fil","recurrenceLabel":"{recurrenceTerm, select, MONTH {/buwan} YEAR {/taon} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per buwan} YEAR {per taon} other {}}","perUnitLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","freeLabel":"Libre","freeAriaLabel":"Libre","taxExclusiveLabel":"{taxTerm, select, GST {hindi kasama ang GST} VAT {hindi kasama ang VAT} TAX {hindi kasama ang Buwis} IVA {hindi kasama ang IVA} SST {hindi kasama ang SST} KDV {hindi kasama ang KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {kasama ang GST} VAT {kasama ang VAT} TAX {kasama ang Buwis} IVA {kasama ang IVA} SST {kasama ang SST} KDV {kasama ang KDV} other {}}","alternativePriceAriaLabel":"Alternatibong nasa halagang {alternativePrice}","strikethroughAriaLabel":"Regular na nasa halagang {strikethroughPrice}"},{"lang":"ms","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","freeLabel":"Percuma","freeAriaLabel":"Percuma","taxExclusiveLabel":"{taxTerm, select, GST {kecuali GST} VAT {kecuali VAT} TAX {kecuali Cukai} IVA {kecuali IVA} SST {kecuali SST} KDV {kecuali KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk GST} VAT {termasuk VAT} TAX {termasuk Cukai} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Secara alternatif pada {alternativePrice}","strikethroughAriaLabel":"Biasanya pada {strikethroughPrice}"},{"lang":"hi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/माह} YEAR {/वर्ष} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per माह} YEAR {per वर्ष} other {}}","perUnitLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","freeLabel":"फ़्री","freeAriaLabel":"फ़्री","taxExclusiveLabel":"{taxTerm, select, GST {GST अतिरिक्त} VAT {VAT अतिरिक्त} TAX {कर अतिरिक्त} IVA {IVA अतिरिक्त} SST {SST अतिरिक्त} KDV {KDV अतिरिक्त} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST सहित} VAT {VAT सहित} TAX {कर सहित} IVA {IVA सहित} SST {SST सहित} KDV {KDV सहित} other {}}","alternativePriceAriaLabel":"वैकल्पिक रूप से इस पर {alternativePrice}","strikethroughAriaLabel":"नियमित रूप से इस पर {strikethroughPrice}"},{"lang":"iw","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","taxExclusiveLabel":"{taxTerm, select, GST {ללא GST} VAT {ללא מע\"מ} TAX {ללא מס} IVA {ללא IVA} SST {ללא SST} KDV {ללא KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {כולל GST} VAT {כולל מע\"מ} TAX {כולל מס} IVA {כולל IVA} SST {כולל SST} KDV {כולל KDV} other {}}","alternativePriceAriaLabel":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"}],":type":"sheet"} .data; -var vr=Object.defineProperty;var Cr=e=>{throw TypeError(e)};var Li=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ri=(e,t)=>{for(var r in t)vr(e,r,{get:t[r],enumerable:!0})};var S=(e,t,r)=>Li(e,typeof t!="symbol"?t+"":t,r),Lr=(e,t,r)=>t.has(e)||Cr("Cannot "+r);var ne=(e,t,r)=>(Lr(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>t.has(e)?Cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),de=(e,t,r,n)=>(Lr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Dt={};Ri(Dt,{CLASS_NAME_FAILED:()=>_t,CLASS_NAME_HIDDEN:()=>wi,CLASS_NAME_PENDING:()=>Tt,CLASS_NAME_RESOLVED:()=>yt,CheckoutWorkflow:()=>wr,CheckoutWorkflowStep:()=>k,Commitment:()=>oe,ERROR_MESSAGE_BAD_REQUEST:()=>bt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>Ki,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>St,EVENT_AEM_ERROR:()=>qi,EVENT_AEM_LOAD:()=>Xi,EVENT_MAS_ERROR:()=>Qi,EVENT_MAS_READY:()=>zi,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Vi,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Di,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>Wi,EVENT_MERCH_CARD_COLLECTION_SORT:()=>$i,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>Fi,EVENT_MERCH_OFFER_READY:()=>Mi,EVENT_MERCH_OFFER_SELECT_READY:()=>Hi,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>Gi,EVENT_MERCH_SEARCH_CHANGE:()=>Yi,EVENT_MERCH_SIDENAV_SELECT:()=>ji,EVENT_MERCH_STOCK_CHANGE:()=>Bi,EVENT_MERCH_STORAGE_CHANGE:()=>ki,EVENT_OFFER_SELECTED:()=>Ui,EVENT_TYPE_FAILED:()=>Pt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>X,FF_DEFAULTS:()=>Se,HEADER_X_REQUEST_ID:()=>be,LOG_NAMESPACE:()=>Ct,Landscape:()=>te,MARK_DURATION_SUFFIX:()=>Ht,MARK_START_SUFFIX:()=>Mt,MODAL_TYPE_3_IN_1:()=>se,NAMESPACE:()=>Ni,PARAM_AOS_API_KEY:()=>Zi,PARAM_ENV:()=>Rt,PARAM_LANDSCAPE:()=>Nt,PARAM_MAS_PREVIEW:()=>Lt,PARAM_WCS_API_KEY:()=>Ji,PROVIDER_ENVIRONMENT:()=>It,SELECTOR_MAS_CHECKOUT_LINK:()=>Nr,SELECTOR_MAS_ELEMENT:()=>At,SELECTOR_MAS_INLINE_PRICE:()=>Rr,SELECTOR_MAS_SP_BUTTON:()=>Ii,STATE_FAILED:()=>j,STATE_PENDING:()=>ee,STATE_RESOLVED:()=>z,TAG_NAME_SERVICE:()=>Oi,TEMPLATE_PRICE:()=>eo,TEMPLATE_PRICE_ANNUAL:()=>ro,TEMPLATE_PRICE_LEGAL:()=>no,TEMPLATE_PRICE_STRIKETHROUGH:()=>to,Term:()=>$,WCS_PROD_URL:()=>wt,WCS_STAGE_URL:()=>Ot});var oe=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),$=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),Ni="merch",wi="hidden",Ye="wcms:commerce:ready",Oi="mas-commerce-service",Rr='span[is="inline-price"][data-wcs-osi]',Nr='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',Ii="sp-button[data-wcs-osi]",At=`${Rr},${Nr}`,Mi="merch-offer:ready",Hi="merch-offer-select:ready",Di="merch-card:action-menu-toggle",Ui="merch-offer:selected",Bi="merch-stock:change",ki="merch-storage:change",Gi="merch-quantity-selector:change",Fi="merch-card-quantity:change",Vi="merch-modal:addon-and-quantity-update",Yi="merch-search:change",$i="merch-card-collection:sort",Wi="merch-card-collection:showmore",ji="merch-sidenav:select",Xi="aem:load",qi="aem:error",zi="mas:ready",Qi="mas:error",_t="placeholder-failed",Tt="placeholder-pending",yt="placeholder-resolved",bt="Bad WCS request",St="Commerce offer not found",Ki="Literals URL not provided",Pt="mas:failed",vt="mas:resolved",Ct="mas/commerce",Lt="mas.preview",Rt="commerce.env",Nt="commerce.landscape",Zi="commerce.aosKey",Ji="commerce.wcsKey",wt="https://www.adobe.com/web_commerce_artifact",Ot="https://www.stage.adobe.com/web_commerce_artifact_stage",j="failed",ee="pending",z="resolved",te={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},be="X-Request-Id",k=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),wr="UCv3",X=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),It={PRODUCTION:"PRODUCTION"},se={TWP:"twp",D2P:"d2p",CRM:"crm"},Mt=":start",Ht=":duration",eo="price",to="price-strikethrough",ro="annual",no="legal",Se="mas-ff-defaults";var Or="tacocat.js";var Ut=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Ir=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function C(e,t={},{metadata:r=!0,search:n=!0,storage:i=!0}={}){let o;if(n&&o==null){let s=new URLSearchParams(window.location.search),a=Ee(n)?n:e;o=s.get(a)}if(i&&o==null){let s=Ee(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=oo(Ee(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var io=e=>typeof e=="boolean",$e=e=>typeof e=="function",We=e=>typeof e=="number",Mr=e=>e!=null&&typeof e=="object";var Ee=e=>typeof e=="string",Hr=e=>Ee(e)&&e,Pe=e=>We(e)&&Number.isFinite(e)&&e>0;function ve(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function E(e,t){if(io(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Ce(e,t,r){let n=Object.values(t);return n.find(i=>Ut(i,e))??r??n[0]}function oo(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function Dr(e,t=1){return We(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var so=Date.now(),Bt=()=>`(+${Date.now()-so}ms)`,je=new Set,ao=E(C("tacocat.debug",{},{metadata:!1}),!1);function Ur(e){let t=`[${Or}/${e}]`,r=(s,a,...c)=>s?!0:(i(a,...c),!1),n=ao?(s,...a)=>{console.debug(`${t} ${s}`,...a,Bt())}:()=>{},i=(s,...a)=>{let c=`${t} ${s}`;je.forEach(([l])=>l(c,...a))};return{assert:r,debug:n,error:i,warn:(s,...a)=>{let c=`${t} ${s}`;je.forEach(([,l])=>l(c,...a))}}}function co(e,t){let r=[e,t];return je.add(r),()=>{je.delete(r)}}co((e,...t)=>{console.error(e,...t,Bt())},(e,...t)=>{console.warn(e,...t,Bt())});var lo="no promo",Br="promo-tag",uo="yellow",ho="neutral",fo=(e,t,r)=>{let n=o=>o||lo,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},po="cancel-context",Xe=(e,t)=>{let r=e===po,n=!r&&e?.length>0,i=(n||r)&&(t&&t!=e||!t&&!r),o=i&&n||!i&&!!t,s=o?e||t:void 0;return{effectivePromoCode:s,overridenPromoCode:e,className:o?Br:`${Br} no-promo`,text:fo(s,t,i),variant:o?uo:ho,isOverriden:i}};var kt;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(kt||(kt={}));var V;(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"})(V||(V={}));var W;(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"})(W||(W={}));var Gt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Gt||(Gt={}));var Ft;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Ft||(Ft={}));var Vt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Vt||(Vt={}));var Yt;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Yt||(Yt={}));var $t="ABM",Wt="PUF",jt="M2M",Xt="PERPETUAL",qt="P3Y",mo="TAX_INCLUSIVE_DETAILS",Eo="TAX_EXCLUSIVE",kr={ABM:$t,PUF:Wt,M2M:jt,PERPETUAL:Xt,P3Y:qt},ta={[$t]:{commitment:V.YEAR,term:W.MONTHLY},[Wt]:{commitment:V.YEAR,term:W.ANNUAL},[jt]:{commitment:V.MONTH,term:W.MONTHLY},[Xt]:{commitment:V.PERPETUAL,term:void 0},[qt]:{commitment:V.THREE_MONTHS,term:W.P3Y}},Gr="Value is not an offer",Le=e=>{if(typeof e!="object")return Gr;let{commitment:t,term:r}=e,n=go(t,r);return{...e,planType:n}};var go=(e,t)=>{switch(e){case void 0:return Gr;case"":return"";case V.YEAR:return t===W.MONTHLY?$t:t===W.ANNUAL?Wt:"";case V.MONTH:return t===W.MONTHLY?jt:"";case V.PERPETUAL:return Xt;case V.TERM_LICENSE:return t===W.P3Y?qt:"";default:return""}};function Fr(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==mo)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:Eo}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var xo="mas-commerce-service",Ao={requestId:be,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function Re(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"?"EN":"MULT";e.sort((s,a)=>s.language===o?-1:a.language===o?1:0),e.sort((s,a)=>s.term?1:a.term?-1:0),i=[e[0]]}return r&&(i=i.map(Fr)),i}var qe=e=>window.setTimeout(e);function ge(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Dr).filter(Pe);return r.length||(r=[t]),r}function ze(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Hr)}function G(){return document.getElementsByTagName(xo)?.[0]}function Vr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[n,i]of Object.entries(Ao)){let o=r.get(i);o&&(o=o.replace(/[,;]/g,"|"),o=o.replace(/[| ]+/g,"|"),t[n]=o)}return t}var ae={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},Yr=1e3;function _o(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function $r(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:i,status:o}=e;return[n,o,i].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!ae.serializableTypes.includes(r))return r}return e}function To(e,t){if(!ae.ignoredProperties.includes(e))return $r(t)}var zt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(_o(l)?n:i).push(l)}),n.length&&(o+=" "+n.map($r).join(" "));let{pathname:s,search:a}=window.location,c=`${ae.delimiter}page=${s}${a}`;c.length>Yr&&(c=`${c.slice(0,Yr)}`),o+=c,i.length&&(o+=`${ae.delimiter}facts=`,o+=JSON.stringify(i,To)),window.lana?.log(o,ae)}};function Qe(e){Object.assign(ae,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in ae&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var Wr={LOCAL:"local",PROD:"prod",STAGE:"stage"},Qt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Kt=new Set,Zt=new Set,jr=new Map,Xr={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},qr={filter:({level:e})=>e!==Qt.DEBUG},yo={filter:()=>!1};function bo(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&$e(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:performance.now().toFixed(3)}}function So(e){[...Zt].every(t=>t(e))&&Kt.forEach(t=>t(e))}function zr(e){let t=(jr.get(e)??0)+1;jr.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>zr(`${n.namespace}/${i}`),updateConfig:Qe};return Object.values(Qt).forEach(i=>{n[i]=(o,...s)=>So(bo(i,o,e,s,r))}),Object.seal(n)}function Ke(...e){e.forEach(t=>{let{append:r,filter:n}=t;$e(n)&&Zt.add(n),$e(r)&&Kt.add(r)})}function Po(e={}){let{name:t}=e,r=E(C("commerce.debug",{search:!0,storage:!0}),t===Wr.LOCAL);return Ke(r?Xr:qr),t===Wr.PROD&&Ke(zt),Y}function vo(){Kt.clear(),Zt.clear()}var Y={...zr(Ct),Level:Qt,Plugins:{consoleAppender:Xr,debugFilter:qr,quietFilter:yo,lanaAppender:zt},init:Po,reset:vo,use:Ke};var xe=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(be);i&&(r.requestId=i),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([n,i])=>`${n}: ${JSON.stringify(i)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` -Caused by: ${this.cause}`),r}};var Co={[j]:_t,[ee]:Tt,[z]:yt},Lo={[j]:Pt,[z]:vt},Ne,Ae=class{constructor(t){ie(this,Ne);S(this,"changes",new Map);S(this,"connected",!1);S(this,"error");S(this,"log");S(this,"options");S(this,"promises",[]);S(this,"state",ee);S(this,"timer",null);S(this,"value");S(this,"version",0);S(this,"wrapperElement");this.wrapperElement=t,this.log=Y.module("mas-element")}update(){[j,ee,z].forEach(t=>{this.wrapperElement.classList.toggle(Co[t],t===this.state)})}notify(){(this.state===z||this.state===j)&&(this.state===z?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===j&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof xe&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Lo[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){de(this,Ne,G()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:n}=this;return z===n?Promise.resolve(this.wrapperElement):j===n?Promise.reject(t):new Promise((i,o)=>{r.push({resolve:i,reject:o})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=z,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),qe(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=j,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...ne(this,Ne)?.duration}),qe(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=ee,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!G()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=ee,this.timer=qe(async()=>{this.timer=null;let a=null;if(this.changes.size&&(a=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:a}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:a})),a||t)try{await this.wrapperElement.render?.()===!1&&this.state===ee&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};Ne=new WeakMap;function Qr(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Ze(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,Qr(t)),i}function Je(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Qr(t)),e):null}var Kr="download",Zr="upgrade",Jr={e:"EDU",t:"TEAM"};function et(e,t={},r=""){let n=G();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:p,wcsOsi:h,extraOptions:m,analyticsId:d}=n.collectCheckoutOptions(t),x=Ze(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:p,wcsOsi:h,extraOptions:m,analyticsId:d});return r&&(x.innerHTML=`${r}`),x}function tt(e){return class extends e{constructor(){super(...arguments);S(this,"checkoutActionHandler");S(this,"masElement",new Ae(this))}attributeChangedCallback(n,i,o){this.masElement.attributeChangedCallback(n,i,o)}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}get marketSegment(){let n=this.options?.ms??this.value?.[0].marketSegments?.[0];return Jr[n]??n}get customerSegment(){let n=this.options?.cs??this.value?.[0]?.customerSegment;return Jr[n]??n}get is3in1Modal(){return Object.values(se).includes(this.getAttribute("data-modal"))}get isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return this.is3in1Modal&&(!n||n.content!=="off")}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={}){let i=G();if(!i)return!1;this.dataset.imsCountry||i.imsCountryPromise.then(f=>{f&&(this.dataset.imsCountry=f)}),n.imsCountry=null;let o=i.collectCheckoutOptions(n,this);if(!o.wcsOsi.length)return!1;let s;try{s=JSON.parse(o.extraOptions??"{}")}catch(f){this.masElement.log?.error("cannot parse exta checkout options",f)}let a=this.masElement.togglePending(o);this.setCheckoutUrl("");let c=i.resolveOfferSelectors(o),l=await Promise.all(c);l=l.map(f=>Re(f,o)),o.country=this.dataset.imsCountry||o.country;let u=await i.buildCheckoutAction?.(l.flat(),{...s,...o},this);return this.renderOffers(l.flat(),o,{},u,a)}renderOffers(n,i,o={},s=void 0,a=void 0){let c=G();if(!c)return!1;if(i={...JSON.parse(this.dataset.extraOptions??"null"),...i,...o},a??(a=this.masElement.togglePending(i)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),s){this.classList.remove(Kr,Zr),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:p,handler:h}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),p&&this.classList.add(...p.split(" ")),h&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=h.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(Kr)&&!this.classList.contains(Zr)){let u=c.buildCheckoutURL(n,i);this.setCheckoutUrl(i.modal==="true"?"#":u)}return!0}}else{let u=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(a,u,i))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let i=G();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:p,quantity:h,wcsOsi:m}=i.collectCheckoutOptions(n);return Je(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:p,quantity:h,wcsOsi:m}),!0}}}var we=class we extends tt(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return et(we,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};S(we,"is","checkout-link"),S(we,"tag","a");var Q=we;window.customElements.get(Q.is)||window.customElements.define(Q.is,Q,{extends:Q.tag});var Ro="p_draft_landscape",No="/store/",wo=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),Jt=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Oo=["env","workflowStep","clientId","country"],en=e=>wo.get(e)??e;function er(e,t,r){for(let[n,i]of Object.entries(e)){let o=en(n);i!=null&&r.has(o)&&t.set(o,i)}}function Io(e){switch(e){case It.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Mo(e,t){for(let r in e){let n=e[r];for(let[i,o]of Object.entries(n)){if(o==null)continue;let s=en(i);t.set(`items[${r}][${s}]`,o)}}}function Ho({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let n=e.searchParams.get("af");return e.searchParams.set("af",[n,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===se.CRM?"creative":"mini_plans"),e}function tn(e){Do(e);let{env:t,items:r,workflowStep:n,marketSegment:i,customerSegment:o,offerType:s,productArrangementCode:a,landscape:c,modal:l,is3in1:u,preselectPlan:f,...p}=e,h=new URL(Io(t));if(h.pathname=`${No}${n}`,n!==k.SEGMENTATION&&n!==k.CHANGE_PLAN_TEAM_PLANS&&Mo(r,h.searchParams),er({...p},h.searchParams,Jt),c===te.DRAFT&&er({af:Ro},h.searchParams,Jt),n===k.SEGMENTATION){let m={marketSegment:i,offerType:s,customerSegment:o,productArrangementCode:a,quantity:r?.[0]?.quantity,addonProductArrangementCode:a?r?.find(d=>d.productArrangementCode!==a)?.productArrangementCode:r?.[1]?.productArrangementCode};f?.toLowerCase()==="edu"?h.searchParams.set("ms","EDU"):f?.toLowerCase()==="team"&&h.searchParams.set("cs","TEAM"),er(m,h.searchParams,Jt),h.searchParams.get("ot")==="PROMOTION"&&h.searchParams.delete("ot"),h=Ho({url:h,modal:l,is3in1:u})}return h.toString()}function Do(e){for(let t of Oo)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==k.SEGMENTATION&&e.workflowStep!==k.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var y=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:k.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:X.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:te.PUBLISHED});function rn({settings:e}){function t(i,o){let{checkoutClientId:s,checkoutWorkflowStep:a,country:c,language:l,promotionCode:u,quantity:f,preselectPlan:p}=e,{checkoutMarketSegment:h,checkoutWorkflowStep:m=a,imsCountry:d,country:x=d??c,language:v=l,quantity:b=f,entitlement:A,upgrade:N,modal:P,perpetual:w,promotionCode:O=u,wcsOsi:U,extraOptions:R,...D}=Object.assign({},o?.dataset??{},i??{}),M=Ce(m,k,y.checkoutWorkflowStep);return ve({...D,extraOptions:R,checkoutClientId:s,checkoutMarketSegment:h,country:x,quantity:ge(b,y.quantity),checkoutWorkflowStep:M,language:v,entitlement:E(A),upgrade:E(N),modal:P,perpetual:E(w),promotionCode:Xe(O).effectivePromoCode,wcsOsi:ze(U),preselectPlan:p})}function r(i,o){if(!Array.isArray(i)||!i.length||!o)return"";let{env:s,landscape:a}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:u,country:f,promotionCode:p,quantity:h,preselectPlan:m,ms:d,cs:x,...v}=t(o),b=document.querySelector("meta[name=mas-ff-3in1]"),A=Object.values(se).includes(o.modal)&&(!b||b.content!=="off"),N=window.frameElement||A?"if":"fp",[{productArrangementCode:P,marketSegments:[w],customerSegment:O,offerType:U}]=i,R=d??w??l,D=x??O;m?.toLowerCase()==="edu"?R="EDU":m?.toLowerCase()==="team"&&(D="TEAM");let M={is3in1:A,checkoutPromoCode:p,clientId:c,context:N,country:f,env:s,items:[],marketSegment:R,customerSegment:D,offerType:U,productArrangementCode:P,workflowStep:u,landscape:a,...v},J=h[0]>1?h[0]:void 0;if(i.length===1){let{offerId:q}=i[0];M.items.push({id:q,quantity:J})}else M.items.push(...i.map(({offerId:q,productArrangementCode:fe})=>({id:q,quantity:J,...A?{productArrangementCode:fe}:{}})));return tn(M)}let{createCheckoutLink:n}=Q;return{CheckoutLink:Q,CheckoutWorkflowStep:k,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:n}}function Uo({interval:e=200,maxAttempts:t=25}={}){let r=Y.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let i=0;function o(){window.adobeIMS?.initialized?n():++i>t?(r.debug("Timeout"),n()):setTimeout(o,e)}o()})}function Bo(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function ko(e){let t=Y.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function nn({}){let e=Uo(),t=Bo(e),r=ko(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var on=window.masPriceLiterals;function sn(e){if(Array.isArray(on)){let t=n=>on.find(i=>Ut(i.lang,n)),r=t(e.language)??t(y.language);if(r)return Object.freeze(r)}return{}}var tr=function(e,t){return tr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},tr(e,t)};function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return _=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Vo,function(c,l,u,f,p,h){if(l)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(En.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(hn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(hn,function(c,l,u,f,p,h){return u==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=_(_({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=_(_({},t),fn(o)));continue}if(dn.test(i.stem)){t=_(_({},t),fn(i.stem));continue}var s=gn(i.stem);s&&(t=_(_({},t),s));var a=Yo(i.stem);a&&(t=_(_({},t),a))}return t}var Me={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 An(e,t){for(var r="",n=0;n>1),c="a",l=$o(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=c;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function $o(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 i=Me[n||""]||Me[r||""]||Me["".concat(r,"-001")]||Me["001"];return i[0]}var ir,Wo=new RegExp("^".concat(nr.source,"*")),jo=new RegExp("".concat(nr.source,"*$"));function T(e,t){return{start:e,end:t}}var Xo=!!String.prototype.startsWith,qo=!!String.fromCodePoint,zo=!!Object.fromEntries,Qo=!!String.prototype.codePointAt,Ko=!!String.prototype.trimStart,Zo=!!String.prototype.trimEnd,Jo=!!Number.isSafeInteger,es=Jo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},sr=!0;try{_n=Sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),sr=((ir=_n.exec("a"))===null||ir===void 0?void 0:ir[0])==="a"}catch{sr=!1}var _n,Tn=Xo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ar=qo?String.fromCodePoint:function(){for(var t=[],r=0;ro;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},yn=zo?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},ts=Ko?function(t){return t.trimStart()}:function(t){return t.replace(Wo,"")},rs=Zo?function(t){return t.trimEnd()}:function(t){return t.replace(jo,"")};function Sn(e,t){return new RegExp(e,t)}var cr;sr?(or=Sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),cr=function(t,r){var n;or.lastIndex=r;var i=or.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):cr=function(t,r){for(var n=[];;){var i=bn(t,r);if(i===void 0||vn(i)||os(i))break;n.push(i),r+=i>=65536?2:1}return ar.apply(void 0,n)};var or,Pn=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 i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:L.pound,location:T(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(g.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&lr(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(i,"/>"),location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:L.tag,value:i,children:s,location:T(n,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,T(a,this.clonePosition())))}else return this.error(g.UNCLOSED_TAG,T(n,this.clonePosition()))}else return this.error(g.INVALID_TAG,T(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&is(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=T(n,this.clonePosition());return{val:{type:L.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ns(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 ar.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(),ar(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(g.EMPTY_ARGUMENT,T(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(g.MALFORMED_ARGUMENT,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(g.MALFORMED_ARGUMENT,T(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=cr(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=T(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,T(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=rs(f.val);if(p.length===0)return this.error(g.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var h=T(u,this.clonePosition());l={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var d=T(i,this.clonePosition());if(l&&Tn(l?.style,"::",0)){var x=ts(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(x,l.styleLocation);return f.err?f:{val:{type:L.number,value:n,location:d,style:f.val},err:null}}else{if(x.length===0)return this.error(g.EXPECT_DATE_TIME_SKELETON,d);var v=x;this.locale&&(v=An(x,this.locale));var p={type:ce.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ln(v):{}},b=a==="date"?L.date:L.time;return{val:{type:b,value:n,location:d,style:p},err:null}}}return{val:{type:a==="number"?L.number:a==="date"?L.date:L.time,value:n,location:d,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,T(A,_({},A)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),P=0;if(a!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),N=this.parseIdentifierIfPossible(),P=f.val}var w=this.tryParsePluralOrSelectOptions(t,a,r,N);if(w.err)return w;var m=this.tryParseArgumentClose(i);if(m.err)return m;var O=T(i,this.clonePosition());return a==="select"?{val:{type:L.select,value:n,options:yn(w.val),location:O},err:null}:{val:{type:L.plural,value:n,options:yn(w.val),offset:P,pluralType:a==="plural"?"cardinal":"ordinal",location:O},err:null}}default:return this.error(g.INVALID_ARGUMENT_TYPE,T(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(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 i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(i,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=mn(t)}catch{return this.error(g.INVALID_NUMBER_SKELETON,r)}return{val:{type:ce.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?xn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=T(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([l,{value:m.val,location:T(h,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location}return a.length===0?this.error(r==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(g.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=T(i,this.clonePosition());return o?(s*=n,es(s)?{val:s,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=bn(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(Tn(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()&&vn(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 lr(e){return e>=97&&e<=122||e>=65&&e<=90}function ns(e){return lr(e)||e===47}function is(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 vn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function os(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 ur(e){e.forEach(function(t){if(delete t.location,st(t)||at(t))for(var r in t.options)delete t.options[r].location,ur(t.options[r].value);else nt(t)&<(t.style)||(it(t)||ot(t))&&Ie(t.style)?delete t.style.location:ct(t)&&ur(t.children)})}function Cn(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Pn(e,t).parse();if(r.err){var n=SyntaxError(g[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||ur(r.val),r.val}function He(e,t){var r=t&&t.cache?t.cache:hs,n=t&&t.serializer?t.serializer:us,i=t&&t.strategy?t.strategy:as;return i(e,{cache:r,serializer:n})}function ss(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ln(e,t,r,n){var i=ss(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Rn(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function hr(e,t,r,n,i){return r.bind(t,e,n,i)}function as(e,t){var r=e.length===1?Ln:Rn;return hr(e,this,r,t.cache.create(),t.serializer)}function cs(e,t){return hr(e,this,Rn,t.cache.create(),t.serializer)}function ls(e,t){return hr(e,this,Ln,t.cache.create(),t.serializer)}var us=function(){return JSON.stringify(arguments)};function fr(){this.cache=Object.create(null)}fr.prototype.get=function(e){return this.cache[e]};fr.prototype.set=function(e,t){this.cache[e]=t};var hs={create:function(){return new fr}},ut={variadic:cs,monadic:ls};var le;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(le||(le={}));var De=function(e){Oe(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var pr=function(e){Oe(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),le.INVALID_VALUE,o)||this}return t}(De);var Nn=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),le.INVALID_VALUE,i)||this}return t}(De);var wn=function(e){Oe(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,'"'),le.MISSING_VALUE,n)||this}return t}(De);var B;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(B||(B={}));function fs(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==B.literal||r.type!==B.literal?t.push(r):n.value+=r.value,t},[])}function ps(e){return typeof e=="function"}function Ue(e,t,r,n,i,o,s){if(e.length===1&&rr(e[0]))return[{type:B.literal,value:e[0].value}];for(var a=[],c=0,l=e;c{throw TypeError(e)};var Ri=(e,t,r)=>t in e?Cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ni=(e,t)=>{for(var r in t)Cr(e,r,{get:t[r],enumerable:!0})};var S=(e,t,r)=>Ri(e,typeof t!="symbol"?t+"":t,r),Rr=(e,t,r)=>t.has(e)||Lr("Cannot "+r);var ne=(e,t,r)=>(Rr(e,t,"read from private field"),r?r.call(e):t.get(e)),ie=(e,t,r)=>t.has(e)?Lr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),de=(e,t,r,n)=>(Rr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Dt={};Ni(Dt,{CLASS_NAME_FAILED:()=>_t,CLASS_NAME_HIDDEN:()=>Oi,CLASS_NAME_PENDING:()=>Tt,CLASS_NAME_RESOLVED:()=>yt,CheckoutWorkflow:()=>Or,CheckoutWorkflowStep:()=>k,Commitment:()=>oe,ERROR_MESSAGE_BAD_REQUEST:()=>bt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>Zi,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>St,EVENT_AEM_ERROR:()=>zi,EVENT_AEM_LOAD:()=>qi,EVENT_MAS_ERROR:()=>Ki,EVENT_MAS_READY:()=>Qi,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Yi,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Ui,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>ji,EVENT_MERCH_CARD_COLLECTION_SORT:()=>Wi,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>Vi,EVENT_MERCH_OFFER_READY:()=>Hi,EVENT_MERCH_OFFER_SELECT_READY:()=>Di,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>Fi,EVENT_MERCH_SEARCH_CHANGE:()=>$i,EVENT_MERCH_SIDENAV_SELECT:()=>Xi,EVENT_MERCH_STOCK_CHANGE:()=>ki,EVENT_MERCH_STORAGE_CHANGE:()=>Gi,EVENT_OFFER_SELECTED:()=>Bi,EVENT_TYPE_FAILED:()=>Pt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>X,FF_DEFAULTS:()=>Se,HEADER_X_REQUEST_ID:()=>be,LOG_NAMESPACE:()=>Ct,Landscape:()=>te,MARK_DURATION_SUFFIX:()=>Ht,MARK_START_SUFFIX:()=>Mt,MODAL_TYPE_3_IN_1:()=>se,NAMESPACE:()=>wi,PARAM_AOS_API_KEY:()=>Ji,PARAM_ENV:()=>Rt,PARAM_LANDSCAPE:()=>Nt,PARAM_MAS_PREVIEW:()=>Lt,PARAM_WCS_API_KEY:()=>eo,PROVIDER_ENVIRONMENT:()=>It,SELECTOR_MAS_CHECKOUT_LINK:()=>wr,SELECTOR_MAS_ELEMENT:()=>At,SELECTOR_MAS_INLINE_PRICE:()=>Nr,SELECTOR_MAS_SP_BUTTON:()=>Mi,STATE_FAILED:()=>j,STATE_PENDING:()=>ee,STATE_RESOLVED:()=>z,TAG_NAME_SERVICE:()=>Ii,TEMPLATE_PRICE:()=>to,TEMPLATE_PRICE_ANNUAL:()=>no,TEMPLATE_PRICE_LEGAL:()=>io,TEMPLATE_PRICE_STRIKETHROUGH:()=>ro,Term:()=>$,WCS_PROD_URL:()=>wt,WCS_STAGE_URL:()=>Ot});var oe=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),$=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),wi="merch",Oi="hidden",Ye="wcms:commerce:ready",Ii="mas-commerce-service",Nr='span[is="inline-price"][data-wcs-osi]',wr='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',Mi="sp-button[data-wcs-osi]",At=`${Nr},${wr}`,Hi="merch-offer:ready",Di="merch-offer-select:ready",Ui="merch-card:action-menu-toggle",Bi="merch-offer:selected",ki="merch-stock:change",Gi="merch-storage:change",Fi="merch-quantity-selector:change",Vi="merch-card-quantity:change",Yi="merch-modal:addon-and-quantity-update",$i="merch-search:change",Wi="merch-card-collection:sort",ji="merch-card-collection:showmore",Xi="merch-sidenav:select",qi="aem:load",zi="aem:error",Qi="mas:ready",Ki="mas:error",_t="placeholder-failed",Tt="placeholder-pending",yt="placeholder-resolved",bt="Bad WCS request",St="Commerce offer not found",Zi="Literals URL not provided",Pt="mas:failed",vt="mas:resolved",Ct="mas/commerce",Lt="mas.preview",Rt="commerce.env",Nt="commerce.landscape",Ji="commerce.aosKey",eo="commerce.wcsKey",wt="https://www.adobe.com/web_commerce_artifact",Ot="https://www.stage.adobe.com/web_commerce_artifact_stage",j="failed",ee="pending",z="resolved",te={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},be="X-Request-Id",k=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),Or="UCv3",X=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),It={PRODUCTION:"PRODUCTION"},se={TWP:"twp",D2P:"d2p",CRM:"crm"},Mt=":start",Ht=":duration",to="price",ro="price-strikethrough",no="annual",io="legal",Se="mas-ff-defaults";var Ir="tacocat.js";var Ut=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Mr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function C(e,t={},{metadata:r=!0,search:n=!0,storage:i=!0}={}){let o;if(n&&o==null){let s=new URLSearchParams(window.location.search),a=Ee(n)?n:e;o=s.get(a)}if(i&&o==null){let s=Ee(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=so(Ee(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var oo=e=>typeof e=="boolean",$e=e=>typeof e=="function",We=e=>typeof e=="number",Hr=e=>e!=null&&typeof e=="object";var Ee=e=>typeof e=="string",Dr=e=>Ee(e)&&e,Pe=e=>We(e)&&Number.isFinite(e)&&e>0;function ve(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function E(e,t){if(oo(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Ce(e,t,r){let n=Object.values(t);return n.find(i=>Ut(i,e))??r??n[0]}function so(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function Ur(e,t=1){return We(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var ao=Date.now(),Bt=()=>`(+${Date.now()-ao}ms)`,je=new Set,co=E(C("tacocat.debug",{},{metadata:!1}),!1);function Br(e){let t=`[${Ir}/${e}]`,r=(s,a,...c)=>s?!0:(i(a,...c),!1),n=co?(s,...a)=>{console.debug(`${t} ${s}`,...a,Bt())}:()=>{},i=(s,...a)=>{let c=`${t} ${s}`;je.forEach(([l])=>l(c,...a))};return{assert:r,debug:n,error:i,warn:(s,...a)=>{let c=`${t} ${s}`;je.forEach(([,l])=>l(c,...a))}}}function lo(e,t){let r=[e,t];return je.add(r),()=>{je.delete(r)}}lo((e,...t)=>{console.error(e,...t,Bt())},(e,...t)=>{console.warn(e,...t,Bt())});var uo="no promo",kr="promo-tag",ho="yellow",fo="neutral",po=(e,t,r)=>{let n=o=>o||uo,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},mo="cancel-context",Xe=(e,t)=>{let r=e===mo,n=!r&&e?.length>0,i=(n||r)&&(t&&t!=e||!t&&!r),o=i&&n||!i&&!!t,s=o?e||t:void 0;return{effectivePromoCode:s,overridenPromoCode:e,className:o?kr:`${kr} no-promo`,text:po(s,t,i),variant:o?ho:fo,isOverriden:i}};var kt;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(kt||(kt={}));var V;(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"})(V||(V={}));var W;(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"})(W||(W={}));var Gt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Gt||(Gt={}));var Ft;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Ft||(Ft={}));var Vt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Vt||(Vt={}));var Yt;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Yt||(Yt={}));var $t="ABM",Wt="PUF",jt="M2M",Xt="PERPETUAL",qt="P3Y",Eo="TAX_INCLUSIVE_DETAILS",go="TAX_EXCLUSIVE",Gr={ABM:$t,PUF:Wt,M2M:jt,PERPETUAL:Xt,P3Y:qt},ra={[$t]:{commitment:V.YEAR,term:W.MONTHLY},[Wt]:{commitment:V.YEAR,term:W.ANNUAL},[jt]:{commitment:V.MONTH,term:W.MONTHLY},[Xt]:{commitment:V.PERPETUAL,term:void 0},[qt]:{commitment:V.THREE_MONTHS,term:W.P3Y}},Fr="Value is not an offer",Le=e=>{if(typeof e!="object")return Fr;let{commitment:t,term:r}=e,n=xo(t,r);return{...e,planType:n}};var xo=(e,t)=>{switch(e){case void 0:return Fr;case"":return"";case V.YEAR:return t===W.MONTHLY?$t:t===W.ANNUAL?Wt:"";case V.MONTH:return t===W.MONTHLY?jt:"";case V.PERPETUAL:return Xt;case V.TERM_LICENSE:return t===W.P3Y?qt:"";default:return""}};function Vr(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==Eo)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:go}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var Ao="mas-commerce-service",_o={requestId:be,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function Re(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"?"EN":"MULT";e.sort((s,a)=>s.language===o?-1:a.language===o?1:0),e.sort((s,a)=>s.term?1:a.term?-1:0),i=[e[0]]}return r&&(i=i.map(Vr)),i}var qe=e=>window.setTimeout(e);function ge(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Ur).filter(Pe);return r.length||(r=[t]),r}function ze(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Dr)}function G(){return document.getElementsByTagName(Ao)?.[0]}function Yr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[n,i]of Object.entries(_o)){let o=r.get(i);o&&(o=o.replace(/[,;]/g,"|"),o=o.replace(/[| ]+/g,"|"),t[n]=o)}return t}var ae={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},$r=1e3;function To(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function Wr(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:i,status:o}=e;return[n,o,i].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!ae.serializableTypes.includes(r))return r}return e}function yo(e,t){if(!ae.ignoredProperties.includes(e))return Wr(t)}var zt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(To(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(Wr).join(" "));let{pathname:s,search:a}=window.location,c=`${ae.delimiter}page=${s}${a}`;c.length>$r&&(c=`${c.slice(0,$r)}`),o+=c,i.length&&(o+=`${ae.delimiter}facts=`,o+=JSON.stringify(i,yo)),window.lana?.log(o,ae)}};function Qe(e){Object.assign(ae,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in ae&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var jr={LOCAL:"local",PROD:"prod",STAGE:"stage"},Qt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Kt=new Set,Zt=new Set,Xr=new Map,qr={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},zr={filter:({level:e})=>e!==Qt.DEBUG},bo={filter:()=>!1};function So(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&$e(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:performance.now().toFixed(3)}}function Po(e){[...Zt].every(t=>t(e))&&Kt.forEach(t=>t(e))}function Qr(e){let t=(Xr.get(e)??0)+1;Xr.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>Qr(`${n.namespace}/${i}`),updateConfig:Qe};return Object.values(Qt).forEach(i=>{n[i]=(o,...s)=>Po(So(i,o,e,s,r))}),Object.seal(n)}function Ke(...e){e.forEach(t=>{let{append:r,filter:n}=t;$e(n)&&Zt.add(n),$e(r)&&Kt.add(r)})}function vo(e={}){let{name:t}=e,r=E(C("commerce.debug",{search:!0,storage:!0}),t===jr.LOCAL);return Ke(r?qr:zr),t===jr.PROD&&Ke(zt),Y}function Co(){Kt.clear(),Zt.clear()}var Y={...Qr(Ct),Level:Qt,Plugins:{consoleAppender:qr,debugFilter:zr,quietFilter:bo,lanaAppender:zt},init:vo,reset:Co,use:Ke};var xe=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(be);i&&(r.requestId=i),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([n,i])=>`${n}: ${JSON.stringify(i)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` +Caused by: ${this.cause}`),r}};var Lo={[j]:_t,[ee]:Tt,[z]:yt},Ro={[j]:Pt,[z]:vt},Ne,Ae=class{constructor(t){ie(this,Ne);S(this,"changes",new Map);S(this,"connected",!1);S(this,"error");S(this,"log");S(this,"options");S(this,"promises",[]);S(this,"state",ee);S(this,"timer",null);S(this,"value");S(this,"version",0);S(this,"wrapperElement");this.wrapperElement=t,this.log=Y.module("mas-element")}update(){[j,ee,z].forEach(t=>{this.wrapperElement.classList.toggle(Lo[t],t===this.state)})}notify(){(this.state===z||this.state===j)&&(this.state===z?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===j&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof xe&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Ro[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){de(this,Ne,G()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:n}=this;return z===n?Promise.resolve(this.wrapperElement):j===n?Promise.reject(t):new Promise((i,o)=>{r.push({resolve:i,reject:o})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=z,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),qe(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=j,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...ne(this,Ne)?.duration}),qe(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=ee,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!G()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=ee,this.timer=qe(async()=>{this.timer=null;let a=null;if(this.changes.size&&(a=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:a}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:a})),a||t)try{await this.wrapperElement.render?.()===!1&&this.state===ee&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};Ne=new WeakMap;function Kr(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Ze(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,Kr(t)),i}function Je(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Kr(t)),e):null}var Zr="download",Jr="upgrade",en={e:"EDU",t:"TEAM"};function et(e,t={},r=""){let n=G();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:p,wcsOsi:h,extraOptions:m,analyticsId:d}=n.collectCheckoutOptions(t),x=Ze(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:p,wcsOsi:h,extraOptions:m,analyticsId:d});return r&&(x.innerHTML=`${r}`),x}function Jt(e,t={}){let r=t.quantity?.[0];if(!r)return;let n=e?.[0]?.promotion?.displaySummary?.minProductQuantity||1;r{f&&(this.dataset.imsCountry=f)}),n.imsCountry=null;let o=i.collectCheckoutOptions(n,this);if(!o.wcsOsi.length)return!1;let s;try{s=JSON.parse(o.extraOptions??"{}")}catch(f){this.masElement.log?.error("cannot parse exta checkout options",f)}let a=this.masElement.togglePending(o);this.setCheckoutUrl("");let c=i.resolveOfferSelectors(o),l=await Promise.all(c);l=l.map(f=>Re(f,o)),Jt(l.flat(),o),o.country=this.dataset.imsCountry||o.country;let u=await i.buildCheckoutAction?.(l.flat(),{...s,...o},this);return this.renderOffers(l.flat(),o,{},u,a)}renderOffers(n,i,o={},s=void 0,a=void 0){let c=G();if(!c)return!1;if(i={...JSON.parse(this.dataset.extraOptions??"null"),...i,...o},a??(a=this.masElement.togglePending(i)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),s){this.classList.remove(Zr,Jr),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:p,handler:h}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),p&&this.classList.add(...p.split(" ")),h&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=h.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(Zr)&&!this.classList.contains(Jr)){let u=c.buildCheckoutURL(n,i);this.setCheckoutUrl(i.modal==="true"?"#":u)}return!0}}else{let u=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(a,u,i))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let i=G();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:p,quantity:h,wcsOsi:m}=i.collectCheckoutOptions(n);return Je(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:p,quantity:h,wcsOsi:m}),!0}}}var we=class we extends tt(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return et(we,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};S(we,"is","checkout-link"),S(we,"tag","a");var Q=we;window.customElements.get(Q.is)||window.customElements.define(Q.is,Q,{extends:Q.tag});var No="p_draft_landscape",wo="/store/",Oo=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),er=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Io=["env","workflowStep","clientId","country"],tn=e=>Oo.get(e)??e;function tr(e,t,r){for(let[n,i]of Object.entries(e)){let o=tn(n);i!=null&&r.has(o)&&t.set(o,i)}}function Mo(e){switch(e){case It.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Ho(e,t){for(let r in e){let n=e[r];for(let[i,o]of Object.entries(n)){if(o==null)continue;let s=tn(i);t.set(`items[${r}][${s}]`,o)}}}function Do({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let n=e.searchParams.get("af");return e.searchParams.set("af",[n,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===se.CRM?"creative":"mini_plans"),e}function rn(e){Uo(e);let{env:t,items:r,workflowStep:n,marketSegment:i,customerSegment:o,offerType:s,productArrangementCode:a,landscape:c,modal:l,is3in1:u,preselectPlan:f,...p}=e,h=new URL(Mo(t));if(h.pathname=`${wo}${n}`,n!==k.SEGMENTATION&&n!==k.CHANGE_PLAN_TEAM_PLANS&&Ho(r,h.searchParams),tr({...p},h.searchParams,er),c===te.DRAFT&&tr({af:No},h.searchParams,er),n===k.SEGMENTATION){let m={marketSegment:i,offerType:s,customerSegment:o,productArrangementCode:a,quantity:r?.[0]?.quantity,addonProductArrangementCode:a?r?.find(d=>d.productArrangementCode!==a)?.productArrangementCode:r?.[1]?.productArrangementCode};f?.toLowerCase()==="edu"?h.searchParams.set("ms","EDU"):f?.toLowerCase()==="team"&&h.searchParams.set("cs","TEAM"),tr(m,h.searchParams,er),h.searchParams.get("ot")==="PROMOTION"&&h.searchParams.delete("ot"),h=Do({url:h,modal:l,is3in1:u})}return h.toString()}function Uo(e){for(let t of Io)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==k.SEGMENTATION&&e.workflowStep!==k.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var y=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:k.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:X.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:te.PUBLISHED});function nn({settings:e}){function t(i,o){let{checkoutClientId:s,checkoutWorkflowStep:a,country:c,language:l,promotionCode:u,quantity:f,preselectPlan:p}=e,{checkoutMarketSegment:h,checkoutWorkflowStep:m=a,imsCountry:d,country:x=d??c,language:v=l,quantity:b=f,entitlement:A,upgrade:N,modal:P,perpetual:w,promotionCode:O=u,wcsOsi:U,extraOptions:R,...D}=Object.assign({},o?.dataset??{},i??{}),M=Ce(m,k,y.checkoutWorkflowStep);return ve({...D,extraOptions:R,checkoutClientId:s,checkoutMarketSegment:h,country:x,quantity:ge(b,y.quantity),checkoutWorkflowStep:M,language:v,entitlement:E(A),upgrade:E(N),modal:P,perpetual:E(w),promotionCode:Xe(O).effectivePromoCode,wcsOsi:ze(U),preselectPlan:p})}function r(i,o){if(!Array.isArray(i)||!i.length||!o)return"";let{env:s,landscape:a}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:u,country:f,promotionCode:p,quantity:h,preselectPlan:m,ms:d,cs:x,...v}=t(o),b=document.querySelector("meta[name=mas-ff-3in1]"),A=Object.values(se).includes(o.modal)&&(!b||b.content!=="off"),N=window.frameElement||A?"if":"fp",[{productArrangementCode:P,marketSegments:[w],customerSegment:O,offerType:U}]=i,R=d??w??l,D=x??O;m?.toLowerCase()==="edu"?R="EDU":m?.toLowerCase()==="team"&&(D="TEAM");let M={is3in1:A,checkoutPromoCode:p,clientId:c,context:N,country:f,env:s,items:[],marketSegment:R,customerSegment:D,offerType:U,productArrangementCode:P,workflowStep:u,landscape:a,...v},J=h[0]>1?h[0]:void 0;if(i.length===1){let{offerId:q}=i[0];M.items.push({id:q,quantity:J})}else M.items.push(...i.map(({offerId:q,productArrangementCode:fe})=>({id:q,quantity:J,...A?{productArrangementCode:fe}:{}})));return rn(M)}let{createCheckoutLink:n}=Q;return{CheckoutLink:Q,CheckoutWorkflowStep:k,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:n}}function Bo({interval:e=200,maxAttempts:t=25}={}){let r=Y.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let i=0;function o(){window.adobeIMS?.initialized?n():++i>t?(r.debug("Timeout"),n()):setTimeout(o,e)}o()})}function ko(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function Go(e){let t=Y.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function on({}){let e=Bo(),t=ko(e),r=Go(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var sn=window.masPriceLiterals;function an(e){if(Array.isArray(sn)){let t=n=>sn.find(i=>Ut(i.lang,n)),r=t(e.language)??t(y.language);if(r)return Object.freeze(r)}return{}}var rr=function(e,t){return rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},rr(e,t)};function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return _=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Yo,function(c,l,u,f,p,h){if(l)t.minimumIntegerDigits=u.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(gn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(fn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(fn,function(c,l,u,f,p,h){return u==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&h?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=_(_({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=_(_({},t),pn(o)));continue}if(En.test(i.stem)){t=_(_({},t),pn(i.stem));continue}var s=xn(i.stem);s&&(t=_(_({},t),s));var a=$o(i.stem);a&&(t=_(_({},t),a))}return t}var Me={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 _n(e,t){for(var r="",n=0;n>1),c="a",l=Wo(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=c;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Wo(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 i=Me[n||""]||Me[r||""]||Me["".concat(r,"-001")]||Me["001"];return i[0]}var or,jo=new RegExp("^".concat(ir.source,"*")),Xo=new RegExp("".concat(ir.source,"*$"));function T(e,t){return{start:e,end:t}}var qo=!!String.prototype.startsWith,zo=!!String.fromCodePoint,Qo=!!Object.fromEntries,Ko=!!String.prototype.codePointAt,Zo=!!String.prototype.trimStart,Jo=!!String.prototype.trimEnd,es=!!Number.isSafeInteger,ts=es?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ar=!0;try{Tn=Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ar=((or=Tn.exec("a"))===null||or===void 0?void 0:or[0])==="a"}catch{ar=!1}var Tn,yn=qo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},cr=zo?String.fromCodePoint:function(){for(var t=[],r=0;ro;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},bn=Qo?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},rs=Zo?function(t){return t.trimStart()}:function(t){return t.replace(jo,"")},ns=Jo?function(t){return t.trimEnd()}:function(t){return t.replace(Xo,"")};function Pn(e,t){return new RegExp(e,t)}var lr;ar?(sr=Pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),lr=function(t,r){var n;sr.lastIndex=r;var i=sr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):lr=function(t,r){for(var n=[];;){var i=Sn(t,r);if(i===void 0||Cn(i)||ss(i))break;n.push(i),r+=i>=65536?2:1}return cr.apply(void 0,n)};var sr,vn=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 i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:L.pound,location:T(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(g.UNMATCHED_CLOSING_TAG,T(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ur(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(i,"/>"),location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:L.tag,value:i,children:s,location:T(n,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,T(a,this.clonePosition())))}else return this.error(g.UNCLOSED_TAG,T(n,this.clonePosition()))}else return this.error(g.INVALID_TAG,T(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&os(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=T(n,this.clonePosition());return{val:{type:L.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!is(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 cr.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(),cr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(g.EMPTY_ARGUMENT,T(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(g.MALFORMED_ARGUMENT,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(g.MALFORMED_ARGUMENT,T(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=lr(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=T(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,T(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=ns(f.val);if(p.length===0)return this.error(g.EXPECT_ARGUMENT_STYLE,T(this.clonePosition(),this.clonePosition()));var h=T(u,this.clonePosition());l={style:p,styleLocation:h}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var d=T(i,this.clonePosition());if(l&&yn(l?.style,"::",0)){var x=rs(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(x,l.styleLocation);return f.err?f:{val:{type:L.number,value:n,location:d,style:f.val},err:null}}else{if(x.length===0)return this.error(g.EXPECT_DATE_TIME_SKELETON,d);var v=x;this.locale&&(v=_n(x,this.locale));var p={type:ce.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?un(v):{}},b=a==="date"?L.date:L.time;return{val:{type:b,value:n,location:d,style:p},err:null}}}return{val:{type:a==="number"?L.number:a==="date"?L.date:L.time,value:n,location:d,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,T(A,_({},A)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),P=0;if(a!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),N=this.parseIdentifierIfPossible(),P=f.val}var w=this.tryParsePluralOrSelectOptions(t,a,r,N);if(w.err)return w;var m=this.tryParseArgumentClose(i);if(m.err)return m;var O=T(i,this.clonePosition());return a==="select"?{val:{type:L.select,value:n,options:bn(w.val),location:O},err:null}:{val:{type:L.plural,value:n,options:bn(w.val),offset:P,pluralType:a==="plural"?"cardinal":"ordinal",location:O},err:null}}default:return this.error(g.INVALID_ARGUMENT_TYPE,T(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,T(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 i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,T(i,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=dn(t)}catch{return this.error(g.INVALID_NUMBER_SKELETON,r)}return{val:{type:ce.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?An(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],c=new Set,l=i.value,u=i.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=T(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,T(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([l,{value:m.val,location:T(h,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location}return a.length===0?this.error(r==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(g.MISSING_OTHER_CLAUSE,T(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=T(i,this.clonePosition());return o?(s*=n,ts(s)?{val:s,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=Sn(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(yn(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()&&Cn(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 ur(e){return e>=97&&e<=122||e>=65&&e<=90}function is(e){return ur(e)||e===47}function os(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 Cn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ss(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 hr(e){e.forEach(function(t){if(delete t.location,st(t)||at(t))for(var r in t.options)delete t.options[r].location,hr(t.options[r].value);else nt(t)&<(t.style)||(it(t)||ot(t))&&Ie(t.style)?delete t.style.location:ct(t)&&hr(t.children)})}function Ln(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new vn(e,t).parse();if(r.err){var n=SyntaxError(g[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||hr(r.val),r.val}function He(e,t){var r=t&&t.cache?t.cache:fs,n=t&&t.serializer?t.serializer:hs,i=t&&t.strategy?t.strategy:cs;return i(e,{cache:r,serializer:n})}function as(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rn(e,t,r,n){var i=as(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Nn(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function fr(e,t,r,n,i){return r.bind(t,e,n,i)}function cs(e,t){var r=e.length===1?Rn:Nn;return fr(e,this,r,t.cache.create(),t.serializer)}function ls(e,t){return fr(e,this,Nn,t.cache.create(),t.serializer)}function us(e,t){return fr(e,this,Rn,t.cache.create(),t.serializer)}var hs=function(){return JSON.stringify(arguments)};function pr(){this.cache=Object.create(null)}pr.prototype.get=function(e){return this.cache[e]};pr.prototype.set=function(e,t){this.cache[e]=t};var fs={create:function(){return new pr}},ut={variadic:ls,monadic:us};var le;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(le||(le={}));var De=function(e){Oe(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var mr=function(e){Oe(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),le.INVALID_VALUE,o)||this}return t}(De);var wn=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),le.INVALID_VALUE,i)||this}return t}(De);var On=function(e){Oe(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,'"'),le.MISSING_VALUE,n)||this}return t}(De);var B;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(B||(B={}));function ps(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==B.literal||r.type!==B.literal?t.push(r):n.value+=r.value,t},[])}function ms(e){return typeof e=="function"}function Ue(e,t,r,n,i,o,s){if(e.length===1&&nr(e[0]))return[{type:B.literal,value:e[0].value}];for(var a=[],c=0,l=e;c0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Cn,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 In=On;var gs=/[0-9\-+#]/,xs=/[^\d\-+#]/g;function Mn(e){return e.search(gs)}function As(e="#.##"){let t={},r=e.length,n=Mn(e);t.prefix=n>0?e.substring(0,n):"";let i=Mn(e.split("").reverse().join("")),o=r-i,s=e.substring(o,o+1),a=o+(s==="."||s===","?1:0);t.suffix=i>0?e.substring(a,r):"",t.mask=e.substring(n,a),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(xs);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 _s(e,t,r){let n=!1,i={value:e};e<0&&(n=!0,i.value=-i.value),i.sign=n?"-":"",i.value=Number(i.value).toFixed(t.fraction&&t.fraction.length),i.value=Number(i.value).toString();let o=t.fraction&&t.fraction.lastIndexOf("0"),[s="0",a=""]=i.value.split(".");return(!a||a&&a.length<=o)&&(a=o<0?"":(+("0."+a)).toFixed(o+1).replace("0.","")),i.integer=s,i.fraction=a,Ts(i,t),(i.result==="0"||i.result==="")&&(n=!1,i.sign=""),!n&&t.maskHasPositiveSign?i.sign="+":n&&t.maskHasPositiveSign?i.sign="-":n&&(i.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),i}function Ts(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),i=n&&n.indexOf("0");if(i>-1)for(;e.integer.lengthe*12,Gn=(e,t)=>{let{start:r,end:n,displaySummary:{amount:i,duration:o,minProductQuantity:s,outcomeType:a}={}}=e;if(!(i&&o&&a&&s))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),u=new Date(n);return c>=l&&c<=u},ue={MONTH:"MONTH",YEAR:"YEAR"},Ss={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},Er=(e,t)=>({accept:e,round:t}),Ps=[Er(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Er(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Er(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],gr={[oe.YEAR]:{[$.MONTHLY]:ue.MONTH,[$.ANNUAL]:ue.YEAR},[oe.MONTH]:{[$.MONTHLY]:ue.MONTH}},vs=(e,t)=>e.indexOf(`'${t}'`)===0,Cs=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Vn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Rs(e)),r},Ls=e=>{let t=Ns(e),r=vs(e,t),n=e.replace(/'.*?'/,""),i=Bn.test(n)||kn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},Fn=e=>e.replace(Bn,Un).replace(kn,Un),Rs=e=>e.match(/#(.?)#/)?.[1]===Dn?bs:Dn,Ns=e=>e.match(/'(.*?)'/)?.[1]??"",Vn=e=>e.match(/0(.?)0/)?.[1]??"";function _e({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=Ls(e),l=r?Vn(e):"",u=Cs(e,r),f=r?2:0,p=o(t,{currencySymbol:s}),h=n?p.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Hn(u,p),m=r?h.lastIndexOf(l):h.length,d=h.substring(0,m),x=h.substring(m+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,h).replace(/SYMBOL/,s),currencySymbol:s,decimals:x,decimalsDelimiter:l,hasCurrencySpace:c,integer:d,isCurrencyFirst:a,recurrenceTerm:i}}var Yn=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=Ss[r]??1;return _e(e,i>1?ue.MONTH:gr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=Ps.find(({accept:c})=>c(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},$n=({commitment:e,term:t,...r})=>_e(r,gr[e]?.[t]),Wn=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:c}=e;if(t===oe.YEAR&&c===$.MONTHLY){if(!s)return _e(e,ue.YEAR,dr);let{displaySummary:{outcomeType:l,duration:u,minProductQuantity:f=1}={}}=s;switch(l){case"PERCENTAGE_DISCOUNT":if(a>=f&&Gn(s,r)){let p=parseInt(u.replace("P","").replace("M",""));if(isNaN(p))return dr(n);let h=a*i*p,m=a*o*(12-p),d=Math.round((h+m)*100)/100;return _e({...e,price:d},ue.YEAR)}default:return _e(e,ue.YEAR,()=>dr(o??n))}}return _e(e,gr[t]?.[c])};var xr={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",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},ws=Ur("ConsonantTemplates/price"),Os=/<\/?[^>]+(>|$)/g,I={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",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"},re={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Ar="TAX_EXCLUSIVE",Is=e=>Mr(e)?Object.entries(e).filter(([,t])=>Ee(t)||We(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Ir(n)+'"'}`,""):"",H=(e,t,r,n=!1)=>`${n?Fn(t):t??""}`;function K(e,t,r,n){let i=e[r];if(i==null)return"";try{return new In(i.replace(Os,""),t).format(n)}catch{return ws.error("Failed to format literal:",i),""}}function Ms(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:u,taxInclusivityLabel:f},p={}){let h=H(I.currencySymbol,n),m=H(I.currencySpace,s?" ":""),d="";return t?d=`${t}`:r&&(d=`${r}`),c&&(d+=h+m),d+=H(I.integer,a),d+=H(I.decimalsDelimiter,o),d+=H(I.decimals,i),c||(d+=m+h),d+=H(I.recurrence,l,null,!0),d+=H(I.unitType,u,null,!0),d+=H(I.taxInclusivity,f,!0),H(e,d,{...p})}var F=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:n=!1,instant:i=void 0}={})=>({country:o,displayFormatted:s=!0,displayRecurrence:a=!0,displayPerUnit:c=!1,displayTax:l=!1,language:u,literals:f={},quantity:p=1}={},{commitment:h,offerSelectorIds:m,formatString:d,price:x,priceWithoutDiscount:v,taxDisplay:b,taxTerm:A,term:N,usePrecision:P,promotion:w}={},O={})=>{Object.entries({country:o,formatString:d,language:u,price:x}).forEach(([vi,Ci])=>{if(Ci==null)throw new Error(`Argument "${vi}" is missing for osi ${m?.toString()}, country ${o}, language ${u}`)});let U={...xr,...f},R=`${u.toLowerCase()}-${o.toUpperCase()}`,D=r&&v?v:x,M=t?Yn:$n;n&&(M=Wn);let{accessiblePrice:J,recurrenceTerm:q,...fe}=M({commitment:h,formatString:d,instant:i,isIndianPrice:o==="IN",originalPrice:x,priceWithoutDiscount:v,price:t?x:D,promotion:w,quantity:p,term:N,usePrecision:P}),mt="",dt="",Et="";E(a)&&q&&(Et=K(U,R,re.recurrenceLabel,{recurrenceTerm:q}));let gt="";E(c)&&(gt=K(U,R,re.perUnitLabel,{perUnit:"LICENSE"}));let xt="";E(l)&&A&&(xt=K(U,R,b===Ar?re.taxExclusiveLabel:re.taxInclusiveLabel,{taxTerm:A})),r&&(mt=K(U,R,re.strikethroughAriaLabel,{strikethroughPrice:mt})),e&&(dt=K(U,R,re.alternativePriceAriaLabel,{alternativePrice:dt}));let pe=I.container;if(t&&(pe+=" "+I.containerOptical),r&&(pe+=" "+I.containerStrikethrough),e&&(pe+=" "+I.containerAlternative),n&&(pe+=" "+I.containerAnnual),E(s))return Ms(pe,{...fe,accessibleLabel:mt,altAccessibleLabel:dt,recurrenceLabel:Et,perUnitLabel:gt,taxInclusivityLabel:xt},O);let{currencySymbol:Sr,decimals:Ti,decimalsDelimiter:yi,hasCurrencySpace:Pr,integer:bi,isCurrencyFirst:Si}=fe,me=[bi,yi,Ti];Si?(me.unshift(Pr?"\xA0":""),me.unshift(Sr)):(me.push(Pr?"\xA0":""),me.push(Sr)),me.push(Et,gt,xt);let Pi=me.join("");return H(pe,Pi,O)},jn=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||E(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?F({displayStrikethrough:!0})(e,t,r)+" ":""}${F({isAlternativePrice:i})(e,t,r)}`},Xn=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let i={...e,displayTax:!1,displayPerUnit:!1},s=(e.displayOldPrice===void 0||E(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?F({displayStrikethrough:!0})(i,t,r)+" ":""}${F({isAlternativePrice:s})(e,t,r)}${H(I.containerAnnualPrefix," (")}${F({displayAnnual:!0,instant:n})(i,t,r)}${H(I.containerAnnualSuffix,")")}`},qn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${F({isAlternativePrice:e.displayOldPrice})(e,t,r)}${H(I.containerAnnualPrefix," (")}${F({displayAnnual:!0})(n,t,r)}${H(I.containerAnnualSuffix,")")}`};var Be={...I,containerLegal:"price-legal",planType:"price-plan-type"},ht={...re,planTypeLabel:"planTypeLabel"};function Hs(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=H(Be.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=H(Be.taxInclusivity,r,!0),o+=H(Be.planType,n,null),t&&(r||n)&&(o+=")"),H(e,o,{...i})}var zn=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:c}={},l={})=>{let u={...xr,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,p="";E(t)&&(p=K(u,f,ht.perUnitLabel,{perUnit:"LICENSE"}));let h="";e==="US"&&i==="en"&&(r=!1),E(r)&&a&&(h=K(u,f,s===Ar?ht.taxExclusiveLabel:ht.taxInclusiveLabel,{taxTerm:a}));let m="";E(n)&&c&&(m=K(u,f,ht.planTypeLabel,{planType:c}));let d=Be.container;return d+=" "+Be.containerLegal,Hs(d,{perUnitLabel:p,taxInclusivityLabel:h,planTypeLabel:m},l)};var Qn=F(),Kn=jn(),Zn=F({displayOptical:!0}),Jn=F({displayStrikethrough:!0}),ei=F({displayAnnual:!0}),ti=F({displayOptical:!0,isAlternativePrice:!0}),ri=F({isAlternativePrice:!0}),ni=qn(),ii=Xn(),oi=zn;var Ds=(e,t)=>{if(!(!Pe(e)||!Pe(t)))return Math.floor((t-e)/t*100)},si=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Ds(r,n);return i===void 0?'':`${i}%`};var ai=si();var li="INDIVIDUAL_COM",_r="TEAM_COM",ui="INDIVIDUAL_EDU",Tr="TEAM_EDU",ci=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Us={[li]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[_r]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[ui]:["LT_lt","LV_lv","SA_en","SG_en"],[Tr]:["SG_en","KR_ko"]},Bs={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},ks=[li,_r,ui,Tr],Gs=e=>[_r,Tr].includes(e),Fs=(e,t,r,n)=>{let i=`${e}_${t}`,o=`${r}_${n}`,s=Bs[i];if(s){let a=ks.indexOf(o);return s[a]}return Gs(o)},Vs=(e,t,r,n)=>{let i=`${e}_${t}`;if(ci.includes(e)||ci.includes(i))return!0;let o=Us[`${r}_${n}`];return o?o.includes(e)||o.includes(i)?!0:y.displayTax:y.displayTax},hi=async(e,t,r,n)=>{let i=Vs(e,t,r,n);return{displayTax:i,forceTaxExclusive:i?Fs(e,t,r,n):y.forceTaxExclusive}},ke=class ke extends HTMLSpanElement{constructor(){super();S(this,"masElement",new Ae(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=G();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:p,quantity:h,alternativePrice:m,template:d,wcsOsi:x}=n.collectPriceOptions(r);return Ze(ke,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:p,quantity:h,alternativePrice:m,template:d,wcsOsi:x})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,i){this.masElement.attributeChangedCallback(r,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===j}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let n=G();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;if(C(Se)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await n.resolveOfferSelectors(i),l=Re(await c,i);if(l?.length){let{country:u,language:f}=i,p=l[0],[h=""]=p.marketSegments,m=await hi(u,f,p.customerSegment,h);this.dataset.displayTax||(i.displayTax=m?.displayTax||i.displayTax),this.dataset.forceTaxExclusive||(i.forceTaxExclusive=m?.forceTaxExclusive||i.forceTaxExclusive)}}let s=this.masElement.togglePending(i);this.innerHTML="";let[a]=n.resolveOfferSelectors(i);try{let c=await a;return this.renderOffers(Re(c,i),i,s)}catch(c){throw this.innerHTML="",c}}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=G();if(!o)return!1;let s=o.collectPriceOptions({...this.dataset,...n},this);if(i??(i=this.masElement.togglePending(s)),r.length){if(this.masElement.toggleResolved(i,r,s)){this.innerHTML=o.buildPriceHTML(r,s);let a=this.closest("p, h3, div");if(!a||!a.querySelector('span[data-template="strikethrough"]')||a.querySelector(".alt-aria-label"))return!0;let c=a?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===a.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=o.buildPriceHTML(r,l.options))}),!0}}else{let a=new Error(`Not provided: ${s?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(i,a,s))return this.innerHTML="",!0}return!1}updateOptions(r){let n=G();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:p,template:h,wcsOsi:m}=n.collectPriceOptions(r);return Je(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:p,template:h,wcsOsi:m}),!0}};S(ke,"is","inline-price"),S(ke,"tag","span");var Z=ke;window.customElements.get(Z.is)||window.customElements.define(Z.is,Z,{extends:Z.tag});function fi({literals:e,providers:t,settings:r}){function n(s,a=null){let c=structuredClone(r);if(a)for(let w of t.price)w(a,c);let{displayOldPrice:l,displayPerUnit:u,displayRecurrence:f,displayTax:p,displayPlanType:h,forceTaxExclusive:m,perpetual:d,displayAnnual:x,promotionCode:v,quantity:b,alternativePrice:A,wcsOsi:N,...P}=Object.assign(c,a?.dataset??{},s??{});return Object.assign(c,ve({...P,displayOldPrice:E(l),displayPerUnit:E(u),displayRecurrence:E(f),displayTax:E(p),displayPlanType:E(h),forceTaxExclusive:E(m),perpetual:E(d),displayAnnual:E(x),promotionCode:Xe(v).effectivePromoCode,quantity:ge(b,y.quantity),alternativePrice:E(A),wcsOsi:ze(N)})),c}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:c}=a,l;switch(c){case"discount":l=ai;break;case"strikethrough":l=Jn;break;case"annual":l=ei;break;case"legal":l=oi;break;default:a.template==="optical"&&a.alternativePrice?l=ti:a.template==="optical"?l=Zn:a.displayAnnual&&s[0].planType==="ABM"?l=a.promotionCode?ii:ni:a.alternativePrice?l=ri:l=a.promotionCode?Kn:Qn}let u=n(a);u.literals=Object.assign({},e.price,ve(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},l(u,f)}let o=Z.createInlinePrice;return{InlinePrice:Z,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Ys({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||y.language),t??(t=e?.split("_")?.[1]||y.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function pi(e={}){let t=C(Se)==="on",{commerce:r={}}=e,n=X.PRODUCTION,i=wt,o=C("checkoutClientId",r)??y.checkoutClientId,s=Ce(C("checkoutWorkflowStep",r),k,y.checkoutWorkflowStep),a=E(C("displayOldPrice",r),t?y.displayOldPrice:!y.displayOldPrice),c=E(C("displayPerUnit",r),t?y.displayPerUnit:!y.displayPerUnit),l=E(C("displayRecurrence",r),y.displayRecurrence),u=E(C("displayTax",r),y.displayTax),f=E(C("displayPlanType",r),y.displayPlanType),p=E(C("entitlement",r),y.entitlement),h=E(C("modal",r),y.modal),m=E(C("forceTaxExclusive",r),y.forceTaxExclusive),d=C("promotionCode",r)??y.promotionCode,x=ge(C("quantity",r)),v=C("wcsApiKey",r)??y.wcsApiKey,b=r?.env==="stage",A=te.PUBLISHED;["true",""].includes(r.allowOverride)&&(b=(C(Rt,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",A=Ce(C(Nt,r),te,A)),b&&(n=X.STAGE,i=Ot);let P=C(Lt)??e.preview,w=typeof P<"u"&&P!=="off"&&P!=="false",O={};w&&(O={preview:w});let U=C("mas-io-url")??e.masIOUrl??`https://www${n===X.STAGE?".stage":""}.adobe.com/mas/io`,R=C("preselect-plan")??void 0;return{...Ys(e),...O,displayOldPrice:a,checkoutClientId:o,checkoutWorkflowStep:s,displayPerUnit:c,displayRecurrence:l,displayTax:u,displayPlanType:f,entitlement:p,extraOptions:y.extraOptions,modal:h,env:n,forceTaxExclusive:m,promotionCode:d,quantity:x,alternativePrice:y.alternativePrice,wcsApiKey:v,wcsURL:i,landscape:A,masIOUrl:U,...R&&{preselectPlan:R}}}async function mi(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{let s=await fetch(e,t);return s.retryCount=o,s}catch(s){if(i=s,i.retryCount=o,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var $s="mas-commerce-service";function ft(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function di(){return document.getElementsByTagName($s)?.[0]}var yr="wcs";function Ei({settings:e}){let t=Y.module(yr),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function c(h,m,d=!0){let x=G(),v=St;t.debug("Fetching:",h);let b="",A;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let N=new Map(m),[P]=h.offerSelectorIds,w=Date.now()+Math.random().toString(36).substring(2,7),O=`${yr}:${P}:${w}${Mt}`,U=`${yr}:${P}:${w}${Ht}`,R;try{if(performance.mark(O),b=new URL(e.wcsURL),b.searchParams.set("offer_selector_ids",P),b.searchParams.set("country",h.country),b.searchParams.set("locale",h.locale),b.searchParams.set("landscape",r===X.STAGE?"ALL":e.landscape),b.searchParams.set("api_key",n),h.language&&b.searchParams.set("language",h.language),h.promotionCode&&b.searchParams.set("promotion_code",h.promotionCode),h.currency&&b.searchParams.set("currency",h.currency),A=await mi(b.toString(),{credentials:"omit"}),A.ok){let D=[];try{let M=await A.json();t.debug("Fetched:",h,M),D=M.resolvedOffers??[]}catch(M){t.error(`Error parsing JSON: ${M.message}`,{...M.context,...x?.duration})}D=D.map(Le),m.forEach(({resolve:M},J)=>{let q=D.filter(({offerSelectorIds:fe})=>fe.includes(J)).flat();q.length&&(N.delete(J),m.delete(J),M(q))})}else v=bt}catch(D){v=`Network error: ${D.message}`}finally{R=performance.measure(U,O),performance.clearMarks(O),performance.clearMeasures(U)}if(d&&m.size){t.debug("Missing:",{offerSelectorIds:[...m.keys()]});let D=Vr(A);m.forEach(M=>{M.reject(new xe(v,{...h,...D,response:A,measure:ft(R),...x?.duration}))})}}function l(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:m,promises:d})=>c(m,d))}function u(h){if(!h||typeof h!="object")throw new TypeError("Cache must be a Map or similar object");let m=r===X.STAGE?"stage":"prod",d=h[m];if(!d||typeof d!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[x,v]of Object.entries(d))i.set(x,Promise.resolve(v.map(Le)));t.debug(`Prefilled WCS cache with ${d.size} entries`)}function f(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function p({country:h,language:m,perpetual:d=!1,promotionCode:x="",wcsOsi:v=[]}){let b=`${m}_${h}`;h!=="GB"&&!d&&(m="MULT");let A=[h,m,x].filter(N=>N).join("-").toLowerCase();return v.map(N=>{let P=`${N}-${A}`;if(i.has(P))return i.get(P);let w=new Promise((O,U)=>{let R=o.get(A);if(!R){let D={country:h,locale:b,offerSelectorIds:[]};h!=="GB"&&!d&&(D.language=m),R={options:D,promises:new Map},o.set(A,R)}x&&(R.options.promotionCode=x),R.options.offerSelectorIds.push(N),R.promises.set(N,{resolve:O,reject:U}),l()}).catch(O=>{if(a.has(P))return a.get(P);throw O});return i.set(P,w),w})}return{Commitment:oe,PlanType:kr,Term:$,applyPlanType:Le,resolveOfferSelectors:p,flushWcsCacheInternal:f,prefillWcsCache:u}}var gi="mas-commerce-service",xi="mas-commerce-service:start",Ai="mas-commerce-service:ready",Ge,pt,_i,br=class extends HTMLElement{constructor(){super(...arguments);ie(this,pt);ie(this,Ge);S(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,i,o)=>{let s=await r?.(n,i,this.imsSignedInPromise,o);return s||null})}activate(){let r=ne(this,pt,_i),n=pi(r);Qe(r.lana);let i=Y.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:sn(n)},a={checkout:new Set,price:new Set},c={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...rn(c),...nn(c),...fi(c),...Ei(c),...Dt,Log:Y,get defaults(){return y},get log(){return Y},get providers(){return{checkout(u){return a.checkout.add(u),()=>a.checkout.delete(u)},price(u){return a.price.add(u),()=>a.price.delete(u)},has:u=>a.price.has(u)||a.checkout.has(u)}},get settings(){return n}})),i.debug("Activated:",{literals:s,settings:n});let l=new CustomEvent(Ye,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Ai),de(this,Ge,performance.measure(Ai,xi)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(xi),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(At).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":ft(ne(this,Ge))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:i})=>i>this.lastLoggingTime).filter(({transferSize:i,duration:o,responseStatus:s})=>i===0&&o===0&&s<200||s>=400),n=Array.from(new Map(r.map(i=>[i.name,i])).values());if(n.some(({name:i})=>/(\/fragments\/|web_commerce_artifact)/.test(i))){let i=n.map(({name:o})=>o);this.log.error("Failed requests:",{failedUrls:i,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};Ge=new WeakMap,pt=new WeakSet,_i=function(){let r=this.getAttribute("env")??"prod",n={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(i=>{let o=this.getAttribute(i);o&&(n[i]=o)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(i=>{let o=this.getAttribute(i);if(o!=null){let s=i.replace(/-([a-z])/g,a=>a[1].toUpperCase());n.commerce[s]=o}}),n};window.customElements.get(gi)||window.customElements.define(gi,br);var Fe=class Fe extends tt(HTMLButtonElement){static createCheckoutButton(t={},r=""){return et(Fe,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)}};S(Fe,"is","checkout-button"),S(Fe,"tag","button");var Te=Fe;window.customElements.get(Te.is)||window.customElements.define(Te.is,Te,{extends:Te.tag});function Ws(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var Ve,he=class he extends HTMLAnchorElement{constructor(){super();ie(this,Ve,!1);this.setAttribute("is",he.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),de(this,Ve,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){ne(this,Ve)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let f=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${f}`);return}let n=di(),i=[r],o=this.getAttribute("data-promotion-code"),{country:s,language:a,env:c}=n.settings,l={country:s,language:a,wcsOsi:i,promotionCode:o},u=n.resolveOfferSelectors(l);Promise.all(u).then(([[f]])=>{let p=`locale=${a}_${s}&country=${s}&offer_id=${f.offerId}`;o&&(p+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${Ws(c)}?${p}`}).catch(f=>{console.error(`Could not resolve offer selectors for id: ${r}.`,f.message)})}static createFrom(r){let n=new he;for(let i of r.attributes)i.name!=="is"&&(i.name==="class"&&i.value.includes("upt-link")?n.setAttribute("class",i.value.replace("upt-link","").trim()):n.setAttribute(i.name,i.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};Ve=new WeakMap,S(he,"is","upt-link"),S(he,"tag","a"),S(he,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var ye=he;window.customElements.get(ye.is)||window.customElements.define(ye.is,ye,{extends:ye.tag});export{wr as CheckoutWorkflow,k as CheckoutWorkflowStep,y as Defaults,Y as Log,Le as applyPlanType,hi as resolvePriceTaxFlags}; +`,le.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));A=u.options[N]||u.options.other}if(!A)throw new mr(u.value,p,Object.keys(u.options),s);a.push.apply(a,Ue(A.value,t,r,n,i,p-(u.offset||0)));continue}}return ps(a)}function ds(e,t){return t?_(_(_({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=_(_({},e[n]),t[n]||{}),r},{})):e}function Es(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ds(e[n],t[n]),r},_({},e)):e}function dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function gs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:He(function(){for(var t,r=[],n=0;n0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Ln,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 Mn=In;var xs=/[0-9\-+#]/,As=/[^\d\-+#]/g;function Hn(e){return e.search(xs)}function _s(e="#.##"){let t={},r=e.length,n=Hn(e);t.prefix=n>0?e.substring(0,n):"";let i=Hn(e.split("").reverse().join("")),o=r-i,s=e.substring(o,o+1),a=o+(s==="."||s===","?1:0);t.suffix=i>0?e.substring(a,r):"",t.mask=e.substring(n,a),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(As);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 Ts(e,t,r){let n=!1,i={value:e};e<0&&(n=!0,i.value=-i.value),i.sign=n?"-":"",i.value=Number(i.value).toFixed(t.fraction&&t.fraction.length),i.value=Number(i.value).toString();let o=t.fraction&&t.fraction.lastIndexOf("0"),[s="0",a=""]=i.value.split(".");return(!a||a&&a.length<=o)&&(a=o<0?"":(+("0."+a)).toFixed(o+1).replace("0.","")),i.integer=s,i.fraction=a,ys(i,t),(i.result==="0"||i.result==="")&&(n=!1,i.sign=""),!n&&t.maskHasPositiveSign?i.sign="+":n&&t.maskHasPositiveSign?i.sign="-":n&&(i.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),i}function ys(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),i=n&&n.indexOf("0");if(i>-1)for(;e.integer.lengthe*12,Fn=(e,t)=>{let{start:r,end:n,displaySummary:{amount:i,duration:o,minProductQuantity:s,outcomeType:a}={}}=e;if(!(i&&o&&a&&s))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),u=new Date(n);return c>=l&&c<=u},ue={MONTH:"MONTH",YEAR:"YEAR"},Ps={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},gr=(e,t)=>({accept:e,round:t}),vs=[gr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),gr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),gr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],xr={[oe.YEAR]:{[$.MONTHLY]:ue.MONTH,[$.ANNUAL]:ue.YEAR},[oe.MONTH]:{[$.MONTHLY]:ue.MONTH}},Cs=(e,t)=>e.indexOf(`'${t}'`)===0,Ls=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Yn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Ns(e)),r},Rs=e=>{let t=ws(e),r=Cs(e,t),n=e.replace(/'.*?'/,""),i=kn.test(n)||Gn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},Vn=e=>e.replace(kn,Bn).replace(Gn,Bn),Ns=e=>e.match(/#(.?)#/)?.[1]===Un?Ss:Un,ws=e=>e.match(/'(.*?)'/)?.[1]??"",Yn=e=>e.match(/0(.?)0/)?.[1]??"";function _e({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=Rs(e),l=r?Yn(e):"",u=Ls(e,r),f=r?2:0,p=o(t,{currencySymbol:s}),h=n?p.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Dn(u,p),m=r?h.lastIndexOf(l):h.length,d=h.substring(0,m),x=h.substring(m+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,h).replace(/SYMBOL/,s),currencySymbol:s,decimals:x,decimalsDelimiter:l,hasCurrencySpace:c,integer:d,isCurrencyFirst:a,recurrenceTerm:i}}var $n=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=Ps[r]??1;return _e(e,i>1?ue.MONTH:xr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=vs.find(({accept:c})=>c(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},Wn=({commitment:e,term:t,...r})=>_e(r,xr[e]?.[t]),jn=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:c}=e;if(t===oe.YEAR&&c===$.MONTHLY){if(!s)return _e(e,ue.YEAR,Er);let{displaySummary:{outcomeType:l,duration:u,minProductQuantity:f=1}={}}=s;switch(l){case"PERCENTAGE_DISCOUNT":if(a>=f&&Fn(s,r)){let p=parseInt(u.replace("P","").replace("M",""));if(isNaN(p))return Er(n);let h=a*i*p,m=a*o*(12-p),d=Math.round((h+m)*100)/100;return _e({...e,price:d},ue.YEAR)}default:return _e(e,ue.YEAR,()=>Er(o??n))}}return _e(e,xr[t]?.[c])};var Ar={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",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},Os=Br("ConsonantTemplates/price"),Is=/<\/?[^>]+(>|$)/g,I={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",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"},re={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},_r="TAX_EXCLUSIVE",Ms=e=>Hr(e)?Object.entries(e).filter(([,t])=>Ee(t)||We(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Mr(n)+'"'}`,""):"",H=(e,t,r,n=!1)=>`${n?Vn(t):t??""}`;function K(e,t,r,n){let i=e[r];if(i==null)return"";try{return new Mn(i.replace(Is,""),t).format(n)}catch{return Os.error("Failed to format literal:",i),""}}function Hs(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:u,taxInclusivityLabel:f},p={}){let h=H(I.currencySymbol,n),m=H(I.currencySpace,s?" ":""),d="";return t?d=`${t}`:r&&(d=`${r}`),c&&(d+=h+m),d+=H(I.integer,a),d+=H(I.decimalsDelimiter,o),d+=H(I.decimals,i),c||(d+=m+h),d+=H(I.recurrence,l,null,!0),d+=H(I.unitType,u,null,!0),d+=H(I.taxInclusivity,f,!0),H(e,d,{...p})}var F=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:n=!1,instant:i=void 0}={})=>({country:o,displayFormatted:s=!0,displayRecurrence:a=!0,displayPerUnit:c=!1,displayTax:l=!1,language:u,literals:f={},quantity:p=1}={},{commitment:h,offerSelectorIds:m,formatString:d,price:x,priceWithoutDiscount:v,taxDisplay:b,taxTerm:A,term:N,usePrecision:P,promotion:w}={},O={})=>{Object.entries({country:o,formatString:d,language:u,price:x}).forEach(([Ci,Li])=>{if(Li==null)throw new Error(`Argument "${Ci}" is missing for osi ${m?.toString()}, country ${o}, language ${u}`)});let U={...Ar,...f},R=`${u.toLowerCase()}-${o.toUpperCase()}`,D=r&&v?v:x,M=t?$n:Wn;n&&(M=jn);let{accessiblePrice:J,recurrenceTerm:q,...fe}=M({commitment:h,formatString:d,instant:i,isIndianPrice:o==="IN",originalPrice:x,priceWithoutDiscount:v,price:t?x:D,promotion:w,quantity:p,term:N,usePrecision:P}),mt="",dt="",Et="";E(a)&&q&&(Et=K(U,R,re.recurrenceLabel,{recurrenceTerm:q}));let gt="";E(c)&&(gt=K(U,R,re.perUnitLabel,{perUnit:"LICENSE"}));let xt="";E(l)&&A&&(xt=K(U,R,b===_r?re.taxExclusiveLabel:re.taxInclusiveLabel,{taxTerm:A})),r&&(mt=K(U,R,re.strikethroughAriaLabel,{strikethroughPrice:mt})),e&&(dt=K(U,R,re.alternativePriceAriaLabel,{alternativePrice:dt}));let pe=I.container;if(t&&(pe+=" "+I.containerOptical),r&&(pe+=" "+I.containerStrikethrough),e&&(pe+=" "+I.containerAlternative),n&&(pe+=" "+I.containerAnnual),E(s))return Hs(pe,{...fe,accessibleLabel:mt,altAccessibleLabel:dt,recurrenceLabel:Et,perUnitLabel:gt,taxInclusivityLabel:xt},O);let{currencySymbol:Pr,decimals:yi,decimalsDelimiter:bi,hasCurrencySpace:vr,integer:Si,isCurrencyFirst:Pi}=fe,me=[Si,bi,yi];Pi?(me.unshift(vr?"\xA0":""),me.unshift(Pr)):(me.push(vr?"\xA0":""),me.push(Pr)),me.push(Et,gt,xt);let vi=me.join("");return H(pe,vi,O)},Xn=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||E(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?F({displayStrikethrough:!0})(e,t,r)+" ":""}${F({isAlternativePrice:i})(e,t,r)}`},qn=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let i={...e,displayTax:!1,displayPerUnit:!1},s=(e.displayOldPrice===void 0||E(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?F({displayStrikethrough:!0})(i,t,r)+" ":""}${F({isAlternativePrice:s})(e,t,r)}${H(I.containerAnnualPrefix," (")}${F({displayAnnual:!0,instant:n})(i,t,r)}${H(I.containerAnnualSuffix,")")}`},zn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${F({isAlternativePrice:e.displayOldPrice})(e,t,r)}${H(I.containerAnnualPrefix," (")}${F({displayAnnual:!0})(n,t,r)}${H(I.containerAnnualSuffix,")")}`};var Be={...I,containerLegal:"price-legal",planType:"price-plan-type"},ht={...re,planTypeLabel:"planTypeLabel"};function Ds(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=H(Be.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=H(Be.taxInclusivity,r,!0),o+=H(Be.planType,n,null),t&&(r||n)&&(o+=")"),H(e,o,{...i})}var Qn=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:c}={},l={})=>{let u={...Ar,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,p="";E(t)&&(p=K(u,f,ht.perUnitLabel,{perUnit:"LICENSE"}));let h="";e==="US"&&i==="en"&&(r=!1),E(r)&&a&&(h=K(u,f,s===_r?ht.taxExclusiveLabel:ht.taxInclusiveLabel,{taxTerm:a}));let m="";E(n)&&c&&(m=K(u,f,ht.planTypeLabel,{planType:c}));let d=Be.container;return d+=" "+Be.containerLegal,Ds(d,{perUnitLabel:p,taxInclusivityLabel:h,planTypeLabel:m},l)};var Kn=F(),Zn=Xn(),Jn=F({displayOptical:!0}),ei=F({displayStrikethrough:!0}),ti=F({displayAnnual:!0}),ri=F({displayOptical:!0,isAlternativePrice:!0}),ni=F({isAlternativePrice:!0}),ii=zn(),oi=qn(),si=Qn;var Us=(e,t)=>{if(!(!Pe(e)||!Pe(t)))return Math.floor((t-e)/t*100)},ai=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Us(r,n);return i===void 0?'':`${i}%`};var ci=ai();var ui="INDIVIDUAL_COM",Tr="TEAM_COM",hi="INDIVIDUAL_EDU",yr="TEAM_EDU",li=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Bs={[ui]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[Tr]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[hi]:["LT_lt","LV_lv","SA_en","SG_en"],[yr]:["SG_en","KR_ko"]},ks={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},Gs=[ui,Tr,hi,yr],Fs=e=>[Tr,yr].includes(e),Vs=(e,t,r,n)=>{let i=`${e}_${t}`,o=`${r}_${n}`,s=ks[i];if(s){let a=Gs.indexOf(o);return s[a]}return Fs(o)},Ys=(e,t,r,n)=>{let i=`${e}_${t}`;if(li.includes(e)||li.includes(i))return!0;let o=Bs[`${r}_${n}`];return o?o.includes(e)||o.includes(i)?!0:y.displayTax:y.displayTax},fi=async(e,t,r,n)=>{let i=Ys(e,t,r,n);return{displayTax:i,forceTaxExclusive:i?Vs(e,t,r,n):y.forceTaxExclusive}},ke=class ke extends HTMLSpanElement{constructor(){super();S(this,"masElement",new Ae(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-quantity","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=G();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:p,quantity:h,alternativePrice:m,template:d,wcsOsi:x}=n.collectPriceOptions(r);return Ze(ke,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:p,quantity:h,alternativePrice:m,template:d,wcsOsi:x})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,i){this.masElement.attributeChangedCallback(r,n,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===j}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let n=G();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;if(C(Se)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await n.resolveOfferSelectors(i),l=Re(await c,i);if(l?.length){let{country:u,language:f}=i,p=l[0],[h=""]=p.marketSegments,m=await fi(u,f,p.customerSegment,h);this.dataset.displayTax||(i.displayTax=m?.displayTax||i.displayTax),this.dataset.forceTaxExclusive||(i.forceTaxExclusive=m?.forceTaxExclusive||i.forceTaxExclusive)}}let s=this.masElement.togglePending(i);this.innerHTML="";let[a]=n.resolveOfferSelectors(i);try{let c=await a;return this.renderOffers(Re(c,i),i,s)}catch(c){throw this.innerHTML="",c}}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=G();if(!o)return!1;let s=o.collectPriceOptions({...this.dataset,...n},this);if(Jt(r.flat(),s),i??(i=this.masElement.togglePending(s)),r.length){if(this.masElement.toggleResolved(i,r,s)){this.innerHTML=o.buildPriceHTML(r,s);let a=this.closest("p, h3, div");if(!a||!a.querySelector('span[data-template="strikethrough"]')||a.querySelector(".alt-aria-label"))return!0;let c=a?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===a.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=o.buildPriceHTML(r,l.options))}),!0}}else{let a=new Error(`Not provided: ${s?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(i,a,s))return this.innerHTML="",!0}return!1}updateOptions(r){let n=G();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:p,template:h,wcsOsi:m}=n.collectPriceOptions(r);return Je(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:p,template:h,wcsOsi:m}),!0}};S(ke,"is","inline-price"),S(ke,"tag","span");var Z=ke;window.customElements.get(Z.is)||window.customElements.define(Z.is,Z,{extends:Z.tag});function pi({literals:e,providers:t,settings:r}){function n(s,a=null){let c=structuredClone(r);if(a)for(let w of t.price)w(a,c);let{displayOldPrice:l,displayPerUnit:u,displayRecurrence:f,displayTax:p,displayPlanType:h,forceTaxExclusive:m,perpetual:d,displayAnnual:x,promotionCode:v,quantity:b,alternativePrice:A,wcsOsi:N,...P}=Object.assign(c,a?.dataset??{},s??{});return Object.assign(c,ve({...P,displayOldPrice:E(l),displayPerUnit:E(u),displayRecurrence:E(f),displayTax:E(p),displayPlanType:E(h),forceTaxExclusive:E(m),perpetual:E(d),displayAnnual:E(x),promotionCode:Xe(v).effectivePromoCode,quantity:ge(b,y.quantity),alternativePrice:E(A),wcsOsi:ze(N)})),c}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:c}=a,l;switch(c){case"discount":l=ci;break;case"strikethrough":l=ei;break;case"annual":l=ti;break;case"legal":l=si;break;default:a.template==="optical"&&a.alternativePrice?l=ri:a.template==="optical"?l=Jn:a.displayAnnual&&s[0].planType==="ABM"?l=a.promotionCode?oi:ii:a.alternativePrice?l=ni:l=a.promotionCode?Zn:Kn}let u=n(a);u.literals=Object.assign({},e.price,ve(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},l(u,f)}let o=Z.createInlinePrice;return{InlinePrice:Z,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function $s({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||y.language),t??(t=e?.split("_")?.[1]||y.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function mi(e={}){let t=C(Se)==="on",{commerce:r={}}=e,n=X.PRODUCTION,i=wt,o=C("checkoutClientId",r)??y.checkoutClientId,s=Ce(C("checkoutWorkflowStep",r),k,y.checkoutWorkflowStep),a=E(C("displayOldPrice",r),t?y.displayOldPrice:!y.displayOldPrice),c=E(C("displayPerUnit",r),t?y.displayPerUnit:!y.displayPerUnit),l=E(C("displayRecurrence",r),y.displayRecurrence),u=E(C("displayTax",r),y.displayTax),f=E(C("displayPlanType",r),y.displayPlanType),p=E(C("entitlement",r),y.entitlement),h=E(C("modal",r),y.modal),m=E(C("forceTaxExclusive",r),y.forceTaxExclusive),d=C("promotionCode",r)??y.promotionCode,x=ge(C("quantity",r)),v=C("wcsApiKey",r)??y.wcsApiKey,b=r?.env==="stage",A=te.PUBLISHED;["true",""].includes(r.allowOverride)&&(b=(C(Rt,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",A=Ce(C(Nt,r),te,A)),b&&(n=X.STAGE,i=Ot);let P=C(Lt)??e.preview,w=typeof P<"u"&&P!=="off"&&P!=="false",O={};w&&(O={preview:w});let U=C("mas-io-url")??e.masIOUrl??`https://www${n===X.STAGE?".stage":""}.adobe.com/mas/io`,R=C("preselect-plan")??void 0;return{...$s(e),...O,displayOldPrice:a,checkoutClientId:o,checkoutWorkflowStep:s,displayPerUnit:c,displayRecurrence:l,displayTax:u,displayPlanType:f,entitlement:p,extraOptions:y.extraOptions,modal:h,env:n,forceTaxExclusive:m,promotionCode:d,quantity:x,alternativePrice:y.alternativePrice,wcsApiKey:v,wcsURL:i,landscape:A,masIOUrl:U,...R&&{preselectPlan:R}}}async function di(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{let s=await fetch(e,t);return s.retryCount=o,s}catch(s){if(i=s,i.retryCount=o,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var Ws="mas-commerce-service";function ft(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function Ei(){return document.getElementsByTagName(Ws)?.[0]}var br="wcs";function gi({settings:e}){let t=Y.module(br),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function c(h,m,d=!0){let x=G(),v=St;t.debug("Fetching:",h);let b="",A;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let N=new Map(m),[P]=h.offerSelectorIds,w=Date.now()+Math.random().toString(36).substring(2,7),O=`${br}:${P}:${w}${Mt}`,U=`${br}:${P}:${w}${Ht}`,R;try{if(performance.mark(O),b=new URL(e.wcsURL),b.searchParams.set("offer_selector_ids",P),b.searchParams.set("country",h.country),b.searchParams.set("locale",h.locale),b.searchParams.set("landscape",r===X.STAGE?"ALL":e.landscape),b.searchParams.set("api_key",n),h.language&&b.searchParams.set("language",h.language),h.promotionCode&&b.searchParams.set("promotion_code",h.promotionCode),h.currency&&b.searchParams.set("currency",h.currency),A=await di(b.toString(),{credentials:"omit"}),A.ok){let D=[];try{let M=await A.json();t.debug("Fetched:",h,M),D=M.resolvedOffers??[]}catch(M){t.error(`Error parsing JSON: ${M.message}`,{...M.context,...x?.duration})}D=D.map(Le),m.forEach(({resolve:M},J)=>{let q=D.filter(({offerSelectorIds:fe})=>fe.includes(J)).flat();q.length&&(N.delete(J),m.delete(J),M(q))})}else v=bt}catch(D){v=`Network error: ${D.message}`}finally{R=performance.measure(U,O),performance.clearMarks(O),performance.clearMeasures(U)}if(d&&m.size){t.debug("Missing:",{offerSelectorIds:[...m.keys()]});let D=Yr(A);m.forEach(M=>{M.reject(new xe(v,{...h,...D,response:A,measure:ft(R),...x?.duration}))})}}function l(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:m,promises:d})=>c(m,d))}function u(h){if(!h||typeof h!="object")throw new TypeError("Cache must be a Map or similar object");let m=r===X.STAGE?"stage":"prod",d=h[m];if(!d||typeof d!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[x,v]of Object.entries(d))i.set(x,Promise.resolve(v.map(Le)));t.debug(`Prefilled WCS cache with ${d.size} entries`)}function f(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function p({country:h,language:m,perpetual:d=!1,promotionCode:x="",wcsOsi:v=[]}){let b=`${m}_${h}`;h!=="GB"&&!d&&(m="MULT");let A=[h,m,x].filter(N=>N).join("-").toLowerCase();return v.map(N=>{let P=`${N}-${A}`;if(i.has(P))return i.get(P);let w=new Promise((O,U)=>{let R=o.get(A);if(!R){let D={country:h,locale:b,offerSelectorIds:[]};h!=="GB"&&!d&&(D.language=m),R={options:D,promises:new Map},o.set(A,R)}x&&(R.options.promotionCode=x),R.options.offerSelectorIds.push(N),R.promises.set(N,{resolve:O,reject:U}),l()}).catch(O=>{if(a.has(P))return a.get(P);throw O});return i.set(P,w),w})}return{Commitment:oe,PlanType:Gr,Term:$,applyPlanType:Le,resolveOfferSelectors:p,flushWcsCacheInternal:f,prefillWcsCache:u}}var xi="mas-commerce-service",Ai="mas-commerce-service:start",_i="mas-commerce-service:ready",Ge,pt,Ti,Sr=class extends HTMLElement{constructor(){super(...arguments);ie(this,pt);ie(this,Ge);S(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,i,o)=>{let s=await r?.(n,i,this.imsSignedInPromise,o);return s||null})}activate(){let r=ne(this,pt,Ti),n=mi(r);Qe(r.lana);let i=Y.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:an(n)},a={checkout:new Set,price:new Set},c={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...nn(c),...on(c),...pi(c),...gi(c),...Dt,Log:Y,get defaults(){return y},get log(){return Y},get providers(){return{checkout(u){return a.checkout.add(u),()=>a.checkout.delete(u)},price(u){return a.price.add(u),()=>a.price.delete(u)},has:u=>a.price.has(u)||a.checkout.has(u)}},get settings(){return n}})),i.debug("Activated:",{literals:s,settings:n});let l=new CustomEvent(Ye,{bubbles:!0,cancelable:!1,detail:this});performance.mark(_i),de(this,Ge,performance.measure(_i,Ai)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Ai),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(At).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":ft(ne(this,Ge))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:i})=>i>this.lastLoggingTime).filter(({transferSize:i,duration:o,responseStatus:s})=>i===0&&o===0&&s<200||s>=400),n=Array.from(new Map(r.map(i=>[i.name,i])).values());if(n.some(({name:i})=>/(\/fragments\/|web_commerce_artifact)/.test(i))){let i=n.map(({name:o})=>o);this.log.error("Failed requests:",{failedUrls:i,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};Ge=new WeakMap,pt=new WeakSet,Ti=function(){let r=this.getAttribute("env")??"prod",n={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(i=>{let o=this.getAttribute(i);o&&(n[i]=o)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(i=>{let o=this.getAttribute(i);if(o!=null){let s=i.replace(/-([a-z])/g,a=>a[1].toUpperCase());n.commerce[s]=o}}),n};window.customElements.get(xi)||window.customElements.define(xi,Sr);var Fe=class Fe extends tt(HTMLButtonElement){static createCheckoutButton(t={},r=""){return et(Fe,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)}};S(Fe,"is","checkout-button"),S(Fe,"tag","button");var Te=Fe;window.customElements.get(Te.is)||window.customElements.define(Te.is,Te,{extends:Te.tag});function js(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var Ve,he=class he extends HTMLAnchorElement{constructor(){super();ie(this,Ve,!1);this.setAttribute("is",he.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),de(this,Ve,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){ne(this,Ve)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let f=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${f}`);return}let n=Ei(),i=[r],o=this.getAttribute("data-promotion-code"),{country:s,language:a,env:c}=n.settings,l={country:s,language:a,wcsOsi:i,promotionCode:o},u=n.resolveOfferSelectors(l);Promise.all(u).then(([[f]])=>{let p=`locale=${a}_${s}&country=${s}&offer_id=${f.offerId}`;o&&(p+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${js(c)}?${p}`}).catch(f=>{console.error(`Could not resolve offer selectors for id: ${r}.`,f.message)})}static createFrom(r){let n=new he;for(let i of r.attributes)i.name!=="is"&&(i.name==="class"&&i.value.includes("upt-link")?n.setAttribute("class",i.value.replace("upt-link","").trim()):n.setAttribute(i.name,i.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};Ve=new WeakMap,S(he,"is","upt-link"),S(he,"tag","a"),S(he,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var ye=he;window.customElements.get(ye.is)||window.customElements.define(ye.is,ye,{extends:ye.tag});export{Or as CheckoutWorkflow,k as CheckoutWorkflowStep,y as Defaults,Y as Log,Le as applyPlanType,fi as resolvePriceTaxFlags}; diff --git a/libs/deps/mas/merch-card.js b/libs/deps/mas/merch-card.js index 3f83817df0..5a9e182685 100644 --- a/libs/deps/mas/merch-card.js +++ b/libs/deps/mas/merch-card.js @@ -2427,4 +2427,4 @@ Caused by: ${this.cause}`),t}};var pr={requestId:Tt,etag:"Etag",lastModified:"La text-decoration: underline; color: var(--link-color-dark); } - `),d(Et,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",Et);function wr(o){return`https://${o==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var wt,H=class H extends HTMLAnchorElement{constructor(){super();m(this,wt,!1);this.setAttribute("is",H.is)}get isUptLink(){return!0}initializeWcsData(t,r){this.setAttribute("data-wcs-osi",t),r&&this.setAttribute("data-promotion-code",r),h(this,wt,!0),this.composePromoTermsUrl()}attributeChangedCallback(t,r,n){c(this,wt)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let t=this.getAttribute("data-wcs-osi");if(!t){let b=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${b}`);return}let r=X(),n=[t],a=this.getAttribute("data-promotion-code"),{country:i,language:s,env:l}=r.settings,p={country:i,language:s,wcsOsi:n,promotionCode:a},y=r.resolveOfferSelectors(p);Promise.all(y).then(([[b]])=>{let k=`locale=${s}_${i}&country=${i}&offer_id=${b.offerId}`;a&&(k+=`&promotion_code=${encodeURIComponent(a)}`),this.href=`${wr(l)}?${k}`}).catch(b=>{console.error(`Could not resolve offer selectors for id: ${t}.`,b.message)})}static createFrom(t){let r=new H;for(let n of t.attributes)n.name!=="is"&&(n.name==="class"&&n.value.includes("upt-link")?r.setAttribute("class",n.value.replace("upt-link","").trim()):r.setAttribute(n.name,n.value));return r.innerHTML=t.innerHTML,r.setAttribute("tabindex",0),r}};wt=new WeakMap,d(H,"is","upt-link"),d(H,"tag","a"),d(H,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var D=H;window.customElements.get(D.is)||window.customElements.define(D.is,D,{extends:D.tag});var Sr="#000000",re="#F8D904",Ar="#EAEAEA",Tr="#31A547",kr=/(accent|primary|secondary)(-(outline|link))?/,Cr="mas:product_code/",_r="daa-ll",It="daa-lh",Lr=["XL","L","M","S"],oe="...";function L(o,e,t,r){let n=r[o];if(e[o]&&n){let a={slot:n?.slot},i=e[o];if(n.maxCount&&typeof i=="string"){let[l,p]=jr(i,n.maxCount,n.withSuffix);l!==i&&(a.title=p,i=l)}let s=E(n.tag,a,i);t.append(s)}}function Rr(o,e,t){let r=o.mnemonicIcon?.map((a,i)=>({icon:a,alt:o.mnemonicAlt[i]??"",link:o.mnemonicLink[i]??""}));r?.forEach(({icon:a,alt:i,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let l={slot:"icons",src:a,loading:e.loading,size:t?.size??"l"};i&&(l.alt=i),s&&(l.href=s);let p=E("merch-icon",l);e.append(p)});let n=e.shadowRoot.querySelector('slot[name="icons"]');!r?.length&&n&&n.remove()}function Mr(o,e,t){if(t.badge?.slot){if(o.badge?.length&&!o.badge?.startsWith("${o.badge}`}L("badge",o,e,t)}else o.badge?(e.setAttribute("badge-text",o.badge),e.setAttribute("badge-color",o.badgeColor||Sr),e.setAttribute("badge-background-color",o.badgeBackgroundColor||re),e.setAttribute("border-color",o.badgeBackgroundColor||re)):e.setAttribute("border-color",o.borderColor||Ar)}function Pr(o,e,t){if(t.trialBadge&&o.trialBadge){if(!o.trialBadge.startsWith("${o.trialBadge}`}L("trialBadge",o,e,t)}}function Nr(o,e,t){t?.includes(o.size)&&e.setAttribute("size",o.size)}function zr(o,e,t){L("cardTitle",o,e,{cardTitle:t})}function Or(o,e,t){L("subtitle",o,e,t)}function $r(o,e,t,r){if(!o.backgroundColor||o.backgroundColor.toLowerCase()==="default"){e.style.removeProperty("--merch-card-custom-background-color"),e.removeAttribute("background-color");return}t?.[o.backgroundColor]?(e.style.setProperty("--merch-card-custom-background-color",`var(${t[o.backgroundColor]})`),e.setAttribute("background-color",o.backgroundColor)):r?.attribute&&o.backgroundColor&&(e.setAttribute(r.attribute,o.backgroundColor),e.style.removeProperty("--merch-card-custom-background-color"))}function Ir(o,e,t){let r=t?.borderColor,n="--merch-card-custom-border-color";o.borderColor?.toLowerCase()==="transparent"?(e.style.removeProperty(n),t?.allowedBorderColors?.includes(t?.badge?.default)&&e.style.setProperty(n,"transparent")):o.borderColor&&r&&(/-gradient/.test(o.borderColor)?(e.setAttribute("gradient-border","true"),e.style.removeProperty(n)):e.style.setProperty(n,`var(--${o.borderColor})`))}function Dr(o,e,t){if(o.backgroundImage){let r={loading:e.loading??"lazy",src:o.backgroundImage};if(o.backgroundImageAltText?r.alt=o.backgroundImageAltText:r.role="none",!t)return;if(t?.attribute){e.setAttribute(t.attribute,o.backgroundImage);return}e.append(E(t.tag,{slot:t.slot},E("img",r)))}}function Fr(o,e,t){L("prices",o,e,t)}function Ve(o,e,t){let r=o.hasAttribute("data-wcs-osi")&&!!o.getAttribute("data-wcs-osi"),n=o.className||"",a=kr.exec(n)?.[0]??"accent",i=a.includes("accent"),s=a.includes("primary"),l=a.includes("secondary"),p=a.includes("-outline"),y=a.includes("-link");o.classList.remove("accent","primary","secondary");let b;if(e.consonant)b=Wr(o,i,r,y);else if(y)b=o;else{let k;i?k="accent":s?k="primary":l&&(k="secondary"),b=e.spectrum==="swc"?Kr(o,t,p,k,r):Yr(o,t,p,k,r)}return b}function Br(o,e){let{slot:t}=e?.description,r=o.querySelectorAll(`[slot="${t}"] a[data-wcs-osi]`);r.length&&r.forEach(n=>{let a=Ve(n,o,e);n.replaceWith(a)})}function Hr(o,e,t){L("promoText",o,e,t),L("description",o,e,t),Br(e,t),L("callout",o,e,t),L("quantitySelect",o,e,t),L("whatsIncluded",o,e,t)}function Ur(o,e,t){if(!t.addon)return;let r=o.addon?.replace(/[{}]/g,"");if(!r||/disabled/.test(r))return;let n=E("merch-addon",{slot:"addon"},r);[...n.querySelectorAll(v)].forEach(a=>{let i=a.parentElement;i?.nodeName==="P"&&i.setAttribute("data-plan-type","")}),e.append(n)}function qr(o,e,t){o.addonConfirmation&&L("addonConfirmation",o,e,t)}function Gr(o,e,t,r){r?.secureLabel&&t?.secureLabel&&e.setAttribute("secure-label",r.secureLabel)}function jr(o,e,t=!0){try{let r=typeof o!="string"?"":o,n=je(r);if(n.length<=e)return[r,n];let a=0,i=!1,s=t?e-oe.length<1?1:e-oe.length:e,l=[];for(let b of r){if(a++,b==="<")if(i=!0,r[a]==="/")l.pop();else{let k="";for(let Dt of r.substring(a)){if(Dt===" "||Dt===">")break;k+=Dt}l.push(k)}if(b==="/"&&r[a]===">"&&l.pop(),b===">"){i=!1;continue}if(!i&&(s--,s===0))break}let p=r.substring(0,a).trim();if(l.length>0){l[0]==="p"&&l.shift();for(let b of l.reverse())p+=``}return[`${p}${t?oe:""}`,n]}catch{let n=typeof o=="string"?o:"",a=je(n);return[n,a]}}function je(o){if(!o)return"";let e="",t=!1;for(let r of o){if(r==="<"&&(t=!0),r===">"){t=!1;continue}t||(e+=r)}return e}function Vr(o,e){e.querySelectorAll("a.upt-link").forEach(r=>{let n=D.createFrom(r);r.replaceWith(n),n.initializeWcsData(o.osi,o.promoCode)})}function Yr(o,e,t,r,n){let a=o;n?a=customElements.get("checkout-button").createCheckoutButton({},o.innerHTML):a.innerHTML=`${a.textContent}`,a.setAttribute("tabindex",0);for(let y of o.attributes)["class","is"].includes(y.name)||a.setAttribute(y.name,y.value);a.firstElementChild?.classList.add("spectrum-Button-label");let i=e?.ctas?.size??"M",s=`spectrum-Button--${r}`,l=Lr.includes(i)?`spectrum-Button--size${i}`:"spectrum-Button--sizeM",p=["spectrum-Button",s,l];return t&&p.push("spectrum-Button--outline"),a.classList.add(...p),a}function Kr(o,e,t,r,n){let a=o;n&&(a=customElements.get("checkout-button").createCheckoutButton(o.dataset),a.connectedCallback(),a.render());let i="fill";t&&(i="outline");let s=E("sp-button",{treatment:i,variant:r,tabIndex:0,size:e?.ctas?.size??"m",...o.dataset.analyticsId&&{"data-analytics-id":o.dataset.analyticsId}},o.innerHTML);return s.source=a,(n?a.onceSettled():Promise.resolve(a)).then(l=>{s.setAttribute("data-navigation-url",l.href)}),s.addEventListener("click",l=>{l.defaultPrevented||a.click()}),s}function Wr(o,e,t,r){let n=o;return t&&(n=customElements.get("checkout-link").createCheckoutLink(o.dataset,o.innerHTML)),r||(n.classList.add("con-button"),e&&n.classList.add("blue")),n}function Qr(o,e,t,r){if(o.ctas){let{slot:n}=t.ctas,a=E("div",{slot:n},o.ctas),i=[...a.querySelectorAll("a")].map(s=>Ve(s,e,t));a.innerHTML="",a.append(...i),e.append(a)}}function Xr(o,e){let{tags:t}=o,r=t?.find(a=>a.startsWith(Cr))?.split("/").pop();if(!r)return;e.setAttribute(It,r),[...e.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...e.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((a,i)=>{a.setAttribute(_r,`${a.dataset.analyticsId}-${i+1}`)})}function Zr(o){o.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([e,t])=>{o.querySelectorAll(`a.${e}`).forEach(r=>{r.classList.remove(e),r.classList.add("spectrum-Link",`spectrum-Link--${t}`)})})}function Jr(o){o.querySelectorAll("[slot]").forEach(r=>{r.remove()}),o.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",It].forEach(r=>o.removeAttribute(r));let t=["wide-strip","thin-strip"];o.classList.remove(...t)}async function Ye(o,e){if(!o){let s=e?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!o.fields){let s=o.id||"unknown",l=e?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'.`)}let{id:t,fields:r,settings:n={}}=o,{variant:a}=r;if(!a)throw new Error(`hydrate: no variant found in payload ${t}`);Jr(e),e.settings=n,e.id??(e.id=o.id),e.variant=a,await e.updateComplete;let{aemFragmentMapping:i}=e.variantLayout;if(!i)throw new Error(`hydrate: variant mapping not found for ${t}`);i.style==="consonant"&&e.setAttribute("consonant",!0),Rr(r,e,i.mnemonics),Mr(r,e,i),Pr(r,e,i),Nr(r,e,i.size),zr(r,e,i.title),Or(r,e,i),Fr(r,e,i),Dr(r,e,i.backgroundImage),$r(r,e,i.allowedColors,i.backgroundColor),Ir(r,e,i),Hr(r,e,i),Ur(r,e,i),qr(r,e,i),Gr(r,e,i,n),Vr(r,e),Qr(r,e,i,a),Xr(r,e),Zr(e)}var ae="merch-card",ne=2e4,Ke="merch-card:";function We(o,e){let t=o.closest(ae);if(!t)return e;t.variantLayout?.priceOptionsProvider?.(o,e)}function eo(o){o.providers.has(We)||o.providers.price(We)}var ro=0,lt,ht,St,$,G,I,q,U=class extends to{constructor(){super();m(this,I);m(this,lt);m(this,ht);m(this,St);m(this,$);m(this,G);d(this,"customerSegment");d(this,"marketSegment");d(this,"variantLayout");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=Wt(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(t){(t.has("variant")||!this.variantLayout)&&(this.variantLayout=Wt(this),this.variantLayout.connectedCallbackHook())}updated(t){(t.has("badgeBackgroundColor")||t.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),t.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(t)}catch(r){w(this,I,q).call(this,`Error in postCardUpdateHook: ${r.message}`,{},!1)}}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["ccd-slice","ccd-suggested","ah-promoted-plans"].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 descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(v)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(V)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(V)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(V)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:t}){if(!this.stockOfferOsis)return;let r=this.checkoutLinks;if(r.length!==0)for(let n of r){await n.onceSettled();let a=n.value?.[0]?.planType;if(!a)return;let i=this.stockOfferOsis[a];if(!i)return;let s=n.dataset.wcsOsi.split(",").filter(l=>l!==i);t.checked&&s.push(i),n.dataset.wcsOsi=s.join(",")}}changeHandler(t){t.target.tagName==="MERCH-ADDON"&&this.toggleAddon(t.target)}toggleAddon(t){this.variantLayout?.toggleAddon?.(t);let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length===0)return;let n=a=>{let{offerType:i,planType:s}=a.value?.[0]??{};if(!i||!s)return;let l=t.getOsi(s,i),p=(a.dataset.wcsOsi||"").split(",").filter(y=>y&&y!==l);t.checked&&p.push(l),a.dataset.wcsOsi=p.join(",")};r.forEach(n)}handleQuantitySelection(t){let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length!==0)for(let n of r)n.dataset.quantity=t.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(t){let r={...this.filters};Object.keys(r).forEach(n=>{if(t){r[n].order=Math.min(r[n].order||2,2);return}let a=r[n].order;a===1||isNaN(a)||(r[n].order=Number(a)+1)}),this.filters=r}includes(t){return this.textContent.match(new RegExp(t,"i"))!==null}connectedCallback(){super.connectedCallback(),c(this,ht)||h(this,ht,ro++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let t=this.id??c(this,ht);h(this,G,`${Ke}${t}${kt}`),h(this,lt,`${Ke}${t}${Ct}`),performance.mark(c(this,G)),h(this,$,X()),eo(c(this,$)),h(this,St,c(this,$).Log.module(ae)),this.addEventListener(Bt,this.handleQuantitySelection),this.addEventListener(Ht,this.handleAddonAndQuantityUpdate),this.addEventListener(ge,this.handleMerchOfferSelectReady),this.addEventListener(K,this.handleAemFragmentEvents),this.addEventListener(Y,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(Bt,this.handleQuantitySelection),this.removeEventListener(K,this.handleAemFragmentEvents),this.removeEventListener(Y,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Ht,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(t){if(this.isConnected&&(t.type===K&&w(this,I,q).call(this,"AEM fragment cannot be loaded"),t.type===Y&&(this.failed=!1,t.target.nodeName==="AEM-FRAGMENT"))){let r=t.detail;try{await Ye(r,this)}catch(n){w(this,I,q).call(this,`hydration has failed: ${n.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let t=new Promise(i=>setTimeout(()=>i("timeout"),ne));if(this.aemFragment){let i=await Promise.race([this.aemFragment.updateComplete,t]);if(i===!1||i==="timeout"){let s=i==="timeout"?`AEM fragment was not resolved within ${ne} timeout`:"AEM fragment cannot be loaded";w(this,I,q).call(this,s,{},!1);return}}let r=[...this.querySelectorAll(pe)],n=Promise.all(r.map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(s=>s.classList.contains("placeholder-resolved"))),a=await Promise.race([n,t]);if(a===!0){this.measure=performance.measure(c(this,lt),c(this,G));let i={...this.aemFragment?.fetchInfo,...c(this,$).duration,measure:Q(this.measure)};return this.dispatchEvent(new CustomEvent(xe,{bubbles:!0,composed:!0,detail:i})),this}else{this.measure=performance.measure(c(this,lt),c(this,G));let i={measure:Q(this.measure),...c(this,$).duration};a==="timeout"?w(this,I,q).call(this,`Contains offers that were not resolved within ${ne} timeout`,i):w(this,I,q).call(this,"Contains unresolved offers",i)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let t=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(V)).length===2&&t&&t.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:t,items:r}}){if(!t||!r?.length)return;let n=this.checkoutLinks.find(p=>p.getAttribute("data-modal-id")===t);if(!n)return;let i=new URL(n.getAttribute("href")).searchParams.get("pa"),s=r.find(p=>p.productArrangementCode===i)?.quantity,l=!!r.find(p=>p.productArrangementCode!==i);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(fe,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==l){this.toggleStockOffer({target:this.addonCheckbox});let p=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(p,"target",{writable:!1,value:{checked:l}}),this.addonCheckbox.handleChange(p)}}};lt=new WeakMap,ht=new WeakMap,St=new WeakMap,$=new WeakMap,G=new WeakMap,I=new WeakSet,q=function(t,r={},n=!0){if(!this.isConnected)return;let i=this.aemFragment?.getAttribute("fragment");i=`[${i}]`;let s={...this.aemFragment.fetchInfo,...c(this,$).duration,...r,message:t};c(this,St).error(`merch-card${i}: ${t}`,s),this.failed=!0,n&&this.dispatchEvent(new CustomEvent(be,{bubbles:!0,composed:!0,detail:s}))},d(U,"properties",{id:{type:String,attribute:"id",reflect:!0},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},backgroundColor:{type:String,attribute:"background-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"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:t=>{if(!t)return;let[r,n,a]=t.split(",");return{PUF:r,ABM:n,M2M:a}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:t=>Object.fromEntries(t.split(",").map(r=>{let[n,a,i]=r.split(":"),s=Number(a);return[n,{order:isNaN(s)?void 0:s,size:i}]})),toAttribute:t=>Object.entries(t).map(([r,{order:n,size:a}])=>[r,n,a].filter(i=>i!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:It,reflect:!0},loading:{type:String}}),d(U,"styles",[le,...he()]),d(U,"registerVariant",A),d(U,"getFragmentMapping",Mt);customElements.define(ae,U);export{U as MerchCard}; + `),d(Et,"properties",{heading:{type:String,attribute:!0},mobileRows:{type:Number,attribute:!0}});customElements.define("merch-whats-included",Et);function wr(o){return`https://${o==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var wt,H=class H extends HTMLAnchorElement{constructor(){super();m(this,wt,!1);this.setAttribute("is",H.is)}get isUptLink(){return!0}initializeWcsData(t,r){this.setAttribute("data-wcs-osi",t),r&&this.setAttribute("data-promotion-code",r),h(this,wt,!0),this.composePromoTermsUrl()}attributeChangedCallback(t,r,n){c(this,wt)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let t=this.getAttribute("data-wcs-osi");if(!t){let b=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${b}`);return}let r=X(),n=[t],a=this.getAttribute("data-promotion-code"),{country:i,language:s,env:l}=r.settings,p={country:i,language:s,wcsOsi:n,promotionCode:a},y=r.resolveOfferSelectors(p);Promise.all(y).then(([[b]])=>{let k=`locale=${s}_${i}&country=${i}&offer_id=${b.offerId}`;a&&(k+=`&promotion_code=${encodeURIComponent(a)}`),this.href=`${wr(l)}?${k}`}).catch(b=>{console.error(`Could not resolve offer selectors for id: ${t}.`,b.message)})}static createFrom(t){let r=new H;for(let n of t.attributes)n.name!=="is"&&(n.name==="class"&&n.value.includes("upt-link")?r.setAttribute("class",n.value.replace("upt-link","").trim()):r.setAttribute(n.name,n.value));return r.innerHTML=t.innerHTML,r.setAttribute("tabindex",0),r}};wt=new WeakMap,d(H,"is","upt-link"),d(H,"tag","a"),d(H,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var D=H;window.customElements.get(D.is)||window.customElements.define(D.is,D,{extends:D.tag});var Sr="#000000",re="#F8D904",Ar="#EAEAEA",Tr="#31A547",kr=/(accent|primary|secondary)(-(outline|link))?/,Cr="mas:product_code/",_r="daa-ll",It="daa-lh",Lr=["XL","L","M","S"],oe="...";function L(o,e,t,r){let n=r[o];if(e[o]&&n){let a={slot:n?.slot},i=e[o];if(n.maxCount&&typeof i=="string"){let[l,p]=jr(i,n.maxCount,n.withSuffix);l!==i&&(a.title=p,i=l)}let s=E(n.tag,a,i);t.append(s)}}function Rr(o,e,t){let r=o.mnemonicIcon?.map((a,i)=>({icon:a,alt:o.mnemonicAlt[i]??"",link:o.mnemonicLink[i]??""}));r?.forEach(({icon:a,alt:i,link:s})=>{if(s&&!/^https?:/.test(s))try{s=new URL(`https://${s}`).href.toString()}catch{s="#"}let l={slot:"icons",src:a,loading:e.loading,size:t?.size??"l"};i&&(l.alt=i),s&&(l.href=s);let p=E("merch-icon",l);e.append(p)});let n=e.shadowRoot.querySelector('slot[name="icons"]');!r?.length&&n&&n.remove()}function Mr(o,e,t){if(t.badge?.slot){if(o.badge?.length&&!o.badge?.startsWith("${o.badge}`}L("badge",o,e,t)}else o.badge?(e.setAttribute("badge-text",o.badge),e.setAttribute("badge-color",o.badgeColor||Sr),e.setAttribute("badge-background-color",o.badgeBackgroundColor||re),e.setAttribute("border-color",o.badgeBackgroundColor||re)):e.setAttribute("border-color",o.borderColor||Ar)}function Pr(o,e,t){if(t.trialBadge&&o.trialBadge){if(!o.trialBadge.startsWith("${o.trialBadge}`}L("trialBadge",o,e,t)}}function Nr(o,e,t){t?.includes(o.size)&&e.setAttribute("size",o.size)}function zr(o,e,t){L("cardTitle",o,e,{cardTitle:t})}function Or(o,e,t){L("subtitle",o,e,t)}function $r(o,e,t,r){if(!o.backgroundColor||o.backgroundColor.toLowerCase()==="default"){e.style.removeProperty("--merch-card-custom-background-color"),e.removeAttribute("background-color");return}t?.[o.backgroundColor]?(e.style.setProperty("--merch-card-custom-background-color",`var(${t[o.backgroundColor]})`),e.setAttribute("background-color",o.backgroundColor)):r?.attribute&&o.backgroundColor&&(e.setAttribute(r.attribute,o.backgroundColor),e.style.removeProperty("--merch-card-custom-background-color"))}function Ir(o,e,t){let r=t?.borderColor,n="--merch-card-custom-border-color";o.borderColor?.toLowerCase()==="transparent"?(e.style.removeProperty(n),t?.allowedBorderColors?.includes(t?.badge?.default)&&e.style.setProperty(n,"transparent")):o.borderColor&&r&&(/-gradient/.test(o.borderColor)?(e.setAttribute("gradient-border","true"),e.style.removeProperty(n)):e.style.setProperty(n,`var(--${o.borderColor})`))}function Dr(o,e,t){if(o.backgroundImage){let r={loading:e.loading??"lazy",src:o.backgroundImage};if(o.backgroundImageAltText?r.alt=o.backgroundImageAltText:r.role="none",!t)return;if(t?.attribute){e.setAttribute(t.attribute,o.backgroundImage);return}e.append(E(t.tag,{slot:t.slot},E("img",r)))}}function Fr(o,e,t){L("prices",o,e,t)}function Ve(o,e,t){let r=o.hasAttribute("data-wcs-osi")&&!!o.getAttribute("data-wcs-osi"),n=o.className||"",a=kr.exec(n)?.[0]??"accent",i=a.includes("accent"),s=a.includes("primary"),l=a.includes("secondary"),p=a.includes("-outline"),y=a.includes("-link");o.classList.remove("accent","primary","secondary");let b;if(e.consonant)b=Wr(o,i,r,y);else if(y)b=o;else{let k;i?k="accent":s?k="primary":l&&(k="secondary"),b=e.spectrum==="swc"?Kr(o,t,p,k,r):Yr(o,t,p,k,r)}return b}function Br(o,e){let{slot:t}=e?.description,r=o.querySelectorAll(`[slot="${t}"] a[data-wcs-osi]`);r.length&&r.forEach(n=>{let a=Ve(n,o,e);n.replaceWith(a)})}function Hr(o,e,t){L("promoText",o,e,t),L("description",o,e,t),Br(e,t),L("callout",o,e,t),L("quantitySelect",o,e,t),L("whatsIncluded",o,e,t)}function Ur(o,e,t){if(!t.addon)return;let r=o.addon?.replace(/[{}]/g,"");if(!r||/disabled/.test(r))return;let n=E("merch-addon",{slot:"addon"},r);[...n.querySelectorAll(v)].forEach(a=>{let i=a.parentElement;i?.nodeName==="P"&&i.setAttribute("data-plan-type","")}),e.append(n)}function qr(o,e,t){o.addonConfirmation&&L("addonConfirmation",o,e,t)}function Gr(o,e,t,r){r?.secureLabel&&t?.secureLabel&&e.setAttribute("secure-label",r.secureLabel)}function jr(o,e,t=!0){try{let r=typeof o!="string"?"":o,n=je(r);if(n.length<=e)return[r,n];let a=0,i=!1,s=t?e-oe.length<1?1:e-oe.length:e,l=[];for(let b of r){if(a++,b==="<")if(i=!0,r[a]==="/")l.pop();else{let k="";for(let Dt of r.substring(a)){if(Dt===" "||Dt===">")break;k+=Dt}l.push(k)}if(b==="/"&&r[a]===">"&&l.pop(),b===">"){i=!1;continue}if(!i&&(s--,s===0))break}let p=r.substring(0,a).trim();if(l.length>0){l[0]==="p"&&l.shift();for(let b of l.reverse())p+=``}return[`${p}${t?oe:""}`,n]}catch{let n=typeof o=="string"?o:"",a=je(n);return[n,a]}}function je(o){if(!o)return"";let e="",t=!1;for(let r of o){if(r==="<"&&(t=!0),r===">"){t=!1;continue}t||(e+=r)}return e}function Vr(o,e){e.querySelectorAll("a.upt-link").forEach(r=>{let n=D.createFrom(r);r.replaceWith(n),n.initializeWcsData(o.osi,o.promoCode)})}function Yr(o,e,t,r,n){let a=o;n?a=customElements.get("checkout-button").createCheckoutButton({},o.innerHTML):a.innerHTML=`${a.textContent}`,a.setAttribute("tabindex",0);for(let y of o.attributes)["class","is"].includes(y.name)||a.setAttribute(y.name,y.value);a.firstElementChild?.classList.add("spectrum-Button-label");let i=e?.ctas?.size??"M",s=`spectrum-Button--${r}`,l=Lr.includes(i)?`spectrum-Button--size${i}`:"spectrum-Button--sizeM",p=["spectrum-Button",s,l];return t&&p.push("spectrum-Button--outline"),a.classList.add(...p),a}function Kr(o,e,t,r,n){let a=o;n&&(a=customElements.get("checkout-button").createCheckoutButton(o.dataset),a.connectedCallback(),a.render());let i="fill";t&&(i="outline");let s=E("sp-button",{treatment:i,variant:r,tabIndex:0,size:e?.ctas?.size??"m",...o.dataset.analyticsId&&{"data-analytics-id":o.dataset.analyticsId}},o.innerHTML);return s.source=a,(n?a.onceSettled():Promise.resolve(a)).then(l=>{s.setAttribute("data-navigation-url",l.href)}),s.addEventListener("click",l=>{l.defaultPrevented||a.click()}),s}function Wr(o,e,t,r){let n=o;return t&&(n=customElements.get("checkout-link").createCheckoutLink(o.dataset,o.innerHTML)),r||(n.classList.add("con-button"),e&&n.classList.add("blue")),n}function Qr(o,e,t,r){if(o.ctas){let{slot:n}=t.ctas,a=E("div",{slot:n},o.ctas),i=[...a.querySelectorAll("a")].map(s=>Ve(s,e,t));a.innerHTML="",a.append(...i),e.append(a)}}function Xr(o,e){let{tags:t}=o,r=t?.find(a=>a.startsWith(Cr))?.split("/").pop();if(!r)return;e.setAttribute(It,r),[...e.shadowRoot.querySelectorAll("a[data-analytics-id],button[data-analytics-id]"),...e.querySelectorAll("a[data-analytics-id],button[data-analytics-id]")].forEach((a,i)=>{a.setAttribute(_r,`${a.dataset.analyticsId}-${i+1}`)})}function Zr(o){o.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([e,t])=>{o.querySelectorAll(`a.${e}`).forEach(r=>{r.classList.remove(e),r.classList.add("spectrum-Link",`spectrum-Link--${t}`)})})}function Jr(o){o.querySelectorAll("[slot]").forEach(r=>{r.remove()}),o.variant=void 0,["checkbox-label","stock-offer-osis","secure-label","background-image","background-color","border-color","badge-background-color","badge-color","badge-text","gradient-border","size",It].forEach(r=>o.removeAttribute(r));let t=["wide-strip","thin-strip"];o.classList.remove(...t)}async function Ye(o,e){if(!o){let s=e?.id||"unknown";throw console.error(`hydrate: Fragment is undefined. Cannot hydrate card (merchCard id: ${s}).`),new Error(`hydrate: Fragment is undefined for card (merchCard id: ${s}).`)}if(!o.fields){let s=o.id||"unknown",l=e?.id||"unknown";throw console.error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'. Cannot hydrate.`),new Error(`hydrate: Fragment for card ID '${s}' (merchCard id: ${l}) is missing 'fields'.`)}let{id:t,fields:r,settings:n={}}=o,{variant:a}=r;if(!a)throw new Error(`hydrate: no variant found in payload ${t}`);Jr(e),e.settings=n,e.id??(e.id=o.id),e.variant=a,await e.updateComplete;let{aemFragmentMapping:i}=e.variantLayout;if(!i)throw new Error(`hydrate: variant mapping not found for ${t}`);i.style==="consonant"&&e.setAttribute("consonant",!0),Rr(r,e,i.mnemonics),Mr(r,e,i),Pr(r,e,i),Nr(r,e,i.size),zr(r,e,i.title),Or(r,e,i),Fr(r,e,i),Dr(r,e,i.backgroundImage),$r(r,e,i.allowedColors,i.backgroundColor),Ir(r,e,i),Hr(r,e,i),Ur(r,e,i),qr(r,e,i),Gr(r,e,i,n),Vr(r,e),Qr(r,e,i,a),Xr(r,e),Zr(e)}var ae="merch-card",ne=2e4,Ke="merch-card:";function We(o,e){let t=o.closest(ae);if(!t)return e;t.variantLayout?.priceOptionsProvider?.(o,e)}function eo(o){o.providers.has(We)||o.providers.price(We)}var ro=0,lt,ht,St,$,G,I,q,U=class extends to{constructor(){super();m(this,I);m(this,lt);m(this,ht);m(this,St);m(this,$);m(this,G);d(this,"customerSegment");d(this,"marketSegment");d(this,"variantLayout");this.id=null,this.failed=!1,this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.loading="lazy",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this),this.handleMerchOfferSelectReady=this.handleMerchOfferSelectReady.bind(this)}firstUpdated(){this.variantLayout=Wt(this,!1),this.variantLayout?.connectedCallbackHook()}willUpdate(t){(t.has("variant")||!this.variantLayout)&&(this.variantLayout=Wt(this),this.variantLayout.connectedCallbackHook())}updated(t){(t.has("badgeBackgroundColor")||t.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),t.has("backgroundColor")&&this.style.setProperty("--merch-card-custom-background-color",this.backgroundColor?`var(--${this.backgroundColor})`:"");try{this.variantLayout?.postCardUpdateHook(t)}catch(r){w(this,I,q).call(this,`Error in postCardUpdateHook: ${r.message}`,{},!1)}}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["ccd-slice","ccd-suggested","ah-promoted-plans"].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 descriptionSlot(){return this.shadowRoot.querySelector('slot[name="body-xs"')?.assignedElements()[0]}get descriptionSlotCompare(){return this.shadowRoot.querySelector('slot[name="body-m"')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector(v)}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll(V)??[]]}get checkoutLinksDescription(){return[...this.descriptionSlot?.querySelectorAll(V)??[]]}get checkoutLinkDescriptionCompare(){return[...this.descriptionSlotCompare?.querySelectorAll(V)??[]]}get activeDescriptionLinks(){return this.variant==="mini-compare-chart"?this.checkoutLinkDescriptionCompare:this.checkoutLinksDescription}async toggleStockOffer({target:t}){if(!this.stockOfferOsis)return;let r=this.checkoutLinks;if(r.length!==0)for(let n of r){await n.onceSettled();let a=n.value?.[0]?.planType;if(!a)return;let i=this.stockOfferOsis[a];if(!i)return;let s=n.dataset.wcsOsi.split(",").filter(l=>l!==i);t.checked&&s.push(i),n.dataset.wcsOsi=s.join(",")}}changeHandler(t){t.target.tagName==="MERCH-ADDON"&&this.toggleAddon(t.target)}toggleAddon(t){this.variantLayout?.toggleAddon?.(t);let r=[...this.checkoutLinks,...this.activeDescriptionLinks??[]];if(r.length===0)return;let n=a=>{let{offerType:i,planType:s}=a.value?.[0]??{};if(!i||!s)return;let l=t.getOsi(s,i),p=(a.dataset.wcsOsi||"").split(",").filter(y=>y&&y!==l);t.checked&&p.push(l),a.dataset.wcsOsi=p.join(",")};r.forEach(n)}handleQuantitySelection(t){let r=[...this.checkoutLinks,...this.prices,...this.activeDescriptionLinks??[]];if(r.length!==0)for(let n of r)n.dataset.quantity=t.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(t){let r={...this.filters};Object.keys(r).forEach(n=>{if(t){r[n].order=Math.min(r[n].order||2,2);return}let a=r[n].order;a===1||isNaN(a)||(r[n].order=Number(a)+1)}),this.filters=r}includes(t){return this.textContent.match(new RegExp(t,"i"))!==null}connectedCallback(){super.connectedCallback(),c(this,ht)||h(this,ht,ro++),this.id??(this.id=this.getAttribute("id")??this.aemFragment?.getAttribute("fragment"));let t=this.id??c(this,ht);h(this,G,`${Ke}${t}${kt}`),h(this,lt,`${Ke}${t}${Ct}`),performance.mark(c(this,G)),h(this,$,X()),eo(c(this,$)),h(this,St,c(this,$).Log.module(ae)),this.addEventListener(Bt,this.handleQuantitySelection),this.addEventListener(Ht,this.handleAddonAndQuantityUpdate),this.addEventListener(ge,this.handleMerchOfferSelectReady),this.addEventListener(K,this.handleAemFragmentEvents),this.addEventListener(Y,this.handleAemFragmentEvents),this.addEventListener("change",this.changeHandler),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(Bt,this.handleQuantitySelection),this.removeEventListener(K,this.handleAemFragmentEvents),this.removeEventListener(Y,this.handleAemFragmentEvents),this.removeEventListener("change",this.changeHandler),this.removeEventListener(Ht,this.handleAddonAndQuantityUpdate)}async handleAemFragmentEvents(t){if(this.isConnected&&(t.type===K&&w(this,I,q).call(this,"AEM fragment cannot be loaded"),t.type===Y&&(this.failed=!1,t.target.nodeName==="AEM-FRAGMENT"))){let r=t.detail;try{await Ye(r,this)}catch(n){w(this,I,q).call(this,`hydration has failed: ${n.message}`)}this.checkReady()}}async checkReady(){if(!this.isConnected)return;let t=new Promise(i=>setTimeout(()=>i("timeout"),ne));if(this.aemFragment){let i=await Promise.race([this.aemFragment.updateComplete,t]);if(i===!1||i==="timeout"){let s=i==="timeout"?`AEM fragment was not resolved within ${ne} timeout`:"AEM fragment cannot be loaded";w(this,I,q).call(this,s,{},!1);return}}let r=[...this.querySelectorAll(pe)],n=Promise.all(r.map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(s=>s.classList.contains("placeholder-resolved"))),a=await Promise.race([n,t]);if(a===!0){this.measure=performance.measure(c(this,lt),c(this,G));let i={...this.aemFragment?.fetchInfo,...c(this,$).duration,measure:Q(this.measure)};return this.dispatchEvent(new CustomEvent(xe,{bubbles:!0,composed:!0,detail:i})),this}else{this.measure=performance.measure(c(this,lt),c(this,G));let i={measure:Q(this.measure),...c(this,$).duration};a==="timeout"?w(this,I,q).call(this,`Contains offers that were not resolved within ${ne} timeout`,i):w(this,I,q).call(this,"Contains unresolved offers",i)}}get aemFragment(){return this.querySelector("aem-fragment")}get addon(){return this.querySelector("merch-addon")}get quantitySelect(){return this.querySelector("merch-quantity-select")}get addonCheckbox(){return this.querySelector("merch-addon")}displayFooterElementsInColumn(){if(!this.classList.contains("product"))return;let t=this.shadowRoot.querySelector(".secure-transaction-label");(this.footerSlot?.querySelectorAll(V)).length===2&&t&&t.parentElement.classList.add("footer-column")}handleMerchOfferSelectReady(){this.offerSelect&&!this.offerSelect.planType||this.displayFooterElementsInColumn()}get dynamicPrice(){return this.querySelector('[slot="price"]')}handleAddonAndQuantityUpdate({detail:{id:t,items:r}}){if(!t||!r?.length)return;let n=this.checkoutLinks.find(p=>p.getAttribute("data-modal-id")===t);if(!n)return;let i=new URL(n.getAttribute("href")).searchParams.get("pa"),s=r.find(p=>p.productArrangementCode===i)?.quantity,l=!!r.find(p=>p.productArrangementCode!==i);if(s&&this.quantitySelect?.dispatchEvent(new CustomEvent(fe,{detail:{quantity:s},bubbles:!0,composed:!0})),this.addonCheckbox&&this.addonCheckbox.checked!==l){this.toggleStockOffer({target:this.addonCheckbox});let p=new Event("change",{bubbles:!0,cancelable:!0});Object.defineProperty(p,"target",{writable:!1,value:{checked:l}}),this.addonCheckbox.handleChange(p)}}};lt=new WeakMap,ht=new WeakMap,St=new WeakMap,$=new WeakMap,G=new WeakMap,I=new WeakSet,q=function(t,r={},n=!0){if(!this.isConnected)return;let i=this.aemFragment?.getAttribute("fragment");i=`[${i}]`;let s={...this.aemFragment.fetchInfo,...c(this,$).duration,...r,message:t};c(this,St).error(`merch-card${i}: ${t}`,s),this.failed=!0,n&&this.dispatchEvent(new CustomEvent(be,{bubbles:!0,composed:!0,detail:s}))},d(U,"properties",{id:{type:String,attribute:"id",reflect:!0},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},backgroundColor:{type:String,attribute:"background-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"},actionMenuLabel:{type:String,attribute:"action-menu-label"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},failed:{type:Boolean,attribute:"failed",reflect:!0},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},addonTitle:{type:String,attribute:"addon-title"},addonOffers:{type:Object,attribute:"addon-offers"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},planType:{type:String,attribute:"plan-type",reflect:!0},settings:{type:Object,attribute:!1},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:t=>{if(!t)return;let[r,n,a]=t.split(",");return{PUF:r,ABM:n,M2M:a}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:t=>Object.fromEntries(t.split(",").map(r=>{let[n,a,i]=r.split(":"),s=Number(a);return[n,{order:isNaN(s)?void 0:s,size:i}]})),toAttribute:t=>Object.entries(t).map(([r,{order:n,size:a}])=>[r,n,a].filter(i=>i!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:It,reflect:!0},loading:{type:String}}),d(U,"styles",[le,...he()]),d(U,"registerVariant",A),d(U,"getFragmentMapping",Mt);customElements.define(ae,U);export{U as MerchCard}; diff --git a/libs/features/mas/dist/mas.js b/libs/features/mas/dist/mas.js index 88e8d8cf69..21b05038e3 100644 --- a/libs/features/mas/dist/mas.js +++ b/libs/features/mas/dist/mas.js @@ -1,14 +1,14 @@ window.masPriceLiterals = {"total":38,"offset":0,"limit":38,"data":[{"lang":"ar","recurrenceLabel":"{recurrenceTerm, select, MONTH {/الشهر} YEAR {/العام} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {كل شهر} YEAR {كل عام} other {}}","perUnitLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {لكل ترخيص} other {}}","freeLabel":"مجانًا","freeAriaLabel":"مجانًا","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":"أو بدلاً من ذلك بقيمة {alternativePrice}","strikethroughAriaLabel":"بشكل منتظم بقيمة {strikethroughPrice}"},{"lang":"bg","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/год.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на месец} YEAR {на година} other {}}","perUnitLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {на лиценз} other {}}","freeLabel":"Безплатно","freeAriaLabel":"Безплатно","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":"Алтернативно на {alternativePrice}","strikethroughAriaLabel":"Редовно на {strikethroughPrice}"},{"lang":"cs","recurrenceLabel":"{recurrenceTerm, select, MONTH {/měsíc} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za měsíc} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenci} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenci} other {}}","freeLabel":"Zdarma","freeAriaLabel":"Zdarma","taxExclusiveLabel":"{taxTerm, select, GST {bez daně ze zboží a služeb} VAT {bez DPH} TAX {bez daně} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {včetně daně ze zboží a služeb} VAT {včetně DPH} TAX {včetně daně} IVA {včetně IVA} SST {včetně SST} KDV {včetně KDV} other {}}","alternativePriceAriaLabel":"Případně za {alternativePrice}","strikethroughAriaLabel":"Pravidelně za {strikethroughPrice}"},{"lang":"da","recurrenceLabel":"{recurrenceTerm, select, MONTH {/md} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pr. måned} YEAR {pr. år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pr. licens} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. skat} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skat} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"de","recurrenceLabel":"{recurrenceTerm, select, MONTH {/Monat} YEAR {/Jahr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pro Monat} YEAR {pro Jahr} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pro Lizenz} other {}}","freeLabel":"Kostenlos","freeAriaLabel":"Kostenlos","taxExclusiveLabel":"{taxTerm, select, GST {zzgl. GST} VAT {zzgl. MwSt.} TAX {zzgl. Steuern} IVA {zzgl. IVA} SST {zzgl. SST} KDV {zzgl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. MwSt.} TAX {inkl. Steuern} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativ: {alternativePrice}","strikethroughAriaLabel":"Regulär: {strikethroughPrice}"},{"lang":"en","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}"},{"lang":"et","recurrenceLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuus} YEAR {aastas} other {}}","perUnitLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {litsentsi kohta} other {}}","freeLabel":"Tasuta","freeAriaLabel":"Tasuta","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":"Teise võimalusena hinnaga {alternativePrice}","strikethroughAriaLabel":"Tavahind {strikethroughPrice}"},{"lang":"fi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/kk} YEAR {/v} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {kuukausittain} YEAR {vuosittain} other {}}","perUnitLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {käyttöoikeutta kohti} other {}}","freeLabel":"Maksuton","freeAriaLabel":"Maksuton","taxExclusiveLabel":"{taxTerm, select, GST {ilman GST:tä} VAT {ilman ALV:tä} TAX {ilman veroja} IVA {ilman IVA:ta} SST {ilman SST:tä} KDV {ilman KDV:tä} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {sis. GST:n} VAT {sis. ALV:n} TAX {sis. verot} IVA {sis. IVA:n} SST {sis. SST:n} KDV {sis. KDV:n} other {}}","alternativePriceAriaLabel":"Vaihtoehtoisesti hintaan {alternativePrice}","strikethroughAriaLabel":"Säännöllisesti hintaan {strikethroughPrice}"},{"lang":"fr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mois} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {par mois} YEAR {par an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {par licence} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {par licence} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","taxExclusiveLabel":"{taxTerm, select, GST {hors TPS} VAT {hors TVA} TAX {hors taxes} IVA {hors IVA} SST {hors SST} KDV {hors KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {TPS comprise} VAT {TVA comprise} TAX {taxes comprises} IVA {IVA comprise} SST {SST comprise} KDV {KDV comprise} other {}}","alternativePriceAriaLabel":"Autre prix {alternativePrice}","strikethroughAriaLabel":"Prix habituel {strikethroughPrice}"},{"lang":"he","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","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":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"},{"lang":"hu","recurrenceLabel":"{recurrenceTerm, select, MONTH {/hó} YEAR {/év} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {havonta} YEAR {évente} other {}}","perUnitLabel":"{perUnit, select, LICENSE {licencenként} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {licencenként} other {}}","freeLabel":"Ingyenes","freeAriaLabel":"Ingyenes","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":"Másik lehetőség: {alternativePrice}","strikethroughAriaLabel":"Általában {strikethroughPrice} áron"},{"lang":"it","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mese} YEAR {/anno} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mese} YEAR {all'anno} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licenza} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licenza} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {escl. GST} VAT {escl. IVA.} TAX {escl. imposte} IVA {escl. IVA} SST {escl. SST} KDV {escl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. IVA} TAX {incl. imposte} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"In alternativa a {alternativePrice}","strikethroughAriaLabel":"Regolarmente a {strikethroughPrice}"},{"lang":"ja","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {毎月} YEAR {毎年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ライセンスごと} other {}}","freeLabel":"無料","freeAriaLabel":"無料","taxExclusiveLabel":"{taxTerm, select, GST {GST 別} VAT {VAT 別} TAX {税別} IVA {IVA 別} SST {SST 別} KDV {KDV 別} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 込} VAT {VAT 込} TAX {税込} IVA {IVA 込} SST {SST 込} KDV {KDV 込} other {}}","alternativePriceAriaLabel":"特別価格 : {alternativePrice}","strikethroughAriaLabel":"通常価格 : {strikethroughPrice}"},{"lang":"ko","recurrenceLabel":"{recurrenceTerm, select, MONTH {/월} YEAR {/년} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {월간} YEAR {연간} other {}}","perUnitLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {라이선스당} other {}}","freeLabel":"무료","freeAriaLabel":"무료","taxExclusiveLabel":"{taxTerm, select, GST {GST 제외} VAT {VAT 제외} TAX {세금 제외} IVA {IVA 제외} SST {SST 제외} KDV {KDV 제외} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST 포함} VAT {VAT 포함} TAX {세금 포함} IVA {IVA 포함} SST {SST 포함} KDV {KDV 포함} other {}}","alternativePriceAriaLabel":"또는 {alternativePrice}에","strikethroughAriaLabel":"또는 {alternativePrice}에"},{"lang":"lt","recurrenceLabel":"{recurrenceTerm, select, MONTH { per mėn.} YEAR { per metus} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per mėn.} YEAR {per metus} other {}}","perUnitLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {už licenciją} other {}}","freeLabel":"Nemokamai","freeAriaLabel":"Nemokamai","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":"Arba už {alternativePrice}","strikethroughAriaLabel":"Normaliai už {strikethroughPrice}"},{"lang":"lv","recurrenceLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mēnesī} YEAR {gadā} other {}}","perUnitLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {vienai licencei} other {}}","freeLabel":"Bezmaksas","freeAriaLabel":"Bezmaksas","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":"Alternatīvi par {alternativePrice}","strikethroughAriaLabel":"Regulāri par {strikethroughPrice}"},{"lang":"nb","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd.} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per måned} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisens} other {}}","freeLabel":"Fri","freeAriaLabel":"Fri","taxExclusiveLabel":"{taxTerm, select, GST {ekskl. GST} VAT {ekskl. moms} TAX {ekskl. avgift} IVA {ekskl. IVA} SST {ekskl. SST} KDV {ekskl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. avgift} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt til {alternativePrice}","strikethroughAriaLabel":"Regelmessig til {strikethroughPrice}"},{"lang":"nl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mnd} YEAR {/jr} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per maand} YEAR {per jaar} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licentie} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licentie} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {excl. GST} VAT {excl. btw} TAX {excl. belasting} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {incl. GST} VAT {incl. btw} TAX {incl. belasting} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}","alternativePriceAriaLabel":"Nu {alternativePrice}","strikethroughAriaLabel":"Normaal {strikethroughPrice}"},{"lang":"pl","recurrenceLabel":"{recurrenceTerm, select, MONTH { / mies.} YEAR { / rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH { / miesiąc} YEAR { / rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licencję} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licencję} other {}}","freeLabel":"Bezpłatne","freeAriaLabel":"Bezpłatne","taxExclusiveLabel":"{taxTerm, select, GST {bez GST} VAT {bez VAT} TAX {netto} IVA {bez IVA} SST {bez SST} KDV {bez KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {z GST} VAT {z VAT} TAX {brutto} IVA {z IVA} SST {z SST} KDV {z KDV} other {}}","alternativePriceAriaLabel":"Lub za {alternativePrice}","strikethroughAriaLabel":"Cena zwykła: {strikethroughPrice}"},{"lang":"pt","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mês} YEAR {/ano} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {por mês} YEAR {por ano} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licença} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licença} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {ICMS não incluso} VAT {IVA não incluso} TAX {impostos não inclusos} IVA {IVA não incluso} SST { SST não incluso} KDV {KDV não incluso} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {ICMS incluso} VAT {IVA incluso} TAX {impostos inclusos} IVA {IVA incluso} SST {SST incluso} KDV {KDV incluso} other {}}","alternativePriceAriaLabel":"Ou a {alternativePrice}","strikethroughAriaLabel":"Preço normal: {strikethroughPrice}"},{"lang":"ro","recurrenceLabel":"{recurrenceTerm, select, MONTH {/lună} YEAR {/an} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {pe lună} YEAR {pe an} other {}}","perUnitLabel":"{perUnit, select, LICENSE {pe licență} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {pe licență} other {}}","freeLabel":"Gratuit","freeAriaLabel":"Gratuit","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":"Alternativ, la {alternativePrice}","strikethroughAriaLabel":"În mod normal, la {strikethroughPrice}"},{"lang":"ru","recurrenceLabel":"{recurrenceTerm, select, MONTH {/мес.} YEAR {/г.} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {в месяц} YEAR {в год} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за лицензию} other {}}","freeLabel":"Бесплатно","freeAriaLabel":"Бесплатно","taxExclusiveLabel":"{taxTerm, select, GST {искл. налог на товары и услуги} VAT {искл. НДС} TAX {искл. налог} IVA {искл. ИВА} SST {искл. SST} KDV {искл. КДВ} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {вкл. налог на товары и услуги} VAT {вкл. НДС} TAX {вкл. налог} IVA {вкл. ИВА} SST {вкл. SST} KDV {вкл. КДВ} other {}}","alternativePriceAriaLabel":"Альтернативный вариант за {alternativePrice}","strikethroughAriaLabel":"Регулярно по цене {strikethroughPrice}"},{"lang":"sk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesiac} YEAR {/rok} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {za mesiac} YEAR {za rok} other {}}","perUnitLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {za licenciu} other {}}","freeLabel":"Zadarmo","freeAriaLabel":"Zadarmo","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":"Prípadne za {alternativePrice}","strikethroughAriaLabel":"Pravidelne za {strikethroughPrice}"},{"lang":"sl","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mesec} YEAR {/leto} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {na mesec} YEAR {na leto} other {}}","perUnitLabel":"{perUnit, select, LICENSE {na licenco} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {na licenco} other {}}","freeLabel":"Brezplačno","freeAriaLabel":"Brezplačno","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":"Druga možnost je: {alternativePrice}","strikethroughAriaLabel":"Redno po {strikethroughPrice}"},{"lang":"sv","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mån} YEAR {/år} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per månad} YEAR {per år} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per licens} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per licens} other {}}","freeLabel":"Kostnadsfritt","freeAriaLabel":"Kostnadsfritt","taxExclusiveLabel":"{taxTerm, select, GST {exkl. GST} VAT {exkl. moms} TAX {exkl. skatt} IVA {exkl. IVA} SST {exkl. SST} KDV {exkl. KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {inkl. GST} VAT {inkl. moms} TAX {inkl. skatt} IVA {inkl. IVA} SST {inkl. SST} KDV {inkl. KDV} other {}}","alternativePriceAriaLabel":"Alternativt för {alternativePrice}","strikethroughAriaLabel":"Normalpris {strikethroughPrice}"},{"lang":"tr","recurrenceLabel":"{recurrenceTerm, select, MONTH {/ay} YEAR {/yıl} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {(aylık)} YEAR {(yıllık)} other {}}","perUnitLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {(lisans başına)} other {}}","freeLabel":"Ücretsiz","freeAriaLabel":"Ücretsiz","taxExclusiveLabel":"{taxTerm, select, GST {GST hariç} VAT {KDV hariç} TAX {vergi hariç} IVA {IVA hariç} SST {SST hariç} KDV {KDV hariç} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST dahil} VAT {KDV dahil} TAX {vergi dahil} IVA {IVA dahil} SST {SST dahil} KDV {KDV dahil} other {}}","alternativePriceAriaLabel":"Ya da {alternativePrice}","strikethroughAriaLabel":"Standart fiyat: {strikethroughPrice}"},{"lang":"uk","recurrenceLabel":"{recurrenceTerm, select, MONTH {/міс.} YEAR {/рік} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {на місяць} YEAR {на рік} other {}}","perUnitLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {за ліцензію} other {}}","freeLabel":"Безкоштовно","freeAriaLabel":"Безкоштовно","taxExclusiveLabel":"{taxTerm, select, GST {без GST} VAT {без ПДВ} TAX {без податку} IVA {без IVA} SST {без SST} KDV {без KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {разом із GST} VAT {разом із ПДВ} TAX {разом із податком} IVA {разом з IVA} SST {разом із SST} KDV {разом із KDV} other {}}","alternativePriceAriaLabel":"Або за {alternativePrice}","strikethroughAriaLabel":"Звичайна ціна {strikethroughPrice}"},{"lang":"zh-hans","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每个许可证} other {}}","freeLabel":"免费","freeAriaLabel":"免费","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":"或定价 {alternativePrice}","strikethroughAriaLabel":"正常价 {strikethroughPrice}"},{"lang":"zh-hant","recurrenceLabel":"{recurrenceTerm, select, MONTH {/月} YEAR {/年} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {每月} YEAR {每年} other {}}","perUnitLabel":"{perUnit, select, LICENSE {每個授權} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {每個授權} other {}}","freeLabel":"免費","freeAriaLabel":"免費","taxExclusiveLabel":"{taxTerm, select, GST {不含 GST} VAT {不含 VAT} TAX {不含稅} IVA {不含 IVA} SST {不含 SST} KDV {不含 KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {含 GST} VAT {含 VAT} TAX {含稅} IVA {含 IVA} SST {含 SST} KDV {含 KDV} other {}}","alternativePriceAriaLabel":"或者在 {alternativePrice}","strikethroughAriaLabel":"標準價格為 {strikethroughPrice}"},{"lang":"es","recurrenceLabel":"{recurrenceTerm, select, MONTH {/mes} YEAR {/año} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {al mes} YEAR {al año} other {}}","perUnitLabel":"{perUnit, select, LICENSE {por licencia} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {por licencia} other {}}","freeLabel":"Gratuito","freeAriaLabel":"Gratuito","taxExclusiveLabel":"{taxTerm, select, GST {GST no incluido} VAT {IVA no incluido} TAX {Impuestos no incluidos} IVA {IVA no incluido} SST {SST no incluido} KDV {KDV no incluido} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST incluido} VAT {IVA incluido} TAX {Impuestos incluidos} IVA {IVA incluido} SST {SST incluido} KDV {KDV incluido} other {}}","alternativePriceAriaLabel":"Alternativamente por {alternativePrice}","strikethroughAriaLabel":"Normalmente a {strikethroughPrice}"},{"lang":"in","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {per lisensi} other {}}","freeLabel":"Gratis","freeAriaLabel":"Gratis","taxExclusiveLabel":"{taxTerm, select, GST {tidak termasuk PBJ} VAT {tidak termasuk PPN} TAX {tidak termasuk pajak} IVA {tidak termasuk IVA} SST {tidak termasuk SST} KDV {tidak termasuk KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk PBJ} VAT {termasuk PPN} TAX {termasuk pajak} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Atau seharga {alternativePrice}","strikethroughAriaLabel":"Normalnya seharga {strikethroughPrice}"},{"lang":"vi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/tháng} YEAR {/năm} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {mỗi tháng} YEAR {mỗi năm} other {}}","perUnitLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {mỗi giấy phép} other {}}","freeLabel":"Miễn phí","freeAriaLabel":"Miễn phí","taxExclusiveLabel":"{taxTerm, select, GST {chưa bao gồm thuế hàng hóa và dịch vụ} VAT {chưa bao gồm thuế GTGT} TAX {chưa bao gồm thuế} IVA {chưa bao gồm IVA} SST {chưa bao gồm SST} KDV {chưa bao gồm KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(đã bao gồm thuế hàng hóa và dịch vụ)} VAT {(đã bao gồm thuế GTGT)} TAX {(đã bao gồm thuế)} IVA {(đã bao gồm IVA)} SST {(đã bao gồm SST)} KDV {(đã bao gồm KDV)} other {}}","alternativePriceAriaLabel":"Giá ưu đãi {alternativePrice}","strikethroughAriaLabel":"Giá thông thường {strikethroughPrice}"},{"lang":"th","recurrenceLabel":"{recurrenceTerm, select, MONTH {/เดือน} YEAR {/ปี} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {ต่อเดือน} YEAR {ต่อปี} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ต่อสิทธิ์การใช้งาน} other {}}","freeLabel":"ฟรี","freeAriaLabel":"ฟรี","taxExclusiveLabel":"{taxTerm, select, GST {ไม่รวมภาษี GST} VAT {ไม่รวม VAT} TAX {ไม่รวมภาษี} IVA {ไม่รวม IVA} SST {ไม่รวม SST} KDV {ไม่รวม KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {รวมภาษี GST} VAT {รวม VAT} TAX {รวมภาษี} IVA {รวม IVA} SST {รวม SST} KDV {รวม KDV} other {}}","alternativePriceAriaLabel":"ราคาพิเศษ {alternativePrice}","strikethroughAriaLabel":"ราคาปกติ {strikethroughPrice}"},{"lang":"el","recurrenceLabel":"{recurrenceTerm, select, MONTH {/μήνα} YEAR {/έτος} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {κάθε μήνα} YEAR {ανά έτος} other {}}","perUnitLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {ανά άδεια χρήσης} other {}}","freeLabel":"Δωρεάν","freeAriaLabel":"Δωρεάν","taxExclusiveLabel":"{taxTerm, select, GST {(μη συμπεριλαμβανομένου GST)} VAT {(μη συμπεριλαμβανομένου ΦΠΑ)} TAX {(μη συμπεριλαμβανομένου φόρο)} IVA {(μη συμπεριλαμβανομένου IVA)} SST {(μη συμπεριλαμβανομένου SST)} KDV {(μη συμπεριλαμβανομένου KDV)} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {(συμπεριλαμβανομένου του GST)} VAT {(συμπεριλαμβανομένου ΦΠΑ)} TAX {(συμπεριλαμβανομένου του φόρου)} IVA {(συμπεριλαμβανομένου του IVA)} SST {(συμπεριλαμβανομένου του SST)} KDV {(συμπεριλαμβανομένου του KDV)} other {}}","alternativePriceAriaLabel":"Διαφορετικά, {alternativePrice}","strikethroughAriaLabel":"Κανονική τιμή {strikethroughPrice}"},{"lang":"fil","recurrenceLabel":"{recurrenceTerm, select, MONTH {/buwan} YEAR {/taon} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per buwan} YEAR {per taon} other {}}","perUnitLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {kada lisensya} other {}}","freeLabel":"Libre","freeAriaLabel":"Libre","taxExclusiveLabel":"{taxTerm, select, GST {hindi kasama ang GST} VAT {hindi kasama ang VAT} TAX {hindi kasama ang Buwis} IVA {hindi kasama ang IVA} SST {hindi kasama ang SST} KDV {hindi kasama ang KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {kasama ang GST} VAT {kasama ang VAT} TAX {kasama ang Buwis} IVA {kasama ang IVA} SST {kasama ang SST} KDV {kasama ang KDV} other {}}","alternativePriceAriaLabel":"Alternatibong nasa halagang {alternativePrice}","strikethroughAriaLabel":"Regular na nasa halagang {strikethroughPrice}"},{"lang":"ms","recurrenceLabel":"{recurrenceTerm, select, MONTH {/bulan} YEAR {/tahun} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per bulan} YEAR {per tahun} other {}}","perUnitLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {setiap lesen} other {}}","freeLabel":"Percuma","freeAriaLabel":"Percuma","taxExclusiveLabel":"{taxTerm, select, GST {kecuali GST} VAT {kecuali VAT} TAX {kecuali Cukai} IVA {kecuali IVA} SST {kecuali SST} KDV {kecuali KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {termasuk GST} VAT {termasuk VAT} TAX {termasuk Cukai} IVA {termasuk IVA} SST {termasuk SST} KDV {termasuk KDV} other {}}","alternativePriceAriaLabel":"Secara alternatif pada {alternativePrice}","strikethroughAriaLabel":"Biasanya pada {strikethroughPrice}"},{"lang":"hi","recurrenceLabel":"{recurrenceTerm, select, MONTH {/माह} YEAR {/वर्ष} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {per माह} YEAR {per वर्ष} other {}}","perUnitLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {प्रति लाइसेंस} other {}}","freeLabel":"फ़्री","freeAriaLabel":"फ़्री","taxExclusiveLabel":"{taxTerm, select, GST {GST अतिरिक्त} VAT {VAT अतिरिक्त} TAX {कर अतिरिक्त} IVA {IVA अतिरिक्त} SST {SST अतिरिक्त} KDV {KDV अतिरिक्त} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {GST सहित} VAT {VAT सहित} TAX {कर सहित} IVA {IVA सहित} SST {SST सहित} KDV {KDV सहित} other {}}","alternativePriceAriaLabel":"वैकल्पिक रूप से इस पर {alternativePrice}","strikethroughAriaLabel":"नियमित रूप से इस पर {strikethroughPrice}"},{"lang":"iw","recurrenceLabel":"{recurrenceTerm, select, MONTH {/חודש} YEAR {/שנה} other {}}","recurrenceAriaLabel":"{recurrenceTerm, select, MONTH {לחודש} YEAR {לשנה} other {}}","perUnitLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","perUnitAriaLabel":"{perUnit, select, LICENSE {לרישיון} other {}}","freeLabel":"חינם","freeAriaLabel":"חינם","taxExclusiveLabel":"{taxTerm, select, GST {ללא GST} VAT {ללא מע\"מ} TAX {ללא מס} IVA {ללא IVA} SST {ללא SST} KDV {ללא KDV} other {}}","taxInclusiveLabel":"{taxTerm, select, GST {כולל GST} VAT {כולל מע\"מ} TAX {כולל מס} IVA {כולל IVA} SST {כולל SST} KDV {כולל KDV} other {}}","alternativePriceAriaLabel":"לחלופין ב-{alternativePrice}","strikethroughAriaLabel":"באופן קבוע ב-{strikethroughPrice}"}],":type":"sheet"} .data; -var Di=Object.defineProperty;var Bi=e=>{throw TypeError(e)};var rl=(e,t,r)=>t in e?Di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var nl=(e,t)=>{for(var r in t)Di(e,r,{get:t[r],enumerable:!0})};var f=(e,t,r)=>rl(e,typeof t!="symbol"?t+"":t,r),Bn=(e,t,r)=>t.has(e)||Bi("Cannot "+r);var u=(e,t,r)=>(Bn(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?Bi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,n)=>(Bn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ne=(e,t,r)=>(Bn(e,t,"access private method"),r);var zi=(e,t,r,n)=>({set _(o){_(e,t,o,r)},get _(){return u(e,t,n)}});(function(){let r={clientId:"",endpoint:"https://www.adobe.com/lana/ll",endpointStage:"https://www.stage.adobe.com/lana/ll",errorType:"e",sampleRate:1,tags:"",implicitSampleRate:1,useProd:!0,isProdDomain:!1},n=new Set(["d","debug","i","info","w","warn","e","error","c","critical"]),o=window;function i(){let{host:d}=window.location;return d.substring(d.length-10)===".adobe.com"&&d.substring(d.length-15)!==".corp.adobe.com"&&d.substring(d.length-16)!==".stage.adobe.com"}function a(d,m){d||(d={}),m||(m={});function p(g){return d[g]!==void 0?d[g]:m[g]!==void 0?m[g]:r[g]}return Object.keys(r).reduce((g,b)=>(g[b]=p(b),g),{})}function s(){return o.location.search.toLowerCase().indexOf("lanadebug")!==-1}function c(){return o.location.host.toLowerCase().indexOf("localhost")!==-1}function l(d,m){d=d&&d.stack?d.stack:d||"",d.length>2e3&&(d=`${d.slice(0,2e3)}`);let p=a(m,o.lana.options);if(!p.clientId){console.warn("LANA ClientID is not set in options.");return}let g;if(m&&m.severity!==void 0)if(n.has(m.severity))g=m.severity;else{let k=s()||o.lana.debug?"d":"i";console.warn(`LANA: Invalid severity '${m.severity}'. Defaulting to '${k}'.`),g=k}else o.lana.debug&&(g="d");let E=parseInt(new URL(window.location).searchParams.get("lana-sample"),10)||(p.errorType==="i"?p.implicitSampleRate:p.sampleRate);if(!o.lana.debug&&!o.lana.localhost&&E<=Math.random()*100)return;let R=i()||p.isProdDomain,P=!R||!p.useProd?p.endpointStage:p.endpoint,y=[`m=${encodeURIComponent(d)}`,`c=${encodeURI(p.clientId)}`,`s=${E}`,`t=${encodeURI(p.errorType)}`];if(g&&y.push(`r=${encodeURI(g)}`),p.tags&&y.push(`tags=${encodeURI(p.tags)}`),(!R||o.lana.debug||o.lana.localhost)&&console.log("LANA Msg: ",d,` -Opts:`,p),!o.lana.localhost||o.lana.debug){let O=new XMLHttpRequest;return o.lana.debug&&(y.push("d"),O.addEventListener("load",()=>{console.log("LANA response:",O.responseText)})),O.open("GET",`${P}?${y.join("&")}`),O.send(),O}}function h(d){l(d.reason||d.error||d.message,{errorType:"i"})}o.lana={debug:!1,log:l,options:a(o.lana&&o.lana.options)},s()&&(o.lana.debug=!0),c()&&(o.lana.localhost=!0),o.addEventListener("error",h),o.addEventListener("unhandledrejection",h)})();var io={};nl(io,{CLASS_NAME_FAILED:()=>jn,CLASS_NAME_HIDDEN:()=>il,CLASS_NAME_PENDING:()=>qn,CLASS_NAME_RESOLVED:()=>Yn,CheckoutWorkflow:()=>Fi,CheckoutWorkflowStep:()=>J,Commitment:()=>ze,ERROR_MESSAGE_BAD_REQUEST:()=>Wn,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>ul,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Xn,EVENT_AEM_ERROR:()=>Ge,EVENT_AEM_LOAD:()=>Fe,EVENT_MAS_ERROR:()=>Vn,EVENT_MAS_READY:()=>Gn,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Br,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>zn,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>pl,EVENT_MERCH_CARD_COLLECTION_SORT:()=>dl,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>bt,EVENT_MERCH_OFFER_READY:()=>xt,EVENT_MERCH_OFFER_SELECT_READY:()=>Kt,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>we,EVENT_MERCH_SEARCH_CHANGE:()=>hl,EVENT_MERCH_SIDENAV_SELECT:()=>ml,EVENT_MERCH_STOCK_CHANGE:()=>cl,EVENT_MERCH_STORAGE_CHANGE:()=>ll,EVENT_OFFER_SELECTED:()=>Fn,EVENT_TYPE_FAILED:()=>Kn,EVENT_TYPE_READY:()=>Dr,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>ue,FF_DEFAULTS:()=>Zt,HEADER_X_REQUEST_ID:()=>Qt,LOG_NAMESPACE:()=>Qn,Landscape:()=>Ie,MARK_DURATION_SUFFIX:()=>qe,MARK_START_SUFFIX:()=>je,MODAL_TYPE_3_IN_1:()=>Ve,NAMESPACE:()=>ol,PARAM_AOS_API_KEY:()=>fl,PARAM_ENV:()=>Jn,PARAM_LANDSCAPE:()=>eo,PARAM_MAS_PREVIEW:()=>Zn,PARAM_WCS_API_KEY:()=>gl,PROVIDER_ENVIRONMENT:()=>no,SELECTOR_MAS_CHECKOUT_LINK:()=>Ae,SELECTOR_MAS_ELEMENT:()=>Xt,SELECTOR_MAS_INLINE_PRICE:()=>Q,SELECTOR_MAS_SP_BUTTON:()=>sl,STATE_FAILED:()=>he,STATE_PENDING:()=>$e,STATE_RESOLVED:()=>_e,TAG_NAME_SERVICE:()=>al,TEMPLATE_PRICE:()=>xl,TEMPLATE_PRICE_ANNUAL:()=>vl,TEMPLATE_PRICE_LEGAL:()=>oo,TEMPLATE_PRICE_STRIKETHROUGH:()=>bl,Term:()=>se,WCS_PROD_URL:()=>to,WCS_STAGE_URL:()=>ro});var ze=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),se=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),ol="merch",il="hidden",Dr="wcms:commerce:ready",al="mas-commerce-service",Q='span[is="inline-price"][data-wcs-osi]',Ae='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',sl="sp-button[data-wcs-osi]",Xt=`${Q},${Ae}`,xt="merch-offer:ready",Kt="merch-offer-select:ready",zn="merch-card:action-menu-toggle",Fn="merch-offer:selected",cl="merch-stock:change",ll="merch-storage:change",we="merch-quantity-selector:change",bt="merch-card-quantity:change",Br="merch-modal:addon-and-quantity-update",hl="merch-search:change",dl="merch-card-collection:sort",pl="merch-card-collection:showmore",ml="merch-sidenav:select",Fe="aem:load",Ge="aem:error",Gn="mas:ready",Vn="mas:error",jn="placeholder-failed",qn="placeholder-pending",Yn="placeholder-resolved",Wn="Bad WCS request",Xn="Commerce offer not found",ul="Literals URL not provided",Kn="mas:failed",vt="mas:resolved",Qn="mas/commerce",Zn="mas.preview",Jn="commerce.env",eo="commerce.landscape",fl="commerce.aosKey",gl="commerce.wcsKey",to="https://www.adobe.com/web_commerce_artifact",ro="https://www.stage.adobe.com/web_commerce_artifact_stage",he="failed",$e="pending",_e="resolved",Ie={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Qt="X-Request-Id",J=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),Fi="UCv3",ue=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),no={PRODUCTION:"PRODUCTION"},Ve={TWP:"twp",D2P:"d2p",CRM:"crm"},je=":start",qe=":duration",xl="price",bl="price-strikethrough",vl="annual",oo="legal",Zt="mas-ff-defaults";var Gi="tacocat.js";var ao=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Vi=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function N(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=yt(n)?n:e;i=a.get(s)}if(o&&i==null){let a=yt(o)?o:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=El(yt(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var yl=e=>typeof e=="boolean",zr=e=>typeof e=="function",Fr=e=>typeof e=="number",ji=e=>e!=null&&typeof e=="object";var yt=e=>typeof e=="string",qi=e=>yt(e)&&e,Jt=e=>Fr(e)&&Number.isFinite(e)&&e>0;function er(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function A(e,t){if(yl(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function tr(e,t,r){let n=Object.values(t);return n.find(o=>ao(o,e))??r??n[0]}function El(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function Yi(e,t=1){return Fr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Al=Date.now(),so=()=>`(+${Date.now()-Al}ms)`,Gr=new Set,wl=A(N("tacocat.debug",{},{metadata:!1}),!1);function Wi(e){let t=`[${Gi}/${e}]`,r=(a,s,...c)=>a?!0:(o(s,...c),!1),n=wl?(a,...s)=>{console.debug(`${t} ${a}`,...s,so())}:()=>{},o=(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:o,warn:(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([,l])=>l(c,...s))}}}function _l(e,t){let r=[e,t];return Gr.add(r),()=>{Gr.delete(r)}}_l((e,...t)=>{console.error(e,...t,so())},(e,...t)=>{console.warn(e,...t,so())});var Sl="no promo",Xi="promo-tag",Tl="yellow",Cl="neutral",Pl=(e,t,r)=>{let n=i=>i||Sl,o=r?` (was "${n(t)}")`:"";return`${n(e)}${o}`},Ll="cancel-context",Vr=(e,t)=>{let r=e===Ll,n=!r&&e?.length>0,o=(n||r)&&(t&&t!=e||!t&&!r),i=o&&n||!o&&!!t,a=i?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:i?Xi:`${Xi} no-promo`,text:Pl(a,t,o),variant:i?Tl:Cl,isOverriden:o}};var co;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(co||(co={}));var oe;(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"})(oe||(oe={}));var ce;(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"})(ce||(ce={}));var lo;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(lo||(lo={}));var ho;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(ho||(ho={}));var po;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(po||(po={}));var mo;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(mo||(mo={}));var uo="ABM",fo="PUF",go="M2M",xo="PERPETUAL",bo="P3Y",kl="TAX_INCLUSIVE_DETAILS",Rl="TAX_EXCLUSIVE",Ki={ABM:uo,PUF:fo,M2M:go,PERPETUAL:xo,P3Y:bo},sp={[uo]:{commitment:oe.YEAR,term:ce.MONTHLY},[fo]:{commitment:oe.YEAR,term:ce.ANNUAL},[go]:{commitment:oe.MONTH,term:ce.MONTHLY},[xo]:{commitment:oe.PERPETUAL,term:void 0},[bo]:{commitment:oe.THREE_MONTHS,term:ce.P3Y}},Qi="Value is not an offer",rr=e=>{if(typeof e!="object")return Qi;let{commitment:t,term:r}=e,n=Ol(t,r);return{...e,planType:n}};var Ol=(e,t)=>{switch(e){case void 0:return Qi;case"":return"";case oe.YEAR:return t===ce.MONTHLY?uo:t===ce.ANNUAL?fo:"";case oe.MONTH:return t===ce.MONTHLY?go:"";case oe.PERPETUAL:return xo;case oe.TERM_LICENSE:return t===ce.P3Y?bo:"";default:return""}};function Zi(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==kl)return e;let s={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Rl}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Nl="mas-commerce-service",Ml={requestId:Qt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function nr(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"?"EN":"MULT";e.sort((a,s)=>a.language===i?-1:s.language===i?1:0),e.sort((a,s)=>a.term?1:s.term?-1:0),o=[e[0]]}return r&&(o=o.map(Zi)),o}var jr=e=>window.setTimeout(e);function Et(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Yi).filter(Jt);return r.length||(r=[t]),r}function qr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(qi)}function ee(){return document.getElementsByTagName(Nl)?.[0]}function Yr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[n,o]of Object.entries(Ml)){let i=r.get(o);i&&(i=i.replace(/[,;]/g,"|"),i=i.replace(/[| ]+/g,"|"),t[n]=i)}return t}var Ye={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},Ji=1e3;function $l(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function ea(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(!Ye.serializableTypes.includes(r))return r}return e}function Il(e,t){if(!Ye.ignoredProperties.includes(e))return ea(t)}var vo={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],o=[],i=t;r.forEach(l=>{l!=null&&($l(l)?n:o).push(l)}),n.length&&(i+=" "+n.map(ea).join(" "));let{pathname:a,search:s}=window.location,c=`${Ye.delimiter}page=${a}${s}`;c.length>Ji&&(c=`${c.slice(0,Ji)}`),i+=c,o.length&&(i+=`${Ye.delimiter}facts=`,i+=JSON.stringify(o,Il)),window.lana?.log(i,Ye)}};function Wr(e){Object.assign(Ye,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Ye&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var ta={LOCAL:"local",PROD:"prod",STAGE:"stage"},yo={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Eo=new Set,Ao=new Set,ra=new Map,na={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},oa={filter:({level:e})=>e!==yo.DEBUG},Hl={filter:()=>!1};function Ul(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){return n.length===1&&zr(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:o,timestamp:performance.now().toFixed(3)}}function Dl(e){[...Ao].every(t=>t(e))&&Eo.forEach(t=>t(e))}function ia(e){let t=(ra.get(e)??0)+1;ra.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:o=>ia(`${n.namespace}/${o}`),updateConfig:Wr};return Object.values(yo).forEach(o=>{n[o]=(i,...a)=>Dl(Ul(o,i,e,a,r))}),Object.seal(n)}function Xr(...e){e.forEach(t=>{let{append:r,filter:n}=t;zr(n)&&Ao.add(n),zr(r)&&Eo.add(r)})}function Bl(e={}){let{name:t}=e,r=A(N("commerce.debug",{search:!0,storage:!0}),t===ta.LOCAL);return Xr(r?na:oa),t===ta.PROD&&Xr(vo),ie}function zl(){Eo.clear(),Ao.clear()}var ie={...ia(Qn),Level:yo,Plugins:{consoleAppender:na,debugFilter:oa,quietFilter:Hl,lanaAppender:vo},init:Bl,reset:zl,use:Xr};var Se=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let o=r.response.headers?.get(Qt);o&&(r.requestId=o),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([n,o])=>`${n}: ${JSON.stringify(o)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` -Caused by: ${this.cause}`),r}};var Fl={[he]:jn,[$e]:qn,[_e]:Yn},Gl={[he]:Kn,[_e]:vt},or,At=class{constructor(t){w(this,or);f(this,"changes",new Map);f(this,"connected",!1);f(this,"error");f(this,"log");f(this,"options");f(this,"promises",[]);f(this,"state",$e);f(this,"timer",null);f(this,"value");f(this,"version",0);f(this,"wrapperElement");this.wrapperElement=t,this.log=ie.module("mas-element")}update(){[he,$e,_e].forEach(t=>{this.wrapperElement.classList.toggle(Fl[t],t===this.state)})}notify(){(this.state===_e||this.state===he)&&(this.state===_e?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===he&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Se&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Gl[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){_(this,or,ee()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:n}=this;return _e===n?Promise.resolve(this.wrapperElement):he===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=_e,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),jr(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=he,this.update();let o=this.wrapperElement.getAttribute("is");return this.log?.error(`${o}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...u(this,or)?.duration}),jr(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=$e,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!ee()||this.timer)return;let{error:r,options:n,state:o,value:i,version:a}=this;this.state=$e,this.timer=jr(async()=>{this.timer=null;let s=null;if(this.changes.size&&(s=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:s}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:s})),s||t)try{await this.wrapperElement.render?.()===!1&&this.state===$e&&this.version===a&&(this.state=o,this.error=r,this.value=i,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};or=new WeakMap;function aa(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Kr(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,aa(t)),o}function Qr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,aa(t)),e):null}var sa="download",ca="upgrade",la={e:"EDU",t:"TEAM"};function Zr(e,t={},r=""){let n=ee();if(!n)return null;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b}=n.collectCheckoutOptions(t),E=Kr(e,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b});return r&&(E.innerHTML=`${r}`),E}function Jr(e){return class extends e{constructor(){super(...arguments);f(this,"checkoutActionHandler");f(this,"masElement",new At(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}get marketSegment(){let n=this.options?.ms??this.value?.[0].marketSegments?.[0];return la[n]??n}get customerSegment(){let n=this.options?.cs??this.value?.[0]?.customerSegment;return la[n]??n}get is3in1Modal(){return Object.values(Ve).includes(this.getAttribute("data-modal"))}get isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return this.is3in1Modal&&(!n||n.content!=="off")}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={}){let o=ee();if(!o)return!1;this.dataset.imsCountry||o.imsCountryPromise.then(d=>{d&&(this.dataset.imsCountry=d)}),n.imsCountry=null;let i=o.collectCheckoutOptions(n,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=o.resolveOfferSelectors(i),l=await Promise.all(c);l=l.map(d=>nr(d,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){let c=ee();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(sa,ca),this.masElement.toggleResolved(s,n,o);let{url:h,text:d,className:m,handler:p}=a;h&&this.setCheckoutUrl(h),d&&(this.firstElementChild.innerHTML=d),m&&this.classList.add(...m.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(s,n,o)){if(!this.classList.contains(sa)&&!this.classList.contains(ca)){let h=c.buildCheckoutURL(n,o);this.setCheckoutUrl(o.modal==="true"?"#":h)}return!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=ee();if(!o)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}=o.collectCheckoutOptions(n);return Qr(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}),!0}}}var ir=class ir extends Jr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Zr(ir,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};f(ir,"is","checkout-link"),f(ir,"tag","a");var Te=ir;window.customElements.get(Te.is)||window.customElements.define(Te.is,Te,{extends:Te.tag});var Vl="p_draft_landscape",jl="/store/",ql=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),wo=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Yl=["env","workflowStep","clientId","country"],ha=e=>ql.get(e)??e;function _o(e,t,r){for(let[n,o]of Object.entries(e)){let i=ha(n);o!=null&&r.has(i)&&t.set(i,o)}}function Wl(e){switch(e){case no.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Xl(e,t){for(let r in e){let n=e[r];for(let[o,i]of Object.entries(n)){if(i==null)continue;let a=ha(o);t.set(`items[${r}][${a}]`,i)}}}function Kl({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let n=e.searchParams.get("af");return e.searchParams.set("af",[n,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===Ve.CRM?"creative":"mini_plans"),e}function da(e){Ql(e);let{env:t,items:r,workflowStep:n,marketSegment:o,customerSegment:i,offerType:a,productArrangementCode:s,landscape:c,modal:l,is3in1:h,preselectPlan:d,...m}=e,p=new URL(Wl(t));if(p.pathname=`${jl}${n}`,n!==J.SEGMENTATION&&n!==J.CHANGE_PLAN_TEAM_PLANS&&Xl(r,p.searchParams),_o({...m},p.searchParams,wo),c===Ie.DRAFT&&_o({af:Vl},p.searchParams,wo),n===J.SEGMENTATION){let g={marketSegment:o,offerType:a,customerSegment:i,productArrangementCode:s,quantity:r?.[0]?.quantity,addonProductArrangementCode:s?r?.find(b=>b.productArrangementCode!==s)?.productArrangementCode:r?.[1]?.productArrangementCode};d?.toLowerCase()==="edu"?p.searchParams.set("ms","EDU"):d?.toLowerCase()==="team"&&p.searchParams.set("cs","TEAM"),_o(g,p.searchParams,wo),p.searchParams.get("ot")==="PROMOTION"&&p.searchParams.delete("ot"),p=Kl({url:p,modal:l,is3in1:h})}return p.toString()}function Ql(e){for(let t of Yl)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==J.SEGMENTATION&&e.workflowStep!==J.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var L=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:J.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:ue.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:Ie.PUBLISHED});function pa({settings:e}){function t(o,i){let{checkoutClientId:a,checkoutWorkflowStep:s,country:c,language:l,promotionCode:h,quantity:d,preselectPlan:m}=e,{checkoutMarketSegment:p,checkoutWorkflowStep:g=s,imsCountry:b,country:E=b??c,language:R=l,quantity:P=d,entitlement:y,upgrade:O,modal:k,perpetual:D,promotionCode:B=h,wcsOsi:K,extraOptions:U,...j}=Object.assign({},i?.dataset??{},o??{}),G=tr(g,J,L.checkoutWorkflowStep);return er({...j,extraOptions:U,checkoutClientId:a,checkoutMarketSegment:p,country:E,quantity:Et(P,L.quantity),checkoutWorkflowStep:G,language:R,entitlement:A(y),upgrade:A(O),modal:k,perpetual:A(D),promotionCode:Vr(B).effectivePromoCode,wcsOsi:qr(K),preselectPlan:m})}function r(o,i){if(!Array.isArray(o)||!o.length||!i)return"";let{env:a,landscape:s}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:h,country:d,promotionCode:m,quantity:p,preselectPlan:g,ms:b,cs:E,...R}=t(i),P=document.querySelector("meta[name=mas-ff-3in1]"),y=Object.values(Ve).includes(i.modal)&&(!P||P.content!=="off"),O=window.frameElement||y?"if":"fp",[{productArrangementCode:k,marketSegments:[D],customerSegment:B,offerType:K}]=o,U=b??D??l,j=E??B;g?.toLowerCase()==="edu"?U="EDU":g?.toLowerCase()==="team"&&(j="TEAM");let G={is3in1:y,checkoutPromoCode:m,clientId:c,context:O,country:d,env:a,items:[],marketSegment:U,customerSegment:j,offerType:K,productArrangementCode:k,workflowStep:h,landscape:s,...R},Me=p[0]>1?p[0]:void 0;if(o.length===1){let{offerId:Ee}=o[0];G.items.push({id:Ee,quantity:Me})}else G.items.push(...o.map(({offerId:Ee,productArrangementCode:ut})=>({id:Ee,quantity:Me,...y?{productArrangementCode:ut}:{}})));return da(G)}let{createCheckoutLink:n}=Te;return{CheckoutLink:Te,CheckoutWorkflowStep:J,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:n}}function Zl({interval:e=200,maxAttempts:t=25}={}){let r=ie.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let o=0;function i(){window.adobeIMS?.initialized?n():++o>t?(r.debug("Timeout"),n()):setTimeout(i,e)}i()})}function Jl(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function eh(e){let t=ie.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function ma({}){let e=Zl(),t=Jl(e),r=eh(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var ua=window.masPriceLiterals;function fa(e){if(Array.isArray(ua)){let t=n=>ua.find(o=>ao(o.lang,n)),r=t(e.language)??t(L.language);if(r)return Object.freeze(r)}return{}}var So=function(e,t){return So=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])},So(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");So(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=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(nh,function(c,l,h,d,m,p){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sa.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(ya.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ya,function(c,l,h,d,m,p){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=T(T({},t),Ea(i)));continue}if(_a.test(o.stem)){t=T(T({},t),Ea(o.stem));continue}var a=Ta(o.stem);a&&(t=T(T({},t),a));var s=oh(o.stem);s&&(t=T(T({},t),s))}return t}var cr={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 Pa(e,t){for(var r="",n=0;n>1),c="a",l=ih(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 ih(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=cr[n||""]||cr[r||""]||cr["".concat(r,"-001")]||cr["001"];return o[0]}var Po,ah=new RegExp("^".concat(Co.source,"*")),sh=new RegExp("".concat(Co.source,"*$"));function C(e,t){return{start:e,end:t}}var ch=!!String.prototype.startsWith,lh=!!String.fromCodePoint,hh=!!Object.fromEntries,dh=!!String.prototype.codePointAt,ph=!!String.prototype.trimStart,mh=!!String.prototype.trimEnd,uh=!!Number.isSafeInteger,fh=uh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ko=!0;try{La=Na("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ko=((Po=La.exec("a"))===null||Po===void 0?void 0:Po[0])==="a"}catch{ko=!1}var La,ka=ch?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ro=lh?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},Ra=hh?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}},gh=ph?function(t){return t.trimStart()}:function(t){return t.replace(ah,"")},xh=mh?function(t){return t.trimEnd()}:function(t){return t.replace(sh,"")};function Na(e,t){return new RegExp(e,t)}var Oo;ko?(Lo=Na("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Oo=function(t,r){var n;Lo.lastIndex=r;var o=Lo.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):Oo=function(t,r){for(var n=[];;){var o=Oa(t,r);if(o===void 0||$a(o)||yh(o))break;n.push(o),r+=o>=65536?2:1}return Ro.apply(void 0,n)};var Lo,Ma=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:$.pound,location:C(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&No(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:$.literal,value:"<".concat(o,"/>"),location:C(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:$.tag,value:o,children:a,location:C(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,C(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,C(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vh(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=C(n,this.clonePosition());return{val:{type:$.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bh(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 Ro.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(),Ro(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,C(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:o,location:C(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Oo(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=C(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(S.EXPECT_ARGUMENT_TYPE,C(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=xh(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var p=C(h,this.clonePosition());l={style:m,styleLocation:p}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var b=C(o,this.clonePosition());if(l&&ka(l?.style,"::",0)){var E=gh(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(E,l.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:b,style:d.val},err:null}}else{if(E.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,b);var R=E;this.locale&&(R=Pa(E,this.locale));var m={type:We.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ba(R):{}},P=s==="date"?$.date:$.time;return{val:{type:P,value:n,location:b,style:m},err:null}}}return{val:{type:s==="number"?$.number:s==="date"?$.date:$.time,value:n,location:b,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,C(y,T({},y)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),k=d.val}var D=this.tryParsePluralOrSelectOptions(t,s,r,O);if(D.err)return D;var g=this.tryParseArgumentClose(o);if(g.err)return g;var B=C(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:n,options:Ra(D.val),location:B},err:null}:{val:{type:$.plural,value:n,options:Ra(D.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,C(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(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=wa(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:We.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ca(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 d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=C(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(p);if(b.err)return b;s.push([l,{value:g.val,location:C(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,C(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=C(o,this.clonePosition());return i?(a*=n,fh(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=Oa(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(ka(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()&&$a(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 No(e){return e>=97&&e<=122||e>=65&&e<=90}function bh(e){return No(e)||e===47}function vh(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 $a(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function yh(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 Mo(e){e.forEach(function(t){if(delete t.location,on(t)||an(t))for(var r in t.options)delete t.options[r].location,Mo(t.options[r].value);else tn(t)&&cn(t.style)||(rn(t)||nn(t))&&sr(t.style)?delete t.style.location:sn(t)&&Mo(t.children)})}function Ia(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ma(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Mo(r.val),r.val}function lr(e,t){var r=t&&t.cache?t.cache:Th,n=t&&t.serializer?t.serializer:Sh,o=t&&t.strategy?t.strategy:Ah;return o(e,{cache:r,serializer:n})}function Eh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ha(e,t,r,n){var o=Eh(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function Ua(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 $o(e,t,r,n,o){return r.bind(t,e,n,o)}function Ah(e,t){var r=e.length===1?Ha:Ua;return $o(e,this,r,t.cache.create(),t.serializer)}function wh(e,t){return $o(e,this,Ua,t.cache.create(),t.serializer)}function _h(e,t){return $o(e,this,Ha,t.cache.create(),t.serializer)}var Sh=function(){return JSON.stringify(arguments)};function Io(){this.cache=Object.create(null)}Io.prototype.get=function(e){return this.cache[e]};Io.prototype.set=function(e,t){this.cache[e]=t};var Th={create:function(){return new Io}},ln={variadic:wh,monadic:_h};var Xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Xe||(Xe={}));var hr=function(e){ar(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 Ho=function(e){ar(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('", "'),'"'),Xe.INVALID_VALUE,i)||this}return t}(hr);var Da=function(e){ar(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Xe.INVALID_VALUE,o)||this}return t}(hr);var Ba=function(e){ar(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,'"'),Xe.MISSING_VALUE,n)||this}return t}(hr);var Z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Z||(Z={}));function Ch(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Z.literal||r.type!==Z.literal?t.push(r):n.value+=r.value,t},[])}function Ph(e){return typeof e=="function"}function dr(e,t,r,n,o,i,a){if(e.length===1&&To(e[0]))return[{type:Z.literal,value:e[0].value}];for(var s=[],c=0,l=e;c{throw TypeError(e)};var nl=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ol=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})};var f=(e,t,r)=>nl(e,typeof t!="symbol"?t+"":t,r),Bn=(e,t,r)=>t.has(e)||zi("Cannot "+r);var u=(e,t,r)=>(Bn(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?zi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,n)=>(Bn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ne=(e,t,r)=>(Bn(e,t,"access private method"),r);var Fi=(e,t,r,n)=>({set _(o){_(e,t,o,r)},get _(){return u(e,t,n)}});(function(){let r={clientId:"",endpoint:"https://www.adobe.com/lana/ll",endpointStage:"https://www.stage.adobe.com/lana/ll",errorType:"e",sampleRate:1,tags:"",implicitSampleRate:1,useProd:!0,isProdDomain:!1},n=new Set(["d","debug","i","info","w","warn","e","error","c","critical"]),o=window;function i(){let{host:d}=window.location;return d.endsWith(".adobe.com")&&!d.endsWith(".corp.adobe.com")&&!d.endsWith(".stage.adobe.com")?!0:["sign.ing","edit.ing"].includes(d)}function a(d,m){d||(d={}),m||(m={});function p(g){return d[g]!==void 0?d[g]:m[g]!==void 0?m[g]:r[g]}return Object.keys(r).reduce((g,b)=>(g[b]=p(b),g),{})}function s(){return o.location.search.toLowerCase().indexOf("lanadebug")!==-1}function c(){return o.location.host.toLowerCase().indexOf("localhost")!==-1}function l(d,m){d=d&&d.stack?d.stack:d||"",d.length>2e3&&(d=`${d.slice(0,2e3)}`);let p=a(m,o.lana.options);if(!p.clientId){console.warn("LANA ClientID is not set in options.");return}let g;if(m&&m.severity!==void 0)if(n.has(m.severity))g=m.severity;else{let k=s()||o.lana.debug?"d":"i";console.warn(`LANA: Invalid severity '${m.severity}'. Defaulting to '${k}'.`),g=k}else o.lana.debug&&(g="d");let E=parseInt(new URL(window.location).searchParams.get("lana-sample"),10)||(p.errorType==="i"?p.implicitSampleRate:p.sampleRate);if(!o.lana.debug&&!o.lana.localhost&&E<=Math.random()*100)return;let R=i()||p.isProdDomain,P=!R||!p.useProd?p.endpointStage:p.endpoint,y=[`m=${encodeURIComponent(d)}`,`c=${encodeURI(p.clientId)}`,`s=${E}`,`t=${encodeURI(p.errorType)}`];if(g&&y.push(`r=${encodeURI(g)}`),p.tags&&y.push(`tags=${encodeURI(p.tags)}`),(!R||o.lana.debug||o.lana.localhost)&&console.log("LANA Msg: ",d,` +Opts:`,p),!o.lana.localhost||o.lana.debug){let O=new XMLHttpRequest;return o.lana.debug&&(y.push("d"),O.addEventListener("load",()=>{console.log("LANA response:",O.responseText)})),O.open("GET",`${P}?${y.join("&")}`),O.send(),O}}function h(d){l(d.reason||d.error||d.message,{errorType:"i"})}o.lana={debug:!1,log:l,options:a(o.lana&&o.lana.options)},s()&&(o.lana.debug=!0),c()&&(o.lana.localhost=!0),o.addEventListener("error",h),o.addEventListener("unhandledrejection",h)})();var io={};ol(io,{CLASS_NAME_FAILED:()=>jn,CLASS_NAME_HIDDEN:()=>al,CLASS_NAME_PENDING:()=>qn,CLASS_NAME_RESOLVED:()=>Wn,CheckoutWorkflow:()=>Gi,CheckoutWorkflowStep:()=>J,Commitment:()=>ze,ERROR_MESSAGE_BAD_REQUEST:()=>Yn,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>fl,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Xn,EVENT_AEM_ERROR:()=>Ge,EVENT_AEM_LOAD:()=>Fe,EVENT_MAS_ERROR:()=>Vn,EVENT_MAS_READY:()=>Gn,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Br,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>zn,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>ml,EVENT_MERCH_CARD_COLLECTION_SORT:()=>pl,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>bt,EVENT_MERCH_OFFER_READY:()=>xt,EVENT_MERCH_OFFER_SELECT_READY:()=>Kt,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>we,EVENT_MERCH_SEARCH_CHANGE:()=>dl,EVENT_MERCH_SIDENAV_SELECT:()=>ul,EVENT_MERCH_STOCK_CHANGE:()=>ll,EVENT_MERCH_STORAGE_CHANGE:()=>hl,EVENT_OFFER_SELECTED:()=>Fn,EVENT_TYPE_FAILED:()=>Kn,EVENT_TYPE_READY:()=>Dr,EVENT_TYPE_RESOLVED:()=>vt,Env:()=>ue,FF_DEFAULTS:()=>Zt,HEADER_X_REQUEST_ID:()=>Qt,LOG_NAMESPACE:()=>Qn,Landscape:()=>Ie,MARK_DURATION_SUFFIX:()=>qe,MARK_START_SUFFIX:()=>je,MODAL_TYPE_3_IN_1:()=>Ve,NAMESPACE:()=>il,PARAM_AOS_API_KEY:()=>gl,PARAM_ENV:()=>Jn,PARAM_LANDSCAPE:()=>eo,PARAM_MAS_PREVIEW:()=>Zn,PARAM_WCS_API_KEY:()=>xl,PROVIDER_ENVIRONMENT:()=>no,SELECTOR_MAS_CHECKOUT_LINK:()=>Ae,SELECTOR_MAS_ELEMENT:()=>Xt,SELECTOR_MAS_INLINE_PRICE:()=>Q,SELECTOR_MAS_SP_BUTTON:()=>cl,STATE_FAILED:()=>he,STATE_PENDING:()=>$e,STATE_RESOLVED:()=>_e,TAG_NAME_SERVICE:()=>sl,TEMPLATE_PRICE:()=>bl,TEMPLATE_PRICE_ANNUAL:()=>yl,TEMPLATE_PRICE_LEGAL:()=>oo,TEMPLATE_PRICE_STRIKETHROUGH:()=>vl,Term:()=>se,WCS_PROD_URL:()=>to,WCS_STAGE_URL:()=>ro});var ze=Object.freeze({MONTH:"MONTH",YEAR:"YEAR",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",PERPETUAL:"PERPETUAL",TERM_LICENSE:"TERM_LICENSE",ACCESS_PASS:"ACCESS_PASS",THREE_MONTHS:"THREE_MONTHS",SIX_MONTHS:"SIX_MONTHS"}),se=Object.freeze({ANNUAL:"ANNUAL",MONTHLY:"MONTHLY",TWO_YEARS:"TWO_YEARS",THREE_YEARS:"THREE_YEARS",P1D:"P1D",P1Y:"P1Y",P3Y:"P3Y",P10Y:"P10Y",P15Y:"P15Y",P3D:"P3D",P7D:"P7D",P30D:"P30D",HALF_YEARLY:"HALF_YEARLY",QUARTERLY:"QUARTERLY"}),il="merch",al="hidden",Dr="wcms:commerce:ready",sl="mas-commerce-service",Q='span[is="inline-price"][data-wcs-osi]',Ae='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',cl="sp-button[data-wcs-osi]",Xt=`${Q},${Ae}`,xt="merch-offer:ready",Kt="merch-offer-select:ready",zn="merch-card:action-menu-toggle",Fn="merch-offer:selected",ll="merch-stock:change",hl="merch-storage:change",we="merch-quantity-selector:change",bt="merch-card-quantity:change",Br="merch-modal:addon-and-quantity-update",dl="merch-search:change",pl="merch-card-collection:sort",ml="merch-card-collection:showmore",ul="merch-sidenav:select",Fe="aem:load",Ge="aem:error",Gn="mas:ready",Vn="mas:error",jn="placeholder-failed",qn="placeholder-pending",Wn="placeholder-resolved",Yn="Bad WCS request",Xn="Commerce offer not found",fl="Literals URL not provided",Kn="mas:failed",vt="mas:resolved",Qn="mas/commerce",Zn="mas.preview",Jn="commerce.env",eo="commerce.landscape",gl="commerce.aosKey",xl="commerce.wcsKey",to="https://www.adobe.com/web_commerce_artifact",ro="https://www.stage.adobe.com/web_commerce_artifact_stage",he="failed",$e="pending",_e="resolved",Ie={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Qt="X-Request-Id",J=Object.freeze({SEGMENTATION:"segmentation",BUNDLE:"bundle",COMMITMENT:"commitment",RECOMMENDATION:"recommendation",EMAIL:"email",PAYMENT:"payment",CHANGE_PLAN_TEAM_PLANS:"change-plan/team-upgrade/plans",CHANGE_PLAN_TEAM_PAYMENT:"change-plan/team-upgrade/payment"}),Gi="UCv3",ue=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),no={PRODUCTION:"PRODUCTION"},Ve={TWP:"twp",D2P:"d2p",CRM:"crm"},je=":start",qe=":duration",bl="price",vl="price-strikethrough",yl="annual",oo="legal",Zt="mas-ff-defaults";var Vi="tacocat.js";var ao=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),ji=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function N(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=yt(n)?n:e;i=a.get(s)}if(o&&i==null){let a=yt(o)?o:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=Al(yt(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var El=e=>typeof e=="boolean",zr=e=>typeof e=="function",Fr=e=>typeof e=="number",qi=e=>e!=null&&typeof e=="object";var yt=e=>typeof e=="string",Wi=e=>yt(e)&&e,Jt=e=>Fr(e)&&Number.isFinite(e)&&e>0;function er(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function A(e,t){if(El(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function tr(e,t,r){let n=Object.values(t);return n.find(o=>ao(o,e))??r??n[0]}function Al(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function Yi(e,t=1){return Fr(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var wl=Date.now(),so=()=>`(+${Date.now()-wl}ms)`,Gr=new Set,_l=A(N("tacocat.debug",{},{metadata:!1}),!1);function Xi(e){let t=`[${Vi}/${e}]`,r=(a,s,...c)=>a?!0:(o(s,...c),!1),n=_l?(a,...s)=>{console.debug(`${t} ${a}`,...s,so())}:()=>{},o=(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:o,warn:(a,...s)=>{let c=`${t} ${a}`;Gr.forEach(([,l])=>l(c,...s))}}}function Sl(e,t){let r=[e,t];return Gr.add(r),()=>{Gr.delete(r)}}Sl((e,...t)=>{console.error(e,...t,so())},(e,...t)=>{console.warn(e,...t,so())});var Tl="no promo",Ki="promo-tag",Cl="yellow",Pl="neutral",Ll=(e,t,r)=>{let n=i=>i||Tl,o=r?` (was "${n(t)}")`:"";return`${n(e)}${o}`},kl="cancel-context",Vr=(e,t)=>{let r=e===kl,n=!r&&e?.length>0,o=(n||r)&&(t&&t!=e||!t&&!r),i=o&&n||!o&&!!t,a=i?e||t:void 0;return{effectivePromoCode:a,overridenPromoCode:e,className:i?Ki:`${Ki} no-promo`,text:Ll(a,t,o),variant:i?Cl:Pl,isOverriden:o}};var co;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(co||(co={}));var oe;(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"})(oe||(oe={}));var ce;(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"})(ce||(ce={}));var lo;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(lo||(lo={}));var ho;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(ho||(ho={}));var po;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(po||(po={}));var mo;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(mo||(mo={}));var uo="ABM",fo="PUF",go="M2M",xo="PERPETUAL",bo="P3Y",Rl="TAX_INCLUSIVE_DETAILS",Ol="TAX_EXCLUSIVE",Qi={ABM:uo,PUF:fo,M2M:go,PERPETUAL:xo,P3Y:bo},cp={[uo]:{commitment:oe.YEAR,term:ce.MONTHLY},[fo]:{commitment:oe.YEAR,term:ce.ANNUAL},[go]:{commitment:oe.MONTH,term:ce.MONTHLY},[xo]:{commitment:oe.PERPETUAL,term:void 0},[bo]:{commitment:oe.THREE_MONTHS,term:ce.P3Y}},Zi="Value is not an offer",rr=e=>{if(typeof e!="object")return Zi;let{commitment:t,term:r}=e,n=Nl(t,r);return{...e,planType:n}};var Nl=(e,t)=>{switch(e){case void 0:return Zi;case"":return"";case oe.YEAR:return t===ce.MONTHLY?uo:t===ce.ANNUAL?fo:"";case oe.MONTH:return t===ce.MONTHLY?go:"";case oe.PERPETUAL:return xo;case oe.TERM_LICENSE:return t===ce.P3Y?bo:"";default:return""}};function Ji(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==Rl)return e;let s={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Ol}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Ml="mas-commerce-service",$l={requestId:Qt,etag:"Etag",lastModified:"Last-Modified",serverTiming:"server-timing"};function nr(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"?"EN":"MULT";e.sort((a,s)=>a.language===i?-1:s.language===i?1:0),e.sort((a,s)=>a.term?1:s.term?-1:0),o=[e[0]]}return r&&(o=o.map(Ji)),o}var jr=e=>window.setTimeout(e);function Et(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(Yi).filter(Jt);return r.length||(r=[t]),r}function qr(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Wi)}function ee(){return document.getElementsByTagName(Ml)?.[0]}function Wr(e){let t={};if(!e?.headers)return t;let r=e.headers;for(let[n,o]of Object.entries($l)){let i=r.get(o);i&&(i=i.replace(/[,;]/g,"|"),i=i.replace(/[| ]+/g,"|"),t[n]=i)}return t}var We={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},ea=1e3;function Il(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function ta(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(!We.serializableTypes.includes(r))return r}return e}function Hl(e,t){if(!We.ignoredProperties.includes(e))return ta(t)}var vo={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],o=[],i=t;r.forEach(l=>{l!=null&&(Il(l)?n:o).push(l)}),n.length&&(i+=" "+n.map(ta).join(" "));let{pathname:a,search:s}=window.location,c=`${We.delimiter}page=${a}${s}`;c.length>ea&&(c=`${c.slice(0,ea)}`),i+=c,o.length&&(i+=`${We.delimiter}facts=`,i+=JSON.stringify(o,Hl)),window.lana?.log(i,We)}};function Yr(e){Object.assign(We,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in We&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var ra={LOCAL:"local",PROD:"prod",STAGE:"stage"},yo={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Eo=new Set,Ao=new Set,na=new Map,oa={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},ia={filter:({level:e})=>e!==yo.DEBUG},Ul={filter:()=>!1};function Dl(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){return n.length===1&&zr(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:o,timestamp:performance.now().toFixed(3)}}function Bl(e){[...Ao].every(t=>t(e))&&Eo.forEach(t=>t(e))}function aa(e){let t=(na.get(e)??0)+1;na.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:o=>aa(`${n.namespace}/${o}`),updateConfig:Yr};return Object.values(yo).forEach(o=>{n[o]=(i,...a)=>Bl(Dl(o,i,e,a,r))}),Object.seal(n)}function Xr(...e){e.forEach(t=>{let{append:r,filter:n}=t;zr(n)&&Ao.add(n),zr(r)&&Eo.add(r)})}function zl(e={}){let{name:t}=e,r=A(N("commerce.debug",{search:!0,storage:!0}),t===ra.LOCAL);return Xr(r?oa:ia),t===ra.PROD&&Xr(vo),ie}function Fl(){Eo.clear(),Ao.clear()}var ie={...aa(Qn),Level:yo,Plugins:{consoleAppender:oa,debugFilter:ia,quietFilter:Ul,lanaAppender:vo},init:zl,reset:Fl,use:Xr};var Se=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let o=r.response.headers?.get(Qt);o&&(r.requestId=o),r.response.status&&(r.status=r.response.status,r.statusText=r.response.statusText),r.response.url&&(r.url=r.response.url)}delete r.response,this.context=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}toString(){let t=Object.entries(this.context||{}).map(([n,o])=>`${n}: ${JSON.stringify(o)}`).join(", "),r=`${this.name}: ${this.message}`;return t&&(r+=` (${t})`),this.cause&&(r+=` +Caused by: ${this.cause}`),r}};var Gl={[he]:jn,[$e]:qn,[_e]:Wn},Vl={[he]:Kn,[_e]:vt},or,At=class{constructor(t){w(this,or);f(this,"changes",new Map);f(this,"connected",!1);f(this,"error");f(this,"log");f(this,"options");f(this,"promises",[]);f(this,"state",$e);f(this,"timer",null);f(this,"value");f(this,"version",0);f(this,"wrapperElement");this.wrapperElement=t,this.log=ie.module("mas-element")}update(){[he,$e,_e].forEach(t=>{this.wrapperElement.classList.toggle(Gl[t],t===this.state)})}notify(){(this.state===_e||this.state===he)&&(this.state===_e?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===he&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Se&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Vl[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){_(this,or,ee()),this.requestUpdate(!0)}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement}))}onceSettled(){let{error:t,promises:r,state:n}=this;return _e===n?Promise.resolve(this.wrapperElement):he===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=_e,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),jr(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=he,this.update();let o=this.wrapperElement.getAttribute("is");return this.log?.error(`${o}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...u(this,or)?.duration}),jr(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=$e,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!ee()||this.timer)return;let{error:r,options:n,state:o,value:i,version:a}=this;this.state=$e,this.timer=jr(async()=>{this.timer=null;let s=null;if(this.changes.size&&(s=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:s}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:s})),s||t)try{await this.wrapperElement.render?.()===!1&&this.state===$e&&this.version===a&&(this.state=o,this.error=r,this.value=i,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};or=new WeakMap;function sa(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Kr(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,sa(t)),o}function Qr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,sa(t)),e):null}var ca="download",la="upgrade",ha={e:"EDU",t:"TEAM"};function Zr(e,t={},r=""){let n=ee();if(!n)return null;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b}=n.collectCheckoutOptions(t),E=Kr(e,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:d,quantity:m,wcsOsi:p,extraOptions:g,analyticsId:b});return r&&(E.innerHTML=`${r}`),E}function wo(e,t={}){let r=t.quantity?.[0];if(!r)return;let n=e?.[0]?.promotion?.displaySummary?.minProductQuantity||1;r{d&&(this.dataset.imsCountry=d)}),n.imsCountry=null;let i=o.collectCheckoutOptions(n,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(d){this.masElement.log?.error("cannot parse exta checkout options",d)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=o.resolveOfferSelectors(i),l=await Promise.all(c);l=l.map(d=>nr(d,i)),wo(l.flat(),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){let c=ee();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(ca,la),this.masElement.toggleResolved(s,n,o);let{url:h,text:d,className:m,handler:p}=a;h&&this.setCheckoutUrl(h),d&&(this.firstElementChild.innerHTML=d),m&&this.classList.add(...m.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(s,n,o)){if(!this.classList.contains(ca)&&!this.classList.contains(la)){let h=c.buildCheckoutURL(n,o);this.setCheckoutUrl(o.modal==="true"?"#":h)}return!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=ee();if(!o)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}=o.collectCheckoutOptions(n);return Qr(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:d,promotionCode:m,quantity:p,wcsOsi:g}),!0}}}var ir=class ir extends Jr(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return Zr(ir,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};f(ir,"is","checkout-link"),f(ir,"tag","a");var Te=ir;window.customElements.get(Te.is)||window.customElements.define(Te.is,Te,{extends:Te.tag});var jl="p_draft_landscape",ql="/store/",Wl=new Map([["countrySpecific","cs"],["customerSegment","cs"],["quantity","q"],["authCode","code"],["checkoutPromoCode","apc"],["rurl","rUrl"],["curl","cUrl"],["ctxrturl","ctxRtUrl"],["country","co"],["language","lang"],["clientId","cli"],["context","ctx"],["productArrangementCode","pa"],["addonProductArrangementCode","ao"],["offerType","ot"],["marketSegment","ms"]]),_o=new Set(["af","ai","ao","apc","appctxid","cli","co","cs","csm","ctx","ctxRtUrl","DCWATC","dp","fr","gsp","ijt","lang","lo","mal","ms","mv","mv2","nglwfdata","ot","otac","pa","pcid","promoid","q","rf","sc","scl","sdid","sid","spint","svar","th","thm","trackingid","usid","workflowid","context.guid","so.ca","so.su","so.tr","so.va"]),Yl=["env","workflowStep","clientId","country"],da=e=>Wl.get(e)??e;function So(e,t,r){for(let[n,o]of Object.entries(e)){let i=da(n);o!=null&&r.has(i)&&t.set(i,o)}}function Xl(e){switch(e){case no.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Kl(e,t){for(let r in e){let n=e[r];for(let[o,i]of Object.entries(n)){if(i==null)continue;let a=da(o);t.set(`items[${r}][${a}]`,i)}}}function Ql({url:e,modal:t,is3in1:r}){if(!r||!e?.searchParams)return e;e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl");let n=e.searchParams.get("af");return e.searchParams.set("af",[n,"uc_new_user_iframe","uc_new_system_close"].filter(Boolean).join(",")),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===Ve.CRM?"creative":"mini_plans"),e}function pa(e){Zl(e);let{env:t,items:r,workflowStep:n,marketSegment:o,customerSegment:i,offerType:a,productArrangementCode:s,landscape:c,modal:l,is3in1:h,preselectPlan:d,...m}=e,p=new URL(Xl(t));if(p.pathname=`${ql}${n}`,n!==J.SEGMENTATION&&n!==J.CHANGE_PLAN_TEAM_PLANS&&Kl(r,p.searchParams),So({...m},p.searchParams,_o),c===Ie.DRAFT&&So({af:jl},p.searchParams,_o),n===J.SEGMENTATION){let g={marketSegment:o,offerType:a,customerSegment:i,productArrangementCode:s,quantity:r?.[0]?.quantity,addonProductArrangementCode:s?r?.find(b=>b.productArrangementCode!==s)?.productArrangementCode:r?.[1]?.productArrangementCode};d?.toLowerCase()==="edu"?p.searchParams.set("ms","EDU"):d?.toLowerCase()==="team"&&p.searchParams.set("cs","TEAM"),So(g,p.searchParams,_o),p.searchParams.get("ot")==="PROMOTION"&&p.searchParams.delete("ot"),p=Ql({url:p,modal:l,is3in1:h})}return p.toString()}function Zl(e){for(let t of Yl)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==J.SEGMENTATION&&e.workflowStep!==J.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var L=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflowStep:J.EMAIL,country:"US",displayOldPrice:!1,displayPerUnit:!0,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:ue.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,alternativePrice:!1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:Ie.PUBLISHED});function ma({settings:e}){function t(o,i){let{checkoutClientId:a,checkoutWorkflowStep:s,country:c,language:l,promotionCode:h,quantity:d,preselectPlan:m}=e,{checkoutMarketSegment:p,checkoutWorkflowStep:g=s,imsCountry:b,country:E=b??c,language:R=l,quantity:P=d,entitlement:y,upgrade:O,modal:k,perpetual:D,promotionCode:B=h,wcsOsi:K,extraOptions:U,...j}=Object.assign({},i?.dataset??{},o??{}),G=tr(g,J,L.checkoutWorkflowStep);return er({...j,extraOptions:U,checkoutClientId:a,checkoutMarketSegment:p,country:E,quantity:Et(P,L.quantity),checkoutWorkflowStep:G,language:R,entitlement:A(y),upgrade:A(O),modal:k,perpetual:A(D),promotionCode:Vr(B).effectivePromoCode,wcsOsi:qr(K),preselectPlan:m})}function r(o,i){if(!Array.isArray(o)||!o.length||!i)return"";let{env:a,landscape:s}=e,{checkoutClientId:c,checkoutMarketSegment:l,checkoutWorkflowStep:h,country:d,promotionCode:m,quantity:p,preselectPlan:g,ms:b,cs:E,...R}=t(i),P=document.querySelector("meta[name=mas-ff-3in1]"),y=Object.values(Ve).includes(i.modal)&&(!P||P.content!=="off"),O=window.frameElement||y?"if":"fp",[{productArrangementCode:k,marketSegments:[D],customerSegment:B,offerType:K}]=o,U=b??D??l,j=E??B;g?.toLowerCase()==="edu"?U="EDU":g?.toLowerCase()==="team"&&(j="TEAM");let G={is3in1:y,checkoutPromoCode:m,clientId:c,context:O,country:d,env:a,items:[],marketSegment:U,customerSegment:j,offerType:K,productArrangementCode:k,workflowStep:h,landscape:s,...R},Me=p[0]>1?p[0]:void 0;if(o.length===1){let{offerId:Ee}=o[0];G.items.push({id:Ee,quantity:Me})}else G.items.push(...o.map(({offerId:Ee,productArrangementCode:ut})=>({id:Ee,quantity:Me,...y?{productArrangementCode:ut}:{}})));return pa(G)}let{createCheckoutLink:n}=Te;return{CheckoutLink:Te,CheckoutWorkflowStep:J,buildCheckoutURL:r,collectCheckoutOptions:t,createCheckoutLink:n}}function Jl({interval:e=200,maxAttempts:t=25}={}){let r=ie.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let o=0;function i(){window.adobeIMS?.initialized?n():++o>t?(r.debug("Timeout"),n()):setTimeout(i,e)}i()})}function eh(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function th(e){let t=ie.module("ims");return e.then(r=>r?window.adobeIMS.getProfile().then(({countryCode:n})=>(t.debug("Got user country:",n),n),n=>{t.error("Unable to get user country:",n)}):null)}function ua({}){let e=Jl(),t=eh(e),r=th(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var fa=window.masPriceLiterals;function ga(e){if(Array.isArray(fa)){let t=n=>fa.find(o=>ao(o.lang,n)),r=t(e.language)??t(L.language);if(r)return Object.freeze(r)}return{}}var To=function(e,t){return To=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])},To(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");To(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var T=function(){return T=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(oh,function(c,l,h,d,m,p){if(l)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ta.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Ea.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ea,function(c,l,h,d,m,p){return h==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=T(T({},t),Aa(i)));continue}if(Sa.test(o.stem)){t=T(T({},t),Aa(o.stem));continue}var a=Ca(o.stem);a&&(t=T(T({},t),a));var s=ih(o.stem);s&&(t=T(T({},t),s))}return t}var cr={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 La(e,t){for(var r="",n=0;n>1),c="a",l=ah(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 ah(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=cr[n||""]||cr[r||""]||cr["".concat(r,"-001")]||cr["001"];return o[0]}var Lo,sh=new RegExp("^".concat(Po.source,"*")),ch=new RegExp("".concat(Po.source,"*$"));function C(e,t){return{start:e,end:t}}var lh=!!String.prototype.startsWith,hh=!!String.fromCodePoint,dh=!!Object.fromEntries,ph=!!String.prototype.codePointAt,mh=!!String.prototype.trimStart,uh=!!String.prototype.trimEnd,fh=!!Number.isSafeInteger,gh=fh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ro=!0;try{ka=Ma("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Ro=((Lo=ka.exec("a"))===null||Lo===void 0?void 0:Lo[0])==="a"}catch{Ro=!1}var ka,Ra=lh?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Oo=hh?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},Oa=dh?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}},xh=mh?function(t){return t.trimStart()}:function(t){return t.replace(sh,"")},bh=uh?function(t){return t.trimEnd()}:function(t){return t.replace(ch,"")};function Ma(e,t){return new RegExp(e,t)}var No;Ro?(ko=Ma("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),No=function(t,r){var n;ko.lastIndex=r;var o=ko.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):No=function(t,r){for(var n=[];;){var o=Na(t,r);if(o===void 0||Ia(o)||Eh(o))break;n.push(o),r+=o>=65536?2:1}return Oo.apply(void 0,n)};var ko,$a=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:$.pound,location:C(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mo(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:$.literal,value:"<".concat(o,"/>"),location:C(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:$.tag,value:o,children:a,location:C(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,C(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,C(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yh(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=C(n,this.clonePosition());return{val:{type:$.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!vh(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 Oo.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(),Oo(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,C(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:o,location:C(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(S.MALFORMED_ARGUMENT,C(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=No(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=C(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(S.EXPECT_ARGUMENT_TYPE,C(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=bh(d.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var p=C(h,this.clonePosition());l={style:m,styleLocation:p}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var b=C(o,this.clonePosition());if(l&&Ra(l?.style,"::",0)){var E=xh(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(E,l.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:b,style:d.val},err:null}}else{if(E.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,b);var R=E;this.locale&&(R=La(E,this.locale));var m={type:Ye.dateTime,pattern:R,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?va(R):{}},P=s==="date"?$.date:$.time;return{val:{type:P,value:n,location:b,style:m},err:null}}}return{val:{type:s==="number"?$.number:s==="date"?$.date:$.time,value:n,location:b,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,C(y,T({},y)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),k=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),k=d.val}var D=this.tryParsePluralOrSelectOptions(t,s,r,O);if(D.err)return D;var g=this.tryParseArgumentClose(o);if(g.err)return g;var B=C(o,this.clonePosition());return s==="select"?{val:{type:$.select,value:n,options:Oa(D.val),location:B},err:null}:{val:{type:$.plural,value:n,options:Oa(D.val),offset:k,pluralType:s==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,C(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,C(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(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=_a(t)}catch{return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ye.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Pa(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 d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=C(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(p);if(b.err)return b;s.push([l,{value:g.val,location:C(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,C(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=C(o,this.clonePosition());return i?(a*=n,gh(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=Na(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(Ra(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()&&Ia(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 Mo(e){return e>=97&&e<=122||e>=65&&e<=90}function vh(e){return Mo(e)||e===47}function yh(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 Ia(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Eh(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 $o(e){e.forEach(function(t){if(delete t.location,on(t)||an(t))for(var r in t.options)delete t.options[r].location,$o(t.options[r].value);else tn(t)&&cn(t.style)||(rn(t)||nn(t))&&sr(t.style)?delete t.style.location:sn(t)&&$o(t.children)})}function Ha(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new $a(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||$o(r.val),r.val}function lr(e,t){var r=t&&t.cache?t.cache:Ch,n=t&&t.serializer?t.serializer:Th,o=t&&t.strategy?t.strategy:wh;return o(e,{cache:r,serializer:n})}function Ah(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ua(e,t,r,n){var o=Ah(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function Da(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 Io(e,t,r,n,o){return r.bind(t,e,n,o)}function wh(e,t){var r=e.length===1?Ua:Da;return Io(e,this,r,t.cache.create(),t.serializer)}function _h(e,t){return Io(e,this,Da,t.cache.create(),t.serializer)}function Sh(e,t){return Io(e,this,Ua,t.cache.create(),t.serializer)}var Th=function(){return JSON.stringify(arguments)};function Ho(){this.cache=Object.create(null)}Ho.prototype.get=function(e){return this.cache[e]};Ho.prototype.set=function(e,t){this.cache[e]=t};var Ch={create:function(){return new Ho}},ln={variadic:_h,monadic:Sh};var Xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Xe||(Xe={}));var hr=function(e){ar(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 Uo=function(e){ar(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('", "'),'"'),Xe.INVALID_VALUE,i)||this}return t}(hr);var Ba=function(e){ar(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Xe.INVALID_VALUE,o)||this}return t}(hr);var za=function(e){ar(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,'"'),Xe.MISSING_VALUE,n)||this}return t}(hr);var Z;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Z||(Z={}));function Ph(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Z.literal||r.type!==Z.literal?t.push(r):n.value+=r.value,t},[])}function Lh(e){return typeof e=="function"}function dr(e,t,r,n,o,i,a){if(e.length===1&&Co(e[0]))return[{type:Z.literal,value:e[0].value}];for(var s=[],c=0,l=e;c0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Ia,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 Fa=za;var Oh=/[0-9\-+#]/,Nh=/[^\d\-+#]/g;function Ga(e){return e.search(Oh)}function Mh(e="#.##"){let t={},r=e.length,n=Ga(e);t.prefix=n>0?e.substring(0,n):"";let o=Ga(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(Nh);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 $h(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,Ih(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 Ih(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.lengthe*12,Xa=(e,t)=>{let{start:r,end:n,displaySummary:{amount:o,duration:i,minProductQuantity:a,outcomeType:s}={}}=e;if(!(o&&i&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},Ke={MONTH:"MONTH",YEAR:"YEAR"},Dh={[se.ANNUAL]:12,[se.MONTHLY]:1,[se.THREE_YEARS]:36,[se.TWO_YEARS]:24},Bo=(e,t)=>({accept:e,round:t}),Bh=[Bo(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Bo(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Bo(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],zo={[ze.YEAR]:{[se.MONTHLY]:Ke.MONTH,[se.ANNUAL]:Ke.YEAR},[ze.MONTH]:{[se.MONTHLY]:Ke.MONTH}},zh=(e,t)=>e.indexOf(`'${t}'`)===0,Fh=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Qa(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Vh(e)),r},Gh=e=>{let t=jh(e),r=zh(e,t),n=e.replace(/'.*?'/,""),o=Ya.test(n)||Wa.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Ka=e=>e.replace(Ya,qa).replace(Wa,qa),Vh=e=>e.match(/#(.?)#/)?.[1]===ja?Uh:ja,jh=e=>e.match(/'(.*?)'/)?.[1]??"",Qa=e=>e.match(/0(.?)0/)?.[1]??"";function wt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=Gh(e),l=r?Qa(e):"",h=Fh(e,r),d=r?2:0,m=i(t,{currencySymbol:a}),p=n?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Va(h,m),g=r?p.lastIndexOf(l):p.length,b=p.substring(0,g),E=p.substring(g+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,a),currencySymbol:a,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:b,isCurrencyFirst:s,recurrenceTerm:o}}var Za=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=Dh[r]??1;return wt(e,o>1?Ke.MONTH:zo[t]?.[r],i=>{let a={divisor:o,price:i,usePrecision:n},{round:s}=Bh.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},Ja=({commitment:e,term:t,...r})=>wt(r,zo[e]?.[t]),es=e=>{let{commitment:t,instant:r,price:n,originalPrice:o,priceWithoutDiscount:i,promotion:a,quantity:s=1,term:c}=e;if(t===ze.YEAR&&c===se.MONTHLY){if(!a)return wt(e,Ke.YEAR,Do);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Xa(a,r)){let m=parseInt(h.replace("P","").replace("M",""));if(isNaN(m))return Do(n);let p=s*o*m,g=s*i*(12-m),b=Math.round((p+g)*100)/100;return wt({...e,price:b},Ke.YEAR)}default:return wt(e,Ke.YEAR,()=>Do(i??n))}}return wt(e,zo[t]?.[c])};var Fo={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",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},qh=Wi("ConsonantTemplates/price"),Yh=/<\/?[^>]+(>|$)/g,z={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",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"},He={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Go="TAX_EXCLUSIVE",Wh=e=>ji(e)?Object.entries(e).filter(([,t])=>yt(t)||Fr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Vi(n)+'"'}`,""):"",V=(e,t,r,n=!1)=>`${n?Ka(t):t??""}`;function Ce(e,t,r,n){let o=e[r];if(o==null)return"";try{return new Fa(o.replace(Yh,""),t).format(n)}catch{return qh.error("Failed to format literal:",o),""}}function Xh(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:o,decimalsDelimiter:i,hasCurrencySpace:a,integer:s,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:h,taxInclusivityLabel:d},m={}){let p=V(z.currencySymbol,n),g=V(z.currencySpace,a?" ":""),b="";return t?b=`${t}`:r&&(b=`${r}`),c&&(b+=p+g),b+=V(z.integer,s),b+=V(z.decimalsDelimiter,i),b+=V(z.decimals,o),c||(b+=g+p),b+=V(z.recurrence,l,null,!0),b+=V(z.unitType,h,null,!0),b+=V(z.taxInclusivity,d,!0),V(e,b,{...m})}var te=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:n=!1,instant:o=void 0}={})=>({country:i,displayFormatted:a=!0,displayRecurrence:s=!0,displayPerUnit:c=!1,displayTax:l=!1,language:h,literals:d={},quantity:m=1}={},{commitment:p,offerSelectorIds:g,formatString:b,price:E,priceWithoutDiscount:R,taxDisplay:P,taxTerm:y,term:O,usePrecision:k,promotion:D}={},B={})=>{Object.entries({country:i,formatString:b,language:h,price:E}).forEach(([el,tl])=>{if(tl==null)throw new Error(`Argument "${el}" is missing for osi ${g?.toString()}, country ${i}, language ${h}`)});let K={...Fo,...d},U=`${h.toLowerCase()}-${i.toUpperCase()}`,j=r&&R?R:E,G=t?Za:Ja;n&&(G=es);let{accessiblePrice:Me,recurrenceTerm:Ee,...ut}=G({commitment:p,formatString:b,instant:o,isIndianPrice:i==="IN",originalPrice:E,priceWithoutDiscount:R,price:t?E:j,promotion:D,quantity:m,term:O,usePrecision:k}),$n="",In="",Hn="";A(s)&&Ee&&(Hn=Ce(K,U,He.recurrenceLabel,{recurrenceTerm:Ee}));let Un="";A(c)&&(Un=Ce(K,U,He.perUnitLabel,{perUnit:"LICENSE"}));let Dn="";A(l)&&y&&(Dn=Ce(K,U,P===Go?He.taxExclusiveLabel:He.taxInclusiveLabel,{taxTerm:y})),r&&($n=Ce(K,U,He.strikethroughAriaLabel,{strikethroughPrice:$n})),e&&(In=Ce(K,U,He.alternativePriceAriaLabel,{alternativePrice:In}));let ft=z.container;if(t&&(ft+=" "+z.containerOptical),r&&(ft+=" "+z.containerStrikethrough),e&&(ft+=" "+z.containerAlternative),n&&(ft+=" "+z.containerAnnual),A(a))return Xh(ft,{...ut,accessibleLabel:$n,altAccessibleLabel:In,recurrenceLabel:Hn,perUnitLabel:Un,taxInclusivityLabel:Dn},B);let{currencySymbol:Hi,decimals:Xc,decimalsDelimiter:Kc,hasCurrencySpace:Ui,integer:Qc,isCurrencyFirst:Zc}=ut,gt=[Qc,Kc,Xc];Zc?(gt.unshift(Ui?"\xA0":""),gt.unshift(Hi)):(gt.push(Ui?"\xA0":""),gt.push(Hi)),gt.push(Hn,Un,Dn);let Jc=gt.join("");return V(ft,Jc,B)},ts=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${o?te({displayStrikethrough:!0})(e,t,r)+" ":""}${te({isAlternativePrice:o})(e,t,r)}`},rs=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let o={...e,displayTax:!1,displayPerUnit:!1},a=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${a?te({displayStrikethrough:!0})(o,t,r)+" ":""}${te({isAlternativePrice:a})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0,instant:n})(o,t,r)}${V(z.containerAnnualSuffix,")")}`},ns=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${te({isAlternativePrice:e.displayOldPrice})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0})(n,t,r)}${V(z.containerAnnualSuffix,")")}`};var pr={...z,containerLegal:"price-legal",planType:"price-plan-type"},hn={...He,planTypeLabel:"planTypeLabel"};function Kh(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},o={}){let i="";return i+=V(pr.unitType,t,null,!0),t&&(r||n)&&(i+=" ("),r&&n&&(r+=". "),i+=V(pr.taxInclusivity,r,!0),i+=V(pr.planType,n,null),t&&(r||n)&&(i+=")"),V(e,i,{...o})}var os=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:o,literals:i={}}={},{taxDisplay:a,taxTerm:s,planType:c}={},l={})=>{let h={...Fo,...i},d=`${o.toLowerCase()}-${e.toUpperCase()}`,m="";A(t)&&(m=Ce(h,d,hn.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&o==="en"&&(r=!1),A(r)&&s&&(p=Ce(h,d,a===Go?hn.taxExclusiveLabel:hn.taxInclusiveLabel,{taxTerm:s}));let g="";A(n)&&c&&(g=Ce(h,d,hn.planTypeLabel,{planType:c}));let b=pr.container;return b+=" "+pr.containerLegal,Kh(b,{perUnitLabel:m,taxInclusivityLabel:p,planTypeLabel:g},l)};var is=te(),as=ts(),ss=te({displayOptical:!0}),cs=te({displayStrikethrough:!0}),ls=te({displayAnnual:!0}),hs=te({displayOptical:!0,isAlternativePrice:!0}),ds=te({isAlternativePrice:!0}),ps=ns(),ms=rs(),us=os;var Qh=(e,t)=>{if(!(!Jt(e)||!Jt(t)))return Math.floor((t-e)/t*100)},fs=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,o=Qh(r,n);return o===void 0?'':`${o}%`};var gs=fs();var bs="INDIVIDUAL_COM",Vo="TEAM_COM",vs="INDIVIDUAL_EDU",jo="TEAM_EDU",xs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Zh={[bs]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[Vo]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[vs]:["LT_lt","LV_lv","SA_en","SG_en"],[jo]:["SG_en","KR_ko"]},Jh={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},ed=[bs,Vo,vs,jo],td=e=>[Vo,jo].includes(e),rd=(e,t,r,n)=>{let o=`${e}_${t}`,i=`${r}_${n}`,a=Jh[o];if(a){let s=ed.indexOf(i);return a[s]}return td(i)},nd=(e,t,r,n)=>{let o=`${e}_${t}`;if(xs.includes(e)||xs.includes(o))return!0;let i=Zh[`${r}_${n}`];return i?i.includes(e)||i.includes(o)?!0:L.displayTax:L.displayTax},ys=async(e,t,r,n)=>{let o=nd(e,t,r,n);return{displayTax:o,forceTaxExclusive:o?rd(e,t,r,n):L.forceTaxExclusive}},mr=class mr extends HTMLSpanElement{constructor(){super();f(this,"masElement",new At(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=ee();if(!n)return null;let{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E}=n.collectPriceOptions(r);return Kr(mr,{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,o){this.masElement.attributeChangedCallback(r,n,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===he}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let n=ee();if(!n)return!1;let o=n.collectPriceOptions(r,this);if(!o.wcsOsi.length)return!1;if(N(Zt)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await n.resolveOfferSelectors(o),l=nr(await c,o);if(l?.length){let{country:h,language:d}=o,m=l[0],[p=""]=m.marketSegments,g=await ys(h,d,m.customerSegment,p);this.dataset.displayTax||(o.displayTax=g?.displayTax||o.displayTax),this.dataset.forceTaxExclusive||(o.forceTaxExclusive=g?.forceTaxExclusive||o.forceTaxExclusive)}}let a=this.masElement.togglePending(o);this.innerHTML="";let[s]=n.resolveOfferSelectors(o);try{let c=await s;return this.renderOffers(nr(c,o),o,a)}catch(c){throw this.innerHTML="",c}}renderOffers(r,n={},o=void 0){if(!this.isConnected)return;let i=ee();if(!i)return!1;let a=i.collectPriceOptions({...this.dataset,...n},this);if(o??(o=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(o,r,a)){this.innerHTML=i.buildPriceHTML(r,a);let s=this.closest("p, h3, div");if(!s||!s.querySelector('span[data-template="strikethrough"]')||s.querySelector(".alt-aria-label"))return!0;let c=s?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===s.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=i.buildPriceHTML(r,l.options))}),!0}}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(o,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=ee();if(!n)return!1;let{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}=n.collectPriceOptions(r);return Qr(this,{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}),!0}};f(mr,"is","inline-price"),f(mr,"tag","span");var Pe=mr;window.customElements.get(Pe.is)||window.customElements.define(Pe.is,Pe,{extends:Pe.tag});function Es({literals:e,providers:t,settings:r}){function n(a,s=null){let c=structuredClone(r);if(s)for(let D of t.price)D(s,c);let{displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:m,displayPlanType:p,forceTaxExclusive:g,perpetual:b,displayAnnual:E,promotionCode:R,quantity:P,alternativePrice:y,wcsOsi:O,...k}=Object.assign(c,s?.dataset??{},a??{});return Object.assign(c,er({...k,displayOldPrice:A(l),displayPerUnit:A(h),displayRecurrence:A(d),displayTax:A(m),displayPlanType:A(p),forceTaxExclusive:A(g),perpetual:A(b),displayAnnual:A(E),promotionCode:Vr(R).effectivePromoCode,quantity:Et(P,L.quantity),alternativePrice:A(y),wcsOsi:qr(O)})),c}function o(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=gs;break;case"strikethrough":l=cs;break;case"annual":l=ls;break;case"legal":l=us;break;default:s.template==="optical"&&s.alternativePrice?l=hs:s.template==="optical"?l=ss:s.displayAnnual&&a[0].planType==="ABM"?l=s.promotionCode?ms:ps:s.alternativePrice?l=ds:l=s.promotionCode?as:is}let h=n(s);h.literals=Object.assign({},e.price,er(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let i=Pe.createInlinePrice;return{InlinePrice:Pe,buildPriceHTML:o,collectPriceOptions:n,createInlinePrice:i}}function od({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||L.language),t??(t=e?.split("_")?.[1]||L.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function As(e={}){let t=N(Zt)==="on",{commerce:r={}}=e,n=ue.PRODUCTION,o=to,i=N("checkoutClientId",r)??L.checkoutClientId,a=tr(N("checkoutWorkflowStep",r),J,L.checkoutWorkflowStep),s=A(N("displayOldPrice",r),t?L.displayOldPrice:!L.displayOldPrice),c=A(N("displayPerUnit",r),t?L.displayPerUnit:!L.displayPerUnit),l=A(N("displayRecurrence",r),L.displayRecurrence),h=A(N("displayTax",r),L.displayTax),d=A(N("displayPlanType",r),L.displayPlanType),m=A(N("entitlement",r),L.entitlement),p=A(N("modal",r),L.modal),g=A(N("forceTaxExclusive",r),L.forceTaxExclusive),b=N("promotionCode",r)??L.promotionCode,E=Et(N("quantity",r)),R=N("wcsApiKey",r)??L.wcsApiKey,P=r?.env==="stage",y=Ie.PUBLISHED;["true",""].includes(r.allowOverride)&&(P=(N(Jn,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",y=tr(N(eo,r),Ie,y)),P&&(n=ue.STAGE,o=ro);let k=N(Zn)??e.preview,D=typeof k<"u"&&k!=="off"&&k!=="false",B={};D&&(B={preview:D});let K=N("mas-io-url")??e.masIOUrl??`https://www${n===ue.STAGE?".stage":""}.adobe.com/mas/io`,U=N("preselect-plan")??void 0;return{...od(e),...B,displayOldPrice:s,checkoutClientId:i,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,displayPlanType:d,entitlement:m,extraOptions:L.extraOptions,modal:p,env:n,forceTaxExclusive:g,promotionCode:b,quantity:E,alternativePrice:L.alternativePrice,wcsApiKey:R,wcsURL:o,landscape:y,masIOUrl:K,...U&&{preselectPlan:U}}}async function dn(e,t={},r=2,n=100){let o;for(let i=0;i<=r;i++)try{let a=await fetch(e,t);return a.retryCount=i,a}catch(a){if(o=a,o.retryCount=i,i>r)break;await new Promise(s=>setTimeout(s,n*(i+1)))}throw o}var id="mas-commerce-service";function ur(e,t){let r;return function(){let n=this,o=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(n,o),t)}}function re(e,t={},r=null,n=null){let o=n?document.createElement(e,{is:n}):document.createElement(e);r instanceof HTMLElement?o.appendChild(r):o.innerHTML=r;for(let[i,a]of Object.entries(t))o.setAttribute(i,a);return o}function pn(){return window.matchMedia("(max-width: 767px)")}function _t(){return pn().matches}function fe(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function ws(){return window.matchMedia("(max-width: 1024px)").matches}function St(){return document.getElementsByTagName(id)?.[0]}var qo="wcs";function _s({settings:e}){let t=ie.module(qo),{env:r,wcsApiKey:n}=e,o=new Map,i=new Map,a,s=new Map;async function c(p,g,b=!0){let E=ee(),R=Xn;t.debug("Fetching:",p);let P="",y;if(p.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let O=new Map(g),[k]=p.offerSelectorIds,D=Date.now()+Math.random().toString(36).substring(2,7),B=`${qo}:${k}:${D}${je}`,K=`${qo}:${k}:${D}${qe}`,U;try{if(performance.mark(B),P=new URL(e.wcsURL),P.searchParams.set("offer_selector_ids",k),P.searchParams.set("country",p.country),P.searchParams.set("locale",p.locale),P.searchParams.set("landscape",r===ue.STAGE?"ALL":e.landscape),P.searchParams.set("api_key",n),p.language&&P.searchParams.set("language",p.language),p.promotionCode&&P.searchParams.set("promotion_code",p.promotionCode),p.currency&&P.searchParams.set("currency",p.currency),y=await dn(P.toString(),{credentials:"omit"}),y.ok){let j=[];try{let G=await y.json();t.debug("Fetched:",p,G),j=G.resolvedOffers??[]}catch(G){t.error(`Error parsing JSON: ${G.message}`,{...G.context,...E?.duration})}j=j.map(rr),g.forEach(({resolve:G},Me)=>{let Ee=j.filter(({offerSelectorIds:ut})=>ut.includes(Me)).flat();Ee.length&&(O.delete(Me),g.delete(Me),G(Ee))})}else R=Wn}catch(j){R=`Network error: ${j.message}`}finally{U=performance.measure(K,B),performance.clearMarks(B),performance.clearMeasures(K)}if(b&&g.size){t.debug("Missing:",{offerSelectorIds:[...g.keys()]});let j=Yr(y);g.forEach(G=>{G.reject(new Se(R,{...p,...j,response:y,measure:fe(U),...E?.duration}))})}}function l(){clearTimeout(a);let p=[...i.values()];i.clear(),p.forEach(({options:g,promises:b})=>c(g,b))}function h(p){if(!p||typeof p!="object")throw new TypeError("Cache must be a Map or similar object");let g=r===ue.STAGE?"stage":"prod",b=p[g];if(!b||typeof b!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[E,R]of Object.entries(b))o.set(E,Promise.resolve(R.map(rr)));t.debug(`Prefilled WCS cache with ${b.size} entries`)}function d(){let p=o.size;s=new Map(o),o.clear(),t.debug(`Moved ${p} cache entries to stale cache`)}function m({country:p,language:g,perpetual:b=!1,promotionCode:E="",wcsOsi:R=[]}){let P=`${g}_${p}`;p!=="GB"&&!b&&(g="MULT");let y=[p,g,E].filter(O=>O).join("-").toLowerCase();return R.map(O=>{let k=`${O}-${y}`;if(o.has(k))return o.get(k);let D=new Promise((B,K)=>{let U=i.get(y);if(!U){let j={country:p,locale:P,offerSelectorIds:[]};p!=="GB"&&!b&&(j.language=g),U={options:j,promises:new Map},i.set(y,U)}E&&(U.options.promotionCode=E),U.options.offerSelectorIds.push(O),U.promises.set(O,{resolve:B,reject:K}),l()}).catch(B=>{if(s.has(k))return s.get(k);throw B});return o.set(k,D),D})}return{Commitment:ze,PlanType:Ki,Term:se,applyPlanType:rr,resolveOfferSelectors:m,flushWcsCacheInternal:d,prefillWcsCache:h}}var Ss="mas-commerce-service",Ts="mas-commerce-service:start",Cs="mas-commerce-service:ready",fr,mn,Ps,Yo=class extends HTMLElement{constructor(){super(...arguments);w(this,mn);w(this,fr);f(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,o,i)=>{let a=await r?.(n,o,this.imsSignedInPromise,i);return a||null})}activate(){let r=u(this,mn,Ps),n=As(r);Wr(r.lana);let o=ie.init(r.hostEnv).module("service");o.debug("Activating:",r);let a={price:fa(n)},s={checkout:new Set,price:new Set},c={literals:a,providers:s,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...pa(c),...ma(c),...Es(c),..._s(c),...io,Log:ie,get defaults(){return L},get log(){return ie},get providers(){return{checkout(h){return s.checkout.add(h),()=>s.checkout.delete(h)},price(h){return s.price.add(h),()=>s.price.delete(h)},has:h=>s.price.has(h)||s.checkout.has(h)}},get settings(){return n}})),o.debug("Activated:",{literals:a,settings:n});let l=new CustomEvent(Dr,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Cs),_(this,fr,performance.measure(Cs,Ts)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Ts),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Xt).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":fe(u(this,fr))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:o})=>o>this.lastLoggingTime).filter(({transferSize:o,duration:i,responseStatus:a})=>o===0&&i===0&&a<200||a>=400),n=Array.from(new Map(r.map(o=>[o.name,o])).values());if(n.some(({name:o})=>/(\/fragments\/|web_commerce_artifact)/.test(o))){let o=n.map(({name:i})=>i);this.log.error("Failed requests:",{failedUrls:o,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};fr=new WeakMap,mn=new WeakSet,Ps=function(){let r=this.getAttribute("env")??"prod",n={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(o=>{let i=this.getAttribute(o);i&&(n[o]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(o=>{let i=this.getAttribute(o);if(i!=null){let a=o.replace(/-([a-z])/g,s=>s[1].toUpperCase());n.commerce[a]=i}}),n};window.customElements.get(Ss)||window.customElements.define(Ss,Yo);var gr=class gr extends Jr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Zr(gr,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)}};f(gr,"is","checkout-button"),f(gr,"tag","button");var Tt=gr;window.customElements.get(Tt.is)||window.customElements.define(Tt.is,Tt,{extends:Tt.tag});function ad(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var xr,Qe=class Qe extends HTMLAnchorElement{constructor(){super();w(this,xr,!1);this.setAttribute("is",Qe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),_(this,xr,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,o){u(this,xr)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let n=St(),o=[r],i=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=n.settings,l={country:a,language:s,wcsOsi:o,promotionCode:i},h=n.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let m=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;i&&(m+=`&promotion_code=${encodeURIComponent(i)}`),this.href=`${ad(c)}?${m}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let n=new Qe;for(let o of r.attributes)o.name!=="is"&&(o.name==="class"&&o.value.includes("upt-link")?n.setAttribute("class",o.value.replace("upt-link","").trim()):n.setAttribute(o.name,o.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};xr=new WeakMap,f(Qe,"is","upt-link"),f(Qe,"tag","a"),f(Qe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Ue=Qe;window.customElements.get(Ue.is)||window.customElements.define(Ue.is,Ue,{extends:Ue.tag});var un=window,gn=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Ls=new WeakMap,fn=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(gn&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Ls.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ls.set(r,t))}return t}toString(){return this.cssText}},Rs=e=>new fn(typeof e=="string"?e:e+"",void 0,ks);var Wo=(e,t)=>{gn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=un.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},xn=gn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Rs(r)})(e):e;var Xo,bn=window,Os=bn.trustedTypes,sd=Os?Os.emptyScript:"",Ns=bn.reactiveElementPolyfillSupport,Qo={toAttribute(e,t){switch(t){case Boolean:e=e?sd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ms=(e,t)=>t!==e&&(t==t||e==e),Ko={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:Ms},Zo="finalized",Ze=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Ko){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ko}static finalize(){if(this.hasOwnProperty(Zo))return!1;this[Zo]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(xn(o))}else t!==void 0&&r.push(xn(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Wo(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Ko){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Qo).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Qo;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ms)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ze[Zo]=!0,Ze.elementProperties=new Map,Ze.elementStyles=[],Ze.shadowRootOptions={mode:"open"},Ns?.({ReactiveElement:Ze}),((Xo=bn.reactiveElementVersions)!==null&&Xo!==void 0?Xo:bn.reactiveElementVersions=[]).push("1.6.3");var Jo,vn=window,Ct=vn.trustedTypes,$s=Ct?Ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,ti="$lit$",De=`lit$${(Math.random()+"").slice(9)}$`,Fs="?"+De,cd=`<${Fs}>`,tt=document,yn=()=>tt.createComment(""),vr=e=>e===null||typeof e!="object"&&typeof e!="function",Gs=Array.isArray,ld=e=>Gs(e)||typeof e?.[Symbol.iterator]=="function",ei=`[ -\f\r]`,br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Is=/-->/g,Hs=/>/g,Je=RegExp(`>|${ei}(?:([^\\s"'>=/]+)(${ei}*=${ei}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Ds=/"/g,Vs=/^(?:script|style|textarea|title)$/i,js=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Af=js(1),wf=js(2),yr=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Bs=new WeakMap,et=tt.createTreeWalker(tt,129,null,!1);function qs(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $s!==void 0?$s.createHTML(t):t}var hd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=br;for(let s=0;s"?(a=o??br,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?Je:h[3]==='"'?Ds:Us):a===Ds||a===Us?a=Je:a===Is||a===Hs?a=br:(a=Je,o=void 0);let p=a===Je&&e[s+1].startsWith("/>")?" ":"";i+=a===br?c+cd:d>=0?(n.push(l),c.slice(0,d)+ti+c.slice(d)+De+p):c+De+(d===-2?(n.push(void 0),s):p)}return[qs(e,i+(e[r]||"")+(t===2?"":"")),n]},Er=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=hd(t,r);if(this.el=e.createElement(l,n),et.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=et.nextNode())!==null&&c.length0){o.textContent=Ct?Ct.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Pt(this,t,r,0),a=!vr(t)||t!==this._$AH&&t!==yr,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;cnew Ar(typeof e=="string"?e:e+"",void 0,si),v=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new Ar(r,e,si)},ci=(e,t)=>{wn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=An.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},_n=wn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Le(r)})(e):e;var li,Sn=window,Ws=Sn.trustedTypes,pd=Ws?Ws.emptyScript:"",Xs=Sn.reactiveElementPolyfillSupport,di={toAttribute(e,t){switch(t){case Boolean:e=e?pd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ks=(e,t)=>t!==e&&(t==t||e==e),hi={attribute:!0,type:String,converter:di,reflect:!1,hasChanged:Ks},pi="finalized",ke=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=hi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||hi}static finalize(){if(this.hasOwnProperty(pi))return!1;this[pi]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(_n(o))}else t!==void 0&&r.push(_n(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return ci(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=hi){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:di).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:di;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ks)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ke[pi]=!0,ke.elementProperties=new Map,ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},Xs?.({ReactiveElement:ke}),((li=Sn.reactiveElementVersions)!==null&&li!==void 0?li:Sn.reactiveElementVersions=[]).push("1.6.3");var mi,Tn=window,kt=Tn.trustedTypes,Qs=kt?kt.createPolicy("lit-html",{createHTML:e=>e}):void 0,fi="$lit$",Be=`lit$${(Math.random()+"").slice(9)}$`,oc="?"+Be,md=`<${oc}>`,ot=document,_r=()=>ot.createComment(""),Sr=e=>e===null||typeof e!="object"&&typeof e!="function",ic=Array.isArray,ud=e=>ic(e)||typeof e?.[Symbol.iterator]=="function",ui=`[ -\f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zs=/-->/g,Js=/>/g,rt=RegExp(`>|${ui}(?:([^\\s"'>=/]+)(${ui}*=${ui}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),ec=/'/g,tc=/"/g,ac=/^(?:script|style|textarea|title)$/i,sc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=sc(1),Lf=sc(2),it=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),rc=new WeakMap,nt=ot.createTreeWalker(ot,129,null,!1);function cc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qs!==void 0?Qs.createHTML(t):t}var fd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=wr;for(let s=0;s"?(a=o??wr,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?rt:h[3]==='"'?tc:ec):a===tc||a===ec?a=rt:a===Zs||a===Js?a=wr:(a=rt,o=void 0);let p=a===rt&&e[s+1].startsWith("/>")?" ":"";i+=a===wr?c+md:d>=0?(n.push(l),c.slice(0,d)+fi+c.slice(d)+Be+p):c+Be+(d===-2?(n.push(void 0),s):p)}return[cc(e,i+(e[r]||"")+(t===2?"":"")),n]},Tr=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=fd(t,r);if(this.el=e.createElement(l,n),nt.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=nt.nextNode())!==null&&c.length0){o.textContent=kt?kt.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Rt(this,t,r,0),a=!Sr(t)||t!==this._$AH&&t!==it,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;c{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:t,a=i._$litPart$;if(a===void 0){let s=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new Cr(t.insertBefore(_r(),s),s,void 0,r??{})}return a._$AI(e),a};var Ei,Ai;var H=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return it}};H.finalized=!0,H._$litElement$=!0,(Ei=globalThis.litElementHydrateSupport)===null||Ei===void 0||Ei.call(globalThis,{LitElement:H});var hc=globalThis.litElementPolyfillSupport;hc?.({LitElement:H});((Ai=globalThis.litElementVersions)!==null&&Ai!==void 0?Ai:globalThis.litElementVersions=[]).push("3.3.3");var ge="(max-width: 767px)",Cn="(max-width: 1199px)",Y="(min-width: 768px)",F="(min-width: 1200px)",xe="(min-width: 1600px)";var dc=v` +`,Xe.MISSING_INTL_API,a);var O=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));y=h.options[O]||h.options.other}if(!y)throw new Uo(h.value,m,Object.keys(h.options),a);s.push.apply(s,dr(y.value,t,r,n,o,m-(h.offset||0)));continue}}return Ph(s)}function kh(e,t){return t?T(T(T({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=T(T({},e[n]),t[n]||{}),r},{})):e}function Rh(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=kh(e[n],t[n]),r},T({},e)):e}function Do(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Oh(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:lr(function(){for(var t,r=[],n=0;n0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Ha,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 Ga=Fa;var Nh=/[0-9\-+#]/,Mh=/[^\d\-+#]/g;function Va(e){return e.search(Nh)}function $h(e="#.##"){let t={},r=e.length,n=Va(e);t.prefix=n>0?e.substring(0,n):"";let o=Va(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(Mh);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 Ih(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,Hh(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 Hh(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.lengthe*12,Ka=(e,t)=>{let{start:r,end:n,displaySummary:{amount:o,duration:i,minProductQuantity:a,outcomeType:s}={}}=e;if(!(o&&i&&s&&a))return!1;let c=t?new Date(t):new Date;if(!r||!n)return!1;let l=new Date(r),h=new Date(n);return c>=l&&c<=h},Ke={MONTH:"MONTH",YEAR:"YEAR"},Bh={[se.ANNUAL]:12,[se.MONTHLY]:1,[se.THREE_YEARS]:36,[se.TWO_YEARS]:24},zo=(e,t)=>({accept:e,round:t}),zh=[zo(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),zo(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),zo(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Fo={[ze.YEAR]:{[se.MONTHLY]:Ke.MONTH,[se.ANNUAL]:Ke.YEAR},[ze.MONTH]:{[se.MONTHLY]:Ke.MONTH}},Fh=(e,t)=>e.indexOf(`'${t}'`)===0,Gh=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Za(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+jh(e)),r},Vh=e=>{let t=qh(e),r=Fh(e,t),n=e.replace(/'.*?'/,""),o=Ya.test(n)||Xa.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Qa=e=>e.replace(Ya,Wa).replace(Xa,Wa),jh=e=>e.match(/#(.?)#/)?.[1]===qa?Dh:qa,qh=e=>e.match(/'(.*?)'/)?.[1]??"",Za=e=>e.match(/0(.?)0/)?.[1]??"";function wt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=Vh(e),l=r?Za(e):"",h=Gh(e,r),d=r?2:0,m=i(t,{currencySymbol:a}),p=n?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):ja(h,m),g=r?p.lastIndexOf(l):p.length,b=p.substring(0,g),E=p.substring(g+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,a),currencySymbol:a,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:b,isCurrencyFirst:s,recurrenceTerm:o}}var Ja=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=Bh[r]??1;return wt(e,o>1?Ke.MONTH:Fo[t]?.[r],i=>{let a={divisor:o,price:i,usePrecision:n},{round:s}=zh.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},es=({commitment:e,term:t,...r})=>wt(r,Fo[e]?.[t]),ts=e=>{let{commitment:t,instant:r,price:n,originalPrice:o,priceWithoutDiscount:i,promotion:a,quantity:s=1,term:c}=e;if(t===ze.YEAR&&c===se.MONTHLY){if(!a)return wt(e,Ke.YEAR,Bo);let{displaySummary:{outcomeType:l,duration:h,minProductQuantity:d=1}={}}=a;switch(l){case"PERCENTAGE_DISCOUNT":if(s>=d&&Ka(a,r)){let m=parseInt(h.replace("P","").replace("M",""));if(isNaN(m))return Bo(n);let p=s*o*m,g=s*i*(12-m),b=Math.round((p+g)*100)/100;return wt({...e,price:b},Ke.YEAR)}default:return wt(e,Ke.YEAR,()=>Bo(i??n))}}return wt(e,Fo[t]?.[c])};var Go={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",strikethroughAriaLabel:"Regularly at",planTypeLabel:"{planType, select, ABM {Annual, paid monthly.} other {}}"},Wh=Xi("ConsonantTemplates/price"),Yh=/<\/?[^>]+(>|$)/g,z={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAlternative:"price-alternative",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"},He={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Vo="TAX_EXCLUSIVE",Xh=e=>qi(e)?Object.entries(e).filter(([,t])=>yt(t)||Fr(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+ji(n)+'"'}`,""):"",V=(e,t,r,n=!1)=>`${n?Qa(t):t??""}`;function Ce(e,t,r,n){let o=e[r];if(o==null)return"";try{return new Ga(o.replace(Yh,""),t).format(n)}catch{return Wh.error("Failed to format literal:",o),""}}function Kh(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:o,decimalsDelimiter:i,hasCurrencySpace:a,integer:s,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:h,taxInclusivityLabel:d},m={}){let p=V(z.currencySymbol,n),g=V(z.currencySpace,a?" ":""),b="";return t?b=`${t}`:r&&(b=`${r}`),c&&(b+=p+g),b+=V(z.integer,s),b+=V(z.decimalsDelimiter,i),b+=V(z.decimals,o),c||(b+=g+p),b+=V(z.recurrence,l,null,!0),b+=V(z.unitType,h,null,!0),b+=V(z.taxInclusivity,d,!0),V(e,b,{...m})}var te=({isAlternativePrice:e=!1,displayOptical:t=!1,displayStrikethrough:r=!1,displayAnnual:n=!1,instant:o=void 0}={})=>({country:i,displayFormatted:a=!0,displayRecurrence:s=!0,displayPerUnit:c=!1,displayTax:l=!1,language:h,literals:d={},quantity:m=1}={},{commitment:p,offerSelectorIds:g,formatString:b,price:E,priceWithoutDiscount:R,taxDisplay:P,taxTerm:y,term:O,usePrecision:k,promotion:D}={},B={})=>{Object.entries({country:i,formatString:b,language:h,price:E}).forEach(([tl,rl])=>{if(rl==null)throw new Error(`Argument "${tl}" is missing for osi ${g?.toString()}, country ${i}, language ${h}`)});let K={...Go,...d},U=`${h.toLowerCase()}-${i.toUpperCase()}`,j=r&&R?R:E,G=t?Ja:es;n&&(G=ts);let{accessiblePrice:Me,recurrenceTerm:Ee,...ut}=G({commitment:p,formatString:b,instant:o,isIndianPrice:i==="IN",originalPrice:E,priceWithoutDiscount:R,price:t?E:j,promotion:D,quantity:m,term:O,usePrecision:k}),$n="",In="",Hn="";A(s)&&Ee&&(Hn=Ce(K,U,He.recurrenceLabel,{recurrenceTerm:Ee}));let Un="";A(c)&&(Un=Ce(K,U,He.perUnitLabel,{perUnit:"LICENSE"}));let Dn="";A(l)&&y&&(Dn=Ce(K,U,P===Vo?He.taxExclusiveLabel:He.taxInclusiveLabel,{taxTerm:y})),r&&($n=Ce(K,U,He.strikethroughAriaLabel,{strikethroughPrice:$n})),e&&(In=Ce(K,U,He.alternativePriceAriaLabel,{alternativePrice:In}));let ft=z.container;if(t&&(ft+=" "+z.containerOptical),r&&(ft+=" "+z.containerStrikethrough),e&&(ft+=" "+z.containerAlternative),n&&(ft+=" "+z.containerAnnual),A(a))return Kh(ft,{...ut,accessibleLabel:$n,altAccessibleLabel:In,recurrenceLabel:Hn,perUnitLabel:Un,taxInclusivityLabel:Dn},B);let{currencySymbol:Ui,decimals:Kc,decimalsDelimiter:Qc,hasCurrencySpace:Di,integer:Zc,isCurrencyFirst:Jc}=ut,gt=[Zc,Qc,Kc];Jc?(gt.unshift(Di?"\xA0":""),gt.unshift(Ui)):(gt.push(Di?"\xA0":""),gt.push(Ui)),gt.push(Hn,Un,Dn);let el=gt.join("");return V(ft,el,B)},rs=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${o?te({displayStrikethrough:!0})(e,t,r)+" ":""}${te({isAlternativePrice:o})(e,t,r)}`},ns=()=>(e,t,r)=>{let{instant:n}=e;try{n||(n=new URLSearchParams(document.location.search).get("instant")),n&&(n=new Date(n))}catch{n=void 0}let o={...e,displayTax:!1,displayPerUnit:!1},a=(e.displayOldPrice===void 0||A(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${a?te({displayStrikethrough:!0})(o,t,r)+" ":""}${te({isAlternativePrice:a})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0,instant:n})(o,t,r)}${V(z.containerAnnualSuffix,")")}`},os=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${te({isAlternativePrice:e.displayOldPrice})(e,t,r)}${V(z.containerAnnualPrefix," (")}${te({displayAnnual:!0})(n,t,r)}${V(z.containerAnnualSuffix,")")}`};var pr={...z,containerLegal:"price-legal",planType:"price-plan-type"},hn={...He,planTypeLabel:"planTypeLabel"};function Qh(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},o={}){let i="";return i+=V(pr.unitType,t,null,!0),t&&(r||n)&&(i+=" ("),r&&n&&(r+=". "),i+=V(pr.taxInclusivity,r,!0),i+=V(pr.planType,n,null),t&&(r||n)&&(i+=")"),V(e,i,{...o})}var is=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:o,literals:i={}}={},{taxDisplay:a,taxTerm:s,planType:c}={},l={})=>{let h={...Go,...i},d=`${o.toLowerCase()}-${e.toUpperCase()}`,m="";A(t)&&(m=Ce(h,d,hn.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&o==="en"&&(r=!1),A(r)&&s&&(p=Ce(h,d,a===Vo?hn.taxExclusiveLabel:hn.taxInclusiveLabel,{taxTerm:s}));let g="";A(n)&&c&&(g=Ce(h,d,hn.planTypeLabel,{planType:c}));let b=pr.container;return b+=" "+pr.containerLegal,Qh(b,{perUnitLabel:m,taxInclusivityLabel:p,planTypeLabel:g},l)};var as=te(),ss=rs(),cs=te({displayOptical:!0}),ls=te({displayStrikethrough:!0}),hs=te({displayAnnual:!0}),ds=te({displayOptical:!0,isAlternativePrice:!0}),ps=te({isAlternativePrice:!0}),ms=os(),us=ns(),fs=is;var Zh=(e,t)=>{if(!(!Jt(e)||!Jt(t)))return Math.floor((t-e)/t*100)},gs=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,o=Zh(r,n);return o===void 0?'':`${o}%`};var xs=gs();var vs="INDIVIDUAL_COM",jo="TEAM_COM",ys="INDIVIDUAL_EDU",qo="TEAM_EDU",bs=["GB_en","AU_en","FR_fr","AT_de","BE_en","BE_fr","BE_nl","BG_bg","CH_de","CH_fr","CH_it","CZ_cs","DE_de","DK_da","EE_et","EG_ar","EG_en","ES_es","FI_fi","GR_el","GR_en","HU_hu","IE_en","IT_it","LU_de","LU_en","LU_fr","NL_nl","NO_nb","PL_pl","PT_pt","RO_ro","SE_sv","SI_sl","SK_sk","TR_tr","UA_uk","ID_en","ID_in","IN_en","IN_hi","JP_ja","MY_en","MY_ms","NZ_en","TH_en","TH_th"],Jh={[vs]:["MU_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","SG_en","KR_ko"],[jo]:["MU_en","LT_lt","LV_lv","NG_en","CO_es","KR_ko"],[ys]:["LT_lt","LV_lv","SA_en","SG_en"],[qo]:["SG_en","KR_ko"]},ed={MU_en:[!1,!1,!1,!1],NG_en:[!1,!1,!1,!1],AU_en:[!1,!1,!1,!1],JP_ja:[!1,!1,!1,!1],NZ_en:[!1,!1,!1,!1],TH_en:[!1,!1,!1,!1],TH_th:[!1,!1,!1,!1],CO_es:[!1,!0,!1,!1],AT_de:[!1,!1,!1,!0],SG_en:[!1,!1,!1,!0]},td=[vs,jo,ys,qo],rd=e=>[jo,qo].includes(e),nd=(e,t,r,n)=>{let o=`${e}_${t}`,i=`${r}_${n}`,a=ed[o];if(a){let s=td.indexOf(i);return a[s]}return rd(i)},od=(e,t,r,n)=>{let o=`${e}_${t}`;if(bs.includes(e)||bs.includes(o))return!0;let i=Jh[`${r}_${n}`];return i?i.includes(e)||i.includes(o)?!0:L.displayTax:L.displayTax},Es=async(e,t,r,n)=>{let o=od(e,t,r,n);return{displayTax:o,forceTaxExclusive:o?nd(e,t,r,n):L.forceTaxExclusive}},mr=class mr extends HTMLSpanElement{constructor(){super();f(this,"masElement",new At(this));this.handleClick=this.handleClick.bind(this)}static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-display-plan-type","data-display-annual","data-perpetual","data-promotion-code","data-quantity","data-force-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=ee();if(!n)return null;let{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E}=n.collectPriceOptions(r);return Kr(mr,{displayOldPrice:o,displayPerUnit:i,displayRecurrence:a,displayTax:s,displayPlanType:c,displayAnnual:l,forceTaxExclusive:h,perpetual:d,promotionCode:m,quantity:p,alternativePrice:g,template:b,wcsOsi:E})}get isInlinePrice(){return!0}attributeChangedCallback(r,n,o){this.masElement.attributeChangedCallback(r,n,o)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.handleClick)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}handleClick(r){r.target!==this&&(r.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}get isFailed(){return this.masElement.state===he}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}async render(r={}){if(!this.isConnected)return!1;let n=ee();if(!n)return!1;let o=n.collectPriceOptions(r,this);if(!o.wcsOsi.length)return!1;if(N(Zt)==="on"&&(!this.dataset.displayTax||!this.dataset.forceTaxExclusive)){let[c]=await n.resolveOfferSelectors(o),l=nr(await c,o);if(l?.length){let{country:h,language:d}=o,m=l[0],[p=""]=m.marketSegments,g=await Es(h,d,m.customerSegment,p);this.dataset.displayTax||(o.displayTax=g?.displayTax||o.displayTax),this.dataset.forceTaxExclusive||(o.forceTaxExclusive=g?.forceTaxExclusive||o.forceTaxExclusive)}}let a=this.masElement.togglePending(o);this.innerHTML="";let[s]=n.resolveOfferSelectors(o);try{let c=await s;return this.renderOffers(nr(c,o),o,a)}catch(c){throw this.innerHTML="",c}}renderOffers(r,n={},o=void 0){if(!this.isConnected)return;let i=ee();if(!i)return!1;let a=i.collectPriceOptions({...this.dataset,...n},this);if(wo(r.flat(),a),o??(o=this.masElement.togglePending(a)),r.length){if(this.masElement.toggleResolved(o,r,a)){this.innerHTML=i.buildPriceHTML(r,a);let s=this.closest("p, h3, div");if(!s||!s.querySelector('span[data-template="strikethrough"]')||s.querySelector(".alt-aria-label"))return!0;let c=s?.querySelectorAll('span[is="inline-price"]');return c.length>1&&c.length===s.querySelectorAll('span[data-template="strikethrough"]').length*2&&c.forEach(l=>{l.dataset.template!=="strikethrough"&&l.options&&!l.options.alternativePrice&&!l.isFailed&&(l.options.alternativePrice=!0,l.innerHTML=i.buildPriceHTML(r,l.options))}),!0}}else{let s=new Error(`Not provided: ${a?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(o,s,a))return this.innerHTML="",!0}return!1}updateOptions(r){let n=ee();if(!n)return!1;let{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}=n.collectPriceOptions(r);return Qr(this,{alternativePrice:o,displayOldPrice:i,displayPerUnit:a,displayRecurrence:s,displayTax:c,forceTaxExclusive:l,perpetual:h,promotionCode:d,quantity:m,template:p,wcsOsi:g}),!0}};f(mr,"is","inline-price"),f(mr,"tag","span");var Pe=mr;window.customElements.get(Pe.is)||window.customElements.define(Pe.is,Pe,{extends:Pe.tag});function As({literals:e,providers:t,settings:r}){function n(a,s=null){let c=structuredClone(r);if(s)for(let D of t.price)D(s,c);let{displayOldPrice:l,displayPerUnit:h,displayRecurrence:d,displayTax:m,displayPlanType:p,forceTaxExclusive:g,perpetual:b,displayAnnual:E,promotionCode:R,quantity:P,alternativePrice:y,wcsOsi:O,...k}=Object.assign(c,s?.dataset??{},a??{});return Object.assign(c,er({...k,displayOldPrice:A(l),displayPerUnit:A(h),displayRecurrence:A(d),displayTax:A(m),displayPlanType:A(p),forceTaxExclusive:A(g),perpetual:A(b),displayAnnual:A(E),promotionCode:Vr(R).effectivePromoCode,quantity:Et(P,L.quantity),alternativePrice:A(y),wcsOsi:qr(O)})),c}function o(a,s){if(!Array.isArray(a)||!a.length||!s)return"";let{template:c}=s,l;switch(c){case"discount":l=xs;break;case"strikethrough":l=ls;break;case"annual":l=hs;break;case"legal":l=fs;break;default:s.template==="optical"&&s.alternativePrice?l=ds:s.template==="optical"?l=cs:s.displayAnnual&&a[0].planType==="ABM"?l=s.promotionCode?us:ms:s.alternativePrice?l=ps:l=s.promotionCode?ss:as}let h=n(s);h.literals=Object.assign({},e.price,er(s.literals??{}));let[d]=a;return d={...d,...d.priceDetails},l(h,d)}let i=Pe.createInlinePrice;return{InlinePrice:Pe,buildPriceHTML:o,collectPriceOptions:n,createInlinePrice:i}}function id({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||L.language),t??(t=e?.split("_")?.[1]||L.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function ws(e={}){let t=N(Zt)==="on",{commerce:r={}}=e,n=ue.PRODUCTION,o=to,i=N("checkoutClientId",r)??L.checkoutClientId,a=tr(N("checkoutWorkflowStep",r),J,L.checkoutWorkflowStep),s=A(N("displayOldPrice",r),t?L.displayOldPrice:!L.displayOldPrice),c=A(N("displayPerUnit",r),t?L.displayPerUnit:!L.displayPerUnit),l=A(N("displayRecurrence",r),L.displayRecurrence),h=A(N("displayTax",r),L.displayTax),d=A(N("displayPlanType",r),L.displayPlanType),m=A(N("entitlement",r),L.entitlement),p=A(N("modal",r),L.modal),g=A(N("forceTaxExclusive",r),L.forceTaxExclusive),b=N("promotionCode",r)??L.promotionCode,E=Et(N("quantity",r)),R=N("wcsApiKey",r)??L.wcsApiKey,P=r?.env==="stage",y=Ie.PUBLISHED;["true",""].includes(r.allowOverride)&&(P=(N(Jn,r,{metadata:!1})?.toLowerCase()??r?.env)==="stage",y=tr(N(eo,r),Ie,y)),P&&(n=ue.STAGE,o=ro);let k=N(Zn)??e.preview,D=typeof k<"u"&&k!=="off"&&k!=="false",B={};D&&(B={preview:D});let K=N("mas-io-url")??e.masIOUrl??`https://www${n===ue.STAGE?".stage":""}.adobe.com/mas/io`,U=N("preselect-plan")??void 0;return{...id(e),...B,displayOldPrice:s,checkoutClientId:i,checkoutWorkflowStep:a,displayPerUnit:c,displayRecurrence:l,displayTax:h,displayPlanType:d,entitlement:m,extraOptions:L.extraOptions,modal:p,env:n,forceTaxExclusive:g,promotionCode:b,quantity:E,alternativePrice:L.alternativePrice,wcsApiKey:R,wcsURL:o,landscape:y,masIOUrl:K,...U&&{preselectPlan:U}}}async function dn(e,t={},r=2,n=100){let o;for(let i=0;i<=r;i++)try{let a=await fetch(e,t);return a.retryCount=i,a}catch(a){if(o=a,o.retryCount=i,i>r)break;await new Promise(s=>setTimeout(s,n*(i+1)))}throw o}var ad="mas-commerce-service";function ur(e,t){let r;return function(){let n=this,o=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(n,o),t)}}function re(e,t={},r=null,n=null){let o=n?document.createElement(e,{is:n}):document.createElement(e);r instanceof HTMLElement?o.appendChild(r):o.innerHTML=r;for(let[i,a]of Object.entries(t))o.setAttribute(i,a);return o}function pn(){return window.matchMedia("(max-width: 767px)")}function _t(){return pn().matches}function fe(e){return`startTime:${e.startTime.toFixed(2)}|duration:${e.duration.toFixed(2)}`}function _s(){return window.matchMedia("(max-width: 1024px)").matches}function St(){return document.getElementsByTagName(ad)?.[0]}var Wo="wcs";function Ss({settings:e}){let t=ie.module(Wo),{env:r,wcsApiKey:n}=e,o=new Map,i=new Map,a,s=new Map;async function c(p,g,b=!0){let E=ee(),R=Xn;t.debug("Fetching:",p);let P="",y;if(p.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let O=new Map(g),[k]=p.offerSelectorIds,D=Date.now()+Math.random().toString(36).substring(2,7),B=`${Wo}:${k}:${D}${je}`,K=`${Wo}:${k}:${D}${qe}`,U;try{if(performance.mark(B),P=new URL(e.wcsURL),P.searchParams.set("offer_selector_ids",k),P.searchParams.set("country",p.country),P.searchParams.set("locale",p.locale),P.searchParams.set("landscape",r===ue.STAGE?"ALL":e.landscape),P.searchParams.set("api_key",n),p.language&&P.searchParams.set("language",p.language),p.promotionCode&&P.searchParams.set("promotion_code",p.promotionCode),p.currency&&P.searchParams.set("currency",p.currency),y=await dn(P.toString(),{credentials:"omit"}),y.ok){let j=[];try{let G=await y.json();t.debug("Fetched:",p,G),j=G.resolvedOffers??[]}catch(G){t.error(`Error parsing JSON: ${G.message}`,{...G.context,...E?.duration})}j=j.map(rr),g.forEach(({resolve:G},Me)=>{let Ee=j.filter(({offerSelectorIds:ut})=>ut.includes(Me)).flat();Ee.length&&(O.delete(Me),g.delete(Me),G(Ee))})}else R=Yn}catch(j){R=`Network error: ${j.message}`}finally{U=performance.measure(K,B),performance.clearMarks(B),performance.clearMeasures(K)}if(b&&g.size){t.debug("Missing:",{offerSelectorIds:[...g.keys()]});let j=Wr(y);g.forEach(G=>{G.reject(new Se(R,{...p,...j,response:y,measure:fe(U),...E?.duration}))})}}function l(){clearTimeout(a);let p=[...i.values()];i.clear(),p.forEach(({options:g,promises:b})=>c(g,b))}function h(p){if(!p||typeof p!="object")throw new TypeError("Cache must be a Map or similar object");let g=r===ue.STAGE?"stage":"prod",b=p[g];if(!b||typeof b!="object"){t.warn(`No cache found for environment: ${r}`);return}for(let[E,R]of Object.entries(b))o.set(E,Promise.resolve(R.map(rr)));t.debug(`Prefilled WCS cache with ${b.size} entries`)}function d(){let p=o.size;s=new Map(o),o.clear(),t.debug(`Moved ${p} cache entries to stale cache`)}function m({country:p,language:g,perpetual:b=!1,promotionCode:E="",wcsOsi:R=[]}){let P=`${g}_${p}`;p!=="GB"&&!b&&(g="MULT");let y=[p,g,E].filter(O=>O).join("-").toLowerCase();return R.map(O=>{let k=`${O}-${y}`;if(o.has(k))return o.get(k);let D=new Promise((B,K)=>{let U=i.get(y);if(!U){let j={country:p,locale:P,offerSelectorIds:[]};p!=="GB"&&!b&&(j.language=g),U={options:j,promises:new Map},i.set(y,U)}E&&(U.options.promotionCode=E),U.options.offerSelectorIds.push(O),U.promises.set(O,{resolve:B,reject:K}),l()}).catch(B=>{if(s.has(k))return s.get(k);throw B});return o.set(k,D),D})}return{Commitment:ze,PlanType:Qi,Term:se,applyPlanType:rr,resolveOfferSelectors:m,flushWcsCacheInternal:d,prefillWcsCache:h}}var Ts="mas-commerce-service",Cs="mas-commerce-service:start",Ps="mas-commerce-service:ready",fr,mn,Ls,Yo=class extends HTMLElement{constructor(){super(...arguments);w(this,mn);w(this,fr);f(this,"lastLoggingTime",0)}async registerCheckoutAction(r){typeof r=="function"&&(this.buildCheckoutAction=async(n,o,i)=>{let a=await r?.(n,o,this.imsSignedInPromise,i);return a||null})}activate(){let r=u(this,mn,Ls),n=ws(r);Yr(r.lana);let o=ie.init(r.hostEnv).module("service");o.debug("Activating:",r);let a={price:ga(n)},s={checkout:new Set,price:new Set},c={literals:a,providers:s,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...ma(c),...ua(c),...As(c),...Ss(c),...io,Log:ie,get defaults(){return L},get log(){return ie},get providers(){return{checkout(h){return s.checkout.add(h),()=>s.checkout.delete(h)},price(h){return s.price.add(h),()=>s.price.delete(h)},has:h=>s.price.has(h)||s.checkout.has(h)}},get settings(){return n}})),o.debug("Activated:",{literals:a,settings:n});let l=new CustomEvent(Dr,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Ps),_(this,fr,performance.measure(Ps,Cs)),this.dispatchEvent(l),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Cs),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Xt).forEach(r=>r.requestUpdate(!0)),this.log.debug("Refreshed WCS offers"),this.logFailedRequests()}refreshFragments(){this.flushWcsCacheInternal(),document.querySelectorAll("aem-fragment").forEach(r=>r.refresh()),this.log.debug("Refreshed AEM fragments"),this.logFailedRequests()}get duration(){return{"mas-commerce-service:measure":fe(u(this,fr))}}logFailedRequests(){let r=[...performance.getEntriesByType("resource")].filter(({startTime:o})=>o>this.lastLoggingTime).filter(({transferSize:o,duration:i,responseStatus:a})=>o===0&&i===0&&a<200||a>=400),n=Array.from(new Map(r.map(o=>[o.name,o])).values());if(n.some(({name:o})=>/(\/fragments\/|web_commerce_artifact)/.test(o))){let o=n.map(({name:i})=>i);this.log.error("Failed requests:",{failedUrls:o,...this.duration})}this.lastLoggingTime=performance.now().toFixed(3)}};fr=new WeakMap,mn=new WeakSet,Ls=function(){let r=this.getAttribute("env")??"prod",n={commerce:{env:r},hostEnv:{name:r},lana:{tags:this.getAttribute("lana-tags"),sampleRate:parseInt(this.getAttribute("lana-sample-rate")??1,10),isProdDomain:r==="prod"},masIOUrl:this.getAttribute("mas-io-url")};return["locale","country","language","preview"].forEach(o=>{let i=this.getAttribute(o);i&&(n[o]=i)}),["checkout-workflow-step","force-tax-exclusive","checkout-client-id","allow-override","wcs-api-key"].forEach(o=>{let i=this.getAttribute(o);if(i!=null){let a=o.replace(/-([a-z])/g,s=>s[1].toUpperCase());n.commerce[a]=i}}),n};window.customElements.get(Ts)||window.customElements.define(Ts,Yo);var gr=class gr extends Jr(HTMLButtonElement){static createCheckoutButton(t={},r=""){return Zr(gr,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)}};f(gr,"is","checkout-button"),f(gr,"tag","button");var Tt=gr;window.customElements.get(Tt.is)||window.customElements.define(Tt.is,Tt,{extends:Tt.tag});function sd(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var xr,Qe=class Qe extends HTMLAnchorElement{constructor(){super();w(this,xr,!1);this.setAttribute("is",Qe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),_(this,xr,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,o){u(this,xr)&&this.composePromoTermsUrl()}composePromoTermsUrl(){let r=this.getAttribute("data-wcs-osi");if(!r){let d=this.closest("merch-card").querySelector("aem-fragment").getAttribute("fragment");console.error(`Missing 'data-wcs-osi' attribute on upt-link. Fragment: ${d}`);return}let n=St(),o=[r],i=this.getAttribute("data-promotion-code"),{country:a,language:s,env:c}=n.settings,l={country:a,language:s,wcsOsi:o,promotionCode:i},h=n.resolveOfferSelectors(l);Promise.all(h).then(([[d]])=>{let m=`locale=${s}_${a}&country=${a}&offer_id=${d.offerId}`;i&&(m+=`&promotion_code=${encodeURIComponent(i)}`),this.href=`${sd(c)}?${m}`}).catch(d=>{console.error(`Could not resolve offer selectors for id: ${r}.`,d.message)})}static createFrom(r){let n=new Qe;for(let o of r.attributes)o.name!=="is"&&(o.name==="class"&&o.value.includes("upt-link")?n.setAttribute("class",o.value.replace("upt-link","").trim()):n.setAttribute(o.name,o.value));return n.innerHTML=r.innerHTML,n.setAttribute("tabindex",0),n}};xr=new WeakMap,f(Qe,"is","upt-link"),f(Qe,"tag","a"),f(Qe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Ue=Qe;window.customElements.get(Ue.is)||window.customElements.define(Ue.is,Ue,{extends:Ue.tag});var un=window,gn=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rs=Symbol(),ks=new WeakMap,fn=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Rs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(gn&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=ks.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ks.set(r,t))}return t}toString(){return this.cssText}},Os=e=>new fn(typeof e=="string"?e:e+"",void 0,Rs);var Xo=(e,t)=>{gn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=un.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},xn=gn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Os(r)})(e):e;var Ko,bn=window,Ns=bn.trustedTypes,cd=Ns?Ns.emptyScript:"",Ms=bn.reactiveElementPolyfillSupport,Zo={toAttribute(e,t){switch(t){case Boolean:e=e?cd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},$s=(e,t)=>t!==e&&(t==t||e==e),Qo={attribute:!0,type:String,converter:Zo,reflect:!1,hasChanged:$s},Jo="finalized",Ze=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Qo){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Qo}static finalize(){if(this.hasOwnProperty(Jo))return!1;this[Jo]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(xn(o))}else t!==void 0&&r.push(xn(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Xo(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Qo){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Zo).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Zo;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||$s)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ze[Jo]=!0,Ze.elementProperties=new Map,Ze.elementStyles=[],Ze.shadowRootOptions={mode:"open"},Ms?.({ReactiveElement:Ze}),((Ko=bn.reactiveElementVersions)!==null&&Ko!==void 0?Ko:bn.reactiveElementVersions=[]).push("1.6.3");var ei,vn=window,Ct=vn.trustedTypes,Is=Ct?Ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,ri="$lit$",De=`lit$${(Math.random()+"").slice(9)}$`,Gs="?"+De,ld=`<${Gs}>`,tt=document,yn=()=>tt.createComment(""),vr=e=>e===null||typeof e!="object"&&typeof e!="function",Vs=Array.isArray,hd=e=>Vs(e)||typeof e?.[Symbol.iterator]=="function",ti=`[ +\f\r]`,br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,Us=/>/g,Je=RegExp(`>|${ti}(?:([^\\s"'>=/]+)(${ti}*=${ti}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Ds=/'/g,Bs=/"/g,js=/^(?:script|style|textarea|title)$/i,qs=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),_f=qs(1),Sf=qs(2),yr=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),zs=new WeakMap,et=tt.createTreeWalker(tt,129,null,!1);function Ws(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Is!==void 0?Is.createHTML(t):t}var dd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=br;for(let s=0;s"?(a=o??br,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?Je:h[3]==='"'?Bs:Ds):a===Bs||a===Ds?a=Je:a===Hs||a===Us?a=br:(a=Je,o=void 0);let p=a===Je&&e[s+1].startsWith("/>")?" ":"";i+=a===br?c+ld:d>=0?(n.push(l),c.slice(0,d)+ri+c.slice(d)+De+p):c+De+(d===-2?(n.push(void 0),s):p)}return[Ws(e,i+(e[r]||"")+(t===2?"":"")),n]},Er=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=dd(t,r);if(this.el=e.createElement(l,n),et.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=et.nextNode())!==null&&c.length0){o.textContent=Ct?Ct.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Pt(this,t,r,0),a=!vr(t)||t!==this._$AH&&t!==yr,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;cnew Ar(typeof e=="string"?e:e+"",void 0,ci),v=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new Ar(r,e,ci)},li=(e,t)=>{wn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=An.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},_n=wn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Le(r)})(e):e;var hi,Sn=window,Xs=Sn.trustedTypes,md=Xs?Xs.emptyScript:"",Ks=Sn.reactiveElementPolyfillSupport,pi={toAttribute(e,t){switch(t){case Boolean:e=e?md:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Qs=(e,t)=>t!==e&&(t==t||e==e),di={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:Qs},mi="finalized",ke=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=di){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||di}static finalize(){if(this.hasOwnProperty(mi))return!1;this[mi]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(_n(o))}else t!==void 0&&r.push(_n(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return li(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=di){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:pi).toAttribute(r,n.type);this._$El=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:pi;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Qs)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ke[mi]=!0,ke.elementProperties=new Map,ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},Ks?.({ReactiveElement:ke}),((hi=Sn.reactiveElementVersions)!==null&&hi!==void 0?hi:Sn.reactiveElementVersions=[]).push("1.6.3");var ui,Tn=window,kt=Tn.trustedTypes,Zs=kt?kt.createPolicy("lit-html",{createHTML:e=>e}):void 0,gi="$lit$",Be=`lit$${(Math.random()+"").slice(9)}$`,ic="?"+Be,ud=`<${ic}>`,ot=document,_r=()=>ot.createComment(""),Sr=e=>e===null||typeof e!="object"&&typeof e!="function",ac=Array.isArray,fd=e=>ac(e)||typeof e?.[Symbol.iterator]=="function",fi=`[ +\f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Js=/-->/g,ec=/>/g,rt=RegExp(`>|${fi}(?:([^\\s"'>=/]+)(${fi}*=${fi}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),tc=/'/g,rc=/"/g,sc=/^(?:script|style|textarea|title)$/i,cc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=cc(1),Rf=cc(2),it=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),nc=new WeakMap,nt=ot.createTreeWalker(ot,129,null,!1);function lc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(t):t}var gd=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",a=wr;for(let s=0;s"?(a=o??wr,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?rt:h[3]==='"'?rc:tc):a===rc||a===tc?a=rt:a===Js||a===ec?a=wr:(a=rt,o=void 0);let p=a===rt&&e[s+1].startsWith("/>")?" ":"";i+=a===wr?c+ud:d>=0?(n.push(l),c.slice(0,d)+gi+c.slice(d)+Be+p):c+Be+(d===-2?(n.push(void 0),s):p)}return[lc(e,i+(e[r]||"")+(t===2?"":"")),n]},Tr=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0,s=t.length-1,c=this.parts,[l,h]=gd(t,r);if(this.el=e.createElement(l,n),nt.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=nt.nextNode())!==null&&c.length0){o.textContent=kt?kt.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,a=!1;if(i===void 0)t=Rt(this,t,r,0),a=!Sr(t)||t!==this._$AH&&t!==it,a&&(this._$AH=t);else{let s=t,c,l;for(t=i[0],c=0;c{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:t,a=i._$litPart$;if(a===void 0){let s=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new Cr(t.insertBefore(_r(),s),s,void 0,r??{})}return a._$AI(e),a};var Ai,wi;var H=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return it}};H.finalized=!0,H._$litElement$=!0,(Ai=globalThis.litElementHydrateSupport)===null||Ai===void 0||Ai.call(globalThis,{LitElement:H});var dc=globalThis.litElementPolyfillSupport;dc?.({LitElement:H});((wi=globalThis.litElementVersions)!==null&&wi!==void 0?wi:globalThis.litElementVersions=[]).push("3.3.3");var ge="(max-width: 767px)",Cn="(max-width: 1199px)",W="(min-width: 768px)",F="(min-width: 1200px)",xe="(min-width: 1600px)";var pc=v` :host { --consonant-merch-card-background-color: #fff; --consonant-merch-card-border: 1px solid var(--consonant-merch-card-border-color); @@ -245,9 +245,9 @@ Try polyfilling it using "@formatjs/intl-pluralrules" ::slotted([slot='price']) { color: var(--consonant-merch-card-price-color); } -`,pc=()=>[v` +`,mc=()=>[v` /* Tablet */ - @media screen and ${Le(Y)} { + @media screen and ${Le(W)} { :host([size='wide']), :host([size='super-wide']) { width: 100%; @@ -348,7 +348,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" ${this.badge} `}getGlobalCSS(){return""}get theme(){return document.querySelector("sp-theme")}get evergreen(){return this.card.classList.contains("intro-pricing")}get promoBottom(){return this.card.classList.contains("promo-bottom")}get headingSelector(){return'[slot="heading-xs"]'}get secureLabel(){return this.card.secureLabel?x`${this.card.secureLabel}`:I}get secureLabelFooter(){return x`
${this.secureLabel}
`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,r=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||r===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-r-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Ln(this.card.variant)}};It=new WeakMap,f(Rr,"styleMap",{});var M=Rr;var mc=` + >`:I}get secureLabelFooter(){return x`
${this.secureLabel}
`}async adjustTitleWidth(){let t=this.card.getBoundingClientRect().width,r=this.card.badgeElement?.getBoundingClientRect().width||0;t===0||r===0||this.card.style.setProperty("--consonant-merch-card-heading-xs-max-width",`${Math.round(t-r-16)}px`)}postCardUpdateHook(){}connectedCallbackHook(){}disconnectedCallbackHook(){}renderLayout(){}get aemFragmentMapping(){return Ln(this.card.variant)}};It=new WeakMap,f(Rr,"styleMap",{});var M=Rr;var uc=` :root { --consonant-merch-card-catalog-width: 276px; --consonant-merch-card-catalog-icon-size: 40px; @@ -360,7 +360,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" grid-template-columns: var(--consonant-merch-card-catalog-width); } -@media screen and ${Y} { +@media screen and ${W} { :root { --consonant-merch-card-catalog-width: 302px; } @@ -434,12 +434,12 @@ merch-card[variant="catalog"] .payment-details { font-style: italic; font-weight: 400; line-height: var(--consonant-merch-card-body-line-height); -}`;var uc={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},Ht=class extends M{constructor(r){super(r);f(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(zn,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});f(this,"toggleActionMenu",r=>{if(!this.actionMenuContentSlot||!r||r.type!=="click"&&r.code!=="Space"&&r.code!=="Enter")return;r.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let n=this.actionMenuContentSlot.classList.contains("hidden");n||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!n).toString())});f(this,"toggleActionMenuFromCard",r=>{let n=r?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(n||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",n),this.setAriaExpanded(this.actionMenu,"false"))});f(this,"hideActionMenu",r=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return x`
+}`;var fc={badge:!0,ctas:{slot:"footer",size:"m"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},prices:{tag:"h3",slot:"heading-xs"},size:["wide","super-wide"],title:{tag:"h3",slot:"heading-xs"}},Ht=class extends M{constructor(r){super(r);f(this,"dispatchActionMenuToggle",()=>{this.card.dispatchEvent(new CustomEvent(zn,{bubbles:!0,composed:!0,detail:{card:this.card.name,type:"action-menu"}}))});f(this,"toggleActionMenu",r=>{if(!this.actionMenuContentSlot||!r||r.type!=="click"&&r.code!=="Space"&&r.code!=="Enter")return;r.preventDefault(),this.actionMenuContentSlot.classList.toggle("hidden");let n=this.actionMenuContentSlot.classList.contains("hidden");n||this.dispatchActionMenuToggle(),this.setAriaExpanded(this.actionMenu,(!n).toString())});f(this,"toggleActionMenuFromCard",r=>{let n=r?.type==="mouseleave"?!0:void 0;this.card.blur(),this.actionMenu?.classList.remove("always-visible"),this.actionMenuContentSlot&&(n||this.dispatchActionMenuToggle(),this.actionMenuContentSlot.classList.toggle("hidden",n),this.setAriaExpanded(this.actionMenu,"false"))});f(this,"hideActionMenu",r=>{this.actionMenuContentSlot?.classList.add("hidden"),this.setAriaExpanded(this.actionMenu,"false")})}get actionMenu(){return this.card.shadowRoot.querySelector(".action-menu")}get actionMenuContentSlot(){return this.card.shadowRoot.querySelector('slot[name="action-menu-content"]')}renderLayout(){return x`
${this.badge}
`:""}
${this.secureLabelFooter} - `}getGlobalCSS(){return mc}setAriaExpanded(r,n){r.setAttribute("aria-expanded",n)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};f(Ht,"variantStyle",v` + `}getGlobalCSS(){return uc}setAriaExpanded(r,n){r.setAttribute("aria-expanded",n)}connectedCallbackHook(){this.card.addEventListener("mouseleave",this.toggleActionMenuFromCard)}disconnectedCallbackHook(){this.card.removeEventListener("mouseleave",this.toggleActionMenuFromCard)}};f(Ht,"variantStyle",v` :host([variant='catalog']) { min-height: 330px; width: var(--consonant-merch-card-catalog-width); @@ -483,7 +483,7 @@ merch-card[variant="catalog"] .payment-details { margin-left: var(--consonant-merch-spacing-xxs); box-sizing: border-box; } - `);var fc=` + `);var gc=` :root { --consonant-merch-card-image-width: 300px; } @@ -495,7 +495,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: var(--consonant-merch-card-image-width); } -@media screen and ${Y} { +@media screen and ${W} { .two-merch-cards.image, .three-merch-cards.image, .four-merch-cards.image { @@ -517,7 +517,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: repeat(4, var(--consonant-merch-card-image-width-4clm)); } } -`;var kn=class extends M{constructor(t){super(t)}getGlobalCSS(){return fc}renderLayout(){return x`${this.cardImage} +`;var kn=class extends M{constructor(t){super(t)}getGlobalCSS(){return gc}renderLayout(){return x`${this.cardImage}
@@ -534,7 +534,7 @@ merch-card[variant="catalog"] .payment-details { `:x`
${this.secureLabelFooter} - `}`}};var gc=` + `}`}};var xc=` :root { --consonant-merch-card-inline-heading-width: 300px; } @@ -546,7 +546,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: var(--consonant-merch-card-inline-heading-width); } -@media screen and ${Y} { +@media screen and ${W} { .two-merch-cards.inline-heading, .three-merch-cards.inline-heading, .four-merch-cards.inline-heading { @@ -570,7 +570,7 @@ merch-card[variant="catalog"] .payment-details { grid-template-columns: repeat(4, var(--consonant-merch-card-inline-heading-width)); } } -`;var Rn=class extends M{constructor(t){super(t)}getGlobalCSS(){return gc}renderLayout(){return x` ${this.badge} +`;var Rn=class extends M{constructor(t){super(t)}getGlobalCSS(){return xc}renderLayout(){return x` ${this.badge}
@@ -578,7 +578,7 @@ merch-card[variant="catalog"] .payment-details {
- ${this.card.customHr?"":x`
`} ${this.secureLabelFooter}`}};var xc=` + ${this.card.customHr?"":x`
`} ${this.secureLabelFooter}`}};var bc=` :root { --consonant-merch-card-mini-compare-chart-icon-size: 32px; --consonant-merch-card-mini-compare-mobile-cta-font-size: 16px; @@ -937,7 +937,7 @@ merch-card[variant="catalog"] .payment-details { line-height: var(--consonant-merch-card-body-s-line-height); } } -@media screen and ${Y} { +@media screen and ${W} { :root { --consonant-merch-card-mini-compare-chart-width: 302px; --consonant-merch-card-mini-compare-chart-wide-width: 302px; @@ -1013,11 +1013,11 @@ merch-card .footer-row-cell:nth-child(7) { merch-card .footer-row-cell:nth-child(8) { min-height: var(--consonant-merch-card-footer-row-8-min-height); } -`;var xd=32,Ut=class extends M{constructor(r){super(r);f(this,"getRowMinHeightPropertyName",r=>`--consonant-merch-card-footer-row-${r}-min-height`);f(this,"getMiniCompareFooter",()=>{let r=this.card.secureLabel?x` +`;var bd=32,Ut=class extends M{constructor(r){super(r);f(this,"getRowMinHeightPropertyName",r=>`--consonant-merch-card-footer-row-${r}-min-height`);f(this,"getMiniCompareFooter",()=>{let r=this.card.secureLabel?x` ${this.card.secureLabel}`:x``;return x`
${r}
`})}getGlobalCSS(){return xc}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let r=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&r.push("footer-rows"),r.forEach(o=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${o}"]`),o)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let n=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");n&&n.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let r=this.card.querySelector('[slot="footer-rows"] ul');!r||!r.children||[...r.children].forEach((n,o)=>{let i=Math.max(xd,parseFloat(window.getComputedStyle(n).height)||0),a=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(o+1)))||0;i>a&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(o+1),`${i}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(n=>{let o=n.querySelector(".footer-row-cell-description");o&&!o.textContent.trim()&&n.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${Q}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(r){let n=this.mainPrice,o=this.headingMPriceSlot;if(!n&&o){let i=r?.getAttribute("plan-type"),a=null;if(r&&i&&(a=r.querySelector(`p[data-plan-type="${i}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),r.checked){if(a){let s=re("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},a.innerHTML);this.card.appendChild(s)}}else{let s=re("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let r=this.card.addon;if(!r)return;let n=this.mainPrice,o=this.card.planType;n&&(await n.onceSettled(),o=n.value?.[0]?.planType),o&&(r.planType=o)}renderLayout(){return x`
+ >`:x``;return x`
${r}
`})}getGlobalCSS(){return bc}adjustMiniCompareBodySlots(){if(this.card.getBoundingClientRect().width<=2)return;this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(".top-section"),"top-section");let r=["heading-m","body-m","heading-m-price","body-xxs","price-commitment","offers","promo-text","callout-content","addon"];this.card.classList.contains("bullet-list")&&r.push("footer-rows"),r.forEach(o=>this.updateCardElementMinHeight(this.card.shadowRoot.querySelector(`slot[name="${o}"]`),o)),this.updateCardElementMinHeight(this.card.shadowRoot.querySelector("footer"),"footer");let n=this.card.shadowRoot.querySelector(".mini-compare-chart-badge");n&&n.textContent!==""&&this.getContainer().style.setProperty("--consonant-merch-card-mini-compare-chart-top-section-mobile-height","32px")}adjustMiniCompareFooterRows(){if(this.card.getBoundingClientRect().width===0)return;let r=this.card.querySelector('[slot="footer-rows"] ul');!r||!r.children||[...r.children].forEach((n,o)=>{let i=Math.max(bd,parseFloat(window.getComputedStyle(n).height)||0),a=parseFloat(this.getContainer().style.getPropertyValue(this.getRowMinHeightPropertyName(o+1)))||0;i>a&&this.getContainer().style.setProperty(this.getRowMinHeightPropertyName(o+1),`${i}px`)})}removeEmptyRows(){this.card.querySelectorAll(".footer-row-cell").forEach(n=>{let o=n.querySelector(".footer-row-cell-description");o&&!o.textContent.trim()&&n.remove()})}get mainPrice(){return this.card.querySelector(`[slot="heading-m-price"] ${Q}[data-template="price"]`)}get headingMPriceSlot(){return this.card.shadowRoot.querySelector('slot[name="heading-m-price"]')?.assignedElements()[0]}toggleAddon(r){let n=this.mainPrice,o=this.headingMPriceSlot;if(!n&&o){let i=r?.getAttribute("plan-type"),a=null;if(r&&i&&(a=r.querySelector(`p[data-plan-type="${i}"]`)?.querySelector('span[is="inline-price"]')),this.card.querySelectorAll('p[slot="heading-m-price"]').forEach(s=>s.remove()),r.checked){if(a){let s=re("p",{class:"addon-heading-m-price-addon",slot:"heading-m-price"},a.innerHTML);this.card.appendChild(s)}}else{let s=re("p",{class:"card-heading",id:"free",slot:"heading-m-price"},"Free");this.card.appendChild(s)}}}async adjustAddon(){await this.card.updateComplete;let r=this.card.addon;if(!r)return;let n=this.mainPrice,o=this.card.planType;n&&(await n.onceSettled(),o=n.value?.[0]?.planType),o&&(r.planType=o)}renderLayout(){return x`
${this.badge}
@@ -1141,7 +1141,7 @@ merch-card .footer-row-cell:nth-child(8) { :host([variant='mini-compare-chart']) slot[name='footer-rows'] { justify-content: flex-start; } - `);var bc=` + `);var vc=` :root { --consonant-merch-card-plans-width: 300px; --consonant-merch-card-plans-icon-size: 40px; @@ -1368,7 +1368,7 @@ merch-card[variant^="plans"]:not([size]) { } /* Tablet */ -@media screen and ${Y} { +@media screen and ${W} { :root { --consonant-merch-card-plans-width: 302px; } @@ -1411,7 +1411,7 @@ merch-card[variant^="plans"]:not([size]) { grid-template-columns: repeat(2, var(--consonant-merch-card-plans-width)); } } -`;var On={title:{tag:"h3",slot:"heading-xs"},prices:{tag:"p",slot:"heading-m"},promoText:{tag:"p",slot:"promo-text"},description:{tag:"div",slot:"body-xs"},mnemonics:{size:"l"},callout:{tag:"div",slot:"callout-content"},quantitySelect:{tag:"div",slot:"quantity-select"},addon:!0,secureLabel:!0,planType:!0,badge:{tag:"div",slot:"badge",default:"spectrum-yellow-300-plans"},allowedBadgeColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-gray-700-plans","spectrum-green-900-plans"],allowedBorderColors:["spectrum-yellow-300-plans","spectrum-gray-300-plans","spectrum-green-900-plans"],borderColor:{attribute:"border-color"},size:["wide","super-wide"],whatsIncluded:{tag:"div",slot:"whats-included"},ctas:{slot:"footer",size:"m"},style:"consonant"},vc={...function(){let{whatsIncluded:e,...t}=On;return t}(),title:{tag:"h3",slot:"heading-s"},subtitle:{tag:"p",slot:"subtitle"},secureLabel:!1},yc={...function(){let{whatsIncluded:e,size:t,quantitySelect:r,...n}=On;return n}()},be=class extends M{constructor(t){super(t),this.adaptForMobile=this.adaptForMobile.bind(this)}priceOptionsProvider(t,r){t.dataset.template===oo&&(r.displayPlanType=this.card?.settings?.displayPlanType??!1)}getGlobalCSS(){return bc}adaptForMobile(){if(!this.card.closest("merch-card-collection,overlay-trigger,.two-merch-cards,.three-merch-cards,.four-merch-cards, .columns")){this.card.removeAttribute("size");return}let t=this.card.shadowRoot,r=t.querySelector("footer"),n=this.card.getAttribute("size"),o=t.querySelector("footer #stock-checkbox"),i=t.querySelector(".body #stock-checkbox"),a=t.querySelector(".body");if(!n||!n.includes("wide")){r?.classList.remove("wide-footer"),o&&o.remove();return}let s=_t();if(r?.classList.toggle("wide-footer",!s),s&&o){i?o.remove():a.appendChild(o);return}!s&&i&&(o?i.remove():r.prepend(i))}adjustCallout(){let t=this.card.querySelector('[slot="callout-content"] .icon-button');t&&t.title&&(t.dataset.tooltip=t.title,t.removeAttribute("title"),t.classList.add("hide-tooltip"),document.addEventListener("touchstart",r=>{r.preventDefault(),r.target!==t?t.classList.add("hide-tooltip"):r.target.classList.toggle("hide-tooltip")}),document.addEventListener("mouseover",r=>{r.preventDefault(),r.target!==t?t.classList.add("hide-tooltip"):r.target.classList.remove("hide-tooltip")}))}postCardUpdateHook(){this.adaptForMobile(),this.adjustTitleWidth(),this.adjustLegal(),this.adjustAddon(),this.adjustCallout()}get headingM(){return this.card.querySelector('[slot="heading-m"]')}get mainPrice(){return this.headingM.querySelector(`${Q}[data-template="price"]`)}get divider(){return this.card.variant==="plans-education"?x`
`:I}async adjustLegal(){if(await this.card.updateComplete,this.legalAdjusted)return;this.legalAdjusted=!0;let t=[],r=this.card.querySelector(`[slot="heading-m"] ${Q}[data-template="price"]`);r&&t.push(r),this.card.querySelectorAll(`[slot="body-xs"] ${Q}[data-template="price"]`).forEach(i=>t.push(i));let o=t.map(async i=>{let a=i.cloneNode(!0);await i.onceSettled(),i?.options&&(i.options.displayPerUnit&&(i.dataset.displayPerUnit="false"),i.options.displayTax&&(i.dataset.displayTax="false"),i.options.displayPlanType&&(i.dataset.displayPlanType="false"),a.setAttribute("data-template","legal"),i.parentNode.insertBefore(a,i.nextSibling))});await Promise.all(o)}async adjustAddon(){await this.card.updateComplete;let t=this.card.addon;if(!t)return;let r=this.mainPrice;if(!r)return;await r.onceSettled();let n=r.value?.[0]?.planType;n&&(t.planType=n)}get stockCheckbox(){return this.card.checkboxLabel?x`