diff --git a/libs/deps/mas/mas.js b/libs/deps/mas/mas.js index b6fd96d317..6a240227b7 100644 --- a/libs/deps/mas/mas.js +++ b/libs/deps/mas/mas.js @@ -1,8 +1,8 @@ -var to=Object.defineProperty;var ro=e=>{throw TypeError(e)};var ms=(e,t,r)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var us=(e,t)=>{for(var r in t)to(e,r,{get:t[r],enumerable:!0})};var C=(e,t,r)=>ms(e,typeof t!="symbol"?t+"":t,r),no=(e,t,r)=>t.has(e)||ro("Cannot "+r);var $=(e,t,r)=>(no(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?ro("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ne=(e,t,r,n)=>(no(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var nt;(function(e){e.ServerError="ServerError",e.ClientError="ClientError",e.UnexpectedError="UnexpectedError"})(nt||(nt={}));var oo=(e,t,r)=>({type:(o=>o>=500?nt.ServerError:o<400?nt.UnexpectedError:nt.ClientError)(e),message:t,originatingRequest:r,status:e});var ps=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{h(n.next(l))}catch(d){s(d)}}function c(l){try{h(n.throw(l))}catch(d){s(d)}}function h(l){l.done?i(l.value):o(l.value).then(a,c)}h((n=n.apply(e,t||[])).next())})},Ot;(function(e){e.AUTHORIZATION="Authorization",e.X_API_KEY="X-Api-Key"})(Ot||(Ot={}));var wr=class{constructor(t){this.fetchOptions=t}commonHeaders(){let t={};return this.fetchOptions.apiKey&&(t[Ot.X_API_KEY]=this.fetchOptions.apiKey),this.fetchOptions.accessToken&&(t[Ot.AUTHORIZATION]=`Bearer ${this.fetchOptions.accessToken}`),t}transformData(t,r){return r?t.map(n=>r(n)):t.map(n=>this.identifyTransform(n))}transformDatum(t,r){return r?r(t):this.identifyTransform(t)}identifyTransform(t){return t}failOnBadStatusOrParseBody(t,r){return ps(this,void 0,void 0,function*(){if(t.ok)return t.json().then(o=>({headers:t.headers,status:t.status,statusText:t.statusText,data:o}));let n=yield t.text();return Promise.reject(oo(t.status,n,r))})}buildUrl(t,r,n,o,i){var s;let a=(s=this.fetchOptions.baseUrl)!==null&&s!==void 0?s:o(this.fetchOptions.env),c=i(r,n);return this.generateUrl(a,t,c)}generateUrl(t,r,n){let o=new URL(r,t);return n&&(o.search=this.convertToSearchParams(n).toString()),o.toString()}convertToSearchParams(t){return new URLSearchParams(t)}setParams(t,r,n){n!=null&&typeof n=="boolean"?t[r]=String(n):n&&(t[r]=n)}},Sr=wr;var K;(function(e){e.STAGE="STAGE",e.PRODUCTION="PRODUCTION",e.LOCAL="LOCAL"})(K||(K={}));var ot;(function(e){e.STAGE="STAGE",e.PRODUCTION="PROD",e.LOCAL="LOCAL"})(ot||(ot={}));var q;(function(e){e.DRAFT="DRAFT",e.PUBLISHED="PUBLISHED"})(q||(q={}));var Te;(function(e){e.V2="UCv2",e.V3="UCv3"})(Te||(Te={}));var ee;(function(e){e.CHECKOUT="checkout",e.CHECKOUT_EMAIL="checkout/email",e.SEGMENTATION="segmentation",e.BUNDLE="bundle",e.COMMITMENT="commitment",e.RECOMMENDATION="recommendation",e.EMAIL="email",e.PAYMENT="payment",e.CHANGE_PLAN_TEAM_PLANS="change-plan/team-upgrade/plans",e.CHANGE_PLAN_TEAM_PAYMENT="change-plan/team-upgrade/payment"})(ee||(ee={}));var Ar=function(e){var t;return(t=fs.get(e))!==null&&t!==void 0?t:e},fs=new Map([["countrySpecific","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"]]);var io=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},so=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i};function He(e,t,r){var n,o;try{for(var i=io(Object.entries(e)),s=i.next();!s.done;s=i.next()){var a=so(s.value,2),c=a[0],h=a[1],l=Ar(c);h!=null&&r.has(l)&&t.set(l,h)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}function Lt(e){switch(e){case K.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Nt(e,t){var r,n;for(var o in e){var i=e[o];try{for(var s=(r=void 0,io(Object.entries(i))),a=s.next();!a.done;a=s.next()){var c=so(a.value,2),h=c[0],l=c[1];if(l!=null){var d=Ar(h);t.set("items["+o+"]["+d+"]",l)}}}catch(m){r={error:m}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}}var gs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ao(e){Es(e);var t=e.env,r=e.items,n=e.workflowStep,o=gs(e,["env","items","workflowStep"]),i=new URL(Lt(t));return i.pathname=n+"/",Nt(r,i.searchParams),He(o,i.searchParams,vs),i.toString()}var vs=new Set(["cli","co","lang","ctx","cUrl","mv","nglwfdata","otac","promoid","rUrl","sdid","spint","trackingid","code","campaignid","appctxid"]),ys=["env","workflowStep","clientId","country","items"];function Es(e){var t,r;try{for(var n=xs(ys),o=n.next();!o.done;o=n.next()){var i=o.value;if(!e[i])throw new Error('Argument "checkoutData" is not valid, missing: '+i)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!0}var bs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ws="p_draft_landscape",Ss="/store/";function Pr(e){Ts(e);var t=e.env,r=e.items,n=e.workflowStep,o=e.ms,i=e.marketSegment,s=e.ot,a=e.offerType,c=e.pa,h=e.productArrangementCode,l=e.landscape,d=bs(e,["env","items","workflowStep","ms","marketSegment","ot","offerType","pa","productArrangementCode","landscape"]),m={marketSegment:i??o,offerType:a??s,productArrangementCode:h??c},p=new URL(Lt(t));return p.pathname=""+Ss+n,n!==ee.SEGMENTATION&&n!==ee.CHANGE_PLAN_TEAM_PLANS&&Nt(r,p.searchParams),n===ee.SEGMENTATION&&He(m,p.searchParams,Tr),He(d,p.searchParams,Tr),l===q.DRAFT&&He({af:ws},p.searchParams,Tr),p.toString()}var Tr=new Set(["af","ai","apc","appctxid","cli","co","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"]),As=["env","workflowStep","clientId","country"];function Ts(e){var t,r;try{for(var n=_s(As),o=n.next();!o.done;o=n.next()){var i=o.value;if(!e[i])throw new Error('Argument "checkoutData" is not valid, missing: '+i)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}if(e.workflowStep!==ee.SEGMENTATION&&e.workflowStep!==ee.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}function Cr(e,t){switch(e){case Te.V2:return ao(t);case Te.V3:return Pr(t);default:return console.warn("Unsupported CheckoutType, will use UCv3 as default. Given type: "+e),Pr(t)}}var Or;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Or||(Or={}));var k;(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"})(k||(k={}));var N;(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"})(N||(N={}));var Lr;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Lr||(Lr={}));var Nr;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Nr||(Nr={}));var Rr;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Rr||(Rr={}));var $r;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})($r||($r={}));var Ir=()=>{};Ir.createContext=Ir;var Ps=q.PUBLISHED,co=e=>{switch(e){case K.PRODUCTION:return"https://wcs.adobe.io";case K.STAGE:return"https://wcs-stage.adobe.io";case K.LOCAL:return"http://localhost:3002";default:return"https://wcs-stage.adobe.io"}},lo=(e,t)=>{var r;return e.api_key=t.apiKey,e.landscape=(r=t.landscape)!==null&&r!==void 0?r:Ps,e};var Cs=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{h(n.next(l))}catch(d){s(d)}}function c(l){try{h(n.throw(l))}catch(d){s(d)}}function h(l){l.done?i(l.value):o(l.value).then(a,c)}h((n=n.apply(e,t||[])).next())})},kr=class extends Sr{constructor(t){super(t),this.apiPaths={getWebCommerceArtifact:"web_commerce_artifact"},this.getWebCommerceArtifact=(r,n,o,i)=>Cs(this,void 0,void 0,function*(){let s=this.buildUrl(this.apiPaths.getWebCommerceArtifact,n,r,a=>co(a),(a,c)=>this.evaluateGetWebCommerceArtifactParams(a,c));return this.fetchOptions.fetch(s,{signal:i,headers:Object.assign({},this.commonHeaders()),mode:"cors"}).then(a=>this.failOnBadStatusOrParseBody(a,`GET ${s}`)).then(a=>{let h=a.data;return{data:this.transformDatum(h,o)}})})}evaluateGetWebCommerceArtifactParams(t,r){let n={};return this.setParams(n,"offer_selector_ids",r.offerSelectorIds.join(",")),this.setParams(n,"country",r.country),this.setParams(n,"language",r.language),this.setParams(n,"currency",r.currency),this.setParams(n,"locale",r.locale),this.setParams(n,"promotion_code",r.promotionCode),lo(n,t)}},ho=kr;var Rt=e=>new ho(e).getWebCommerceArtifact;var mo="tacocat.js";var $t=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),uo=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function O(e,t={},{metadata:r=!0,search:n=!0,storage:o=!0}={}){let i;if(n&&i==null){let s=new URLSearchParams(window.location.search),a=Ve(n)?n:e;i=s.get(a)}if(o&&i==null){let s=Ve(o)?o:e;i=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&i==null){let s=go(Ve(r)?r:e);i=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return i??t[e]}var je=()=>{};var po=e=>typeof e=="boolean",ve=e=>typeof e=="function",It=e=>typeof e=="number",fo=e=>e!=null&&typeof e=="object";var Ve=e=>typeof e=="string",Mr=e=>Ve(e)&&e,Be=e=>It(e)&&Number.isFinite(e)&&e>0;function We(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function b(e,t){if(po(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function de(e,t,r){let n=Object.values(t);return n.find(o=>$t(o,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 qe(e,t=1){return It(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Os=Date.now(),Ur=()=>`(+${Date.now()-Os}ms)`,kt=new Set,Ls=b(O("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function xo(e){let t=`[${mo}/${e}]`,r=(s,a,...c)=>s?!0:(o(a,...c),!1),n=Ls?(s,...a)=>{console.debug(`${t} ${s}`,...a,Ur())}:()=>{},o=(s,...a)=>{let c=`${t} ${s}`;kt.forEach(([h])=>h(c,...a))};return{assert:r,debug:n,error:o,warn:(s,...a)=>{let c=`${t} ${s}`;kt.forEach(([,h])=>h(c,...a))}}}function Ns(e,t){let r=[e,t];return kt.add(r),()=>{kt.delete(r)}}Ns((e,...t)=>{console.error(e,...t,Ur())},(e,...t)=>{console.warn(e,...t,Ur())});var Rs="no promo",vo="promo-tag",$s="yellow",Is="neutral",ks=(e,t,r)=>{let n=i=>i||Rs,o=r?` (was "${n(t)}")`:"";return`${n(e)}${o}`},Ms="cancel-context",it=(e,t)=>{let r=e===Ms,n=!r&&e?.length>0,o=(n||r)&&(t&&t!=e||!t&&!r),i=o&&n||!o&&!!t,s=i?e||t:void 0;return{effectivePromoCode:s,overridenPromoCode:e,className:i?vo:`${vo} no-promo`,text:ks(s,t,o),variant:i?$s:Is,isOverriden:o}};var Dr=function(e,t){return Dr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Dr(e,t)};function st(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dr(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,o=arguments.length;n0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Fs,function(a,c,h,l,d,m){if(c)t.minimumIntegerDigits=h.length;else{if(l&&d)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Co.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(wo.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(wo,function(a,c,h,l,d,m){return h==="*"?t.minimumFractionDigits=c.length:l&&l[0]==="#"?t.maximumFractionDigits=l.length:d&&m?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+m.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""}),o.options.length&&(t=_(_({},t),So(o.options[0])));continue}if(Po.test(o.stem)){t=_(_({},t),So(o.stem));continue}var i=Oo(o.stem);i&&(t=_(_({},t),i));var s=zs(o.stem);s&&(t=_(_({},t),s))}return t}var Gr,Gs=new RegExp("^"+zr.source+"*"),Hs=new RegExp(zr.source+"*$");function y(e,t){return{start:e,end:t}}var Vs=!!String.prototype.startsWith,js=!!String.fromCodePoint,Bs=!!Object.fromEntries,Ws=!!String.prototype.codePointAt,qs=!!String.prototype.trimStart,Ys=!!String.prototype.trimEnd,Xs=!!Number.isSafeInteger,Zs=Xs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Vr=!0;try{No=ko("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Vr=((Gr=No.exec("a"))===null||Gr===void 0?void 0:Gr[0])==="a"}catch{Vr=!1}var No,Ro=Vs?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},jr=js?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(s=t[i++],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},$o=Bs?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Js=qs?function(t){return t.trimStart()}:function(t){return t.replace(Gs,"")},Qs=Ys?function(t){return t.trimEnd()}:function(t){return t.replace(Hs,"")};function ko(e,t){return new RegExp(e,t)}var Br;Vr?(Hr=ko("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Br=function(t,r){var n;Hr.lastIndex=r;var o=Hr.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):Br=function(t,r){for(var n=[];;){var o=Io(t,r);if(o===void 0||Uo(o)||ta(o))break;n.push(o),r+=o>=65536?2:1}return jr.apply(void 0,n)};var Hr,Mo=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.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,n);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:P.pound,location:y(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,y(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Wr(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<"+o+"/>",location:y(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:P.tag,value:o,children:s,location:y(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,y(a,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,y(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,y(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ea(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var c=y(n,this.clonePosition());return{val:{type:P.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ks(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 jr.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(),jr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,y(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(v.MALFORMED_ARGUMENT,y(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:o,location:y(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(v.MALFORMED_ARGUMENT,y(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Br(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),s=y(t,i);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,y(s,c));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Qs(d.val);if(m.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,y(this.clonePosition(),this.clonePosition()));var p=y(l,this.clonePosition());h={style:m,styleLocation:p}}var f=this.tryParseArgumentClose(o);if(f.err)return f;var g=y(o,this.clonePosition());if(h&&Ro(h?.style,"::",0)){var A=Js(h.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(A,h.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:g,style:d.val},err:null}}else{if(A.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,g);var m={type:Pe.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?bo(A):{}},R=a==="date"?P.date:P.time;return{val:{type:R,value:n,location:g,style:m},err:null}}}return{val:{type:a==="number"?P.number:a==="date"?P.date:P.time,value:n,location:g,style:(i=h?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,y(T,_({},T)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),S=this.parseIdentifierIfPossible(),L=d.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,S);if(E.err)return E;var f=this.tryParseArgumentClose(o);if(f.err)return f;var I=y(o,this.clonePosition());return a==="select"?{val:{type:P.select,value:n,options:$o(E.val),location:I},err:null}:{val:{type:P.plural,value:n,options:$o(E.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,y(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,y(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=To(t)}catch{return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:Pe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Lo(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,s=!1,a=[],c=new Set,h=o.value,l=o.location;;){if(h.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;l=y(d,this.clonePosition()),h=this.message.slice(d.offset,this.offset())}else break}if(c.has(h))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);h==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,y(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,n);if(f.err)return f;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([h,{value:f.val,location:y(p,this.clonePosition())}]),c.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,l=i.location}return a.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(v.MISSING_OTHER_CLAUSE,y(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var c=y(o,this.clonePosition());return i?(s*=n,Zs(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=Io(this.message,t);if(r===void 0)throw Error("Offset "+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(Ro(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 "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Uo(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 Wr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ks(e){return Wr(e)||e===47}function ea(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 Uo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ta(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 qr(e){e.forEach(function(t){if(delete t.location,zt(t)||Gt(t))for(var r in t.options)delete t.options[r].location,qr(t.options[r].value);else Ut(t)&&Vt(t.style)||(Dt(t)||Ft(t))&&at(t.style)?delete t.style.location:Ht(t)&&qr(t.children)})}function Do(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Mo(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||qr(r.val),r.val}function ct(e,t){var r=t&&t.cache?t.cache:aa,n=t&&t.serializer?t.serializer:sa,o=t&&t.strategy?t.strategy:na;return o(e,{cache:r,serializer:n})}function ra(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Fo(e,t,r,n){var o=ra(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function zo(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Yr(e,t,r,n,o){return r.bind(t,e,n,o)}function na(e,t){var r=e.length===1?Fo:zo;return Yr(e,this,r,t.cache.create(),t.serializer)}function oa(e,t){return Yr(e,this,zo,t.cache.create(),t.serializer)}function ia(e,t){return Yr(e,this,Fo,t.cache.create(),t.serializer)}var sa=function(){return JSON.stringify(arguments)};function Xr(){this.cache=Object.create(null)}Xr.prototype.get=function(e){return this.cache[e]};Xr.prototype.set=function(e,t){this.cache[e]=t};var aa={create:function(){return new Xr}},jt={variadic:oa,monadic:ia};var Ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ce||(Ce={}));var lt=function(e){st(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error);var Zr=function(e){st(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'+r+'": "'+n+'". Options are "'+Object.keys(o).join('", "')+'"',Ce.INVALID_VALUE,i)||this}return t}(lt);var Go=function(e){st(t,e);function t(r,n,o){return e.call(this,'Value for "'+r+'" must be of type '+n,Ce.INVALID_VALUE,o)||this}return t}(lt);var Ho=function(e){st(t,e);function t(r,n){return e.call(this,'The intl string context variable "'+r+'" was not provided to the string "'+n+'"',Ce.MISSING_VALUE,n)||this}return t}(lt);var D;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(D||(D={}));function ca(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 la(e){return typeof e=="function"}function ht(e,t,r,n,o,i,s){if(e.length===1&&Fr(e[0]))return[{type:D.literal,value:e[0].value}];for(var a=[],c=0,h=e;c{throw TypeError(e)};var ms=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var us=(e,t)=>{for(var r in t)ro(e,r,{get:t[r],enumerable:!0})};var C=(e,t,r)=>ms(e,typeof t!="symbol"?t+"":t,r),oo=(e,t,r)=>t.has(e)||no("Cannot "+r);var $=(e,t,r)=>(oo(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?no("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ne=(e,t,r,n)=>(oo(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var nt;(function(e){e.ServerError="ServerError",e.ClientError="ClientError",e.UnexpectedError="UnexpectedError"})(nt||(nt={}));var io=(e,t,r)=>({type:(o=>o>=500?nt.ServerError:o<400?nt.UnexpectedError:nt.ClientError)(e),message:t,originatingRequest:r,status:e});var ps=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{h(n.next(l))}catch(d){s(d)}}function c(l){try{h(n.throw(l))}catch(d){s(d)}}function h(l){l.done?i(l.value):o(l.value).then(a,c)}h((n=n.apply(e,t||[])).next())})},Ot;(function(e){e.AUTHORIZATION="Authorization",e.X_API_KEY="X-Api-Key"})(Ot||(Ot={}));var wr=class{constructor(t){this.fetchOptions=t}commonHeaders(){let t={};return this.fetchOptions.apiKey&&(t[Ot.X_API_KEY]=this.fetchOptions.apiKey),this.fetchOptions.accessToken&&(t[Ot.AUTHORIZATION]=`Bearer ${this.fetchOptions.accessToken}`),t}transformData(t,r){return r?t.map(n=>r(n)):t.map(n=>this.identifyTransform(n))}transformDatum(t,r){return r?r(t):this.identifyTransform(t)}identifyTransform(t){return t}failOnBadStatusOrParseBody(t,r){return ps(this,void 0,void 0,function*(){if(t.ok)return t.json().then(o=>({headers:t.headers,status:t.status,statusText:t.statusText,data:o}));let n=yield t.text();return Promise.reject(io(t.status,n,r))})}buildUrl(t,r,n,o,i){var s;let a=(s=this.fetchOptions.baseUrl)!==null&&s!==void 0?s:o(this.fetchOptions.env),c=i(r,n);return this.generateUrl(a,t,c)}generateUrl(t,r,n){let o=new URL(r,t);return n&&(o.search=this.convertToSearchParams(n).toString()),o.toString()}convertToSearchParams(t){return new URLSearchParams(t)}setParams(t,r,n){n!=null&&typeof n=="boolean"?t[r]=String(n):n&&(t[r]=n)}},Sr=wr;var K;(function(e){e.STAGE="STAGE",e.PRODUCTION="PRODUCTION",e.LOCAL="LOCAL"})(K||(K={}));var ot;(function(e){e.STAGE="STAGE",e.PRODUCTION="PROD",e.LOCAL="LOCAL"})(ot||(ot={}));var q;(function(e){e.DRAFT="DRAFT",e.PUBLISHED="PUBLISHED"})(q||(q={}));var Te;(function(e){e.V2="UCv2",e.V3="UCv3"})(Te||(Te={}));var ee;(function(e){e.CHECKOUT="checkout",e.CHECKOUT_EMAIL="checkout/email",e.SEGMENTATION="segmentation",e.BUNDLE="bundle",e.COMMITMENT="commitment",e.RECOMMENDATION="recommendation",e.EMAIL="email",e.PAYMENT="payment",e.CHANGE_PLAN_TEAM_PLANS="change-plan/team-upgrade/plans",e.CHANGE_PLAN_TEAM_PAYMENT="change-plan/team-upgrade/payment"})(ee||(ee={}));var Ar=function(e){var t;return(t=fs.get(e))!==null&&t!==void 0?t:e},fs=new Map([["countrySpecific","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"]]);var so=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ao=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i};function He(e,t,r){var n,o;try{for(var i=so(Object.entries(e)),s=i.next();!s.done;s=i.next()){var a=ao(s.value,2),c=a[0],h=a[1],l=Ar(c);h!=null&&r.has(l)&&t.set(l,h)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}function Lt(e){switch(e){case K.PRODUCTION:return"https://commerce.adobe.com";default:return"https://commerce-stg.adobe.com"}}function Nt(e,t){var r,n;for(var o in e){var i=e[o];try{for(var s=(r=void 0,so(Object.entries(i))),a=s.next();!a.done;a=s.next()){var c=ao(a.value,2),h=c[0],l=c[1];if(l!=null){var d=Ar(h);t.set("items["+o+"]["+d+"]",l)}}}catch(m){r={error:m}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}}var gs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function co(e){Es(e);var t=e.env,r=e.items,n=e.workflowStep,o=gs(e,["env","items","workflowStep"]),i=new URL(Lt(t));return i.pathname=n+"/",Nt(r,i.searchParams),He(o,i.searchParams,vs),i.toString()}var vs=new Set(["cli","co","lang","ctx","cUrl","mv","nglwfdata","otac","promoid","rUrl","sdid","spint","trackingid","code","campaignid","appctxid"]),ys=["env","workflowStep","clientId","country","items"];function Es(e){var t,r;try{for(var n=xs(ys),o=n.next();!o.done;o=n.next()){var i=o.value;if(!e[i])throw new Error('Argument "checkoutData" is not valid, missing: '+i)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!0}var bs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ws="p_draft_landscape",Ss="/store/";function Pr(e){Ts(e);var t=e.env,r=e.items,n=e.workflowStep,o=e.ms,i=e.marketSegment,s=e.ot,a=e.offerType,c=e.pa,h=e.productArrangementCode,l=e.landscape,d=bs(e,["env","items","workflowStep","ms","marketSegment","ot","offerType","pa","productArrangementCode","landscape"]),m={marketSegment:i??o,offerType:a??s,productArrangementCode:h??c},p=new URL(Lt(t));return p.pathname=""+Ss+n,n!==ee.SEGMENTATION&&n!==ee.CHANGE_PLAN_TEAM_PLANS&&Nt(r,p.searchParams),n===ee.SEGMENTATION&&He(m,p.searchParams,Tr),He(d,p.searchParams,Tr),l===q.DRAFT&&He({af:ws},p.searchParams,Tr),p.toString()}var Tr=new Set(["af","ai","apc","appctxid","cli","co","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"]),As=["env","workflowStep","clientId","country"];function Ts(e){var t,r;try{for(var n=_s(As),o=n.next();!o.done;o=n.next()){var i=o.value;if(!e[i])throw new Error('Argument "checkoutData" is not valid, missing: '+i)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}if(e.workflowStep!==ee.SEGMENTATION&&e.workflowStep!==ee.CHANGE_PLAN_TEAM_PLANS&&!e.items)throw new Error('Argument "checkoutData" is not valid, missing: items');return!0}function Cr(e,t){switch(e){case Te.V2:return co(t);case Te.V3:return Pr(t);default:return console.warn("Unsupported CheckoutType, will use UCv3 as default. Given type: "+e),Pr(t)}}var Or;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Or||(Or={}));var k;(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"})(k||(k={}));var N;(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"})(N||(N={}));var Lr;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(Lr||(Lr={}));var Nr;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(Nr||(Nr={}));var Rr;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(Rr||(Rr={}));var $r;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})($r||($r={}));var Ir=()=>{};Ir.createContext=Ir;var Ps=q.PUBLISHED,lo=e=>{switch(e){case K.PRODUCTION:return"https://wcs.adobe.io";case K.STAGE:return"https://wcs-stage.adobe.io";case K.LOCAL:return"http://localhost:3002";default:return"https://wcs-stage.adobe.io"}},ho=(e,t)=>{var r;return e.api_key=t.apiKey,e.landscape=(r=t.landscape)!==null&&r!==void 0?r:Ps,e};var Cs=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{h(n.next(l))}catch(d){s(d)}}function c(l){try{h(n.throw(l))}catch(d){s(d)}}function h(l){l.done?i(l.value):o(l.value).then(a,c)}h((n=n.apply(e,t||[])).next())})},kr=class extends Sr{constructor(t){super(t),this.apiPaths={getWebCommerceArtifact:"web_commerce_artifact"},this.getWebCommerceArtifact=(r,n,o,i)=>Cs(this,void 0,void 0,function*(){let s=this.buildUrl(this.apiPaths.getWebCommerceArtifact,n,r,a=>lo(a),(a,c)=>this.evaluateGetWebCommerceArtifactParams(a,c));return this.fetchOptions.fetch(s,{signal:i,headers:Object.assign({},this.commonHeaders()),mode:"cors"}).then(a=>this.failOnBadStatusOrParseBody(a,`GET ${s}`)).then(a=>{let h=a.data;return{data:this.transformDatum(h,o)}})})}evaluateGetWebCommerceArtifactParams(t,r){let n={};return this.setParams(n,"offer_selector_ids",r.offerSelectorIds.join(",")),this.setParams(n,"country",r.country),this.setParams(n,"language",r.language),this.setParams(n,"currency",r.currency),this.setParams(n,"locale",r.locale),this.setParams(n,"promotion_code",r.promotionCode),ho(n,t)}},mo=kr;var Rt=e=>new mo(e).getWebCommerceArtifact;var uo="tacocat.js";var $t=(e,t)=>String(e??"").toLowerCase()==String(t??"").toLowerCase(),po=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function O(e,t={},{metadata:r=!0,search:n=!0,storage:o=!0}={}){let i;if(n&&i==null){let s=new URLSearchParams(window.location.search),a=Ve(n)?n:e;i=s.get(a)}if(o&&i==null){let s=Ve(o)?o:e;i=window.sessionStorage.getItem(s)??window.localStorage.getItem(s)}if(r&&i==null){let s=xo(Ve(r)?r:e);i=document.documentElement.querySelector(`meta[name="${s}"]`)?.content}return i??t[e]}var je=()=>{};var fo=e=>typeof e=="boolean",ve=e=>typeof e=="function",It=e=>typeof e=="number",go=e=>e!=null&&typeof e=="object";var Ve=e=>typeof e=="string",Mr=e=>Ve(e)&&e,Be=e=>It(e)&&Number.isFinite(e)&&e>0;function We(e,t=r=>r==null||r===""){return e!=null&&Object.entries(e).forEach(([r,n])=>{t(n)&&delete e[r]}),e}function b(e,t){if(fo(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function de(e,t,r){let n=Object.values(t);return n.find(o=>$t(o,e))??r??n[0]}function xo(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}function qe(e,t=1){return It(e)||(e=Number.parseInt(e,10)),!Number.isNaN(e)&&e>0&&Number.isFinite(e)?e:t}var Os=Date.now(),Ur=()=>`(+${Date.now()-Os}ms)`,kt=new Set,Ls=b(O("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function vo(e){let t=`[${uo}/${e}]`,r=(s,a,...c)=>s?!0:(o(a,...c),!1),n=Ls?(s,...a)=>{console.debug(`${t} ${s}`,...a,Ur())}:()=>{},o=(s,...a)=>{let c=`${t} ${s}`;kt.forEach(([h])=>h(c,...a))};return{assert:r,debug:n,error:o,warn:(s,...a)=>{let c=`${t} ${s}`;kt.forEach(([,h])=>h(c,...a))}}}function Ns(e,t){let r=[e,t];return kt.add(r),()=>{kt.delete(r)}}Ns((e,...t)=>{console.error(e,...t,Ur())},(e,...t)=>{console.warn(e,...t,Ur())});var Rs="no promo",yo="promo-tag",$s="yellow",Is="neutral",ks=(e,t,r)=>{let n=i=>i||Rs,o=r?` (was "${n(t)}")`:"";return`${n(e)}${o}`},Ms="cancel-context",it=(e,t)=>{let r=e===Ms,n=!r&&e?.length>0,o=(n||r)&&(t&&t!=e||!t&&!r),i=o&&n||!o&&!!t,s=i?e||t:void 0;return{effectivePromoCode:s,overridenPromoCode:e,className:i?yo:`${yo} no-promo`,text:ks(s,t,o),variant:i?$s:Is,isOverriden:o}};var Dr=function(e,t){return Dr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Dr(e,t)};function st(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dr(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,o=arguments.length;n0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Fs,function(a,c,h,l,d,m){if(c)t.minimumIntegerDigits=h.length;else{if(l&&d)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Oo.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(So.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(So,function(a,c,h,l,d,m){return h==="*"?t.minimumFractionDigits=c.length:l&&l[0]==="#"?t.maximumFractionDigits=l.length:d&&m?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+m.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""}),o.options.length&&(t=_(_({},t),Ao(o.options[0])));continue}if(Co.test(o.stem)){t=_(_({},t),Ao(o.stem));continue}var i=Lo(o.stem);i&&(t=_(_({},t),i));var s=zs(o.stem);s&&(t=_(_({},t),s))}return t}var Gr,Gs=new RegExp("^"+zr.source+"*"),Hs=new RegExp(zr.source+"*$");function y(e,t){return{start:e,end:t}}var Vs=!!String.prototype.startsWith,js=!!String.fromCodePoint,Bs=!!Object.fromEntries,Ws=!!String.prototype.codePointAt,qs=!!String.prototype.trimStart,Ys=!!String.prototype.trimEnd,Xs=!!Number.isSafeInteger,Zs=Xs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Vr=!0;try{Ro=Mo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Vr=((Gr=Ro.exec("a"))===null||Gr===void 0?void 0:Gr[0])==="a"}catch{Vr=!1}var Ro,$o=Vs?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},jr=js?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(s=t[i++],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},Io=Bs?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Js=qs?function(t){return t.trimStart()}:function(t){return t.replace(Gs,"")},Qs=Ys?function(t){return t.trimEnd()}:function(t){return t.replace(Hs,"")};function Mo(e,t){return new RegExp(e,t)}var Br;Vr?(Hr=Mo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Br=function(t,r){var n;Hr.lastIndex=r;var o=Hr.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):Br=function(t,r){for(var n=[];;){var o=ko(t,r);if(o===void 0||Do(o)||ta(o))break;n.push(o),r+=o>=65536?2:1}return jr.apply(void 0,n)};var Hr,Uo=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.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,n);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:P.pound,location:y(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,y(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Wr(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:P.literal,value:"<"+o+"/>",location:y(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:P.tag,value:o,children:s,location:y(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,y(a,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,y(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,y(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ea(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var c=y(n,this.clonePosition());return{val:{type:P.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ks(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 jr.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(),jr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,y(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(v.MALFORMED_ARGUMENT,y(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:P.argument,value:o,location:y(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(v.MALFORMED_ARGUMENT,y(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Br(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),s=y(t,i);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,y(s,c));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=Qs(d.val);if(m.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,y(this.clonePosition(),this.clonePosition()));var p=y(l,this.clonePosition());h={style:m,styleLocation:p}}var f=this.tryParseArgumentClose(o);if(f.err)return f;var g=y(o,this.clonePosition());if(h&&$o(h?.style,"::",0)){var A=Js(h.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(A,h.styleLocation);return d.err?d:{val:{type:P.number,value:n,location:g,style:d.val},err:null}}else{if(A.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,g);var m={type:Pe.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?_o(A):{}},R=a==="date"?P.date:P.time;return{val:{type:R,value:n,location:g,style:m},err:null}}}return{val:{type:a==="number"?P.number:a==="date"?P.date:P.time,value:n,location:g,style:(i=h?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,y(T,_({},T)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),L=0;if(a!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),S=this.parseIdentifierIfPossible(),L=d.val}var E=this.tryParsePluralOrSelectOptions(t,a,r,S);if(E.err)return E;var f=this.tryParseArgumentClose(o);if(f.err)return f;var I=y(o,this.clonePosition());return a==="select"?{val:{type:P.select,value:n,options:Io(E.val),location:I},err:null}:{val:{type:P.plural,value:n,options:Io(E.val),offset:L,pluralType:a==="plural"?"cardinal":"ordinal",location:I},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,y(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,y(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,y(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Po(t)}catch{return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:Pe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?No(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,s=!1,a=[],c=new Set,h=o.value,l=o.location;;){if(h.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;l=y(d,this.clonePosition()),h=this.message.slice(d.offset,this.offset())}else break}if(c.has(h))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);h==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,y(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,n);if(f.err)return f;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([h,{value:f.val,location:y(p,this.clonePosition())}]),c.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,l=i.location}return a.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(v.MISSING_OTHER_CLAUSE,y(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var c=y(o,this.clonePosition());return i?(s*=n,Zs(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=ko(this.message,t);if(r===void 0)throw Error("Offset "+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($o(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 "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Do(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 Wr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ks(e){return Wr(e)||e===47}function ea(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 Do(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ta(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 qr(e){e.forEach(function(t){if(delete t.location,zt(t)||Gt(t))for(var r in t.options)delete t.options[r].location,qr(t.options[r].value);else Ut(t)&&Vt(t.style)||(Dt(t)||Ft(t))&&at(t.style)?delete t.style.location:Ht(t)&&qr(t.children)})}function Fo(e,t){t===void 0&&(t={}),t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Uo(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||qr(r.val),r.val}function ct(e,t){var r=t&&t.cache?t.cache:aa,n=t&&t.serializer?t.serializer:sa,o=t&&t.strategy?t.strategy:na;return o(e,{cache:r,serializer:n})}function ra(e){return e==null||typeof e=="number"||typeof e=="boolean"}function zo(e,t,r,n){var o=ra(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function Go(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Yr(e,t,r,n,o){return r.bind(t,e,n,o)}function na(e,t){var r=e.length===1?zo:Go;return Yr(e,this,r,t.cache.create(),t.serializer)}function oa(e,t){return Yr(e,this,Go,t.cache.create(),t.serializer)}function ia(e,t){return Yr(e,this,zo,t.cache.create(),t.serializer)}var sa=function(){return JSON.stringify(arguments)};function Xr(){this.cache=Object.create(null)}Xr.prototype.get=function(e){return this.cache[e]};Xr.prototype.set=function(e,t){this.cache[e]=t};var aa={create:function(){return new Xr}},jt={variadic:oa,monadic:ia};var Ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ce||(Ce={}));var lt=function(e){st(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error);var Zr=function(e){st(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'+r+'": "'+n+'". Options are "'+Object.keys(o).join('", "')+'"',Ce.INVALID_VALUE,i)||this}return t}(lt);var Ho=function(e){st(t,e);function t(r,n,o){return e.call(this,'Value for "'+r+'" must be of type '+n,Ce.INVALID_VALUE,o)||this}return t}(lt);var Vo=function(e){st(t,e);function t(r,n){return e.call(this,'The intl string context variable "'+r+'" was not provided to the string "'+n+'"',Ce.MISSING_VALUE,n)||this}return t}(lt);var D;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(D||(D={}));function ca(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 la(e){return typeof e=="function"}function ht(e,t,r,n,o,i,s){if(e.length===1&&Fr(e[0]))return[{type:D.literal,value:e[0].value}];for(var a=[],c=0,h=e;c0?e.substring(0,n):"";let o=Bo(e.split("").reverse().join("")),i=r-o,s=e.substring(i,i+1),a=i+(s==="."||s===","?1:0);t.suffix=o>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(pa);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 ga(e,t,r){let n=!1,o={value:e};e<0&&(n=!0,o.value=-o.value),o.sign=n?"-":"",o.value=Number(o.value).toFixed(t.fraction&&t.fraction.length),o.value=Number(o.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[s="0",a=""]=o.value.split(".");return(!a||a&&a.length<=i)&&(a=i<0?"":(+("0."+a)).toFixed(i+1).replace("0.","")),o.integer=s,o.fraction=a,xa(o,t),(o.result==="0"||o.result==="")&&(n=!1,o.sign=""),!n&&t.maskHasPositiveSign?o.sign="+":n&&t.maskHasPositiveSign?o.sign="-":n&&(o.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),o}function xa(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),o=n&&n.indexOf("0");if(o>-1)for(;e.integer.lengthMath.round(e*20)/20},Qr=(e,t)=>({accept:e,round:t}),_a=[Qr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Qr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.ceil(Math.floor(t*1e4/e)/100)/100),Qr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Kr={[k.YEAR]:{[N.MONTHLY]:dt.MONTH,[N.ANNUAL]:dt.YEAR},[k.MONTH]:{[N.MONTHLY]:dt.MONTH}},wa=(e,t)=>e.indexOf(`'${t}'`)===0,Sa=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Qo(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Ta(e)),r},Aa=e=>{let t=Pa(e),r=wa(e,t),n=e.replace(/'.*?'/,""),o=Xo.test(n)||Zo.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Jo=e=>e.replace(Xo,Yo).replace(Zo,Yo),Ta=e=>e.match(/#(.?)#/)?.[1]===qo?ya:qo,Pa=e=>e.match(/'(.*?)'/)?.[1]??"",Qo=e=>e.match(/0(.?)0/)?.[1]??"";function Bt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=Aa(e),h=r?Qo(e):"",l=Sa(e,r),d=r?2:0,m=i(t,{currencySymbol:s}),p=n?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):Wo(l,m),f=r?p.lastIndexOf(h):p.length,g=p.substring(0,f),A=p.substring(f+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:A,decimalsDelimiter:h,hasCurrencySpace:c,integer:g,isCurrencyFirst:a,recurrenceTerm:o}}var Ko=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=Ea[r]??1;return Bt(e,o>1?dt.MONTH:Kr[t]?.[r],(i,{currencySymbol:s})=>{let a={divisor:o,price:i,usePrecision:n},{round:c}=_a.find(({accept:l})=>l(a));if(!c)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return(ba[s]??(l=>l))(c(a))})},ei=({commitment:e,term:t,...r})=>Bt(r,Kr[e]?.[t]),ti=e=>{let{commitment:t,term:r}=e;return t===k.YEAR&&r===N.MONTHLY?Bt(e,dt.YEAR,n=>n*12):Bt(e,Kr[t]?.[r])};var Ca={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}"},Oa=xo("ConsonantTemplates/price"),La=/<.+?>/g,Y={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",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"},Oe={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},Na="TAX_EXCLUSIVE",Ra=e=>fo(e)?Object.entries(e).filter(([,t])=>Ve(t)||It(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+uo(n)+'"'}`,""):"",oe=(e,t,r,n=!1)=>`${n?Jo(t):t??""}`;function $a(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:o,hasCurrencySpace:i,integer:s,isCurrencyFirst:a,recurrenceLabel:c,perUnitLabel:h,taxInclusivityLabel:l},d={}){let m=oe(Y.currencySymbol,r),p=oe(Y.currencySpace,i?" ":""),f="";return a&&(f+=m+p),f+=oe(Y.integer,s),f+=oe(Y.decimalsDelimiter,o),f+=oe(Y.decimals,n),a||(f+=p+m),f+=oe(Y.recurrence,c,null,!0),f+=oe(Y.unitType,h,null,!0),f+=oe(Y.taxInclusivity,l,!0),oe(e,f,{...d,"aria-label":t})}var Le=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1}={})=>({country:n,displayFormatted:o=!0,displayRecurrence:i=!0,displayPerUnit:s=!1,displayTax:a=!1,language:c,literals:h={}}={},{commitment:l,formatString:d,price:m,priceWithoutDiscount:p,taxDisplay:f,taxTerm:g,term:A,usePrecision:R}={},T={})=>{Object.entries({country:n,formatString:d,language:c,price:m}).forEach(([he,br])=>{if(br==null)throw new Error(`Argument "${he}" is missing`)});let S={...Ca,...h},L=`${c.toLowerCase()}-${n.toUpperCase()}`;function E(he,br){let _r=S[he];if(_r==null)return"";try{return new jo(_r.replace(La,""),L).format(br)}catch{return Oa.error("Failed to format literal:",_r),""}}let I=t&&p?p:m,F=e?Ko:ei;r&&(F=ti);let{accessiblePrice:J,recurrenceTerm:Q,...U}=F({commitment:l,formatString:d,term:A,price:e?m:I,usePrecision:R,isIndianPrice:n==="IN"}),W=J,xe="";if(b(i)&&Q){let he=E(Oe.recurrenceAriaLabel,{recurrenceTerm:Q});he&&(W+=" "+he),xe=E(Oe.recurrenceLabel,{recurrenceTerm:Q})}let Ae="";if(b(s)){Ae=E(Oe.perUnitLabel,{perUnit:"LICENSE"});let he=E(Oe.perUnitAriaLabel,{perUnit:"LICENSE"});he&&(W+=" "+he)}let le="";b(a)&&g&&(le=E(f===Na?Oe.taxExclusiveLabel:Oe.taxInclusiveLabel,{taxTerm:g}),le&&(W+=" "+le)),t&&(W=E(Oe.strikethroughAriaLabel,{strikethroughPrice:W}));let te=Y.container;if(e&&(te+=" "+Y.containerOptical),t&&(te+=" "+Y.containerStrikethrough),r&&(te+=" "+Y.containerAnnual),b(o))return $a(te,{...U,accessibleLabel:W,recurrenceLabel:xe,perUnitLabel:Ae,taxInclusivityLabel:le},T);let{currencySymbol:ze,decimals:Pt,decimalsDelimiter:Ct,hasCurrencySpace:rt,integer:Er,isCurrencyFirst:hs}=U,Ge=[Er,Ct,Pt];hs?(Ge.unshift(rt?"\xA0":""),Ge.unshift(ze)):(Ge.push(rt?"\xA0":""),Ge.push(ze)),Ge.push(xe,Ae,le);let ds=Ge.join("");return oe(te,ds,T)},ri=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||b(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${Le()(e,t,r)}${o?" "+Le({displayStrikethrough:!0})(e,t,r):""}`};var en=Le(),tn=ri(),rn=Le({displayOptical:!0}),nn=Le({displayStrikethrough:!0}),on=Le({displayAnnual:!0});var Ia=(e,t)=>{if(!(!Be(e)||!Be(t)))return Math.floor((t-e)/t*100)},ni=()=>(e,t,r)=>{let{price:n,priceWithoutDiscount:o}=t,i=Ia(n,o);return i===void 0?'':`${i}%`};var sn=ni();var an="ABM",cn="PUF",ln="M2M",hn="PERPETUAL",oi="P3Y",ka="TAX_INCLUSIVE_DETAILS",Ma="TAX_EXCLUSIVE",ii={ABM:an,PUF:cn,M2M:ln,PERPETUAL:hn,P3Y:oi},Eh={[an]:{commitment:k.YEAR,term:N.MONTHLY},[cn]:{commitment:k.YEAR,term:N.ANNUAL},[ln]:{commitment:k.MONTH,term:N.MONTHLY},[hn]:{commitment:k.PERPETUAL,term:void 0},[oi]:{commitment:k.THREE_MONTHS,term:N.P3Y}},si="Value is not an offer",dn=e=>{if(typeof e!="object")return si;let{commitment:t,term:r}=e,n=Ua(t,r);return{...e,planType:n}};var Ua=(e,t)=>{if(e===void 0)return si;if(e===""&&t==="")return"";let r="";return e===k.YEAR?t===N.MONTHLY?r=an:t===N.ANNUAL&&(r=cn):e===k.MONTH?t===N.MONTHLY&&(r=ln):e===k.PERPETUAL&&(r=hn),r};function mn(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:s}=t;if(s!==ka)return e;let a={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Ma}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var{freeze:Ne}=Object,me=Ne({...Te}),ue=Ne({...ee}),X=Ne({...K}),ai=Ne({...k}),mt=Ne({...ot}),ci=Ne({...ii}),li=Ne({...N});var yn={};us(yn,{CLASS_NAME_FAILED:()=>Wt,CLASS_NAME_PENDING:()=>qt,CLASS_NAME_RESOLVED:()=>Yt,ERROR_MESSAGE_BAD_REQUEST:()=>un,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>fn,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>pn,EVENT_TYPE_ERROR:()=>Da,EVENT_TYPE_FAILED:()=>Xt,EVENT_TYPE_PENDING:()=>Zt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>Jt,LOG_NAMESPACE:()=>gn,PARAM_AOS_API_KEY:()=>Fa,PARAM_ENV:()=>xn,PARAM_LANDSCAPE:()=>vn,PARAM_WCS_API_KEY:()=>za,STATE_FAILED:()=>ie,STATE_PENDING:()=>se,STATE_RESOLVED:()=>ae,TAG_NAME_SERVICE:()=>ye});var Wt="placeholder-failed",qt="placeholder-pending",Yt="placeholder-resolved",un="Bad WCS request",pn="Commerce offer not found",fn="Literals URL not provided",Da="wcms:commerce:error",Xt="wcms:placeholder:failed",Zt="wcms:placeholder:pending",Ye="wcms:commerce:ready",Jt="wcms:placeholder:resolved",gn="wcms/commerce",xn="commerce.env",vn="commerce.landscape",Fa="commerce.aosKey",za="commerce.wcsKey",ie="failed",se="pending",ae="resolved",ye="wcms-commerce";var En={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:30,tags:"consumer=milo/commerce"},hi=new Set,Ga=e=>e instanceof Error||typeof e.originatingRequest=="string";function di(e){if(e==null)return;let t=typeof e;if(t==="function"){let{name:r}=e;return r?`${t} ${r}`:t}if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:o,status:i}=e;return[n,i,o].filter(s=>s).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!En.serializableTypes.includes(r))return r}return e}function Ha(e,t){if(!En.ignoredProperties.includes(e))return di(t)}var bn={append(e){let{delimiter:t,sampleRate:r,tags:n,clientId:o}=En,{message:i,params:s}=e,a=[],c=i,h=[];s.forEach(m=>{m!=null&&(Ga(m)?a:h).push(m)}),a.length&&(c+=" ",c+=a.map(di).join(" "));let{pathname:l,search:d}=window.location;c+=`${t}page=`,c+=l+d,h.length&&(c+=`${t}facts=`,c+=JSON.stringify(h,Ha)),hi.has(c)||(hi.add(c),window.lana?.log(c,{sampleRate:r,tags:n,clientId:o}))}};var w=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:me.V3,checkoutWorkflowStep:ue.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,domainSwitch:!1,env:X.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsEnv:mt.PRODUCTION,landscape:q.PUBLISHED,wcsBufferLimit:1});function mi(e,{once:t=!1}={}){let r=null;function n(){let o=document.querySelector(ye);o!==r&&(r=o,o&&e(o))}return document.addEventListener(Ye,n,{once:t}),Ee(n),()=>document.removeEventListener(Ye,n)}function ut(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"||n?"EN":"MULT",[s,a]=e;o=[s.language===i?s:a]}return r&&(o=o.map(mn)),o}var Ee=e=>window.setTimeout(e);function Xe(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(qe).filter(Be);return r.length||(r=[t]),r}function Qt(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Mr)}function H(){return window.customElements.get(ye)?.instance}var Va="en_US",u={ar:"AR_es",be_en:"BE_en",be_fr:"BE_fr",be_nl:"BE_nl",br:"BR_pt",ca:"CA_en",ch_de:"CH_de",ch_fr:"CH_fr",ch_it:"CH_it",cl:"CL_es",co:"CO_es",la:"DO_es",mx:"MX_es",pe:"PE_es",africa:"MU_en",dk:"DK_da",de:"DE_de",ee:"EE_et",eg_ar:"EG_ar",eg_en:"EG_en",es:"ES_es",fr:"FR_fr",gr_el:"GR_el",gr_en:"GR_en",ie:"IE_en",il_he:"IL_iw",it:"IT_it",lv:"LV_lv",lt:"LT_lt",lu_de:"LU_de",lu_en:"LU_en",lu_fr:"LU_fr",my_en:"MY_en",my_ms:"MY_ms",hu:"HU_hu",mt:"MT_en",mena_en:"DZ_en",mena_ar:"DZ_ar",nl:"NL_nl",no:"NO_nb",pl:"PL_pl",pt:"PT_pt",ro:"RO_ro",si:"SI_sl",sk:"SK_sk",fi:"FI_fi",se:"SE_sv",tr:"TR_tr",uk:"GB_en",at:"AT_de",cz:"CZ_cs",bg:"BG_bg",ru:"RU_ru",ua:"UA_uk",au:"AU_en",in_en:"IN_en",in_hi:"IN_hi",id_en:"ID_en",id_id:"ID_in",nz:"NZ_en",sa_ar:"SA_ar",sa_en:"SA_en",sg:"SG_en",cn:"CN_zh-Hans",tw:"TW_zh-Hant",hk_zh:"HK_zh-hant",jp:"JP_ja",kr:"KR_ko",za:"ZA_en",ng:"NG_en",cr:"CR_es",ec:"EC_es",pr:"US_es",gt:"GT_es",cis_en:"AZ_en",cis_ru:"AZ_ru",sea:"SG_en",th_en:"TH_en",th_th:"TH_th"},pe=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});function ja({locale:e={}}={}){if(!e.prefix)return{country:w.country,language:w.language,locale:Va};let t=e.prefix.replace("/","")??"",[r=w.country,n=w.language]=(u[t]??t).split("_",2);return r=r.toUpperCase(),n=n.toLowerCase(),{country:r,language:n,locale:`${n}_${r}`}}function ui(e={}){let{commerce:t={},locale:r=void 0}=e,o=(e.env?.name===pe.PROD?pe.PROD:de(O(xn,t,{metadata:!1}),pe,pe.PROD))===pe.STAGE?X.STAGE:X.PRODUCTION,i=O("checkoutClientId",t)??w.checkoutClientId,s=de(O("checkoutWorkflow",t),me,w.checkoutWorkflow),a=ue.CHECKOUT;s===me.V3&&(a=de(O("checkoutWorkflowStep",t),ue,w.checkoutWorkflowStep));let c=b(O("displayOldPrice",t),w.displayOldPrice),h=b(O("displayPerUnit",t),w.displayPerUnit),l=b(O("displayRecurrence",t),w.displayRecurrence),d=b(O("displayTax",t),w.displayTax),m=b(O("entitlement",t),w.entitlement),p=b(O("modal",t),w.modal),f=b(O("forceTaxExclusive",t),w.forceTaxExclusive),g=O("promotionCode",t)??w.promotionCode,A=Xe(O("quantity",t)),R=O("wcsApiKey",t)??w.wcsApiKey,T=e.env?.name===pe.PROD?q.PUBLISHED:de(O(vn,t),q,w.landscape),S=qe(O("wcsBufferDelay",t),w.wcsBufferDelay),L=qe(O("wcsBufferLimit",t),w.wcsBufferLimit),E=b(O("domain.switch",t),!1);return{...ja({locale:r}),displayOldPrice:c,checkoutClientId:i,checkoutWorkflow:s,checkoutWorkflowStep:a,displayPerUnit:h,displayRecurrence:l,displayTax:d,entitlement:m,extraOptions:w.extraOptions,modal:p,env:o,forceTaxExclusive:f,priceLiteralsURL:t.priceLiteralsURL,priceLiteralsPromise:t.priceLiteralsPromise,promotionCode:g,quantity:A,wcsApiKey:R,wcsBufferDelay:S,wcsBufferLimit:L,wcsEnv:o===X.STAGE?mt.STAGE:mt.PRODUCTION,landscape:T,domainSwitch:E}}var fi="debug",Ba="error",Wa="info",qa="warn",Ya=Date.now(),_n=new Set,wn=new Set,pi=new Map,pt=Object.freeze({DEBUG:fi,ERROR:Ba,INFO:Wa,WARN:qa}),gi={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},xi={filter:({level:e})=>e!==fi},Xa={filter:()=>!1};function Za(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){if(n.length===1){let[i]=n;ve(i)&&(n=i(),Array.isArray(n)||(n=[n]))}return n},source:o,timestamp:Date.now()-Ya}}function Ja(e){[...wn].every(t=>t(e))&&_n.forEach(t=>t(e))}function vi(e){let t=(pi.get(e)??0)+1;pi.set(e,t);let r=`${e} #${t}`,n=i=>(s,...a)=>Ja(Za(i,s,e,a,r)),o=Object.seal({id:r,namespace:e,module(i){return vi(`${o.namespace}/${i}`)},debug:n(pt.DEBUG),error:n(pt.ERROR),info:n(pt.INFO),warn:n(pt.WARN)});return o}function Kt(...e){e.forEach(t=>{let{append:r,filter:n}=t;ve(n)?wn.add(n):ve(r)&&_n.add(r)})}function Qa(e={}){let{name:t}=e,r=b(O("commerce.debug",{search:!0,storage:!0}),t===pe.LOCAL);return Kt(r?gi:xi),t===pe.PROD&&Kt(bn),z}function Ka(){_n.clear(),wn.clear()}var z={...vi(gn),Level:pt,Plugins:{consoleAppender:gi,debugFilter:xi,quietFilter:Xa,lanaAppender:bn},init:Qa,reset:Ka,use:Kt};var ec={CLASS_NAME_FAILED:Wt,CLASS_NAME_PENDING:qt,CLASS_NAME_RESOLVED:Yt,EVENT_TYPE_FAILED:Xt,EVENT_TYPE_PENDING:Zt,EVENT_TYPE_RESOLVED:Jt,STATE_FAILED:ie,STATE_PENDING:se,STATE_RESOLVED:ae},tc={[ie]:Wt,[se]:qt,[ae]:Yt},rc={[ie]:Xt,[se]:Zt,[ae]:Jt},rr=new WeakMap;function V(e){if(!rr.has(e)){let t=z.module(e.constructor.is);rr.set(e,{changes:new Map,connected:!1,dispose:je,error:void 0,log:t,options:void 0,promises:[],state:se,timer:null,value:void 0,version:0})}return rr.get(e)}function er(e){let t=V(e),{error:r,promises:n,state:o}=t;(o===ae||o===ie)&&(t.promises=[],o===ae?n.forEach(({resolve:i})=>i(e)):o===ie&&n.forEach(({reject:i})=>i(r))),e.dispatchEvent(new CustomEvent(rc[o],{bubbles:!0}))}function tr(e){let t=rr.get(e);[ie,se,ae].forEach(r=>{e.classList.toggle(tc[r],r===t.state)})}var nc={get error(){return V(this).error},get log(){return V(this).log},get options(){return V(this).options},get state(){return V(this).state},get value(){return V(this).value},attributeChangedCallback(e,t,r){V(this).changes.set(e,r),this.requestUpdate()},connectedCallback(){V(this).dispose=mi(()=>this.requestUpdate(!0))},disconnectedCallback(){let e=V(this);e.connected&&(e.connected=!1,e.log.debug("Disconnected:",{element:this})),e.dispose(),e.dispose=je},onceSettled(){let{error:e,promises:t,state:r}=V(this);return ae===r?Promise.resolve(this):ie===r?Promise.reject(e):new Promise((n,o)=>{t.push({resolve:n,reject:o})})},toggleResolved(e,t,r){let n=V(this);return e!==n.version?!1:(r!==void 0&&(n.options=r),n.state=ae,n.value=t,tr(this),this.log.debug("Resolved:",{element:this,value:t}),Ee(()=>er(this)),!0)},toggleFailed(e,t,r){let n=V(this);return e!==n.version?!1:(r!==void 0&&(n.options=r),n.error=t,n.state=ie,tr(this),n.log.error("Failed:",{element:this,error:t}),Ee(()=>er(this)),!0)},togglePending(e){let t=V(this);return t.version++,e&&(t.options=e),t.state=se,tr(this),Ee(()=>er(this)),t.version},requestUpdate(e=!1){if(!this.isConnected||!H())return;let t=V(this);if(t.timer)return;let{error:r,options:n,state:o,value:i,version:s}=t;t.state=se,t.timer=Ee(async()=>{t.timer=null;let a=null;if(t.changes.size&&(a=Object.fromEntries(t.changes.entries()),t.changes.clear()),t.connected?t.log.debug("Updated:",{element:this,changes:a}):(t.connected=!0,t.log.debug("Connected:",{element:this,changes:a})),a||e)try{await this.render?.()===!1&&t.state===se&&t.version===s&&(t.state=o,t.error=r,t.value=i,tr(this),er(this))}catch(c){this.toggleFailed(t.version,c,n)}})}};function yi(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function nr(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,yi(t)),o}function or(e){let{tag:t,is:r,prototype:n}=e,o=window.customElements.get(r);return o||(Object.defineProperties(n,Object.getOwnPropertyDescriptors(nc)),o=Object.defineProperties(e,Object.getOwnPropertyDescriptors(ec)),window.customElements.define(r,o,{extends:t})),o}function ir(e,t=document.body){return Array.from(t?.querySelectorAll(`${e.tag}[is="${e.is}"]`)??[])}function sr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,yi(t)),e):null}var oc="download",ic="upgrade",Re,Ze=class Ze extends HTMLAnchorElement{constructor(){super();re(this,Re);this.addEventListener("click",this.clickHandler)}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"]}static createCheckoutLink(r={},n=""){let o=H();if(!o)return null;let{checkoutMarketSegment:i,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:h,modal:l,perpetual:d,promotionCode:m,quantity:p,wcsOsi:f,extraOptions:g}=o.collectCheckoutOptions(r),A=nr(Ze,{checkoutMarketSegment:i,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:h,modal:l,perpetual:d,promotionCode:m,quantity:p,wcsOsi:f,extraOptions:g});return n&&(A.innerHTML=`${n}`),A}static getCheckoutLinks(r){return ir(Ze,r)}get isCheckoutLink(){return!0}get placeholder(){return this}clickHandler(r){var n;(n=$(this,Re))==null||n.call(this,r)}async render(r={}){if(!this.isConnected)return!1;let n=H();if(!n)return!1;this.dataset.imsCountry||n.imsCountryPromise.then(l=>{l&&(this.dataset.imsCountry=l)},je);let o=n.collectCheckoutOptions(r,this.placeholder);if(!o.wcsOsi.length)return!1;let i;try{i=JSON.parse(o.extraOptions??"{}")}catch(l){this.placeholder.log.error("cannot parse exta checkout options",l)}let s=this.placeholder.togglePending(o);this.href="";let a=n.resolveOfferSelectors(o),c=await Promise.all(a);c=c.map(l=>ut(l,o));let h=await n.buildCheckoutAction(c.flat(),{...i,...o});return this.renderOffers(c.flat(),o,{},h,s)}renderOffers(r,n,o={},i=void 0,s=void 0){if(!this.isConnected)return!1;let a=H();if(!a)return!1;if(n={...JSON.parse(this.placeholder.dataset.extraOptions??"null"),...n,...o},s??(s=this.placeholder.togglePending(n)),$(this,Re)&&ne(this,Re,void 0),i){this.classList.remove(oc,ic),this.placeholder.toggleResolved(s,r,n);let{url:h,text:l,className:d,handler:m}=i;return h&&(this.href=h),l&&(this.firstElementChild.innerHTML=l),d&&this.classList.add(...d.split(" ")),m&&(this.setAttribute("href","#"),ne(this,Re,m.bind(this))),!0}else if(r.length){if(this.placeholder.toggleResolved(s,r,n)){let h=a.buildCheckoutURL(r,n);return this.setAttribute("href",h),!0}}else{let h=new Error(`Not provided: ${n?.wcsOsi??"-"}`);if(this.placeholder.toggleFailed(s,h,n))return this.setAttribute("href","#"),!0}return!1}updateOptions(r={}){let n=H();if(!n)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:h,perpetual:l,promotionCode:d,quantity:m,wcsOsi:p}=n.collectCheckoutOptions(r);return sr(this,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:h,perpetual:l,promotionCode:d,quantity:m,wcsOsi:p}),!0}};Re=new WeakMap,C(Ze,"is","checkout-link"),C(Ze,"tag","a");var Sn=Ze,An=or(Sn);var Ei=[u.uk,u.au,u.fr,u.at,u.be_en,u.be_fr,u.be_nl,u.bg,u.ch_de,u.ch_fr,u.ch_it,u.cz,u.de,u.dk,u.ee,u.eg_ar,u.eg_en,u.es,u.fi,u.fr,u.gr_el,u.gr_en,u.hu,u.ie,u.it,u.lu_de,u.lu_en,u.lu_fr,u.nl,u.no,u.pl,u.pt,u.ro,u.se,u.si,u.sk,u.tr,u.ua,u.id_en,u.id_id,u.in_en,u.in_hi,u.jp,u.my_en,u.my_ms,u.nz,u.th_en,u.th_th],sc={INDIVIDUAL_COM:[u.za,u.lt,u.lv,u.ng,u.sa_ar,u.sa_en,u.za,u.sg,u.kr],TEAM_COM:[u.za,u.lt,u.lv,u.ng,u.za,u.co,u.kr],INDIVIDUAL_EDU:[u.lt,u.lv,u.sa_en,u.sea],TEAM_EDU:[u.sea,u.kr]},Je=class Je extends HTMLSpanElement{static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-perpetual","data-promotion-code","data-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(t){let r=H();if(!r)return null;let{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}=r.collectPriceOptions(t);return nr(Je,{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m})}static getInlinePrices(t){return ir(Je,t)}get isInlinePrice(){return!0}get placeholder(){return this}resolveDisplayTaxForGeoAndSegment(t,r,n,o){let i=`${t}_${r}`;if(Ei.includes(t)||Ei.includes(i))return!0;let s=sc[`${n}_${o}`];return s?!!(s.includes(t)||s.includes(i)):!1}async resolveDisplayTax(t,r){let[n]=await t.resolveOfferSelectors(r),o=ut(await n,r);if(o?.length){let{country:i,language:s}=r,a=o[0],[c=""]=a.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(i,s,a.customerSegment,c)}}async render(t={}){if(!this.isConnected)return!1;let r=H();if(!r)return!1;let n=r.collectPriceOptions(t,this.placeholder);if(!n.wcsOsi.length)return!1;let o=this.placeholder.togglePending(n);this.innerHTML="";let[i]=r.resolveOfferSelectors(n);return this.renderOffers(ut(await i,n),n,o)}renderOffers(t,r={},n=void 0){if(!this.isConnected)return;let o=H();if(!o)return!1;let i=o.collectPriceOptions({...this.dataset,...r});if(n??(n=this.placeholder.togglePending(i)),t.length){if(this.placeholder.toggleResolved(n,t,i))return this.innerHTML=o.buildPriceHTML(t,i),!0}else{let s=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.placeholder.toggleFailed(n,s,i))return this.innerHTML="",!0}return!1}updateOptions(t){let r=H();if(!r)return!1;let{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}=r.collectPriceOptions(t);return sr(this,{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}),!0}};C(Je,"is","inline-price"),C(Je,"tag","span");var Tn=Je,Pn=or(Tn);function bi({providers:e,settings:t},r){let n=z.module("checkout");function o(h,l){let{checkoutClientId:d,checkoutWorkflow:m,checkoutWorkflowStep:p,country:f,language:g,promotionCode:A,quantity:R}=t,{checkoutMarketSegment:T,checkoutWorkflow:S=m,checkoutWorkflowStep:L=p,imsCountry:E,country:I=E??f,language:F=g,quantity:J=R,entitlement:Q,upgrade:U,modal:W,perpetual:xe,promotionCode:Ae=A,wcsOsi:le,extraOptions:te,...ze}=Object.assign({},l?.dataset??{},h??{}),Pt=de(S,me,w.checkoutWorkflow),Ct=ue.CHECKOUT;Pt===me.V3&&(Ct=de(L,ue,w.checkoutWorkflowStep));let rt=We({...ze,extraOptions:te,checkoutClientId:d,checkoutMarketSegment:T,country:I,quantity:Xe(J,w.quantity),checkoutWorkflow:Pt,checkoutWorkflowStep:Ct,language:F,entitlement:b(Q),upgrade:b(U),modal:b(W),perpetual:b(xe),promotionCode:it(Ae).effectivePromoCode,wcsOsi:Qt(le)});if(l)for(let Er of e.checkout)Er(l,rt);return rt}async function i(h,l){let d=H(),m=await r.getCheckoutAction?.(h,l,d.imsSignedInPromise);return m||null}function s(h,l){if(!Array.isArray(h)||!h.length||!l)return"";let{env:d,landscape:m}=t,{checkoutClientId:p,checkoutMarketSegment:f,checkoutWorkflow:g,checkoutWorkflowStep:A,country:R,promotionCode:T,quantity:S,...L}=o(l),E=window.frameElement?"if":"fp",I={checkoutPromoCode:T,clientId:p,context:E,country:R,env:d,items:[],marketSegment:f,workflowStep:A,landscape:m,...L};if(h.length===1){let[{offerId:F,offerType:J,productArrangementCode:Q}]=h,{marketSegments:[U]}=h[0];Object.assign(I,{marketSegment:U,offerType:J,productArrangementCode:Q}),I.items.push(S[0]===1?{id:F}:{id:F,quantity:S[0]})}else I.items.push(...h.map(({offerId:F},J)=>({id:F,quantity:S[J]??w.quantity})));return Cr(g,I)}let{createCheckoutLink:a,getCheckoutLinks:c}=An;return{CheckoutLink:An,CheckoutWorkflow:me,CheckoutWorkflowStep:ue,buildCheckoutAction:i,buildCheckoutURL:s,collectCheckoutOptions:o,createCheckoutLink:a,getCheckoutLinks:c}}function ac({interval:e=200,maxAttempts:t=25}={}){let r=z.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let o=0;function i(){window.adobeIMS?.initialized?n():++o>t?(r.debug("Timeout"),n()):setTimeout(i,e)}i()})}function cc(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function lc(e){let t=z.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 _i({}){let e=ac(),t=cc(e),r=lc(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}function hc(e){if(!e.priceLiteralsURL)throw new Error(fn);return new Promise(t=>{window.fetch(e.priceLiteralsURL).then(r=>{r.json().then(({data:n})=>{t(n)})})})}async function wi(e){let r=await(e.priceLiteralsPromise||hc(e));if(Array.isArray(r)){let n=i=>r.find(s=>$t(s.lang,i)),o=n(e.language)??n(w.language);if(o)return Object.freeze(o)}return{}}function Si({literals:e,providers:t,settings:r}){function n(a,c){let{country:h,displayOldPrice:l,displayPerUnit:d,displayRecurrence:m,displayTax:p,forceTaxExclusive:f,language:g,promotionCode:A,quantity:R}=r,{displayOldPrice:T=l,displayPerUnit:S=d,displayRecurrence:L=m,displayTax:E=p,forceTaxExclusive:I=f,country:F=h,language:J=g,perpetual:Q,promotionCode:U=A,quantity:W=R,template:xe,wcsOsi:Ae,...le}=Object.assign({},c?.dataset??{},a??{}),te=We({...le,country:F,displayOldPrice:b(T),displayPerUnit:b(S),displayRecurrence:b(L),displayTax:b(E),forceTaxExclusive:b(I),language:J,perpetual:b(Q),promotionCode:it(U).effectivePromoCode,quantity:Xe(W,w.quantity),template:xe,wcsOsi:Qt(Ae)});if(c)for(let ze of t.price)ze(c,te);return te}function o(a,c){if(!Array.isArray(a)||!a.length||!c)return"";let{template:h}=c,l;switch(h){case"discount":l=sn;break;case"strikethrough":l=nn;break;case"optical":l=rn;break;case"annual":l=on;break;default:l=c.promotionCode?tn:en}let d=n(c);d.literals=Object.assign({},e.price,We(c.literals??{}));let[m]=a;return m={...m,...m.priceDetails},l(d,m)}let{createInlinePrice:i,getInlinePrices:s}=Pn;return{InlinePrice:Pn,buildPriceHTML:o,collectPriceOptions:n,createInlinePrice:i,getInlinePrices:s}}var Cn="_acom",Ai={[X.PRODUCTION]:"https://www.adobe.com",[X.STAGE]:"https://www.stage.adobe.com",[X.PRODUCTION+Cn]:"https://www.adobe.com",[X.STAGE+Cn]:"https://www.stage.adobe.com"};function Ti({settings:e}){let t=z.module("wcs"),{env:r,domainSwitch:n,wcsApiKey:o}=e,i=n?Ai[r+Cn]:Ai[r],s={apiKey:o,baseUrl:i,fetch:window.fetch.bind(window)},a=Rt(s),c=new Map,h=new Map,l;async function d(f,g,A=!0){let R=pn;try{t.debug("Fetching:",f),f.offerSelectorIds=f.offerSelectorIds.sort();let{data:T}=await a(f,{apiKey:o,environment:e.wcsEnv,landscape:r===X.STAGE?"ALL":e.landscape},({resolvedOffers:L})=>({offers:L.map(dn)}));t.debug("Fetched:",f,T);let{offers:S}=T??{};g.forEach(({resolve:L},E)=>{let I=S.filter(({offerSelectorIds:F})=>F.includes(E)).flat();I.length&&(g.delete(E),L(I))})}catch(T){T.status===404&&f.offerSelectorIds.length>1?(t.debug("Multi-osi 404, fallback to fetch-by-one strategy"),await Promise.allSettled(f.offerSelectorIds.map(S=>d({...f,offerSelectorIds:[S]},g,!1)))):(t.error("Failed:",f,T),R=un)}A&&g.size&&(t.debug("Missing:",{offerSelectorIds:[...g.keys()]}),g.forEach(T=>{T.reject(new Error(R))}))}function m(){clearTimeout(l);let f=[...h.values()];h.clear(),f.forEach(({options:g,promises:A})=>d(g,A))}function p({country:f,language:g,perpetual:A=!1,promotionCode:R="",wcsOsi:T=[]}){let S=`${g}_${f}`;f!=="GB"&&(g=A?"EN":"MULT");let L=[f,g,R].filter(E=>E).join("-").toLowerCase();return T.map(E=>{let I=`${E}-${L}`;if(!c.has(I)){let F=new Promise((J,Q)=>{let U=h.get(L);if(!U){let W={country:f,locale:S,offerSelectorIds:[]};f!=="GB"&&(W.language=g),U={options:W,promises:new Map},h.set(L,U)}R&&(U.options.promotionCode=R),U.options.offerSelectorIds.push(E),U.promises.set(E,{resolve:J,reject:Q}),U.options.offerSelectorIds.length>=e.wcsBufferLimit?m():(t.debug("Queued:",U.options),l||(l=setTimeout(m,e.wcsBufferDelay)))});c.set(I,F)}return c.get(I)})}return{WcsCommitment:ai,WcsPlanType:ci,WcsTerm:li,resolveOfferSelectors:p}}var j=class extends HTMLElement{get isWcmsCommerce(){return!0}};C(j,"instance"),C(j,"promise",null);window.customElements.define(ye,j);async function dc(e,t){let r=z.init(e.env).module("service");r.debug("Activating:",e);let n={price:{}},o=Object.freeze(ui(e));try{n.price=await wi(o)}catch(c){r.warn("Price literals were not fetched:",c)}let i={checkout:new Set,price:new Set},s=document.createElement(ye),a={literals:n,providers:i,settings:o};return j.instance=Object.defineProperties(s,Object.getOwnPropertyDescriptors({...bi(a,t),..._i(a),...Si(a),...Ti(a),...yn,Log:z,get defaults(){return w},get literals(){return n},get log(){return z},get providers(){return{checkout(c){return i.checkout.add(c),()=>i.checkout.delete(c)},price(c){return i.price.add(c),()=>i.price.delete(c)}}},get settings(){return o}})),r.debug("Activated:",{literals:n,settings:o,element:s}),document.head.append(s),Ee(()=>{let c=new CustomEvent(Ye,{bubbles:!0,cancelable:!1,detail:j.instance});j.instance.dispatchEvent(c)}),j.instance}function Pi(){document.head.querySelector(ye)?.remove(),j.promise=null,z.reset()}function ft(e,t){let r=ve(e)?e():null,n=ve(t)?t():{};return r&&(n.force&&Pi(),dc(r,n).then(o=>{ft.resolve(o)})),j.promise??(j.promise=new Promise(o=>{ft.resolve=o})),j.promise}var ar=window,lr=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oi=Symbol(),Ci=new WeakMap,cr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Oi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(lr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Ci.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ci.set(r,t))}return t}toString(){return this.cssText}},Li=e=>new cr(typeof e=="string"?e:e+"",void 0,Oi);var On=(e,t)=>{lr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=ar.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},hr=lr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Li(r)})(e):e;var Ln,dr=window,Ni=dr.trustedTypes,mc=Ni?Ni.emptyScript:"",Ri=dr.reactiveElementPolyfillSupport,Rn={toAttribute(e,t){switch(t){case Boolean:e=e?mc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},$i=(e,t)=>t!==e&&(t==t||e==e),Nn={attribute:!0,type:String,converter:Rn,reflect:!1,hasChanged:$i},$n="finalized",$e=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Nn){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Nn}static finalize(){if(this.hasOwnProperty($n))return!1;this[$n]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(hr(o))}else t!==void 0&&r.push(hr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return On(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Nn){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Rn).toAttribute(r,n.type);this._$El=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Rn;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||$i)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};$e[$n]=!0,$e.elementProperties=new Map,$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},Ri?.({ReactiveElement:$e}),((Ln=dr.reactiveElementVersions)!==null&&Ln!==void 0?Ln:dr.reactiveElementVersions=[]).push("1.6.3");var In,mr=window,Qe=mr.trustedTypes,Ii=Qe?Qe.createPolicy("lit-html",{createHTML:e=>e}):void 0,Mn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Gi="?"+be,uc=`<${Gi}>`,Me=document,xt=()=>Me.createComment(""),vt=e=>e===null||typeof e!="object"&&typeof e!="function",Hi=Array.isArray,pc=e=>Hi(e)||typeof e?.[Symbol.iterator]=="function",kn=`[ -\f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ki=/-->/g,Mi=/>/g,Ie=RegExp(`>|${kn}(?:([^\\s"'>=/]+)(${kn}*=${kn}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Ui=/'/g,Di=/"/g,Vi=/^(?:script|style|textarea|title)$/i,ji=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=ji(1),Xd=ji(2),Ue=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),Fi=new WeakMap,ke=Me.createTreeWalker(Me,129,null,!1);function Bi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ii!==void 0?Ii.createHTML(t):t}var fc=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",s=gt;for(let a=0;a"?(s=o??gt,d=-1):l[1]===void 0?d=-2:(d=s.lastIndex-l[2].length,h=l[1],s=l[3]===void 0?Ie:l[3]==='"'?Di:Ui):s===Di||s===Ui?s=Ie:s===ki||s===Mi?s=gt:(s=Ie,o=void 0);let p=s===Ie&&e[a+1].startsWith("/>")?" ":"";i+=s===gt?c+uc:d>=0?(n.push(h),c.slice(0,d)+Mn+c.slice(d)+be+p):c+be+(d===-2?(n.push(void 0),a):p)}return[Bi(e,i+(e[r]||"")+(t===2?"":"")),n]},yt=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,c=this.parts,[h,l]=fc(t,r);if(this.el=e.createElement(h,n),ke.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=ke.nextNode())!==null&&c.length0){o.textContent=Qe?Qe.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Ke(this,t,r,0),s=!vt(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,c,h;for(t=i[0],c=0;c{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:t,s=i._$litPart$;if(s===void 0){let a=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=s=new Et(t.insertBefore(xt(),a),a,void 0,r??{})}return s._$AI(e),s};var ur=window,pr=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hn=Symbol(),qi=new WeakMap,bt=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Hn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(pr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=qi.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&qi.set(r,t))}return t}toString(){return this.cssText}},_e=e=>new bt(typeof e=="string"?e:e+"",void 0,Hn),De=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new bt(r,e,Hn)},Vn=(e,t)=>{pr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=ur.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},fr=pr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return _e(r)})(e):e;var jn,gr=window,Yi=gr.trustedTypes,xc=Yi?Yi.emptyScript:"",Xi=gr.reactiveElementPolyfillSupport,Wn={toAttribute(e,t){switch(t){case Boolean:e=e?xc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Zi=(e,t)=>t!==e&&(t==t||e==e),Bn={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Zi},qn="finalized",fe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Bn){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Bn}static finalize(){if(this.hasOwnProperty(qn))return!1;this[qn]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(fr(o))}else t!==void 0&&r.push(fr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Vn(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Bn){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Wn).toAttribute(r,n.type);this._$El=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Wn;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Zi)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};fe[qn]=!0,fe.elementProperties=new Map,fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},Xi?.({ReactiveElement:fe}),((jn=gr.reactiveElementVersions)!==null&&jn!==void 0?jn:gr.reactiveElementVersions=[]).push("1.6.3");var Yn,Xn;var ce=class extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wi(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Ue}};ce.finalized=!0,ce._$litElement$=!0,(Yn=globalThis.litElementHydrateSupport)===null||Yn===void 0||Yn.call(globalThis,{LitElement:ce});var Ji=globalThis.litElementPolyfillSupport;Ji?.({LitElement:ce});((Xn=globalThis.litElementVersions)!==null&&Xn!==void 0?Xn:globalThis.litElementVersions=[]).push("3.3.3");var _t="(max-width: 767px)",wt="(max-width: 1199px)",B="(min-width: 768px)",G="(min-width: 1200px)",Z="(min-width: 1600px)";var Qi=De` +`,Ce.MISSING_INTL_API,s);var L=r.getPluralRules(t,{type:l.pluralType}).select(m-(l.offset||0));S=l.options[L]||l.options.other}if(!S)throw new Zr(l.value,m,Object.keys(l.options),s);a.push.apply(a,ht(S.value,t,r,n,o,m-(l.offset||0)));continue}}return ca(a)}function ha(e,t){return t?_(_(_({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=_(_({},e[n]),t[n]||{}),r},{})):e}function da(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ha(e[n],t[n]),r},_({},e)):e}function Jr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ma(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ct(function(){for(var t,r=[],n=0;n0?e.substring(0,n):"";let o=Wo(e.split("").reverse().join("")),i=r-o,s=e.substring(i,i+1),a=i+(s==="."||s===","?1:0);t.suffix=o>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(pa);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 ga(e,t,r){let n=!1,o={value:e};e<0&&(n=!0,o.value=-o.value),o.sign=n?"-":"",o.value=Number(o.value).toFixed(t.fraction&&t.fraction.length),o.value=Number(o.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[s="0",a=""]=o.value.split(".");return(!a||a&&a.length<=i)&&(a=i<0?"":(+("0."+a)).toFixed(i+1).replace("0.","")),o.integer=s,o.fraction=a,xa(o,t),(o.result==="0"||o.result==="")&&(n=!1,o.sign=""),!n&&t.maskHasPositiveSign?o.sign="+":n&&t.maskHasPositiveSign?o.sign="-":n&&(o.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),o}function xa(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),o=n&&n.indexOf("0");if(o>-1)for(;e.integer.lengthMath.round(e*20)/20},Qr=(e,t)=>({accept:e,round:t}),_a=[Qr(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),Qr(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.ceil(Math.floor(t*1e4/e)/100)/100),Qr(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Kr={[k.YEAR]:{[N.MONTHLY]:dt.MONTH,[N.ANNUAL]:dt.YEAR},[k.MONTH]:{[N.MONTHLY]:dt.MONTH}},wa=(e,t)=>e.indexOf(`'${t}'`)===0,Sa=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Ko(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Ta(e)),r},Aa=e=>{let t=Pa(e),r=wa(e,t),n=e.replace(/'.*?'/,""),o=Zo.test(n)||Jo.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Qo=e=>e.replace(Zo,Xo).replace(Jo,Xo),Ta=e=>e.match(/#(.?)#/)?.[1]===Yo?ya:Yo,Pa=e=>e.match(/'(.*?)'/)?.[1]??"",Ko=e=>e.match(/0(.?)0/)?.[1]??"";function Bt({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=s=>s){let{currencySymbol:s,isCurrencyFirst:a,hasCurrencySpace:c}=Aa(e),h=r?Ko(e):"",l=Sa(e,r),d=r?2:0,m=i(t,{currencySymbol:s}),p=n?m.toLocaleString("hi-IN",{minimumFractionDigits:d,maximumFractionDigits:d}):qo(l,m),f=r?p.lastIndexOf(h):p.length,g=p.substring(0,f),A=p.substring(f+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,p).replace(/SYMBOL/,s),currencySymbol:s,decimals:A,decimalsDelimiter:h,hasCurrencySpace:c,integer:g,isCurrencyFirst:a,recurrenceTerm:o}}var ei=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=Ea[r]??1;return Bt(e,o>1?dt.MONTH:Kr[t]?.[r],(i,{currencySymbol:s})=>{let a={divisor:o,price:i,usePrecision:n},{round:c}=_a.find(({accept:l})=>l(a));if(!c)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return(ba[s]??(l=>l))(c(a))})},ti=({commitment:e,term:t,...r})=>Bt(r,Kr[e]?.[t]),ri=e=>{let{commitment:t,term:r}=e;return t===k.YEAR&&r===N.MONTHLY?Bt(e,dt.YEAR,n=>n*12):Bt(e,Kr[t]?.[r])};var Ca={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}"},Oa=vo("ConsonantTemplates/price"),La=/<.+?>/g,Y={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",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"},Oe={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},Na="TAX_EXCLUSIVE",Ra=e=>go(e)?Object.entries(e).filter(([,t])=>Ve(t)||It(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+po(n)+'"'}`,""):"",oe=(e,t,r,n=!1)=>`${n?Qo(t):t??""}`;function $a(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:o,hasCurrencySpace:i,integer:s,isCurrencyFirst:a,recurrenceLabel:c,perUnitLabel:h,taxInclusivityLabel:l},d={}){let m=oe(Y.currencySymbol,r),p=oe(Y.currencySpace,i?" ":""),f="";return a&&(f+=m+p),f+=oe(Y.integer,s),f+=oe(Y.decimalsDelimiter,o),f+=oe(Y.decimals,n),a||(f+=p+m),f+=oe(Y.recurrence,c,null,!0),f+=oe(Y.unitType,h,null,!0),f+=oe(Y.taxInclusivity,l,!0),oe(e,f,{...d,"aria-label":t})}var Le=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1}={})=>({country:n,displayFormatted:o=!0,displayRecurrence:i=!0,displayPerUnit:s=!1,displayTax:a=!1,language:c,literals:h={}}={},{commitment:l,formatString:d,price:m,priceWithoutDiscount:p,taxDisplay:f,taxTerm:g,term:A,usePrecision:R}={},T={})=>{Object.entries({country:n,formatString:d,language:c,price:m}).forEach(([he,br])=>{if(br==null)throw new Error(`Argument "${he}" is missing`)});let S={...Ca,...h},L=`${c.toLowerCase()}-${n.toUpperCase()}`;function E(he,br){let _r=S[he];if(_r==null)return"";try{return new Bo(_r.replace(La,""),L).format(br)}catch{return Oa.error("Failed to format literal:",_r),""}}let I=t&&p?p:m,F=e?ei:ti;r&&(F=ri);let{accessiblePrice:J,recurrenceTerm:Q,...U}=F({commitment:l,formatString:d,term:A,price:e?m:I,usePrecision:R,isIndianPrice:n==="IN"}),W=J,xe="";if(b(i)&&Q){let he=E(Oe.recurrenceAriaLabel,{recurrenceTerm:Q});he&&(W+=" "+he),xe=E(Oe.recurrenceLabel,{recurrenceTerm:Q})}let Ae="";if(b(s)){Ae=E(Oe.perUnitLabel,{perUnit:"LICENSE"});let he=E(Oe.perUnitAriaLabel,{perUnit:"LICENSE"});he&&(W+=" "+he)}let le="";b(a)&&g&&(le=E(f===Na?Oe.taxExclusiveLabel:Oe.taxInclusiveLabel,{taxTerm:g}),le&&(W+=" "+le)),t&&(W=E(Oe.strikethroughAriaLabel,{strikethroughPrice:W}));let te=Y.container;if(e&&(te+=" "+Y.containerOptical),t&&(te+=" "+Y.containerStrikethrough),r&&(te+=" "+Y.containerAnnual),b(o))return $a(te,{...U,accessibleLabel:W,recurrenceLabel:xe,perUnitLabel:Ae,taxInclusivityLabel:le},T);let{currencySymbol:ze,decimals:Pt,decimalsDelimiter:Ct,hasCurrencySpace:rt,integer:Er,isCurrencyFirst:hs}=U,Ge=[Er,Ct,Pt];hs?(Ge.unshift(rt?"\xA0":""),Ge.unshift(ze)):(Ge.push(rt?"\xA0":""),Ge.push(ze)),Ge.push(xe,Ae,le);let ds=Ge.join("");return oe(te,ds,T)},ni=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||b(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${Le()(e,t,r)}${o?" "+Le({displayStrikethrough:!0})(e,t,r):""}`};var en=Le(),tn=ni(),rn=Le({displayOptical:!0}),nn=Le({displayStrikethrough:!0}),on=Le({displayAnnual:!0});var Ia=(e,t)=>{if(!(!Be(e)||!Be(t)))return Math.floor((t-e)/t*100)},oi=()=>(e,t,r)=>{let{price:n,priceWithoutDiscount:o}=t,i=Ia(n,o);return i===void 0?'':`${i}%`};var sn=oi();var an="ABM",cn="PUF",ln="M2M",hn="PERPETUAL",ii="P3Y",ka="TAX_INCLUSIVE_DETAILS",Ma="TAX_EXCLUSIVE",si={ABM:an,PUF:cn,M2M:ln,PERPETUAL:hn,P3Y:ii},bh={[an]:{commitment:k.YEAR,term:N.MONTHLY},[cn]:{commitment:k.YEAR,term:N.ANNUAL},[ln]:{commitment:k.MONTH,term:N.MONTHLY},[hn]:{commitment:k.PERPETUAL,term:void 0},[ii]:{commitment:k.THREE_MONTHS,term:N.P3Y}},ai="Value is not an offer",dn=e=>{if(typeof e!="object")return ai;let{commitment:t,term:r}=e,n=Ua(t,r);return{...e,planType:n}};var Ua=(e,t)=>{if(e===void 0)return ai;if(e===""&&t==="")return"";let r="";return e===k.YEAR?t===N.MONTHLY?r=an:t===N.ANNUAL&&(r=cn):e===k.MONTH?t===N.MONTHLY&&(r=ln):e===k.PERPETUAL&&(r=hn),r};function mn(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:s}=t;if(s!==ka)return e;let a={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Ma}};return a.offerType==="TRIAL"&&a.priceDetails.price===0&&(a.priceDetails.price=a.priceDetails.priceWithoutDiscount),a}var{freeze:Ne}=Object,me=Ne({...Te}),ue=Ne({...ee}),X=Ne({...K}),ci=Ne({...k}),mt=Ne({...ot}),li=Ne({...si}),hi=Ne({...N});var yn={};us(yn,{CLASS_NAME_FAILED:()=>Wt,CLASS_NAME_PENDING:()=>qt,CLASS_NAME_RESOLVED:()=>Yt,ERROR_MESSAGE_BAD_REQUEST:()=>un,ERROR_MESSAGE_MISSING_LITERALS_URL:()=>fn,ERROR_MESSAGE_OFFER_NOT_FOUND:()=>pn,EVENT_TYPE_ERROR:()=>Da,EVENT_TYPE_FAILED:()=>Xt,EVENT_TYPE_PENDING:()=>Zt,EVENT_TYPE_READY:()=>Ye,EVENT_TYPE_RESOLVED:()=>Jt,LOG_NAMESPACE:()=>gn,PARAM_AOS_API_KEY:()=>Fa,PARAM_ENV:()=>xn,PARAM_LANDSCAPE:()=>vn,PARAM_WCS_API_KEY:()=>za,STATE_FAILED:()=>ie,STATE_PENDING:()=>se,STATE_RESOLVED:()=>ae,TAG_NAME_SERVICE:()=>ye});var Wt="placeholder-failed",qt="placeholder-pending",Yt="placeholder-resolved",un="Bad WCS request",pn="Commerce offer not found",fn="Literals URL not provided",Da="wcms:commerce:error",Xt="wcms:placeholder:failed",Zt="wcms:placeholder:pending",Ye="wcms:commerce:ready",Jt="wcms:placeholder:resolved",gn="wcms/commerce",xn="commerce.env",vn="commerce.landscape",Fa="commerce.aosKey",za="commerce.wcsKey",ie="failed",se="pending",ae="resolved",ye="wcms-commerce";var En={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:30,tags:"consumer=milo/commerce"},di=new Set,Ga=e=>e instanceof Error||typeof e.originatingRequest=="string";function mi(e){if(e==null)return;let t=typeof e;if(t==="function"){let{name:r}=e;return r?`${t} ${r}`:t}if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:o,status:i}=e;return[n,i,o].filter(s=>s).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!En.serializableTypes.includes(r))return r}return e}function Ha(e,t){if(!En.ignoredProperties.includes(e))return mi(t)}var bn={append(e){let{delimiter:t,sampleRate:r,tags:n,clientId:o}=En,{message:i,params:s}=e,a=[],c=i,h=[];s.forEach(m=>{m!=null&&(Ga(m)?a:h).push(m)}),a.length&&(c+=" ",c+=a.map(mi).join(" "));let{pathname:l,search:d}=window.location;c+=`${t}page=`,c+=l+d,h.length&&(c+=`${t}facts=`,c+=JSON.stringify(h,Ha)),di.has(c)||(di.add(c),window.lana?.log(c,{sampleRate:r,tags:n,clientId:o}))}};var w=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:me.V3,checkoutWorkflowStep:ue.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,domainSwitch:!1,env:X.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsEnv:mt.PRODUCTION,landscape:q.PUBLISHED,wcsBufferLimit:1});function ui(e,{once:t=!1}={}){let r=null;function n(){let o=document.querySelector(ye);o!==r&&(r=o,o&&e(o))}return document.addEventListener(Ye,n,{once:t}),Ee(n),()=>document.removeEventListener(Ye,n)}function ut(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"||n?"EN":"MULT",[s,a]=e;o=[s.language===i?s:a]}return r&&(o=o.map(mn)),o}var Ee=e=>window.setTimeout(e);function Xe(e,t=1){if(e==null)return[t];let r=(Array.isArray(e)?e:String(e).split(",")).map(qe).filter(Be);return r.length||(r=[t]),r}function Qt(e){return e==null?[]:(Array.isArray(e)?e:String(e).split(",")).filter(Mr)}function H(){return window.customElements.get(ye)?.instance}var Va="en_US",u={ar:"AR_es",be_en:"BE_en",be_fr:"BE_fr",be_nl:"BE_nl",br:"BR_pt",ca:"CA_en",ch_de:"CH_de",ch_fr:"CH_fr",ch_it:"CH_it",cl:"CL_es",co:"CO_es",la:"DO_es",mx:"MX_es",pe:"PE_es",africa:"MU_en",dk:"DK_da",de:"DE_de",ee:"EE_et",eg_ar:"EG_ar",eg_en:"EG_en",es:"ES_es",fr:"FR_fr",gr_el:"GR_el",gr_en:"GR_en",ie:"IE_en",il_he:"IL_iw",it:"IT_it",lv:"LV_lv",lt:"LT_lt",lu_de:"LU_de",lu_en:"LU_en",lu_fr:"LU_fr",my_en:"MY_en",my_ms:"MY_ms",hu:"HU_hu",mt:"MT_en",mena_en:"DZ_en",mena_ar:"DZ_ar",nl:"NL_nl",no:"NO_nb",pl:"PL_pl",pt:"PT_pt",ro:"RO_ro",si:"SI_sl",sk:"SK_sk",fi:"FI_fi",se:"SE_sv",tr:"TR_tr",uk:"GB_en",at:"AT_de",cz:"CZ_cs",bg:"BG_bg",ru:"RU_ru",ua:"UA_uk",au:"AU_en",in_en:"IN_en",in_hi:"IN_hi",id_en:"ID_en",id_id:"ID_in",nz:"NZ_en",sa_ar:"SA_ar",sa_en:"SA_en",sg:"SG_en",cn:"CN_zh-Hans",tw:"TW_zh-Hant",hk_zh:"HK_zh-hant",jp:"JP_ja",kr:"KR_ko",za:"ZA_en",ng:"NG_en",cr:"CR_es",ec:"EC_es",pr:"US_es",gt:"GT_es",cis_en:"AZ_en",cis_ru:"AZ_ru",sea:"SG_en",th_en:"TH_en",th_th:"TH_th"},pe=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});function ja({locale:e={}}={}){if(!e.prefix)return{country:w.country,language:w.language,locale:Va};let t=e.prefix.replace("/","")??"",[r=w.country,n=w.language]=(u[t]??t).split("_",2);return r=r.toUpperCase(),n=n.toLowerCase(),{country:r,language:n,locale:`${n}_${r}`}}function pi(e={}){let{commerce:t={},locale:r=void 0}=e,o=(e.env?.name===pe.PROD?pe.PROD:de(O(xn,t,{metadata:!1}),pe,pe.PROD))===pe.STAGE?X.STAGE:X.PRODUCTION,i=O("checkoutClientId",t)??w.checkoutClientId,s=de(O("checkoutWorkflow",t),me,w.checkoutWorkflow),a=ue.CHECKOUT;s===me.V3&&(a=de(O("checkoutWorkflowStep",t),ue,w.checkoutWorkflowStep));let c=b(O("displayOldPrice",t),w.displayOldPrice),h=b(O("displayPerUnit",t),w.displayPerUnit),l=b(O("displayRecurrence",t),w.displayRecurrence),d=b(O("displayTax",t),w.displayTax),m=b(O("entitlement",t),w.entitlement),p=b(O("modal",t),w.modal),f=b(O("forceTaxExclusive",t),w.forceTaxExclusive),g=O("promotionCode",t)??w.promotionCode,A=Xe(O("quantity",t)),R=O("wcsApiKey",t)??w.wcsApiKey,T=e.env?.name===pe.PROD?q.PUBLISHED:de(O(vn,t),q,w.landscape),S=qe(O("wcsBufferDelay",t),w.wcsBufferDelay),L=qe(O("wcsBufferLimit",t),w.wcsBufferLimit),E=b(O("domain.switch",t),!1);return{...ja({locale:r}),displayOldPrice:c,checkoutClientId:i,checkoutWorkflow:s,checkoutWorkflowStep:a,displayPerUnit:h,displayRecurrence:l,displayTax:d,entitlement:m,extraOptions:w.extraOptions,modal:p,env:o,forceTaxExclusive:f,priceLiteralsURL:t.priceLiteralsURL,priceLiteralsPromise:t.priceLiteralsPromise,promotionCode:g,quantity:A,wcsApiKey:R,wcsBufferDelay:S,wcsBufferLimit:L,wcsEnv:o===X.STAGE?mt.STAGE:mt.PRODUCTION,landscape:T,domainSwitch:E}}var gi="debug",Ba="error",Wa="info",qa="warn",Ya=Date.now(),_n=new Set,wn=new Set,fi=new Map,pt=Object.freeze({DEBUG:gi,ERROR:Ba,INFO:Wa,WARN:qa}),xi={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},vi={filter:({level:e})=>e!==gi},Xa={filter:()=>!1};function Za(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){if(n.length===1){let[i]=n;ve(i)&&(n=i(),Array.isArray(n)||(n=[n]))}return n},source:o,timestamp:Date.now()-Ya}}function Ja(e){[...wn].every(t=>t(e))&&_n.forEach(t=>t(e))}function yi(e){let t=(fi.get(e)??0)+1;fi.set(e,t);let r=`${e} #${t}`,n=i=>(s,...a)=>Ja(Za(i,s,e,a,r)),o=Object.seal({id:r,namespace:e,module(i){return yi(`${o.namespace}/${i}`)},debug:n(pt.DEBUG),error:n(pt.ERROR),info:n(pt.INFO),warn:n(pt.WARN)});return o}function Kt(...e){e.forEach(t=>{let{append:r,filter:n}=t;ve(n)?wn.add(n):ve(r)&&_n.add(r)})}function Qa(e={}){let{name:t}=e,r=b(O("commerce.debug",{search:!0,storage:!0}),t===pe.LOCAL);return Kt(r?xi:vi),t===pe.PROD&&Kt(bn),z}function Ka(){_n.clear(),wn.clear()}var z={...yi(gn),Level:pt,Plugins:{consoleAppender:xi,debugFilter:vi,quietFilter:Xa,lanaAppender:bn},init:Qa,reset:Ka,use:Kt};var ec={CLASS_NAME_FAILED:Wt,CLASS_NAME_PENDING:qt,CLASS_NAME_RESOLVED:Yt,EVENT_TYPE_FAILED:Xt,EVENT_TYPE_PENDING:Zt,EVENT_TYPE_RESOLVED:Jt,STATE_FAILED:ie,STATE_PENDING:se,STATE_RESOLVED:ae},tc={[ie]:Wt,[se]:qt,[ae]:Yt},rc={[ie]:Xt,[se]:Zt,[ae]:Jt},rr=new WeakMap;function V(e){if(!rr.has(e)){let t=z.module(e.constructor.is);rr.set(e,{changes:new Map,connected:!1,dispose:je,error:void 0,log:t,options:void 0,promises:[],state:se,timer:null,value:void 0,version:0})}return rr.get(e)}function er(e){let t=V(e),{error:r,promises:n,state:o}=t;(o===ae||o===ie)&&(t.promises=[],o===ae?n.forEach(({resolve:i})=>i(e)):o===ie&&n.forEach(({reject:i})=>i(r))),e.dispatchEvent(new CustomEvent(rc[o],{bubbles:!0}))}function tr(e){let t=rr.get(e);[ie,se,ae].forEach(r=>{e.classList.toggle(tc[r],r===t.state)})}var nc={get error(){return V(this).error},get log(){return V(this).log},get options(){return V(this).options},get state(){return V(this).state},get value(){return V(this).value},attributeChangedCallback(e,t,r){V(this).changes.set(e,r),this.requestUpdate()},connectedCallback(){V(this).dispose=ui(()=>this.requestUpdate(!0))},disconnectedCallback(){let e=V(this);e.connected&&(e.connected=!1,e.log.debug("Disconnected:",{element:this})),e.dispose(),e.dispose=je},onceSettled(){let{error:e,promises:t,state:r}=V(this);return ae===r?Promise.resolve(this):ie===r?Promise.reject(e):new Promise((n,o)=>{t.push({resolve:n,reject:o})})},toggleResolved(e,t,r){let n=V(this);return e!==n.version?!1:(r!==void 0&&(n.options=r),n.state=ae,n.value=t,tr(this),this.log.debug("Resolved:",{element:this,value:t}),Ee(()=>er(this)),!0)},toggleFailed(e,t,r){let n=V(this);return e!==n.version?!1:(r!==void 0&&(n.options=r),n.error=t,n.state=ie,tr(this),n.log.error("Failed:",{element:this,error:t}),Ee(()=>er(this)),!0)},togglePending(e){let t=V(this);return t.version++,e&&(t.options=e),t.state=se,tr(this),Ee(()=>er(this)),t.version},requestUpdate(e=!1){if(!this.isConnected||!H())return;let t=V(this);if(t.timer)return;let{error:r,options:n,state:o,value:i,version:s}=t;t.state=se,t.timer=Ee(async()=>{t.timer=null;let a=null;if(t.changes.size&&(a=Object.fromEntries(t.changes.entries()),t.changes.clear()),t.connected?t.log.debug("Updated:",{element:this,changes:a}):(t.connected=!0,t.log.debug("Connected:",{element:this,changes:a})),a||e)try{await this.render?.()===!1&&t.state===se&&t.version===s&&(t.state=o,t.error=r,t.value=i,tr(this),er(this))}catch(c){this.toggleFailed(t.version,c,n)}})}};function Ei(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function nr(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,Ei(t)),o}function or(e){let{tag:t,is:r,prototype:n}=e,o=window.customElements.get(r);return o||(Object.defineProperties(n,Object.getOwnPropertyDescriptors(nc)),o=Object.defineProperties(e,Object.getOwnPropertyDescriptors(ec)),window.customElements.define(r,o,{extends:t})),o}function ir(e,t=document.body){return Array.from(t?.querySelectorAll(`${e.tag}[is="${e.is}"]`)??[])}function sr(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Ei(t)),e):null}var oc="download",ic="upgrade",Re,Ze=class Ze extends HTMLAnchorElement{constructor(){super();re(this,Re);this.addEventListener("click",this.clickHandler)}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"]}static createCheckoutLink(r={},n=""){let o=H();if(!o)return null;let{checkoutMarketSegment:i,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:h,modal:l,perpetual:d,promotionCode:m,quantity:p,wcsOsi:f,extraOptions:g}=o.collectCheckoutOptions(r),A=nr(Ze,{checkoutMarketSegment:i,checkoutWorkflow:s,checkoutWorkflowStep:a,entitlement:c,upgrade:h,modal:l,perpetual:d,promotionCode:m,quantity:p,wcsOsi:f,extraOptions:g});return n&&(A.innerHTML=`${n}`),A}static getCheckoutLinks(r){return ir(Ze,r)}get isCheckoutLink(){return!0}get placeholder(){return this}clickHandler(r){var n;(n=$(this,Re))==null||n.call(this,r)}async render(r={}){if(!this.isConnected)return!1;let n=H();if(!n)return!1;this.dataset.imsCountry||n.imsCountryPromise.then(l=>{l&&(this.dataset.imsCountry=l)},je);let o=n.collectCheckoutOptions(r,this.placeholder);if(!o.wcsOsi.length)return!1;let i;try{i=JSON.parse(o.extraOptions??"{}")}catch(l){this.placeholder.log.error("cannot parse exta checkout options",l)}let s=this.placeholder.togglePending(o);this.href="";let a=n.resolveOfferSelectors(o),c=await Promise.all(a);c=c.map(l=>ut(l,o));let h=await n.buildCheckoutAction(c.flat(),{...i,...o});return this.renderOffers(c.flat(),o,{},h,s)}renderOffers(r,n,o={},i=void 0,s=void 0){if(!this.isConnected)return!1;let a=H();if(!a)return!1;if(n={...JSON.parse(this.placeholder.dataset.extraOptions??"null"),...n,...o},s??(s=this.placeholder.togglePending(n)),$(this,Re)&&ne(this,Re,void 0),i){this.classList.remove(oc,ic),this.placeholder.toggleResolved(s,r,n);let{url:h,text:l,className:d,handler:m}=i;return h&&(this.href=h),l&&(this.firstElementChild.innerHTML=l),d&&this.classList.add(...d.split(" ")),m&&(this.setAttribute("href","#"),ne(this,Re,m.bind(this))),!0}else if(r.length){if(this.placeholder.toggleResolved(s,r,n)){let h=a.buildCheckoutURL(r,n);return this.setAttribute("href",h),!0}}else{let h=new Error(`Not provided: ${n?.wcsOsi??"-"}`);if(this.placeholder.toggleFailed(s,h,n))return this.setAttribute("href","#"),!0}return!1}updateOptions(r={}){let n=H();if(!n)return!1;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:h,perpetual:l,promotionCode:d,quantity:m,wcsOsi:p}=n.collectCheckoutOptions(r);return sr(this,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:s,entitlement:a,upgrade:c,modal:h,perpetual:l,promotionCode:d,quantity:m,wcsOsi:p}),!0}};Re=new WeakMap,C(Ze,"is","checkout-link"),C(Ze,"tag","a");var Sn=Ze,An=or(Sn);var bi=[u.uk,u.au,u.fr,u.at,u.be_en,u.be_fr,u.be_nl,u.bg,u.ch_de,u.ch_fr,u.ch_it,u.cz,u.de,u.dk,u.ee,u.eg_ar,u.eg_en,u.es,u.fi,u.fr,u.gr_el,u.gr_en,u.hu,u.ie,u.it,u.lu_de,u.lu_en,u.lu_fr,u.nl,u.no,u.pl,u.pt,u.ro,u.se,u.si,u.sk,u.tr,u.ua,u.id_en,u.id_id,u.in_en,u.in_hi,u.jp,u.my_en,u.my_ms,u.nz,u.th_en,u.th_th],sc={INDIVIDUAL_COM:[u.za,u.lt,u.lv,u.ng,u.sa_ar,u.sa_en,u.za,u.sg,u.kr],TEAM_COM:[u.za,u.lt,u.lv,u.ng,u.za,u.co,u.kr],INDIVIDUAL_EDU:[u.lt,u.lv,u.sa_en,u.sea],TEAM_EDU:[u.sea,u.kr]},Je=class Je extends HTMLSpanElement{static get observedAttributes(){return["data-display-old-price","data-display-per-unit","data-display-recurrence","data-display-tax","data-perpetual","data-promotion-code","data-tax-exclusive","data-template","data-wcs-osi"]}static createInlinePrice(t){let r=H();if(!r)return null;let{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}=r.collectPriceOptions(t);return nr(Je,{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m})}static getInlinePrices(t){return ir(Je,t)}get isInlinePrice(){return!0}get placeholder(){return this}resolveDisplayTaxForGeoAndSegment(t,r,n,o){let i=`${t}_${r}`;if(bi.includes(t)||bi.includes(i))return!0;let s=sc[`${n}_${o}`];return s?!!(s.includes(t)||s.includes(i)):!1}async resolveDisplayTax(t,r){let[n]=await t.resolveOfferSelectors(r),o=ut(await n,r);if(o?.length){let{country:i,language:s}=r,a=o[0],[c=""]=a.marketSegments;return this.resolveDisplayTaxForGeoAndSegment(i,s,a.customerSegment,c)}}async render(t={}){if(!this.isConnected)return!1;let r=H();if(!r)return!1;let n=r.collectPriceOptions(t,this.placeholder);if(!n.wcsOsi.length)return!1;let o=this.placeholder.togglePending(n);this.innerHTML="";let[i]=r.resolveOfferSelectors(n);return this.renderOffers(ut(await i,n),n,o)}renderOffers(t,r={},n=void 0){if(!this.isConnected)return;let o=H();if(!o)return!1;let i=o.collectPriceOptions({...this.dataset,...r});if(n??(n=this.placeholder.togglePending(i)),t.length){if(this.placeholder.toggleResolved(n,t,i))return this.innerHTML=o.buildPriceHTML(t,i),!0}else{let s=new Error(`Not provided: ${i?.wcsOsi??"-"}`);if(this.placeholder.toggleFailed(n,s,i))return this.innerHTML="",!0}return!1}updateOptions(t){let r=H();if(!r)return!1;let{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}=r.collectPriceOptions(t);return sr(this,{displayOldPrice:n,displayPerUnit:o,displayRecurrence:i,displayTax:s,forceTaxExclusive:a,perpetual:c,promotionCode:h,quantity:l,template:d,wcsOsi:m}),!0}};C(Je,"is","inline-price"),C(Je,"tag","span");var Tn=Je,Pn=or(Tn);function _i({providers:e,settings:t},r){let n=z.module("checkout");function o(h,l){let{checkoutClientId:d,checkoutWorkflow:m,checkoutWorkflowStep:p,country:f,language:g,promotionCode:A,quantity:R}=t,{checkoutMarketSegment:T,checkoutWorkflow:S=m,checkoutWorkflowStep:L=p,imsCountry:E,country:I=E??f,language:F=g,quantity:J=R,entitlement:Q,upgrade:U,modal:W,perpetual:xe,promotionCode:Ae=A,wcsOsi:le,extraOptions:te,...ze}=Object.assign({},l?.dataset??{},h??{}),Pt=de(S,me,w.checkoutWorkflow),Ct=ue.CHECKOUT;Pt===me.V3&&(Ct=de(L,ue,w.checkoutWorkflowStep));let rt=We({...ze,extraOptions:te,checkoutClientId:d,checkoutMarketSegment:T,country:I,quantity:Xe(J,w.quantity),checkoutWorkflow:Pt,checkoutWorkflowStep:Ct,language:F,entitlement:b(Q),upgrade:b(U),modal:b(W),perpetual:b(xe),promotionCode:it(Ae).effectivePromoCode,wcsOsi:Qt(le)});if(l)for(let Er of e.checkout)Er(l,rt);return rt}async function i(h,l){let d=H(),m=await r.getCheckoutAction?.(h,l,d.imsSignedInPromise);return m||null}function s(h,l){if(!Array.isArray(h)||!h.length||!l)return"";let{env:d,landscape:m}=t,{checkoutClientId:p,checkoutMarketSegment:f,checkoutWorkflow:g,checkoutWorkflowStep:A,country:R,promotionCode:T,quantity:S,...L}=o(l),E=window.frameElement?"if":"fp",I={checkoutPromoCode:T,clientId:p,context:E,country:R,env:d,items:[],marketSegment:f,workflowStep:A,landscape:m,...L};if(h.length===1){let[{offerId:F,offerType:J,productArrangementCode:Q}]=h,{marketSegments:[U]}=h[0];Object.assign(I,{marketSegment:U,offerType:J,productArrangementCode:Q}),I.items.push(S[0]===1?{id:F}:{id:F,quantity:S[0]})}else I.items.push(...h.map(({offerId:F},J)=>({id:F,quantity:S[J]??w.quantity})));return Cr(g,I)}let{createCheckoutLink:a,getCheckoutLinks:c}=An;return{CheckoutLink:An,CheckoutWorkflow:me,CheckoutWorkflowStep:ue,buildCheckoutAction:i,buildCheckoutURL:s,collectCheckoutOptions:o,createCheckoutLink:a,getCheckoutLinks:c}}function ac({interval:e=200,maxAttempts:t=25}={}){let r=z.module("ims");return new Promise(n=>{r.debug("Waing for IMS to be ready");let o=0;function i(){window.adobeIMS?.initialized?n():++o>t?(r.debug("Timeout"),n()):setTimeout(i,e)}i()})}function cc(e){return e.then(()=>window.adobeIMS?.isSignedInUser()??!1)}function lc(e){let t=z.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 wi({}){let e=ac(),t=cc(e),r=lc(t);return{imsReadyPromise:e,imsSignedInPromise:t,imsCountryPromise:r}}function hc(e){if(!e.priceLiteralsURL)throw new Error(fn);return new Promise(t=>{window.fetch(e.priceLiteralsURL).then(r=>{r.json().then(({data:n})=>{t(n)})})})}async function Si(e){let r=await(e.priceLiteralsPromise||hc(e));if(Array.isArray(r)){let n=i=>r.find(s=>$t(s.lang,i)),o=n(e.language)??n(w.language);if(o)return Object.freeze(o)}return{}}function Ai({literals:e,providers:t,settings:r}){function n(a,c){let{country:h,displayOldPrice:l,displayPerUnit:d,displayRecurrence:m,displayTax:p,forceTaxExclusive:f,language:g,promotionCode:A,quantity:R}=r,{displayOldPrice:T=l,displayPerUnit:S=d,displayRecurrence:L=m,displayTax:E=p,forceTaxExclusive:I=f,country:F=h,language:J=g,perpetual:Q,promotionCode:U=A,quantity:W=R,template:xe,wcsOsi:Ae,...le}=Object.assign({},c?.dataset??{},a??{}),te=We({...le,country:F,displayOldPrice:b(T),displayPerUnit:b(S),displayRecurrence:b(L),displayTax:b(E),forceTaxExclusive:b(I),language:J,perpetual:b(Q),promotionCode:it(U).effectivePromoCode,quantity:Xe(W,w.quantity),template:xe,wcsOsi:Qt(Ae)});if(c)for(let ze of t.price)ze(c,te);return te}function o(a,c){if(!Array.isArray(a)||!a.length||!c)return"";let{template:h}=c,l;switch(h){case"discount":l=sn;break;case"strikethrough":l=nn;break;case"optical":l=rn;break;case"annual":l=on;break;default:l=c.promotionCode?tn:en}let d=n(c);d.literals=Object.assign({},e.price,We(c.literals??{}));let[m]=a;return m={...m,...m.priceDetails},l(d,m)}let{createInlinePrice:i,getInlinePrices:s}=Pn;return{InlinePrice:Pn,buildPriceHTML:o,collectPriceOptions:n,createInlinePrice:i,getInlinePrices:s}}var Cn="_acom",Ti={[X.PRODUCTION]:"https://www.adobe.com",[X.STAGE]:"https://www.stage.adobe.com",[X.PRODUCTION+Cn]:"https://www.adobe.com",[X.STAGE+Cn]:"https://www.stage.adobe.com"};function Pi({settings:e}){let t=z.module("wcs"),{env:r,domainSwitch:n,wcsApiKey:o}=e,i=n?Ti[r+Cn]:Ti[r],s={apiKey:o,baseUrl:i,fetch:window.fetch.bind(window)},a=Rt(s),c=new Map,h=new Map,l;async function d(f,g,A=!0){let R=pn;try{t.debug("Fetching:",f),f.offerSelectorIds=f.offerSelectorIds.sort();let{data:T}=await a(f,{apiKey:o,environment:e.wcsEnv,landscape:r===X.STAGE?"ALL":e.landscape},({resolvedOffers:L})=>({offers:L.map(dn)}));t.debug("Fetched:",f,T);let{offers:S}=T??{};g.forEach(({resolve:L},E)=>{let I=S.filter(({offerSelectorIds:F})=>F.includes(E)).flat();I.length&&(g.delete(E),L(I))})}catch(T){T.status===404&&f.offerSelectorIds.length>1?(t.debug("Multi-osi 404, fallback to fetch-by-one strategy"),await Promise.allSettled(f.offerSelectorIds.map(S=>d({...f,offerSelectorIds:[S]},g,!1)))):(t.error("Failed:",f,T),R=un)}A&&g.size&&(t.debug("Missing:",{offerSelectorIds:[...g.keys()]}),g.forEach(T=>{T.reject(new Error(R))}))}function m(){clearTimeout(l);let f=[...h.values()];h.clear(),f.forEach(({options:g,promises:A})=>d(g,A))}function p({country:f,language:g,perpetual:A=!1,promotionCode:R="",wcsOsi:T=[]}){let S=`${g}_${f}`;f!=="GB"&&(g=A?"EN":"MULT");let L=[f,g,R].filter(E=>E).join("-").toLowerCase();return T.map(E=>{let I=`${E}-${L}`;if(!c.has(I)){let F=new Promise((J,Q)=>{let U=h.get(L);if(!U){let W={country:f,locale:S,offerSelectorIds:[]};f!=="GB"&&(W.language=g),U={options:W,promises:new Map},h.set(L,U)}R&&(U.options.promotionCode=R),U.options.offerSelectorIds.push(E),U.promises.set(E,{resolve:J,reject:Q}),U.options.offerSelectorIds.length>=e.wcsBufferLimit?m():(t.debug("Queued:",U.options),l||(l=setTimeout(m,e.wcsBufferDelay)))});c.set(I,F)}return c.get(I)})}return{WcsCommitment:ci,WcsPlanType:li,WcsTerm:hi,resolveOfferSelectors:p}}var j=class extends HTMLElement{get isWcmsCommerce(){return!0}};C(j,"instance"),C(j,"promise",null);window.customElements.define(ye,j);async function dc(e,t){let r=z.init(e.env).module("service");r.debug("Activating:",e);let n={price:{}},o=Object.freeze(pi(e));try{n.price=await Si(o)}catch(c){r.warn("Price literals were not fetched:",c)}let i={checkout:new Set,price:new Set},s=document.createElement(ye),a={literals:n,providers:i,settings:o};return j.instance=Object.defineProperties(s,Object.getOwnPropertyDescriptors({..._i(a,t),...wi(a),...Ai(a),...Pi(a),...yn,Log:z,get defaults(){return w},get literals(){return n},get log(){return z},get providers(){return{checkout(c){return i.checkout.add(c),()=>i.checkout.delete(c)},price(c){return i.price.add(c),()=>i.price.delete(c)}}},get settings(){return o}})),r.debug("Activated:",{literals:n,settings:o,element:s}),document.head.append(s),Ee(()=>{let c=new CustomEvent(Ye,{bubbles:!0,cancelable:!1,detail:j.instance});j.instance.dispatchEvent(c)}),j.instance}function Ci(){document.head.querySelector(ye)?.remove(),j.promise=null,z.reset()}function ft(e,t){let r=ve(e)?e():null,n=ve(t)?t():{};return r&&(n.force&&Ci(),dc(r,n).then(o=>{ft.resolve(o)})),j.promise??(j.promise=new Promise(o=>{ft.resolve=o})),j.promise}var ar=window,lr=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Li=Symbol(),Oi=new WeakMap,cr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Li)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(lr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Oi.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Oi.set(r,t))}return t}toString(){return this.cssText}},Ni=e=>new cr(typeof e=="string"?e:e+"",void 0,Li);var On=(e,t)=>{lr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=ar.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},hr=lr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Ni(r)})(e):e;var Ln,dr=window,Ri=dr.trustedTypes,mc=Ri?Ri.emptyScript:"",$i=dr.reactiveElementPolyfillSupport,Rn={toAttribute(e,t){switch(t){case Boolean:e=e?mc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ii=(e,t)=>t!==e&&(t==t||e==e),Nn={attribute:!0,type:String,converter:Rn,reflect:!1,hasChanged:Ii},$n="finalized",$e=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Nn){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Nn}static finalize(){if(this.hasOwnProperty($n))return!1;this[$n]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(hr(o))}else t!==void 0&&r.push(hr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return On(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Nn){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Rn).toAttribute(r,n.type);this._$El=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Rn;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ii)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};$e[$n]=!0,$e.elementProperties=new Map,$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$i?.({ReactiveElement:$e}),((Ln=dr.reactiveElementVersions)!==null&&Ln!==void 0?Ln:dr.reactiveElementVersions=[]).push("1.6.3");var In,mr=window,Qe=mr.trustedTypes,ki=Qe?Qe.createPolicy("lit-html",{createHTML:e=>e}):void 0,Mn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Hi="?"+be,uc=`<${Hi}>`,Me=document,xt=()=>Me.createComment(""),vt=e=>e===null||typeof e!="object"&&typeof e!="function",Vi=Array.isArray,pc=e=>Vi(e)||typeof e?.[Symbol.iterator]=="function",kn=`[ +\f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mi=/-->/g,Ui=/>/g,Ie=RegExp(`>|${kn}(?:([^\\s"'>=/]+)(${kn}*=${kn}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Di=/'/g,Fi=/"/g,ji=/^(?:script|style|textarea|title)$/i,Bi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),x=Bi(1),Zd=Bi(2),Ue=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),zi=new WeakMap,ke=Me.createTreeWalker(Me,129,null,!1);function Wi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ki!==void 0?ki.createHTML(t):t}var fc=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"":"",s=gt;for(let a=0;a"?(s=o??gt,d=-1):l[1]===void 0?d=-2:(d=s.lastIndex-l[2].length,h=l[1],s=l[3]===void 0?Ie:l[3]==='"'?Fi:Di):s===Fi||s===Di?s=Ie:s===Mi||s===Ui?s=gt:(s=Ie,o=void 0);let p=s===Ie&&e[a+1].startsWith("/>")?" ":"";i+=s===gt?c+uc:d>=0?(n.push(h),c.slice(0,d)+Mn+c.slice(d)+be+p):c+be+(d===-2?(n.push(void 0),a):p)}return[Wi(e,i+(e[r]||"")+(t===2?"":"")),n]},yt=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,c=this.parts,[h,l]=fc(t,r);if(this.el=e.createElement(h,n),ke.currentNode=this.el.content,r===2){let d=this.el.content,m=d.firstChild;m.remove(),d.append(...m.childNodes)}for(;(o=ke.nextNode())!==null&&c.length0){o.textContent=Qe?Qe.emptyScript:"";for(let p=0;p2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Ke(this,t,r,0),s=!vt(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,c,h;for(t=i[0],c=0;c{var n,o;let i=(n=r?.renderBefore)!==null&&n!==void 0?n:t,s=i._$litPart$;if(s===void 0){let a=(o=r?.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=s=new Et(t.insertBefore(xt(),a),a,void 0,r??{})}return s._$AI(e),s};var ur=window,pr=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hn=Symbol(),Yi=new WeakMap,bt=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Hn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(pr&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Yi.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Yi.set(r,t))}return t}toString(){return this.cssText}},_e=e=>new bt(typeof e=="string"?e:e+"",void 0,Hn),De=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new bt(r,e,Hn)},Vn=(e,t)=>{pr?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=ur.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})},fr=pr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return _e(r)})(e):e;var jn,gr=window,Xi=gr.trustedTypes,xc=Xi?Xi.emptyScript:"",Zi=gr.reactiveElementPolyfillSupport,Wn={toAttribute(e,t){switch(t){case Boolean:e=e?xc:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ji=(e,t)=>t!==e&&(t==t||e==e),Bn={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Ji},qn="finalized",fe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,n)=>{let o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),t.push(o))}),t}static createProperty(t,r=Bn){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,n,r);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){return{get(){return this[r]},set(o){let i=this[t];this[r]=o,this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Bn}static finalize(){if(this.hasOwnProperty(qn))return!1;this[qn]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(fr(o))}else t!==void 0&&r.push(fr(t));return r}static _$Ep(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Vn(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EO(t,r,n=Bn){var o;let i=this.constructor._$Ep(t,n);if(i!==void 0&&n.reflect===!0){let s=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Wn).toAttribute(r,n.type);this._$El=t,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,r){var n;let o=this.constructor,i=o._$Ev.get(t);if(i!==void 0&&this._$El!==i){let s=o.getPropertyOptions(i),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Wn;this._$El=i,this[i]=a.fromAttribute(r,s.type),this._$El=null}}requestUpdate(t,r,n){let o=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||Ji)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};fe[qn]=!0,fe.elementProperties=new Map,fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},Zi?.({ReactiveElement:fe}),((jn=gr.reactiveElementVersions)!==null&&jn!==void 0?jn:gr.reactiveElementVersions=[]).push("1.6.3");var Yn,Xn;var ce=class extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let n=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=n.firstChild),n}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=qi(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Ue}};ce.finalized=!0,ce._$litElement$=!0,(Yn=globalThis.litElementHydrateSupport)===null||Yn===void 0||Yn.call(globalThis,{LitElement:ce});var Qi=globalThis.litElementPolyfillSupport;Qi?.({LitElement:ce});((Xn=globalThis.litElementVersions)!==null&&Xn!==void 0?Xn:globalThis.litElementVersions=[]).push("3.3.3");var _t="(max-width: 767px)",wt="(max-width: 1199px)",B="(min-width: 768px)",G="(min-width: 1200px)",Z="(min-width: 1600px)";var Ki=De` :host { position: relative; display: flex; @@ -368,7 +368,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" :host([variant='segment']) ::slotted([slot='heading-xs']) { max-width: var(--consonant-merch-card-heading-xs-max-width, 100%); } -`,Ki=()=>{let e=[De` +`,es=()=>{let e=[De` /* Tablet */ @media screen and ${_e(B)} { :host([size='wide']), @@ -392,7 +392,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules" grid-column: span 4; } } - `),e};function we(e,t={},r){let n=document.createElement(e);r instanceof HTMLElement?n.appendChild(r):n.innerHTML=r;for(let[o,i]of Object.entries(t))n.setAttribute(o,i);return n}function es(){return window.matchMedia("(max-width: 767px)").matches}function ts(){return window.matchMedia("(max-width: 1024px)").matches}function rs(e=1e3){return new Promise(t=>setTimeout(t,e))}var ns=document.createElement("style");ns.innerHTML=` + `),e};function we(e,t={},r){let n=document.createElement(e);r instanceof HTMLElement?n.appendChild(r):n.innerHTML=r;for(let[o,i]of Object.entries(t))n.setAttribute(o,i);return n}function ts(){return window.matchMedia("(max-width: 767px)").matches}function rs(){return window.matchMedia("(max-width: 1024px)").matches}function ns(e=1e3){return new Promise(t=>setTimeout(t,e))}var os=document.createElement("style");os.innerHTML=` :root { --consonant-merch-card-detail-font-size: 12px; --consonant-merch-card-detail-font-weight: 500; @@ -993,17 +993,6 @@ div[slot="footer"] { text-align: center; } -sp-button a { - text-decoration: none; - color: var( - --highcontrast-button-content-color-default, - var( - --mod-button-content-color-default, - var(--spectrum-button-content-color-default) - ) - ); -} - [slot="footer"] a:not([class]) { font-weight: 700; font-size: var(--consonant-merch-card-cta-font-size); @@ -1468,9 +1457,15 @@ span[is="inline-price"][data-template='strikethrough'] { text-decoration: line-through; } -sp-button a[is="checkout-link"] { - color: inherit; +merch-card sp-button a { text-decoration: none; + color: var( + --highcontrast-button-content-color-default, + var( + --mod-button-content-color-default, + var(--spectrum-button-content-color-default) + ) + ); } merch-card span.placeholder-resolved[data-template='strikethrough'], @@ -1494,7 +1489,7 @@ body.merch-modal { scrollbar-gutter: stable; height: 100vh; } -`;document.head.appendChild(ns);var os="merch-offer-select:ready",is="merch-card:ready",ss="merch-card:action-menu-toggle";var Zn="merch-storage:change",Jn="merch-quantity-selector:change";var vc="merch-card",yc=32,xr="mini-compare-chart",as=e=>`--consonant-merch-card-footer-row-${e}-min-height`,ge,St=class extends ce{constructor(){super();C(this,"customerSegment");C(this,"marketSegment");re(this,ge);this.filters={},this.types="",this.selected=!1}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&(this.style.border=this.computedBorderStyle),this.updateComplete.then(async()=>{let o=Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]')).filter(i=>!i.closest('[slot="callout-content"]'));await Promise.all(o.map(i=>i.onceSettled())),this.adjustTitleWidth(),es()?this.removeEmptyRows():(this.adjustMiniCompareBodySlots(),this.adjustMiniCompareFooterRows())})}get computedBorderStyle(){return this.variant!=="twp"?`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`:""}get evergreen(){return this.classList.contains("intro-pricing")}get stockCheckbox(){return this.checkboxLabel?x`