1import{E as e,X as r,u as n,T as o,v as t,l as a,m as i,x as s,s as c,N as l,S as d,V as u,_ as p,a8 as g,a9 as h,G as m,j as b,z as y,P as v,k as f,i as S,ax as k,W as B,D as x,$ as w,ai as T,Q as I,au as P,a5 as E,ay as L,a6 as C,t as z,az as M,w as _}from"./2c1ab0fe.GMbxnz74.js";import{S as R,E as N,aW as A,cj as F,Q as D,W,ct as j,j6 as $}from"./4c290a1e.C6TDJ9Fn.js";import{a2 as q,q as O,B as H,H as G,cU as J,c as U,I as Q,L as V,gu as Y,bz as K,fj as X,hi as Z,a7 as ee,ed as re,hj as ne,hk as oe,ef as te}from"./164ad2e3.BbIvMjRY.js";import{c as ae,u as ie,S as se}from"./ca5e9c49.BT49yYQL.js";import{p as ce,c as le,a as de,b as ue}from"./7743efb2.DYndzlOV.js";import{r as pe,c as ge}from"./ac5a19ff.CRrh5Bdw.js";import{a as he}from"./55098bf1.CKQdNNxq.js";import{u as me}from"./9f047e05.CCJUgz_L.js";import{P as be}from"./064f6ac1.B1U3VPaO.js";import{v as ye}from"./66338e00.Df-ivAxs.js";import{receiptForUI as ve}from"./8498e76b.QkOh7Vlw.js";import"./app.CepNJbvh.js";import"./0a7dffce.DfUtZWCu.js";import"./5fda1420.KYpufQ--.js";import"./60a453ce.CkhHeRBc.js";import"./21cc90a2.DAzJmttM.js";import"./bb728e1c.iawBHR84.js";import"./24fcbaf6.D_Bnb16m.js";import"./9c384ce8.CFjjgE6K.js";import"./2255f8fa.BCU-NIF_.js";import"./05a2a9c8.BOU7FMWw.js";class fe extends Error{constructor(){super(...arguments),this.name="PostPurchaseUIError"}}const Se=r(void 0);function ke(){return e(Se)}function Be({children:e,level:r}){const o=ke();if(null!=o&&null!=r&&r>o)throw new fe(`You are trying to nest a heading group with level ${r} inside a context where the current heading level is ${o}. This will create a broken document outline.`);const t=r??(o??0)+1;return n(Se.Provider,{value:t,children:e})}function xe({children:e}){return n(Be,{children:e})}const we=r(null);function Te({children:e,translate:r,linkComponent:t,shop:a}){const i=o(()=>({translate:r,linkComponent:t,shop:a}),[a,r,t]);return n(we.Provider,{value:i,children:n(xe,{children:e})})}function Ie(){const r=e(we);if(null==r)throw new fe("No app context available");return r}function Pe(){return Ie().translate}const Ee="hJRmE",Le="j4rZ6",Ce="OyTlI",ze="Y5OXA",Me="popET",_e="_9c3s7",Re="_9FcHx",Ne="_74HAj",Ae="AdgkN";function Fe({children:e}){return n("div",{className:t("WZ1ep",Le),children:e})}const De=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]],We=903.2962962;class je{constructor(e,r,n){this.h=e,this.s=r,this.l=n}adjust({h:e,s:r,l:n}){return new je(e?.(this.h)??this.h,r?.(this.s)??this.s,n?.(this.l)??this.l)}toRgb(){return qe(this)}getYiqPerceivedBrightness(){return function({h:e,s:r,l:n}){const[o]=function(e,r,n){const[o,t,a]=Oe(...Ue(e,r,n));return[(.299*o+.587*t+.114*a)/255,(.596*o-.275*t-.321*a)/255,(.212*o-.523*t+.311*a)/255]}(e,r,n);return o}(this)}}const $e=/hsl\(\s*(?<h>\d+),\s*(?<s>\d+)%,\s(?<l>\d+)%\)/;function qe({h:e,s:r,l:n}){return`rgb(${Oe(...Ue(e,r,n)).join(",")})`}function Oe(e,r,n){return function(...e){return[He(Je(Ge(De[0],e))),He(Je(Ge(De[1],e))),He(Je(Ge(De[2],e)))]}(...function(e,r,n){if(0===e)return[0,0,0];const o=r/(13*e)+.19783000664283,t=n/(13*e)+.46831999493879,a=function(e){return e<=8?1*e/We:1*((e+16)/116)**3}(e),i=0-9*a*o/((o-4)*t-o*t);return[i,a,(9*a-15*t*a-t*i)/(3*t)]}(...function(e,r,n){const o=n/360*2*Math.PI;return[e,Math.cos(o)*r,Math.sin(o)*r]}(e,r,n)))}function He(e){return Math.round(255*e)}function Ge(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]}function Je(e){return e<=.0031308?12.92*e:1.055*e**.4166666666666667-.055}function Ue(e,r,n){if(n>99.9999999)return[100,0,e];if(n<1e-8)return[0,0,e];const o=function(e,r){const n=r/360*Math.PI*2,o=function(e){const r=[],n=(e+16)**3/1560896,o=n>.0088564516?n:e/We;for(const[t,a,i]of De)for(const n of[0,1]){const s=(284517*t-94839*i)*o,c=(838422*i+769860*a+731718*t)*e*o-769860*n*e,l=(632260*i-126452*a)*o+126452*n;r.push({slope:s/l,intercept:c/l})}return r}(e);return Math.min(...o.map(e=>{return r=n,(o=e).intercept/(Math.sin(r)-o.slope*Math.cos(r));var r,o}).filter(e=>e>0))}(n,e);return[n,o/100*r,e]}function Qe(e,r,n=1.285){const o="string"==typeof r?parseFloat(r):r;return("string"==typeof n?parseFloat(n):n)**e*(o/10)+"rem"}const Ve=r(void 0);class Ye{constructor(e){this.listeners={change:new Set,preview:new Set},this.configuration={...e,colors:sr(e.colors??{}),typographyScale:e.typographyScale??{}},this.customProperties=Dr(this.configuration)}preview(e,r){const n=sr(e),o=Wr(n);this.configuration={...this.configuration,colors:{...this.configuration.colors,...n}};const t=jr(r);for(const a of this.listeners.preview)a({...o,...t})}set(e,r){this.configuration={...this.configuration,[e]:r};for(const o of this.listeners.change)o(this.configuration);const n=Dr(this.configuration);for(const o of this.listeners.preview)o(n)}on(e,r){return this.listeners[e].add(r),()=>{this.listeners[e].delete(r)}}}function Ke(e){return e?.background?.adjust({l:e=>e>50?e-1.7:Math.max(e-5.2,0)})}function Xe(e){return e?.background?.adjust({l:e=>e>50?Math.min(e-2.5,97.5):Math.max(e+2.5,2.5)})}function Ze(e){return e?.foreground??e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>
1dr(e?.background)?Math.max(r-62.6,0):Math.min(r+82,98.3)})}function er(e){return e?.foreground?e?.foreground?.adjust({l:r=>dr(e?.foreground)?Math.min(r+15,100):r-10}):e?.background?.adjust({s:e=>e>50?e:Math.min(e+15,100),l:r=>dr(e?.background)?Math.max(r-77.5,0):98.3})}function rr(e){return e?.foreground?e?.foreground?.adjust({l:r=>dr(e?.foreground)?Math.max(r-35,0):r+43.2}):e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>dr(e?.background)?Math.max(r-49.9,10):Math.min(r+63.2,90)})}function nr(e){return e?.background?.adjust({l:e=>e-10})}function or(e){return e?.background?.adjust({l:e=>e-10})}function tr(e){return e?.foreground??e?.background?.adjust({l:()=>dr(e?.background)?4:100})}function ar(e){return e?.background?.adjust({l:e=>e-10})}function ir(e){return e?.background?.adjust({l:e=>e-10})}function sr(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];if(null==o)return r;const{background:t,foreground:a,accent:i}=o;return{...r,[n]:{background:t?ur(t):void 0,foreground:a?ur(a):void 0,accent:i?ur(i):void 0}}},{})}function cr(e){return e?.background?.adjust({s:e=>e>50?Math.max(e-15,0):e,l:r=>dr(e?.background)?Math.max(r-8.8,0):Math.min(r+11.3,90)})}function lr(e){return e?.background?.adjust({s:e=>e>50?e:Math.min(e+15,100),l:r=>dr(e?.background)?Math.max(r-77.5,0):98.3})}function dr(e){return void 0!==e&&e.getYiqPerceivedBrightness()>=.65}function ur(e){return e instanceof je?e:"string"==typeof e?function(e){const r=e.match($e);if(null==r)throw new fe(`Invalid HSL value: ${e}`);const{h:n,s:o,l:t}=r.groups,a=n?parseInt(n,10):NaN,i=o?parseInt(o,10):NaN,s=t?parseInt(t,10):NaN;if(Number.isNaN(a)||Number.isNaN(i)||Number.isNaN(s))throw new fe(`Invalid HSL value: ${e}`);return new je(a,i,s)}(e):new je(...e)}const pr={colorCanvas:({canvas:e})=>e?.background,colorCanvasSubdued:({canvas:e})=>Ke(e),colorCanvasText:({canvas:e})=>Ze(e),colorCanvasTextSubdued:({canvas:e})=>rr(e),colorCanvasTextEmphasized:({canvas:e})=>er(e),colorCanvasBorder:({canvas:e})=>cr(e),colorCanvasBorderEmphasized:({canvas:e})=>lr(e),colorCanvasAccent:({canvas:e})=>e?.accent,colorSurfacePrimary:({surfacePrimary:e})=>e?.background,colorSurfacePrimaryDisabled:({surfacePrimary:e})=>Xe(e),colorSurfacePrimarySubdued:({surfacePrimary:e})=>Ke(e),colorSurfacePrimaryText:({surfacePrimary:e})=>Ze(e),colorSurfacePrimaryTextSubdued:({surfacePrimary:e})=>rr(e),colorSurfacePrimaryTextEmphasized:({surfacePrimary:e})=>er(e),colorSurfacePrimaryBorder:({surfacePrimary:e})=>cr(e),colorSurfacePrimaryBorderEmphasized:({surfacePrimary:e})=>lr(e),colorSurfacePrimaryAccent:({surfacePrimary:e})=>e?.accent,colorSurfaceSecondary:({surfaceSecondary:e})=>e?.background,colorSurfaceSecondaryDisabled:({surfaceSecondary:e})=>Xe(e),colorSurfaceSecondarySubdued:({surfaceSecondary:e})=>Ke(e),colorSurfaceSecondaryText:({surfaceSecondary:e})=>Ze(e),colorSurfaceSecondaryTextSubdued:({surfaceSecondary:e})=>rr(e),colorSurfaceSecondaryTextEmphasized:({surfaceSecondary:e})=>er(e),colorSurfaceSecondaryBorder:({surfaceSecondary:e})=>cr(e),colorSurfaceSecondaryBorderEmphasized:({surfaceSecondary:e})=>lr(e),colorSurfaceSecondaryAccent:({surfaceSecondary:e})=>e?.accent,colorSurfaceTertiary:({surfaceTertiary:e})=>e?.background,colorSurfaceTertiaryDisabled:({surfaceTertiary:e})=>Xe(e),colorSurfaceTertiarySubdued:({surfaceTertiary:e})=>Ke(e),colorSurfaceTertiaryText:({surfaceTertiary:e})=>Ze(e),colorSurfaceTertiaryTextSubdued:({surfaceTertiary:e})=>rr(e),colorSurfaceTertiaryTextEmphasized:({surfaceTertiary:e})=>er(e),colorSurfaceTertiaryBorder:({surfaceTertiary:e})=>cr(e),colorSurfaceTertiaryBorderEmphasized:({surfaceTertiary:e})=>lr(e),colorSurfaceTertiaryAccent:({surfaceTertiary:e})=>e?.accent,color1:({color1:e})=>e?.background,color1Text:({color1:e})=>e?.foreground,color2:({color2:e})=>e?.background,color2Text:({color2:e})=>e?.foreground,colorPrimaryAction:({primaryAction:e})=>e?.background,colorPrimaryActionHovered:({primaryAction:e})=>nr(e),colorPrimaryActionPressed:({primaryAction:e})=>or(e),colorPrimaryActionText:({primaryAction:e})=>tr(e),colorPrimaryActionTextHovered:({primaryAction:e})=>ar(e),colorPrimaryActionTextPressed:({primaryAction:e})=>ir(e),colorSecondaryAction:({secondaryAction:e})=>e?.background,colorSecondaryActionHovered:({secondaryAction:e})=>nr(e),colorSecondaryActionPressed:({secondaryAction:e})=>or(e),colorSecondaryActionText:({secondaryAction:e})=>tr(e),colorSecondaryActionTextHovered:({secondaryAction:e})=>ar(e),colorSecondaryActionTextPressed:({secondaryAction:e})=>ir(e),colorTertiaryAction:({tertiaryAction:e})=>e?.background,colorTertiaryActionText:({tertiaryAction:e})=>tr(e),colorTertiaryActionTextSubdued:({tertiaryAction:e})=>e?.foreground?e?.foreground?.adjust({l:e=>Math.min(e+20,100)}):e?.background?.adjust({s:e=>e>50?Math.max(e-55,0):e,l:r=>dr(e?.background)?Math.max(r-49.9,10):Math.min(r+63.2,90)}),colorInteractive:({interactive:e})=>e?.background,colorInteractiveHovered:({interactive:e})=>e?.background?.adjust({l:e=>e+5}),colorInteractivePressed:({interactive:e})=>e?.background?.adjust({l:e=>e+5}),colorInteractiveText:({interactive:e})=>e?.foreground,colorInteractiveTextHovered:({interactive:e})=>e?.foreground?.adjust({l:e=>e+10}),colorInteractiveTextPressed:({interactive:e})=>e?.foreground?.adjust({l:e=>e+10}),colorInfo:({info:e})=>e?.background,colorInfoDisabled:({info:e})=>Xe(e),colorInfoSubdued:({info:e})=>Ke(e),colorInfoText:({info:e})=>Ze(e),colorInfoTextSubdued:({info:e})=>rr(e),colorInfoTextEmphasized:({info:e})=>er(e),colorInfoBorder:({info:e})=>cr(e),colorInfoBorderEmphasized:({info:e})=>lr(e),colorInfoAccent:({info:e})=>e?.accent,colorSuccess:({success:e})=>e?.background,colorSuccessDisabled:({success:e})=>Xe(e),colorSuccessSubdued:({success:e})=>Ke(e),colorSuccessText:({success:e})=>Ze(e),colorSuccessTextSubdued:({success:e})=>rr(e),colorSuccessTextEmphasized:({success:e})=>er(e),colorSuccessBorder:({success:e})=>cr(e),colorSuccessBorderEmphasized:({success:e})=>lr(e),colorSuccessAccent:({success:e})=>e?.accent,colorWarning:({warning:e})=>e?.background,colorWarningDisabled:({warning:e})=>Xe(e),colorWarningSubdued:({warning:e})=>Ke(e),colorWarningText:({warning:e})=>Ze(e),colorWarningTextSubdued:({warning:e})=>rr(e),colorWarningTextEmphasized:({warning:e})=>er(e),colorWarningBorder:({warning:e})=>cr(e),colorWarningBorderEmphasized:({warning:e})=>lr(e),colorWarningAccent:({warning:e})=>e?.accent,colorCritical:({critical:e})=>e?.background,colorCriticalDisabled:({critical:e})=>
1Xe(e),colorCriticalSubdued:({critical:e})=>Ke(e),colorCriticalText:({critical:e})=>Ze(e),colorCriticalTextSubdued:({critical:e})=>rr(e),colorCriticalTextEmphasized:({critical:e})=>er(e),colorCriticalBorder:({critical:e})=>cr(e),colorCriticalBorderEmphasized:({critical:e})=>lr(e),colorCriticalAccent:({critical:e})=>e?.accent},gr={typographySizeXSmall:({base:e,ratio:r})=>e?Qe(-1,e,r):void 0,typographySizeSmall:({base:e,ratio:r})=>e?Qe(-.5,e,r):void 0,typographySizeDefault:({base:e,ratio:r})=>e?Qe(0,e,r):void 0,typographySizeMedium:({base:e,ratio:r})=>e?Qe(.5,e,r):void 0,typographySizeLarge:({base:e,ratio:r})=>e?Qe(1,e,r):void 0,typographySizeXLarge:({base:e,ratio:r})=>e?Qe(2,e,r):void 0,typographySizeXXLarge:({base:e,ratio:r})=>e?Qe(3,e,r):void 0},hr={xsmall:"var(--x-pp-typography-size-xsmall)",small:"var(--x-pp-typography-size-small)",base:"var(--x-pp-typography-size-default)",medium:"var(--x-pp-typography-size-medium)",large:"var(--x-pp-typography-size-large)",xlarge:"var(--x-pp-typography-size-xlarge)",xxlarge:"var(--x-pp-typography-size-xxlarge)"},mr={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase"},br={primary:"var(--x-pp-typography-primary-fonts)",secondary:"var(--x-pp-typography-secondary-fonts)"},yr={base:"normal",loose:"0.125em",xloose:"0.16em"},vr={base:"1.3",large:"1.5"},fr={base:"var(--x-pp-typography-primary-weight-base)",bold:"var(--x-pp-typography-primary-weight-bold)"},Sr={base:"var(--x-pp-typography-secondary-weight-base)",bold:"var(--x-pp-typography-secondary-weight-bold)"},kr=1.225,Br={spacingTight4x:({base:e})=>e?Qe(-5,e,kr):void 0,spacingTight3x:({base:e})=>e?Qe(-4,e,kr):void 0,spacingTight2x:({base:e})=>e?Qe(-3,e,kr):void 0,spacingTight1x:({base:e})=>e?Qe(-2,e,kr):void 0,spacingTight:({base:e})=>e?Qe(-1,e,kr):void 0,spacingBase:({base:e})=>e?Qe(0,e,kr):void 0,spacingLoose:({base:e})=>e?Qe(1,e,kr):void 0,spacingLoose1x:({base:e})=>e?Qe(2,e,kr):void 0,spacingLoose2x:({base:e})=>e?Qe(3,e,kr):void 0,spacingLoose3x:({base:e})=>e?Qe(4,e,kr):void 0,spacingLoose4x:({base:e})=>e?Qe(5,e,kr):void 0},xr={none:"var(--x-pp-border-radius-none)",base:"var(--x-pp-border-radius-base)"},wr={...xr,tight:"var(--x-pp-border-radius-tight)",fullyRounded:"var(--x-pp-border-radius-fully-rounded)"},Tr={full:"var(--x-pp-border-full)",blockEnd:"var(--x-pp-border-block-end)",none:"var(--x-pp-border-none)"},Ir={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},Pr={base:"var(--x-pp-spacing-tight)",tight:"var(--x-pp-spacing-tight1x)",none:"0"},Er={base:"var(--x-pp-spacing-loose1x)",tight:"var(--x-pp-spacing-base)",none:"0"},Lr={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},Cr={base:"var(--x-pp-spacing-tight1x)",loose:"var(--x-pp-spacing-loose2x)"},zr={none:"0",tight4x:"var(--x-pp-spacing-tight4x)",tight3x:"var(--x-pp-spacing-tight3x)",tight2x:"var(--x-pp-spacing-tight2x)",tight1x:"var(--x-pp-spacing-tight1x)",tight:"var(--x-pp-spacing-tight)",base:"var(--x-pp-spacing-base)",loose:"var(--x-pp-spacing-loose)",loose1x:"var(--x-pp-spacing-loose1x)",loose2x:"var(--x-pp-spacing-loose2x)",loose3x:"var(--x-pp-spacing-loose3x)",loose4x:"var(--x-pp-spacing-loose4x)"},Mr={none:"0",fast:"var(--x-pp-duration-fast)",base:"var(--x-pp-duration-base)",slow:"var(--x-pp-duration-slow)",slower:"var(--x-pp-duration-slower)",slowest:"var(--x-pp-duration-slowest)"},_r=18/14,Rr=22/14,Nr=18/14,Ar=10/14,Fr=18/14;function Dr({global:e,buyerJourney:r,colors:n,typographyScale:o,typographyPrimary:t,typographySecondary:a,controls:i,textFields:s,select:c,optionList:l,checkbox:d,moneyLines:u,moneySummary:p,reviewBlock:g,primaryButton:h,secondaryButton:m,tag:b,banner:y,thumbnail:v,link:f,typographyStyle1:S,typographyStyle2:k,typographyStyle3:B,typographyStyle4:x,typographyStyle5:w,typographyStyle6:T,typographyStyle7:I,typographyStyle8:P,typographyStyle9:E}){const L=qr(mr)(e.typographyLetterCase),C=qr(vr)(e.typographyLineSizeDefault),z=qr(vr)(e.typographyLineSizeLarge),M=qr(yr)(e.typographyKerning),_=qr(wr)(e.borderRadius),R=qr(xr)(i.borderRadius),N=qr(wr)(l.borderRadius),A=qr(wr)(d.borderRadius),F=qr(wr)(g.borderRadius),[D,W,j]=[s.border,c.border,d.border].map(qr(Tr)),$=t.fonts??void 0,q=t.weightBase??void 0,O=t.weightBold??void 0,H=a.fonts??void 0,G=a.weightBase??void 0,J=a.weightBold??void 0,U=qr(Ir)(l.gap),Q=qr(Pr)(u.gap),V=qr(Er)(u.gap),Y=qr(Cr)(r.gap),K=qr(Lr)(g.gap),X=qr(Tr)(g.border),[Z,ee,re,ne,oe,te,ae,ie,se,ce,le,de,ue,pe,ge,he,me,be,ye,ve,fe,Se,ke,Be,xe,we,Te,Ie,Pe,Ee,Le,Ce,ze,Me,_e,Re,Ne,Ae,Fe,De,We,je,$e,qe,Oe,He,Ge,Je,Ue,Qe,Ve,Ye,Ke,Xe]=[S,k,B,x,w,T,I,P,E].map(e=>{return[qr(hr)(e.size),qr(mr)(e.letterCase),qr(br)(e.fonts),e.weight?(r=e.fonts?e.fonts:"secondary",n=e.weight,"primary"===r?fr[n]:Sr[n]):void 0,qr(vr)(e.lineSize),qr(yr)(e.kerning)];var r,n}).reduce((e,r)=>[...e,...r],[]),Ze=qr(zr)(h.blockPadding),er=qr(zr)(h.inlinePadding),rr=qr(zr)(m.blockPadding),nr=qr(zr)(m.inlinePadding),or=qr(zr)(u.blockPadding),tr=qr(zr)(u.inlinePadding),ar=qr(zr)(p.blockPadding),ir=qr(zr)(p.inlinePadding),cr=qr(zr)(l.blockPadding),lr=qr(zr)(l.inlinePadding),dr=qr(wr)(b.borderRadius),ur=o.base?`${Math.floor(parseFloat(o.base.toString())*_r)}px`:void 0,pr=o.base?`${Math.floor(parseFloat(o.base.toString())*Rr)}px`:void 0,gr=o.base?`${Math.floor(parseFloat(o.base.toString())*Nr)}px`:void 0,kr=qr(Tr)(y.border),Br=qr(wr)(y.borderRadius),Dr=o.base?`${Math.floor(parseFloat(o.base.toString())*Ar)}px`:void 0,Or=o.base?`${o?.base?.toString()}px`:void 0,Hr=o.base?`${Math.floor(parseFloat(o.base.toString())*Fr)}px`:void 0,Gr=v.aspectRatio?`${v.aspectRatio}`:void 0,Jr=qr(Mr)(f.transitionDuration),Ur={...Wr(sr(n)),...jr(o),...$r(o),typographyPrimaryFonts:$,typographyPrimaryWeightBase:q,typographyPrimaryWeightBold:O,typographySecondaryFonts:H,typographySecondaryWeightBase:G,typographySecondaryWeightBold:J,globalTypographyLetterCase:L,globalTypographyLineSizeDefault:C,globalTypographyLineSizeLarge:z,globalTypographyKerning:M,globalBorderRadius:_,controlBorderRadius:R,checkboxBorder:j,checkboxBorderRadius:A,textFieldBorder:D,selectBorder:W,optionListBorderRadius:N,optionListBlockGap:U,reviewBlockBorderRadius:F,reviewBlockBlockGap:K,reviewBlockBorder:X,moneyLinesBlockGap:Q,moneyLinesSeparatorBlockGap:V,buyerJourneyInlineGap:Y,style1TypographySize:Z,style1TypographyCase:ee,style1TypographyFonts:re,style1TypographyWeight:ne,style1TypographyLineSize:oe,style1TypographyKerning:te,style2TypographySize:ae,style2TypographyCase:ie,style2TypographyFonts:se,style2TypographyWeight:ce,style2TypographyLineSize:le,style2TypographyKerning:de,style3TypographySize:ue,style3TypographyCase:pe,style3TypographyFonts:ge,style3TypographyWeight:he,style3TypographyLineSize:me,style3TypographyKerning:be,style4TypographySize:ye,style4TypographyCase:ve,style4TypographyFonts:fe,style4TypographyWeight:Se,style4TypographyLineSize:ke,style4TypographyKerning:Be,style5TypographySize:
1xe,style5TypographyCase:we,style5TypographyFonts:Te,style5TypographyWeight:Ie,style5TypographyLineSize:Pe,style5TypographyKerning:Ee,style6TypographySize:Le,style6TypographyCase:Ce,style6TypographyFonts:ze,style6TypographyWeight:Me,style6TypographyLineSize:_e,style6TypographyKerning:Re,style7TypographySize:Ne,style7TypographyCase:Ae,style7TypographyFonts:Fe,style7TypographyWeight:De,style7TypographyLineSize:We,style7TypographyKerning:je,style8TypographySize:$e,style8TypographyCase:qe,style8TypographyFonts:Oe,style8TypographyWeight:He,style8TypographyLineSize:Ge,style8TypographyKerning:Je,style9TypographySize:Ue,style9TypographyCase:Qe,style9TypographyFonts:Ve,style9TypographyWeight:Ye,style9TypographyLineSize:Ke,style9TypographyKerning:Xe,primaryButtonBlockPadding:Ze,primaryButtonInlinePadding:er,secondaryButtonBlockPadding:rr,secondaryButtonInlinePadding:nr,moneyLinesBlockPadding:or,moneyLinesInlinePadding:tr,moneySummaryBlockPadding:ar,moneySummaryInlinePadding:ir,optionListBlockPadding:cr,optionListInlinePadding:lr,tagBorderRadius:dr,radioSizeBase:ur,radioSizeLarge:pr,thumbnailAspectRatio:Gr,linkTransitionDuration:Jr,checkboxSize:gr,bannerBorder:kr,bannerBorderRadius:Br,iconSizeSmall:Dr,iconSizeDefault:Or,iconSizeLarge:Hr};for(const sr of Object.keys(Ur))null==Ur[sr]&&delete Ur[sr];return Ur}function Wr(e){const r={};for(const n of Object.keys(pr)){const o=pr[n]?.(e);null!=o&&(r[n]=qe(o))}return r}function jr(e){const r={};for(const n of Object.keys(gr)){const o=gr[n]?.(e);null!=o&&(r[n]=o)}return r}function $r(e){const r={};for(const n of Object.keys(Br)){const o=Br[n]?.(e);null!=o&&(r[n]=o)}return r}function qr(e){return r=>r?e[r]:void 0}function Or(){const r=e(Ve);if(null==r)throw new fe("No theme found in context");return r}function Hr(){const e=Or(),r=function(){const[,e]=s({});return c(()=>e(()=>({})),[])}(),n=a(e.configuration);n.current=e.configuration;const o=a();if(null==o.current){const r=new Set,t={};for(const o of Object.keys(e.configuration))Object.defineProperty(t,o,{enumerable:!0,get:()=>(r.add(o),n.current[o])});o.current={watchedKeys:r,reactiveConfiguration:t}}return i(()=>{const{current:t}=n;return n.current=e.configuration,[...o.current.watchedKeys].some(r=>t[r]!==e.configuration[r])&&r(),e.on("change",()=>{const{current:t}=n;n.current=e.configuration,[...o.current.watchedKeys].some(r=>t[r]!==e.configuration[r])&&r()})},[r,e]),o.current.reactiveConfiguration}const Gr=l(function({children:e}){const r=Or(),t=a(null),s=o(()=>Jr(r.customProperties),[r]);return i(()=>r.on("preview",e=>{const{current:r}=t;if(null==r)return;const n=Jr(e);for(const o of Object.keys(n))r.style.setProperty(o,n[o])}),[r]),n("div",{style:s,ref:t,children:e})});function Jr(e){const r={};for(const n of Object.keys(e))r[`--x-pp-${n.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}`]=e[n];return r}const Ur=l(function(){const e=Or(),[r,t]=s(e.customProperties);i(()=>e.on("preview",e=>{t(r=>({...r,...e}))}),[e]);const a=o(()=>function(e){return function(e){const r=[];for(const n of Object.keys(e)){const o=[];for(const r of Object.keys(e[n])){const t=e[n][r];t&&o.push(`${r}: ${t} !important;`)}o.length>0&&r.push(`${n} {\n ${o.join("\n ")}\n}`)}return r.join("\n")}({[`.${Ee}`]:{color:e.colorPrimaryActionText,background:e.colorPrimaryAction},[`.${Ee}:hover`]:{background:e.colorPrimaryActionHovered},[`.${Ee}:active`]:{background:e.colorPrimaryActionPressed},[`.${Le}`]:{color:e.colorCanvasText,"border-color":e.colorCanvasBorder,"background-color":e.colorCanvas},[`.${Le} .${_e}`]:{"border-color":e.colorCanvasBorder},[`.${Le} .${Re}`]:{color:e.colorCanvasTextSubdued},[`.${Le} .${Ne}`]:{color:e.colorCanvasTextEmphasized},[`.${Ce}`]:{color:e.colorSurfacePrimaryText,"border-color":e.colorSurfacePrimaryBorder,"background-color":e.colorSurfacePrimary},[`.${Ce} .${_e}`]:{"border-color":e.colorSurfacePrimaryBorder},[`.${Ce} .${Re}`]:{color:e.colorSurfacePrimaryTextSubdued},[`.${Ce} .${Ne}`]:{color:e.colorSurfacePrimaryTextEmphasized},[`.${Ce} .${Ae}`]:{color:e.colorSurfacePrimaryAccent},[`.${ze}`]:{color:e.colorSurfaceSecondaryText,"border-color":e.colorSurfaceSecondaryBorder,"background-color":e.colorSurfaceSecondary},[`.${ze} .${_e}`]:{"border-color":e.colorSurfaceSecondaryBorder},[`.${ze} .${Re}`]:{color:e.colorSurfaceSecondaryTextSubdued},[`.${ze} .${Ne}`]:{color:e.colorSurfaceSecondaryTextEmphasized},[`.${ze} .${Ae}`]:{color:e.colorSurfaceSecondaryAccent},[`.${Me}`]:{color:e.colorSurfaceTertiaryText,"border-color":e.colorSurfaceTertiaryBorder,"background-color":e.colorSurfaceTertiary},[`.${Me} .${_e}`]:{"border-color":e.colorSurfaceTertiaryBorder},[`.${Me} .${Re}`]:{color:e.colorSurfaceTertiaryTextSubdued},[`.${Me} .${Ne}`]:{color:e.colorSurfaceTertiaryTextEmphasized},[`.${Me} .${Ae}`]:{color:e.colorSurfaceTertiaryAccent}})}(r),[r]);return n("style",{dangerouslySetInnerHTML:{__html:a}})});function Qr({children:e}){const{typographyPrimary:r,typographySecondary:o}=Hr();return i(()=>{const e=[r,o].map(e=>[{fonts:e.fonts,source:e.sourceBase,weight:e.weightBase},{fonts:e.fonts,source:e.sourceBold,weight:e.weightBold}]).reduce((e,r)=>e.concat(r),[]).filter(e=>void 0!==e.fonts&&void 0!==e.source).map(({fonts:e,source:r,weight:n})=>new FontFace(e,r,{weight:n}));!async function(){await Promise.all(e).then(e=>
1{e.forEach(e=>{document.fonts.add(e)})})}()},[r,o]),n(d,{children:e})}function Vr({children:e,condition:r}){return n(r?Qr:d,{children:e})}function Yr({children:e,theme:r,shouldLoadFonts:t}){const a=o(()=>"undefined"!=typeof CSS&&CSS.supports("color","var(--test)"),[]);return n(Ve.Provider,{value:r,children:n(Vr,{condition:Boolean(t),children:a?n(Gr,{children:n(Fe,{children:e})}):n(d,{children:[n(Ur,{}),n(Fe,{children:e})]})})})}function Kr(e){return"partially_processed"===e.status&&e.errors.some(e=>"payment_authentication_required"===e.code)}function Xr(e){return"partially_processed"===e.status&&e.errors.some(e=>"payment_processing"===e.code)}async function Zr(e){await u(function(e){return e<=1?0:e<=3?500:500*(e-3)}(e))}class en extends Error{constructor(){super(...arguments),this.name="PostPurchaseError"}}class rn extends Error{constructor(){super(...arguments),this.name="InitializePostPurchaseIframeError",this.message="Post Purchase tracking iframe failed to initialize"}}class nn extends Error{constructor(){super(...arguments),this.name="PayPalFraudnetCollectError"}}class on extends Error{constructor(e){super("Post Purchase tracking iframe failed to emit a tracking event",{cause:e}),this.name="EmitPostPurchaseTrackingEventError"}}const tn={errors:[{code:"server_error",message:"The server encountered an unknown issue while processing the request."}],status:"unprocessed"};class an{constructor(e,r,n,o,t){this.changesetsUrl=e,this.observability=r,this.receiptToken=n,this.sessionToken=o,this.developmentMode=t,this.calculateChangeset=this.calculateChangeset.bind(this),this.applyChangeset=this.applyChangeset.bind(this),this.appliedChangeset=this.appliedChangeset.bind(this),this.sendChangesetsRequest=this.sendChangesetsRequest.bind(this)}async calculateChangeset(e){const r="string"==typeof e?{changes:e}:e;return this.sendChangesetsRequest("calculate.json","calculateChangeset",r)}async applyChangeset(e,r){const n={changes:e,options:r};return this.sendChangesetsRequest("apply.json","applyChangeset",n)}async appliedChangeset(e){const r={changes:e};return this.sendChangesetsRequest("applied.json","appliedChangeset",r)}async sendChangesetsRequest(e,r,n){try{this.observability.leaveErrorBreadcrumb(`PostPurchase::${String(r)}`);const t=`${this.changesetsUrl}/${e}`,a={Accept:"application/json","Content-Type":"application/json","X-Shopify-Receipt-Token":this.receiptToken,"X-Shopify-Checkout-Session-Token":this.sessionToken};this.developmentMode&&(a["X-Shopify-Post-Purchase-Development-Mode"]="1");const i=await fetch(t,{method:"POST",body:JSON.stringify(n),headers:a,credentials:"omit"});if(404===i.status||502===i.status)return tn;if(421===i.status||503===i.status){const e=i.headers.get("content-type");if(!e?.includes("application/json")){const n=i.headers.get("x-request-id");return this.observability.counter({name:"PostPurchase_unactionable_infra_error",value:1,attributes:{action:String(r),status:i.status,hasRequestId:null!=n}}),this.observability.log("PostPurchase::UnactionableInfraError",`Unactionable infra status ${i.status} for request id '${n}'`,{action:String(r),statusCode:i.status,requestId:n??void 0,contentType:e??void 0}),tn}}if(!i.headers.get("x-request-id")&&403===i.status)return this.observability.log("PostPurchase::ExternalInterception",`Changeset request intercepted externally with status ${i.status}`,{action:String(r),statusCode:i.status,contentType:i.headers.get("content-type")??void 0}),tn;if(429===i.status){const e=i.headers.get("x-request-id");return this.observability.log("PostPurchase::RateLimited",`Rate limited with status 429 for request id '${e}'`,{action:String(r),requestId:e??void 0}),{errors:[{code:"server_error",message:"The server responded with status 429, too many requests"}],status:"unprocessed"}}const s=i.headers.get("content-type");if(!s?.includes("application/json")){const e=i.headers.get("x-request-id"),n=await i.text(),o={};for(const[r,t]of Object.entries(a))o[r]=t.length;return this.observability.log("PostPurchase::InvalidContentType",`Unexpected content type '${s}' for request id '${e}'`,{action:String(r),statusCode:i.status,contentType:s??void 0,responseBody:n.substring(0,300),headerLengths:o}),this.notifyAndThrowGenericError(new en(`Unexpected content type '${s}' for request id '${e}' with status ${i.status}`),r)}const c=await i.text();try{return JSON.parse(c)}catch(o){const e=i.headers.get("x-request-id"),n=o instanceof Error?o.message:"No error.message",t=c.length>500?c.substring(0,300):c.substring(0,500),a=c.length>500?c.substring(c.length-200):"";this.observability.log("PostPurchase::JsonParseError",`JSON parse failed for request id '${e}'`,{action:String(r),status:i.status,bodyLength:c.length,bodyPreview:t,bodyTail:a,errorMessage:n});const s=200===i.status||i.status<500&&function(e){return!!/^(?!.*Chrome\/).*Safari\//.test(navigator.userAgent)&&e instanceof SyntaxError&&"JSON Parse error: Unexpected EOF"===e.message}(o)?"PostPurchase::ClientJsonParseError":`PostPurchase::Exception::${String(r)}`;return this.observability.error(new en(`Unexpected error parsing json response for request id '${e}'; error: ${n}`),{errorClass:s,severity:"error",metadata:{response:{action:String(r),status:i.status}}}),tn}}catch(o){return this.notifyAndThrowGenericError(o,r)}}notifyAndThrowGenericError(e,r){return this.notifyError(e,r),tn}notifyError(e,r){this.observability.error(e,{errorClass:`PostPurchase::Exception::${String(r)}`,severity:"error"})}}function sn(){return N().replace(/-/g,"").slice(0,32)}const cn="checkoutsCompleted";function ln(e,r){try{sessionStorage.setItem(cn,e)}catch(n){n instanceof DOMException&&"SecurityError"===n.name||function(e){try{const r={};for(const e in sessionStorage)if(sessionStorage.hasOwnProperty(e)){const n=sessionStorage.getItem(e);r[e]={size:new Blob([n??""]).size}}e.leaveErrorBreadcrumb("sessionStorage inventory",r)}catch{}}(r)}}function dn(e,r){const[n,o]=s(null),[t,c]=s("initial"),l=a(""),{observability:d}=R(),u=a(0),m=a(null),b=a(!1);return p(()=>{let r=null;if("initial"===t&&e?.analyticsIframeURL&&e.postPurchaseAdditionalTrackingScript){const{analyticsIframeURL:n}=e;pe(n,d),u.current=Date.now(),r=ge({id:`merchant-script-${N()}`,url:n,privileges:["allow-scripts","allow-forms"],title:document.title??void 0}),m.current=r,d.leaveErrorBreadcrumb("Post-purchase tracking iframe: createSandboxedIframe called.");const t=g(h(r),{callable:["ping","initializeIFrame","emitEvent"]});t.expose({mirrorCookie:un}),o(t)}return()=>{n?.terminate?.(),r?.remove(),m.current=null,c("initial")}},[]),i(()=>{(async()=>
1{if("initial"===t&&n&&e?.trackingData&&e.postPurchaseAdditionalTrackingScript)try{c("initializing"),d.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe");const r=await async function(e,r){for(let n=0;n<gn/pn;n++){const o=e.call.ping(),t=new Promise(e=>{setTimeout(()=>e(!1),pn)}),a=await Promise.race([o,t]);if(a)return r.counter({name:"PostPurchase_tracking_iframe_number_of_polls",value:n+1}),a}return!1}(n,d);if(d.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe completed",{isOk:r}),!r)return void d.counter({name:"PostPurchase_tracking_iframe_timeout",value:1});d.histogram({name:"PostPurchase_tracking_iframe_time_until_ok",value:Date.now()-u.current}),l.current=JSON.stringify(e.trackingData.order),m.current?.addEventListener("load",()=>{b.current=!0},{once:!0}),await async function(e,r,n,o){if(!n.order)return;const t=location.href,a=function(e,r){if(!e)return!1;let n,o;try{n=sessionStorage.getItem(cn)}catch{return!1}if(!n)return ln(JSON.stringify([e]),r),!1;try{o=JSON.parse(n)}catch{return ln(JSON.stringify([e]),r),!1}return Array.isArray(o)?!!o.includes(e)||(o.push(e),ln(JSON.stringify(o),r),!1):(ln(JSON.stringify([e]),r),!1)}(n.order.checkoutToken,o);await e.call.initializeIFrame(r,{referrer:document.referrer,cookie:document.cookie,title:document.title,trackingData:n},t,a)}(n,e.postPurchaseAdditionalTrackingScript,e.trackingData,d),c("initialized")}catch(r){c("failed"),(r instanceof Error||r instanceof rn)&&d.error(r)}})()},[e,d,n,t]),i(()=>{"initialized"===t&&n&&r?.(e=>{if(!e||b.current)return;const r=JSON.stringify(e.order);l.current!==r&&(l.current=r,n.call.emitEvent("CheckoutAmended",e).then(e=>{"not_initialized"===e&&(b.current=!0)}).catch(e=>{d.error(new on(e))}))})},[r,n,t,d]),n}function un(e){document.cookie=e}const pn=500,gn=15e3,hn=A(({checkout:e,client:r,graphql:{coreGraphql:n},observability:o,shop:t},{lastChangeTimestamp:a})=>{const i=r.unstable_getSerialization("sessionToken"),s=m(()=>e.latestReceipt.value?.id),c=m(()=>!t.postPurchase.additionalTrackingScript||"processed"!==e.latestReceipt.value?.status||!i),l=n.query(ce,{variables:()=>({input:{forRender:{receiptId:s.value,sessionToken:i}}}),skip:()=>c.value,cache:!1}),d=m(()=>function(e){if(!e||!e.postPurchaseData)return null;const r=e.postPurchaseData;return"PostPurchaseDataSuccess"===r.__typename&&r.trackingData?JSON.parse(r.trackingData):null}(l.data.value??void 0));b(()=>{c.value||o.counter({name:"PostPurchase_page_loading_analytics_sandbox",value:1})});let u=a.peek();return b(()=>{const e=a.value;c.value||e===u||(u=e,l.refetch())}),{emittableTrackingData:m(()=>c.value||l.loading.value||l.error.value?null:d.value),trackingData:d}});function mn({lastChangeTimestamp:e}){const{shop:r,url:n}=R(),o=y(e),{emittableTrackingData:t,trackingData:a}=F(hn,{lastChangeTimestamp:o});return dn({trackingData:a.value,analyticsIframeURL:n.sandboxAnalytics(),postPurchaseAdditionalTrackingScript:r.postPurchase.additionalTrackingScript},e=>{if(t.value)return e(t.value)}),null}function bn({checkoutSessionIdentifier:e,shopId:r,paymentGatewaySessionId:o,fraudnetMultioffersEnabled:t}){return n(d,{children:[n("script",{type:"application/json",fncls:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",dangerouslySetInnerHTML:{__html:JSON.stringify({f:t?o:e,s:t?"shopify_checkout_postPurchase":`shop-${r}`})}}),n("script",{src:t?"https://c.paypal.com/da/r/fbts.js":"https://c.paypal.com/da/r/fb.js"})]})}function yn({children:e,onHeaderClick:r}){const{main:o}=q(),{i18n:t}=R();return n(H,{background:"base",className:D({colorScheme:o.colorScheme,colorLayer:"base"}),children:[n(O,{children:t.translate("post_purchase.title")}),n(vn,{onClick:r}),n("div",{className:"_1gdkV",children:e}),n(fn,{})]})}function vn({onClick:e}){const{checkout:r,i18n:o}=R(),t=r.latestReceipt.value,a="processed"===t?.status?t.orderIdentity.buyerIdentifier:null;return n(d,{children:[n("header",{children:n(H,{inlineAlignment:"center",children:n(H,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1100px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:n(H,{padding:"@media (inline-size >= medium) small-200 large-500, small-200 base small-400 base",children:n(G,{level:1,children:n("div",{className:"svk3O",children:n(J,{})})})})})})}),n(H,{inlineAlignment:"center",children:n(H,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1176px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:n(H,{padding:"@media (inline-size >= medium) none large-500 large-200 large-500, none base base base'",children:n(U,{gap:"base",direction:"inline",alignItems:"start",accessibilityRole:"header",children:[n(Q,{type:"check-circle",tone:"accent",size:"large"}
1),n(H,{children:n(U,{alignItems:"start",gap:"small-400",children:[a&&o.translate("order_summary.confirmation_number_label",{confirmation_number:`${a}`}),n(G,{level:2,children:o.translate("post_purchase.escape_confirmation")}),n(V,{onClick:e,children:o.translate("post_purchase.escape_action")})]})})]})})})})]})}function fn(){return n(H,{accessibilityRole:"footer",inlineAlignment:"center",padding:"large-400",children:n(H,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= small) 560px, (inline-size >= medium) 946px, none",children:n(H,{padding:"base none",borderWidth:"base none none none",children:n(Y,{})})})})}function Sn(e,r){const[n,o]=s({receiver:e,id:r.id,version:r.version,value:r});let t=n.value;return n.receiver===e&&n.id===r.id||(t=e.attached.get(r),o({receiver:e,id:r.id,version:r.version,value:t})),v(t),i(()=>{let n=!1;const t=()=>{n||o(n=>{const{id:o,version:t,receiver:a}=n,{id:i}=r;if(a!==e||o!==i)return n;const s=e.attached.get(r),c=null==s?void 0:s.version;return t===c?n:{receiver:e,value:s,id:i,version:c}})},a=e.attached.subscribe(r,t);return t(),()=>{n=!0,a()}},[e,r]),t}const kn=l(function({controller:e,receiver:r}){const{root:o}=r.attached,{children:t}=Sn(r,o),{renderComponent:a,renderText:i}=e.renderer;return n(d,{children:t.map(n=>{switch(n.kind){case S:return a({parent:o,component:n,receiver:r,controller:e,key:n.id});case f:return i({parent:o,text:n,receiver:r,key:n.id});default:return null}})})}),Bn={},xn=l(function({receiver:e,component:r,controller:t}){const a=t.get(r.type),i=Sn(e,r),s=o(()=>{const o=null==i?void 0:i.props;if(!o)return Bn;const a={};for(const i of Object.keys(o)){const s=o[i];a[i]=k(s)?n(wn,{parent:r,receiver:e,fragment:s,controller:t}):s}return a},[e,t,null==i?void 0:i.props,r.version]);if(null==i)return null;const{children:c}=i;return 0===c.length?n(a,{...s}):n(a,{...s,children:Tn(r,c,e,t)})}),wn=l(function({parent:e,receiver:r,fragment:o,controller:t}){var a;const{children:i}=null!==(a=Sn(r,o))&&void 0!==a?a:{};
1return i?n(d,{children:Tn(e,i,r,t)}):null});function Tn(e,r,n,o){const{renderComponent:t,renderText:a}=o.renderer;return[...r].map(r=>{switch(r.kind){case S:return t({parent:e,component:r,receiver:n,controller:o,key:r.id});case f:return a({parent:e,text:r,receiver:n,key:r.id});default:return null}})}const In=l(function({text:e,receiver:r}){const o=Sn(r,e);return o?n(d,{children:o.text}):null});function Pn(e){let r=0;return()=>`${e}${r++}`}function En(e,r){const n=a(e);return n.current=e??n.current??r(),n.current}const Ln={Bookend:"Pt5C9",alignmentLeading:"AHnvD",alignmentCenter:"_0kHdH",alignmentTrailing:"Mj39f",alignmentBaseline:"mHRdF",spacingXtight:"bgPkT",spacingTight:"QGqKQ",spacingLoose:"C0fD2",spacingXloose:"z2I8f",trailing:"dg84n",leading:"uLkzw"};function Cn({children:e,spacing:r,alignment:o,leading:a,trailing:i}){return n("div",{className:t(Ln.Bookend,a&&Ln.leading,i&&Ln.trailing,r&&Ln[B("spacing",r)],o&&Ln[B("alignment",o)]),children:e})}const zn={style1:"S6mQH",placeholderStyle1:"Qxy5o",style2:"Lebua",placeholderStyle2:"dJkfR",style3:"_9L1yu",placeholderStyle3:"_8EqjA",style4:"_7cFDn",placeholderStyle4:"piSw3",style5:"q9HMK",placeholderStyle5:"DfCuC",style6:"zF1vV",placeholderStyle6:"LC3a5",style7:"kd33n",placeholderStyle7:"cGahq",style8:"JIXAj",placeholderStyle8:"YOogo",style9:"kgOOJ",placeholderStyle9:"rwvoZ"},Mn={Heading:"J7FWc",h1:"EBR0w",h2:"OyUup",h3:"b3EhK",h4:"qPKsd",h5:"Fv43w",h6:"TxTLq"};function _n({id:e,children:r,role:o,level:a}){const{headingLevel1:i,headingLevel2:s,headingLevel3:c}=Hr(),l=ke(),d=a??l??0,u="presentation"===o||null==l?"p":`h${l}`,p=t(Mn.Heading,d?Mn[B("h",d)]:void 0,d>=2&&Ne,1===d&&i.typographyStyle&&zn[i.typographyStyle],2===d&&s.typographyStyle&&zn[s.typographyStyle],3===d&&c.typographyStyle&&zn[c.typographyStyle]);return n(u,{id:e,tabIndex:e?-1:void 0,className:p,children:r})}const Rn={Icon:"BMGnr",sizeDefault:"EwEn7",sizeSmall:"eT6oI",sizeLarge:"oDjiF",appearanceAccent:"oGW7E",appearanceInteractive:"eZ7zj",appearanceSubdued:"RYcxG",appearanceInfo:"_6qD2C",appearanceSuccess:"_65MYf",appearanceCritical:"WryPG",appearanceWarning:"wBGCW",Svg:"woymO",Img:"ecTdl",Placeholder:"z9u48"},Nn={camera:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{fillRule:"evenodd",d:"M8.87 3a.71.71 0 0 0-.605.337L6.353 6.469H1.412A1.4 1.4 0 0 0 0 7.856v11.793a1.4 1.4 0 0 0 1.412 1.387h21.176A1.4 1.4 0 0 0 24 19.65V7.856a1.4 1.4 0 0 0-1.412-1.387h-4.94l-1.913-3.132A.71.71 0 0 0 15.13 3zM12 18.088c2.826 0 5.118-2.252 5.118-5.03 0-2.777-2.292-5.029-5.118-5.029s-5.118 2.252-5.118 5.03 2.292 5.03 5.118 5.03m3.265-5.03c0 1.773-1.462 3.21-3.265 3.21s-3.265-1.437-3.265-3.21c0-1.771 1.462-3.208 3.265-3.208s3.265 1.437 3.265 3.209",clipRule:"evenodd"})}),cancelCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{d:"M39 12 12 39m0-27 27 27",style:{stroke:"currentColor"}})]}),caretDown:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M0 5h20L10 15"})}),cart:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M17.178 13.088H5.453c-.454 0-.91-.364-.91-.818L3.727 1.818H0V0h4.544c.455 0 .91.364.91.818l.09 1.272h13.45c.274 0 .547.09.73.364.18.182.27.454.18.727l-1.817 9.18c-.09.455-.455.728-.91.728zM6.27 11.27h10.09l1.454-7.362H5.634l.637 7.362zm.092 7.715a1.817 1.817 0 1 0 .002-3.634 1.817 1.817 0 0 0-.002 3.634m9.18 0a1.816 1.816 0 1 0-.001-3.635 1.818 1.818 0 0 0 0 3.635z"})}),checkmark:e=>n("svg",{viewBox:"0 0 20 20",...e,children:n("path",{d:"M20 5.347 7.647 17.462 0 9.962l2.393-2.347 5.254 5.154L17.607 3z"})}),checkmarkCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{strokeWidth:2,d:"m15 24.511 7.307 7.307L35.125 19",style:{stroke:"currentColor"}})]}),chevronDown:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M12.6 3 14 4.4 8.4 10 7 11.4 5.6 10 0 4.4
11.4 3 7 8.6"})}),chevronUp:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M1.4 10.4 0 9l7-7 7 7-1.4 1.4L7 4.8z"})}),chevronRight:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:n("path",{d:"m2 1 1-1 4 4 1 1-1 1-4 4-1-1 4-4"})}),chevronLeft:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:n("path",{d:"M8 1 7 0 3 4 2 5l1 1 4 4 1-1-4-4"})}),close:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n("path",{d:"M15.1 2.3 13.7.9 8 6.6 2.3.9.9 2.3 6.6 8 .9 13.7l1.4 1.4L8 9.4l5.7 5.7 1.4-1.4L9.4 8"})}),critical:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m0-16a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V7a1 1 0 0 1 1-1m-1.5 10.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),discount:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:[n("path",{fillOpacity:.55,d:"M17.78 3.09A2 2 0 0 0 16 2h-5.165c-.535 0-1.046.214-1.422.593l-6.82 6.89q0 .003-.002.003a2.04 2.04 0 0 0-.5.874L.74 8.055a2 2 0 0 1 .712-2.737L9.823.425A2 2 0 0 1 11.35.22l4.99 1.337a2 2 0 0 1 1.44 1.533"}),n("path",{d:"M10.835 2H16a2 2 0 0 1 2 2v5.172c0 .53-.21 1.04-.586 1.414l-6.818 6.818a2 2 0 0 1-2.82.01l-5.166-5.1a2 2 0 0 1-.02-2.828q.003 0 .003-.002l6.82-6.89A2 2 0 0 1 10.835 2M13.5 8a1.5 1.5 0 1 0-.001-3.001A1.5 1.5 0 0 0 13.5 8"})]}),delivered:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"m9.46 4.305-6.129 5.11c-.28.24-.467.516-.467.885v8.864c0 .46.479.835.937.835h2.863a.837.837 0 0 0 .835-.835l-.048-4.449c0-.229.186-.414.415-.414h4.168c.229 0 .417.185.417.414l.048 4.45c0 .46.375.835.834.835h2.986c.46 0 .835-.374.835-.834v-8.482c0-.367-.245-.894-.528-1.131l-6.09-5.248a.834.834 0 0 0-1.077 0zm10.243 3.391L11.179.489A1.66 1.66 0 0 0 9.999 0c-.446 0-.866.176-1.129.443L.294 7.696a.834.834 0 0 0 1.077 1.273L9.5 2.045a.83.83 0 0 1 .996-.002c1.837 1.374 8.133 6.927 8.133 6.927a.835.835 0 0 0 1.077-1.274z"})}),delivery:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M7.267 2.688 11.922 0l1.813 3.14-4.656 2.687zM0 3.264h3.296L9 13.187a3.39 3.39 0 1 0 2.406 4.186l.508.884 7.775-4.502-1.003-1.731-6.038 3.497L4.454 1.264H0zm9.529 13.203a1.39 1.39 0 1 1-2.782 0 1.39 1.39 0 0 1 2.782 0m6.7-13.328L9.516 7.014l3.771 6.533L20 9.672z",clipRule:"evenodd"})}),disabled:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M10 17.5a7.45 7.45 0 0 1-4.339-1.394L16.106 5.661A7.45 7.45 0 0 1 17.5 10c0 4.136-3.364 7.5-7.5 7.5m0-15c1.617 0 3.113.52 4.339 1.394L3.894 14.339A7.45 7.45 0 0 1 2.5 10c0-4.136 3.364-7.5 7.5-7.5M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0",clipRule:"evenodd"})}),errorFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m-3.292-5.38L10 11.328l3.257 3.257 1.328-1.328L11.328 10l3.292-3.292-1.328-1.328L10 8.672 6.743 5.415 5.415 6.743 8.672 10 5.38 13.292z",clipRule:"evenodd"})}),info:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 11h1v7h-2v-5a1 1 0 0 1 0-2zm0 13C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M10.5 7.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),lock:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:n("path",{d:"M12 6h-1V4c0-2.2-1.8-4-4-4S3 1.8 3 4v2H2c-.5 0-1 .5-1 1v6c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V7c0-.5-.5-1-1-1M5 4c0-1.1.9-2 2-2s2 .9 2 2v2H5z"})}),mobile:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{fillRule:"evenodd",d:"M5 2.99C5 1.34 6.342 0 8.003 0h7.994A3 3 0 0 1 19 2.99v18.02c0 1.65-1.342 2.99-3.003 2.99H8.003A3 3 0 0 1 5 21.01zM7 5c0-.552.456-1 .995-1h8.01c.55 0 .995.445.995 1v14c0 .552-.456 1-.995 1h-8.01A.995.995 0 0 1 7 19zm5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),questionFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m.7 13H6.8v-2h1.9zm2.6-7.1c0 1.8-1.3 2.6-2.8 2.8l-.1 1.1H7.3L7 7.5l.1-.1c1.8-.1 2.6-.6 2.6-1.6 0-.8-.6-1.3-1.6-1.3-.9 0-1.6.4-2.3 1.1L4.7 4.5c.8-.9 1.9-1.6 3.4-1.6 1.9.1 3.2 1.2 3.2 3"})}),spinner:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e,children:n("path",{d:"M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0v2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14z"})}),spinnerSmall:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0v2a8 8 0 1 0 8 8z"})}),success:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:n("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m3.784-13.198a.999.999 0 1 1 1.432 1.396l-5.85 6a1 1 0 0 1-1.432 0l-3.15-3.23a1 1 0 1 1 1.432-1.397l2.434 2.5 5.134-5.267z"})}),ship:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[n("path",{d:"M5.156 17.75a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5m9.969 0a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5"}),n("path",{fillRule:"evenodd",d:"M0 14V3a1 1 0 0 1 1-1h7.756a1 1 0 0 1 1 1v1.469h.01V15h-.787q.006-.099.005-.199A3.75 3.75 0 1 0 1.49 15H1a1 1 0 0 1-1-1m10.656 1h.709a3.75 3.75 0 1 1 7.49 0H19a1 1 0 0 0 1-1v-3.853a1 1 0 0 0-.169-.556l-3.128-4.678a1 1 0 0 0-.83-.444h-5.217z",clipRule:"evenodd"})]}),warning:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[n("path",{fillRule:"evenodd",d:"M9.167 12.407V6.469h1.667v5.938z",clipRule:"evenodd"}),n("path",{d:"M10 16.183a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"}),n("path",{fillRule:"evenodd",d:"M19.33 14.536 12.738 2.99C11.223.334 8.774.34 7.261 2.989L.67 14.536C-.842 17.19.291 19.334 3.2 19.334h13.6c2.909 0 4.042-2.148 2.53-4.798M8.761 4.08c.839-1.467 1.637-1.468 2.476 0l6.316 11.066c.86 1.506.49 2.209-1.
1036 2.209H3.483c-1.525 0-1.894-.701-1.038-2.209z",clipRule:"evenodd"})]}),warningCircle:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[n("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),n("path",{strokeLinecap:"square",strokeWidth:2,d:"M25 11v19",style:{stroke:"currentColor"}}),n("path",{fillRule:"evenodd",d:"M25 39a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd",style:{fill:"currentColor"}})]}),warningFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:n("path",{fillRule:"evenodd",d:"m12.738 3.06 6.592 11.968C20.842 17.774 19.71 20 16.8 20H3.2C.29 20-.842 17.778.67 15.028L7.262 3.061c1.513-2.745 3.962-2.75 5.476 0m-3.571 9.761V6.668h1.666v6.153zM10 16.734c.69 0 1.25-.58 1.25-1.295 0-.716-.56-1.296-1.25-1.296s-1.25.58-1.25 1.296c0 .715.56 1.295 1.25 1.295",clipRule:"evenodd"})}),giftFill:e=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:n("g",{fillRule:"evenodd",children:[n("path",{fillOpacity:.55,fillRule:"nonzero",d:"M12.915 5q.084-.236.085-.5a1.5 1.5 0 0 0-3 0V11h6v2h-6v5H8v-5H2v-2h6V4.5a1.5 1.5 0 1 0-2.915.5h-2.05A3.5 3.5 0 0 1 9 2.05 3.5 3.5 0 0 1 14.965 5z"}),n("path",{d:"M16 13v2a3 3 0 0 1-3 3h-3v-5zm0-2h-6V5h6a2 2 0 1 1 0 4zM2 13h6v5H5a3 3 0 0 1-3-3zm0-2V9a2 2 0 1 1 0-4h6v6z"})]})})};function An({source:e,appearance:r,size:o,accessibilityLabel:a}){const i=t(Rn.Icon,r&&Rn[B("appearance",r)],r&&"accent"===r&&Ae,o&&Rn[B("size",o)]);let s;return s="placeholder"===e?n("div",{className:Rn.Placeholder}):n(Nn[e],{className:Rn.Svg,focusable:"false","aria-hidden":"true",role:"presentation"}),n("span",{className:i,"aria-label":a,children:s})}const Fn={TextContainer:"WBViK",spacingNone:"xgQYA",spacingTight:"a67HM",spacingLoose:"A50FK",alignmentLeading:"Z00zw",alignmentCenter:"wNtvT",alignmentTrailing:"JBd0G"};function Dn({alignment:e,spacing:r,children:o}){const a=t(Fn.TextContainer,e&&Fn[B("alignment",e)],r&&Fn[B("spacing",r)]);return n("div",{className:a,children:o})}const Wn={padding:["paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"],paddingInline:["paddingInlineStart","paddingInlineEnd"],paddingInlineStart:"paddingInlineStart",paddingInlineEnd:"paddingInlineEnd",paddingBlock:["paddingBlockStart","paddingBlockEnd"],paddingBlockStart:"paddingBlockStart",paddingBlockEnd:"paddingBlockEnd",background:"background",border:["borderInlineStart","borderInlineEnd","borderBlockStart","borderBlockEnd"],borderInline:["borderInlineStart","borderInlineEnd"],borderInlineStart:"borderInlineStart",borderInlineEnd:"borderInlineEnd",borderBlock:["borderBlockStart","borderBlockEnd"],borderBlockStart:"borderBlockStart",borderBlockEnd:"borderBlockEnd",borderWidth:["borderWidthInlineStart","borderWidthInlineEnd","borderWidthBlockStart","borderWidthBlockEnd"],borderWidthInline:["borderWidthInlineStart","borderWidthInlineEnd"],borderWidthInlineStart:"borderWidthInlineStart",borderWidthInlineEnd:"borderWidthInlineEnd",borderWidthBlock:["borderWidthBlockStart","borderWidthBlockEnd"],borderWidthBlockStart:"borderWidthBlockStart",borderWidthBlockEnd:"borderWidthBlockEnd",borderColor:["borderColorInlineStart","borderColorInlineEnd","borderColorBlockStart","borderColorBlockEnd"],borderRadius:["borderRadiusInlineStart","borderRadiusInlineEnd","borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusInline:["borderRadiusInlineStart","borderRadiusInlineEnd"],borderRadiusInlineStart:"borderRadiusInlineStart",borderRadiusInlineEnd:"borderRadiusInlineEnd",borderRadiusBlock:["borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusBlockStart:"borderRadiusBlockStart",borderRadiusBlockEnd:"borderRadiusBlockEnd",spacing:"spacing"};function jn(e,r){return Object.entries(e).filter(([e,r])=>Wn[e]&&r).reduce((e,[n,o])=>{const t=Wn[n];return Array.isArray(t)?[...e,...t.map(e=>B(r?B(r,e):e,o))]:[...e,B(r?B(r,t):t,o)]},[])}function $n(e){return Object.assign({},...Object.entries(e).map(([e,r])=>{if(Array.isArray(r)){if(2===r.length){const[n,o]=r;return{[`${e}Block`]:n,[`${e}Inline`]:o}}if(4===r.length){const[n,o,t,a]=r;return{[`${e}BlockStart`]:n,[`${e}InlineEnd`]:o,[`${e}BlockEnd`]:t,[`${e}InlineStart`]:a}}}return{[e]:r}}))}const qn={paddingInlineStartTight4x:"_47zIR",paddingInlineStartTight1x:"fEqQ9",paddingInlineStartBase:"ii27j",paddingInlineStartLoose1x:"_1fK3S",paddingInlineStartLoose4x:"mUB1b",paddingInlineEndTight4x:"q9YYb",paddingInlineEndTight1x:"_1HJFC",paddingInlineEndBase:"oV4Z2",paddingInlineEndLoose1x:"uAMYP",paddingInlineEndLoose4x:"menNc",paddingBlockStartTight4x:"NFMUD",paddingBlockStartTight1x:"JNQAO",paddingBlockStartBase:"dWe54",paddingBlockStartLoose1x:"FsqcC",paddingBlockStartLoose4x:"foinD",paddingBlockEndTight4x:"rfp8Y",paddingBlockEndTight1x:"iOrF3",paddingBlockEndBase:"Y3mIT",paddingBlockEndLoose1x:"PQE0l",paddingBlockEndLoose4x:"eP0RQ",backgroundSurfacePrimary:"ZHBJy",backgroundSurfaceSecondary:"gohnJ",backgroundSurfaceTertiary:"r3Sce",borderInlineStartBase:"_9gRm7",borderInlineStartDotted:"_2aFJq",borderInlineEndBase:"_91j9L",borderInlineEndDotted:"aWdpf",borderBlockStartBase:"yZuyc",borderBlockStartDotted:"CQ6UX",borderBlockEndBase:"xBdlE",borderBlockEndDotted:"MISHF",borderWidthInlineStartBase:"b0ylU",borderWidthInlineStartThick:"cAZzk",borderWidthInlineEndBase:"LjBbN",borderWidthInlineEndThick:"czEIY",borderWidthBlockStartBase:"u6ieL",borderWidthBlockStartThick:"Q2Pcd",borderWidthBlockEndBase:"NUIuJ",borderWidthBlockEndThick:"cH20N",borderColorInlineStartBase:"xwvJT",borderColorInlineStartEmphasized:"NdQ5q",borderColorInlineEndBase:"S9nQ3",borderColorInlineEndEmphasized:"GkWv4",borderColorBlockStartBase:"ctr2e",borderColorBlockStartEmphasized:"VnGGl",borderColorBlockEndBase:"Pstdl",borderColorBlockEndEmphasized:"NXQcj",borderRadiusBlockStartTight:"tL3Qp",borderRadiusBlockStartBase:"nmLTV",borderRadiusInlineStartTight:"Umil9",borderRadiusInlineStartBase:"yUCBq",borderRadiusInlineEndTight:"uNuk8",borderRadiusInlineEndBase:"Ou9KA",borderRadiusBlockEndTight:"fc28B",borderRadiusBlockEndBase:"WIefK",aboveSmallPaddingInlineStartTight4x:"C7lzD",aboveSmallPaddingInlineStartTight1x:"B4qvI",aboveSmallPaddingInlineStartBase:"kw9sh",aboveSmallPaddingInlineStartLoose1x:"M1V6g",aboveSmallPaddingInlineStartLoose4x:"_7zlaM",aboveSmallPaddingInlineStartNone:"qqYT8",aboveSmallPaddingInlineEndTight4x:"mYPZ9",aboveSmallPaddingInlineEndTight1x:"HdQ9U",aboveSmallPaddingInlineEndBase:"xy8tg",aboveSmallPaddingInlineEndLoose1x:"zhe2S",aboveSmallPaddingInlineEndLoose4x:"nezfL",aboveSmallPaddingInlineEndNone:"tyNxx",aboveSmallPaddingBlockStartTight4x:"hngp5",aboveSmallPaddingBlockStartTight1x:"RZ4s7",aboveSmallPaddingBlockStartBase:"_5WUxN",aboveSmallPaddingBlockStartLoose1x:"rzF4T",aboveSmallPaddingBlockStartLoose4x:"_20Bvh",aboveSmallPaddingBlockStartNone:"Y5pQs",aboveSmallPaddingBlockEndTight4x:"t4kF6",aboveSmallPaddingBlockEndTight1x:"yOH8O",aboveSmallPaddingBlockEndBase:"pLQEz",aboveSmallPaddingBlockEndLoose1x:"_94rqG",aboveSmallPaddingBlockEndLoose4x:"Fughu",aboveSmallPaddingBlockEndNone:"S1ctf",aboveSmallBackgroun
1dSurfacePrimary:"eOuG5",aboveSmallBackgroundSurfaceSecondary:"GK4xe",aboveSmallBackgroundSurfaceTertiary:"w2psg",aboveSmallBackgroundTransparent:"EjiAg",aboveSmallBorderInlineStartBase:"kfWbx",aboveSmallBorderInlineStartDotted:"_2N5qr",aboveSmallBorderInlineStartNone:"_5Q7fi",aboveSmallBorderInlineEndBase:"tdUoq",aboveSmallBorderInlineEndDotted:"ggaPg",aboveSmallBorderInlineEndNone:"tfE80",aboveSmallBorderBlockStartBase:"GJSUI",aboveSmallBorderBlockStartDotted:"zwoP1",aboveSmallBorderBlockStartNone:"mTxb5",aboveSmallBorderBlockEndBase:"mpI9z",aboveSmallBorderBlockEndDotted:"HTywT",aboveSmallBorderBlockEndNone:"_9ulY8",aboveSmallBorderWidthInlineStartBase:"s8qMf",aboveSmallBorderWidthInlineStartThick:"_2CmEJ",aboveSmallBorderWidthInlineEndBase:"AboN6",aboveSmallBorderWidthInlineEndThick:"_49IGz",aboveSmallBorderWidthBlockStartBase:"fNZ1l",aboveSmallBorderWidthBlockStartThick:"M45Ob",aboveSmallBorderWidthBlockEndBase:"jp4c7",aboveSmallBorderWidthBlockEndThick:"xAA0R",aboveSmallBorderColorInlineStartBase:"fGY5f",aboveSmallBorderColorInlineStartEmphasized:"_31Id7",aboveSmallBorderColorInlineEndBase:"bx2qN",aboveSmallBorderColorInlineEndEmphasized:"goLU0",aboveSmallBorderColorBlockStartBase:"rrwTq",aboveSmallBorderColorBlockStartEmphasized:"XIoWB",aboveSmallBorderColorBlockEndBase:"_8KbGZ",aboveSmallBorderColorBlockEndEmphasized:"Ix69q",aboveSmallBorderRadiusBlockStartTight:"AOjX1",aboveSmallBorderRadiusBlockStartBase:"ewG2X",aboveSmallBorderRadiusBlockStartNone:"v7w4I",aboveSmallBorderRadiusInlineStartTight:"ujYhI",aboveSmallBorderRadiusInlineStartBase:"ADHOF",aboveSmallBorderRadiusInlineStartNone:"vHX6M",aboveSmallBorderRadiusInlineEndTight:"DDfrF",aboveSmallBorderRadiusInlineEndBase:"VoCpG",aboveSmallBorderRadiusInlineEndNone:"zUIvX",aboveSmallBorderRadiusBlockEndTight:"nrS8q",aboveSmallBorderRadiusBlockEndBase:"lqJd0",aboveSmallBorderRadiusBlockEndNone:"_91azi",aboveMediumPaddingInlineStartTight4x:"jL2aC",aboveMediumPaddingInlineStartTight1x:"tBmbv",aboveMediumPaddingInlineStartBase:"FK6vz",aboveMediumPaddingInlineStartLoose1x:"OOcxv",aboveMediumPaddingInlineStartLoose4x:"_1vJ1r",aboveMediumPaddingInlineStartNone:"K3lQt",aboveMediumPaddingInlineEndTight4x:"sX3hs",aboveMediumPaddingInlineEndTight1x:"uJ2FB",aboveMediumPaddingInlineEndBase:"J29re",aboveMediumPaddingInlineEndLoose1x:"uYzG0",aboveMediumPaddingInlineEndLoose4x:"unNTt",aboveMediumPaddingInlineEndNone:"_6OoQk",aboveMediumPaddingBlockStartTight4x:"QbmcA",aboveMediumPaddingBlockStartTight1x:"_1d436",aboveMediumPaddingBlockStartBase:"jpz96",aboveMediumPaddingBlockStartLoose1x:"nZWdv",aboveMediumPaddingBlockStartLoose4x:"DRAbK",aboveMediumPaddingBlockStartNone:"stEtS",aboveMediumPaddingBlockEndTight4x:"K8QJ6",aboveMediumPaddingBlockEndTight1x:"sn841",aboveMediumPaddingBlockEndBase:"KM5LL",aboveMediumPaddingBlockEndLoose1x:"GAkFo",aboveMediumPaddingBlockEndLoose4x:"y2TnV",aboveMediumPaddingBlockEndNone:"SYRpa",aboveMediumBackgroundSurfacePrimary:"_3fwPx",aboveMediumBackgroundSurfaceSecondary:"_2C2sx",aboveMediumBackgroundSurfaceTertiary:"rtbaJ",aboveMediumBackgroundTransparent:"ybFn0",aboveMediumBorderInlineStartBase:"Sa0EE",aboveMediumBorderInlineStartDotted:"jcIY2",aboveMediumBorderInlineStartNone:"D5uaS",aboveMediumBorderInlineEndBase:"n3T6g",aboveMediumBorderInlineEndDotted:"r3OSj",aboveMediumBorderInlineEndNone:"C6pla",aboveMediumBorderBlockStartBase:"o3tmc",aboveMediumBorderBlockStartDotted:"_1yxs5",aboveMediumBorderBlockStartNone:"_2c5K2",aboveMediumBorderBlockEndBase:"UJUYC",aboveMediumBorderBlockEndDotted:"_1Wlgi",aboveMediumBorderBlockEndNone:"_0xUxo",aboveMediumBorderWidthInlineStartBase:"F8sYl",aboveMediumBorderWidthInlineStartThick:"_5AA7L",aboveMediumBorderWidthInlineEndBase:"oxQ90",aboveMediumBorderWidthInlineEndThick:"_0Qd1M",aboveMediumBorderWidthBlockStartBase:"xJYUk",aboveMediumBorderWidthBlockStartThick:"TrEq6",aboveMediumBorderWidthBlockEndBase:"_0P8Q4",aboveMediumBorderWidthBlockEndThick:"mvGSG",aboveMediumBorderColorInlineStartBase:"EuTFm",aboveMediumBorderColorInlineStartEmphasized:"AeCtW",aboveMediumBorderColorInlineEndBase:"sipVW",aboveMediumBorderColorInlineEndEmphasized:"XGruh",aboveMediumBorderColorBlockStartBase:"hFd2M",aboveMediumBorderColorBlockStartEmphasized:"z8BTV",aboveMediumBorderColorBlockEndBase:"_2MGZK",aboveMediumBorderColorBlockEndEmphasized:"_1cOM9",aboveMediumBorderRadiusBlockStartTight:"eUSnk",aboveMediumBorderRadiusBlockStartBase:"cQL8O",aboveMediumBorderRadiusBlockStartNone:"EbLsC",aboveMediumBorderRadiusInlineStartTight:"kcnav",aboveMediumBorderRadiusInlineStartBase:"_4QhrI",aboveMediumBorderRadiusInlineStartNone:"ZZWpj",aboveMediumBorderRadiusInlineEndTight:"_2BOrb",aboveMediumBorderRadiusInlineEndBase:"_1ueKi",aboveMediumBorderRadiusInlineEndNone:"Fax9T",aboveMediumBorderRadiusBlockEndTight:"ydi6p",aboveMediumBorderRadiusBlockEndBase:"fp8IC",aboveMediumBorderRadiusBlockEndNone:"fsaBa",aboveLargePaddingInlineStartTight4x:"MkU19",aboveLargePaddingInlineStartTight1x:"_3tdr9",aboveLargePaddingInlineStartBase:"TpEsF",aboveLargePaddingInlineStartLoose1x:"yft63",aboveLargePaddingInlineStartLoose4x:"VmImD",aboveLargePaddingInlineStartNone:"NM2yV",aboveLargePaddingInlineEndTight4x:"_1g20z",aboveLargePaddingInlineEndTight1x:"WxBVR",aboveLargePaddingInlineEndBase:"LrIuq",aboveLargePaddingInlineEndLoose1x:"K1XLm",aboveLargePaddingInlineEndLoose4x:"_1bMw2",aboveLargePaddingInlineEndNone:"BUD9H",aboveLargePaddingBlockStartTight4x:"R9RZt",aboveLargePaddingBlockStartTight1x:"JxfQV",aboveLargePaddingBlockStartBase:"_2T75z",aboveLargePaddingBlockStartLoose1x:"POiRg",aboveLargePaddingBlockStartLoose4x:"_2DY0L",aboveLargePaddingBlockStartNone:"Epshn",aboveLargePaddingBlockEndTight4x:"kcAiv",aboveLargePaddingBlockEndTight1x:"zDiwA",aboveLargePaddingBlockEndBase:"_1uZFt",aboveLargePaddingBlockEndLoose1x:"vnrZ2",aboveLargePaddingBlockEndLoose4x:"riGjf",aboveLargePaddingBlockEndNone:"QQYVl",aboveLargeBackgroun
1dSurfacePrimary:"ulJWL",aboveLargeBackgroundSurfaceSecondary:"nDtP5",aboveLargeBackgroundSurfaceTertiary:"CL4rO",aboveLargeBackgroundTransparent:"l4pK0",aboveLargeBorderInlineStartBase:"OqXHc",aboveLargeBorderInlineStartDotted:"AGTRa",aboveLargeBorderInlineStartNone:"V33M5",aboveLargeBorderInlineEndBase:"Fz5s9",aboveLargeBorderInlineEndDotted:"_9xFaI",aboveLargeBorderInlineEndNone:"UNDlf",aboveLargeBorderBlockStartBase:"vkBQ7",aboveLargeBorderBlockStartDotted:"sopqf",aboveLargeBorderBlockStartNone:"BZTuX",aboveLargeBorderBlockEndBase:"_0VqWv",aboveLargeBorderBlockEndDotted:"hQws7",aboveLargeBorderBlockEndNone:"Ja6HK",aboveLargeBorderWidthInlineStartBase:"nns70",aboveLargeBorderWidthInlineStartThick:"zy4ps",aboveLargeBorderWidthInlineEndBase:"aYgpQ",aboveLargeBorderWidthInlineEndThick:"Fp15A",aboveLargeBorderWidthBlockStartBase:"gjVG8",aboveLargeBorderWidthBlockStartThick:"Tg842",aboveLargeBorderWidthBlockEndBase:"UhUwi",aboveLargeBorderWidthBlockEndThick:"_6F4dd",aboveLargeBorderColorInlineStartBase:"E6TZr",aboveLargeBorderColorInlineStartEmphasized:"tWLn5",aboveLargeBorderColorInlineEndBase:"qYx1Q",aboveLargeBorderColorInlineEndEmphasized:"w7Uxz",aboveLargeBorderColorBlockStartBase:"RO5sq",aboveLargeBorderColorBlockStartEmphasized:"fkjVf",aboveLargeBorderColorBlockEndBase:"K6n6y",aboveLargeBorderColorBlockEndEmphasized:"qguz7",aboveLargeBorderRadiusBlockStartTight:"TJs83",aboveLargeBorderRadiusBlockStartBase:"_9Pw4q",aboveLargeBorderRadiusBlockStartNone:"_71meE",aboveLargeBorderRadiusInlineStartTight:"a42rs",aboveLargeBorderRadiusInlineStartBase:"iWZkR",aboveLargeBorderRadiusInlineStartNone:"NpZaQ",aboveLargeBorderRadiusInlineEndTight:"NHCvw",aboveLargeBorderRadiusInlineEndBase:"sujnm",aboveLargeBorderRadiusInlineEndNone:"nAzPb",aboveLargeBorderRadiusBlockEndTight:"tBVOS",aboveLargeBorderRadiusBlockEndBase:"Mh4rq",aboveLargeBorderRadiusBlockEndNone:"ZDnKL"};function On({blockPadding:e,inlinePadding:r,padding:o,children:a,media:i,...s}){const c=function(e,r){return[...jn($n(e)),...r?r.map(({viewportSize:e,...r})=>jn($n(r),e)).reduce((e,r)=>e.concat(r),[]):[]]}({...s,padding:o||!e&&!r?o:Hn(e,r)},i);return n("div",{className:t(qn.View,c&&c.map(e=>qn[e])),children:a})}function Hn(e,r){const n=e=>{switch(e){case"base":return"base";case"tight":return"tight1x";case"extraTight":return"tight4x";case"loose":return"loose1x";case"extraLoose":return"loose4x";default:return"none"}};return[n(e),n(r)]}const Gn={Banner:"HwFtv",Icon:"gvEcX",statusInfo:"_2OMMy",statusSuccess:"WHH75",statusWarning:"LEzwg",statusCritical:"u07YM",Button:"_4TfRQ"},Jn=Pn("Banner");function Un({children:e,collapsible:r=!1,iconHidden:o=!1,status:c="info",title:l,autoFocus:d=!1}){const u=Pe(),[p,g]=s(!0),h=a(null);i(()=>{!0===d&&h?.current?.focus()},[d]);const m=t(Gn.Banner,c&&Gn[B("status",c)]),b=En(void 0,Jn),y=p?void 0:b,v=!r||r&&!p;return n("div",{className:m,role:"critical"===c?"alert":"status","aria-atomic":"true","aria-live":"polite",...d&&{tabIndex:-1},ref:h,children:n(Cn,{leading:!o,trailing:r,children:[!o&&n("div",{className:Gn.Icon,children:n(An,{source:c})}),n(Dn,{spacing:"tight",children:[l&&n(_n,{level:3,children:l}),e&&v&&n("div",{className:Gn.Content,id:y,children:n(xe,{children:n(On,{children:e})})})]}),r&&n(On,{children:n("button",{type:"button",className:Gn.Button,onClick:()=>g(e=>!e),"aria-pressed":!p,"aria-expanded":!p,"aria-controls":y,children:n(An,{size:"small",source:p?"chevronDown":"chevronUp",accessibilityLabel:u("expand")})})})]})})}const Qn={BlockStack:"kIgpr",spacingNone:"bFWIE",spacingXtight:"kkSSu",spacingTight:"rMvcE",spacingLoose:"m8fnu",spacingXloose:"gFMiI",alignmentLeading:"KQ319",alignmentCenter:"cThsa",alignmentTrailing:"FAXRQ"};function Vn({alignment:e,spacing:r,children:o}){const a=t(Qn.BlockStack,e&&Qn[B("alignment",e)],r&&Qn[B("spacing",r)]);return n("div",{className:a,children:o})}function Yn(){const[e,r]=s(!1);return p(()=>{r("undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)},[]),i(()=>{if("undefined"==typeof window)return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{r(e.matches)};return e.addListener(n),()=>{e.removeListener(n)}},[]),e}const Kn=new Map([["none",0],["fast",100],["base",200],["slow",300],["slower",400
1],["slowest",500]]);function Xn(e,r="slow",n=!1){const[o,t]=s(!n&&e),[c,l]=s(!1),d=a(!n&&e),u=a(()=>{l(!1),t(d.current)}),p=Yn();let g="string"==typeof r?r:r.enter,h="string"==typeof r?r:r.exit;return p&&(g="none",h="none"),i(()=>{e!==d.current&&l(!0),d.current=e;const r=setTimeout(u.current,e?Kn.get(g??"none"):Kn.get(h??"none"));return()=>{clearTimeout(r)}},[g,h,e]),c?e?"entering":"exiting":e===o?e?"entered":"exited":e?"enter":"exit"}function Zn({children:e,className:r,to:o,external:t,id:a,language:i,onPress:s}){const c=Ie().linkComponent,l=s&&(()=>s());return c?n(c,{to:o,onClick:l,external:t,id:a,className:r,lang:i,children:e}):n("a",{href:o,onClick:l,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,id:a,className:r,lang:i,children:e})}const eo={Spinner:"Saysr","fade-in":"Tsfjk",rotate:"aAUgK",sizeLarge:"jc1jU",sizeSmall:"_4WBeo"};function ro({size:e,color:r,children:o}){const a=Yn(),i=Boolean(o&&a),s=i?void 0:t(eo.Spinner,e&&eo[B("size",e)]);return n("div",{className:s,children:i?o:n(An,{source:"small"===e?"spinnerSmall":"spinner",appearance:r?void 0:"accent"})})}const no={Button:"MImI3",Content:"c2MXY",LoadingContent:"Lh31i",Spinner:"AdR2j",subdued:"Ad3oQ",plain:"Imf0g",underline:"yXHHV",fill:"ts108",disabled:"a5wxR",loading:"pUDoY","loading-transitionEnter":"eKXZP","loading-transitionEntering":"kEwCl","loading-transitionEntered":"FFWrm",secondary:"NQ2yj",tertiary:"fYrWH",progressBar:"_1Zk1y",progressbar:"B2YDL",colorHoveredColor1:"nNNso",colorHoveredColor2:"AABVP",colorPressedColor1:"N8QRz",colorPressedColor2:"GZggx"},oo=x(function({children:e,submit:r=!1,disabled:o,onPress:a,to:i,subdued:s,plain:l,secondary:d,tertiary:u,loading:p=!1,fill:g=!1,loadingLabel:h,underline:m},b){const y=o?void 0:i,v=o||"function"!=typeof a?void 0:()=>a?.(),f=c(e=>{"function"==typeof b?b(e):b&&(b.current=e)},[b]),S=Pe(),k=Yn(),x=Xn(p,{enter:"slow"}),{primaryButton:{typographyStyle:w,loadingStyle:T="spinner"},secondaryButton:{typographyStyle:I,loadingStyle:P="spinner"},link:{colorHovered:E,colorPressed:L}}=Hr(),C=d?P:T,z=t(no.Button,Ee,s&&no.subdued,l&&no.plain,l&&E&&no[B("colorHovered",E)],l&&L&&no[B("colorPressed",L)],l&&m&&no.underline,o&&no.disabled,p&&"spinner"===C&&no.loading,g&&no.fill,p&&"spinner"===C&&no[B("loading-transition",x)],d&&no.secondary,u&&no.tertiary,p&&"progressBar"===C&&no[C]),M=h||S("processing"),_=t(no.Content,!l&&(d?I&&zn[I]:w&&zn[w])),R=n("span",{className:_,children:p&&"progressBar"===C&&k?M:e}),N=r?"submit":"button",A=n("span",{className:t(no.LoadingContent,!k&&no.Spinner),children:n(ro,{size:"small",color:"inherit",children:M})});return y?n(Zn,{to:y,className:z,onPress:a,"aria-busy":p,"aria-live":p?"assertive":"polite",children:[R,p&&"spinner"===C&&A]}):n("button",{type:N,className:z,disabled:o||p,onClick:v,"aria-busy":p,"aria-live":p?"assertive":"polite",ref:f,children:[R,p&&"spinner"===C&&A]})}),to={InlineStack:"xbP8T",spacingXtight:"MnY5j",spacingTight:"oweDI",spacingLoose:"_9Wkb7",spacingXloose:"egIQs",alignmentLeading:"JBAUV",alignmentCenter:"tEPo1",alignmentTrailing:"_8kU9E",alignmentBaseline:"_1d4vg"};function ao({spacing:e,alignment:r,children:o}){const a=t(to.InlineStack,e&&to[B("spacing",e)],r&&to[B("alignment",r)]);return n("div",{className:a,children:o})}function io({children:e}){return n(ao,{alignment:"center",children:e})}function so(e){return`error-for-${e}`}function co({children:e}){return n("span",{"aria-hidden":"true",children:e})}function lo({children:e,controlID:r}){return n("p",{className:"IZGO7",id:r?so(r):void 0,children:e})}function uo({children:e}){return n("span",{className:"q6PFP",children:e})}const po={Wrapper:"PDMGs",hasError:"o7KtC",errorIndentationToText:"XRqWc",Checkbox:"HyDWS",Input:"giGGc",Icon:"DKMqn","Input-hasError":"eADQA","Input-backgroundTransparent":"iFRwL","Input-backgroundSurfacePrimary":"kEW1r","Input-backgroundSurfaceSecondary":"biGeI","Input-backgroundSurfaceTertiary":"_2s0y0","Input-borderColorEmphasized":"nZlde","Input-isDisabled":"Py3dv",Label:"Y0iFQ","Label-isDisabled":"idTjj",Error:"_9XLCJ"},go=Pn("Checkbox");function ho({id:e,name:r,accessibilityLabel:o,error:a,disabled:i,children:s,...c}){const l=En(e,go),{checkbox:{errorIndentation:u,errorTypographyStyle:p}}=Hr(),g=a?n("div",{className:t(po.Error,p&&zn[p]),children:n(lo,{controlID:l,children:a})}
1):null,h=t(po.Label,i&&po["Label-isDisabled"]),m=Boolean(a);return n("div",{className:t(po.Wrapper,m&&po.hasError,m&&u&&po[B("errorIndentation",u)]),children:[n(mo,{id:l,name:r,error:Boolean(a),disabled:i,...c}),n("label",{htmlFor:l,className:h,children:o?n(d,{children:[n(uo,{children:o}),n(co,{children:s})]}):s}),g]})}function mo({id:e,name:r,value:o=!1,checked:a=o,disabled:i,error:s=!1,onChange:c}){const{controls:{background:l},checkbox:{background:d,borderColor:u="base"}}=Hr(),p=t(po.Input,s&&po["Input-hasError"],i&&po["Input-isDisabled"],po[B("Input-background",d||l||"surfaceTertiary")],po[B("Input-borderColor",u)]);return n("div",{className:po.Checkbox,children:[n("input",{type:"checkbox",id:e,name:r,checked:a,disabled:i,onChange:({currentTarget:e})=>{c?.(e.checked)},className:p,"aria-describedby":s?so(e):void 0,"aria-invalid":s}),n("div",{className:po.Icon,children:n(An,{source:"checkmark",size:"small"})})]})}const bo={Link:"occN5",underline:"xonXO",colorHoveredColor1:"dZPXf",colorHoveredColor2:"Gdq36",colorPressedColor1:"eqsiw",colorPressedColor2:"IwUJJ"},yo=new Set([...new Set(["http","https"]),"mailto","tel","sms"]);function vo({to:e,language:r,children:o,onPress:a,underline:i,...s}){const{link:{colorHovered:c,colorPressed:l}}=Hr();if(!e)return n(oo,{onPress:a,plain:!0,underline:!0,...s,children:o});const d=function(e){try{const r=new URL(e,window.location.origin).protocol.replace(":","");return yo.has(r)?e:"#"}catch{return e}}(e);return n(Zn,{className:t(bo.Link,i&&bo.underline,c&&bo[B("colorHovered",c)],l&&bo[B("colorPressed",l)]),to:d,onPress:a,language:r,...s,children:o})}const fo={base:0,small:750,medium:1e3,large:1200};function So(e){return function(e,r){if(!r)return;if(void 0!==e[r])return e[r];const n=Object.keys(fo);for(let o=n.indexOf(r);o>=0;o--){const r=n[o];if(void 0!==e[r])return e[r]}}(e,function(){const e=o(()=>function({addMaxWidth:e}={addMaxWidth:!0}){return Object.entries(fo).map(([r,n],o,t)=>{const a=t[o+1],[,i]=a||[];return{breakpoint:r,query:i&&e?`(min-width: ${n}px) and (max-width: ${i-1}px)`:`(min-width: ${n}px)`}})}(),[]),r=c(()=>{const r=e.find(({query:e})=>window.matchMedia(e).matches);return r?r.breakpoint:void 0},[e]),[n,t]=s(r());return i(()=>{const e=()=>{const e=r();n!==e&&t(e)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[n,r,e]),n}())}function ko(e,r=10){return e/r+"rem"}function Bo(e){return e>1?ko(e):100*e+"%"}const xo='\n a[href],\n area[href],\n input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]):not([tabindex="-1"]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls]',wo="YqJKm",To=({children:e,onContainerFocus:r})=>{const o=a(null),t=a(null),i=a(null);p(()=>{i.current?.focus({preventScroll:!0})},[]);const s=e=>{const r=i.current;if(r){const n=e?function(e,r=!0){return!r&&e.matches(xo)?e:e.querySelector(xo)}(r):function(e,r=!0){if(!r&&e.matches(xo))return e;const n=e.querySelectorAll(xo);return n[n.length-1]}(r);n?n.focus():r.focus()}};return n(d,{children:[n("button",{className:wo,ref:o,"aria-hidden":"true",onFocus:()=>s(!1),type:"button"}),w(e,{tabIndex:-1,ref:i,onFocus:r}),n("button",{className:wo,ref:t,"aria-hidden":"true",onFocus:()=>s(!0),type:"button"})]})},Io=Pn("Portal");function Po({children:e}){const[r,n]=s(null),o=En(void 0,Io);return i(()=>{const e=document.getElementById("PortalHost")??document.body,r=document.createElement("div");return r.setAttribute("id",o),r.setAttribute("class","_31OOl"),e.appendChild(r),n(r),()=>{e.removeChild(r)}},[o]),r&&T(e,r)}const Eo={Backdrop:"CzBEl",Dialog:"bUMzc",transitionEntered:"PfnJm",Modal:"Zqwd3",Content:"CjXfl","Dialog-blockSizeFill":"JOey5",IFrame:"Eep2v",Header:"_9bDa6",CloseButton:"IfNYu"},Lo=Pn("ModalHeading");function Co({maxInlineSize:e,blockSize:r,open:o,title:l,titleHidden:d,source:u,noMountTransition:p=!1,children:g,...h}){const m=h.blocking,b=h.blocking?void 0:h.onClose,y=Pe(),[v,f]=s(),S=a(null),k=a(null),x=En(void 0,Lo),w=Xn(o,"fast",!p),T=Eo[B("transition",w)],I=So({base:!0,medium:!1});i(()=>{"enter"===w&&(document.body.style.overflow="hidden",S.current=document.activeElement),"exited"===w&&(document.body.style.overflow="auto",S?.current instanceof HTMLElement&&S.current.focus(),f(void 0))},[w]),i(()=>()=>{document.body.style.overflow="auto"},[]),i(()=>{const e=e=>{"Escape"!==e.key&&"Esc"!==e.key||m||b?.()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}},[m,b]);const P=c(e=>{const r=e.target;if(r&&r.contentWindow)try{f(r.contentWindow.document.body.scrollHeight)}catch{f(-1)}},[]);if("exited"===w)return null;const E=d?{"aria-label":l}:{"aria-labelledby":x},L=(!d||!m)&&n("header",{className:Eo.Header,children:[d?n("span",{}):n(_n,{level:1,id:x,children:l}),!m&&n("button",{type:"button",className:Eo.CloseButton,onClick:b,"aria-label":y("close")||"Close",children:n(An,{source:"close",size:"large"})})]}),C=u?n("iframe",{src:u,title:l,className:Eo.IFrame,...v&&v>0&&{style:{height:v}},...!r&&{onLoad:P}}):n("div",{className:Eo.Content,...(r||I)&&{tabIndex:0},children:g});return n(Po,{children:n("div",{className:Eo.Modal,ref:k,children:[n("div",{className:t(Eo.Backdrop,T),onClick:function(){b?.()}}),n(To,{onContainerFocus:()=>{setTimeout(()=>{const e=k.current;e?.scrollTo(0,0)},0)},children:n("div",{className:t(Eo.Dialog,T,{[Eo["Dialog-blockSizeFill"]]:"fill"===r||-1===v}),role:"dialog","aria-modal":!0,style:{...e&&{maxWidth:Bo("fill"===e?1:e)}},...E,children:[L,C]})})]})})}function zo({checked:e,onChange:r,error:o,policy:t}){return"subscriptions"===t?n(Mo,{checked:e,onChange:r,error:o}):null}function Mo({checked:e,onChange:r,error:o}){const[t,a]=s(!1),i=Pe(),{merchantPolicies:c}=Ie().shop,l=c?.find(e=>"subscription-policy"===e.handle),u=i("subscription.cancelled");return n(d,{children:[n(ho,{name:"subscription_agreement",checked:e,onChange:r,error:o,children:i("subscription.agreement",{cancelled:l?n(vo,{onPress:()=>a(!0),children:u}):u})}),l&&n(Co,{open:t,title:i("subscription.policy"),source:l.url,onClose:()=>a(!1)})]})}const _o={CalloutBanner:"SOPT0",borderBlock:"nKTUa",backgroundSecondary:"fGe9g",backgroundTransparent:"fhec3"};function Ro({title:e,children:r,border:o="block",background:a="secondary",alignment:i="center",spacing:s="tight"}){const c=e&&n(_n,{level:3,children:e});return n("div",{className:t(_o.CalloutBanner,o&&_o[B("border",o)],a&&_o[B("background",a)]),role:"status","aria-atomic":"true","aria-live":"polite",children:n(Dn,{alignment:"leading"===i?void 0:i,spacing:s,children:n(xe,{children:[c,n(On,{children:r})]})})})}
1function No({onSubmit:e,children:r,disabled:o=!1,implicitSubmit:t=!0}){const a=Pe(),i=!1===t?null:n(uo,{children:n("button",{type:"submit",disabled:o,tabIndex:-1,"aria-hidden":!0,children:"string"==typeof t?t:a("submit")})});return n("form",{action:"",method:"POST",noValidate:!0,onSubmit:r=>{o||(r.preventDefault(),e())},className:"_9o02B",children:[r,i]})}const Ao={Group:"_4uFg4",spacingTight:"Zroh1"};function Fo({children:e}){const{formLayout:{spacing:r}}=Hr();return n(Vn,{spacing:"base"===r?void 0:r,children:e})}function Do({children:e}){const{formLayout:{spacing:r}}=Hr();return n("div",{className:t(Ao.Group,r&&"base"!==r&&Ao[B("spacing",r)]),children:e})}const Wo={Image:"oiNTK",bordered:"ENwjc",aspectRatio:"Kkl3o",fitContain:"_9HP9S",fitCover:"LHbWP"},jo=new Map([["small","(max-width: 600px)"],["medium","(max-width: 1200px)"],["large","(min-width: 1201px)"]]);function $o({source:e,sources:r,description:o="",fit:a,bordered:i,loading:s,aspectRatio:c,decorative:l}){const d=r&&r.reduce((e,{source:r,viewportSize:n,resolution:o})=>{const t=n&&jo.get(n),a=e.find(({media:e})=>t===e),i=[r,o&&`${o}x`].join(" ").trim();return a?(a.srcSet+=`, ${i}`,e):[...e,{media:t,srcSet:i}]},[]).map(e=>n("source",{...e})),u=t(Wo.Image,i&&Wo.bordered,a&&Wo[B("fit",a)]);return n(qo,{condition:!0===l,children:n(Oo,{condition:null!=c,aspectRatio:c,children:n(Ho,{condition:null!=d,children:[d,n("img",{src:e,alt:o,className:u,loading:s})]})})})}function qo({children:e,condition:r}){return n(r?co:d,{children:e})}function Oo({children:e,condition:r,aspectRatio:o}){return r?n("div",{className:Wo.aspectRatio,style:{paddingBottom:`calc(100% / ${o})`},children:e}):n(d,{children:e})}function Ho({children:e,condition:r}){return n(r?"picture":d,{children:e})}const Go={Layout:"HZoss",blockAlignmentTrailing:"XarlU",blockAlignmentCenter:"YTxaJ",inlineAlignmentLeading:"_9qVBD",inlineAlignmentTrailing:"F2fuL",LayoutInner:"VjRYe","LayoutInner-inlineAlignmentLeading":"_8Bkjq","LayoutInner-inlineAlignmentTrailing":"fITy1"},Jo=new Map([["small","@media all and (max-width: 749px)"],["medium","@media all and (min-width: 750px) and (max-width: 1199px)"],["large","@media all and (min-width: 1200px)"]]),Uo=Pn("Layout");function Qo({inlineAlignment:e,blockAlignment:r,maxInlineSize:o,sizes:a,media:i,children:s}){const c=En(void 0,Uo),l=`.${c} > .${Go.LayoutInner}`,u=t(Go.Layout,c,r&&Go[B("blockAlignment",r)],e&&Go[B("inlineAlignment",e)]),p=t(Go.LayoutInner,e&&Go[B("LayoutInner-inlineAlignment",e)]),g={viewportSize:"default",sizes:a,maxInlineSize:o},h=function(e,r){return r.reduce((r,{viewportSize:n,maxInlineSize:o,sizes:t})=>{const a=t&&function(e,r){return r.reduce((r,n,o)=>{const t="fill"===n,a="number"!=typeof n,i="number"==typeof n?Bo(n):"auto";return[r,`\n ${e} > :nth-child(${o+1}) {\n flex: ${t?"1":"0"} ${a?"1":"0"} ${i};\n max-width: ${i};\n }\n `].join(" ")},"")}(e,t),i=[a,t?.includes(1)?`${e} { flex-wrap: wrap; }`:"",o?`${e} { max-width: ${Bo(o)}; }`:""];return[r,..."default"===n||void 0===Jo.get(n)?i:[Jo.get(n),"{",...i,"}"]].join(" ")},"")}(l,i?[g,...i]:[g]);return n(d,{children:n("div",{className:u,children:[n("style",{children:h}),n("div",{className:p,children:s})]})})}const Vo={Wrapper:"tstNy",Radio:"c0kTe",Input:"fOxEo","Input-sizeBase":"EY8QG","Input-sizeLarge":"TxORn","Input-checkedStyleRing":"_9tjNu","Input-checkedStyleDisc":"oQ4o1","Input-checkedColorInteractive":"WuWVP","Input-c
1heckedColorPrimary":"s0SXQ","Input-isDisabled":"aQaN9","Input-backgroundSurfacePrimary":"HG87V","Input-backgroundSurfaceSecondary":"MZDuc","Input-backgroundSurfaceTertiary":"rED7c","Input-backgroundTransparent":"ENiw1","Input-borderColorEmphasized":"Mexwm",Label:"_8G4jN","Label-isDisabled":"UJrFL"},Yo=Pn("Radio");function Ko({id:e,accessibilityLabel:r,children:o,disabled:a,...i}){const s=En(e,Yo),c=t(Vo.Label,a&&Vo["Label-isDisabled"]);return n("div",{className:Vo.Wrapper,children:[n(Xo,{id:s,disabled:a,...i}),n("label",{htmlFor:s,className:c,children:r?n(d,{children:[n(uo,{children:r}),n(co,{children:o})]}):o})]})}const Xo=({id:e,name:r,value:o=!1,checked:a=o,disabled:i,onChange:s})=>{const{controls:{background:c},radio:{background:l,borderColor:d="base",checkedStyle:u="ring",checkedColor:p="interactive",size:g="base"}}=Hr(),h=l||c||"surfaceTertiary",m=t(Vo.Input,i&&Vo["Input-isDisabled"],Vo[B("Input-size",g)],Vo[B("Input-background",h)],Vo[B("Input-borderColor",d)],Vo[B("Input-checkedStyle",u)],Vo[B("Input-checkedColor",p)]);return n("div",{className:Vo.Radio,children:n("input",{type:"radio",id:e,name:r,checked:a,disabled:i,onChange:({currentTarget:e})=>{s?.(e.checked)},className:m})})},Zo=new Map([["telephone","tel"],["credit-card","cc"],["birthday","bday"],["expiry","exp"],["security-code","csc"],["instant-message","impp"]]);function et(e){if(null==e)return;if(!1===e)return"none";if(!0===e)return"on";const{group:r,field:n}=e,o=n.replace(/(?:telephone|credit-card|expiry|security-code|instant-message)/g,e=>Zo.get(e)??e);return r?`${r} ${o}`:o}const rt={Text:"wgIZT",subdued:"g0VDz",emphasized:"gIDtT",appearanceAccent:"R5x0Q",appearanceSuccess:"_5twot",appearanceWarning:"zrFpd",appearanceCritical:"pGVcI",sizeXsmall:"GhrMi",sizeSmall:"_8z3Vh",sizeMedium:"yHciV",sizeLarge:"hEwEw",sizeXlarge:"ZfTam",Abbr:"wUae1"};function nt({children:e,size:r,emphasized:o,subdued:a,appearance:i,role:s,style:c,id:l}){const d=t(rt.Text,o&&rt.emphasized,o&&Ne,a&&rt.subdued,a&&Re,r&&rt[B("size",r)],i&&rt[B("appearance",i)],i&&"accent"===i&&Ae,c&&zn[c]),u=o?n("strong",{children:e}):e,p={className:d,id:l};if("string"==typeof s)switch(s){case"address":return n("address",{...p,children:u});case"deletion":return n("del",{...p,children:u});default:throw new fe("Invalid Textâs role")}if("object"==typeof s)switch(s.type){case"abbreviation":return n("abbr",{defaultProps:p,className:t(d,rt.Abbr),title:s.for,children:u});case"directional-override":return n("bdo",{...p,dir:s.direction,children:u});case"datetime":return n("time",{...p,dateTime:s.machineReadable,children:u});default:throw new fe("Invalid Textâs role")}return n(o?"strong":"span",{...p,children:e})}const ot={Truncate:"UOOjT",variationEllipsis:"uXhbj"};function tt({children:e,variation:r="ellipsis"}){return n("span",{className:t(ot.Truncate,r&&ot[B("variation",r)]),children:e})}const at={Wrapper:"zvnsh",Label:"XzyTi","Label-positionInside":"LTf4Q","Label-onBackgroundSurfacePrimary":"_4C7ll","Label-onBackgroundSurfaceSecondary":"ZbP0Y","Label-onBackgroundSurfaceTertiary":"eeIkA","Label-positionOutside":"ukV2A","Label-isPlaceholder":"EESHa",Select:"kt285","Select-labelOutside":"jh8xU","Select-labelInline":"NSJFm","Select-backgroundTransparent":"a3I80","Select-backgroundSurfacePrimary":"ZAVmF",Selector:"_8ky8x","Selector-borderColorEmphasized":"IBq5Q","Select-backgroundSurfaceSecondary":"IdVUz","Select-backgroundSurfaceTertiary":"kyrIc","Select-borderNone":"HsEAL","Select-focusBorderFull":"rDBCs",hasError:"fpvwY","Select-focusBorderBlockEnd":"_3OFrW","Select-borderFull":"TxjZ0","Select-borderBlockEnd":"UvvoM","Select-borderColorEmphasized":"_5ZuhZ","Select-isDisabled":"VWkGa","Select-isReadOnly":"OA8Hj","Selector-separated":"JxZDR","Error-errorIndentationToText":"RbVkf"},it=Pn("Select");function st({id:e,name:r,label:o,options:a,value:i="",disabled:s,readonly:c,required:l,error:u,autocomplete:p,placeholder:g,onChange:h}){const{controls:{background:m},select:{labelPosition:b="inside",background:y,border:v="full",borderColor:f="base",focusBorder:S="full",disclosureIcon:k="caretDown",disclosureIconSeparator:x=!0,t
1ypographyStyle:w,errorIndentation:T,errorTypographyStyle:I},label:{typographyStyle:P}}=Hr(),E=En(e,it),L=y||m||"surfaceTertiary",C=u&&n("span",{className:t(T&&at[B("Error-errorIndentation",T)],I&&zn[I]),children:n(lo,{controlID:E,children:u})}),z=t(at.Select,Boolean(u)&&at.hasError,s&&at["Select-isDisabled"],c&&at["Select-isReadOnly"],at[B("Select-label",b)],at[B("Select-background",L)],at[B("Select-border",v)],at[B("Select-borderColor",f)],at[B("Select-focusBorder",S)],w&&zn[w]),M=n("label",{className:t(at.Label,at[B("Label-position",b)],{[at["Label-isPlaceholder"]]:""===i&&g===o},at[B("Label-onBackground",L)]),htmlFor:E,children:n(nt,{size:""!==i||g!==o||"inside"===b?"small":void 0,subdued:!0,style:P,children:n(tt,{children:o})})}),_=n("div",{children:["outside"===b?M:null,n("div",{className:at.Wrapper,children:["inside"===b&&M,n("select",{name:r,id:E,disabled:s,onChange:e=>h?.(e.target.value),required:l,value:i,className:z,"aria-describedby":u?so(E):void 0,"aria-invalid":Boolean(u),autoComplete:et(p),children:[g&&(""===i||g!==o)&&n("option",{value:"",hidden:g===o,disabled:!0,children:g===o?n(d,{children:"Â "}):g}),a.map(e=>n("option",{value:e.value,disabled:e.disabled||c,children:e.label},e.value))]}),n("div",{className:t(at.Selector,x&&at["Selector-separated"],x&&at[B("Selector-borderColor",f)]),children:n(An,{source:k,size:"small"})})]})]});return n(Vn,{spacing:"tight",children:[_,C]})}const ct={Separator:"AHJia",directionHorizontal:"nHtsq",directionVertical:"_2xVXH"},lt={thin:"1px",medium:"3px",thick:"5px",xthick:"10px"};function dt({width:e="thin",direction:r="horizontal"}){const o={horizontal:{borderBottomWidth:lt[e]},vertical:{borderRightWidth:lt[e]}};return n("div",{className:t(ct.Separator,ct[B("direction",r)]),style:o[r]})}const ut=r(!1),pt={TextBlock:"jeX3G",subdued:"KIbI9",emphasized:"_4T5X4",appearanceAccent:"V7LhS",appearanceSuccess:"ZWtpk",appearanceWarning:"_87JsI",appearanceCritical:"JjQZa",sizeSmall:"N95rF",sizeMedium:"dI6aB",sizeLarge:"EvsJm",sizeXlarge:"D0Aw4"};function gt({children:e,size:r,emphasized:o,subdued:a,appearance:i,style:s,id:c}){const l=t(pt.TextBlock,r&&pt[B("size",r)],o&&pt.emphasized,o&&Ne,a&&pt.subdued,a&&Re,i&&pt[B("appearance",i)],i&&"accent"===i&&Ae,s&&zn[s]),d=o?n("strong",{children:e}):e;return n(ut.Provider,{value:!0,children:n("p",{className:l,id:c,children:d})})}function ht(e){return!e||""===e}const mt=r(void 0),bt={Wrapper:"SxYag","Label-positionInside":"fhPbt","Label-onBackgroundSurfacePrimary":"YSlfF","Label-onBackgroundSurfaceSecondary":"zCv2y","Label-onBackgroundSurfaceTertiary":"f4qYp","Label-isSubdued":"jir88","Label-positionOutside":"fjuC5",isFloating:"j5nyn",Label:"nVJMC"};function yt({children:e,label:r,htmlFor:s,isEmpty:l=!0,position:d="inside",background:u="surfaceTertiary",subdued:p}){const g=function(){const e=a(!1);return i(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[h,m]=I((e,r)=>{if(!g.current)return e;switch(r.type){case"focus":return{...e,isFocused:!0};case"blur":return{...e,isFloating:!e.isEmpty,isFocused:!1};case"change":return{...e,isFloating:!0,isEmpty:r.isEmpty};case"init":return{...e,isFloating:!r.isEmpty,isEmpty:r.isEmpty}}},{isEmpty:l,isFloating:!l,isFocused:!1});i(()=>{h.isFocused||h.isEmpty===l||m({type:"init",isEmpty:l})},[l]);const b=c(()=>m({type:"focus"}),[]),y=c(()=>m({type:"blur"}),[]),v=c(e=>m({type:"change",isEmpty:e}),[]),f=o(()=>({...h,onBlur:y,onChange:v,onFocus:b}),[y,v,b,h]),{label:{typographyStyle:S}}=Hr();return n(mt.Provider,{value:f,children:n("div",{className:bt.Wrapper,children:n("div",{className:t({[bt.isFloating]:h.isFloating&&"inside"===d}),children:[n("label",{htmlFor:s,className:t(bt.Label,bt[B("Label-position",d)],p&&bt["Label-isSubdued"],u&&bt[B("Label-onBackground",u)]),children:n(nt,{size:"small",subdued:!0,style:S,children:n(tt,{children:r})})}),e]})})})}const vt=r(null);function ft(){const r=e(vt);if(null===r)throw new fe("No Popper in context");return r}function St({children:e,offset:r,placement:t="blockStart",preventOverflow:a,activator:i,sameInlineSize:l,minInlineSize:d}){const u=function(e){const[r,n]=s(null),o=c(()=>{null!==e&&n(e.getBoundingClientRect())},[e]);return p(()=>(o(),window.addEventListener("resize",o),window.addEventListener("scroll",o),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",o)}),[o]),r}(i),[g,h]=function(){const[e,r]=s(null);return[e,c(e=>{null!==e&&r(e.getBoundingClientRect())},[])]}(),{clipping:m,offsets:b,spacing:y}=o(()=>function(e,r,n,{offset:o=0,preventOverflow:t=!1,sameInlineSize:a=!1}={}){let i={x:0,y:0},s={left:0,right:0},c=0;if(!r||!n)return{offsets:i,clipping:s,spacing:c};const l=a?n.left:n.left+n.width/2-r.width/2,d=n.top+n.height/2-r.height/2;switch(e){case"blockStart":i={x:l,y:n.top-r.height-o};break;case"blockEnd":i={x:l,y:n.bottom+o};break;case"inlineStart":i={x:n.left-r.width-o,y:d};break;
1case"inlineEnd":i={x:n.right+o,y:d}}return t&&(s=function(e,r){const n=document.documentElement.clientWidth,o=e.x+r.width;let t={left:0,right:0};return o>n&&(t={...t,right:n-o}),e.x<0&&(t={...t,left:-e.x}),t}(i,r),s.right&&!s.left&&(i.x+=s.right,c=-10),!s.right&&s.left&&(i.x=0,c=10)),{offsets:i,clipping:s,spacing:c}}(t,g,u,{offset:r,preventOverflow:a,sameInlineSize:l}),[r,t,g,a,u,l]),v=o(()=>({clipping:m,offsets:b,placement:t,popperRect:g,referenceRect:u,spacing:y}),[m,b,t,g,u,y]),{x:f,y:S}=function({x:e,y:r}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(r*n)/n||0}}({x:b.x+y+(window.scrollX||window.pageXOffset),y:b.y+(window.scrollY||window.pageYOffset)}),k=(window.devicePixelRatio||1)<2?`translate(${f}px, ${S}px)`:`translate3d(${f}px, ${S}px, 0)`;return n(vt.Provider,{value:v,children:n(Po,{children:n("div",{className:"_6ruy3",style:{...u&&{transform:k,MozTransform:k,WebkitTransform:k,...l&&{width:u.width},...d&&{minWidth:ko(d)}}},ref:h,children:e})})})}const kt={Wrapper:"IbPNg",Button:"nDyVA",Tooltip:"awl9J",transitionEntered:"el1S2",transitionExit:"pLPLd",transitionExiting:"RnX2a",Arrow:"pmIGY","Tooltip-backgroundSurfacePrimary":"_3yAoT","Tooltip-backgroundSurfaceSecondary":"eY5YR","Tooltip-backgroundSurfaceTertiary":"e7NEz","Tooltip-opacityTranslucent":"_8ekQS","Tooltip-opacityOpaque":"i34YA","Tooltip-borderRadiusNone":"_2saX4","Tooltip-borderRadiusTight":"_9T8DA","Tooltip-borderRadiusBase":"x1Cux","Tooltip-borderRadiusFullyRounded":"PhMp8"},Bt=Pn("Tooltip");function xt({content:e,children:r}){const[o,t]=s(!1),i=a(null),c=a(!1),l=Xn(o,{exit:"base"}),d=En(void 0,Bt),u=o?d:void 0;return n("div",{className:kt.Wrapper,children:[n("button",{type:"button",className:kt.Button,"aria-pressed":o,"aria-controls":u,"aria-describedby":u,onFocus:()=>{c.current||t(!0)},onBlur:()=>{c.current||t(!1)},onMouseEnter:()=>{c.current||t(!0)},onMouseLeave:()=>{t(!1)},onTouchStart:()=>{c.current=!0},onClick:()=>{t(e=>!e)},onKeyDown:function(e){switch(e.key){case"Enter":case"Space":e.preventDefault(),t(e=>!e);break;case"Escape":case"Esc":e.preventDefault(),t(!1)}},ref:i,children:r}),"exited"!==l&&n(St,{activator:i.current,preventOverflow:!0,children:n(wt,{content:e,id:u,onMouseEnter:()=>{c.current||t(!0)},onMouseLeave:()=>{t(!1)},transition:l})})]})}function wt({content:e,id:r,onMouseEnter:o,onMouseLeave:a,transition:i}){const{clipping:s,spacing:c}=ft(),{tooltip:{background:l,opacity:d="translucent",borderRadius:u="base",textAlignment:p="center"}}=Hr(),g=(s.right||s.left)&&`calc(50% - ${(s.right||s.left)+c}px)`,h=t(kt.Tooltip,kt[B("transition",i)],kt[B("Tooltip-opacity",d)],kt[B("Tooltip-borderRadius",u)],l&&kt[B("Tooltip-background",l)]);return n("div",{id:r,role:"tooltip",onMouseEnter:o,onMouseLeave:a,className:h,style:{...g&&{transformOrigin:`${g} 120%`}},children:[n(Dn,{alignment:"start"===p?"leading":p,children:n(gt,{size:"small",children:e})}),n(Tt,{})]})}function Tt(){const{clipping:e,spacing:r}=ft(),o=(e.right||e.left)&&`calc(${"ltr"===document.dir?"-50":"50"}% - ${(e.right||e.left)+r}px)`,t=(window.devicePixelRatio||1)<2?`translate(${o}, 0)`:`translate3d(${o}, 0, 0)`;return n("div",{className:kt.Arrow,style:{...o&&{transform:t,MozTransform:t,WebkitTransform:t}}})}const It={Wrapper:"DH3Lj",Field:"IwgL6","Field-isFloating":"_24ZCV","Field-hasTooltip":"PSuwk","Field-backgroundTransparent":"VpMLh","Field-backgroundSurfacePrimary":"pzNEy",Tooltip:"TBKkQ","Field-backgroundSurfaceSecondary":"SN65D","Field-backgroundSurfaceTertiary":"rm2lq","Field-borderNone":"zp5Uq","Field-focusBorderFull":"ud1CI",hasError:"ks0iI","Field-focusBorderBlockEnd":"ONy0r","Field-borderFull":"IbPFL","Field-borderBlockEnd":"K1c22","Field-borderColorEmphasized":"L9KMr","Error-errorIndentationToText":"_2Ei4t","Field-isDisabled":"QMBIY","Field-isReadOnly":"f8i8Y"},Pt=Pn("TextField"),Et=x(function(e,r){const{controls:{background:o},textFields:{labelPosition:a,background:i,errorIndentation:s,errorTypographyStyle:c}}=Hr(),l=i||o||"surfaceTertiary",{accessibilityDescription:d,error:u,id:p,label:g,tooltip:h,value:m}=e,b=En(p,Pt),y=d?`${b}-description`:void 0,v=y?n(uo,{children:n(nt,{id:y,children:d})}):null,f=u&&n("span",{className:t(s&&It[B("Error-errorIndentation",s)],c&&zn[c]),children:n(lo,{controlID:b,children:u})}),S=h?n("div",{className:It.Tooltip,children:n(xt,{content:h.content,children:[n(uo,{children:h.label}),n(An,{source:"questionFill",size:"large",appearance:"subdued"})]})}):null;return n(Vn,{spacing:"tight",children:[n(yt,{label:g,htmlFor:b,isEmpty:ht(m),position:a,background:l,subdued:e.readonly,children:n("div",{className:It.Wrapper,children:[v,n(Lt,{ref:r,...e,id:b,ariaDescribedBy:y}
1),S]})}),f]})}),Lt=x(function({id:r,min:n,max:o,step:l,name:d,label:u,value:p,controlledValue:g,type:h="text",role:m,required:b,error:y,tooltip:v,autocomplete:f,autoFocus:S,multiline:k,disabled:x,readonly:w,ariaActiveDescendant:T,ariaAutocomplete:I,ariaControls:E,ariaDescribedBy:L,ariaExpanded:C,onFocus:z,onBlur:M,onChange:_,onInput:R,onKeyDown:N},A){const F=a(),D=c(e=>{"function"==typeof A?A(e):A&&(A.current=e),F.current=e},[A]);i(()=>{S&&F.current?.focus()},[S]);const{controls:{background:W},textFields:{labelPosition:j="inside",background:$,border:q="full",borderColor:O="base",focusBorder:H="full",typographyStyle:G},label:{typographyStyle:J}}=Hr(),U=$||W||"surfaceTertiary",Q=function(){const r=e(mt);if(null==r)throw new fe("No labelled in context");return r}(),[V,Y]=function(e){const[r,n]=s(e),o=a(e);let t=r;return o.current!==e&&(o.current=e,n(e),t=e),[t,n]}(g??p),K=t(It.Field,Boolean(y)&&It.hasError,Boolean(v)&&It["Field-hasTooltip"],Q.isFloating&&"outside"!==j&&It["Field-isFloating"],x&&It["Field-isDisabled"],w&&It["Field-isReadOnly"],It[B("Field-background",U)],It[B("Field-border",q)],It[B("Field-borderColor",O)],It[B("Field-focusBorder",H)],G&&zn[G],J&&zn[B("placeholder",J)]),X=[L,y&&so(r)].filter(Boolean).join(" ");return P(k?"textarea":"input",{id:r,min:n,max:o,step:l,name:d,placeholder:Q.isFloating||"outside"===j?void 0:u,className:K,required:b,type:Ct(k?void 0:h),disabled:x,readOnly:w,"aria-activedescendant":T,"aria-autocomplete":I,"aria-controls":E,"aria-describedby":X,"aria-expanded":C,"aria-invalid":Boolean(y),"aria-required":b,onBlur:({currentTarget:{value:e}})=>{e!==(p??"")&&_?.(e),M?.(),Q.onBlur()},onChange({currentTarget:{value:e}}){Y(e),"function"==typeof R&&R(e),Q.onChange(ht(e))},onFocus:()=>{z?.(),Q.onFocus()},onKeyDown:N,ref:D,role:m,value:V,autoComplete:et(f),autoFocus:S})});function Ct(e){return"telephone"===e?"tel":e}const zt={Tiles:"WD2BB",spacingNone:"zBxYI",spacingXtight:"oZ7y8",spacingTight:"BuLdd",spacingLoose:"_6g6G1",spacingXloose:"mW6Tc",alignmentLeading:"_29xdS",alignmentCenter:"tTD6D",alignmentTrailing:"VzRf2",alignmentBaseline:"_5v7xp",doesNotWrap:"CQtfp",doesNotBreak:"_3Pf9z"};function Mt({children:e,maxPerLine:r,breakAt:o,alignment:a,spacing:i}){const s=t(zt.Tiles,i&&zt[B("spacing",i)],a&&zt[B("alignment",a)],r?void 0:zt.doesNotWrap,o?void 0:zt.doesNotBreak),c=r?100/r+"%":"0",l=o?ko(o):"0";return n(On,{children:n("div",{className:s,style:{"--tile-width":c,"--tiles-breakpoint":l},children:e})})}const _t=new WeakMap,Rt=new Set([K,be]);function Nt({input:e,scriptUrl:r,onError:t,onStopwatchMark:l,developmentMode:d,liveReload:u}){const[p,g]=s(!1),h=o(()=>X(l),[l]);me("post-purchase",{pageWasPainted:p});const{client:m,observability:b}=R(),y=o(()=>function({notifyError:e}){const r=(r,o)=>function(e,{publicProps:r,notifyError:o,extension:t}){const a=e.displayName??e.name,i=i=>{const s={},{children:c}=i;for(const e of r){const r=i[e];s[e]="function"==typeof r?async function(...e){try{return await r.apply(this,e)}catch(n){o(new ye(`Error in ${a} component event handler: ${n}`,{cause:n}))}}:r}const l=function(e,r,n){const{id:o}=n;if(o&&r&&Rt.has(e)){const{onOpen:e,onClose:t}=n;return{...n,onOpen:()=>{e?.(),_t.has(r)||_t.set(r,new Set),_t.get(r)?.add(o)},onClose:()=>{t?.(),_t.get(r)?.delete(o)}}}return n}(e,t,s);return n(e,{...l,children:c})};return i.displayName=`Extension(${a})`,i}(r,{publicProps:o,notifyError:e});return{Banner:r(Un,["collapsible","iconHidden","status","title"]),BlockStack:r(Vn,["alignment","spacing"]),Bookend:r(Cn,["alignment","leading","spacing","trailing"]),Button:r(oo,["disabled","loading","loadingLabel","onPress","plain","subdued","submit","to"]),ButtonGroup:r(io,[]),BuyerConsent:r(zo,["checked","error","onChange","policy"]),CalloutBanner:r(Ro,["alignment","background","border","spacing","title"]),Checkbox:r(ho,["accessibilityLabel","checked","disabled","error","id","name","onChange","value"]),Form:r(No,["disabled","implicitSubmit","onSubmit"]),FormLayout:r(Fo,[]),FormLayoutGroup:r(Do,[]),Heading:r(_n,["id","level","role"]),HeadingGroup:r(xe,[]),HiddenForAccessibility:r(co,[]),Image:r($o,["as
1pectRatio","bordered","decorative","description","fit","loading","source","sources"]),InlineStack:r(ao,["alignment","spacing"]),Layout:r(Qo,["blockAlignment","inlineAlignment","maxInlineSize","media","sizes"]),Link:r(vo,["external","id","onPress","to"]),Radio:r(Ko,["accessibilityLabel","checked","disabled","id","name","onChange","value"]),Select:r(st,["autocomplete","disabled","error","id","label","name","onChange","options","placeholder","required","value"]),Separator:r(dt,["direction","width"]),Spinner:r(ro,["color","size"]),Text:r(nt,["appearance","emphasized","id","role","size","subdued"]),TextBlock:r(gt,["appearance","emphasized","id","size","subdued"]),TextContainer:r(Dn,["alignment","spacing"]),TextField:r(Et,["autocomplete","error","id","label","multiline","name","onBlur","onChange","onFocus","onInput","required","tooltip","type","value"]),Tiles:r(Mt,["alignment","breakAt","maxPerLine","spacing"]),View:r(On,["blockPadding","inlinePadding"]),VisuallyHidden:r(uo,[])}}({notifyError(e){b.error(e)}}),[b]),v=a(null),f=a(null),S=o(()=>function(e,{renderComponent:r,renderText:o}={}){const t=new Map(Object.entries(e)),a=({parent:e,component:r,controller:o,receiver:t,key:a})=>n(xn,{parent:e,component:r,controller:o,receiver:t},a),i=r?e=>r(e,{renderDefault:()=>a(e)}):a,s=({key:e,receiver:r,text:o,parent:t})=>n(In,{receiver:r,text:o,parent:t},e),c=o?e=>o(e,{renderDefault:()=>s(e)}):s;return{get(e){const r=t.get(e);if(null==r)throw new Error(`Unknown component: ${e}`);return r},renderer:{renderComponent:i,renderText:c}}}(y),[y]),k=c(()=>{const n=L();let o=!1,a=!1,i=null;v.current=n;const s=n.on("mount",()=>{s(),g(!0),h.mark("firstContentfulRenderCompleted")}),c=()=>{o||(o=!0,s(),a||(a=!0,C(i)),f.current===c&&(f.current=null))};return f.current=c,(async()=>{let a="load",s=Date.now();const l=e=>{b.log("post_purchase_extension_lifecycle",`[PostPurchase] Extension ${a} ${e}`,{phase:a,status:e,duration:"started"===e?void 0:Date.now()-s})};try{const p=le({createMessenger:de(m,b)});if(i=p,l("started"),await p.load(r),o)return;if(l("completed"),h.mark("loaded"),a="render",s=Date.now(),l("started"),await p.render("Checkout::PostPurchase::Render",n.receive,Object.keys(y),e),o)return;async function v(){d&&(c(),g(!1))}l("completed"),h.mark("initialRenderCompleted"),a="setup",s=Date.now(),l("started"),E(p,{reload:v}),d&&u&&he(u,v),l("completed")}catch{if(o)return;l("failed"),c(),t?.()}})(),s},[]);return i(()=>()=>{f.current?.()},[]),i(()=>{if(!p)return k()},[p,k]),p&&v.current?n(kn,{controller:S,receiver:v.current}):null}const At={id:"56603286faf7c2fc6279ae9d974501bd8ada653472e6a1cb5f0cc17e51ce66f7",type:"mutation",name:"PostPurchaseDone",source:""};function Ft(e){const{client:r,checkout:n,observability:o,graphql:{coreGraphql:t}}=R(),a=n.latestReceipt.value,i=r.unstable_getSerialization("sessionToken"),{postPurchaseInquiryStatus:s}=W(),l=c(()=>{s.value="done"},[s]);return async r=>{const s=Date.now(),c=(e,n,t=s)=>{o.log("post_purchase_done_lifecycle",`[PostPurchase] Done ${e} ${n}`,{trigger:r,phase:e,status:n,duration:"started"===n?void 0:Date.now()-t})};if(c("started","started"),"processed"===a?.status&&i){if(a.redirectUrl)c("receipt_poll","skipped");else{const e=Date.now();c("receipt_poll","started",e);const{data:r,error:o}=await t.staticQuery(Z,{cache:!1,variables:{receiptId:a.id,sessionToken:i}});if(c("receipt_poll",o?"failed":"completed",e),!o&&"ProcessedReceipt"===r?.receipt?.__typename){const e=ve(r.receipt,{});n.unstable_overwriteLatestReceipt(e)}}t.mutate(At,{variables:{receiptId:a.id,sessionToken:i}}),c("mutation_dispatched","completed"),e?.onComplete?.(),e?.wait&&await u(500),l(),c("completed","completed")}else c("completed","skipped")}}function Dt(e){if(void 0!==e)return[e.h,e.s,e.l]}class Wt extends Error{constructor(e){super(e??"Post purchase page failed to render due to missing receipt"),this.name="PostPurchaseMissingProcessedReceiptError"}}const jt=A(({checkout:e,client:r,graphql:{coreGraphql:n},observability:o},{developmentOptions:t})=>{const a=r.unstable_getSerialization("sessionToken"),i=m(()=>e.latestReceipt.value?.id),s=m(()=>"processed"!==e.latestReceipt.value?.status||!a),c=n.query(ce,{variables:()=>
1({input:{forRender:{receiptId:i.value,sessionToken:a,developmentOptions:t}}}),skip:()=>s.value});let l=!1;return b(()=>{const r=e.latestReceipt.value;if(!s.value||l)return;const n=setTimeout(()=>{o.error(new Wt,{severity:"error",metadata:{app:{receiptId:r?.id,receiptStatus:r?.status,typeofReceipt:typeof r,typeofSessionToken:typeof a}}}),l=!0},2e3);return()=>{clearTimeout(n)}}),{data:c.data,error:c.error,invalidResult:m(()=>s.value||Boolean(c.error.value)||"PostPurchaseDataFailed"===c.data.value?.postPurchaseData.__typename),loading:c.loading}}),$t={errors:[{code:"payment_required",message:"Timed out while processing the 3DS challenge modal."}],status:"partially_processed"},qt={errors:[{code:"payment_required",message:"Timed out while processing the payment."}],status:"partially_processed"};function Ot(){const{checkout:e,observability:r}=R(),o=e.latestReceipt.value,t=Ft();ie({stage:se.Complete,id:"PostPurchase"});const{developmentOptions:a}=ae(),{data:s,error:c,invalidResult:l,loading:d}=F(jt,{developmentOptions:a});if(i(()=>{l.value&&(c.value&&r.log("post_purchase_graphql_request_failed","Post purchase GraphQL request failed with error",{error:c.value.message,receiptId:o?.id,receiptStatus:o?.status}),"PostPurchaseDataFailed"===s.value?.postPurchaseData.__typename&&r.log("post_purchase_graphql_request_failed",`Post purchase GraphQL request failed with code: "${s.value.postPurchaseData.code}"`,{data:JSON.stringify(s.value.postPurchaseData),receiptId:o?.id,receiptStatus:o?.status}),t("invalid_data"))},[t,l.value,c.value,s.value,r,o]),d.value||!s.value)return null;if(l.value)return null;const u=s.value.postPurchaseData;return n(Ht,{data:u})}function Ht({data:e}){const{checkout:r,shop:t,source:l,i18n:d,observability:u}=R(),p=function(){const e=ee(),r=e.configuration.colors,n=r.global,t=r.schemes?.scheme1,a=r.schemes?.scheme2,i=null!=t?.control?.background&&j(t.control.background)||null!=a?.control?.background&&j(a.control.background)?"transparent":"color3";return o(()=>function({global:e={},buyerJourney:r={},typographyScale:n={},typographyPrimary:o={},typographySecondary:t={},headingLevel1:a={},headingLevel2:i={},headingLevel3:s={},link:c={},controls:l={},label:d={},textFields:u={},select:p={},checkbox:g={},radio:h={},optionList:m={},reviewBlock:b={},lineItems:y={},moneyLines:v={},moneySummary:f={},primaryButton:S={},secondaryButton:k={},formLayout:B={},tag:x={},tooltip:w={},popover:T={},banner:I={},thumbnail:P={},typographyStyle1:E={},typographyStyle2:L={},typographyStyle3:C={},typographyStyle4:z={},typographyStyle5:M={},typographyStyle6:_={},typographyStyle7:R={},typographyStyle8:N={},typographyStyle9:A={},colors:F}={}){return new Ye({global:e,buyerJourney:r,typographyScale:n,typographyPrimary:o,typographySecondary:t,headingLevel1:a,headingLevel2:i,headingLevel3:s,link:c,controls:l,label:d,textFields:u,select:p,checkbox:g,radio:h,optionList:m,reviewBlock:b,lineItems:y,moneyLines:v,moneySummary:f,primaryButton:S,secondaryButton:k,formLayout:B,tag:x,tooltip:w,popover:T,banner:I,thumbnail:P,typographyStyle1:E,typographyStyle2:L,typographyStyle3:C,typographyStyle4:z,typographyStyle5:M,typographyStyle6:_,typographyStyle7:R,typographyStyle8:N,t
1ypographyStyle9:A,colors:F})}({colors:{primaryAction:{background:Dt(n?.brand)},secondaryAction:{foreground:Dt(n?.brand)},tertiaryAction:{},interactive:{foreground:Dt(n?.accent)},info:{accent:Dt(n?.info)},success:{accent:Dt(n?.success)},warning:{accent:Dt(n?.warning)},critical:{accent:Dt(n?.critical)},canvas:{background:Dt(t?.base?.background),foreground:Dt(t?.base?.text),accent:Dt(t?.base?.accent)},surfacePrimary:{background:Dt(t?.base?.background),foreground:Dt(t?.base?.text),accent:Dt(t?.base?.accent)},surfaceSecondary:{background:Dt(a?.base?.background),foreground:Dt(a?.base?.text),accent:Dt(a?.base?.accent)},surfaceTertiary:{},color1:{},color2:{}},typographyPrimary:e.configuration.typographyPrimary??{},typographySecondary:e.configuration.typographySecondary??{},controls:{background:i},textFields:e.configuration.textField??{},select:e.configuration.select??{},optionList:{background:i},reviewBlock:{background:i}}),[i,e.configuration.select,e.configuration.textField,e.configuration.typographyPrimary,e.configuration.typographySecondary,n,t,a])}(),g=function(){const{client:e,checkout:r,observability:n}=R(),t=r.latestReceipt.value,a=e.unstable_getSerialization("sessionToken"),{developmentMode:i,changesetsUrl:s}=ae();if(!s)throw new en("There was an error initializing the PostPurchaseApiClient: Changesets Url is blank.");if(!a)throw new en("There was an error initializing the PostPurchaseApiClient: Session Token is blank.");if("processed"!==t?.status)throw new en("There was an error initializing the PostPurchaseApiClient: Receipt Status must be processed.");return o(()=>new an(s,n,t.token,a,i),[s,n,t.token,a,i])}(),{developmentMode:h,liveReload:m}=ae(),b=z(()=>{return e=r.latestReceipt.value,Boolean("processed"===e?.status&&e?.purchaseOrder?.paymentLines?.some(({method:e})=>"wallet"===e.type&&"PAYPAL_EXPRESS"===e.name));var e}),y=o(()=>({app:e.appId}),[e.appId]),[v,f]=s(Date.now()),S=o(()=>new M({locale:d.locale,currency:d.currency,timeZone:d.timeZone},{close:d.translate("post_purchase.components.close"),expand:d.translate("post_purchase.components.expand"),submit:d.translate("post_purchase.components.submit"),processing:d.translate("post_purchase.components.processing"),subscription:{cancelled:d.translate("payment.subscription_agreement_cancelled"),agreement:d.translate("payment.subscription_agreement_label"),policy:d.translate("shop_policies.subscription_policy")}}),[d]),k=o(()=>S.translate.bind(S),[S]),B=o(()=>ue({extensionId:e.appId,sourceId:l.sourceId}),[e.appId,l.sourceId]),x=Ft({onComplete:B.delete,wait:Boolean(t.postPurchase.additionalTrackingScript)}),w=c(()=>x("extension"),[x]),T=c(()=>x("header"),[x]),I=o(()=>B.read(),[B]),P=o(()=>JSON.parse(e.inputData),[e.inputData]),[E,L]=s(void 0),C=re({source:E,logMessage:"[PostPurchase] Action required modal iframe loaded; this does not prove issuer challenge rendered",telemetryContext:{modalSourceType:"post_purchase_three_ds_modal_url"}}),[N,A]=s(void 0);i(()=>{if(N)return window.addEventListener("message",N),()=>window.removeEventListener("message",N)},[N]);const F=c(()=>{L(void 0),A(void 0)},[]),D=a(sn()),W=c(()=>{D.current=sn()},[]),q=t.hasFlagEnabled($),O=c(()=>{try{if("function"!=typeof window?.PAYPAL?.asyncData?.initAndCollect)throw new nn("PayPal global is not available");window.PAYPAL.asyncData.initAndCollect()}catch(e){const r=e instanceof Error?e.message:`${e}`;u.error(new nn(r,{cause:e}),{severity:"error",errorClass:nn.name})}},[u]),H=c((e,r)=>(L(e.redirectUrl),new Promise(n=>{const o=setTimeout(()=>{F(),n({...$t,changesetApplicationsRemaining:e.changesetApplicationsRemaining})},ne),t=async({data:e})=>{if(e.type===oe){clearTimeout(o),F();const e=await g.appliedChangeset(r);f(Date.now()),n(e)}};A(()=>t)})),[g,F]),G=c(async(e,r)=>{let n=Date.now(),o=0,t=e,a=!1;for(;!a;){if(Kr(t))t=await H(t,r),o=0,n=Date.now();else{if(!Xr(t))break;o+=1,await Zr(o),t=await g.appliedChangeset(r)}a=1e4<=Date.now()-n}return a?(u.counter({name:"PostPurchase_page_async_payment_polling_timeout",value:1,attributes:y}),{...qt,changesetApplicationsRemaining:e.changesetApplicationsRemaining}):(o>0&&u.histogram({name:"PostPurchase_page_async_payment_polling_duration",value:Date.now()-n,attributes:y}),f(Date.now()),t)},[g,H,u,y]),J=c(async(e,r)=>{let n=r;q&&b.value&&(O(),n={...r,paymentGatewaySessionId:D.current});const o=await g.applyChangeset(e,n);return W(),G(o,e)},[g,q,b,W,O,G]),U=c(({mark:e,timestamps:r={}})=>{switch(e){case"loaded":"loaded"===e&&r.loaded&&u.histogram({name:"PostPurchase_page_sandbox_duration",value:r.loaded,attributes:y});break;case"initialRenderCompleted":r.initialRenderCompleted&&r.loaded&&u.histogram({name:"PostPurchase_page_initial_render_duration",value:r.
1initialRenderCompleted-r.loaded,attributes:y});break;case"firstContentfulRenderCompleted":r.firstContentfulRenderCompleted&&r.loaded&&u.histogram({name:"PostPurchase_page_first_contentful_render",value:r.firstContentfulRenderCompleted-r.loaded,attributes:y}),window.performance&&u.histogram({name:"PostPurchase_page_time_to_first_render",value:performance.now(),attributes:y})}},[u,y]),Q=c(()=>{u.counter({name:"PostPurchase_page_uncaught_client_error",value:1,attributes:y}),x("extension_error")},[x,u,y]);return n(yn,{onHeaderClick:T,children:[n(te,{source:E,title:d.translate("processing.action_required"),onIframeLoad:C}),n(Te,{translate:k,shop:t,children:n(Yr,{theme:p,children:n(Nt,{developmentMode:h,onStopwatchMark:U,onError:Q,scriptUrl:e.scriptUrl,liveReload:m,input:{done:w,locale:d.locale,inputData:P,applyChangeset:J,calculateChangeset:g.calculateChangeset,extensionPoint:"Checkout::PostPurchase::Render",version:"unstable",storage:{initialData:I,update:B.write}}})})}),n(_,{when:b,children:n(bn,{shopId:P.shop.id,checkoutSessionIdentifier:P.initialPurchase.referenceId,paymentGatewaySessionId:D.current,fraudnetMultioffersEnabled:q})}),n(mn,{lastChangeTimestamp:v})]})}export{Ht as PostPurchaseInner,Ot as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.