diff --git a/libs/deps/mas/commerce.js b/libs/deps/mas/commerce.js index 4d88e62d667..9091ed6e1b8 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":"{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 yr=Object.defineProperty;var Tr=e=>{throw TypeError(e)};var Ai=(e,t,r)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _i=(e,t)=>{for(var r in t)yr(e,r,{get:t[r],enumerable:!0})};var T=(e,t,r)=>Ai(e,typeof t!="symbol"?t+"":t,r),Sr=(e,t,r)=>t.has(e)||Tr("Cannot "+r);var oe=(e,t,r)=>(Sr(e,t,"read from private field"),r?r.call(e):t.get(e)),se=(e,t,r)=>t.has(e)?Tr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xe=(e,t,r,n)=>(Sr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ht={};_i(Ht,{CLASS_NAME_FAILED:()=>xt,CLASS_NAME_HIDDEN:()=>yi,CLASS_NAME_PENDING:()=>At,CLASS_NAME_RESOLVED:()=>_t,CheckoutWorkflow:()=>j,CheckoutWorkflowStep:()=>M,Commitment:()=>ae,ERROR_MESSAGE_BAD_REQUEST:()=>bt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>Yi,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>yt,EVENT_AEM_ERROR:()=>Gi,EVENT_AEM_LOAD:()=>ki,EVENT_MAS_ERROR:()=>Vi,EVENT_MAS_READY:()=>Fi,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Hi,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Li,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>Ui,EVENT_MERCH_CARD_COLLECTION_SORT:()=>Di,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>Ii,EVENT_MERCH_CARD_READY:()=>Ci,EVENT_MERCH_OFFER_READY:()=>Pi,EVENT_MERCH_OFFER_SELECT_READY:()=>vi,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>Oi,EVENT_MERCH_SEARCH_CHANGE:()=>Mi,EVENT_MERCH_SIDENAV_SELECT:()=>Bi,EVENT_MERCH_STOCK_CHANGE:()=>Ri,EVENT_MERCH_STORAGE_CHANGE:()=>wi,EVENT_OFFER_SELECTED:()=>Ni,EVENT_TYPE_FAILED:()=>Tt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>St,Env:()=>K,HEADER_X_REQUEST_ID:()=>Rt,LOG_NAMESPACE:()=>Pt,Landscape:()=>re,MARK_DURATION_SUFFIX:()=>It,MARK_START_SUFFIX:()=>Ot,MODAL_TYPE_3_IN_1:()=>X,NAMESPACE:()=>bi,PARAM_AOS_API_KEY:()=>$i,PARAM_ENV:()=>vt,PARAM_LANDSCAPE:()=>Ct,PARAM_WCS_API_KEY:()=>Wi,PROVIDER_ENVIRONMENT:()=>wt,SELECTOR_MAS_CHECKOUT_LINK:()=>vr,SELECTOR_MAS_ELEMENT:()=>gt,SELECTOR_MAS_INLINE_PRICE:()=>Pr,SELECTOR_MAS_SP_BUTTON:()=>Si,STATE_FAILED:()=>q,STATE_PENDING:()=>te,STATE_RESOLVED:()=>z,TAG_NAME_SERVICE:()=>Ti,TEMPLATE_PRICE:()=>ji,TEMPLATE_PRICE_ANNUAL:()=>qi,TEMPLATE_PRICE_LEGAL:()=>zi,TEMPLATE_PRICE_STRIKETHROUGH:()=>Xi,Term:()=>$,WCS_PROD_URL:()=>Lt,WCS_STAGE_URL:()=>Nt});var ae=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"}),bi="merch",yi="hidden",Ye="wcms:commerce:ready",Ti="mas-commerce-service",Pr='span[is="inline-price"][data-wcs-osi]',vr='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',Si="sp-button[data-wcs-osi]",gt=`${Pr},${vr}`,Pi="merch-offer:ready",vi="merch-offer-select:ready",Ci="merch-card:ready",Li="merch-card:action-menu-toggle",Ni="merch-offer:selected",Ri="merch-stock:change",wi="merch-storage:change",Oi="merch-quantity-selector:change",Ii="merch-card-quantity:change",Hi="merch-modal:addon-and-quantity-update",Mi="merch-search:change",Di="merch-card-collection:sort",Ui="merch-card-collection:showmore",Bi="merch-sidenav:select",ki="aem:load",Gi="aem:error",Fi="mas:ready",Vi="mas:error",xt="placeholder-failed",At="placeholder-pending",_t="placeholder-resolved",bt="Bad WCS request",yt="Commerce offer not found",Yi="Literals URL not provided",Tt="mas:failed",St="mas:resolved",Pt="mas/commerce",vt="commerce.env",Ct="commerce.landscape",$i="commerce.aosKey",Wi="commerce.wcsKey",Lt="https://www.adobe.com/web_commerce_artifact",Nt="https://www.stage.adobe.com/web_commerce_artifact_stage",q="failed",te="pending",z="resolved",re={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Rt="X-Request-Id",M=Object.freeze({CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",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"}),j=Object.freeze({V2:"UCv2",V3:"UCv3"}),K=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),wt={PRODUCTION:"PRODUCTION"},X={TWP:"twp",D2P:"d2p",CRM:"crm"},Ot=":start",It=":duration",ji="price",Xi="price-strikethrough",qi="annual",zi="legal";var Cr="tacocat.js";var Mt=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Lr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function R(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=Ae(n)?n:e;o=s.get(a)}if(i&&o==null){let s=Ae(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=Qi(Ae(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var Ki=e=>typeof e=="boolean",$e=e=>typeof e=="function",We=e=>typeof e=="number",Nr=e=>e!=null&&typeof e=="object";var Ae=e=>typeof e=="string",Rr=e=>Ae(e)&&e,Ce=e=>We(e)&&Number.isFinite(e)&&e>0;function Le(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function g(e,t){if(Ki(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=>Mt(i,e))??r??n[0]}function Qi(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function wr(e,t=1){return We(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Zi=Date.now(),Dt=()=>`(+${Date.now()-Zi}ms)`,je=new Set,Ji=g(R("tacocat.debug",{},{metadata:!1}),!1);function Or(e){let t=`[${Cr}/${e}]`,r=(s,a,...c)=>s?!0:(i(a,...c),!1),n=Ji?(s,...a)=>{console.debug(`${t} ${s}`,...a,Dt())}:()=>{},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 eo(e,t){let r=[e,t];return je.add(r),()=>{je.delete(r)}}eo((e,...t)=>{console.error(e,...t,Dt())},(e,...t)=>{console.warn(e,...t,Dt())});var to="no promo",Ir="promo-tag",ro="yellow",no="neutral",io=(e,t,r)=>{let n=o=>o||to,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},oo="cancel-context",Xe=(e,t)=>{let r=e===oo,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?Ir:`${Ir} no-promo`,text:io(s,t,i),variant:o?ro:no,isOverriden:i}};var Ut;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Ut||(Ut={}));var F;(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"})(F||(F={}));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 Bt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Bt||(Bt={}));var kt;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(kt||(kt={}));var Gt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Gt||(Gt={}));var Ft;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Ft||(Ft={}));var Vt="ABM",Yt="PUF",$t="M2M",Wt="PERPETUAL",jt="P3Y",so="TAX_INCLUSIVE_DETAILS",ao="TAX_EXCLUSIVE",Hr={ABM:Vt,PUF:Yt,M2M:$t,PERPETUAL:Wt,P3Y:jt},Fs={[Vt]:{commitment:F.YEAR,term:W.MONTHLY},[Yt]:{commitment:F.YEAR,term:W.ANNUAL},[$t]:{commitment:F.MONTH,term:W.MONTHLY},[Wt]:{commitment:F.PERPETUAL,term:void 0},[jt]:{commitment:F.THREE_MONTHS,term:W.P3Y}},Mr="Value is not an offer",qe=e=>{if(typeof e!="object")return Mr;let{commitment:t,term:r}=e,n=co(t,r);return{...e,planType:n}};var co=(e,t)=>{switch(e){case void 0:return Mr;case"":return"";case F.YEAR:return t===W.MONTHLY?Vt:t===W.ANNUAL?Yt:"";case F.MONTH:return t===W.MONTHLY?$t:"";case F.PERPETUAL:return Wt;case F.TERM_LICENSE:return t===W.P3Y?jt:"";default:return""}};function Dr(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==so)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:ao}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var lo="mas-commerce-service";function Ne(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[s,a]=e;i=[s.language===o?s:a]}return r&&(i=i.map(Dr)),i}var ze=e=>window.setTimeout(e);function _e(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(wr).filter(Ce);return r.length||(r=[t]),r}function Ke(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Rr)}function B(){return document.getElementsByTagName(lo)?.[0]}var le={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},Ur=1e3;function uo(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function Br(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(!le.serializableTypes.includes(r))return r}return e}function ho(e,t){if(!le.ignoredProperties.includes(e))return Br(t)}var Xt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(uo(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(Br).join(" "));let{pathname:s,search:a}=window.location,c=`${le.delimiter}page=${s}${a}`;c.length>Ur&&(c=`${c.slice(0,Ur)}`),o+=c,i.length&&(o+=`${le.delimiter}facts=`,o+=JSON.stringify(i,ho)),window.lana?.log(o,le)}};function Qe(e){Object.assign(le,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in le&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var kr={LOCAL:"local",PROD:"prod",STAGE:"stage"},qt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},zt=new Set,Kt=new Set,Gr=new Map,Fr={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},Vr={filter:({level:e})=>e!==qt.DEBUG},fo={filter:()=>!1};function po(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 mo(e){[...Kt].every(t=>t(e))&&zt.forEach(t=>t(e))}function Yr(e){let t=(Gr.get(e)??0)+1;Gr.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>Yr(`${n.namespace}/${i}`),updateConfig:Qe};return Object.values(qt).forEach(i=>{n[i]=(o,...s)=>mo(po(i,o,e,s,r))}),Object.seal(n)}function Ze(...e){e.forEach(t=>{let{append:r,filter:n}=t;$e(n)&&Kt.add(n),$e(r)&&zt.add(r)})}function Eo(e={}){let{name:t}=e,r=g(R("commerce.debug",{search:!0,storage:!0}),t===kr.LOCAL);return Ze(r?Fr:Vr),t===kr.PROD&&Ze(Xt),V}function go(){zt.clear(),Kt.clear()}var V={...Yr(Pt),Level:qt,Plugins:{consoleAppender:Fr,debugFilter:Vr,quietFilter:fo,lanaAppender:Xt},init:Eo,reset:go,use:Ze};var be=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(Rt);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 xo={[q]:xt,[te]:At,[z]:_t},Ao={[q]:Tt,[z]:St},Re,ye=class{constructor(t){se(this,Re);T(this,"changes",new Map);T(this,"connected",!1);T(this,"error");T(this,"log");T(this,"options");T(this,"promises",[]);T(this,"state",te);T(this,"timer",null);T(this,"value");T(this,"version",0);T(this,"wrapperElement");this.wrapperElement=t,this.log=V.module("mas-element")}update(){[q,te,z].forEach(t=>{this.wrapperElement.classList.toggle(xo[t],t===this.state)})}notify(){(this.state===z||this.state===q)&&(this.state===z?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===q&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof be&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Ao[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){xe(this,Re,B()),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):q===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}),ze(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=q,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...oe(this,Re)?.duration}),ze(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=te,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!B()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=te,this.timer=ze(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===te&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};Re=new WeakMap;function $r(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Je(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,$r(t)),i}function et(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,$r(t)),e):null}var Wr="download",jr="upgrade";function tt(e,t={},r=""){let n=B();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m}=n.collectCheckoutOptions(t),E=Je(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m});return r&&(E.innerHTML=`${r}`),E}function rt(e){return class extends e{constructor(){super(...arguments);T(this,"checkoutActionHandler");T(this,"masElement",new ye(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 isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return Object.values(X).includes(this.getAttribute("data-modal"))&&(!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=B();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=>Ne(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=B();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(Wr,jr),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:h,handler:p}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),h&&this.classList.add(...h.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(Wr)&&!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=B();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}=i.collectCheckoutOptions(n);return et(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}),!0}}}var we=class we extends rt(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return tt(we,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};T(we,"is","checkout-link"),T(we,"tag","a");var Q=we;window.customElements.get(Q.is)||window.customElements.define(Q.is,Q,{extends:Q.tag});var _o="p_draft_landscape",bo="/store/",yo=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"],["offerType","ot"],["marketSegment","ms"]]),Qt=new Set(["af","ai","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"]),To=["env","workflowStep","clientId","country"],Xr=e=>yo.get(e)??e;function Zt(e,t,r){for(let[n,i]of Object.entries(e)){let o=Xr(n);i!=null&&r.has(o)&&t.set(o,i)}}function So(e){switch(e){case wt.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Po(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=Xr(i);t.set(`items[${r}][${s}]`,o)}}}function vo({url:e,modal:t,customerSegment:r,cs:n,ms:i,marketSegment:o,quantity:s,productArrangementCode:a,addonProductArrangementCode:c}){let l=document.querySelector("meta[name=mas-ff-3in1]");return!Object.values(X).includes(t)||!e?.searchParams||!r||!o||l&&l.content==="off"||(e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl"),e.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===X.CRM?"creative":"mini_plans"),(t===X.TWP||t===X.D2P)&&(r==="INDIVIDUAL"&&o==="EDU"&&e.searchParams.set("ms","e"),r==="TEAM"&&o==="COM"&&e.searchParams.set("cs","t")),s&&e.searchParams.set("q",s),c&&e.searchParams.set("ao",c),a&&e.searchParams.set("pa",a),n&&e.searchParams.set("cs",n),i&&e.searchParams.set("ms",i)),e}function qr(e){Co(e);let{env:t,items:r,workflowStep:n,ms:i,cs:o,marketSegment:s,customerSegment:a,ot:c,offerType:l,pa:u,productArrangementCode:f,landscape:h,modal:p,...d}=e,m={marketSegment:s??i,offerType:l??c,productArrangementCode:f??u},E=new URL(So(t));return E.pathname=`${bo}${n}`,n!==M.SEGMENTATION&&n!==M.CHANGE_PLAN_TEAM_PLANS&&Po(r,E.searchParams),Zt({cs:o,...d},E.searchParams,Qt),h===re.DRAFT&&Zt({af:_o},E.searchParams,Qt),n===M.SEGMENTATION&&(Zt(m,E.searchParams,Qt),E=vo({url:E,modal:p,customerSegment:a??r?.[0]?.customerSegment,marketSegment:s??r?.[0]?.marketSegment,cs:o,ms:i,quantity:r?.[0]?.quantity>1&&r?.[0]?.quantity,productArrangementCode:f??r?.[0]?.productArrangementCode,addonProductArrangementCode:f?r?.find(A=>A.productArrangementCode!==f)?.productArrangementCode:r?.[1]?.productArrangementCode})),E.toString()}function Co(e){for(let t of To)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==M.SEGMENTATION&&e.workflowStep!==M.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var S=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:j.V3,checkoutWorkflowStep:M.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:K.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:re.PUBLISHED});function zr({providers:e,settings:t}){function r(o,s){let{checkoutClientId:a,checkoutWorkflow:c,checkoutWorkflowStep:l,country:u,language:f,promotionCode:h,quantity:p}=t,{checkoutMarketSegment:d,checkoutWorkflow:m=c,checkoutWorkflowStep:E=l,imsCountry:A,country:P=A??u,language:y=f,quantity:v=p,entitlement:C,upgrade:N,modal:D,perpetual:w,promotionCode:H=h,wcsOsi:G,extraOptions:Y,...me}=Object.assign({},s?.dataset??{},o??{}),ee=ce(m,j,S.checkoutWorkflow),ie=M.CHECKOUT;ee===j.V3&&(ie=ce(E,M,S.checkoutWorkflowStep));let de=Le({...me,extraOptions:Y,checkoutClientId:a,checkoutMarketSegment:d,country:P,quantity:_e(v,S.quantity),checkoutWorkflow:ee,checkoutWorkflowStep:ie,language:y,entitlement:g(C),upgrade:g(N),modal:D,perpetual:g(w),promotionCode:Xe(H).effectivePromoCode,wcsOsi:Ke(G)});if(s)for(let ve of e.checkout)ve(s,de);return de}function n(o,s){if(!Array.isArray(o)||!o.length||!s)return"";let{env:a,landscape:c}=t,{checkoutClientId:l,checkoutMarketSegment:u,checkoutWorkflow:f,checkoutWorkflowStep:h,country:p,promotionCode:d,quantity:m,...E}=r(s),A=document.querySelector("meta[name=mas-ff-3in1]"),P=Object.values(X).includes(s.modal)&&(!A||A.content!=="off"),y=window.frameElement||P?"if":"fp",v={checkoutPromoCode:d,clientId:l,context:y,country:p,env:a,items:[],marketSegment:u,workflowStep:h,landscape:c,...E};if(o.length===1){let[{offerId:C,offerType:N,productArrangementCode:D}]=o,{marketSegments:[w],customerSegment:H}=o[0];Object.assign(v,{marketSegment:w,customerSegment:H,offerType:N,productArrangementCode:D}),v.items.push(m[0]===1?{id:C}:{id:C,quantity:m[0]})}else v.items.push(...o.map(({offerId:C,productArrangementCode:N,marketSegments:D,customerSegment:w},H)=>({id:C,quantity:m[H]??S.quantity,...P?{productArrangementCode:N,marketSegment:D[0],customerSegment:w}:{}})));return qr(v)}let{createCheckoutLink:i}=Q;return{CheckoutLink:Q,CheckoutWorkflow:j,CheckoutWorkflowStep:M,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function Lo({interval:e=200,maxAttempts:t=25}={}){let r=V.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 No(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function Ro(e){let t=V.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 Kr({}){let e=Lo(),t=No(e),r=Ro(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var Qr=window.masPriceLiterals;function Zr(e){if(Array.isArray(Qr)){let t=n=>Qr.find(i=>Mt(i.lang,n)),r=t(e.language)??t(S.language);if(r)return Object.freeze(r)}return{}}var Jt=function(e,t){return Jt=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])},Jt(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");Jt(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(Io,function(c,l,u,f,h,p){if(l)t.minimumIntegerDigits=u.length;else{if(f&&h)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(ln.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(nn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(nn,function(c,l,u,f,h,p){return u==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=_(_({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=_(_({},t),on(o)));continue}if(cn.test(i.stem)){t=_(_({},t),on(i.stem));continue}var s=un(i.stem);s&&(t=_(_({},t),s));var a=Ho(i.stem);a&&(t=_(_({},t),a))}return t}var He={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 fn(e,t){for(var r="",n=0;n>1),c="a",l=Mo(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 Mo(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=He[n||""]||He[r||""]||He["".concat(r,"-001")]||He["001"];return i[0]}var rr,Do=new RegExp("^".concat(tr.source,"*")),Uo=new RegExp("".concat(tr.source,"*$"));function b(e,t){return{start:e,end:t}}var Bo=!!String.prototype.startsWith,ko=!!String.fromCodePoint,Go=!!Object.fromEntries,Fo=!!String.prototype.codePointAt,Vo=!!String.prototype.trimStart,Yo=!!String.prototype.trimEnd,$o=!!Number.isSafeInteger,Wo=$o?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ir=!0;try{pn=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ir=((rr=pn.exec("a"))===null||rr===void 0?void 0:rr[0])==="a"}catch{ir=!1}var pn,mn=Bo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},or=ko?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},dn=Go?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}},jo=Vo?function(t){return t.trimStart()}:function(t){return t.replace(Do,"")},Xo=Yo?function(t){return t.trimEnd()}:function(t){return t.replace(Uo,"")};function gn(e,t){return new RegExp(e,t)}var sr;ir?(nr=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),sr=function(t,r){var n;nr.lastIndex=r;var i=nr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):sr=function(t,r){for(var n=[];;){var i=En(t,r);if(i===void 0||An(i)||Ko(i))break;n.push(i),r+=i>=65536?2:1}return or.apply(void 0,n)};var nr,xn=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:b(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(x.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ar(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:b(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:b(n,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,b(a,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,b(n,this.clonePosition()))}else return this.error(x.INVALID_TAG,b(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&zo(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=b(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||!qo(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 or.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(),or(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,b(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,b(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:b(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(x.MALFORMED_ARGUMENT,b(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=sr(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=b(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(x.EXPECT_ARGUMENT_TYPE,b(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 h=Xo(f.val);if(h.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));var p=b(u,this.clonePosition());l={style:h,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var m=b(i,this.clonePosition());if(l&&mn(l?.style,"::",0)){var E=jo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(E,l.styleLocation);return f.err?f:{val:{type:L.number,value:n,location:m,style:f.val},err:null}}else{if(E.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,m);var A=E;this.locale&&(A=fn(E,this.locale));var h={type:ue.dateTime,pattern:A,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?tn(A):{}},P=a==="date"?L.date:L.time;return{val:{type:P,value:n,location:m,style:h},err:null}}}return{val:{type:a==="number"?L.number:a==="date"?L.date:L.time,value:n,location:m,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,b(y,_({},y)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),C=f.val}var N=this.tryParsePluralOrSelectOptions(t,a,r,v);if(N.err)return N;var d=this.tryParseArgumentClose(i);if(d.err)return d;var D=b(i,this.clonePosition());return a==="select"?{val:{type:L.select,value:n,options:dn(N.val),location:D},err:null}:{val:{type:L.plural,value:n,options:dn(N.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,b(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(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(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(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=an(t)}catch{return this.error(x.INVALID_NUMBER_SKELETON,r)}return{val:{type:ue.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hn(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 h=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=b(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([l,{value:d.val,location:b(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location}return a.length===0?this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(x.MISSING_OTHER_CLAUSE,b(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=b(i,this.clonePosition());return o?(s*=n,Wo(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=En(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&An(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 ar(e){return e>=97&&e<=122||e>=65&&e<=90}function qo(e){return ar(e)||e===47}function zo(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 An(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ko(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 cr(e){e.forEach(function(t){if(delete t.location,at(t)||ct(t))for(var r in t.options)delete t.options[r].location,cr(t.options[r].value);else it(t)&&ut(t.style)||(ot(t)||st(t))&&Ie(t.style)?delete t.style.location:lt(t)&&cr(t.children)})}function _n(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xn(e,t).parse();if(r.err){var n=SyntaxError(x[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||cr(r.val),r.val}function Me(e,t){var r=t&&t.cache?t.cache:rs,n=t&&t.serializer?t.serializer:ts,i=t&&t.strategy?t.strategy:Zo;return i(e,{cache:r,serializer:n})}function Qo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function bn(e,t,r,n){var i=Qo(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function yn(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 lr(e,t,r,n,i){return r.bind(t,e,n,i)}function Zo(e,t){var r=e.length===1?bn:yn;return lr(e,this,r,t.cache.create(),t.serializer)}function Jo(e,t){return lr(e,this,yn,t.cache.create(),t.serializer)}function es(e,t){return lr(e,this,bn,t.cache.create(),t.serializer)}var ts=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.get=function(e){return this.cache[e]};ur.prototype.set=function(e,t){this.cache[e]=t};var rs={create:function(){return new ur}},ht={variadic:Jo,monadic:es};var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));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 hr=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('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(De);var Tn=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return t}(De);var Sn=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,'"'),he.MISSING_VALUE,n)||this}return t}(De);var U;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(U||(U={}));function ns(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==U.literal||r.type!==U.literal?t.push(r):n.value+=r.value,t},[])}function is(e){return typeof e=="function"}function Ue(e,t,r,n,i,o,s){if(e.length===1&&er(e[0]))return[{type:U.literal,value:e[0].value}];for(var a=[],c=0,l=e;c{throw TypeError(e)};var Ai=(e,t,r)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _i=(e,t)=>{for(var r in t)yr(e,r,{get:t[r],enumerable:!0})};var T=(e,t,r)=>Ai(e,typeof t!="symbol"?t+"":t,r),Sr=(e,t,r)=>t.has(e)||Tr("Cannot "+r);var oe=(e,t,r)=>(Sr(e,t,"read from private field"),r?r.call(e):t.get(e)),se=(e,t,r)=>t.has(e)?Tr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xe=(e,t,r,n)=>(Sr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ht={};_i(Ht,{CLASS_NAME_FAILED:()=>xt,CLASS_NAME_HIDDEN:()=>yi,CLASS_NAME_PENDING:()=>At,CLASS_NAME_RESOLVED:()=>_t,CheckoutWorkflow:()=>j,CheckoutWorkflowStep:()=>M,Commitment:()=>ae,ERROR_MESSAGE_BAD_REQUEST:()=>bt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>Yi,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>yt,EVENT_AEM_ERROR:()=>Gi,EVENT_AEM_LOAD:()=>ki,EVENT_MAS_ERROR:()=>Vi,EVENT_MAS_READY:()=>Fi,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>Hi,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Li,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>Ui,EVENT_MERCH_CARD_COLLECTION_SORT:()=>Di,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>Ii,EVENT_MERCH_CARD_READY:()=>Ci,EVENT_MERCH_OFFER_READY:()=>Pi,EVENT_MERCH_OFFER_SELECT_READY:()=>vi,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>Oi,EVENT_MERCH_SEARCH_CHANGE:()=>Mi,EVENT_MERCH_SIDENAV_SELECT:()=>Bi,EVENT_MERCH_STOCK_CHANGE:()=>Ri,EVENT_MERCH_STORAGE_CHANGE:()=>wi,EVENT_OFFER_SELECTED:()=>Ni,EVENT_TYPE_FAILED:()=>Tt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>St,Env:()=>K,HEADER_X_REQUEST_ID:()=>Rt,LOG_NAMESPACE:()=>Pt,Landscape:()=>re,MARK_DURATION_SUFFIX:()=>It,MARK_START_SUFFIX:()=>Ot,MODAL_TYPE_3_IN_1:()=>X,NAMESPACE:()=>bi,PARAM_AOS_API_KEY:()=>$i,PARAM_ENV:()=>vt,PARAM_LANDSCAPE:()=>Ct,PARAM_WCS_API_KEY:()=>Wi,PROVIDER_ENVIRONMENT:()=>wt,SELECTOR_MAS_CHECKOUT_LINK:()=>vr,SELECTOR_MAS_ELEMENT:()=>gt,SELECTOR_MAS_INLINE_PRICE:()=>Pr,SELECTOR_MAS_SP_BUTTON:()=>Si,STATE_FAILED:()=>q,STATE_PENDING:()=>te,STATE_RESOLVED:()=>z,TAG_NAME_SERVICE:()=>Ti,TEMPLATE_PRICE:()=>ji,TEMPLATE_PRICE_ANNUAL:()=>qi,TEMPLATE_PRICE_LEGAL:()=>zi,TEMPLATE_PRICE_STRIKETHROUGH:()=>Xi,Term:()=>$,WCS_PROD_URL:()=>Lt,WCS_STAGE_URL:()=>Nt});var ae=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"}),bi="merch",yi="hidden",Ye="wcms:commerce:ready",Ti="mas-commerce-service",Pr='span[is="inline-price"][data-wcs-osi]',vr='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',Si="sp-button[data-wcs-osi]",gt=`${Pr},${vr}`,Pi="merch-offer:ready",vi="merch-offer-select:ready",Ci="merch-card:ready",Li="merch-card:action-menu-toggle",Ni="merch-offer:selected",Ri="merch-stock:change",wi="merch-storage:change",Oi="merch-quantity-selector:change",Ii="merch-card-quantity:change",Hi="merch-modal:addon-and-quantity-update",Mi="merch-search:change",Di="merch-card-collection:sort",Ui="merch-card-collection:showmore",Bi="merch-sidenav:select",ki="aem:load",Gi="aem:error",Fi="mas:ready",Vi="mas:error",xt="placeholder-failed",At="placeholder-pending",_t="placeholder-resolved",bt="Bad WCS request",yt="Commerce offer not found",Yi="Literals URL not provided",Tt="mas:failed",St="mas:resolved",Pt="mas/commerce",vt="commerce.env",Ct="commerce.landscape",$i="commerce.aosKey",Wi="commerce.wcsKey",Lt="https://www.adobe.com/web_commerce_artifact",Nt="https://www.stage.adobe.com/web_commerce_artifact_stage",q="failed",te="pending",z="resolved",re={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},Rt="X-Request-Id",M=Object.freeze({CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",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"}),j=Object.freeze({V2:"UCv2",V3:"UCv3"}),K=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),wt={PRODUCTION:"PRODUCTION"},X={TWP:"twp",D2P:"d2p",CRM:"crm"},Ot=":start",It=":duration",ji="price",Xi="price-strikethrough",qi="annual",zi="legal";var Cr="tacocat.js";var Mt=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),Lr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function N(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=Ae(n)?n:e;o=s.get(a)}if(i&&o==null){let s=Ae(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=Qi(Ae(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var Ki=e=>typeof e=="boolean",$e=e=>typeof e=="function",We=e=>typeof e=="number",Nr=e=>e!=null&&typeof e=="object";var Ae=e=>typeof e=="string",Rr=e=>Ae(e)&&e,Ce=e=>We(e)&&Number.isFinite(e)&&e>0;function Le(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function g(e,t){if(Ki(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=>Mt(i,e))??r??n[0]}function Qi(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function wr(e,t=1){return We(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Zi=Date.now(),Dt=()=>`(+${Date.now()-Zi}ms)`,je=new Set,Ji=g(N("tacocat.debug",{},{metadata:!1}),!1);function Or(e){let t=`[${Cr}/${e}]`,r=(s,a,...c)=>s?!0:(i(a,...c),!1),n=Ji?(s,...a)=>{console.debug(`${t} ${s}`,...a,Dt())}:()=>{},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 eo(e,t){let r=[e,t];return je.add(r),()=>{je.delete(r)}}eo((e,...t)=>{console.error(e,...t,Dt())},(e,...t)=>{console.warn(e,...t,Dt())});var to="no promo",Ir="promo-tag",ro="yellow",no="neutral",io=(e,t,r)=>{let n=o=>o||to,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},oo="cancel-context",Xe=(e,t)=>{let r=e===oo,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?Ir:`${Ir} no-promo`,text:io(s,t,i),variant:o?ro:no,isOverriden:i}};var Ut;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Ut||(Ut={}));var F;(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"})(F||(F={}));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 Bt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Bt||(Bt={}));var kt;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(kt||(kt={}));var Gt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Gt||(Gt={}));var Ft;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Ft||(Ft={}));var Vt="ABM",Yt="PUF",$t="M2M",Wt="PERPETUAL",jt="P3Y",so="TAX_INCLUSIVE_DETAILS",ao="TAX_EXCLUSIVE",Hr={ABM:Vt,PUF:Yt,M2M:$t,PERPETUAL:Wt,P3Y:jt},Fs={[Vt]:{commitment:F.YEAR,term:W.MONTHLY},[Yt]:{commitment:F.YEAR,term:W.ANNUAL},[$t]:{commitment:F.MONTH,term:W.MONTHLY},[Wt]:{commitment:F.PERPETUAL,term:void 0},[jt]:{commitment:F.THREE_MONTHS,term:W.P3Y}},Mr="Value is not an offer",qe=e=>{if(typeof e!="object")return Mr;let{commitment:t,term:r}=e,n=co(t,r);return{...e,planType:n}};var co=(e,t)=>{switch(e){case void 0:return Mr;case"":return"";case F.YEAR:return t===W.MONTHLY?Vt:t===W.ANNUAL?Yt:"";case F.MONTH:return t===W.MONTHLY?$t:"";case F.PERPETUAL:return Wt;case F.TERM_LICENSE:return t===W.P3Y?jt:"";default:return""}};function Dr(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==so)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:ao}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var lo="mas-commerce-service";function Ne(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[s,a]=e;i=[s.language===o?s:a]}return r&&(i=i.map(Dr)),i}var ze=e=>window.setTimeout(e);function _e(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(wr).filter(Ce);return r.length||(r=[t]),r}function Ke(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Rr)}function B(){return document.getElementsByTagName(lo)?.[0]}var le={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},Ur=1e3;function uo(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function Br(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(!le.serializableTypes.includes(r))return r}return e}function ho(e,t){if(!le.ignoredProperties.includes(e))return Br(t)}var Xt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(l=>{l!=null&&(uo(l)?n:i).push(l)}),n.length&&(o+=" "+n.map(Br).join(" "));let{pathname:s,search:a}=window.location,c=`${le.delimiter}page=${s}${a}`;c.length>Ur&&(c=`${c.slice(0,Ur)}`),o+=c,i.length&&(o+=`${le.delimiter}facts=`,o+=JSON.stringify(i,ho)),window.lana?.log(o,le)}};function Qe(e){Object.assign(le,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in le&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var kr={LOCAL:"local",PROD:"prod",STAGE:"stage"},qt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},zt=new Set,Kt=new Set,Gr=new Map,Fr={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},Vr={filter:({level:e})=>e!==qt.DEBUG},fo={filter:()=>!1};function po(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 mo(e){[...Kt].every(t=>t(e))&&zt.forEach(t=>t(e))}function Yr(e){let t=(Gr.get(e)??0)+1;Gr.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>Yr(`${n.namespace}/${i}`),updateConfig:Qe};return Object.values(qt).forEach(i=>{n[i]=(o,...s)=>mo(po(i,o,e,s,r))}),Object.seal(n)}function Ze(...e){e.forEach(t=>{let{append:r,filter:n}=t;$e(n)&&Kt.add(n),$e(r)&&zt.add(r)})}function Eo(e={}){let{name:t}=e,r=g(N("commerce.debug",{search:!0,storage:!0}),t===kr.LOCAL);return Ze(r?Fr:Vr),t===kr.PROD&&Ze(Xt),V}function go(){zt.clear(),Kt.clear()}var V={...Yr(Pt),Level:qt,Plugins:{consoleAppender:Fr,debugFilter:Vr,quietFilter:fo,lanaAppender:Xt},init:Eo,reset:go,use:Ze};var be=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(Rt);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 xo={[q]:xt,[te]:At,[z]:_t},Ao={[q]:Tt,[z]:St},Re,ye=class{constructor(t){se(this,Re);T(this,"changes",new Map);T(this,"connected",!1);T(this,"error");T(this,"log");T(this,"options");T(this,"promises",[]);T(this,"state",te);T(this,"timer",null);T(this,"value");T(this,"version",0);T(this,"wrapperElement");this.wrapperElement=t,this.log=V.module("mas-element")}update(){[q,te,z].forEach(t=>{this.wrapperElement.classList.toggle(xo[t],t===this.state)})}notify(){(this.state===z||this.state===q)&&(this.state===z?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===q&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof be&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Ao[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){xe(this,Re,B()),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):q===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}),ze(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=q,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...oe(this,Re)?.duration}),ze(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=te,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!B()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=te,this.timer=ze(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===te&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(c){this.toggleFailed(this.version,c,n)}})}};Re=new WeakMap;function $r(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Je(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,$r(t)),i}function et(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,$r(t)),e):null}var Wr="download",jr="upgrade";function tt(e,t={},r=""){let n=B();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m}=n.collectCheckoutOptions(t),E=Je(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:l,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m});return r&&(E.innerHTML=`${r}`),E}function rt(e){return class extends e{constructor(){super(...arguments);T(this,"checkoutActionHandler");T(this,"masElement",new ye(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 isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return Object.values(X).includes(this.getAttribute("data-modal"))&&(!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=B();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=>Ne(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=B();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(Wr,jr),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:h,handler:p}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),h&&this.classList.add(...h.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(Wr)&&!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=B();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}=i.collectCheckoutOptions(n);return et(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:l,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}),!0}}}var we=class we extends rt(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return tt(we,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};T(we,"is","checkout-link"),T(we,"tag","a");var Q=we;window.customElements.get(Q.is)||window.customElements.define(Q.is,Q,{extends:Q.tag});var _o="p_draft_landscape",bo="/store/",yo=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"],["offerType","ot"],["marketSegment","ms"]]),Qt=new Set(["af","ai","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"]),To=["env","workflowStep","clientId","country"],Xr=e=>yo.get(e)??e;function Zt(e,t,r){for(let[n,i]of Object.entries(e)){let o=Xr(n);i!=null&&r.has(o)&&t.set(o,i)}}function So(e){switch(e){case wt.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Po(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=Xr(i);t.set(`items[${r}][${s}]`,o)}}}function vo({url:e,modal:t,customerSegment:r,cs:n,ms:i,marketSegment:o,quantity:s,productArrangementCode:a,addonProductArrangementCode:c}){let l=document.querySelector("meta[name=mas-ff-3in1]");return!Object.values(X).includes(t)||!e?.searchParams||!r||!o||l&&l.content==="off"||(e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl"),e.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===X.CRM?"creative":"mini_plans"),(t===X.TWP||t===X.D2P)&&(r==="INDIVIDUAL"&&o==="EDU"&&e.searchParams.set("ms","e"),r==="TEAM"&&o==="COM"&&e.searchParams.set("cs","t")),s&&e.searchParams.set("q",s),c&&e.searchParams.set("ao",c),a&&e.searchParams.set("pa",a),n&&e.searchParams.set("cs",n),i&&e.searchParams.set("ms",i)),e}function qr(e){Co(e);let{env:t,items:r,workflowStep:n,ms:i,cs:o,marketSegment:s,customerSegment:a,ot:c,offerType:l,pa:u,productArrangementCode:f,landscape:h,modal:p,...d}=e,m={marketSegment:s??i,offerType:l??c,productArrangementCode:f??u},E=new URL(So(t));return E.pathname=`${bo}${n}`,n!==M.SEGMENTATION&&n!==M.CHANGE_PLAN_TEAM_PLANS&&Po(r,E.searchParams),Zt({cs:o,...d},E.searchParams,Qt),h===re.DRAFT&&Zt({af:_o},E.searchParams,Qt),n===M.SEGMENTATION&&(Zt(m,E.searchParams,Qt),E=vo({url:E,modal:p,customerSegment:a,marketSegment:s,cs:o,ms:i,quantity:r?.[0]?.quantity>1&&r?.[0]?.quantity,productArrangementCode:f,addonProductArrangementCode:f?r?.find(A=>A.productArrangementCode!==f)?.productArrangementCode:r?.[1]?.productArrangementCode})),E.toString()}function Co(e){for(let t of To)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==M.SEGMENTATION&&e.workflowStep!==M.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var S=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:j.V3,checkoutWorkflowStep:M.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:K.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:re.PUBLISHED});function zr({providers:e,settings:t}){function r(o,s){let{checkoutClientId:a,checkoutWorkflow:c,checkoutWorkflowStep:l,country:u,language:f,promotionCode:h,quantity:p}=t,{checkoutMarketSegment:d,checkoutWorkflow:m=c,checkoutWorkflowStep:E=l,imsCountry:A,country:v=A??u,language:y=f,quantity:P=p,entitlement:L,upgrade:R,modal:k,perpetual:O,promotionCode:H=h,wcsOsi:U,extraOptions:Y,...me}=Object.assign({},s?.dataset??{},o??{}),ee=ce(m,j,S.checkoutWorkflow),ie=M.CHECKOUT;ee===j.V3&&(ie=ce(E,M,S.checkoutWorkflowStep));let de=Le({...me,extraOptions:Y,checkoutClientId:a,checkoutMarketSegment:d,country:v,quantity:_e(P,S.quantity),checkoutWorkflow:ee,checkoutWorkflowStep:ie,language:y,entitlement:g(L),upgrade:g(R),modal:k,perpetual:g(O),promotionCode:Xe(H).effectivePromoCode,wcsOsi:Ke(U)});if(s)for(let ve of e.checkout)ve(s,de);return de}function n(o,s){if(!Array.isArray(o)||!o.length||!s)return"";let{env:a,landscape:c}=t,{checkoutClientId:l,checkoutMarketSegment:u,checkoutWorkflow:f,checkoutWorkflowStep:h,country:p,promotionCode:d,quantity:m,...E}=r(s),A=document.querySelector("meta[name=mas-ff-3in1]"),v=Object.values(X).includes(s.modal)&&(!A||A.content!=="off"),y=window.frameElement||v?"if":"fp",P={checkoutPromoCode:d,clientId:l,context:y,country:p,env:a,items:[],marketSegment:u,workflowStep:h,landscape:c,...E},[{productArrangementCode:L,marketSegments:[R],customerSegment:k,offerType:O}]=o;if(Object.assign(P,{productArrangementCode:L,marketSegment:R,customerSegment:k,offerType:O}),o.length===1){let{offerId:H}=o[0];P.items.push(m[0]===1?{id:H}:{id:H,quantity:m[0]})}else P.items.push(...o.map(({offerId:H},U)=>({id:H,quantity:m[U]??S.quantity})));return qr(P)}let{createCheckoutLink:i}=Q;return{CheckoutLink:Q,CheckoutWorkflow:j,CheckoutWorkflowStep:M,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function Lo({interval:e=200,maxAttempts:t=25}={}){let r=V.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 No(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function Ro(e){let t=V.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 Kr({}){let e=Lo(),t=No(e),r=Ro(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var Qr=window.masPriceLiterals;function Zr(e){if(Array.isArray(Qr)){let t=n=>Qr.find(i=>Mt(i.lang,n)),r=t(e.language)??t(S.language);if(r)return Object.freeze(r)}return{}}var Jt=function(e,t){return Jt=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])},Jt(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");Jt(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(Io,function(c,l,u,f,h,p){if(l)t.minimumIntegerDigits=u.length;else{if(f&&h)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(ln.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(nn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(nn,function(c,l,u,f,h,p){return u==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=_(_({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=_(_({},t),on(o)));continue}if(cn.test(i.stem)){t=_(_({},t),on(i.stem));continue}var s=un(i.stem);s&&(t=_(_({},t),s));var a=Ho(i.stem);a&&(t=_(_({},t),a))}return t}var He={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 fn(e,t){for(var r="",n=0;n>1),c="a",l=Mo(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 Mo(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=He[n||""]||He[r||""]||He["".concat(r,"-001")]||He["001"];return i[0]}var rr,Do=new RegExp("^".concat(tr.source,"*")),Uo=new RegExp("".concat(tr.source,"*$"));function b(e,t){return{start:e,end:t}}var Bo=!!String.prototype.startsWith,ko=!!String.fromCodePoint,Go=!!Object.fromEntries,Fo=!!String.prototype.codePointAt,Vo=!!String.prototype.trimStart,Yo=!!String.prototype.trimEnd,$o=!!Number.isSafeInteger,Wo=$o?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ir=!0;try{pn=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),ir=((rr=pn.exec("a"))===null||rr===void 0?void 0:rr[0])==="a"}catch{ir=!1}var pn,mn=Bo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},or=ko?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},dn=Go?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}},jo=Vo?function(t){return t.trimStart()}:function(t){return t.replace(Do,"")},Xo=Yo?function(t){return t.trimEnd()}:function(t){return t.replace(Uo,"")};function gn(e,t){return new RegExp(e,t)}var sr;ir?(nr=gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),sr=function(t,r){var n;nr.lastIndex=r;var i=nr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):sr=function(t,r){for(var n=[];;){var i=En(t,r);if(i===void 0||An(i)||Ko(i))break;n.push(i),r+=i>=65536?2:1}return or.apply(void 0,n)};var nr,xn=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:C.pound,location:b(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(x.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ar(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:C.literal,value:"<".concat(i,"/>"),location:b(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:C.tag,value:i,children:s,location:b(n,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,b(a,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,b(n,this.clonePosition()))}else return this.error(x.INVALID_TAG,b(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&zo(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=b(n,this.clonePosition());return{val:{type:C.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!qo(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 or.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(),or(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,b(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,b(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:C.argument,value:i,location:b(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(x.MALFORMED_ARGUMENT,b(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=sr(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=b(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(x.EXPECT_ARGUMENT_TYPE,b(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 h=Xo(f.val);if(h.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));var p=b(u,this.clonePosition());l={style:h,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var m=b(i,this.clonePosition());if(l&&mn(l?.style,"::",0)){var E=jo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(E,l.styleLocation);return f.err?f:{val:{type:C.number,value:n,location:m,style:f.val},err:null}}else{if(E.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,m);var A=E;this.locale&&(A=fn(E,this.locale));var h={type:ue.dateTime,pattern:A,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?tn(A):{}},v=a==="date"?C.date:C.time;return{val:{type:v,value:n,location:m,style:h},err:null}}}return{val:{type:a==="number"?C.number:a==="date"?C.date:C.time,value:n,location:m,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,b(y,_({},y)));this.bumpSpace();var P=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&P.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),P=this.parseIdentifierIfPossible(),L=f.val}var R=this.tryParsePluralOrSelectOptions(t,a,r,P);if(R.err)return R;var d=this.tryParseArgumentClose(i);if(d.err)return d;var k=b(i,this.clonePosition());return a==="select"?{val:{type:C.select,value:n,options:dn(R.val),location:k},err:null}:{val:{type:C.plural,value:n,options:dn(R.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,b(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,b(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(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(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=an(t)}catch{return this.error(x.INVALID_NUMBER_SKELETON,r)}return{val:{type:ue.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hn(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 h=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=b(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([l,{value:d.val,location:b(p,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,u=o.location}return a.length===0?this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(x.MISSING_OTHER_CLAUSE,b(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=b(i,this.clonePosition());return o?(s*=n,Wo(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=En(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&An(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 ar(e){return e>=97&&e<=122||e>=65&&e<=90}function qo(e){return ar(e)||e===47}function zo(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 An(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ko(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 cr(e){e.forEach(function(t){if(delete t.location,at(t)||ct(t))for(var r in t.options)delete t.options[r].location,cr(t.options[r].value);else it(t)&&ut(t.style)||(ot(t)||st(t))&&Ie(t.style)?delete t.style.location:lt(t)&&cr(t.children)})}function _n(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xn(e,t).parse();if(r.err){var n=SyntaxError(x[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||cr(r.val),r.val}function Me(e,t){var r=t&&t.cache?t.cache:rs,n=t&&t.serializer?t.serializer:ts,i=t&&t.strategy?t.strategy:Zo;return i(e,{cache:r,serializer:n})}function Qo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function bn(e,t,r,n){var i=Qo(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function yn(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 lr(e,t,r,n,i){return r.bind(t,e,n,i)}function Zo(e,t){var r=e.length===1?bn:yn;return lr(e,this,r,t.cache.create(),t.serializer)}function Jo(e,t){return lr(e,this,yn,t.cache.create(),t.serializer)}function es(e,t){return lr(e,this,bn,t.cache.create(),t.serializer)}var ts=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.get=function(e){return this.cache[e]};ur.prototype.set=function(e,t){this.cache[e]=t};var rs={create:function(){return new ur}},ht={variadic:Jo,monadic:es};var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));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 hr=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('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(De);var Tn=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return t}(De);var Sn=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,'"'),he.MISSING_VALUE,n)||this}return t}(De);var D;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(D||(D={}));function ns(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==D.literal||r.type!==D.literal?t.push(r):n.value+=r.value,t},[])}function is(e){return typeof e=="function"}function Ue(e,t,r,n,i,o,s){if(e.length===1&&er(e[0]))return[{type:D.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=_n,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 vn=Pn;var cs=/[0-9\-+#]/,ls=/[^\d\-+#]/g;function Cn(e){return e.search(cs)}function us(e="#.##"){let t={},r=e.length,n=Cn(e);t.prefix=n>0?e.substring(0,n):"";let i=Cn(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(ls);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 hs(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,fs(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 fs(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,In=(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},fe={MONTH:"MONTH",YEAR:"YEAR"},ds={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},mr=(e,t)=>({accept:e,round:t}),Es=[mr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),mr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),mr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],dr={[ae.YEAR]:{[$.MONTHLY]:fe.MONTH,[$.ANNUAL]:fe.YEAR},[ae.MONTH]:{[$.MONTHLY]:fe.MONTH}},gs=(e,t)=>e.indexOf(`'${t}'`)===0,xs=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Mn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+_s(e)),r},As=e=>{let t=bs(e),r=gs(e,t),n=e.replace(/'.*?'/,""),i=wn.test(n)||On.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},Hn=e=>e.replace(wn,Rn).replace(On,Rn),_s=e=>e.match(/#(.?)#/)?.[1]===Nn?ms:Nn,bs=e=>e.match(/'(.*?)'/)?.[1]??"",Mn=e=>e.match(/0(.?)0/)?.[1]??"";function Te({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=As(e),l=r?Mn(e):"",u=xs(e,r),f=r?2:0,h=o(t,{currencySymbol:s}),p=n?h.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Ln(u,h),d=r?p.lastIndexOf(l):p.length,m=p.substring(0,d),E=p.substring(d+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:m,isCurrencyFirst:a,recurrenceTerm:i}}var Dn=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=ds[r]??1;return Te(e,i>1?fe.MONTH:dr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=Es.find(({accept:c})=>c(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},Un=({commitment:e,term:t,...r})=>Te(r,dr[e]?.[t]),Bn=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:c}=e;if(t===ae.YEAR&&c===$.MONTHLY){if(!s)return Te(e,fe.YEAR,pr);let{displaySummary:{outcomeType:l,duration:u,minProductQuantity:f=1}={}}=s;switch(l){case"PERCENTAGE_DISCOUNT":if(a>=f&&In(s,r)){let h=parseInt(u.replace("P","").replace("M",""));if(isNaN(h))return pr(n);let p=a*i*h,d=a*o*(12-h),m=Math.round((p+d)*100)/100;return Te({...e,price:m},fe.YEAR)}default:return Te(e,fe.YEAR,()=>pr(o??n))}}return Te(e,dr[t]?.[c])};var Er={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 {}}"},ys=Or("ConsonantTemplates/price"),Ts=/<\/?[^>]+(>|$)/g,O={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"},ne={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},gr="TAX_EXCLUSIVE",Ss=e=>Nr(e)?Object.entries(e).filter(([,t])=>Ae(t)||We(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Lr(n)+'"'}`,""):"",I=(e,t,r,n=!1)=>`${n?Hn(t):t??""}`;function Z(e,t,r,n){let i=e[r];if(i==null)return"";try{return new vn(i.replace(Ts,""),t).format(n)}catch{return ys.error("Failed to format literal:",i),""}}function Ps(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:u,taxInclusivityLabel:f},h={}){let p=I(O.currencySymbol,n),d=I(O.currencySpace,s?" ":""),m="";return t?m=`${t}`:r&&(m=`${r}`),c&&(m+=p+d),m+=I(O.integer,a),m+=I(O.decimalsDelimiter,o),m+=I(O.decimals,i),c||(m+=d+p),m+=I(O.recurrence,l,null,!0),m+=I(O.unitType,u,null,!0),m+=I(O.taxInclusivity,f,!0),I(e,m,{...h})}var k=({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:h=1}={},{commitment:p,offerSelectorIds:d,formatString:m,price:E,priceWithoutDiscount:A,taxDisplay:P,taxTerm:y,term:v,usePrecision:C,promotion:N}={},D={})=>{Object.entries({country:o,formatString:m,language:u,price:E}).forEach(([gi,xi])=>{if(xi==null)throw new Error(`Argument "${gi}" is missing for osi ${d?.toString()}, country ${o}, language ${u}`)});let w={...Er,...f},H=`${u.toLowerCase()}-${o.toUpperCase()}`,G=r&&A?A:E,Y=t?Dn:Un;n&&(Y=Bn);let{accessiblePrice:me,recurrenceTerm:ee,...ie}=Y({commitment:p,formatString:m,instant:i,isIndianPrice:o==="IN",originalPrice:E,priceWithoutDiscount:A,price:t?E:G,promotion:N,quantity:h,term:v,usePrecision:C}),de="",ve="",mt="";g(a)&&ee&&(mt=Z(w,H,ne.recurrenceLabel,{recurrenceTerm:ee}));let dt="";g(c)&&(dt=Z(w,H,ne.perUnitLabel,{perUnit:"LICENSE"}));let Et="";g(l)&&y&&(Et=Z(w,H,P===gr?ne.taxExclusiveLabel:ne.taxInclusiveLabel,{taxTerm:y})),r&&(de=Z(w,H,ne.strikethroughAriaLabel,{strikethroughPrice:de})),e&&(ve=Z(w,H,ne.alternativePriceAriaLabel,{alternativePrice:ve}));let Ee=O.container;if(t&&(Ee+=" "+O.containerOptical),r&&(Ee+=" "+O.containerStrikethrough),e&&(Ee+=" "+O.containerAlternative),n&&(Ee+=" "+O.containerAnnual),g(s))return Ps(Ee,{...ie,accessibleLabel:de,altAccessibleLabel:ve,recurrenceLabel:mt,perUnitLabel:dt,taxInclusivityLabel:Et},D);let{currencySymbol:_r,decimals:fi,decimalsDelimiter:pi,hasCurrencySpace:br,integer:mi,isCurrencyFirst:di}=ie,ge=[mi,pi,fi];di?(ge.unshift(br?"\xA0":""),ge.unshift(_r)):(ge.push(br?"\xA0":""),ge.push(_r)),ge.push(mt,dt,Et);let Ei=ge.join("");return I(Ee,Ei,D)},kn=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||g(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?k({displayStrikethrough:!0})(e,t,r)+" ":""}${k({isAlternativePrice:i})(e,t,r)}`},Gn=()=>(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||g(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?k({displayStrikethrough:!0})(i,t,r)+" ":""}${k({isAlternativePrice:s})(e,t,r)}${I(O.containerAnnualPrefix," (")}${k({displayAnnual:!0,instant:n})(i,t,r)}${I(O.containerAnnualSuffix,")")}`},Fn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${k({isAlternativePrice:e.displayOldPrice})(e,t,r)}${I(O.containerAnnualPrefix," (")}${k({displayAnnual:!0})(n,t,r)}${I(O.containerAnnualSuffix,")")}`};var Be={...O,containerLegal:"price-legal",planType:"price-plan-type"},ft={...ne,planTypeLabel:"planTypeLabel"};function vs(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=I(Be.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=I(Be.taxInclusivity,r,!0),o+=I(Be.planType,n,null),t&&(r||n)&&(o+=")"),I(e,o,{...i})}var Vn=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:c}={},l={})=>{let u={...Er,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,h="";g(t)&&(h=Z(u,f,ft.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&i==="en"&&(r=!1),g(r)&&a&&(p=Z(u,f,s===gr?ft.taxExclusiveLabel:ft.taxInclusiveLabel,{taxTerm:a}));let d="";g(n)&&c&&(d=Z(u,f,ft.planTypeLabel,{planType:c}));let m=Be.container;return m+=" "+Be.containerLegal,vs(m,{perUnitLabel:h,taxInclusivityLabel:p,planTypeLabel:d},l)};var Yn=k(),$n=kn(),Wn=k({displayOptical:!0}),jn=k({displayStrikethrough:!0}),Xn=k({displayAnnual:!0}),qn=k({displayOptical:!0,isAlternativePrice:!0}),zn=k({isAlternativePrice:!0}),Kn=Fn(),Qn=Gn(),Zn=Vn;var Cs=(e,t)=>{if(!(!Ce(e)||!Ce(t)))return Math.floor((t-e)/t*100)},Jn=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Cs(r,n);return i===void 0?'':`${i}%`};var ei=Jn();var ti=["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","FR_fr","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"],Ls={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},ke=class ke extends HTMLSpanElement{constructor(){super();T(this,"masElement",new ye(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-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=B();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E}=n.collectPriceOptions(r);return Je(ke,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E})}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}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let s=`${r}_${n}`;if(ti.includes(r)||ti.includes(s))return!0;let a=Ls[`${i}_${o}`];return a?!!(a.includes(r)||a.includes(s)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Ne(await i,n);if(o?.length){let{country:s,language:a}=n,c=o[0],[l=""]=c.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(s,a,c.customerSegment,l)}}async render(r={}){if(!this.isConnected)return!1;let n=B();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[s]=n.resolveOfferSelectors(i);return this.renderOffers(Ne(await s,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=B();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.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=B();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}=n.collectPriceOptions(r);return et(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}),!0}};T(ke,"is","inline-price"),T(ke,"tag","span");var J=ke;window.customElements.get(J.is)||window.customElements.define(J.is,J,{extends:J.tag});function ri({literals:e,providers:t,settings:r}){function n(s,a=null){let c=structuredClone(r);if(a)for(let N of t.price)N(a,c);let{displayOldPrice:l,displayPerUnit:u,displayRecurrence:f,displayTax:h,displayPlanType:p,forceTaxExclusive:d,perpetual:m,displayAnnual:E,promotionCode:A,quantity:P,alternativePrice:y,wcsOsi:v,...C}=Object.assign(c,a?.dataset??{},s??{});return Object.assign(c,Le({...C,displayOldPrice:g(l),displayPerUnit:g(u),displayRecurrence:g(f),displayTax:g(h),displayPlanType:g(p),forceTaxExclusive:g(d),perpetual:g(m),displayAnnual:g(E),promotionCode:Xe(A).effectivePromoCode,quantity:_e(P,S.quantity),alternativePrice:g(y),wcsOsi:Ke(v)})),c}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:c}=a,l;switch(c){case"discount":l=ei;break;case"strikethrough":l=jn;break;case"annual":l=Xn;break;case"legal":l=Zn;break;default:a.template==="optical"&&a.alternativePrice?l=qn:a.template==="optical"?l=Wn:a.displayAnnual&&s[0].planType==="ABM"?l=a.promotionCode?Qn:Kn:a.alternativePrice?l=zn:l=a.promotionCode?$n:Yn}let u=n(a);u.literals=Object.assign({},e.price,Le(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},l(u,f)}let o=J.createInlinePrice;return{InlinePrice:J,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Ns({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||S.language),t??(t=e?.split("_")?.[1]||S.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function ni(e={}){let{commerce:t={}}=e,r=K.PRODUCTION,n=Lt,i=R("checkoutClientId",t)??S.checkoutClientId,o=ce(R("checkoutWorkflow",t),j,S.checkoutWorkflow),s=M.CHECKOUT;o===j.V3&&(s=ce(R("checkoutWorkflowStep",t),M,S.checkoutWorkflowStep));let a=g(R("displayOldPrice",t),S.displayOldPrice),c=g(R("displayPerUnit",t),S.displayPerUnit),l=g(R("displayRecurrence",t),S.displayRecurrence),u=g(R("displayTax",t),S.displayTax),f=g(R("displayPlanType",t),S.displayPlanType),h=g(R("entitlement",t),S.entitlement),p=g(R("modal",t),S.modal),d=g(R("forceTaxExclusive",t),S.forceTaxExclusive),m=R("promotionCode",t)??S.promotionCode,E=_e(R("quantity",t)),A=R("wcsApiKey",t)??S.wcsApiKey,P=t?.env==="stage",y=re.PUBLISHED;["true",""].includes(t.allowOverride)&&(P=(R(vt,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",y=ce(R(Ct,t),re,y)),P&&(r=K.STAGE,n=Nt);let C=R("mas-io-url")??e.masIOUrl??`https://www${r===K.STAGE?".stage":""}.adobe.com/mas/io`;return{...Ns(e),displayOldPrice:a,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:s,displayPerUnit:c,displayRecurrence:l,displayTax:u,displayPlanType:f,entitlement:h,extraOptions:S.extraOptions,modal:p,env:r,forceTaxExclusive:d,promotionCode:m,quantity:E,alternativePrice:S.alternativePrice,wcsApiKey:A,wcsURL:n,landscape:y,masIOUrl:C}}async function ii(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{return await fetch(e,t)}catch(s){if(i=s,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var xr="wcs";function oi({settings:e}){let t=V.module(xr),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function c(h,p,d=!0){let m=B(),E=yt;t.debug("Fetching:",h);let A="",P;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let y=new Map(p),[v]=h.offerSelectorIds,C=Date.now()+Math.random().toString(36).substring(2,7),N=`${xr}:${v}:${C}${Ot}`,D=`${xr}:${v}:${C}${It}`,w,H;try{if(performance.mark(N),A=new URL(e.wcsURL),A.searchParams.set("offer_selector_ids",v),A.searchParams.set("country",h.country),A.searchParams.set("locale",h.locale),A.searchParams.set("landscape",r===K.STAGE?"ALL":e.landscape),A.searchParams.set("api_key",n),h.language&&A.searchParams.set("language",h.language),h.promotionCode&&A.searchParams.set("promotion_code",h.promotionCode),h.currency&&A.searchParams.set("currency",h.currency),P=await ii(A.toString(),{credentials:"omit"}),P.ok){let G=[];try{let Y=await P.json();t.debug("Fetched:",h,Y),G=Y.resolvedOffers??[]}catch(Y){t.error(`Error parsing JSON: ${Y.message}`,{...Y.context,...m?.duration})}G=G.map(qe),p.forEach(({resolve:Y},me)=>{let ee=G.filter(({offerSelectorIds:ie})=>ie.includes(me)).flat();ee.length&&(y.delete(me),p.delete(me),Y(ee))})}else E=bt}catch(G){E=`Network error: ${G.message}`}finally{({startTime:w,duration:H}=performance.measure(D,N)),performance.clearMarks(N),performance.clearMeasures(D)}d&&p.size&&(t.debug("Missing:",{offerSelectorIds:[...p.keys()]}),p.forEach(G=>{G.reject(new be(E,{...h,response:P,startTime:w,duration:H,...m?.duration}))}))}function l(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:p,promises:d})=>c(p,d))}function u(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function f({country:h,language:p,perpetual:d=!1,promotionCode:m="",wcsOsi:E=[]}){let A=`${p}_${h}`;h!=="GB"&&(p=d?"EN":"MULT");let P=[h,p,m].filter(y=>y).join("-").toLowerCase();return E.map(y=>{let v=`${y}-${P}`;if(i.has(v))return i.get(v);let C=new Promise((N,D)=>{let w=o.get(P);if(!w){let H={country:h,locale:A,offerSelectorIds:[]};h!=="GB"&&(H.language=p),w={options:H,promises:new Map},o.set(P,w)}m&&(w.options.promotionCode=m),w.options.offerSelectorIds.push(y),w.promises.set(y,{resolve:N,reject:D}),l()}).catch(N=>{if(a.has(v))return a.get(v);throw N});return i.set(v,C),C})}return{Commitment:ae,PlanType:Hr,Term:$,applyPlanType:qe,resolveOfferSelectors:f,flushWcsCacheInternal:u}}var si="mas-commerce-service",ai="mas:start",ci="mas:ready",li="mas-commerce-service:initTime",Ge,pt,ui,Ar=class extends HTMLElement{constructor(){super(...arguments);se(this,pt);se(this,Ge);T(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=oe(this,pt,ui),n=ni(r);Qe(r.lana);let i=V.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:Zr(n)},a={checkout:new Set,price:new Set},c={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...zr(c),...Kr(c),...ri(c),...oi(c),...Ht,Log:V,get defaults(){return S},get log(){return V},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(ci),xe(this,Ge,performance.measure(li,ai,ci)?.duration),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(gt).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{[li]:oe(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,ui=function(){let r=this.getAttribute("env")??"prod",n={hostEnv:{name:r},commerce:{env: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"].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(si)||window.customElements.define(si,Ar);var Fe=class Fe extends rt(HTMLButtonElement){static createCheckoutButton(t={},r=""){return tt(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)}};T(Fe,"is","checkout-button"),T(Fe,"tag","button");var Se=Fe;window.customElements.get(Se.is)||window.customElements.define(Se.is,Se,{extends:Se.tag});var Rs="mas-commerce-service";function hi(){return document.getElementsByTagName(Rs)?.[0]}function ws(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var Ve,pe=class pe extends HTMLAnchorElement{constructor(){super();se(this,Ve,!1);this.setAttribute("is",pe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),xe(this,Ve,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){oe(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=hi(),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 h=`locale=${a}_${s}&country=${s}&offer_id=${f.offerId}`;o&&(h+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${ws(c)}?${h}`}).catch(f=>{console.error(`Could not resolve offer selectors for id: ${r}.`,f.message)})}static createFrom(r){let n=new pe;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,T(pe,"is","upt-link"),T(pe,"tag","a"),T(pe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Pe=pe;window.customElements.get(Pe.is)||window.customElements.define(Pe.is,Pe,{extends:Pe.tag});export{j as CheckoutWorkflow,M as CheckoutWorkflowStep,S as Defaults,V as Log,qe as applyPlanType}; +`,he.MISSING_INTL_API,s);var P=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));y=u.options[P]||u.options.other}if(!y)throw new hr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Ue(y.value,t,r,n,i,h-(u.offset||0)));continue}}return ns(a)}function os(e,t){return t?_(_(_({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=_(_({},e[n]),t[n]||{}),r},{})):e}function ss(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=os(e[n],t[n]),r},_({},e)):e}function fr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function as(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=_n,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 vn=Pn;var cs=/[0-9\-+#]/,ls=/[^\d\-+#]/g;function Cn(e){return e.search(cs)}function us(e="#.##"){let t={},r=e.length,n=Cn(e);t.prefix=n>0?e.substring(0,n):"";let i=Cn(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(ls);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 hs(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,fs(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 fs(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,In=(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},fe={MONTH:"MONTH",YEAR:"YEAR"},ds={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},mr=(e,t)=>({accept:e,round:t}),Es=[mr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),mr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),mr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],dr={[ae.YEAR]:{[$.MONTHLY]:fe.MONTH,[$.ANNUAL]:fe.YEAR},[ae.MONTH]:{[$.MONTHLY]:fe.MONTH}},gs=(e,t)=>e.indexOf(`'${t}'`)===0,xs=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Mn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+_s(e)),r},As=e=>{let t=bs(e),r=gs(e,t),n=e.replace(/'.*?'/,""),i=wn.test(n)||On.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},Hn=e=>e.replace(wn,Rn).replace(On,Rn),_s=e=>e.match(/#(.?)#/)?.[1]===Nn?ms:Nn,bs=e=>e.match(/'(.*?)'/)?.[1]??"",Mn=e=>e.match(/0(.?)0/)?.[1]??"";function Te({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=As(e),l=r?Mn(e):"",u=xs(e,r),f=r?2:0,h=o(t,{currencySymbol:s}),p=n?h.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Ln(u,h),d=r?p.lastIndexOf(l):p.length,m=p.substring(0,d),E=p.substring(d+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:E,decimalsDelimiter:l,hasCurrencySpace:c,integer:m,isCurrencyFirst:a,recurrenceTerm:i}}var Dn=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=ds[r]??1;return Te(e,i>1?fe.MONTH:dr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=Es.find(({accept:c})=>c(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},Un=({commitment:e,term:t,...r})=>Te(r,dr[e]?.[t]),Bn=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:c}=e;if(t===ae.YEAR&&c===$.MONTHLY){if(!s)return Te(e,fe.YEAR,pr);let{displaySummary:{outcomeType:l,duration:u,minProductQuantity:f=1}={}}=s;switch(l){case"PERCENTAGE_DISCOUNT":if(a>=f&&In(s,r)){let h=parseInt(u.replace("P","").replace("M",""));if(isNaN(h))return pr(n);let p=a*i*h,d=a*o*(12-h),m=Math.round((p+d)*100)/100;return Te({...e,price:m},fe.YEAR)}default:return Te(e,fe.YEAR,()=>pr(o??n))}}return Te(e,dr[t]?.[c])};var Er={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 {}}"},ys=Or("ConsonantTemplates/price"),Ts=/<\/?[^>]+(>|$)/g,w={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"},ne={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},gr="TAX_EXCLUSIVE",Ss=e=>Nr(e)?Object.entries(e).filter(([,t])=>Ae(t)||We(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Lr(n)+'"'}`,""):"",I=(e,t,r,n=!1)=>`${n?Hn(t):t??""}`;function Z(e,t,r,n){let i=e[r];if(i==null)return"";try{return new vn(i.replace(Ts,""),t).format(n)}catch{return ys.error("Failed to format literal:",i),""}}function Ps(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:c,recurrenceLabel:l,perUnitLabel:u,taxInclusivityLabel:f},h={}){let p=I(w.currencySymbol,n),d=I(w.currencySpace,s?" ":""),m="";return t?m=`${t}`:r&&(m=`${r}`),c&&(m+=p+d),m+=I(w.integer,a),m+=I(w.decimalsDelimiter,o),m+=I(w.decimals,i),c||(m+=d+p),m+=I(w.recurrence,l,null,!0),m+=I(w.unitType,u,null,!0),m+=I(w.taxInclusivity,f,!0),I(e,m,{...h})}var G=({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:h=1}={},{commitment:p,offerSelectorIds:d,formatString:m,price:E,priceWithoutDiscount:A,taxDisplay:v,taxTerm:y,term:P,usePrecision:L,promotion:R}={},k={})=>{Object.entries({country:o,formatString:m,language:u,price:E}).forEach(([gi,xi])=>{if(xi==null)throw new Error(`Argument "${gi}" is missing for osi ${d?.toString()}, country ${o}, language ${u}`)});let O={...Er,...f},H=`${u.toLowerCase()}-${o.toUpperCase()}`,U=r&&A?A:E,Y=t?Dn:Un;n&&(Y=Bn);let{accessiblePrice:me,recurrenceTerm:ee,...ie}=Y({commitment:p,formatString:m,instant:i,isIndianPrice:o==="IN",originalPrice:E,priceWithoutDiscount:A,price:t?E:U,promotion:R,quantity:h,term:P,usePrecision:L}),de="",ve="",mt="";g(a)&&ee&&(mt=Z(O,H,ne.recurrenceLabel,{recurrenceTerm:ee}));let dt="";g(c)&&(dt=Z(O,H,ne.perUnitLabel,{perUnit:"LICENSE"}));let Et="";g(l)&&y&&(Et=Z(O,H,v===gr?ne.taxExclusiveLabel:ne.taxInclusiveLabel,{taxTerm:y})),r&&(de=Z(O,H,ne.strikethroughAriaLabel,{strikethroughPrice:de})),e&&(ve=Z(O,H,ne.alternativePriceAriaLabel,{alternativePrice:ve}));let Ee=w.container;if(t&&(Ee+=" "+w.containerOptical),r&&(Ee+=" "+w.containerStrikethrough),e&&(Ee+=" "+w.containerAlternative),n&&(Ee+=" "+w.containerAnnual),g(s))return Ps(Ee,{...ie,accessibleLabel:de,altAccessibleLabel:ve,recurrenceLabel:mt,perUnitLabel:dt,taxInclusivityLabel:Et},k);let{currencySymbol:_r,decimals:fi,decimalsDelimiter:pi,hasCurrencySpace:br,integer:mi,isCurrencyFirst:di}=ie,ge=[mi,pi,fi];di?(ge.unshift(br?"\xA0":""),ge.unshift(_r)):(ge.push(br?"\xA0":""),ge.push(_r)),ge.push(mt,dt,Et);let Ei=ge.join("");return I(Ee,Ei,k)},kn=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||g(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?G({displayStrikethrough:!0})(e,t,r)+" ":""}${G({isAlternativePrice:i})(e,t,r)}`},Gn=()=>(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||g(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?G({displayStrikethrough:!0})(i,t,r)+" ":""}${G({isAlternativePrice:s})(e,t,r)}${I(w.containerAnnualPrefix," (")}${G({displayAnnual:!0,instant:n})(i,t,r)}${I(w.containerAnnualSuffix,")")}`},Fn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${G({isAlternativePrice:e.displayOldPrice})(e,t,r)}${I(w.containerAnnualPrefix," (")}${G({displayAnnual:!0})(n,t,r)}${I(w.containerAnnualSuffix,")")}`};var Be={...w,containerLegal:"price-legal",planType:"price-plan-type"},ft={...ne,planTypeLabel:"planTypeLabel"};function vs(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=I(Be.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=I(Be.taxInclusivity,r,!0),o+=I(Be.planType,n,null),t&&(r||n)&&(o+=")"),I(e,o,{...i})}var Vn=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:c}={},l={})=>{let u={...Er,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,h="";g(t)&&(h=Z(u,f,ft.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&i==="en"&&(r=!1),g(r)&&a&&(p=Z(u,f,s===gr?ft.taxExclusiveLabel:ft.taxInclusiveLabel,{taxTerm:a}));let d="";g(n)&&c&&(d=Z(u,f,ft.planTypeLabel,{planType:c}));let m=Be.container;return m+=" "+Be.containerLegal,vs(m,{perUnitLabel:h,taxInclusivityLabel:p,planTypeLabel:d},l)};var Yn=G(),$n=kn(),Wn=G({displayOptical:!0}),jn=G({displayStrikethrough:!0}),Xn=G({displayAnnual:!0}),qn=G({displayOptical:!0,isAlternativePrice:!0}),zn=G({isAlternativePrice:!0}),Kn=Fn(),Qn=Gn(),Zn=Vn;var Cs=(e,t)=>{if(!(!Ce(e)||!Ce(t)))return Math.floor((t-e)/t*100)},Jn=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=Cs(r,n);return i===void 0?'':`${i}%`};var ei=Jn();var ti=["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","FR_fr","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"],Ls={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},ke=class ke extends HTMLSpanElement{constructor(){super();T(this,"masElement",new ye(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-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=B();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E}=n.collectPriceOptions(r);return Je(ke,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:c,displayAnnual:l,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E})}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}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let s=`${r}_${n}`;if(ti.includes(r)||ti.includes(s))return!0;let a=Ls[`${i}_${o}`];return a?!!(a.includes(r)||a.includes(s)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Ne(await i,n);if(o?.length){let{country:s,language:a}=n,c=o[0],[l=""]=c.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(s,a,c.customerSegment,l)}}async render(r={}){if(!this.isConnected)return!1;let n=B();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[s]=n.resolveOfferSelectors(i);return this.renderOffers(Ne(await s,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=B();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.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=B();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}=n.collectPriceOptions(r);return et(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:c,forceTaxExclusive:l,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}),!0}};T(ke,"is","inline-price"),T(ke,"tag","span");var J=ke;window.customElements.get(J.is)||window.customElements.define(J.is,J,{extends:J.tag});function ri({literals:e,providers:t,settings:r}){function n(s,a=null){let c=structuredClone(r);if(a)for(let R of t.price)R(a,c);let{displayOldPrice:l,displayPerUnit:u,displayRecurrence:f,displayTax:h,displayPlanType:p,forceTaxExclusive:d,perpetual:m,displayAnnual:E,promotionCode:A,quantity:v,alternativePrice:y,wcsOsi:P,...L}=Object.assign(c,a?.dataset??{},s??{});return Object.assign(c,Le({...L,displayOldPrice:g(l),displayPerUnit:g(u),displayRecurrence:g(f),displayTax:g(h),displayPlanType:g(p),forceTaxExclusive:g(d),perpetual:g(m),displayAnnual:g(E),promotionCode:Xe(A).effectivePromoCode,quantity:_e(v,S.quantity),alternativePrice:g(y),wcsOsi:Ke(P)})),c}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:c}=a,l;switch(c){case"discount":l=ei;break;case"strikethrough":l=jn;break;case"annual":l=Xn;break;case"legal":l=Zn;break;default:a.template==="optical"&&a.alternativePrice?l=qn:a.template==="optical"?l=Wn:a.displayAnnual&&s[0].planType==="ABM"?l=a.promotionCode?Qn:Kn:a.alternativePrice?l=zn:l=a.promotionCode?$n:Yn}let u=n(a);u.literals=Object.assign({},e.price,Le(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},l(u,f)}let o=J.createInlinePrice;return{InlinePrice:J,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Ns({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||S.language),t??(t=e?.split("_")?.[1]||S.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function ni(e={}){let{commerce:t={}}=e,r=K.PRODUCTION,n=Lt,i=N("checkoutClientId",t)??S.checkoutClientId,o=ce(N("checkoutWorkflow",t),j,S.checkoutWorkflow),s=M.CHECKOUT;o===j.V3&&(s=ce(N("checkoutWorkflowStep",t),M,S.checkoutWorkflowStep));let a=g(N("displayOldPrice",t),S.displayOldPrice),c=g(N("displayPerUnit",t),S.displayPerUnit),l=g(N("displayRecurrence",t),S.displayRecurrence),u=g(N("displayTax",t),S.displayTax),f=g(N("displayPlanType",t),S.displayPlanType),h=g(N("entitlement",t),S.entitlement),p=g(N("modal",t),S.modal),d=g(N("forceTaxExclusive",t),S.forceTaxExclusive),m=N("promotionCode",t)??S.promotionCode,E=_e(N("quantity",t)),A=N("wcsApiKey",t)??S.wcsApiKey,v=t?.env==="stage",y=re.PUBLISHED;["true",""].includes(t.allowOverride)&&(v=(N(vt,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",y=ce(N(Ct,t),re,y)),v&&(r=K.STAGE,n=Nt);let L=N("mas-io-url")??e.masIOUrl??`https://www${r===K.STAGE?".stage":""}.adobe.com/mas/io`;return{...Ns(e),displayOldPrice:a,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:s,displayPerUnit:c,displayRecurrence:l,displayTax:u,displayPlanType:f,entitlement:h,extraOptions:S.extraOptions,modal:p,env:r,forceTaxExclusive:d,promotionCode:m,quantity:E,alternativePrice:S.alternativePrice,wcsApiKey:A,wcsURL:n,landscape:y,masIOUrl:L}}async function ii(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{return await fetch(e,t)}catch(s){if(i=s,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var xr="wcs";function oi({settings:e}){let t=V.module(xr),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function c(h,p,d=!0){let m=B(),E=yt;t.debug("Fetching:",h);let A="",v;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let y=new Map(p),[P]=h.offerSelectorIds,L=Date.now()+Math.random().toString(36).substring(2,7),R=`${xr}:${P}:${L}${Ot}`,k=`${xr}:${P}:${L}${It}`,O,H;try{if(performance.mark(R),A=new URL(e.wcsURL),A.searchParams.set("offer_selector_ids",P),A.searchParams.set("country",h.country),A.searchParams.set("locale",h.locale),A.searchParams.set("landscape",r===K.STAGE?"ALL":e.landscape),A.searchParams.set("api_key",n),h.language&&A.searchParams.set("language",h.language),h.promotionCode&&A.searchParams.set("promotion_code",h.promotionCode),h.currency&&A.searchParams.set("currency",h.currency),v=await ii(A.toString(),{credentials:"omit"}),v.ok){let U=[];try{let Y=await v.json();t.debug("Fetched:",h,Y),U=Y.resolvedOffers??[]}catch(Y){t.error(`Error parsing JSON: ${Y.message}`,{...Y.context,...m?.duration})}U=U.map(qe),p.forEach(({resolve:Y},me)=>{let ee=U.filter(({offerSelectorIds:ie})=>ie.includes(me)).flat();ee.length&&(y.delete(me),p.delete(me),Y(ee))})}else E=bt}catch(U){E=`Network error: ${U.message}`}finally{({startTime:O,duration:H}=performance.measure(k,R)),performance.clearMarks(R),performance.clearMeasures(k)}d&&p.size&&(t.debug("Missing:",{offerSelectorIds:[...p.keys()]}),p.forEach(U=>{U.reject(new be(E,{...h,response:v,startTime:O,duration:H,...m?.duration}))}))}function l(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:p,promises:d})=>c(p,d))}function u(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function f({country:h,language:p,perpetual:d=!1,promotionCode:m="",wcsOsi:E=[]}){let A=`${p}_${h}`;h!=="GB"&&(p=d?"EN":"MULT");let v=[h,p,m].filter(y=>y).join("-").toLowerCase();return E.map(y=>{let P=`${y}-${v}`;if(i.has(P))return i.get(P);let L=new Promise((R,k)=>{let O=o.get(v);if(!O){let H={country:h,locale:A,offerSelectorIds:[]};h!=="GB"&&(H.language=p),O={options:H,promises:new Map},o.set(v,O)}m&&(O.options.promotionCode=m),O.options.offerSelectorIds.push(y),O.promises.set(y,{resolve:R,reject:k}),l()}).catch(R=>{if(a.has(P))return a.get(P);throw R});return i.set(P,L),L})}return{Commitment:ae,PlanType:Hr,Term:$,applyPlanType:qe,resolveOfferSelectors:f,flushWcsCacheInternal:u}}var si="mas-commerce-service",ai="mas:start",ci="mas:ready",li="mas-commerce-service:initTime",Ge,pt,ui,Ar=class extends HTMLElement{constructor(){super(...arguments);se(this,pt);se(this,Ge);T(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=oe(this,pt,ui),n=ni(r);Qe(r.lana);let i=V.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:Zr(n)},a={checkout:new Set,price:new Set},c={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...zr(c),...Kr(c),...ri(c),...oi(c),...Ht,Log:V,get defaults(){return S},get log(){return V},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(ci),xe(this,Ge,performance.measure(li,ai,ci)?.duration),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(gt).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{[li]:oe(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,ui=function(){let r=this.getAttribute("env")??"prod",n={hostEnv:{name:r},commerce:{env: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"].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(si)||window.customElements.define(si,Ar);var Fe=class Fe extends rt(HTMLButtonElement){static createCheckoutButton(t={},r=""){return tt(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)}};T(Fe,"is","checkout-button"),T(Fe,"tag","button");var Se=Fe;window.customElements.get(Se.is)||window.customElements.define(Se.is,Se,{extends:Se.tag});var Rs="mas-commerce-service";function hi(){return document.getElementsByTagName(Rs)?.[0]}function ws(e){return`https://${e==="PRODUCTION"?"www.adobe.com":"www.stage.adobe.com"}/offers/promo-terms.html`}var Ve,pe=class pe extends HTMLAnchorElement{constructor(){super();se(this,Ve,!1);this.setAttribute("is",pe.is)}get isUptLink(){return!0}initializeWcsData(r,n){this.setAttribute("data-wcs-osi",r),n&&this.setAttribute("data-promotion-code",n),xe(this,Ve,!0),this.composePromoTermsUrl()}attributeChangedCallback(r,n,i){oe(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=hi(),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 h=`locale=${a}_${s}&country=${s}&offer_id=${f.offerId}`;o&&(h+=`&promotion_code=${encodeURIComponent(o)}`),this.href=`${ws(c)}?${h}`}).catch(f=>{console.error(`Could not resolve offer selectors for id: ${r}.`,f.message)})}static createFrom(r){let n=new pe;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,T(pe,"is","upt-link"),T(pe,"tag","a"),T(pe,"observedAttributes",["data-wcs-osi","data-promotion-code"]);var Pe=pe;window.customElements.get(Pe.is)||window.customElements.define(Pe.is,Pe,{extends:Pe.tag});export{j as CheckoutWorkflow,M as CheckoutWorkflowStep,S as Defaults,V as Log,qe as applyPlanType}; diff --git a/libs/deps/mas/merch-card-collection.js b/libs/deps/mas/merch-card-collection.js index 3b46ca88e1d..591d0f06d79 100644 --- a/libs/deps/mas/merch-card-collection.js +++ b/libs/deps/mas/merch-card-collection.js @@ -1,4 +1,4 @@ -var Or=Object.defineProperty;var Ir=e=>{throw TypeError(e)};var Fi=(e,t,r)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vi=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})};var P=(e,t,r)=>Fi(e,typeof t!="symbol"?t+"":t,r),yt=(e,t,r)=>t.has(e)||Ir("Cannot "+r);var j=(e,t,r)=>(yt(e,t,"read from private field"),r?r.call(e):t.get(e)),q=(e,t,r)=>t.has(e)?Ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ie=(e,t,r,n)=>(yt(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Mr=(e,t,r)=>(yt(e,t,"access private method"),r);import{html as ce,LitElement as zs}from"../lit-all.min.js";var je=class{constructor(t,r){this.key=Symbol("match-media-key"),this.matches=!1,this.host=t,this.host.addController(this),this.media=window.matchMedia(r),this.matches=this.media.matches,this.onChange=this.onChange.bind(this),t.addController(this)}hostConnected(){var t;(t=this.media)==null||t.addEventListener("change",this.onChange)}hostDisconnected(){var t;(t=this.media)==null||t.removeEventListener("change",this.onChange)}onChange(t){this.matches!==t.matches&&(this.matches=t.matches,this.host.requestUpdate(this.key,!this.matches))}};var Hr="hashchange";function $i(e=window.location.hash){let t=[],r=e.replace(/^#/,"").split("&");for(let n of r){let[i,o=""]=n.split("=");i&&t.push([i,decodeURIComponent(o.replace(/\+/g," "))])}return Object.fromEntries(t)}function Re(e){let t=new URLSearchParams(window.location.hash.slice(1));Object.entries(e).forEach(([i,o])=>{o?t.set(i,o):t.delete(i)}),t.sort();let r=t.toString();if(r===window.location.hash)return;let n=window.scrollY||document.documentElement.scrollTop;window.location.hash=r,window.scrollTo(0,n)}function Dr(e){let t=()=>{if(window.location.hash&&!window.location.hash.includes("="))return;let r=$i(window.location.hash);e(r)};return t(),window.addEventListener(Hr,t),()=>{window.removeEventListener(Hr,t)}}var $t={};Vi($t,{CLASS_NAME_FAILED:()=>Ct,CLASS_NAME_HIDDEN:()=>Wi,CLASS_NAME_PENDING:()=>Rt,CLASS_NAME_RESOLVED:()=>wt,CheckoutWorkflow:()=>X,CheckoutWorkflowStep:()=>D,Commitment:()=>ue,ERROR_MESSAGE_BAD_REQUEST:()=>Lt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>so,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Nt,EVENT_AEM_ERROR:()=>Pt,EVENT_AEM_LOAD:()=>St,EVENT_MAS_ERROR:()=>vt,EVENT_MAS_READY:()=>oo,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>no,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Qi,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>_t,EVENT_MERCH_CARD_COLLECTION_SORT:()=>bt,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>ro,EVENT_MERCH_CARD_READY:()=>Ki,EVENT_MERCH_OFFER_READY:()=>Xi,EVENT_MERCH_OFFER_SELECT_READY:()=>zi,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>to,EVENT_MERCH_SEARCH_CHANGE:()=>io,EVENT_MERCH_SIDENAV_SELECT:()=>At,EVENT_MERCH_STOCK_CHANGE:()=>Ji,EVENT_MERCH_STORAGE_CHANGE:()=>eo,EVENT_OFFER_SELECTED:()=>Zi,EVENT_TYPE_FAILED:()=>Ot,EVENT_TYPE_READY:()=>qe,EVENT_TYPE_RESOLVED:()=>It,Env:()=>Z,HEADER_X_REQUEST_ID:()=>kt,LOG_NAMESPACE:()=>Mt,Landscape:()=>se,MARK_DURATION_SUFFIX:()=>Vt,MARK_START_SUFFIX:()=>Ft,MODAL_TYPE_3_IN_1:()=>z,NAMESPACE:()=>Yi,PARAM_AOS_API_KEY:()=>ao,PARAM_ENV:()=>Ht,PARAM_LANDSCAPE:()=>Dt,PARAM_WCS_API_KEY:()=>co,PROVIDER_ENVIRONMENT:()=>Gt,SELECTOR_MAS_CHECKOUT_LINK:()=>Ur,SELECTOR_MAS_ELEMENT:()=>Tt,SELECTOR_MAS_INLINE_PRICE:()=>Br,SELECTOR_MAS_SP_BUTTON:()=>qi,STATE_FAILED:()=>K,STATE_PENDING:()=>oe,STATE_RESOLVED:()=>Q,TAG_NAME_SERVICE:()=>ji,TEMPLATE_PRICE:()=>lo,TEMPLATE_PRICE_ANNUAL:()=>ho,TEMPLATE_PRICE_LEGAL:()=>fo,TEMPLATE_PRICE_STRIKETHROUGH:()=>uo,Term:()=>$,WCS_PROD_URL:()=>Bt,WCS_STAGE_URL:()=>Ut});var ue=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"}),Yi="merch",Wi="hidden",qe="wcms:commerce:ready",ji="mas-commerce-service",Br='span[is="inline-price"][data-wcs-osi]',Ur='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',qi="sp-button[data-wcs-osi]",Tt=`${Br},${Ur}`,Xi="merch-offer:ready",zi="merch-offer-select:ready",Ki="merch-card:ready",Qi="merch-card:action-menu-toggle",Zi="merch-offer:selected",Ji="merch-stock:change",eo="merch-storage:change",to="merch-quantity-selector:change",ro="merch-card-quantity:change",no="merch-modal:addon-and-quantity-update",io="merch-search:change",bt="merch-card-collection:sort",_t="merch-card-collection:showmore",At="merch-sidenav:select",St="aem:load",Pt="aem:error",oo="mas:ready",vt="mas:error",Ct="placeholder-failed",Rt="placeholder-pending",wt="placeholder-resolved",Lt="Bad WCS request",Nt="Commerce offer not found",so="Literals URL not provided",Ot="mas:failed",It="mas:resolved",Mt="mas/commerce",Ht="commerce.env",Dt="commerce.landscape",ao="commerce.aosKey",co="commerce.wcsKey",Bt="https://www.adobe.com/web_commerce_artifact",Ut="https://www.stage.adobe.com/web_commerce_artifact_stage",K="failed",oe="pending",Q="resolved",se={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},kt="X-Request-Id",D=Object.freeze({CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",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"}),X=Object.freeze({V2:"UCv2",V3:"UCv3"}),Z=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),Gt={PRODUCTION:"PRODUCTION"},z={TWP:"twp",D2P:"d2p",CRM:"crm"},Ft=":start",Vt=":duration",lo="price",uo="price-strikethrough",ho="annual",fo="legal";var kr="(max-width: 1199px)",Gr="(min-width: 768px)",Fr="(min-width: 1200px)";import{css as po,unsafeCSS as Vr}from"../lit-all.min.js";var $r=po` +var Or=Object.defineProperty;var Ir=e=>{throw TypeError(e)};var Fi=(e,t,r)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vi=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})};var P=(e,t,r)=>Fi(e,typeof t!="symbol"?t+"":t,r),yt=(e,t,r)=>t.has(e)||Ir("Cannot "+r);var j=(e,t,r)=>(yt(e,t,"read from private field"),r?r.call(e):t.get(e)),q=(e,t,r)=>t.has(e)?Ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ie=(e,t,r,n)=>(yt(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Mr=(e,t,r)=>(yt(e,t,"access private method"),r);import{html as ce,LitElement as zs}from"../lit-all.min.js";var je=class{constructor(t,r){this.key=Symbol("match-media-key"),this.matches=!1,this.host=t,this.host.addController(this),this.media=window.matchMedia(r),this.matches=this.media.matches,this.onChange=this.onChange.bind(this),t.addController(this)}hostConnected(){var t;(t=this.media)==null||t.addEventListener("change",this.onChange)}hostDisconnected(){var t;(t=this.media)==null||t.removeEventListener("change",this.onChange)}onChange(t){this.matches!==t.matches&&(this.matches=t.matches,this.host.requestUpdate(this.key,!this.matches))}};var Hr="hashchange";function $i(e=window.location.hash){let t=[],r=e.replace(/^#/,"").split("&");for(let n of r){let[i,o=""]=n.split("=");i&&t.push([i,decodeURIComponent(o.replace(/\+/g," "))])}return Object.fromEntries(t)}function Re(e){let t=new URLSearchParams(window.location.hash.slice(1));Object.entries(e).forEach(([i,o])=>{o?t.set(i,o):t.delete(i)}),t.sort();let r=t.toString();if(r===window.location.hash)return;let n=window.scrollY||document.documentElement.scrollTop;window.location.hash=r,window.scrollTo(0,n)}function Dr(e){let t=()=>{if(window.location.hash&&!window.location.hash.includes("="))return;let r=$i(window.location.hash);e(r)};return t(),window.addEventListener(Hr,t),()=>{window.removeEventListener(Hr,t)}}var $t={};Vi($t,{CLASS_NAME_FAILED:()=>Ct,CLASS_NAME_HIDDEN:()=>Wi,CLASS_NAME_PENDING:()=>Rt,CLASS_NAME_RESOLVED:()=>wt,CheckoutWorkflow:()=>X,CheckoutWorkflowStep:()=>H,Commitment:()=>ue,ERROR_MESSAGE_BAD_REQUEST:()=>Lt,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>so,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>Nt,EVENT_AEM_ERROR:()=>Pt,EVENT_AEM_LOAD:()=>St,EVENT_MAS_ERROR:()=>vt,EVENT_MAS_READY:()=>oo,EVENT_MERCH_ADDON_AND_QUANTITY_UPDATE:()=>no,EVENT_MERCH_CARD_ACTION_MENU_TOGGLE:()=>Qi,EVENT_MERCH_CARD_COLLECTION_SHOWMORE:()=>_t,EVENT_MERCH_CARD_COLLECTION_SORT:()=>bt,EVENT_MERCH_CARD_QUANTITY_CHANGE:()=>ro,EVENT_MERCH_CARD_READY:()=>Ki,EVENT_MERCH_OFFER_READY:()=>Xi,EVENT_MERCH_OFFER_SELECT_READY:()=>zi,EVENT_MERCH_QUANTITY_SELECTOR_CHANGE:()=>to,EVENT_MERCH_SEARCH_CHANGE:()=>io,EVENT_MERCH_SIDENAV_SELECT:()=>At,EVENT_MERCH_STOCK_CHANGE:()=>Ji,EVENT_MERCH_STORAGE_CHANGE:()=>eo,EVENT_OFFER_SELECTED:()=>Zi,EVENT_TYPE_FAILED:()=>Ot,EVENT_TYPE_READY:()=>qe,EVENT_TYPE_RESOLVED:()=>It,Env:()=>Z,HEADER_X_REQUEST_ID:()=>kt,LOG_NAMESPACE:()=>Mt,Landscape:()=>se,MARK_DURATION_SUFFIX:()=>Vt,MARK_START_SUFFIX:()=>Ft,MODAL_TYPE_3_IN_1:()=>z,NAMESPACE:()=>Yi,PARAM_AOS_API_KEY:()=>ao,PARAM_ENV:()=>Ht,PARAM_LANDSCAPE:()=>Dt,PARAM_WCS_API_KEY:()=>co,PROVIDER_ENVIRONMENT:()=>Gt,SELECTOR_MAS_CHECKOUT_LINK:()=>Ur,SELECTOR_MAS_ELEMENT:()=>Tt,SELECTOR_MAS_INLINE_PRICE:()=>Br,SELECTOR_MAS_SP_BUTTON:()=>qi,STATE_FAILED:()=>K,STATE_PENDING:()=>oe,STATE_RESOLVED:()=>Q,TAG_NAME_SERVICE:()=>ji,TEMPLATE_PRICE:()=>lo,TEMPLATE_PRICE_ANNUAL:()=>ho,TEMPLATE_PRICE_LEGAL:()=>fo,TEMPLATE_PRICE_STRIKETHROUGH:()=>uo,Term:()=>$,WCS_PROD_URL:()=>Bt,WCS_STAGE_URL:()=>Ut});var ue=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"}),Yi="merch",Wi="hidden",qe="wcms:commerce:ready",ji="mas-commerce-service",Br='span[is="inline-price"][data-wcs-osi]',Ur='a[is="checkout-link"][data-wcs-osi],button[is="checkout-button"][data-wcs-osi]',qi="sp-button[data-wcs-osi]",Tt=`${Br},${Ur}`,Xi="merch-offer:ready",zi="merch-offer-select:ready",Ki="merch-card:ready",Qi="merch-card:action-menu-toggle",Zi="merch-offer:selected",Ji="merch-stock:change",eo="merch-storage:change",to="merch-quantity-selector:change",ro="merch-card-quantity:change",no="merch-modal:addon-and-quantity-update",io="merch-search:change",bt="merch-card-collection:sort",_t="merch-card-collection:showmore",At="merch-sidenav:select",St="aem:load",Pt="aem:error",oo="mas:ready",vt="mas:error",Ct="placeholder-failed",Rt="placeholder-pending",wt="placeholder-resolved",Lt="Bad WCS request",Nt="Commerce offer not found",so="Literals URL not provided",Ot="mas:failed",It="mas:resolved",Mt="mas/commerce",Ht="commerce.env",Dt="commerce.landscape",ao="commerce.aosKey",co="commerce.wcsKey",Bt="https://www.adobe.com/web_commerce_artifact",Ut="https://www.stage.adobe.com/web_commerce_artifact_stage",K="failed",oe="pending",Q="resolved",se={DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"},kt="X-Request-Id",H=Object.freeze({CHECKOUT:"checkout",CHECKOUT_EMAIL:"checkout/email",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"}),X=Object.freeze({V2:"UCv2",V3:"UCv3"}),Z=Object.freeze({STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"}),Gt={PRODUCTION:"PRODUCTION"},z={TWP:"twp",D2P:"d2p",CRM:"crm"},Ft=":start",Vt=":duration",lo="price",uo="price-strikethrough",ho="annual",fo="legal";var kr="(max-width: 1199px)",Gr="(min-width: 768px)",Fr="(min-width: 1200px)";import{css as po,unsafeCSS as Vr}from"../lit-all.min.js";var $r=po` #header, #resultText, #footer { @@ -96,12 +96,12 @@ var Or=Object.defineProperty;var Ir=e=>{throw TypeError(e)};var Fi=(e,t,r)=>t in justify-content: end; } } -`;var mo="mas-commerce-service";var we=(e,t)=>e.querySelector(`[slot="${t}"]`)?.textContent?.trim();function Yr(){return document.getElementsByTagName(mo)?.[0]}var Wr="tacocat.js";var Yt=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),jr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function L(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=be(n)?n:e;o=s.get(a)}if(i&&o==null){let s=be(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=go(be(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var Eo=e=>typeof e=="boolean",Xe=e=>typeof e=="function",ze=e=>typeof e=="number",qr=e=>e!=null&&typeof e=="object";var be=e=>typeof e=="string",Xr=e=>be(e)&&e,Le=e=>ze(e)&&Number.isFinite(e)&&e>0;function Ne(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function x(e,t){if(Eo(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function he(e,t,r){let n=Object.values(t);return n.find(i=>Yt(i,e))??r??n[0]}function go(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function zr(e,t=1){return ze(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var xo=Date.now(),Wt=()=>`(+${Date.now()-xo}ms)`,Ke=new Set,yo=x(L("tacocat.debug",{},{metadata:!1}),!1);function Kr(e){let t=`[${Wr}/${e}]`,r=(s,a,...l)=>s?!0:(i(a,...l),!1),n=yo?(s,...a)=>{console.debug(`${t} ${s}`,...a,Wt())}:()=>{},i=(s,...a)=>{let l=`${t} ${s}`;Ke.forEach(([c])=>c(l,...a))};return{assert:r,debug:n,error:i,warn:(s,...a)=>{let l=`${t} ${s}`;Ke.forEach(([,c])=>c(l,...a))}}}function To(e,t){let r=[e,t];return Ke.add(r),()=>{Ke.delete(r)}}To((e,...t)=>{console.error(e,...t,Wt())},(e,...t)=>{console.warn(e,...t,Wt())});var bo="no promo",Qr="promo-tag",_o="yellow",Ao="neutral",So=(e,t,r)=>{let n=o=>o||bo,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},Po="cancel-context",Qe=(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?Qr:`${Qr} no-promo`,text:So(s,t,i),variant:o?_o:Ao,isOverriden:i}};var jt;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(jt||(jt={}));var F;(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"})(F||(F={}));var Y;(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"})(Y||(Y={}));var qt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(qt||(qt={}));var Xt;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Xt||(Xt={}));var zt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(zt||(zt={}));var Kt;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Kt||(Kt={}));var Qt="ABM",Zt="PUF",Jt="M2M",er="PERPETUAL",tr="P3Y",vo="TAX_INCLUSIVE_DETAILS",Co="TAX_EXCLUSIVE",Zr={ABM:Qt,PUF:Zt,M2M:Jt,PERPETUAL:er,P3Y:tr},ba={[Qt]:{commitment:F.YEAR,term:Y.MONTHLY},[Zt]:{commitment:F.YEAR,term:Y.ANNUAL},[Jt]:{commitment:F.MONTH,term:Y.MONTHLY},[er]:{commitment:F.PERPETUAL,term:void 0},[tr]:{commitment:F.THREE_MONTHS,term:Y.P3Y}},Jr="Value is not an offer",rr=e=>{if(typeof e!="object")return Jr;let{commitment:t,term:r}=e,n=Ro(t,r);return{...e,planType:n}};var Ro=(e,t)=>{switch(e){case void 0:return Jr;case"":return"";case F.YEAR:return t===Y.MONTHLY?Qt:t===Y.ANNUAL?Zt:"";case F.MONTH:return t===Y.MONTHLY?Jt:"";case F.PERPETUAL:return er;case F.TERM_LICENSE:return t===Y.P3Y?tr:"";default:return""}};function en(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==vo)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:Co}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var wo="mas-commerce-service";function Oe(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[s,a]=e;i=[s.language===o?s:a]}return r&&(i=i.map(en)),i}var Ze=e=>window.setTimeout(e);function _e(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(zr).filter(Le);return r.length||(r=[t]),r}function Je(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Xr)}function U(){return document.getElementsByTagName(wo)?.[0]}var fe={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},tn=1e3;function Lo(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function rn(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(!fe.serializableTypes.includes(r))return r}return e}function No(e,t){if(!fe.ignoredProperties.includes(e))return rn(t)}var nr={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(c=>{c!=null&&(Lo(c)?n:i).push(c)}),n.length&&(o+=" "+n.map(rn).join(" "));let{pathname:s,search:a}=window.location,l=`${fe.delimiter}page=${s}${a}`;l.length>tn&&(l=`${l.slice(0,tn)}`),o+=l,i.length&&(o+=`${fe.delimiter}facts=`,o+=JSON.stringify(i,No)),window.lana?.log(o,fe)}};function et(e){Object.assign(fe,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in fe&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var nn={LOCAL:"local",PROD:"prod",STAGE:"stage"},ir={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},or=new Set,sr=new Set,on=new Map,sn={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},an={filter:({level:e})=>e!==ir.DEBUG},Oo={filter:()=>!1};function Io(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Xe(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:performance.now().toFixed(3)}}function Mo(e){[...sr].every(t=>t(e))&&or.forEach(t=>t(e))}function cn(e){let t=(on.get(e)??0)+1;on.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>cn(`${n.namespace}/${i}`),updateConfig:et};return Object.values(ir).forEach(i=>{n[i]=(o,...s)=>Mo(Io(i,o,e,s,r))}),Object.seal(n)}function tt(...e){e.forEach(t=>{let{append:r,filter:n}=t;Xe(n)&&sr.add(n),Xe(r)&&or.add(r)})}function Ho(e={}){let{name:t}=e,r=x(L("commerce.debug",{search:!0,storage:!0}),t===nn.LOCAL);return tt(r?sn:an),t===nn.PROD&&tt(nr),W}function Do(){or.clear(),sr.clear()}var W={...cn(Mt),Level:ir,Plugins:{consoleAppender:sn,debugFilter:an,quietFilter:Oo,lanaAppender:nr},init:Ho,reset:Do,use:tt};var Ae=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(kt);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 Bo={[K]:Ct,[oe]:Rt,[Q]:wt},Uo={[K]:Ot,[Q]:It},Ie,Se=class{constructor(t){q(this,Ie);P(this,"changes",new Map);P(this,"connected",!1);P(this,"error");P(this,"log");P(this,"options");P(this,"promises",[]);P(this,"state",oe);P(this,"timer",null);P(this,"value");P(this,"version",0);P(this,"wrapperElement");this.wrapperElement=t,this.log=W.module("mas-element")}update(){[K,oe,Q].forEach(t=>{this.wrapperElement.classList.toggle(Bo[t],t===this.state)})}notify(){(this.state===Q||this.state===K)&&(this.state===Q?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===K&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Ae&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Uo[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){ie(this,Ie,U()),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 Q===n?Promise.resolve(this.wrapperElement):K===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=Q,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ze(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=K,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...j(this,Ie)?.duration}),Ze(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=oe,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!U()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=oe,this.timer=Ze(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===oe&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(l){this.toggleFailed(this.version,l,n)}})}};Ie=new WeakMap;function ln(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function rt(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,ln(t)),i}function nt(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,ln(t)),e):null}var un="download",hn="upgrade";function fn(e,t={},r=""){let n=U();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:l,modal:c,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m}=n.collectCheckoutOptions(t),E=rt(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:l,modal:c,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m});return r&&(E.innerHTML=`${r}`),E}function pn(e){return class extends e{constructor(){super(...arguments);P(this,"checkoutActionHandler");P(this,"masElement",new Se(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 isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return Object.values(z).includes(this.getAttribute("data-modal"))&&(!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=U();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 l=i.resolveOfferSelectors(o),c=await Promise.all(l);c=c.map(f=>Oe(f,o)),o.country=this.dataset.imsCountry||o.country;let u=await i.buildCheckoutAction?.(c.flat(),{...s,...o},this);return this.renderOffers(c.flat(),o,{},u,a)}renderOffers(n,i,o={},s=void 0,a=void 0){let l=U();if(!l)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(un,hn),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:h,handler:p}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),h&&this.classList.add(...h.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(un)&&!this.classList.contains(hn)){let u=l.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=U();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:l,upgrade:c,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}=i.collectCheckoutOptions(n);return nt(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:l,upgrade:c,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}),!0}}}var Me=class Me extends pn(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return fn(Me,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};P(Me,"is","checkout-link"),P(Me,"tag","a");var J=Me;window.customElements.get(J.is)||window.customElements.define(J.is,J,{extends:J.tag});var ko="p_draft_landscape",Go="/store/",Fo=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"],["offerType","ot"],["marketSegment","ms"]]),ar=new Set(["af","ai","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"]),Vo=["env","workflowStep","clientId","country"],mn=e=>Fo.get(e)??e;function cr(e,t,r){for(let[n,i]of Object.entries(e)){let o=mn(n);i!=null&&r.has(o)&&t.set(o,i)}}function $o(e){switch(e){case Gt.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Yo(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=mn(i);t.set(`items[${r}][${s}]`,o)}}}function Wo({url:e,modal:t,customerSegment:r,cs:n,ms:i,marketSegment:o,quantity:s,productArrangementCode:a,addonProductArrangementCode:l}){let c=document.querySelector("meta[name=mas-ff-3in1]");return!Object.values(z).includes(t)||!e?.searchParams||!r||!o||c&&c.content==="off"||(e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl"),e.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===z.CRM?"creative":"mini_plans"),(t===z.TWP||t===z.D2P)&&(r==="INDIVIDUAL"&&o==="EDU"&&e.searchParams.set("ms","e"),r==="TEAM"&&o==="COM"&&e.searchParams.set("cs","t")),s&&e.searchParams.set("q",s),l&&e.searchParams.set("ao",l),a&&e.searchParams.set("pa",a),n&&e.searchParams.set("cs",n),i&&e.searchParams.set("ms",i)),e}function dn(e){jo(e);let{env:t,items:r,workflowStep:n,ms:i,cs:o,marketSegment:s,customerSegment:a,ot:l,offerType:c,pa:u,productArrangementCode:f,landscape:h,modal:p,...d}=e,m={marketSegment:s??i,offerType:c??l,productArrangementCode:f??u},E=new URL($o(t));return E.pathname=`${Go}${n}`,n!==D.SEGMENTATION&&n!==D.CHANGE_PLAN_TEAM_PLANS&&Yo(r,E.searchParams),cr({cs:o,...d},E.searchParams,ar),h===se.DRAFT&&cr({af:ko},E.searchParams,ar),n===D.SEGMENTATION&&(cr(m,E.searchParams,ar),E=Wo({url:E,modal:p,customerSegment:a??r?.[0]?.customerSegment,marketSegment:s??r?.[0]?.marketSegment,cs:o,ms:i,quantity:r?.[0]?.quantity>1&&r?.[0]?.quantity,productArrangementCode:f??r?.[0]?.productArrangementCode,addonProductArrangementCode:f?r?.find(g=>g.productArrangementCode!==f)?.productArrangementCode:r?.[1]?.productArrangementCode})),E.toString()}function jo(e){for(let t of Vo)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==D.SEGMENTATION&&e.workflowStep!==D.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var S=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:X.V3,checkoutWorkflowStep:D.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:Z.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:se.PUBLISHED});function En({providers:e,settings:t}){function r(o,s){let{checkoutClientId:a,checkoutWorkflow:l,checkoutWorkflowStep:c,country:u,language:f,promotionCode:h,quantity:p}=t,{checkoutMarketSegment:d,checkoutWorkflow:m=l,checkoutWorkflowStep:E=c,imsCountry:g,country:A=g??u,language:_=f,quantity:v=p,entitlement:C,upgrade:w,modal:H,perpetual:N,promotionCode:M=h,wcsOsi:G,extraOptions:V,...ge}=Object.assign({},s?.dataset??{},o??{}),ne=he(m,X,S.checkoutWorkflow),le=D.CHECKOUT;ne===X.V3&&(le=he(E,D,S.checkoutWorkflowStep));let xe=Ne({...ge,extraOptions:V,checkoutClientId:a,checkoutMarketSegment:d,country:A,quantity:_e(v,S.quantity),checkoutWorkflow:ne,checkoutWorkflowStep:le,language:_,entitlement:x(C),upgrade:x(w),modal:H,perpetual:x(N),promotionCode:Qe(M).effectivePromoCode,wcsOsi:Je(G)});if(s)for(let Ce of e.checkout)Ce(s,xe);return xe}function n(o,s){if(!Array.isArray(o)||!o.length||!s)return"";let{env:a,landscape:l}=t,{checkoutClientId:c,checkoutMarketSegment:u,checkoutWorkflow:f,checkoutWorkflowStep:h,country:p,promotionCode:d,quantity:m,...E}=r(s),g=document.querySelector("meta[name=mas-ff-3in1]"),A=Object.values(z).includes(s.modal)&&(!g||g.content!=="off"),_=window.frameElement||A?"if":"fp",v={checkoutPromoCode:d,clientId:c,context:_,country:p,env:a,items:[],marketSegment:u,workflowStep:h,landscape:l,...E};if(o.length===1){let[{offerId:C,offerType:w,productArrangementCode:H}]=o,{marketSegments:[N],customerSegment:M}=o[0];Object.assign(v,{marketSegment:N,customerSegment:M,offerType:w,productArrangementCode:H}),v.items.push(m[0]===1?{id:C}:{id:C,quantity:m[0]})}else v.items.push(...o.map(({offerId:C,productArrangementCode:w,marketSegments:H,customerSegment:N},M)=>({id:C,quantity:m[M]??S.quantity,...A?{productArrangementCode:w,marketSegment:H[0],customerSegment:N}:{}})));return dn(v)}let{createCheckoutLink:i}=J;return{CheckoutLink:J,CheckoutWorkflow:X,CheckoutWorkflowStep:D,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function qo({interval:e=200,maxAttempts:t=25}={}){let r=W.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 Xo(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function zo(e){let t=W.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 gn({}){let e=qo(),t=Xo(e),r=zo(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var xn=window.masPriceLiterals;function yn(e){if(Array.isArray(xn)){let t=n=>xn.find(i=>Yt(i.lang,n)),r=t(e.language)??t(S.language);if(r)return Object.freeze(r)}return{}}var lr=function(e,t){return lr=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])},lr(e,t)};function He(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lr(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,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(Zo,function(l,c,u,f,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(f&&h)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(wn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Sn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Sn,function(l,c,u,f,h,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=T(T({},t),Pn(o)));continue}if(Rn.test(i.stem)){t=T(T({},t),Pn(i.stem));continue}var s=Ln(i.stem);s&&(t=T(T({},t),s));var a=Jo(i.stem);a&&(t=T(T({},t),a))}return t}var Be={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 On(e,t){for(var r="",n=0;n>1),l="a",c=es(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=c+r}else i==="J"?r+="H":r+=i}return r}function es(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=Be[n||""]||Be[r||""]||Be["".concat(r,"-001")]||Be["001"];return i[0]}var fr,ts=new RegExp("^".concat(hr.source,"*")),rs=new RegExp("".concat(hr.source,"*$"));function b(e,t){return{start:e,end:t}}var ns=!!String.prototype.startsWith,is=!!String.fromCodePoint,os=!!Object.fromEntries,ss=!!String.prototype.codePointAt,as=!!String.prototype.trimStart,cs=!!String.prototype.trimEnd,ls=!!Number.isSafeInteger,us=ls?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mr=!0;try{In=Bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),mr=((fr=In.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch{mr=!1}var In,Mn=ns?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},dr=is?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},Hn=os?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}},hs=as?function(t){return t.trimStart()}:function(t){return t.replace(ts,"")},fs=cs?function(t){return t.trimEnd()}:function(t){return t.replace(rs,"")};function Bn(e,t){return new RegExp(e,t)}var Er;mr?(pr=Bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Er=function(t,r){var n;pr.lastIndex=r;var i=pr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):Er=function(t,r){for(var n=[];;){var i=Dn(t,r);if(i===void 0||kn(i)||ds(i))break;n.push(i),r+=i>=65536?2:1}return dr.apply(void 0,n)};var pr,Un=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:R.pound,location:b(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&gr(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:R.literal,value:"<".concat(i,"/>"),location:b(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:R.tag,value:i,children:s,location:b(n,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,b(a,this.clonePosition())))}else return this.error(y.UNCLOSED_TAG,b(n,this.clonePosition()))}else return this.error(y.INVALID_TAG,b(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ms(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 l=b(n,this.clonePosition());return{val:{type:R.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ps(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 dr.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(),dr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(y.EMPTY_ARGUMENT,b(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(y.MALFORMED_ARGUMENT,b(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:R.argument,value:i,location:b(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(y.MALFORMED_ARGUMENT,b(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Er(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=b(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,b(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=fs(f.val);if(h.length===0)return this.error(y.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));var p=b(u,this.clonePosition());c={style:h,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var m=b(i,this.clonePosition());if(c&&Mn(c?.style,"::",0)){var E=hs(c.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(E,c.styleLocation);return f.err?f:{val:{type:R.number,value:n,location:m,style:f.val},err:null}}else{if(E.length===0)return this.error(y.EXPECT_DATE_TIME_SKELETON,m);var g=E;this.locale&&(g=On(E,this.locale));var h={type:pe.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?_n(g):{}},A=a==="date"?R.date:R.time;return{val:{type:A,value:n,location:m,style:h},err:null}}}return{val:{type:a==="number"?R.number:a==="date"?R.date:R.time,value:n,location:m,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,b(_,T({},_)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),C=f.val}var w=this.tryParsePluralOrSelectOptions(t,a,r,v);if(w.err)return w;var d=this.tryParseArgumentClose(i);if(d.err)return d;var H=b(i,this.clonePosition());return a==="select"?{val:{type:R.select,value:n,options:Hn(w.val),location:H},err:null}:{val:{type:R.plural,value:n,options:Hn(w.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:H},err:null}}default:return this.error(y.INVALID_ARGUMENT_TYPE,b(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(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(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(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=Cn(t)}catch{return this.error(y.INVALID_NUMBER_SKELETON,r)}return{val:{type:pe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Nn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=b(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(r==="select"?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([c,{value:d.val,location:b(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return a.length===0?this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(y.MISSING_OTHER_CLAUSE,b(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 l=b(i,this.clonePosition());return o?(s*=n,us(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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=Dn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&kn(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 gr(e){return e>=97&&e<=122||e>=65&&e<=90}function ps(e){return gr(e)||e===47}function ms(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 kn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ds(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 xr(e){e.forEach(function(t){if(delete t.location,ct(t)||lt(t))for(var r in t.options)delete t.options[r].location,xr(t.options[r].value);else ot(t)&&ht(t.style)||(st(t)||at(t))&&De(t.style)?delete t.style.location:ut(t)&&xr(t.children)})}function Gn(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Un(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||xr(r.val),r.val}function Ue(e,t){var r=t&&t.cache?t.cache:bs,n=t&&t.serializer?t.serializer:Ts,i=t&&t.strategy?t.strategy:gs;return i(e,{cache:r,serializer:n})}function Es(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Fn(e,t,r,n){var i=Es(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Vn(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 yr(e,t,r,n,i){return r.bind(t,e,n,i)}function gs(e,t){var r=e.length===1?Fn:Vn;return yr(e,this,r,t.cache.create(),t.serializer)}function xs(e,t){return yr(e,this,Vn,t.cache.create(),t.serializer)}function ys(e,t){return yr(e,this,Fn,t.cache.create(),t.serializer)}var Ts=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]};Tr.prototype.set=function(e,t){this.cache[e]=t};var bs={create:function(){return new Tr}},ft={variadic:xs,monadic:ys};var me;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(me||(me={}));var ke=function(e){He(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 br=function(e){He(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('", "'),'"'),me.INVALID_VALUE,o)||this}return t}(ke);var $n=function(e){He(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),me.INVALID_VALUE,i)||this}return t}(ke);var Yn=function(e){He(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,'"'),me.MISSING_VALUE,n)||this}return t}(ke);var B;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(B||(B={}));function _s(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 As(e){return typeof e=="function"}function Ge(e,t,r,n,i,o,s){if(e.length===1&&ur(e[0]))return[{type:B.literal,value:e[0].value}];for(var a=[],l=0,c=e;le.querySelector(`[slot="${t}"]`)?.textContent?.trim();function Yr(){return document.getElementsByTagName(mo)?.[0]}var Wr="tacocat.js";var Yt=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),jr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function w(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=be(n)?n:e;o=s.get(a)}if(i&&o==null){let s=be(i)?i:e;o=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&o==null){let s=go(be(r)?r:e);o=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return o??t[e]}var Eo=e=>typeof e=="boolean",Xe=e=>typeof e=="function",ze=e=>typeof e=="number",qr=e=>e!=null&&typeof e=="object";var be=e=>typeof e=="string",Xr=e=>be(e)&&e,Le=e=>ze(e)&&Number.isFinite(e)&&e>0;function Ne(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function x(e,t){if(Eo(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function he(e,t,r){let n=Object.values(t);return n.find(i=>Yt(i,e))??r??n[0]}function go(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function zr(e,t=1){return ze(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var xo=Date.now(),Wt=()=>`(+${Date.now()-xo}ms)`,Ke=new Set,yo=x(w("tacocat.debug",{},{metadata:!1}),!1);function Kr(e){let t=`[${Wr}/${e}]`,r=(s,a,...l)=>s?!0:(i(a,...l),!1),n=yo?(s,...a)=>{console.debug(`${t} ${s}`,...a,Wt())}:()=>{},i=(s,...a)=>{let l=`${t} ${s}`;Ke.forEach(([c])=>c(l,...a))};return{assert:r,debug:n,error:i,warn:(s,...a)=>{let l=`${t} ${s}`;Ke.forEach(([,c])=>c(l,...a))}}}function To(e,t){let r=[e,t];return Ke.add(r),()=>{Ke.delete(r)}}To((e,...t)=>{console.error(e,...t,Wt())},(e,...t)=>{console.warn(e,...t,Wt())});var bo="no promo",Qr="promo-tag",_o="yellow",Ao="neutral",So=(e,t,r)=>{let n=o=>o||bo,i=r?` (was "${n(t)}")`:"";return`${n(e)}${i}`},Po="cancel-context",Qe=(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?Qr:`${Qr} no-promo`,text:So(s,t,i),variant:o?_o:Ao,isOverriden:i}};var jt;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(jt||(jt={}));var F;(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"})(F||(F={}));var Y;(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"})(Y||(Y={}));var qt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(qt||(qt={}));var Xt;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Xt||(Xt={}));var zt;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(zt||(zt={}));var Kt;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Kt||(Kt={}));var Qt="ABM",Zt="PUF",Jt="M2M",er="PERPETUAL",tr="P3Y",vo="TAX_INCLUSIVE_DETAILS",Co="TAX_EXCLUSIVE",Zr={ABM:Qt,PUF:Zt,M2M:Jt,PERPETUAL:er,P3Y:tr},ba={[Qt]:{commitment:F.YEAR,term:Y.MONTHLY},[Zt]:{commitment:F.YEAR,term:Y.ANNUAL},[Jt]:{commitment:F.MONTH,term:Y.MONTHLY},[er]:{commitment:F.PERPETUAL,term:void 0},[tr]:{commitment:F.THREE_MONTHS,term:Y.P3Y}},Jr="Value is not an offer",rr=e=>{if(typeof e!="object")return Jr;let{commitment:t,term:r}=e,n=Ro(t,r);return{...e,planType:n}};var Ro=(e,t)=>{switch(e){case void 0:return Jr;case"":return"";case F.YEAR:return t===Y.MONTHLY?Qt:t===Y.ANNUAL?Zt:"";case F.MONTH:return t===Y.MONTHLY?Jt:"";case F.PERPETUAL:return er;case F.TERM_LICENSE:return t===Y.P3Y?tr:"";default:return""}};function en(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:i,priceWithoutDiscountAndTax:o,taxDisplay:s}=t;if(s!==vo)return e;let a={...e,priceDetails:{...t,price:i??r,priceWithoutDiscount:o??n,taxDisplay:Co}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var wo="mas-commerce-service";function Oe(e,{country:t,forceTaxExclusive:r,perpetual:n}){let i;if(e.length<2)i=e;else{let o=t==="GB"||n?"EN":"MULT",[s,a]=e;i=[s.language===o?s:a]}return r&&(i=i.map(en)),i}var Ze=e=>window.setTimeout(e);function _e(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(zr).filter(Le);return r.length||(r=[t]),r}function Je(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Xr)}function U(){return document.getElementsByTagName(wo)?.[0]}var fe={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals","element"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},tn=1e3;function Lo(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function rn(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(!fe.serializableTypes.includes(r))return r}return e}function No(e,t){if(!fe.ignoredProperties.includes(e))return rn(t)}var nr={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],i=[],o=t;r.forEach(c=>{c!=null&&(Lo(c)?n:i).push(c)}),n.length&&(o+=" "+n.map(rn).join(" "));let{pathname:s,search:a}=window.location,l=`${fe.delimiter}page=${s}${a}`;l.length>tn&&(l=`${l.slice(0,tn)}`),o+=l,i.length&&(o+=`${fe.delimiter}facts=`,o+=JSON.stringify(i,No)),window.lana?.log(o,fe)}};function et(e){Object.assign(fe,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in fe&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var nn={LOCAL:"local",PROD:"prod",STAGE:"stage"},ir={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},or=new Set,sr=new Set,on=new Map,sn={append({level:e,message:t,params:r,timestamp:n,source:i}){console[e](`${n}ms [${i}] %c${t}`,"font-weight: bold;",...r)}},an={filter:({level:e})=>e!==ir.DEBUG},Oo={filter:()=>!1};function Io(e,t,r,n,i){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Xe(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:i,timestamp:performance.now().toFixed(3)}}function Mo(e){[...sr].every(t=>t(e))&&or.forEach(t=>t(e))}function cn(e){let t=(on.get(e)??0)+1;on.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:i=>cn(`${n.namespace}/${i}`),updateConfig:et};return Object.values(ir).forEach(i=>{n[i]=(o,...s)=>Mo(Io(i,o,e,s,r))}),Object.seal(n)}function tt(...e){e.forEach(t=>{let{append:r,filter:n}=t;Xe(n)&&sr.add(n),Xe(r)&&or.add(r)})}function Ho(e={}){let{name:t}=e,r=x(w("commerce.debug",{search:!0,storage:!0}),t===nn.LOCAL);return tt(r?sn:an),t===nn.PROD&&tt(nr),W}function Do(){or.clear(),sr.clear()}var W={...cn(Mt),Level:ir,Plugins:{consoleAppender:sn,debugFilter:an,quietFilter:Oo,lanaAppender:nr},init:Ho,reset:Do,use:tt};var Ae=class e extends Error{constructor(t,r,n){if(super(t,{cause:n}),this.name="MasError",r.response){let i=r.response.headers?.get(kt);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 Bo={[K]:Ct,[oe]:Rt,[Q]:wt},Uo={[K]:Ot,[Q]:It},Ie,Se=class{constructor(t){q(this,Ie);P(this,"changes",new Map);P(this,"connected",!1);P(this,"error");P(this,"log");P(this,"options");P(this,"promises",[]);P(this,"state",oe);P(this,"timer",null);P(this,"value");P(this,"version",0);P(this,"wrapperElement");this.wrapperElement=t,this.log=W.module("mas-element")}update(){[K,oe,Q].forEach(t=>{this.wrapperElement.classList.toggle(Bo[t],t===this.state)})}notify(){(this.state===Q||this.state===K)&&(this.state===Q?this.promises.forEach(({resolve:r})=>r(this.wrapperElement)):this.state===K&&this.promises.forEach(({reject:r})=>r(this.error)),this.promises=[]);let t=this.error;this.error instanceof Ae&&(t={message:this.error.message,...this.error.context}),this.wrapperElement.dispatchEvent(new CustomEvent(Uo[this.state],{bubbles:!0,detail:t}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){ie(this,Ie,U()),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 Q===n?Promise.resolve(this.wrapperElement):K===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=Q,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ze(()=>this.notify()),!0)}toggleFailed(t,r,n){if(t!==this.version)return!1;n!==void 0&&(this.options=n),this.error=r,this.state=K,this.update();let i=this.wrapperElement.getAttribute("is");return this.log?.error(`${i}: Failed to render: ${r.message}`,{element:this.wrapperElement,...r.context,...j(this,Ie)?.duration}),Ze(()=>this.notify()),!0}togglePending(t){return this.version++,t&&(this.options=t),this.state=oe,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!U()||this.timer)return;let{error:r,options:n,state:i,value:o,version:s}=this;this.state=oe,this.timer=Ze(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===oe&&this.version===s&&(this.state=i,this.error=r,this.value=o,this.update(),this.notify())}catch(l){this.toggleFailed(this.version,l,n)}})}};Ie=new WeakMap;function ln(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function rt(e,t={}){let{tag:r,is:n}=e,i=document.createElement(r,{is:n});return i.setAttribute("is",n),Object.assign(i.dataset,ln(t)),i}function nt(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,ln(t)),e):null}var un="download",hn="upgrade";function fn(e,t={},r=""){let n=U();if(!n)return null;let{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:l,modal:c,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m}=n.collectCheckoutOptions(t),E=rt(e,{checkoutMarketSegment:i,checkoutWorkflow:o,checkoutWorkflowStep:s,entitlement:a,upgrade:l,modal:c,perpetual:u,promotionCode:f,quantity:h,wcsOsi:p,extraOptions:d,analyticsId:m});return r&&(E.innerHTML=`${r}`),E}function pn(e){return class extends e{constructor(){super(...arguments);P(this,"checkoutActionHandler");P(this,"masElement",new Se(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 isOpen3in1Modal(){let n=document.querySelector("meta[name=mas-ff-3in1]");return Object.values(z).includes(this.getAttribute("data-modal"))&&(!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=U();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 l=i.resolveOfferSelectors(o),c=await Promise.all(l);c=c.map(f=>Oe(f,o)),o.country=this.dataset.imsCountry||o.country;let u=await i.buildCheckoutAction?.(c.flat(),{...s,...o},this);return this.renderOffers(c.flat(),o,{},u,a)}renderOffers(n,i,o={},s=void 0,a=void 0){let l=U();if(!l)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(un,hn),this.masElement.toggleResolved(a,n,i);let{url:u,text:f,className:h,handler:p}=s;u&&this.setCheckoutUrl(u),f&&(this.firstElementChild.innerHTML=f),h&&this.classList.add(...h.split(" ")),p&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=p.bind(this))}if(n.length){if(this.masElement.toggleResolved(a,n,i)){if(!this.classList.contains(un)&&!this.classList.contains(hn)){let u=l.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=U();if(!i)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:l,upgrade:c,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}=i.collectCheckoutOptions(n);return nt(this,{checkoutMarketSegment:o,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:l,upgrade:c,modal:u,perpetual:f,promotionCode:h,quantity:p,wcsOsi:d}),!0}}}var Me=class Me extends pn(HTMLAnchorElement){static createCheckoutLink(t={},r=""){return fn(Me,t,r)}setCheckoutUrl(t){this.setAttribute("href",t)}get isCheckoutLink(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}}};P(Me,"is","checkout-link"),P(Me,"tag","a");var J=Me;window.customElements.get(J.is)||window.customElements.define(J.is,J,{extends:J.tag});var ko="p_draft_landscape",Go="/store/",Fo=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"],["offerType","ot"],["marketSegment","ms"]]),ar=new Set(["af","ai","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"]),Vo=["env","workflowStep","clientId","country"],mn=e=>Fo.get(e)??e;function cr(e,t,r){for(let[n,i]of Object.entries(e)){let o=mn(n);i!=null&&r.has(o)&&t.set(o,i)}}function $o(e){switch(e){case Gt.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Yo(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=mn(i);t.set(`items[${r}][${s}]`,o)}}}function Wo({url:e,modal:t,customerSegment:r,cs:n,ms:i,marketSegment:o,quantity:s,productArrangementCode:a,addonProductArrangementCode:l}){let c=document.querySelector("meta[name=mas-ff-3in1]");return!Object.values(z).includes(t)||!e?.searchParams||!r||!o||c&&c.content==="off"||(e.searchParams.set("rtc","t"),e.searchParams.set("lo","sl"),e.searchParams.set("af","uc_new_user_iframe,uc_new_system_close"),e.searchParams.get("cli")!=="doc_cloud"&&e.searchParams.set("cli",t===z.CRM?"creative":"mini_plans"),(t===z.TWP||t===z.D2P)&&(r==="INDIVIDUAL"&&o==="EDU"&&e.searchParams.set("ms","e"),r==="TEAM"&&o==="COM"&&e.searchParams.set("cs","t")),s&&e.searchParams.set("q",s),l&&e.searchParams.set("ao",l),a&&e.searchParams.set("pa",a),n&&e.searchParams.set("cs",n),i&&e.searchParams.set("ms",i)),e}function dn(e){jo(e);let{env:t,items:r,workflowStep:n,ms:i,cs:o,marketSegment:s,customerSegment:a,ot:l,offerType:c,pa:u,productArrangementCode:f,landscape:h,modal:p,...d}=e,m={marketSegment:s??i,offerType:c??l,productArrangementCode:f??u},E=new URL($o(t));return E.pathname=`${Go}${n}`,n!==H.SEGMENTATION&&n!==H.CHANGE_PLAN_TEAM_PLANS&&Yo(r,E.searchParams),cr({cs:o,...d},E.searchParams,ar),h===se.DRAFT&&cr({af:ko},E.searchParams,ar),n===H.SEGMENTATION&&(cr(m,E.searchParams,ar),E=Wo({url:E,modal:p,customerSegment:a,marketSegment:s,cs:o,ms:i,quantity:r?.[0]?.quantity>1&&r?.[0]?.quantity,productArrangementCode:f,addonProductArrangementCode:f?r?.find(g=>g.productArrangementCode!==f)?.productArrangementCode:r?.[1]?.productArrangementCode})),E.toString()}function jo(e){for(let t of Vo)if(!e[t])throw new Error('Argument "checkoutData" is not valid, missing: '+t);if(e.workflowStep!==H.SEGMENTATION&&e.workflowStep!==H.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}var A=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:X.V3,checkoutWorkflowStep:H.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,displayPlanType:!1,env:Z.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:se.PUBLISHED});function En({providers:e,settings:t}){function r(o,s){let{checkoutClientId:a,checkoutWorkflow:l,checkoutWorkflowStep:c,country:u,language:f,promotionCode:h,quantity:p}=t,{checkoutMarketSegment:d,checkoutWorkflow:m=l,checkoutWorkflowStep:E=c,imsCountry:g,country:S=g??u,language:_=f,quantity:v=p,entitlement:R,upgrade:L,modal:k,perpetual:O,promotionCode:M=h,wcsOsi:B,extraOptions:V,...ge}=Object.assign({},s?.dataset??{},o??{}),ne=he(m,X,A.checkoutWorkflow),le=H.CHECKOUT;ne===X.V3&&(le=he(E,H,A.checkoutWorkflowStep));let xe=Ne({...ge,extraOptions:V,checkoutClientId:a,checkoutMarketSegment:d,country:S,quantity:_e(v,A.quantity),checkoutWorkflow:ne,checkoutWorkflowStep:le,language:_,entitlement:x(R),upgrade:x(L),modal:k,perpetual:x(O),promotionCode:Qe(M).effectivePromoCode,wcsOsi:Je(B)});if(s)for(let Ce of e.checkout)Ce(s,xe);return xe}function n(o,s){if(!Array.isArray(o)||!o.length||!s)return"";let{env:a,landscape:l}=t,{checkoutClientId:c,checkoutMarketSegment:u,checkoutWorkflow:f,checkoutWorkflowStep:h,country:p,promotionCode:d,quantity:m,...E}=r(s),g=document.querySelector("meta[name=mas-ff-3in1]"),S=Object.values(z).includes(s.modal)&&(!g||g.content!=="off"),_=window.frameElement||S?"if":"fp",v={checkoutPromoCode:d,clientId:c,context:_,country:p,env:a,items:[],marketSegment:u,workflowStep:h,landscape:l,...E},[{productArrangementCode:R,marketSegments:[L],customerSegment:k,offerType:O}]=o;if(Object.assign(v,{productArrangementCode:R,marketSegment:L,customerSegment:k,offerType:O}),o.length===1){let{offerId:M}=o[0];v.items.push(m[0]===1?{id:M}:{id:M,quantity:m[0]})}else v.items.push(...o.map(({offerId:M},B)=>({id:M,quantity:m[B]??A.quantity})));return dn(v)}let{createCheckoutLink:i}=J;return{CheckoutLink:J,CheckoutWorkflow:X,CheckoutWorkflowStep:H,buildCheckoutURL:n,collectCheckoutOptions:r,createCheckoutLink:i}}function qo({interval:e=200,maxAttempts:t=25}={}){let r=W.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 Xo(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function zo(e){let t=W.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 gn({}){let e=qo(),t=Xo(e),r=zo(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}var xn=window.masPriceLiterals;function yn(e){if(Array.isArray(xn)){let t=n=>xn.find(i=>Yt(i.lang,n)),r=t(e.language)??t(A.language);if(r)return Object.freeze(r)}return{}}var lr=function(e,t){return lr=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])},lr(e,t)};function He(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lr(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,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(Zo,function(l,c,u,f,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(f&&h)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(wn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Sn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Sn,function(l,c,u,f,h,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=T(T({},t),Pn(o)));continue}if(Rn.test(i.stem)){t=T(T({},t),Pn(i.stem));continue}var s=Ln(i.stem);s&&(t=T(T({},t),s));var a=Jo(i.stem);a&&(t=T(T({},t),a))}return t}var Be={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 On(e,t){for(var r="",n=0;n>1),l="a",c=es(t);for((c=="H"||c=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=c+r}else i==="J"?r+="H":r+=i}return r}function es(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=Be[n||""]||Be[r||""]||Be["".concat(r,"-001")]||Be["001"];return i[0]}var fr,ts=new RegExp("^".concat(hr.source,"*")),rs=new RegExp("".concat(hr.source,"*$"));function b(e,t){return{start:e,end:t}}var ns=!!String.prototype.startsWith,is=!!String.fromCodePoint,os=!!Object.fromEntries,ss=!!String.prototype.codePointAt,as=!!String.prototype.trimStart,cs=!!String.prototype.trimEnd,ls=!!Number.isSafeInteger,us=ls?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mr=!0;try{In=Bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),mr=((fr=In.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch{mr=!1}var In,Mn=ns?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},dr=is?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},Hn=os?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}},hs=as?function(t){return t.trimStart()}:function(t){return t.replace(ts,"")},fs=cs?function(t){return t.trimEnd()}:function(t){return t.replace(rs,"")};function Bn(e,t){return new RegExp(e,t)}var Er;mr?(pr=Bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Er=function(t,r){var n;pr.lastIndex=r;var i=pr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}):Er=function(t,r){for(var n=[];;){var i=Dn(t,r);if(i===void 0||kn(i)||ds(i))break;n.push(i),r+=i>=65536?2:1}return dr.apply(void 0,n)};var pr,Un=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:C.pound,location:b(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,b(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&gr(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:C.literal,value:"<".concat(i,"/>"),location:b(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:C.tag,value:i,children:s,location:b(n,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,b(a,this.clonePosition())))}else return this.error(y.UNCLOSED_TAG,b(n,this.clonePosition()))}else return this.error(y.INVALID_TAG,b(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ms(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 l=b(n,this.clonePosition());return{val:{type:C.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ps(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 dr.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(),dr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(y.EMPTY_ARGUMENT,b(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(y.MALFORMED_ARGUMENT,b(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:C.argument,value:i,location:b(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(y.MALFORMED_ARGUMENT,b(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Er(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=b(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,b(s,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=fs(f.val);if(h.length===0)return this.error(y.EXPECT_ARGUMENT_STYLE,b(this.clonePosition(),this.clonePosition()));var p=b(u,this.clonePosition());c={style:h,styleLocation:p}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var m=b(i,this.clonePosition());if(c&&Mn(c?.style,"::",0)){var E=hs(c.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(E,c.styleLocation);return f.err?f:{val:{type:C.number,value:n,location:m,style:f.val},err:null}}else{if(E.length===0)return this.error(y.EXPECT_DATE_TIME_SKELETON,m);var g=E;this.locale&&(g=On(E,this.locale));var h={type:pe.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?_n(g):{}},S=a==="date"?C.date:C.time;return{val:{type:S,value:n,location:m,style:h},err:null}}}return{val:{type:a==="number"?C.number:a==="date"?C.date:C.time,value:n,location:m,style:(o=c?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,b(_,T({},_)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),R=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),R=f.val}var L=this.tryParsePluralOrSelectOptions(t,a,r,v);if(L.err)return L;var d=this.tryParseArgumentClose(i);if(d.err)return d;var k=b(i,this.clonePosition());return a==="select"?{val:{type:C.select,value:n,options:Hn(L.val),location:k},err:null}:{val:{type:C.plural,value:n,options:Hn(L.val),offset:R,pluralType:a==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(y.INVALID_ARGUMENT_TYPE,b(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,b(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(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,b(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=Cn(t)}catch{return this.error(y.INVALID_NUMBER_SKELETON,r)}return{val:{type:pe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Nn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=b(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(r==="select"?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,b(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,r,n);if(d.err)return d;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([c,{value:d.val,location:b(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return a.length===0?this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,b(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(y.MISSING_OTHER_CLAUSE,b(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 l=b(i,this.clonePosition());return o?(s*=n,us(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},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=Dn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&kn(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 gr(e){return e>=97&&e<=122||e>=65&&e<=90}function ps(e){return gr(e)||e===47}function ms(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 kn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ds(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 xr(e){e.forEach(function(t){if(delete t.location,ct(t)||lt(t))for(var r in t.options)delete t.options[r].location,xr(t.options[r].value);else ot(t)&&ht(t.style)||(st(t)||at(t))&&De(t.style)?delete t.style.location:ut(t)&&xr(t.children)})}function Gn(e,t){t===void 0&&(t={}),t=T({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Un(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||xr(r.val),r.val}function Ue(e,t){var r=t&&t.cache?t.cache:bs,n=t&&t.serializer?t.serializer:Ts,i=t&&t.strategy?t.strategy:gs;return i(e,{cache:r,serializer:n})}function Es(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Fn(e,t,r,n){var i=Es(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Vn(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 yr(e,t,r,n,i){return r.bind(t,e,n,i)}function gs(e,t){var r=e.length===1?Fn:Vn;return yr(e,this,r,t.cache.create(),t.serializer)}function xs(e,t){return yr(e,this,Vn,t.cache.create(),t.serializer)}function ys(e,t){return yr(e,this,Fn,t.cache.create(),t.serializer)}var Ts=function(){return JSON.stringify(arguments)};function Tr(){this.cache=Object.create(null)}Tr.prototype.get=function(e){return this.cache[e]};Tr.prototype.set=function(e,t){this.cache[e]=t};var bs={create:function(){return new Tr}},ft={variadic:xs,monadic:ys};var me;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(me||(me={}));var ke=function(e){He(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 br=function(e){He(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('", "'),'"'),me.INVALID_VALUE,o)||this}return t}(ke);var $n=function(e){He(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),me.INVALID_VALUE,i)||this}return t}(ke);var Yn=function(e){He(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,'"'),me.MISSING_VALUE,n)||this}return t}(ke);var D;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(D||(D={}));function _s(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==D.literal||r.type!==D.literal?t.push(r):n.value+=r.value,t},[])}function As(e){return typeof e=="function"}function Ge(e,t,r,n,i,o,s){if(e.length===1&&ur(e[0]))return[{type:D.literal,value:e[0].value}];for(var a=[],l=0,c=e;l0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Gn,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 jn=Wn;var Cs=/[0-9\-+#]/,Rs=/[^\d\-+#]/g;function qn(e){return e.search(Cs)}function ws(e="#.##"){let t={},r=e.length,n=qn(e);t.prefix=n>0?e.substring(0,n):"";let i=qn(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 l=t.mask.match(Rs);return t.decimal=l&&l[l.length-1]||".",t.separator=l&&l[1]&&l[0]||",",l=t.mask.split(t.decimal),t.integer=l[0],t.fraction=l[1],t}function Ls(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,Ns(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 Ns(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,Jn=(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 l=t?new Date(t):new Date;if(!r||!n)return!1;let c=new Date(r),u=new Date(n);return l>=c&&l<=u},de={MONTH:"MONTH",YEAR:"YEAR"},Ms={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},Sr=(e,t)=>({accept:e,round:t}),Hs=[Sr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Sr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Sr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Pr={[ue.YEAR]:{[$.MONTHLY]:de.MONTH,[$.ANNUAL]:de.YEAR},[ue.MONTH]:{[$.MONTHLY]:de.MONTH}},Ds=(e,t)=>e.indexOf(`'${t}'`)===0,Bs=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=ti(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+ks(e)),r},Us=e=>{let t=Gs(e),r=Ds(e,t),n=e.replace(/'.*?'/,""),i=Qn.test(n)||Zn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},ei=e=>e.replace(Qn,Kn).replace(Zn,Kn),ks=e=>e.match(/#(.?)#/)?.[1]===zn?Is:zn,Gs=e=>e.match(/'(.*?)'/)?.[1]??"",ti=e=>e.match(/0(.?)0/)?.[1]??"";function Pe({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:l}=Us(e),c=r?ti(e):"",u=Bs(e,r),f=r?2:0,h=o(t,{currencySymbol:s}),p=n?h.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Xn(u,h),d=r?p.lastIndexOf(c):p.length,m=p.substring(0,d),E=p.substring(d+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:E,decimalsDelimiter:c,hasCurrencySpace:l,integer:m,isCurrencyFirst:a,recurrenceTerm:i}}var ri=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=Ms[r]??1;return Pe(e,i>1?de.MONTH:Pr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=Hs.find(({accept:l})=>l(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},ni=({commitment:e,term:t,...r})=>Pe(r,Pr[e]?.[t]),ii=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:l}=e;if(t===ue.YEAR&&l===$.MONTHLY){if(!s)return Pe(e,de.YEAR,Ar);let{displaySummary:{outcomeType:c,duration:u,minProductQuantity:f=1}={}}=s;switch(c){case"PERCENTAGE_DISCOUNT":if(a>=f&&Jn(s,r)){let h=parseInt(u.replace("P","").replace("M",""));if(isNaN(h))return Ar(n);let p=a*i*h,d=a*o*(12-h),m=Math.round((p+d)*100)/100;return Pe({...e,price:m},de.YEAR)}default:return Pe(e,de.YEAR,()=>Ar(o??n))}}return Pe(e,Pr[t]?.[l])};var vr={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 {}}"},Fs=Kr("ConsonantTemplates/price"),Vs=/<\/?[^>]+(>|$)/g,O={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"},ae={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Cr="TAX_EXCLUSIVE",$s=e=>qr(e)?Object.entries(e).filter(([,t])=>be(t)||ze(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+jr(n)+'"'}`,""):"",I=(e,t,r,n=!1)=>`${n?ei(t):t??""}`;function ee(e,t,r,n){let i=e[r];if(i==null)return"";try{return new jn(i.replace(Vs,""),t).format(n)}catch{return Fs.error("Failed to format literal:",i),""}}function Ys(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:l,recurrenceLabel:c,perUnitLabel:u,taxInclusivityLabel:f},h={}){let p=I(O.currencySymbol,n),d=I(O.currencySpace,s?" ":""),m="";return t?m=`${t}`:r&&(m=`${r}`),l&&(m+=p+d),m+=I(O.integer,a),m+=I(O.decimalsDelimiter,o),m+=I(O.decimals,i),l||(m+=d+p),m+=I(O.recurrence,c,null,!0),m+=I(O.unitType,u,null,!0),m+=I(O.taxInclusivity,f,!0),I(e,m,{...h})}var k=({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:l=!1,displayTax:c=!1,language:u,literals:f={},quantity:h=1}={},{commitment:p,offerSelectorIds:d,formatString:m,price:E,priceWithoutDiscount:g,taxDisplay:A,taxTerm:_,term:v,usePrecision:C,promotion:w}={},H={})=>{Object.entries({country:o,formatString:m,language:u,price:E}).forEach(([ki,Gi])=>{if(Gi==null)throw new Error(`Argument "${ki}" is missing for osi ${d?.toString()}, country ${o}, language ${u}`)});let N={...vr,...f},M=`${u.toLowerCase()}-${o.toUpperCase()}`,G=r&&g?g:E,V=t?ri:ni;n&&(V=ii);let{accessiblePrice:ge,recurrenceTerm:ne,...le}=V({commitment:p,formatString:m,instant:i,isIndianPrice:o==="IN",originalPrice:E,priceWithoutDiscount:g,price:t?E:G,promotion:w,quantity:h,term:v,usePrecision:C}),xe="",Ce="",Et="";x(a)&&ne&&(Et=ee(N,M,ae.recurrenceLabel,{recurrenceTerm:ne}));let gt="";x(l)&&(gt=ee(N,M,ae.perUnitLabel,{perUnit:"LICENSE"}));let xt="";x(c)&&_&&(xt=ee(N,M,A===Cr?ae.taxExclusiveLabel:ae.taxInclusiveLabel,{taxTerm:_})),r&&(xe=ee(N,M,ae.strikethroughAriaLabel,{strikethroughPrice:xe})),e&&(Ce=ee(N,M,ae.alternativePriceAriaLabel,{alternativePrice:Ce}));let ye=O.container;if(t&&(ye+=" "+O.containerOptical),r&&(ye+=" "+O.containerStrikethrough),e&&(ye+=" "+O.containerAlternative),n&&(ye+=" "+O.containerAnnual),x(s))return Ys(ye,{...le,accessibleLabel:xe,altAccessibleLabel:Ce,recurrenceLabel:Et,perUnitLabel:gt,taxInclusivityLabel:xt},H);let{currencySymbol:Lr,decimals:Mi,decimalsDelimiter:Hi,hasCurrencySpace:Nr,integer:Di,isCurrencyFirst:Bi}=le,Te=[Di,Hi,Mi];Bi?(Te.unshift(Nr?"\xA0":""),Te.unshift(Lr)):(Te.push(Nr?"\xA0":""),Te.push(Lr)),Te.push(Et,gt,xt);let Ui=Te.join("");return I(ye,Ui,H)},oi=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||x(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?k({displayStrikethrough:!0})(e,t,r)+" ":""}${k({isAlternativePrice:i})(e,t,r)}`},si=()=>(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||x(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?k({displayStrikethrough:!0})(i,t,r)+" ":""}${k({isAlternativePrice:s})(e,t,r)}${I(O.containerAnnualPrefix," (")}${k({displayAnnual:!0,instant:n})(i,t,r)}${I(O.containerAnnualSuffix,")")}`},ai=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${k({isAlternativePrice:e.displayOldPrice})(e,t,r)}${I(O.containerAnnualPrefix," (")}${k({displayAnnual:!0})(n,t,r)}${I(O.containerAnnualSuffix,")")}`};var Fe={...O,containerLegal:"price-legal",planType:"price-plan-type"},pt={...ae,planTypeLabel:"planTypeLabel"};function Ws(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=I(Fe.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=I(Fe.taxInclusivity,r,!0),o+=I(Fe.planType,n,null),t&&(r||n)&&(o+=")"),I(e,o,{...i})}var ci=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:l}={},c={})=>{let u={...vr,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,h="";x(t)&&(h=ee(u,f,pt.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&i==="en"&&(r=!1),x(r)&&a&&(p=ee(u,f,s===Cr?pt.taxExclusiveLabel:pt.taxInclusiveLabel,{taxTerm:a}));let d="";x(n)&&l&&(d=ee(u,f,pt.planTypeLabel,{planType:l}));let m=Fe.container;return m+=" "+Fe.containerLegal,Ws(m,{perUnitLabel:h,taxInclusivityLabel:p,planTypeLabel:d},c)};var li=k(),ui=oi(),hi=k({displayOptical:!0}),fi=k({displayStrikethrough:!0}),pi=k({displayAnnual:!0}),mi=k({displayOptical:!0,isAlternativePrice:!0}),di=k({isAlternativePrice:!0}),Ei=ai(),gi=si(),xi=ci;var js=(e,t)=>{if(!(!Le(e)||!Le(t)))return Math.floor((t-e)/t*100)},yi=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=js(r,n);return i===void 0?'':`${i}%`};var Ti=yi();var bi=["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","FR_fr","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"],qs={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},Ve=class Ve extends HTMLSpanElement{constructor(){super();P(this,"masElement",new Se(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-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=U();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:l,displayAnnual:c,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E}=n.collectPriceOptions(r);return rt(Ve,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:l,displayAnnual:c,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E})}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}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let s=`${r}_${n}`;if(bi.includes(r)||bi.includes(s))return!0;let a=qs[`${i}_${o}`];return a?!!(a.includes(r)||a.includes(s)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Oe(await i,n);if(o?.length){let{country:s,language:a}=n,l=o[0],[c=""]=l.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(s,a,l.customerSegment,c)}}async render(r={}){if(!this.isConnected)return!1;let n=U();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[s]=n.resolveOfferSelectors(i);return this.renderOffers(Oe(await s,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=U();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 l=a?.querySelectorAll('span[is="inline-price"]');return l.length>1&&l.length===a.querySelectorAll('span[data-template="strikethrough"]').length*2&&l.forEach(c=>{c.dataset.template!=="strikethrough"&&c.options&&!c.options.alternativePrice&&(c.options.alternativePrice=!0,c.innerHTML=o.buildPriceHTML(r,c.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=U();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:l,forceTaxExclusive:c,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}=n.collectPriceOptions(r);return nt(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:l,forceTaxExclusive:c,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}),!0}};P(Ve,"is","inline-price"),P(Ve,"tag","span");var te=Ve;window.customElements.get(te.is)||window.customElements.define(te.is,te,{extends:te.tag});function _i({literals:e,providers:t,settings:r}){function n(s,a=null){let l=structuredClone(r);if(a)for(let w of t.price)w(a,l);let{displayOldPrice:c,displayPerUnit:u,displayRecurrence:f,displayTax:h,displayPlanType:p,forceTaxExclusive:d,perpetual:m,displayAnnual:E,promotionCode:g,quantity:A,alternativePrice:_,wcsOsi:v,...C}=Object.assign(l,a?.dataset??{},s??{});return Object.assign(l,Ne({...C,displayOldPrice:x(c),displayPerUnit:x(u),displayRecurrence:x(f),displayTax:x(h),displayPlanType:x(p),forceTaxExclusive:x(d),perpetual:x(m),displayAnnual:x(E),promotionCode:Qe(g).effectivePromoCode,quantity:_e(A,S.quantity),alternativePrice:x(_),wcsOsi:Je(v)})),l}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:l}=a,c;switch(l){case"discount":c=Ti;break;case"strikethrough":c=fi;break;case"annual":c=pi;break;case"legal":c=xi;break;default:a.template==="optical"&&a.alternativePrice?c=mi:a.template==="optical"?c=hi:a.displayAnnual&&s[0].planType==="ABM"?c=a.promotionCode?gi:Ei:a.alternativePrice?c=di:c=a.promotionCode?ui:li}let u=n(a);u.literals=Object.assign({},e.price,Ne(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},c(u,f)}let o=te.createInlinePrice;return{InlinePrice:te,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Xs({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||S.language),t??(t=e?.split("_")?.[1]||S.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function Ai(e={}){let{commerce:t={}}=e,r=Z.PRODUCTION,n=Bt,i=L("checkoutClientId",t)??S.checkoutClientId,o=he(L("checkoutWorkflow",t),X,S.checkoutWorkflow),s=D.CHECKOUT;o===X.V3&&(s=he(L("checkoutWorkflowStep",t),D,S.checkoutWorkflowStep));let a=x(L("displayOldPrice",t),S.displayOldPrice),l=x(L("displayPerUnit",t),S.displayPerUnit),c=x(L("displayRecurrence",t),S.displayRecurrence),u=x(L("displayTax",t),S.displayTax),f=x(L("displayPlanType",t),S.displayPlanType),h=x(L("entitlement",t),S.entitlement),p=x(L("modal",t),S.modal),d=x(L("forceTaxExclusive",t),S.forceTaxExclusive),m=L("promotionCode",t)??S.promotionCode,E=_e(L("quantity",t)),g=L("wcsApiKey",t)??S.wcsApiKey,A=t?.env==="stage",_=se.PUBLISHED;["true",""].includes(t.allowOverride)&&(A=(L(Ht,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",_=he(L(Dt,t),se,_)),A&&(r=Z.STAGE,n=Ut);let C=L("mas-io-url")??e.masIOUrl??`https://www${r===Z.STAGE?".stage":""}.adobe.com/mas/io`;return{...Xs(e),displayOldPrice:a,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:s,displayPerUnit:l,displayRecurrence:c,displayTax:u,displayPlanType:f,entitlement:h,extraOptions:S.extraOptions,modal:p,env:r,forceTaxExclusive:d,promotionCode:m,quantity:E,alternativePrice:S.alternativePrice,wcsApiKey:g,wcsURL:n,landscape:_,masIOUrl:C}}async function Si(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{return await fetch(e,t)}catch(s){if(i=s,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var Rr="wcs";function Pi({settings:e}){let t=W.module(Rr),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function l(h,p,d=!0){let m=U(),E=Nt;t.debug("Fetching:",h);let g="",A;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let _=new Map(p),[v]=h.offerSelectorIds,C=Date.now()+Math.random().toString(36).substring(2,7),w=`${Rr}:${v}:${C}${Ft}`,H=`${Rr}:${v}:${C}${Vt}`,N,M;try{if(performance.mark(w),g=new URL(e.wcsURL),g.searchParams.set("offer_selector_ids",v),g.searchParams.set("country",h.country),g.searchParams.set("locale",h.locale),g.searchParams.set("landscape",r===Z.STAGE?"ALL":e.landscape),g.searchParams.set("api_key",n),h.language&&g.searchParams.set("language",h.language),h.promotionCode&&g.searchParams.set("promotion_code",h.promotionCode),h.currency&&g.searchParams.set("currency",h.currency),A=await Si(g.toString(),{credentials:"omit"}),A.ok){let G=[];try{let V=await A.json();t.debug("Fetched:",h,V),G=V.resolvedOffers??[]}catch(V){t.error(`Error parsing JSON: ${V.message}`,{...V.context,...m?.duration})}G=G.map(rr),p.forEach(({resolve:V},ge)=>{let ne=G.filter(({offerSelectorIds:le})=>le.includes(ge)).flat();ne.length&&(_.delete(ge),p.delete(ge),V(ne))})}else E=Lt}catch(G){E=`Network error: ${G.message}`}finally{({startTime:N,duration:M}=performance.measure(H,w)),performance.clearMarks(w),performance.clearMeasures(H)}d&&p.size&&(t.debug("Missing:",{offerSelectorIds:[...p.keys()]}),p.forEach(G=>{G.reject(new Ae(E,{...h,response:A,startTime:N,duration:M,...m?.duration}))}))}function c(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:p,promises:d})=>l(p,d))}function u(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function f({country:h,language:p,perpetual:d=!1,promotionCode:m="",wcsOsi:E=[]}){let g=`${p}_${h}`;h!=="GB"&&(p=d?"EN":"MULT");let A=[h,p,m].filter(_=>_).join("-").toLowerCase();return E.map(_=>{let v=`${_}-${A}`;if(i.has(v))return i.get(v);let C=new Promise((w,H)=>{let N=o.get(A);if(!N){let M={country:h,locale:g,offerSelectorIds:[]};h!=="GB"&&(M.language=p),N={options:M,promises:new Map},o.set(A,N)}m&&(N.options.promotionCode=m),N.options.offerSelectorIds.push(_),N.promises.set(_,{resolve:w,reject:H}),c()}).catch(w=>{if(a.has(v))return a.get(v);throw w});return i.set(v,C),C})}return{Commitment:ue,PlanType:Zr,Term:$,applyPlanType:rr,resolveOfferSelectors:f,flushWcsCacheInternal:u}}var vi="mas-commerce-service",Ci="mas:start",Ri="mas:ready",wi="mas-commerce-service:initTime",$e,mt,Li,wr=class extends HTMLElement{constructor(){super(...arguments);q(this,mt);q(this,$e);P(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=j(this,mt,Li),n=Ai(r);et(r.lana);let i=W.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:yn(n)},a={checkout:new Set,price:new Set},l={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...En(l),...gn(l),..._i(l),...Pi(l),...$t,Log:W,get defaults(){return S},get log(){return W},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 c=new CustomEvent(qe,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Ri),ie(this,$e,performance.measure(wi,Ci,Ri)?.duration),this.dispatchEvent(c),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Ci),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Tt).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{[wi]:j(this,$e)}}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)}};$e=new WeakMap,mt=new WeakSet,Li=function(){let r=this.getAttribute("env")??"prod",n={hostEnv:{name:r},commerce:{env: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"].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(vi)||window.customElements.define(vi,wr);var Oi="merch-card-collection",Ks=1e4,re={alphabetical:"alphabetical",authored:"authored"},Qs={catalog:["four-merch-cards"],plans:["four-merch-cards"]},Zs={filters:["noResultText","resultText","resultsText"],mobile:["noSearchResultsMobileText","searchResultMobileText","searchResultsMobileText"],desktop:["noSearchResultsText","searchResultText","searchResultsText"]},Ni=(e,t={})=>{e.querySelectorAll("span[data-placeholder]").forEach(r=>{let{placeholder:n}=r.dataset;r.innerText=t[n]??""})},Js=(e,{filter:t})=>e.filter(r=>r.filters.hasOwnProperty(t)),ea=(e,{types:t})=>t?(t=t.split(","),e.filter(r=>t.some(n=>r.types.includes(n)))):e,ta=e=>e.sort((t,r)=>(t.title??"").localeCompare(r.title??"","en",{sensitivity:"base"})),ra=(e,{filter:t})=>e.sort((r,n)=>n.filters[t]?.order==null||isNaN(n.filters[t]?.order)?-1:r.filters[t]?.order==null||isNaN(r.filters[t]?.order)?1:r.filters[t].order-n.filters[t].order),na=(e,{search:t})=>t?.length?(t=t.toLowerCase(),e.filter(r=>(r.title??"").toLowerCase().includes(t))):e,Ee,Ye,We,dt,Ii,ve=class extends zs{constructor(){super();q(this,dt);q(this,Ee,{});q(this,Ye);q(this,We);P(this,"mobileAndTablet",new je(this,kr));this.filter="all",this.hasMore=!1,this.resultCount=void 0,this.displayResult=!1,this.data=null,this.variant=null,this.hydrating=!1,this.hydrationReady=null}render(){return ce`${this.header} +`,me.MISSING_INTL_API,s);var v=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));_=u.options[v]||u.options.other}if(!_)throw new br(u.value,h,Object.keys(u.options),s);a.push.apply(a,Ge(_.value,t,r,n,i,h-(u.offset||0)));continue}}return _s(a)}function Ss(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 Ps(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Ss(e[n],t[n]),r},T({},e)):e}function _r(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ue(function(){for(var t,r=[],n=0;n0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=Gn,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 jn=Wn;var Cs=/[0-9\-+#]/,Rs=/[^\d\-+#]/g;function qn(e){return e.search(Cs)}function ws(e="#.##"){let t={},r=e.length,n=qn(e);t.prefix=n>0?e.substring(0,n):"";let i=qn(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 l=t.mask.match(Rs);return t.decimal=l&&l[l.length-1]||".",t.separator=l&&l[1]&&l[0]||",",l=t.mask.split(t.decimal),t.integer=l[0],t.fraction=l[1],t}function Ls(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,Ns(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 Ns(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,Jn=(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 l=t?new Date(t):new Date;if(!r||!n)return!1;let c=new Date(r),u=new Date(n);return l>=c&&l<=u},de={MONTH:"MONTH",YEAR:"YEAR"},Ms={[$.ANNUAL]:12,[$.MONTHLY]:1,[$.THREE_YEARS]:36,[$.TWO_YEARS]:24},Sr=(e,t)=>({accept:e,round:t}),Hs=[Sr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Sr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),Sr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Pr={[ue.YEAR]:{[$.MONTHLY]:de.MONTH,[$.ANNUAL]:de.YEAR},[ue.MONTH]:{[$.MONTHLY]:de.MONTH}},Ds=(e,t)=>e.indexOf(`'${t}'`)===0,Bs=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=ti(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+ks(e)),r},Us=e=>{let t=Gs(e),r=Ds(e,t),n=e.replace(/'.*?'/,""),i=Qn.test(n)||Zn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:i}},ei=e=>e.replace(Qn,Kn).replace(Zn,Kn),ks=e=>e.match(/#(.?)#/)?.[1]===zn?Is:zn,Gs=e=>e.match(/'(.*?)'/)?.[1]??"",ti=e=>e.match(/0(.?)0/)?.[1]??"";function Pe({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},i,o=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:l}=Us(e),c=r?ti(e):"",u=Bs(e,r),f=r?2:0,h=o(t,{currencySymbol:s}),p=n?h.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Xn(u,h),d=r?p.lastIndexOf(c):p.length,m=p.substring(0,d),E=p.substring(d+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:E,decimalsDelimiter:c,hasCurrencySpace:l,integer:m,isCurrencyFirst:a,recurrenceTerm:i}}var ri=e=>{let{commitment:t,term:r,usePrecision:n}=e,i=Ms[r]??1;return Pe(e,i>1?de.MONTH:Pr[t]?.[r],o=>{let s={divisor:i,price:o,usePrecision:n},{round:a}=Hs.find(({accept:l})=>l(s));if(!a)throw new Error(`Missing rounding rule for: ${JSON.stringify(s)}`);return a(s)})},ni=({commitment:e,term:t,...r})=>Pe(r,Pr[e]?.[t]),ii=e=>{let{commitment:t,instant:r,price:n,originalPrice:i,priceWithoutDiscount:o,promotion:s,quantity:a=1,term:l}=e;if(t===ue.YEAR&&l===$.MONTHLY){if(!s)return Pe(e,de.YEAR,Ar);let{displaySummary:{outcomeType:c,duration:u,minProductQuantity:f=1}={}}=s;switch(c){case"PERCENTAGE_DISCOUNT":if(a>=f&&Jn(s,r)){let h=parseInt(u.replace("P","").replace("M",""));if(isNaN(h))return Ar(n);let p=a*i*h,d=a*o*(12-h),m=Math.round((p+d)*100)/100;return Pe({...e,price:m},de.YEAR)}default:return Pe(e,de.YEAR,()=>Ar(o??n))}}return Pe(e,Pr[t]?.[l])};var vr={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 {}}"},Fs=Kr("ConsonantTemplates/price"),Vs=/<\/?[^>]+(>|$)/g,N={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"},ae={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel",alternativePriceAriaLabel:"alternativePriceAriaLabel"},Cr="TAX_EXCLUSIVE",$s=e=>qr(e)?Object.entries(e).filter(([,t])=>be(t)||ze(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+jr(n)+'"'}`,""):"",I=(e,t,r,n=!1)=>`${n?ei(t):t??""}`;function ee(e,t,r,n){let i=e[r];if(i==null)return"";try{return new jn(i.replace(Vs,""),t).format(n)}catch{return Fs.error("Failed to format literal:",i),""}}function Ys(e,{accessibleLabel:t,altAccessibleLabel:r,currencySymbol:n,decimals:i,decimalsDelimiter:o,hasCurrencySpace:s,integer:a,isCurrencyFirst:l,recurrenceLabel:c,perUnitLabel:u,taxInclusivityLabel:f},h={}){let p=I(N.currencySymbol,n),d=I(N.currencySpace,s?" ":""),m="";return t?m=`${t}`:r&&(m=`${r}`),l&&(m+=p+d),m+=I(N.integer,a),m+=I(N.decimalsDelimiter,o),m+=I(N.decimals,i),l||(m+=d+p),m+=I(N.recurrence,c,null,!0),m+=I(N.unitType,u,null,!0),m+=I(N.taxInclusivity,f,!0),I(e,m,{...h})}var G=({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:l=!1,displayTax:c=!1,language:u,literals:f={},quantity:h=1}={},{commitment:p,offerSelectorIds:d,formatString:m,price:E,priceWithoutDiscount:g,taxDisplay:S,taxTerm:_,term:v,usePrecision:R,promotion:L}={},k={})=>{Object.entries({country:o,formatString:m,language:u,price:E}).forEach(([ki,Gi])=>{if(Gi==null)throw new Error(`Argument "${ki}" is missing for osi ${d?.toString()}, country ${o}, language ${u}`)});let O={...vr,...f},M=`${u.toLowerCase()}-${o.toUpperCase()}`,B=r&&g?g:E,V=t?ri:ni;n&&(V=ii);let{accessiblePrice:ge,recurrenceTerm:ne,...le}=V({commitment:p,formatString:m,instant:i,isIndianPrice:o==="IN",originalPrice:E,priceWithoutDiscount:g,price:t?E:B,promotion:L,quantity:h,term:v,usePrecision:R}),xe="",Ce="",Et="";x(a)&&ne&&(Et=ee(O,M,ae.recurrenceLabel,{recurrenceTerm:ne}));let gt="";x(l)&&(gt=ee(O,M,ae.perUnitLabel,{perUnit:"LICENSE"}));let xt="";x(c)&&_&&(xt=ee(O,M,S===Cr?ae.taxExclusiveLabel:ae.taxInclusiveLabel,{taxTerm:_})),r&&(xe=ee(O,M,ae.strikethroughAriaLabel,{strikethroughPrice:xe})),e&&(Ce=ee(O,M,ae.alternativePriceAriaLabel,{alternativePrice:Ce}));let ye=N.container;if(t&&(ye+=" "+N.containerOptical),r&&(ye+=" "+N.containerStrikethrough),e&&(ye+=" "+N.containerAlternative),n&&(ye+=" "+N.containerAnnual),x(s))return Ys(ye,{...le,accessibleLabel:xe,altAccessibleLabel:Ce,recurrenceLabel:Et,perUnitLabel:gt,taxInclusivityLabel:xt},k);let{currencySymbol:Lr,decimals:Mi,decimalsDelimiter:Hi,hasCurrencySpace:Nr,integer:Di,isCurrencyFirst:Bi}=le,Te=[Di,Hi,Mi];Bi?(Te.unshift(Nr?"\xA0":""),Te.unshift(Lr)):(Te.push(Nr?"\xA0":""),Te.push(Lr)),Te.push(Et,gt,xt);let Ui=Te.join("");return I(ye,Ui,k)},oi=()=>(e,t,r)=>{let i=(e.displayOldPrice===void 0||x(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${i?G({displayStrikethrough:!0})(e,t,r)+" ":""}${G({isAlternativePrice:i})(e,t,r)}`},si=()=>(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||x(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${s?G({displayStrikethrough:!0})(i,t,r)+" ":""}${G({isAlternativePrice:s})(e,t,r)}${I(N.containerAnnualPrefix," (")}${G({displayAnnual:!0,instant:n})(i,t,r)}${I(N.containerAnnualSuffix,")")}`},ai=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${G({isAlternativePrice:e.displayOldPrice})(e,t,r)}${I(N.containerAnnualPrefix," (")}${G({displayAnnual:!0})(n,t,r)}${I(N.containerAnnualSuffix,")")}`};var Fe={...N,containerLegal:"price-legal",planType:"price-plan-type"},pt={...ae,planTypeLabel:"planTypeLabel"};function Ws(e,{perUnitLabel:t,taxInclusivityLabel:r,planTypeLabel:n},i={}){let o="";return o+=I(Fe.unitType,t,null,!0),t&&(r||n)&&(o+=" ("),r&&n&&(r+=". "),o+=I(Fe.taxInclusivity,r,!0),o+=I(Fe.planType,n,null),t&&(r||n)&&(o+=")"),I(e,o,{...i})}var ci=({country:e,displayPerUnit:t=!1,displayTax:r=!1,displayPlanType:n=!1,language:i,literals:o={}}={},{taxDisplay:s,taxTerm:a,planType:l}={},c={})=>{let u={...vr,...o},f=`${i.toLowerCase()}-${e.toUpperCase()}`,h="";x(t)&&(h=ee(u,f,pt.perUnitLabel,{perUnit:"LICENSE"}));let p="";e==="US"&&i==="en"&&(r=!1),x(r)&&a&&(p=ee(u,f,s===Cr?pt.taxExclusiveLabel:pt.taxInclusiveLabel,{taxTerm:a}));let d="";x(n)&&l&&(d=ee(u,f,pt.planTypeLabel,{planType:l}));let m=Fe.container;return m+=" "+Fe.containerLegal,Ws(m,{perUnitLabel:h,taxInclusivityLabel:p,planTypeLabel:d},c)};var li=G(),ui=oi(),hi=G({displayOptical:!0}),fi=G({displayStrikethrough:!0}),pi=G({displayAnnual:!0}),mi=G({displayOptical:!0,isAlternativePrice:!0}),di=G({isAlternativePrice:!0}),Ei=ai(),gi=si(),xi=ci;var js=(e,t)=>{if(!(!Le(e)||!Le(t)))return Math.floor((t-e)/t*100)},yi=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,i=js(r,n);return i===void 0?'':`${i}%`};var Ti=yi();var bi=["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","FR_fr","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"],qs={INDIVIDUAL_COM:["ZA_en","LT_lt","LV_lv","NG_en","SA_ar","SA_en","ZA_en","SG_en","KR_ko"],TEAM_COM:["ZA_en","LT_lt","LV_lv","NG_en","ZA_en","CO_es","KR_ko"],INDIVIDUAL_EDU:["LT_lt","LV_lv","SA_en","SG_en"],TEAM_EDU:["SG_en","KR_ko"]},Ve=class Ve extends HTMLSpanElement{constructor(){super();P(this,"masElement",new Se(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-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(r){let n=U();if(!n)return null;let{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:l,displayAnnual:c,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E}=n.collectPriceOptions(r);return rt(Ve,{displayOldPrice:i,displayPerUnit:o,displayRecurrence:s,displayTax:a,displayPlanType:l,displayAnnual:c,forceTaxExclusive:u,perpetual:f,promotionCode:h,quantity:p,alternativePrice:d,template:m,wcsOsi:E})}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}requestUpdate(r=!1){return this.masElement.requestUpdate(r)}resolveDisplayTaxForGeoAndSegment(r,n,i,o){let s=`${r}_${n}`;if(bi.includes(r)||bi.includes(s))return!0;let a=qs[`${i}_${o}`];return a?!!(a.includes(r)||a.includes(s)):!1}async resolveDisplayTax(r,n){let[i]=await r.resolveOfferSelectors(n),o=Oe(await i,n);if(o?.length){let{country:s,language:a}=n,l=o[0],[c=""]=l.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(s,a,l.customerSegment,c)}}async render(r={}){if(!this.isConnected)return!1;let n=U();if(!n)return!1;let i=n.collectPriceOptions(r,this);if(!i.wcsOsi.length)return!1;let o=this.masElement.togglePending(i);this.innerHTML="";let[s]=n.resolveOfferSelectors(i);return this.renderOffers(Oe(await s,i),i,o)}renderOffers(r,n={},i=void 0){if(!this.isConnected)return;let o=U();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 l=a?.querySelectorAll('span[is="inline-price"]');return l.length>1&&l.length===a.querySelectorAll('span[data-template="strikethrough"]').length*2&&l.forEach(c=>{c.dataset.template!=="strikethrough"&&c.options&&!c.options.alternativePrice&&(c.options.alternativePrice=!0,c.innerHTML=o.buildPriceHTML(r,c.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=U();if(!n)return!1;let{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:l,forceTaxExclusive:c,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}=n.collectPriceOptions(r);return nt(this,{alternativePrice:i,displayOldPrice:o,displayPerUnit:s,displayRecurrence:a,displayTax:l,forceTaxExclusive:c,perpetual:u,promotionCode:f,quantity:h,template:p,wcsOsi:d}),!0}};P(Ve,"is","inline-price"),P(Ve,"tag","span");var te=Ve;window.customElements.get(te.is)||window.customElements.define(te.is,te,{extends:te.tag});function _i({literals:e,providers:t,settings:r}){function n(s,a=null){let l=structuredClone(r);if(a)for(let L of t.price)L(a,l);let{displayOldPrice:c,displayPerUnit:u,displayRecurrence:f,displayTax:h,displayPlanType:p,forceTaxExclusive:d,perpetual:m,displayAnnual:E,promotionCode:g,quantity:S,alternativePrice:_,wcsOsi:v,...R}=Object.assign(l,a?.dataset??{},s??{});return Object.assign(l,Ne({...R,displayOldPrice:x(c),displayPerUnit:x(u),displayRecurrence:x(f),displayTax:x(h),displayPlanType:x(p),forceTaxExclusive:x(d),perpetual:x(m),displayAnnual:x(E),promotionCode:Qe(g).effectivePromoCode,quantity:_e(S,A.quantity),alternativePrice:x(_),wcsOsi:Je(v)})),l}function i(s,a){if(!Array.isArray(s)||!s.length||!a)return"";let{template:l}=a,c;switch(l){case"discount":c=Ti;break;case"strikethrough":c=fi;break;case"annual":c=pi;break;case"legal":c=xi;break;default:a.template==="optical"&&a.alternativePrice?c=mi:a.template==="optical"?c=hi:a.displayAnnual&&s[0].planType==="ABM"?c=a.promotionCode?gi:Ei:a.alternativePrice?c=di:c=a.promotionCode?ui:li}let u=n(a);u.literals=Object.assign({},e.price,Ne(a.literals??{}));let[f]=s;return f={...f,...f.priceDetails},c(u,f)}let o=te.createInlinePrice;return{InlinePrice:te,buildPriceHTML:i,collectPriceOptions:n,createInlinePrice:o}}function Xs({locale:e=void 0,country:t=void 0,language:r=void 0}={}){return r??(r=e?.split("_")?.[0]||A.language),t??(t=e?.split("_")?.[1]||A.country),e??(e=`${r}_${t}`),{locale:e,country:t,language:r}}function Ai(e={}){let{commerce:t={}}=e,r=Z.PRODUCTION,n=Bt,i=w("checkoutClientId",t)??A.checkoutClientId,o=he(w("checkoutWorkflow",t),X,A.checkoutWorkflow),s=H.CHECKOUT;o===X.V3&&(s=he(w("checkoutWorkflowStep",t),H,A.checkoutWorkflowStep));let a=x(w("displayOldPrice",t),A.displayOldPrice),l=x(w("displayPerUnit",t),A.displayPerUnit),c=x(w("displayRecurrence",t),A.displayRecurrence),u=x(w("displayTax",t),A.displayTax),f=x(w("displayPlanType",t),A.displayPlanType),h=x(w("entitlement",t),A.entitlement),p=x(w("modal",t),A.modal),d=x(w("forceTaxExclusive",t),A.forceTaxExclusive),m=w("promotionCode",t)??A.promotionCode,E=_e(w("quantity",t)),g=w("wcsApiKey",t)??A.wcsApiKey,S=t?.env==="stage",_=se.PUBLISHED;["true",""].includes(t.allowOverride)&&(S=(w(Ht,t,{metadata:!1})?.toLowerCase()??t?.env)==="stage",_=he(w(Dt,t),se,_)),S&&(r=Z.STAGE,n=Ut);let R=w("mas-io-url")??e.masIOUrl??`https://www${r===Z.STAGE?".stage":""}.adobe.com/mas/io`;return{...Xs(e),displayOldPrice:a,checkoutClientId:i,checkoutWorkflow:o,checkoutWorkflowStep:s,displayPerUnit:l,displayRecurrence:c,displayTax:u,displayPlanType:f,entitlement:h,extraOptions:A.extraOptions,modal:p,env:r,forceTaxExclusive:d,promotionCode:m,quantity:E,alternativePrice:A.alternativePrice,wcsApiKey:g,wcsURL:n,landscape:_,masIOUrl:R}}async function Si(e,t={},r=2,n=100){let i;for(let o=0;o<=r;o++)try{return await fetch(e,t)}catch(s){if(i=s,o>r)break;await new Promise(a=>setTimeout(a,n*(o+1)))}throw i}var Rr="wcs";function Pi({settings:e}){let t=W.module(Rr),{env:r,wcsApiKey:n}=e,i=new Map,o=new Map,s,a=new Map;async function l(h,p,d=!0){let m=U(),E=Nt;t.debug("Fetching:",h);let g="",S;if(h.offerSelectorIds.length>1)throw new Error("Multiple OSIs are not supported anymore");let _=new Map(p),[v]=h.offerSelectorIds,R=Date.now()+Math.random().toString(36).substring(2,7),L=`${Rr}:${v}:${R}${Ft}`,k=`${Rr}:${v}:${R}${Vt}`,O,M;try{if(performance.mark(L),g=new URL(e.wcsURL),g.searchParams.set("offer_selector_ids",v),g.searchParams.set("country",h.country),g.searchParams.set("locale",h.locale),g.searchParams.set("landscape",r===Z.STAGE?"ALL":e.landscape),g.searchParams.set("api_key",n),h.language&&g.searchParams.set("language",h.language),h.promotionCode&&g.searchParams.set("promotion_code",h.promotionCode),h.currency&&g.searchParams.set("currency",h.currency),S=await Si(g.toString(),{credentials:"omit"}),S.ok){let B=[];try{let V=await S.json();t.debug("Fetched:",h,V),B=V.resolvedOffers??[]}catch(V){t.error(`Error parsing JSON: ${V.message}`,{...V.context,...m?.duration})}B=B.map(rr),p.forEach(({resolve:V},ge)=>{let ne=B.filter(({offerSelectorIds:le})=>le.includes(ge)).flat();ne.length&&(_.delete(ge),p.delete(ge),V(ne))})}else E=Lt}catch(B){E=`Network error: ${B.message}`}finally{({startTime:O,duration:M}=performance.measure(k,L)),performance.clearMarks(L),performance.clearMeasures(k)}d&&p.size&&(t.debug("Missing:",{offerSelectorIds:[...p.keys()]}),p.forEach(B=>{B.reject(new Ae(E,{...h,response:S,startTime:O,duration:M,...m?.duration}))}))}function c(){clearTimeout(s);let h=[...o.values()];o.clear(),h.forEach(({options:p,promises:d})=>l(p,d))}function u(){let h=i.size;a=new Map(i),i.clear(),t.debug(`Moved ${h} cache entries to stale cache`)}function f({country:h,language:p,perpetual:d=!1,promotionCode:m="",wcsOsi:E=[]}){let g=`${p}_${h}`;h!=="GB"&&(p=d?"EN":"MULT");let S=[h,p,m].filter(_=>_).join("-").toLowerCase();return E.map(_=>{let v=`${_}-${S}`;if(i.has(v))return i.get(v);let R=new Promise((L,k)=>{let O=o.get(S);if(!O){let M={country:h,locale:g,offerSelectorIds:[]};h!=="GB"&&(M.language=p),O={options:M,promises:new Map},o.set(S,O)}m&&(O.options.promotionCode=m),O.options.offerSelectorIds.push(_),O.promises.set(_,{resolve:L,reject:k}),c()}).catch(L=>{if(a.has(v))return a.get(v);throw L});return i.set(v,R),R})}return{Commitment:ue,PlanType:Zr,Term:$,applyPlanType:rr,resolveOfferSelectors:f,flushWcsCacheInternal:u}}var vi="mas-commerce-service",Ci="mas:start",Ri="mas:ready",wi="mas-commerce-service:initTime",$e,mt,Li,wr=class extends HTMLElement{constructor(){super(...arguments);q(this,mt);q(this,$e);P(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=j(this,mt,Li),n=Ai(r);et(r.lana);let i=W.init(r.hostEnv).module("service");i.debug("Activating:",r);let s={price:yn(n)},a={checkout:new Set,price:new Set},l={literals:s,providers:a,settings:n};Object.defineProperties(this,Object.getOwnPropertyDescriptors({...En(l),...gn(l),..._i(l),...Pi(l),...$t,Log:W,get defaults(){return A},get log(){return W},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 c=new CustomEvent(qe,{bubbles:!0,cancelable:!1,detail:this});performance.mark(Ri),ie(this,$e,performance.measure(wi,Ci,Ri)?.duration),this.dispatchEvent(c),setTimeout(()=>{this.logFailedRequests()},1e4)}connectedCallback(){performance.mark(Ci),this.activate()}flushWcsCache(){this.flushWcsCacheInternal(),this.log.debug("Flushed WCS cache")}refreshOffers(){this.flushWcsCacheInternal(),document.querySelectorAll(Tt).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{[wi]:j(this,$e)}}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)}};$e=new WeakMap,mt=new WeakSet,Li=function(){let r=this.getAttribute("env")??"prod",n={hostEnv:{name:r},commerce:{env: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"].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(vi)||window.customElements.define(vi,wr);var Oi="merch-card-collection",Ks=1e4,re={alphabetical:"alphabetical",authored:"authored"},Qs={catalog:["four-merch-cards"],plans:["four-merch-cards"]},Zs={filters:["noResultText","resultText","resultsText"],mobile:["noSearchResultsMobileText","searchResultMobileText","searchResultsMobileText"],desktop:["noSearchResultsText","searchResultText","searchResultsText"]},Ni=(e,t={})=>{e.querySelectorAll("span[data-placeholder]").forEach(r=>{let{placeholder:n}=r.dataset;r.innerText=t[n]??""})},Js=(e,{filter:t})=>e.filter(r=>r.filters.hasOwnProperty(t)),ea=(e,{types:t})=>t?(t=t.split(","),e.filter(r=>t.some(n=>r.types.includes(n)))):e,ta=e=>e.sort((t,r)=>(t.title??"").localeCompare(r.title??"","en",{sensitivity:"base"})),ra=(e,{filter:t})=>e.sort((r,n)=>n.filters[t]?.order==null||isNaN(n.filters[t]?.order)?-1:r.filters[t]?.order==null||isNaN(r.filters[t]?.order)?1:r.filters[t].order-n.filters[t].order),na=(e,{search:t})=>t?.length?(t=t.toLowerCase(),e.filter(r=>(r.title??"").toLowerCase().includes(t))):e,Ee,Ye,We,dt,Ii,ve=class extends zs{constructor(){super();q(this,dt);q(this,Ee,{});q(this,Ye);q(this,We);P(this,"mobileAndTablet",new je(this,kr));this.filter="all",this.hasMore=!1,this.resultCount=void 0,this.displayResult=!1,this.data=null,this.variant=null,this.hydrating=!1,this.hydrationReady=null}render(){return ce`${this.header} - ${this.footer}`}checkReady(){let r=this.querySelector("aem-fragment");if(!r)return Promise.resolve(!0);let n=new Promise(o=>setTimeout(()=>o(!1),Ks)),i=async()=>(await r.updateComplete,await this.hydrationReady,!0);return Promise.race([i(),n])}updated(r){if(!this.querySelector("merch-card"))return;let n=window.scrollY||document.documentElement.scrollTop,i=[...this.children].filter(c=>c.tagName==="MERCH-CARD");if(i.length===0)return;r.has("singleApp")&&this.singleApp&&i.forEach(c=>{c.updateFilters(c.name===this.singleApp)});let o=this.sort===re.alphabetical?ta:ra,a=[Js,ea,na,o].reduce((c,u)=>u(c,this),i).map((c,u)=>[c,u]);if(this.resultCount=a.length,this.page&&this.limit){let c=this.page*this.limit;this.hasMore=a.length>c,a=a.filter(([,u])=>u{l.has(c)?(c.size=c.filters[this.filter]?.size,c.style.removeProperty("display"),c.requestUpdate()):(c.style.display="none",c.size=void 0)}),window.scrollTo(0,n),this.updateComplete.then(()=>{let c=this.shadowRoot.getElementById("resultText")?.firstElementChild?.assignedElements?.()?.[0];c&&(this.sidenav?.filters?.addEventListener(At,()=>{Ni(c,{resultCount:this.resultCount,searchTerm:this.search,filter:this.sidenav?.filters.selectedText})}),Ni(c,{resultCount:this.resultCount,searchTerm:this.search,filter:this.sidenav?.filters.selectedText}))})}buildOverrideMap(){ie(this,Ee,{}),this.overrides?.split(",").forEach(r=>{let[n,i]=r?.split(":");n&&i&&(j(this,Ee)[n]=i)})}connectedCallback(){super.connectedCallback(),ie(this,Ye,Yr()),ie(this,We,j(this,Ye).Log.module(Oi)),this.buildOverrideMap(),this.init()}async init(){await this.hydrate(),this.sidenav=document.querySelector("merch-sidenav"),this.filtered?(this.filter=this.filtered,this.page=1):this.startDeeplink()}disconnectedCallback(){super.disconnectedCallback(),this.stopDeeplink?.()}async hydrate(){if(this.hydrating)return!1;let r=this.querySelector("aem-fragment");if(!r)return;this.hydrating=!0;let n;this.hydrationReady=new Promise(s=>{n=s});let i=this;function o(s,a){let l={cards:[],hierarchy:[],placeholders:s.placeholders};function c(u,f){for(let h of f){if(h.fieldName==="cards"){if(l.cards.findIndex(m=>m.id===h.identifier)!==-1)continue;l.cards.push(s.references[h.identifier].value);continue}let{fields:p}=s.references[h.identifier].value,d={label:p.label,icon:p.icon,cards:p.cards.map(m=>a[m]||m),collections:[]};u.push(d),c(d.collections,h.referencesTree)}}return c(l.hierarchy,s.referencesTree),l.hierarchy.length===0&&(i.filtered="all"),l}r.addEventListener(Pt,s=>{Mr(this,dt,Ii).call(this,"Error loading AEM fragment",s.detail),this.hydrating=!1,r.remove()}),r.addEventListener(St,async s=>{this.data=o(s.detail,j(this,Ee));let{cards:a,hierarchy:l}=this.data;r.cache.add(...a);for(let u of a){let p=function(m){for(let E of m){let g=E.cards.indexOf(h);if(g===-1)continue;let A=E.label.toLowerCase();f.filters[A]={order:g+1,size:u.fields.size},p(E.collections)}},f=document.createElement("merch-card"),h=j(this,Ee)[u.id]||u.id;f.setAttribute("consonant",""),f.setAttribute("style",""),p(l);let d=document.createElement("aem-fragment");d.setAttribute("fragment",h),f.append(d),Object.keys(f.filters).length===0&&(f.filters={all:{order:a.indexOf(u)+1,size:u.fields.size}}),this.append(f)}let c=a[0]?.fields.variant;this.variant=c,this.classList.add("merch-card-collection",c,...Qs[c]||[]),this.displayResult=!0,this.hydrating=!1,r.remove(),n()}),await this.hydrationReady}get header(){if(!this.filtered)return ce`