1System.register(["react/jsx-runtime","@vp/ubik-fragment-react","@vp/ubik-context","@vp/campaign-callouts","@vp/swan","@vp/price-platform","@vp/coupon-callout","react","react-dom","@vp/tracking","@vp/favorites-heart-v2","@vp/pricing-context-module/helpers","@vp/vp-tokenized-fragment","@vp/ab-reader","@vp/banner-wrapper","@vp/product-recommendations-tracking","@vp/social-native-component","@vp/auth","@vp/ab-test-cookie"],(function(pm,Jo){"use strict";var f,X,ue,m0,vc,h0,fm,gm,qr,v0,y0,b0,w0,mm,T0,xd,E0,Re,Fa,hn,we,_d,kd,S0,hm,vm,P0,It,yl,yc,Dt,vn,Be,_e,yn,bl,wl,Tl,ct,ym,bm,wm,Tm,C0,I0,x0,dt,Or,_0,es,k0,Ba,Em,mi,M0,Sm,qa,El,O0,A0,$0,R0,Sr,$i,hi,vi,Sl,Md,Od,Pl,N0,D0,Ad,$d,Rd,Nd,Cl,L0,Pm,Il,U0,F0,B0,q0,z0,Cm,Dd,V0,Ld,Im,xm,xl,_l,Ud,Fd,kl,Ml,Ol,Bd,_m,j0,H0,ts,Al,km,Mm,Om,Am,$m,Rm,Nm,G0,Jn,W0,Dm,qd,Q0,Z0,K0,Y0,X0,zd,Lm,Um,J0,ei,eE,tE,za,rE,nE,mo,$l,ho,Vd,rs,ns,vo,bc,Fm,Bm,jd,iE,aE,oE,sE,qm,cE,zm,Vm,jm,lE,Hm,Hd,uE,dE,pE,fE,gE,Gm,Wm,mE,Qm,Zm,Km,is,hE,vE,yE,wc,bE,Ym,Ri,pe,Ye,Gd,yi,y,vt,Ee,xt,Rl,Et,Lt,Wd,wE,Nl,TE,EE,Dl,SE,PE,CE,Xm,IE,ti,Tc,Qd,Zd,xE,Jm,eh,th,_E,kE,rh,ME,nh,OE,ih,AE,$E,Ll,RE,Kd,NE,DE,LE;return{setters:[function(L){f=L.jsx,X=L.jsxs,ue=L.Fragment},function(L){m0=L.clientMount},function(L){vc=L.useIdentity,h0=L.useUserContext,fm=L.LoggerProvider,gm=L.useLogger,qr=L.useStyles,v0=L.useSwanStyleKeys,y0=L.useSwanFontKeys,b0=L.useUserContextTracker,w0=L.IdentityProvider}
1,function(L){mm=L.CampaignCallout,T0=L.CampaignProvider},function(L){xd=L.BaseTileHeader,E0=L.BaseTileTargetImage,Re=L.FlexBox,Fa=L.Spinner,hn=L.Icon,we=L.Typography,_d=L.BaseTileImage,kd=L.BaseTile,S0=L.className,hm=L.BaseTileBody,vm=L.BaseTileName,P0=L.BaseTileTargetCovering,It=L.Link,yl=L.AdaptiveCarousel,yc=L.AdaptiveCarouselSlide,Dt=L.Button,vn=L.GridContainer,Be=L.Row,_e=L.Column,yn=L.H2,bl=L.Visible,wl=L.useExpansionPackI18nContext,Tl=L.RatingsStars,ct=L.Box,ym=L.InputWithFloatingLabel,bm=L.FloatingLabel,wm=L.Dropdown,Tm=L.DropdownOption,C0=L.Popover,I0=L.PopoverLauncher,x0=L.PopoverContent,dt=L.SWAN_STYLE_KEY_MAP,Or=L.useScreenClass,_0=L.getRootClassNames,es=L.AlertBox,k0=L.Checkbox,Ba=L.Span,Em=L.BaseTileOverlay,mi=L.Callout,M0=L.BaseTileFooter,Sm=L.ScreenClassProvider,qa=L.FluidImage,El=L.AlertBoxDismissButton,O0=L.Collapsible,A0=L.CollapsibleSummary,$0=L.CollapsibleSummaryButton,R0=L.CollapsibleContent,Sr=L.useId,$i=L.SelectionSet,hi=L.SelectionSetInput,vi=L.SelectionSetLabel,Sl=L.SelectionSetTileContents,Md=L.SelectionSetTileName,Od=L.SelectionSetTilePrice,Pl=L.ColorSwatches,N0=L.SelectionSetTileImageContainer,D0=L.SelectionSetTileDescription,Ad=L.Listbox,$d=L.ListboxButton,Rd=L.ListboxPopover,Nd=L.ListboxList,Cl=L.ListboxOption,L0=L.ListboxOptionThumbnailContainer,Pm=L.ListboxSection,Il=L.ColorSwatch,U0=L.Combobox,F0=L.ComboboxPopover,B0=L.ComboboxPopoverTitle,q0=L.ComboboxList,z0=L.ComboboxOption,Cm=L.TextInput,Dd=L.UncustomizableMarkup,V0=L.ListboxOptionTextContainer,Ld=L.DiscountPrice,Im=L.AspectRatio,xm=L.ListPrice,xl=L.ModalDialog,_l=L.ModalDialogContent,Ud=L.ModalDialogNav,Fd=L.ModalDialogCloseButton,kl=L.ModalDialogHeader,Ml=L.ModalDialogTitle,Ol=L.ModalDialogBody,Bd=L.ModalDialogFooter,_m=L.ModalDialogButtons,j0=L.useSwanPopover,H0=L.ComboboxInput,ts=L.SkeletonText,Al=L.SkeletonTextLine,km=L.BannerTextContainer,Mm=L.BannerText,Om=L.BannerTitle,Am=L.BannerDescription,$m=L.BannerLinks,Rm=L.BannerImageContainer,Nm=L.BannerImage,G0=L.P,Jn=L.BoundedContent,W0=L.H1,Dm=L.ListItem,qd=L.BannerWithLeftHandNavigationBelowBanner,Q0=L.LeftHandNavigation,Z0=L.LeftHandNavigationHeader,K0=L.Divider,Y0=L.LinkListHeading,X0=L.LinkList,zd=L.Banner,Lm=L.Carousel,Um=L.CarouselSlide,J0=L.DoubleBanner,ei=L.StandardTileSeparatelyClickableContents,eE=L.StandardTileSwatches,tE=L.ColorSwatchesMore,za=L.tokens,rE=L.Ul,nE=L.Li,mo=L.StandardTile,$l=L.StandardTileOverlay,ho=L.StandardTileImage,Vd=L.BasicResponsiveImage,rs=L.StandardTileContents,ns=L.StandardTileName,vo=L.StandardTileDescription,bc=L.StandardTilePrice,Fm=L.Hidden,Bm=L.Card,jd=L.H3,iE=L.AnchorBar,aE=L.AnchorBarList,oE=L.AnchorBarListItem,sE=L.tokensRaw,qm=L.TabContent,cE=L.Section,zm=L.Tabs,Vm=L.TabsHeaders,jm=L.TabHeader,lE=L.ResponsiveImage,Hm=L.TabsContents,Hd=L.VisuallyHidden,uE=L.StandardForm,dE=L.FormField,pE=L.FormLabel,fE=L.TextArea,gE=L.TextInputWithButtonInset,Gm=L.IconButton,Wm=L.StandardTileFooter,mE=L.useIsScreenClassInitialized,Qm=L.SwanI18nProvider,Zm=L.SkeletonTextHeading,Km=L.SwanFontNameEnum},function(L){is=L.PriceDisplay,hE=L.DisplayVariant,vE=L.useSetPriceConfigs,yE=L.PageId},function(L){wc=L.CouponCallout,bE=L.CouponCalloutProvider,Ym=L.PageId},function(L){Ri=L.forwardRef,pe=L.useState,Ye=L.useMemo,Gd=L.Component,yi=L.createContext,y=L.default,vt=L.useRef,Ee=L.useEffect,xt=L.useContext,Rl=L.useLayoutEffect,Et=L.useCallback,Lt=L,Wd=L.createElement,wE=L.lazy,Nl=L.Suspense,TE=L.useDebugValue},function(L){EE=L.default},function(L){Dl=L.getTracking},function(L){SE=L.useFavoriteHeartContext,PE=L.ProductFavoriteHeart,CE=L.FavoriteHeartProvider},function(L){Xm=L.default},function(L){IE=L.QtyStartingAtPrice,ti=L.TokenReplace,Tc=L.RawPrice,Qd=L.PricePerUnit,Zd=L.PlusOrMinusPerUnit,xE=L.ComparativeDisplayType,Jm=L.PlusOrMinus},function(L){eh=L.initialize,th=L.waitTillAvailable,_E=L.getAllExperiments,kE=L.getTestUserId,rh=L.fireImpression,ME=L.whenAvailable,nh=L.isFeatureEnabled,OE=L.getVariation},function(L){ih=L.BannerWrapper},function(L){AE=L.createMcsAdapter,$E=L.createPoeAdapter,Ll=L.onProductListView,RE=L.onProductAddToCart,Kd=L.onProductClick},function(L){NE=L.SocialNative},function(L){DE=L.default},function(L){LE=L.ensureUserTestId}],execute:(function(){pm("g",Ec);var L=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};L.setTimeout,L.clearTimeout;var KN={},Ul=L.performance||{};Ul.now||Ul.mozNow||Ul.msNow||Ul.oNow||Ul.webkitNow;var tn={env:KN};function UE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=UE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yo(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=UE(e))&&(n&&(n+=" "),n+=t);return n}var bo={templateTile:"ep-tiles-module-template-tile-dGVtc",templateTileImage:"ep-tiles-module-template-tile-image-dGVtc",templateTileImageDefault:"ep-tiles-module-template-tile-image-default-dGVtc",templateTileImageLarge:"ep-tiles-module-template-tile-image-large-dGVtc",templateTileImageHide:"ep-tiles-module-template-tile-image-hide-dGVtc",templateTileSpinner:"ep-tiles-module-template-tile-spinner-dGVt
1c",templateTileFallbackPreview:"ep-tiles-module-template-tile-fallback-preview-dGVtc",fallbackPreviewLarge:"ep-tiles-module-fallback-preview-large-ZmFsb"};Ri((e,t)=>{const{alt:r,isLoading:n=!1,accessibleTextForLoadingState:i,isError:a=!1,onError:o,onLoad:s,src:c,srcSet:l,size:u="Default",emptyPreviewText:d,className:p,constrainHeight:g=!0,renderComponent:m}=e;return f(xd,{className:p,children:X(E0,{render:m,children:[n&&f(Re,{backgroundColor:"strong",alignItems:"center",justifyContent:"center",className:bo.templateTileSpinner,children:f(Fa,{accessibleText:i,size:"standard"})}),a&&X(Re,{flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"strong",className:yo(bo.templateTileFallbackPreview,{[bo.fallbackPreviewLarge]:u==="Large"}),children:[f(hn,{iconType:"image",size:"60p"}),f(we,{as:"span",fontSkin:"body-standard-bold",py:"3",children:d})]}),f(_d,{aspectRatio:1,alt:r,className:yo(bo.templateTileImage,{[bo.templateTileImageLarge]:g&&u==="Large",[bo.templateTileImageDefault]:g&&u==="Default",[bo.templateTileImageHide]:a}),ref:t,src:c,srcSet:l,onError:o,onLoad:s,...!g&&{pt:2}})]})})}),Ri((e,t)=>{const{className:r,children:n,...i}=e,a=yo(r,{[bo.templateTile]:!0});return f(kd,{ref:t,className:a,p:"3",pb:"6",skin:"card",bgc:"strong",...i,children:n})});var Va=(e=>(e.ROOT="Root",e.NEXT="Next",e.SKIP="Skip",e.UNIVERSAL="Universal",e))(Va||{}),ah=(e=>(e.AdaptiveCarousel="adaptive-carousel",e.StackedGrid="stacked-grid",e))(ah||{});const YN={Root:{component:"adaptive-carousel",slidesToShow:3},Next:{component:"stacked-grid",slidesToShow:2,showMoreButton:!1},Skip:{component:"stacked-grid",slidesToShow:3,showMoreButton:!0},Universal:{component:"adaptive-carousel",slidesToShow:3}},XN={Root:{component:"adaptive-carousel",slidesToShow:8},Next:{component:"adaptive-carousel",slidesToShow:6},Skip:{component:"adaptive-carousel",slidesToShow:8},Universal:{component:"adaptive-carousel",slidesToShow:8}},JN=(e,t)=>(t?YN:XN)[e],eD={[Va.SKIP]:15,[Va.ROOT]:30,[Va.NEXT]:30,[Va.UNIVERSAL]:30},tD=e=>eD[e],rD=(e,t,r)=>{const n=r??tD(t);return e.slice(0,n)};var oh={categoryTile:"ep-tiles-module-category-tile-Y2F0Z",categoryTileWrapper:"ep-tiles-module-category-tile-wrapper-Y2F0Z",categoryTileError:"ep-tiles-module-category-tile-error-Y2F0Z"};const nD=e=>{const{alt:t,src:r,srcSet:n,emptyPreviewText:i="Image not available"}=e,[a,o]=pe(!1),s="4/5",c=()=>{o(!0)};return a?X(Re,{style:{aspectRatio:s},flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"strong",className:oh.categoryTileError,children:[f(hn,{iconType:"image",size:"60p"}),f(we,{as:"span",fontSkin:"body-small-bold",py:"3",textAlign:"center",children:i})]}):f("div",{className:oh.categoryTileWrapper,style:{aspectRatio:s,position:"relative"},children:f(_d,{alt:t,src:r,srcSet:n,aspectRatio:s,onError:c})})};function iD(e,t,r,n){return!!e&&!!t&&!!r?.src&&!!n}const sh=Ri((e,t)=>{const{categoryId:r,categoryTileTitle:n,categoryTileImage:i,categoryTileUrl:a,categoryTileImageEmptyPreviewText:o,trackOnClick:s}=e;if(!iD(r,n,i,a))return null;const c=yo(S0,{[oh.categoryTile]:!0}),l={categoryId:r,categoryTileTitle:n,categoryTileImage:i,categoryTileUrl:a};return X(kd,{className:c,children:[f(hm,{children:f(vm,{children:f(P0,{children:f(It,{href:a,onClick:()=>{s&&s(l)},children:n})})})}),f(xd,{children:f(nD,{alt:i?.altTextOverride,src:i?.src,srcSet:i?.srcSet,emptyPreviewText:o})})]})});var aD={"expandButton.showMore":"Vis mere","expandButton.showLess":"Vis mindre","ariaLabels.showLessCategories":"Vis f\xE6rre kategorier","ariaLabels.showMoreCategories":"Vis flere kategorier","ariaLabels.categoryCarousel":"Kategori-karrusel"},oD={"expandButton.showMore":"Mehr anzeigen","expandButton.showLess":"Weniger anzeigen","ariaLabels.showLessCategories":"Weniger Kategorien anzeigen","ariaLabels.showMoreCategories":"Mehr Kategorien anzeigen","ariaLabels.categoryCarousel":"Kategorienkarussell"},sD={"expandButton.showMore":"Show more","expandButton.showLess":"Show less","ariaLabels.showLessCategories":"Show fewer categories","ariaLabels.showMoreCategories":"Show more categories","ariaLabels.categoryCarousel":"Category Carousel"},ch={"expandButton.showMore":"Show more","expandButton.showLess":"Show less","ariaLabels.showLessCategories":"Show less categories","ariaLabels.showMoreCategories":"Show more categories","ariaLabels.categoryCarousel":"Category Carousel"},cD={"expandButton.showMore":"Mostrar m\xE1s","expandButton.showLess":"Mostrar menos","ariaLabels.showLessCategories":"Mostrar menos categor\xEDas","ariaLabels.showMoreCategories":"Mostrar m\xE1s categor\xEDas","ariaLabels.categoryCarousel":"Carrusel de categor\xEDas"},lD={"expandButton.showMore":"Mostrar m\xE1s","expandButton.showLess":"Mostrar menos","ariaLabels.showLessCategories":"Mostrar menos categor\xEDas","ariaLabels.showMoreCategories":"Mostrar m\xE1s categor\xEDa","ariaLabels.categoryCarousel":"Carrusel de categor\xEDas"},uD={"expandButton.showMore":"N\xE4yt\xE4 enemm\xE4n","expandButton.showLess":"N\xE4yt\xE4 v\xE4hemm\xE4n","ariaLabels.showLessCategories":"N\xE4yt\xE4 useampia yritysluokkia","ariaLabels.showMoreCategories":"N\xE4yt\xE4 v\xE4hemm\xE4n yritysluokkia","ariaLabels.categoryCarousel":"Luokkakaruselli"},dD={"expandButton.showMore":"Afficher plus","expandButton.showLess":"Afficher moins","ariaLabels.showLessCategories":"Afficher moins de cat\xE9gories","ariaLabels.showMoreCategories":"Afficher plus de cat\xE9gories","ariaLabels.categoryCarousel":"Carrousel de cat\xE9gories"},pD={"expandButton.showMore":"Afficher plus","expandButton.showLess":"Afficher moins","ariaLabels.showLessCategories":"Afficher moins de cat\xE9gories","ariaLabels.showMoreCategories":"Afficher plus de cat\xE9gories","ariaLabels.categoryCarousel":"Carrousel des cat\xE9gories"},fD={"expandButton.showMore":"Mostra altro","expandButton.showLess":"Mostra meno","ariaLabels.showLessCategories":"Mostra meno categorie","ariaLabels.showMoreCategories":"Mostra altre categorie","ariaLabels.categoryCarousel":"Carosello categorie"},gD={"expandButton.showMore":"Vis mer","expandButton.showLess":"Vis mindre","ariaLabels.showLessCategories":"Vis f\xE6rre kategorier","ariaLabels.showMoreCategories":"Vis flere kategorier","ariaLabels.categoryCarousel":"Kategorikarusell"},mD={"expandButton.showMore":"Meer weergeven","expandButton.showLess":"Minder weergeven","ariaLabels.showLessCategories":"Minder categorie\xEBn weergeven","ariaLabels.showMoreCategories":"Meer categorie\xEBn weergeven","ariaLabels.categoryCarousel":"Categoriecarrousel"},hD={"expandButton.showMore":"Mostrar mais","expandButton.showLess":"Mostrar menos","ariaLabels.showLessCategories":"Mostrar menos categorias","ariaLabels.showMoreCategories":"Mostrar mais categorias","ariaLabels.categoryCarousel":"Carrossel de categorias"},vD={"expandButton.showMore":"Visa mer","expandButton.showLess":"Visa mindre","ariaLabels.showLessCategories":"Visa f\xE4rre kategorier","ariaLabels.showMoreCategories":"Visa fler kategorier","ariaLabels.categoryCarousel":"Kategorikarusell"};const FE={"da-DK":aD,"de-DE":oD,"en-GB":sD,"en-US":ch,"es-ES":cD,"es-US":lD,"fi-FI":uD,"fr-CA":dD,"fr-FR":pD,"it-IT":fD,"nb-NO":gD,"nl-NL":mD,"pt-PT":hD,"sv-SE":vD}
1,yD={"fr-CH":"fr-FR","fr-BE":"fr-FR","de-CH":"de-DE","de-AT":"de-DE","en-AU":"en-GB","en-NZ":"en-GB","en-SG":"en-GB","en-IE":"en-GB","en-CA":"en-US","en-IN":"en-US","nl-BE":"nl-NL","it-CH":"it-IT"},bD=e=>{const t=new Intl.Locale(e).toString();let r=FE[t];if(!r){const n=yD[t];return n&&(r=FE[n],r)?(console.warn(`Localization file for locale "${e}" not found, using fallback locale "${n}"`),r):(console.warn(`Localization file for locale "${e}" not found, falling back to en-US translations`),ch)}return r},BE=(e="en-US")=>{const t=Ye(()=>bD(e),[e]);return{translate:n=>{const i=t[n];if(!i){const a=ch[n];return a?(console.warn(`Localization for key "${n}" not found for locale "${e}", using en-US fallback`),a):(console.warn(`Localization for key "${n}" not found for locale "${e}" or fallback locale "en-US"`),n)}return i}}},wD=({tiles:e,slidesToShow:t,locale:r,trackOnClick:n})=>{const{translate:i}=BE(r);return f(yl,{"aria-label":i("ariaLabels.categoryCarousel"),slidesToShow:t,children:e.map((a,o)=>f(yc,{children:f(sh,{...a,trackOnClick:n})},o))})},TD=2,ED=(e,t)=>{const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r},SD=e=>Math.floor(12/e),PD=(e,t,r,n)=>{if(!r||n)return{visibleTiles:e,hasMoreTiles:!1};const i=t*TD;return{visibleTiles:e.slice(0,i),hasMoreTiles:e.length>i}},CD=(e,t,r)=>({shouldShow:e&&(r||t)}),ID=({isExpanded:e,onToggle:t,locale:r})=>{const{translate:n}=BE(r),i=s=>n(s?"ariaLabels.showLessCategories":"ariaLabels.showMoreCategories"),a=n(e?"expandButton.showLess":"expandButton.showMore"),o=e?"caretUp":"caretDown";return X(Dt,{width:"full-width",onClick:t,"aria-label":i(e),children:[a,f(hn,{iconType:o})]})},xD=({tiles:e,slidesToShow:t,showMoreButton:r,locale:n,trackOnClick:i})=>{const[a,o]=pe(!1),s=SD(t),{visibleTiles:c,hasMoreTiles:l}=Ye(()=>PD(e,t,r,a),[e,t,r,a]),u=Ye(()=>ED(c,t),[c,t]),d=CD(r,a,l);return X(ue,{children:[f(vn,{as:"ul",children:u.map((p,g)=>f(Be,{mb:4,as:"li",children:p.map((m,v)=>f(_e,{spanXs:s,span:s,children:f(sh,{...m,trackOnClick:i})},v))},g))}),d.shouldShow&&f(ID,{isExpanded:a,hasMoreTiles:l,locale:n,onToggle:()=>o(!a)})]})},_D=({layoutConfig:e,tiles:t,locale:r,trackOnClick:n})=>{switch(e.component){case ah.AdaptiveCarousel:return f(wD,{tiles:t,slidesToShow:e.slidesToShow,locale:r,trackOnClick:n});case ah.StackedGrid:return f(xD,{tiles:t,slidesToShow:e.slidesToShow,showMoreButton:e.showMoreButton??!1,locale:r,trackOnClick:n});default:return null}};var kD={categoryRow:"ep-tiles-module-category-row-Y2F0Z"};const MD=new Set(Object.values(Va));function OD(e,t,r,n){return!(!MD.has(e)||!Array.isArray(t)||typeof r!="boolean"||n!==void 0&&(!Number.isFinite(n)||n<=0))}const AD=Ri((e,t)=>{const{className:r,categoryDestinationLevel:n,tiles:i,title:a,isMobile:o,locale:s,trackOnClick:c,limit:l}=e;if(!OD(n,i,o,l))return null;const u=rD(i,n,l),d=JN(n,o),p=yo(r,{[kD.categoryRow]:!0});return f("div",{ref:t,className:p,children:X(vn,{children:[a&&f(Be,{marginBottom:5,children:f(_e,{span:12,children:f(yn,{fontSkin:"title-section",children:a})})}),f(Be,{children:f(_e,{span:12,children:f(_D,{layoutConfig:d,tiles:u,locale:s,trackOnClick:c})})})]})})}),qE=Ri((e,t)=>f(AD,{...e,ref:t})),zE=Ri((e,t)=>X(ue,{children:[f(bl,{xs:!0,children:f(qE,{...e,isMobile:!0,ref:t})}),f(bl,{sm:!0,md:!0,lg:!0,xl:!0,children:f(qE,{...e,isMobile:!1,ref:t})})]}));var Fl={productTile:"ep-tiles-module-product-tile-cHJvZ",productTileImageWrapper:"ep-tiles-module-product-tile-image-wrapper-cHJvZ",productTileImageFallback:"ep-tiles-module-product-tile-image-fallback-cHJvZ",productTileImageOutOfStock:"ep-tiles-module-product-tile-image-out-of-stock-cHJvZ"};const $D=["productKey","mpvId","productVersion","productUrl"],RD=e=>$D.filter(t=>{const r=e[t];return r==null||r===""}).map(t=>({severity:"fatal",component:"tile",message:`ProductTile: missing required prop "product.${t}"`})),ND=(e,t)=>{const r=[];return e.name||r.push({severity:"degraded",component:"name",message:'ProductTile: empty required prop "product.name"'}),t!==void 0&&!t.label&&r.push({severity:"degraded",component:"cta",message:"ProductTile: cta.label is missing; CTA will not render"}),r},DD=e=>e.some(t=>t.severity==="fatal");class wo extends Gd{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){const{componentName:n,severity:i,onError:a}=this.props;a?.([{component:n,severity:i,message:t.message}])}render(){return this.state.hasError?null:this.props.children}}const lh="1",LD={aspectRatio:lh},UD={aspectRatio:lh,position:"relative"},FD={width:"100%",height:"100%",objectFit:"cover"},BD=Ri((e,t)=>{const{product:r,config:n,productUrl:i,onTileClick:a,children:o,onError:s}=e,{t:c}=wl(),l=r.inStock===!1,u=!!r.image.personalizationUrl,[d,p]=pe(!1),[g,m]=pe(!r.image.src),v=u&&!d,h=v?r.image.personalizationUrl??r.image.src:r.image.src,P=v?void 0:r.image.srcSet,x=(!u||d)&&g,T=()=>{v?p(!0):m(!0)},k=r.image.alt??r.name;return f(wo,{componentName:"image",severity:"degraded",onError:s,children:X(xd,{children:[f(It,{href:i,onClick:a,skin:"unstyled",tabIndex:-1,"aria-hidden":"true",display:"block",children:x?X(Re,{className:yo(Fl.productTileImageFallback,{[Fl.productTileImageOutOfStock]:l}),style:LD,flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"strong",children:[f(hn,{iconType:"image",size:"60p"}),f(we,{as:"span",fontSkin:"body-small-bold",py:"3",textAlign:"center",children:c("ep-tiles.product-tile.imageNotAvailable")})]}):f(Re,{className:yo(Fl.productTileImageWrapper,{[Fl.productTileImageOutOfStock]:l}),style:UD,children:f(_d,{ref:t,aspectRatio:lh,alt:k,src:h,srcSet:P,loading:n?.imageLoadType??"lazy",onError:T,style:FD})})}),o]})})}),qD=({name:e,productUrl:t,onTileClick:r})=>f(It,{href:t,onClick:r,skin:"unstyled",children:f(vm,{children:e})}),zD=({ratingSummary:e,onError:t})=>f(wo,{componentName:"ratings",severity:"degraded",onError:t,children:f(we,{fontSkin:"body-small","data-testid":"product-tile-rating",children:f(Tl,{ratingV
1alue:e.averageRating,reviews:e.reviewsCount})})}),VD=({description:e})=>f(we,{children:e}),jD=({cta:e,onError:t})=>{const{t:r}=wl();return f(wo,{componentName:"cta",severity:"degraded",onError:t,children:f(Dt,{skin:e.variant==="secondary"?"secondary":"primary",width:"full-width",onClick:e.onClick,disabled:e.disabled||e.isLoading,"aria-label":e.isLoading?e.label:void 0,children:e.isLoading?f(Fa,{size:"tiny",accessibleText:r("ep-tiles.product-tile.loading")}):e.label})})},HD=({quantitySelector:e,onError:t})=>{const{t:r}=wl(),{quantities:n,selectedQuantity:i,disabled:a,onChange:o}=e,s=c=>{const l=parseInt(c.target.value,10);o(l)};return f(wo,{componentName:"quantitySelector",severity:"degraded",onError:t,children:f(ct,{mb:4,children:X(ym,{children:[f(bm,{children:r("ep-tiles.product-tile.quantity")}),f(wm,{disabled:a||n.length<=1,fullWidth:!0,onChange:s,value:i.toString(),children:n.map(c=>f(Tm,{value:c.toString(),children:c},c))})]})})})},GD=({localization:e})=>X(Re,{alignItems:"center",gap:"2",mt:4,children:[f(hn,{iconType:"deliveryFast",size:"16p","aria-hidden":"true"}),f(we,{fontSkin:"footnote-bold",children:e.localizedValue})]}),WD=({localization:e})=>{const t=e.localizedValue,r=e.metadata?.description,n=e.metadata?.pageUrl,i=e.metadata?.pageUrlText,a=e.metadata?.pageUrlAriaLabel;return X(Re,{alignItems:"flex-end",gap:"2",mt:2,children:[f(hn,{iconType:"sustainability",size:"16p","data-testid":"sustainability-icon","aria-hidden":"true"}),f(we,{fontSkin:"footnote-bold","data-testid":"sustainability-title",children:t}),r&&X(C0,{children:[f(I0,{children:f(Dt,{skin:"unstyled","aria-label":t,children:f(hn,{iconType:"info",size:"16p","data-testid":"sustainability-info-icon","aria-hidden":"true"})})}),X(x0,{"aria-label":t,children:[X(Re,{alignItems:"center",marginBottom:2,children:[f(hn,{iconType:"sustainability",marginRight:2,"data-testid":"sustainability-popover-icon","aria-hidden":"true"}),f(we,{fontSkin:"title-item",marginRight:2,"data-testid":"sustainability-popover-title",children:t})]}),X(we,{fontSkin:"body-small",marginRight:2,"data-testid":"sustainability-popover-description",children:[r,n&&i&&X(ue,{children:["\xA0",f(It,{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":a,children:i})]})]})]})]})]})},QD=({product:e,onError:t})=>{const r=Ye(()=>{const n={...e.selectedOptions};return e.quantity!=null&&(n.quantity=String(e.quantity)),n},[e.selectedOptions,e.quantity]);return f(wo,{componentName:"pricing",severity:"degraded",onError:t,children:f(ct,{mt:4,children:f(is,{productId:e.productKey,version:e.productVersion,mpvId:e.mpvId,selections:r,alwaysShowMOQInfo:!0,isTile:!0,displayVariant:hE.FROM})})})};class as{constructor(t,r){this.abortController=new AbortController,this.cancel=n=>{this.abortController.abort(n)},this.request=async(n,i)=>(this.authHeader&&(i.headers={Authorization:this.authHeader,...i.headers}),fetch(n,i).then(a=>{if(a.ok)return a.text().then(o=>o?JSON.parse(o):{});throw this.logger?.error?.("Non 200 response",{contextData:{status:`${a.status}`,url:n}}),new Error(`Request failed: Url: [${n}] Status: [${a.status}]`)})),this.authHeader=t,this.logger=r}}as.REQUESTOR="favorites-heart";const Yd=class dm extends as{constructor(t,r,n){super(r,n),this.tenant=t}async addFavoriteProduct(t,r,n,i){const a=`${dm.SERVICE_URL}/v1/${this.tenant}/products?requestor=${as.REQUESTOR}`;try{return await this.request(a,{method:"POST",body:JSON.stringify({productKey:t,productVersion:r,selectedOptions:n,documentUrl:i})})}catch(o){throw this.logger?.error?.("Failed to add product to the Favorites service",{contextData:{productKey:t,productVersion:`${r}`,selectedOptions:JSON.stringify(n),documentUrl:i},error:o instanceof Error?o.message:"unknown error",windowLocationHref:window.location.href}),o}}async removeFavoriteProduct(t){try{return await this.request(`${dm.BASE_URL}/products/${t}?requestor=${as.REQUESTOR}`,{method:"DELETE"})}catch(r){throw this.logger?.error?.("Failed to remove product from the Favorites service",{contextData:{productKey:t},error:r instanceof Error?r.message:"unknown error",windowLocationHref:window.location.href}),r}}async getAllFavoriteProducts(){try{return await this.request(`${dm.BASE_URL}/products?requestor=${as.REQUESTOR}`,{method:"GET",signal:this.abortController.signal})}catch(t){return t!=="Rerender"&&this.logger?.error?.("Failed to get all products from the Favorites service",{error:t instanceof Error?t.message:"unknown error",windowLocationHref:window.location.href}),[]}}};Yd.SERVICE_URL="https://favorites.prod.my-account.vpsvc.com",Yd.BASE_URL=`${Yd.SERVICE_URL}
1/v0`;let ZD=Yd;const VE=class QN extends as{constructor(t){super(void 0,t)}async getFavoritesPageRoute({locale:t,tenant:r}){try{return(await this.request(`${QN.BASE_URL}/url/${r}/${t}/ma:myFavorites?requestor=${as.REQUESTOR}`,{method:"GET",signal:this.abortController.signal})).url}catch(n){return n!=="Rerender"&&this.logger?.error?.("Failed to get route for the favorites page",{error:n instanceof Error?n.message:"unknown error",windowLocationHref:window.location.href}),""}}};VE.BASE_URL="https://url.prod.merch.vpsvc.com/v3";let KD=VE;const jE=yi({}),YD=({tenant:e,locale:t,children:r})=>{const{auth:n,isIdentityInitialized:i}=vc(),a=gm(),[o,s]=pe(!1),[c,l]=pe([]),[u,d]=pe(),[p,g]=pe(),[m,v]=pe("");return Ee(()=>{i&&(d(new ZD(e,n?.getAuthorizationHeader?.()??void 0,a)),g(new KD(a)))},[i]),Ee(()=>(u&&p&&(async()=>{const P=await u?.getAllFavoriteProducts(),x=await p?.getFavoritesPageRoute({locale:t,tenant:e});l(P||[]),v(x),s(!0)})(),()=>{u?.cancel("Rerender"),p?.cancel("Rerender")}),[u,p]),y.createElement(jE.Provider,{value:{isFavoriteDataReady:o,favoriteProducts:c,favoriteService:u,favoritesPageRoute:m}},r)},uh=()=>xt(jE),HE={"en-ie":"en-gb","en-gb":"en-us","en-nz":"en-gb","en-sg":"en-gb","fr-be":"fr-fr","fr-ca":"fr-fr","fr-ch":"fr-fr","nl-be":"nl-nl","de-at":"de-de","de-ch":"de-de","it-ch":"it-it","en-au":"en-gb","en-ca":"en-gb","es-us":"en-us","en-in":"en-gb",default:"en-us"},XD=e=>typeof e=="string"?e:e?.value,JD=(e,t,r)=>{let n;return n=e[t.toLowerCase()]?.translation?.["favorites-heart"]?.[r],n||(n=e[HE[t.toLowerCase()]]?.translation?.["favorites-heart"]?.[r]),n||(n=e[HE.default]?.translation?.["favorites-heart"]?.[r]),n?XD(n):r};var eL={"favorites-heart":{"my-favorites":"Mine favoritter","added-to-my-favorites":{value:"Tilf\xF8jet til {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Tilf\xF8j til eller fjern fra Mine favoritter","sign-in":"Log ind","sign-in-to-save":{value:"{sign-in} for at gemme det til senere.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Fjernet fra Mine favoritter.",loading:"Indl\xE6ser","add-favorite-error":"Kunne ikke tilf\xF8je til Mine favoritter. Pr\xF8v igen senere.","remove-favorite-error":"Kunne ikke fjerne fra Mine favoritter. Pr\xF8v igen senere."}},tL={translation:eL},rL={"favorites-heart":{"my-favorites":"Meine Favoriten","added-to-my-favorites":{value:"Zu {my-favorites} hinzugef\xFCgt.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"In Meine Favoriten hinzuf\xFCgen oder entfernen","sign-in":"Anmelden","sign-in-to-save":{value:"{sign-in} und f\xFCr sp\xE4ter speichern.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Aus Meine Favoriten entfernt.",loading:"Ladevorgang","add-favorite-error":"Konnte nicht zu Meine Favoriten hinzugef\xFCgt werden. Bitte versuchen Sie es sp\xE4ter erneut.","remove-favorite-error":"Konnte nicht aus Meine Favoriten entfernt werden. Bitte versuchen Sie es sp\xE4ter erneut."}},nL={translation:rL},iL={"favorites-heart":{"my-favorites":"My Favourites","added-to-my-favorites":{value:"Added to {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Add or remove from My Favourites","sign-in":"Sign in","sign-in-to-save":{value:"{sign-in} to save it for later.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Removed from My Favourites.",loading:"Loading","add-favorite-error":"Unable to add to My Favourites. Please try again later.","remove-favorite-error":"Unable to remove from My Favourites. Please try again later."}},aL={translation:iL},oL={"favorites-heart":{"my-favorites":"My Favourites","added-to-my-favorites":{value:"Added to {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Add or remove from My Favourites","sign-in":"Sign in","sign-in-to-save":{value:"{sign-in} to save it for later.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Removed from My Favourites.",loading:"Loading","add-favorite-error":"Unable to add to My Favourites. Please try again later.","remove-favorite-error":"Unable to remove from My Favourites. Please try again later."}},sL={translation:oL},cL={"favorites-heart":{"my-favorites":"My Favorites","added-to-my-favorites":{value:"Added to {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Add or remove from My Favorites","sign-in":"Sign in","sign-in-to-save":{value:"{sign-in} to save it for later.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Removed from My Favorites.",loading:"Loading","add-favorite-error":"Unable to add to My Favorites. Please try again later.","remove-favorite-error":"Unable to remove from My Favorites. Please try again later."}},lL={translation:cL},uL={"favorites-heart":{"my-favorites":"Mis favoritos","added-to-my-favorites":{value:"A\xF1adido a {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"A\xF1adir o eliminar de Mis favoritos","sign-in":"Iniciar sesi\xF3n","sign-in-to-save":{value:"{sign-in} para guardarlo para m\xE1s tarde.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Eliminado de Mis favoritos.",loading:"Cargando","add-favorite-error":"No hemos podido a\xF1adirlo a Mis favoritos. Por favor, vuelve a intentarlo m\xE1s tarde.","remove-favorite-error":"No hemos podido eliminarlo de Mis favoritos. Por favor, vuelve a intentarlo m\xE1s tarde."}},dL={translation:uL},pL={"favorites-heart":{"my-favorites":"Mis Favoritos","added-to-my-favorites":{value:"Agregado a {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Agregar o eliminar de Mis Favoritos","sign-in":"Iniciar sesi\xF3n","sign-in-to-save":{value:"{sign-in}para guardar para m\xE1s tarde.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Eliminado de Mis Favoritos.",loading:"Cargando","add-favorite-error":"No pudimos agregarlo a Mis Favoritos. Por favor, vuelva a intentarlo m\xE1s tarde.","remove-favorite-error":"No pudimos eliminarlo de Mis Favoritos. Por favor, vuelva a intentarlo m\xE1s tarde."}},fL={translation:pL}
1,gL={"favorites-heart":{"my-favorites":"Suosikkini","added-to-my-favorites":{value:"Lis\xE4tty kohteeseen {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Lis\xE4\xE4 Suosikkeihin tai poista Suosikeista","sign-in":"Kirjaudu sis\xE4\xE4n","sign-in-to-save":{value:"{sign-in} tallentaaksesi sen my\xF6hemp\xE4\xE4 varten.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Poistettu suosikeista.",loading:"Lataa","add-favorite-error":"Suosikkeihin lis\xE4\xE4minen ep\xE4onnistui. Yrit\xE4 my\xF6hemmin uudelleen.","remove-favorite-error":"Suosikeista poistaminen ep\xE4onnistui. Yrit\xE4 my\xF6hemmin uudelleen."}},mL={translation:gL},hL={"favorites-heart":{"my-favorites":"Mes favoris","added-to-my-favorites":{value:"Ajout\xE9 \xE0 {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Ajouter ou retirer de Mes favoris","sign-in":"Connectez-vous","sign-in-to-save":{value:"{sign-in} afin de l\u2019enregistrer pour plus tard.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Retir\xE9 de Mes favoris.",loading:"En cours de chargement","add-favorite-error":"Ajout \xE0 Mes favoris impossible. Veuillez r\xE9essayer plus tard.","remove-favorite-error":"Impossible de retirer de Mes favoris. Veuillez r\xE9essayer plus tard."}},vL={translation:hL},yL={"favorites-heart":{"my-favorites":"Mes favoris","added-to-my-favorites":{value:"Ajout\xE9 \xE0 {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Ajouter ou supprimer de Mes favoris.","sign-in":"Connexion","sign-in-to-save":{value:"{sign-in} pour l\u2019enregistrer pour plus tard.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Supprim\xE9 de Mes favoris.",loading:"En cours de chargement","add-favorite-error":"Impossible de l\u2019ajouter \xE0 Mes favoris. Veuillez r\xE9essayer plus tard.","remove-favorite-error":"Impossible de le supprimer de Mes favoris. Veuillez r\xE9essayer plus tard."}},bL={translation:yL},wL={"favorites-heart":{"my-favorites":"I miei preferiti","added-to-my-favorites":{value:"Aggiunto a {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Aggiungere o rimuovere da I miei preferiti.","sign-in":"Accedi","sign-in-to-save":{value:"{sign-in} per salvare per un secondo momento.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Rimosso da I miei preferiti.",loading:"Caricamento","add-favorite-error":"Impossibile aggiungere a I miei preferiti. Riprova pi\xF9 tardi.","remove-favorite-error":"Impossibile rimuovere da I miei preferiti. Riprova pi\xF9 tardi."}},TL={translation:wL},EL={"favorites-heart":{"my-favorites":"Mine favoritter","added-to-my-favorites":{value:"Lagt til i{my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Legge til eller fjerne fra Mine favoritter","sign-in":"Logg inn","sign-in-to-save":{value:"{sign-in} for \xE5 lagre til senere.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Fjernet fra Mine favoritter.",loading:"Laster inn","add-favorite-error":"Kunne ikke legge til i Mine favoritter. Pr\xF8v igjen senere.","remove-favorite-error":"Kunne ikke fjerne fra Mine favoritter. Pr\xF8v igjen senere."}},SL={translation:EL},PL={"favorites-heart":{"my-favorites":"Mijn favorieten","added-to-my-favorites":{value:"Toegevoegd aan {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Toevoegen aan of verwijderen uit Mijn favorieten","sign-in":"Log in","sign-in-to-save":{value:"{sign-in} om het op te slaan voor later.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Verwijderd uit Mijn favorieten.",loading:"Bezig met laden","add-favorite-error":"Toevoegen aan Mijn favorieten niet mogelijk. Probeer het later opnieuw.","remove-favorite-error":"Verwijderen uit Mijn favorieten niet mogelijk. Probeer het later opnieuw."}},CL={translation:PL},IL={"favorites-heart":{"my-favorites":"Os meus favoritos","added-to-my-favorites":{value:"Adicionado a {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"Adicionar ou remover de Os meus favoritos","sign-in":"Iniciar sess\xE3o","sign-in-to-save":{value:"{sign-in} para guardar para mais tarde.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Removido de Os meus favoritos.",loading:"A carregar","add-favorite-error":"N\xE3o \xE9 poss\xEDvel adicionar a Os meus favoritos. Tente novamente mais tarde.","remove-favorite-error":"N\xE3o \xE9 poss\xEDvel remover de Os meus favoritos. Tente novamente mais tarde."}},xL={translation:IL},_L={"favorites-heart":{"my-favorites":"Mina favoriter","added-to-my-favorites":{value:"Tillagd i {my-favorites}.",_context:"{my-favorites} should not be localized. It will be replaced by the translation for 'my-favorites'."},"heart-accessibility-label":"L\xE4gg till i eller ta bort fr\xE5n Mina favoriter","sign-in":"Logga in","
1sign-in-to-save":{value:"{sign-in} f\xF6r att spara till senare.",_context:"{sign-in} should not be localized. It will be replaced by the translation for 'sign-in'."},"removed-from-my-favorites":"Borttagen fr\xE5n Mina favoriter.",loading:"L\xE4ser in","add-favorite-error":"G\xE5r inte att l\xE4gga till i Mina favoriter. F\xF6rs\xF6k igen senare.","remove-favorite-error":"G\xE5r inte att ta bort fr\xE5n Mina favoriter. F\xF6rs\xF6k igen senare."}},kL={translation:_L};const ML={"da-dk":tL,"de-de":nL,"en-ca":aL,"en-gb":sL,"en-us":lL,"es-es":dL,"es-us":fL,"fi-fi":mL,"fr-ca":vL,"fr-fr":bL,"it-it":TL,"nb-no":SL,"nl-nl":CL,"pt-pt":xL,"sv-se":kL},GE=yi({}),Xd=()=>xt(GE),OL=({locale:e,children:t})=>{const r=n=>JD(ML,e,n);return y.createElement(GE.Provider,{value:{translate:r}},t)},WE=()=>{const{translate:e}=Xd(),{favoritesPageRoute:t}=uh(),r=Or()==="xs",[n,i]=e("added-to-my-favorites").split("{my-favorites}");return y.createElement(we,{display:r?"block":"inline"},n,y.createElement(Ba,null,y.createElement(It,{href:t},e("my-favorites"))),i)},AL="favorite-added",$L=()=>{const{translate:e}=Xd(),{auth:t}=vc(),r=Or()==="xs",[n,i]=e("sign-in-to-save").split("{sign-in}");return y.createElement(we,{display:r?"block":"inline"},n,y.createElement(Ba,null,y.createElement(It,{render:a=>y.createElement(Dt,{skin:"link",className:a.className,onClick:()=>t?.signIn(void 0,void 0,{trackingCaller:AL})},a.children)},e("sign-in"))),i)},RL=({isFavoriteChecked:e,displayError:t})=>{const{translate:r}=Xd(),{isSignedIn:n}=vc();if(t)return y.createElement(we,null,r(e?"remove-favorite-error":"add-favorite-error"));if(e){if(n)return y.createElement(WE,null);if(!n)return y.createElement(y.Fragment,null,y.createElement(WE,null)," ",y.createElement($L,null))}else return y.createElement(we,null,r("removed-from-my-favorites"))},NL=({isFavoriteChecked:e,displayError:t})=>{const r=Or()==="xs",[n,i]=pe(100);Rl(()=>{if(typeof window<"u"){const o=document.getElementById("bookendsHeader"),s=document.querySelectorAll('[class*="promobar"]');if(o&&o.offsetHeight>0){let c=o.offsetHeight;s.length===0?r||(c-=40):r||(c+=30),i(c)}}},[]);const a=t?"error":e?"success":"info";return EE.createPortal(y.createElement(ct,{mx:r?3:"auto",style:{position:"fixed",top:n,left:0,right:0,zIndex:100,backgroundColor:"transparent"},className:_0()},y.createElement(es,{skin:a,toast:!0},y.createElement(RL,{isFavoriteChecked:e,displayError:t}))),document.body)},DL=({isLoading:e,isFavoriteChecked:t,onChangeHandler:r})=>{const{translate:n}=Xd(),{isFavoriteDataReady:i}=uh();return y.createElement(ct,{ml:"auto",mb:"auto"},e?y.createElement(Re,{my:3,pr:3},y.createElement(Fa,{accessibleText:n("loading")})):y.createElement(k0,{skin:"favorite",checked:t,disabled:!i,onChange:r,"aria-label":n("heart-accessibility-label"),onClick:a=>{a.stopPropagation()}}))};var dh=(e=>(e.PRODUCT_ADDED_TO_WISHLIST="Product Added to Wishlist",e.PRODUCT_REMOVED_FROM_WISHLIST="Product Removed from Wishlist",e))(dh||{}),QE=(e=>(e.FAVORITES="Favorites",e))(QE||{});const ZE="PCXT",LL=new RegExp(`(^| )${ZE}=([^;]+)`),ph="PCXT-V3-ScriptLoaded",fh="PCXT-V3-ModuleInitialized",UL="PCXT-V3-ContextChanged",FL="PCXT-V3-CouponCodeChanged",BL="PCXT-V3-VatInclusivityChanged",qL="PCXT-V3-EffectiveDateTimeChanged",zL="PCXTVATINCLUSIVE",VL="PCXTEFFECTIVEDATETIME",jL="PCXTCOUPON",HL={COOKIE_NAME:ZE,COOKIE_REGEX:LL},GL={VAT_INCLUSIVITY_QUERY_PARAMETER:zL,DATE_TIME_QUERY_PARAMETER:VL,COUPON_QUERY_PARAMETER:jL},KE={SCRIPT_LOADED_EVENT:ph,INITIALIZED_EVENT:fh,CONTEXT_CHANGE_EVENT:UL,COUPON_CHANGE_EVENT:FL,VAT_INCLUSIVITY_CHANGE_EVENT:BL,DATE_TIME_CHANGE_EVENT:qL},WL=(e,t,r)=>{if(typeof t=="function"){if(Object.values(KE).indexOf(e)===-1){console.warn(`Event '${e}' is NOT a valid pricing context event.`);return}gh()&&window.document.addEventListener(e,function n(i){r||window.document.removeEventListener(e,n,!1),t(i.detail)})}},QL=()=>{if(gh())return window.document.pcxtV3},gh=()=>typeof window<"u"&&window.document,ZL=(e,t)=>t.length===0?(console.error(`Invalid subtenant value ${t.toString()}`),e):e+`&subtenant=${t}`,KL=e=>["VCS"].some(r=>r===e.toUpperCase()),YL=(e,t)=>{typeof t=="function"&&(window.document.pcxtV3&&window.document.pcxtV3.isInitialized(e.merchantId,e.market,e.isDevelopmentMode)?t(window.document.pcxtV3.getPricingContext()):window.document.addEventListener(fh,function r(n){window.document.removeEventListener(fh,r,!1),t(n.detail)}))},YE=e=>{const t=()=>{};window.document.pcxtV3.init(e.merchantId,e.market,e.isDevelopmentMode).catch(t)};var mh={executeAfterPricingContextEvent:WL,getPcxtV3:QL,appendSubtenant:ZL,isSubtenantMandatory:KL,initializePricingContext:(e,t)=>
1{gh()&&(YL(e,t),window.document.pcxtV3?YE(e):window.document.addEventListener(ph,function r(){window.document.removeEventListener(ph,r,!1),YE(e)}))},EVENTS:KE,COOKIE_DATA:HL,QUERY_PARAMETERS:GL};const XE=y.createContext({}),XL=({market:e,tenant:t,children:r})=>{const[n,i]=pe(!1),[a,o]=pe({}),s=c=>{i(!0),o(c)};return Ee(()=>{mh.initializePricingContext({isDevelopmentMode:!1,market:e,merchantId:t},s),mh.executeAfterPricingContextEvent(mh.EVENTS.VAT_INCLUSIVITY_CHANGE_EVENT,c=>{o(c)},!0)},[e]),y.createElement(XE.Provider,{value:{isInitialized:n,pricingContextModule:a}},r)},JE=y.createContext(void 0),JL=({pageSection:e,children:t})=>{const{pricingContextModule:r}=xt(XE),n=(c,l)=>{const u=Dl();u?u.track(c,l):console.warn(`tracking not defined - ${c}`,void 0,l)},i=Et((c,l,u,d,p,g,m)=>{const v={category:QE.FAVORITES,label:e,wishlist_id:l,wishlist_name:g??e,product_id:u,name:d,variant:eU(p),quantity:1,coupon:r?.couponCode,position:m};n(c,v)},[e,r.couponCode]),a=Et((c,l,u,d,p,g)=>{i(dh.PRODUCT_ADDED_TO_WISHLIST,c,l,u,d,p,g)},[i]),o=Et((c,l,u,d,p)=>{i(dh.PRODUCT_REMOVED_FROM_WISHLIST,c,l,u,void 0,d,p)},[i]),s=Ye(()=>({trackProductAddedToWishlist:a,trackProductRemovedFromWishlist:o}),[a,o]);return y.createElement(JE.Provider,{value:s},t)},eU=e=>{if(!e)return;let t="";return Object.keys(e).forEach(r=>{typeof e[r]=="string"?t+=`_${r}:${e[r]}`:t+=`_${r}:${JSON.stringify(e[r])}`}),t=t.substring(1),t},tU=()=>{const e=xt(JE);if(e===void 0)throw new Error("useTrackingContext must be used within a TrackingProvider");return e},rU=7e3,nU=({productKey:e,productVersion:t,selectedOptions:r,documentUrl:n,productName:i,mpvId:a,pageZone:o,productPosition:s})=>{const{favoriteService:c,favoriteProducts:l}=uh(),{trackProductAddedToWishlist:u,trackProductRemovedFromWishlist:d}=tU(),[p,g]=pe(!1),[m,v]=pe(!1),[h,P]=pe(!1),[x,T]=pe(!1),k=vt(null);Ee(()=>()=>{k.current&&clearTimeout(k.current)},[]),Ee(()=>{g(l.some($=>$.productKey===e))},[l]);const M=async()=>{k.current&&(clearTimeout(k.current),v(!1));try{P(!1),T(!0),p?(await c?.removeFavoriteProduct(e),d(e,a,i,o,s)):(await c?.addFavoriteProduct(e,t,r,n),u(e,a,i,r||{},o,s)),g(!p)}catch{P(!0)}finally{v(!0),k.current=setTimeout(()=>{v(!1)},rU),T(!1)}};return y.createElement(y.Fragment,null,m&&!x&&y.createElement(NL,{isFavoriteChecked:p,displayError:h}),y.createElement(DL,{isLoading:x,isFavoriteChecked:p,onChangeHandler:M}))},iU="en-ie",aU="vistaprint",oU=({enabled:e=!0,children:t})=>{const{auth:r}=vc(),n="1120442496";return e?y.createElement(fm,{loggerOptions:{serviceName:"my-account-favorites-heart-component",applicationId:n,vpIdentity:{authorizationHeader:r?.getAuthorizationHeader?.()??"",canonicalId:r?.getCanonicalId?.()??""}}},t):y.createElement(fm,{loggerOptions:{serviceName:"my-account-favorites-heart-component"}},t)},sU=({pageSection:e,disableLogging:t=!1,children:r})=>{const{locale:n=iU,tenant:i=aU}=h0(),a=n.split("-")[1];return y.createElement(OL,{locale:n},y.createElement(oU,{enabled:!t},y.createElement(XL,{market:a,tenant:i},y.createElement(JL,{pageSection:e},y.createElement(YD,{locale:n,tenant:i},r)))))};dt.core,dt.utility,dt.alertBox,dt.button,dt.icon,dt.spinner;const cU=({product:e,favourite:t,onError:r})=>f(wo,{componentName:"favourites",severity:"degraded",onError:r,children:f(Em,{position:"top-right",inset:"action",children:f(nU,{productKey:e.productKey,productVersion:e.productVersion,mpvId:e.mpvId,productName:e.name??"",selectedOptions:e.selectedOptions,pageZone:t.pageZone,productPosition:t.productPosition})})}),lU=({product:e,onError:t})=>{const r={...e.selectedOptions};return f(wo,{componentName:"coupon",severity:"warning",onError:t,children:f(ct,{mt:4,children:f(wc,{productId:e.productKey,version:e.productVersion,mpvId:e.mpvId,selections:r,quantity:e.quantity})})})};function eS(e,t){try{return e(t)}catch{return null}}function uU(e,t,r,n){return[{isActive:()=>e===!1,resolve:()=>{const i=eS(n,"ep-tiles.product-tile.callout.outOfStock");return i?{label:i,skin:"info",emphasis:"low"}:null}},{isActive:()=>!!t?.campaignCallout,resolve:()=>({label:t?.campaignCallout,skin:"promo"})},{isActive:()=>t?.newLowPrice===!0,resolve:()=>{const i=r.NEW_LOW_PRICE?.localizedValue;return i?{label:i,skin:"promo"}:null}},{isActive:()=>t?.bestSeller===!0,resolve:()=>{const i=eS(n,"ep-tiles.product-tile.callout.bestSeller");return i?{label:i,skin:"accent"}:null}},{isActive:()=>t?.new===!0,resolve:()=>{const i=r.NEW?.localizedValue;return i?{label:i,skin:"accent"}:null}},{isActive:()=>t?.newOptions===!0,resolve:()=>{const i=r.NEW_OPTIONS?.localizedValue;return i?{label:i,skin:"accent"}:null}}]}function dU(e,t,r,n){const i=uU(e,t,r,n);for(const a of i)if(a.isActive())return a.resolve();return null}const pU=({product:e,callout:t,calloutsLocalization:r,onError:n})=>{const{t:i}=wl(),a=dU(e.inStock,t,r,i);return a?f(wo,{componentName:"callout",severity:"warning",onError:n,children:f(Em,{position:"top-left",children:f(mi,{skin:a.skin,emphasis:a.emphasis,"data-testid":"product-tile-callout",children:a.label})})}):null},tS=Ri((e,t)=>{const{className:r,product:n,callout:i,calloutsLocalization:a,ratingSummary:o,favourite:s,cta:c,quantitySelector:l,config:u,callbacks:d,...p}=e,g=RD(n),m=vt(d?.onError);if(m.current=d?.onError,Ee(()=>{const h=[...g,...ND(n,c)];h.length>0&&m.current?.(h)},[n.productKey,n.mpvId,n.productVersion,n.productUrl,n.name,c?.label]),DD(g))return null;const v=yo(r,{[Fl.productTile]:!0});return X(kd,{ref:t,className:v,...p,evenHeight:!0,children:[X(BD,{product:n,config:u,productUrl:n.productUrl,onTileClick:d?.onTileClick,onError:d?.onError,children:[f(pU,{product:n,callout:i,calloutsLocalization:a,onError:d?.onError}),s&&f(cU,{product:n,favourite:s,onError:d?.onError})]}),X(hm,{children:[n.name&&f(qD,{name:n.name,productUrl:n.productUrl,onTileClick:d?.onTileClick}),o&&f(zD,{ratingSummary:o,onError:d?.onError}),n.description&&f(VD,{description:n.description}),f(QD,{product:n,onError:d?.onError}),u?.showCouponCallout&&f(lU,{product:n,onError:d?.onError}),i?.expressShipping&&a.EXPRESS_SHIPPING?.localizedValue&&f(GD,{localization:a.EXPRESS_SHIPPING}),i?.sustainable&&a.SUSTAINABLE?.localizedValue&&f(WD,{localization:a.SUSTAINABLE})]}),c?.label&&f(M0,{children:X(Re,{flexDirection:"column",children:[l&&f(HD,{quantitySelector:l,onError:d?.onError}),f(jD,{cta:c})]})})]})}),fU=yi(null),gU=({auth:e,tenant:t,locale:r,pageId:n,pageSection:i,children:a})=>{const o=Ye(()=>({auth:e,tenant:t,locale:r,pageId:n,pageSection:i}),[e,t,r,n,i]),s=Ye(()=>n?{tenant:t,locale:r,pageId:n}:void 0,[t,r,n]),c=f(sU,{pageSection:i,children:a});return f(fU.Provider,{value:o,children:s?f(bE,{baseConfig:s,children:c}):c})};function mU(e,t,r){const n=[];
1return(e.items||[]).forEach(i=>{n.push({name:i.name,description:i.description,image:i.image,linkUrl:i.linkUrl,mpvId:i.mpvId,productId:i.productId,...i.callout&&{callout:i.callout},isOutOfStock:i.isOutOfStock,...i.review&&{review:i.review},colorInformation:i.colorInformation?.colorSwatches,version:i.version,selectedProductVariants:i.selectedProductVariants.variants,quantity:i.selectedProductVariants.quantity,enableCampaignCallouts:!0,showPrice:!0,associatedPageAvailable:!0,productName:i.productName})}),{title:e.header?.title,sectionNumber:t,type:e.type,sectionId:e.sectionId,...r?.nextSectionId&&{nextSectionId:r.nextSectionId},...r?.nextSectionTitle&&{nextSectionTitle:r.nextSectionTitle},subtitle:e.header?.subtitle,hideProductDescription:!1,enableSeeAllCTA:!1,tiles:n,isAutomatedLane:!0}}function Jd(e,t){return e.featureFlagKey?t?.[e.featureFlagKey]==="true":!0}class hh{static getSelections(t){return t?Object.fromEntries(Object.entries(t).filter(([r,n])=>r!=="Quantity"&&n!==void 0)):{}}static getQuantity(t){const r=t?.Quantity;return r?Number(r):void 0}}class vh{static getMaxColorSwatchCountDesktop(t,r){return t>4||r?6:8}static getNumberOfColorsToDisplay(t,r){return t==="xs"?4:r}static getNumberOfTilesPerRow(t,r,n){switch(r){case"product grid horizontal":return 3;case"product grid horizontal XL":return 2;default:return this.getDefaultTilesPerRow(t,n)}}static getDefaultTilesPerRow(t,r){return r<=4||t?4:6}}class hU{static format(t,r){return t?"":r??""}}class yh{static getMpv(t,r){return r.mpvs.find(n=>n.mpvId===t)}static sanitizeLocale(t){return`${t.slice(0,2).toLowerCase()}-${t.slice(-2).toUpperCase()}`}}class rS{static isAvailable(t,r,n){return n?!0:r.find(i=>i.mpvId===t)?.availability??!1}}class bh{static extractCommonFields(t,r,n,i,a){const o=t.productsList?.selectedProductVariants,s=hh.getQuantity(o);return{contentful_id:r,...t.tileDetails?.header?.value&&{name:t.tileDetails.header.value},...t.tileDetails?.description?.value&&{description:t.tileDetails.description.value},...t.tileDetails?.formattedDescription?.value&&{formattedDescription:t.tileDetails.formattedDescription.value},...t.tileDetails?.image?.cloudinaryImage?.[0]&&{image:t.tileDetails.image.cloudinaryImage[0]},...t.tileDetails?.link?.href&&{linkUrl:t.tileDetails.link.href},...t.calloutDetails&&{callout:t.calloutDetails},...t.allAvailableTags&&{allAvailableTags:t.allAvailableTags},enableCampaignCallouts:n??!1,selectedProductVariants:hh.getSelections(o),...s&&{quantity:s},...a&&i?.[a]&&{review:i[a]}}}static hasExplicitLink(t){return!!t.tileDetails?.link?.linkType}}class wh{static buildFromMpv(t,r){const n={mpvId:t,showPrice:!0};return r?.coreProductId&&(n.productId=r.coreProductId),n.isOutOfStock=r?.productOutOfStock??!1,r?.colorInformation&&(n.colorInformation=r.colorInformation),r?.version&&(n.version=r.version),n}}class vU{constructor(t,r){this.pageDataFromBFF=t,this.reviewsData=r}buildTile(t,r){const n=t.product?.template;if(!n)return;const i=n.productsList?.selectedProduct?.mpvId,a=bh.extractCommonFields(n,t.product?.contentful_id,r,this.reviewsData,i);return i?this.buildMpvLaneTile(a,i,n):{...a,associatedPageAvailable:!0}}buildMpvLaneTile(t,r,n){const i=yh.getMpv(r,this.pageDataFromBFF);if(!i)return;const a=wh.buildFromMpv(r,i),o=rS.isAvailable(r,this.pageDataFromBFF.pageAvailabilities,bh.hasExplicitLink(n));return{...t,associatedPageAvailable:o,...a}}}class yU{static build(t,r,n,i,a,o){if(!t.items?.length)return;const s=new vU(o,i),c=[];for(const l of t.items){const u=s.buildTile(l,a);u&&c.push(u)}return{...t.title?.value&&{title:t.title.value},sectionNumber:r,type:t.type,...t.sectionId&&{sectionId:t.sectionId},...n?.nextSectionId&&{nextSectionId:n.nextSectionId},...n?.nextSectionTitle&&{nextSectionTitle:n.nextSectionTitle},...t.subtitle?.value&&{subtitle:t.subtitle.value},...t.hideProductDescription&&{hideProductDescription:t.hideProductDescription},...t.enableSeeAllCTA&&{enableSeeAllCTA:t.enableSeeAllCTA},...t.seeAllCta&&{seeAllCta:t.seeAllCta},tiles:c,isAutomatedLane:!1,automationEnabled:t.automationEnabled??!1}}}class bU{constructor(t){this.pageDataFromBFF=t}buildTile(t){const r=t.product?.template;if(!r)return;const n=r.productsList?.selectedProduct?.mpvId;return n?this.buildMpvTile(t,n,r):{...t,associatedPageAvailable:!0}}buildMpvTile(t,r,n){const i=yh.getMpv(r,this.pageDataFromBFF);if(!i)return;const a=wh.buildFromMpv(r,i),o=rS.isAvailable(r,this.pageDataFromBFF.pageAvailabilities,bh.hasExplicitLink(n));return{...a,...t,mpvId:r,associatedPageAvailable:o}}}class Ni{static getModel(t,r){const n=new bU(r),i=[];for(const o of t.items){const s=n.buildTile(o);s&&i.push(s)}const a={tiles:i};return t.title!==void 0&&(a.title=t.title),t.subtitle!==void 0&&(a.subtitle=t.subtitle),a}static getMaxColorSwatchCountDesktop(t,r){return vh.getMaxColorSwatchCountDesktop(t,r)}static getNumberOfColorsToDisplay(t,r){return vh.getNumberOfColorsToDisplay(t,r)}static getNumberOfProductTilesPerRow(t,r,n){return vh.getNumberOfTilesPerRow(t,r,n)}static getFormattedDescription(t,r){return hU.format(t,r)}static getSelectionsFromProductVariants(t){return hh.getSelections(t)}static getTileV2FromMpv(t,r){return wh.buildFromMpv(t,r)}static createProductLaneModel(t,r,n,i,a,o,s,c){const l={section:t,pageDataFromBFF:o,options:{sectionNumber:r,nextSection:n,reviewsData:i,enableCampaignCallouts:a,automatedExperience:s,featureFlags:c}
1};return this.buildProductLaneModel(l)}static buildProductLaneModel(t){const{sectionNumber:r,nextSection:n,automatedExperience:i,featureFlags:a}=t.options,o=i?.sections?.find(c=>c.sectionId===t.section.sectionId);return o&&t.section.automationEnabled&&Jd(o,a)?mU(o,r,n):yU.build(t.section,r,n,t.options.reviewsData,t.options.enableCampaignCallouts,t.pageDataFromBFF)}}class os{static getPricingContext(){const t=os.getDocument();return t?.pcxtV3?.isInitialized()?t.pcxtV3.getEncodedContextString()??"":""}static isInitialized(){return os.getDocument()?.pcxtV3?.isInitialized()??!1}static getDocument(){return typeof document<"u"?document:void 0}}/*! js-cookie v3.0.8 | MIT */function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)n!=="__proto__"&&(e[n]=r[n])}return e}var wU={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Th(e,t){function r(i,a,o){if(!(typeof document>"u")){o=ep({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var c in o)o[c]&&(s+="; "+c,o[c]!==!0&&(s+="="+o[c].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+s}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var c=a[s].split("="),l=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(u in o||(o[u]=e.read(l,u)),i===u)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",ep({},a,{expires:-1}))},withAttributes:function(i){return Th(this.converter,ep({},this.attributes,i))},withConverter:function(i){return Th(ep({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var nS=Th(wU,{path:"/"});class Eh{static getVat(t){const r=this.getPcxtCookie();return r?r.vatInclusive??t:t}static getPcxtCookie(){const t=nS.get("PCXT");if(t)return JSON.parse(atob(t))}}const iS=yi({auth:void 0,backgroundColor:"platinum",debugMode:!1,dictionaryEntries:{},enableCampaignCallouts:!1,environment:"",locale:"",logger:void 0,merchandisingCategoryId:"",reviewsData:void 0,uploadFlowMpv:void 0,sidebarEnabled:!1,vatInclusivity:!1,spaceId:"",contentfulId:"",experiments:{},identity:void 0,isPartOfDesignTemplateRollout:!1,designTemplateData:void 0,isPricingContextInitialized:!1,tenant:"",calloutsLocalization:{},calloutsData:{},mpvs:[],pageLevel:void 0,rawProductRecommendations:void 0}),TU=e=>{const{backgroundColor:t,children:r,defaultVatIncl:n,dictionaryEntries:i,enableCampaignCallouts:a,environment:o,locale:s,logger:c,merchandisingCategoryId:l,reviewsData:u,sidebarEnabled:d,uploadFlowMpv:p,spaceId:g,contentfulId:m,experiments:v,isPartOfDesignTemplateRollout:h,designTemplateData:P,tenant:x,calloutsLocalization:T,calloutsData:k,mpvs:M,pageLevel:$,rawProductRecommendations:O}=e,[H,J]=pe(!1),[W,me]=pe(void 0),[Z,B]=pe(n),Q=os.isInitialized(),R=vc();Ee(()=>{const ie=R.auth?.getIdentity?.();ie!==W&&me(ie)},[R]),Ee(()=>{Q&&(B(Eh.getVat(n)),document.addEventListener(Xm.EVENTS.INITIALIZED_EVENT,()=>{B(Eh.getVat(n))},{once:!0}),document.addEventListener(Xm.EVENTS.VAT_INCLUSIVITY_CHANGE_EVENT,()=>{B(Eh.getVat(n))},!1))},[Q]),Ee(()=>{if(typeof window<"u"&&window.location.search){const ie=new URLSearchParams(window.location.search);J(ie.has("debugPage"))}},[]);const Y={auth:R.auth,backgroundColor:t||"platinum",debugMode:H,dictionaryEntries:i,enableCampaignCallouts:a,environment:o,locale:s,logger:c,merchandisingCategoryId:l,reviewsData:u,uploadFlowMpv:p,sidebarEnabled:d,vatInclusivity:Z,spaceId:g,contentfulId:m,experiments:v,identity:W,isPartOfDesignTemplateRollout:h,designTemplateData:P,isPricingContextInitialized:Q,tenant:x,calloutsLocalization:T,calloutsData:k,mpvs:M,pageLevel:$,rawProductRecommendations:O};return f(iS.Provider,{value:Y,children:f(Sm,{children:r})})},et=()=>xt(iS),tp=e=>!!(e&&e.associatedPageAvailable),Sh=e=>!e.isOutOfStock,EU=(e,t,r,n,i)=>e&&t&&r&&n&&i;
1var bi=pm("c",typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{});function Ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ph(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var aS={exports:{}};/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;
5if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(aS);var SU=aS.exports,To=Ec(SU),PU=".tile-disabled .tile-disabled-image{filter:grayscale(1) opacity(.6)}.tile-disabled .tile-disabled-contents{color:var(--swan-sem-color-text-subtle)}.tile-disabled .tile-disabled-contents a:hover{color:inherit}.tile-disabled :hover{cursor:pointer}";const Ch=e=>{if(!e)return e;try{return new URL(e).pathname}catch{return e.split("?")[0].split("#")[0]}};class ss{static applyImageTransformation(t,r){let n;try{n=new URL(t)}catch{return t}const i=n.pathname.split("/").filter(Boolean),a=i.findIndex(p=>ss.isTransformationTokenSegment(p));if(a===-1)return t;const o=i[a];if(!o)return t;const s=o.split(",").map(p=>p.trim()).filter(Boolean),c=r.split(",").map(p=>p.trim()).filter(Boolean),l=c.map(p=>p.match(/^[a-z]+_/)?.[0]).filter(p=>!!p),u=s.filter(p=>!l.some(g=>p.startsWith(g))),d=[...c,...u];return i[a]=d.join(","),n.pathname=`/${i.join("/")}`,n.toString()}static isTransformationTokenSegment(t){const r=t.split(",").map(n=>n.trim()).filter(Boolean);return r.length?r.some(n=>/^[a-z]{1,6}_/.test(n)):!1}static isVideo(t){return!!t&&!!t.video}static getVideoUrl(t,r){const n=t;return(r==="xs"?n?.video?.mobileVideoUrl:n?.video?.videoUrl)||n?.video?.videoUrl}static getVideos(t){if(!t)return[];const n=t?.video?.publicId;if(!n)return[];const i="https://cms.cloudinary.vpsvc.com/video/upload/";return[3840,2560,1920,1080,768,480,360].map(o=>{const s=`w_${o},h_${o/2},c_limit,f_auto,q_auto`;return{breakpoint:o,src:`${i}${s}/${n}.mp4`,poster:`${i}so_0,${s}/${n}.jpg`}})}}const Bl=e=>{const{media:t,mediaXs:r,alt:n}=e;if(!t&&!r)return null;const i=t,a=r,o=[];return i&&o.push(f(IU,{image:i},"image-source")),a&&o.push(f(CU,{imageXs:a},"xs-image-source")),o.length>0?X("picture",{children:[o,f(qa,{src:i?.cloudinaryImage?.fullWidthHeroCloudinaryUrl,alt:n??i?.altTextOverride??""})]}):null},CU=e=>f("source",{media:"(max-width: 767px)",srcSet:`${e.imageXs?.cloudinaryImage?.mobileCloudinaryUrl} 768w`,sizes:"(max-width: 767px) 100vw"}),IU=e=>f("source",{media:"(min-width: 767px)",srcSet:`${e.image?.cloudinaryImage?.fullWidthHeroCloudinaryUrl} 1920w`,sizes:"(min-width: 767px) 100vw"}),Ih=e=>{const{media:t}=e,r=ss.getVideos(t);return f("video",{loop:!0,playsInline:!0,muted:!0,autoPlay:!0,poster:r[3].poster,children:r.map(n=>f("source",{src:n.src,media:`(min-width: ${n.breakpoint}px)`,type:"video/mp4"},n.breakpoint))})},oS=e=>{const{media:t,mediaXs:r}=e,n=Or(),i=n==="xs",a=ss.isVideo(r),o=ss.isVideo(t);let s=f(ue,{});const[c,l]=pe(!1);return Ee(()=>{l(!0)},[]),!a&&!o?s=f(Bl,{media:t,mediaXs:r,alt:t?.altTextOverride}):c&&(i?r?s=a?f(Ih,{media:r,screenClass:n}):f(Bl,{mediaXs:r,alt:r?.altTextOverride}):s=o?f(Ih,{media:t,screenClass:n}):f(Bl,{media:t,alt:t?.altTextOverride}):s=o?f(Ih,{media:t,screenClass:n}):f(Bl,{media:t,alt:t?.altTextOverride})),s},sS=({cta:e,index:t,merchandisingCategoryId:r,pageZone:n,ctaUrlsLength:i})=>{const a=()=>i===1?void 0:"mini";return e&&e.text&&e.targetUrl&&f(It,{skin:"unstyled",href:e?.targetUrl,"data-section":n,"data-translation":`CTA ${t+1}`,children:f(Dt,{component:"div",className:"standard-hero-cta",skin:e.skin,size:a(),onClick:()=>{An({categoryId:r,pageZone:n,ctaValue:`CTA ${t+1}`,destinationUrl:e.targetUrl})},children:e?.text},`standard-hero-cta-${t}`)})};var ur={},oa={},sa={},xU=sa&&sa.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(sa,"__esModule",{value:!0}),sa.cloudinaryParamsToString=sa.serializeParams=sa.serializeToUseEffectString=void 0;var rp=function(e,t){return e+"="+t};function _U(e){function t(r){if(typeof r=="object"){if(Array.isArray(r))return r.map(t);if(r===null)return null;var n={},i=xU([],Object.keys(r)).sort();return i.forEach(function(a){return n[a]=t(r[a])}),n}else return r}return JSON.stringify(t(e))}sa.serializeToUseEffectString=_U;var kU=function(e){for(var t=[],r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(typeof o=="object")if(Array.isArray(o))for(var s=0,c=o;s<c.length;s++){var l=c[s];if(typeof l=="object")for(var u in l)t.push(rp(a+"["+encodeURIComponent(u)+"]",encodeURIComponent(l[u])));else t.push(rp(a,encodeURIComponent(l)))}else{if(o==null)continue;for(var d=0,p=Object.entries(o);d<p.length;d++){var g=p[d],m=g[0],v=g[1];t.push(rp(a+"["+m+"]",encodeURIComponent(v)))}}else o!==void 0&&t.push(rp(a,encodeURIComponent(o)))}var h=t.join("&");return h};sa.serializeParams=kU;var MU=function(e){if(e)return typeof e=="string"?e:Object.entries(e).map(function(t){var r=t[0],n=t[1];return r+"="+n.toString()}).join(",")};sa.cloudinaryParamsToString=MU;var Un=oa&&oa.__assign||function(){return Un=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Un.apply(this,arguments)},xh=oa&&oa.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{l(n.next(u))}catch(d){o(d)}}function c(u){try{l(n.throw(u))}catch(d){o(d)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})},_h=oa&&oa.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(u){l=[6,u],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};Object.defineProperty(oa,"__esModule",{value:!0});var np=sa,OU=function(e){switch(e){case"PO-PROD":return"https://wrangler.prod.productoptions.vpsvc.com/api";case"PO-SAND":return"https://wrangler.sandbox.productoptions.vpsvc.com/api";case"LEGACY":default:return"https://wrangler.prod.merch.vpsvc.com/api"}},ql={},AU=50,$U=(function(){function e(){}return e.getWranglerData=function(t,r){return xh(this,void 0,void 0,function(){var n,i,a,o,s,c,l,u,d,p,g,m,v,h,P,x,T,k,M,$,O,H,J=this;return _h(this,function(W){return n=t.merchant,i=t.culture,a=t.productKey,o=t.productVersion,s=t.merchandisingExperience,c=t.merchAttr,l=t.selectedAttributes,u=t.initialSelectedAttributes,d=t.selectedQuantity,p=t.requestor,g=t.documentUrl,m=t.includeVat,v=t.priceStyle,h=t.couponCode,P=t.pricingContextString,x=t.testUserId,T=t.imageTransformations,k=t.iconTransformations,M=t.deselectCompletedOptions,$=t.excludeInitialSelectedAttributes,O
5={merchandisingExperience:s,merchAttr:c,responseComponents:["standardConfigurator"],selectedAttributes:l,selectedQuantity:d,requestor:p,initialSelectedAttributes:u,documentUrl:g,includeVat:m,priceStyle:v,couponCode:h,pricingContextString:P,optimizelyUserId:x,imageTransformations:np.cloudinaryParamsToString(T),iconTransformations:np.cloudinaryParamsToString(k),deselectCompletedOptions:M,excludeInitialSelectedAttributes:$},!s&&!c?[2,{data:void 0,exceptionMessages:["Either 'merchandisingExperience' or 'merchAttr' must be provided."]}]:(H=np.serializeToUseEffectString(t),ql[H]===void 0&&this.addToCache(H,new Promise(function(me,Z){var B=OU(r)+"/v1/"+n+"/"+i+"/configuratorData/"+a+"/"+o+"?"+np.serializeParams(O);fetch(B).then(function(Q){return Q.json()}).then(function(Q){return me({data:J.remapResponse(Q,i),exceptionMessages:Q.exceptionMessages})}).catch(function(Q){return Z({data:void 0,exceptionMessages:["error call to wrangler get endpoint failed: "+(Q.message?Q.message:"")]})})})),[2,ql[H]])})})},e.realizeDocument=function(t,r){return xh(this,void 0,void 0,function(){var n,i,a,o,s,c;return _h(this,function(l){switch(l.label){case 0:if(n=r.changesPending,!n)return[2,void 0];if(!t)throw new Error("AuthToken required to realize and save document");if(i=r.url,!i)throw new Error("Document resolution url required to realize and save document");l.label=1;case 1:return l.trys.push([1,3,,4]),[4,fetch(i,{headers:{authorization:"Bearer "+t}}).then(function(u){return u.json()})];case 2:return a=l.sent(),[3,4];case 3:throw o=l.sent(),new Error("Document resolution failed: url: "+i+"; exception: "+(o.message?o.message:o.stack));case 4:s=void 0,l.label=5;case 5:return l.trys.push([5,7,,8]),[4,this.postDocumentToUDS(a,t)];case 6:return s=l.sent(),[3,8];case 7:throw c=l.sent(),new Error("error posting document to UDS: "+JSON.stringify(s)+"; exception: "+(c.message?c.message:c.stack));case 8:return[2,s?._links]}})})},e.addToCache=function(t,r){var n=Object.keys(ql);n.length>AU&&delete ql[n[0]],ql[t]=r},e.postDocumentToUDS=function(t,r){return xh(this,void 0,void 0,function(){var n,i,a,o;return _h(this,function(s){switch(s.label){case 0:return n="https://uds.documents.cimpress.io",i="1",a=n+"/v3/documents?cacheForHours="+i,[4,fetch(a,{method:"POST",headers:{"Content-Type":"application/json",authorization:"Bearer "+r},body:JSON.stringify(t)}).then(function(c){return c.json()})];case 1:return o=s.sent(),[2,o]}})})},e.remapResponse=function(t,r){var n,i,a,o;function s(l){switch(typeof l){case"string":var u=parseInt(l);return isNaN(u)?void 0:u;case"number":return l;default:return}}var c=t.standardConfigurator;return Un(Un({},c),{attributes:c.attributes.map(function(l){return Un(Un({},l),{options:l.options.map(function(u){return Un(Un({},u),{violations:u.violations,badges:u.enhancedBadges.map(function(d){return{id:d.key,text:d.text}})})})})}),quantities:Un(Un({},c.quantities),{selected:s((n=c.quantities)===null||n===void 0?void 0:n.selected),quantities:(a=(i=c.quantities)===null||i===void 0?void 0:i.quantities)===null||a===void 0?void 0:a.map(function(l){return Un(Un({},l),{quantity:s(l.quantity),badges:l.enhancedBadges.map(function(u){return{id:u.key,text:u.text}})})})}),selections:Un(Un({},c.selections),{quantity:s((o=c.selections)===null||o===void 0?void 0:o.quantity)})})},e})();oa.default=$U;var Ar={},cS=Object.prototype.hasOwnProperty;function lS(e,t,r){for(r of e.keys())if(zl(r,t))return r}function zl(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&zl(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=lS(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=lS(t,i),!i)||!zl(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;
5for(r in e)if(cS.call(e,r)&&++n&&!cS.call(t,r)||!(r in t)||!zl(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function kh(e){var t=Lt.useRef(e),r=Lt.useRef(0);return zl(e,t.current)||(t.current=e,r.current+=1),Lt.useMemo(function(){return t.current},[r.current])}function RU(e,t){return Lt.useEffect(e,kh(t))}function NU(e,t){return Lt.useEffect(e,kh(t))}var DU=Object.freeze({__proto__:null,default:RU,useDeepCompareEffectNoCheck:NU,useDeepCompareMemoize:kh}),LU=Ph(DU);(function(e){var t=Ar&&Ar.__assign||function(){return t=Object.assign||function(m){for(var v,h=1,P=arguments.length;h<P;h++){v=arguments[h];for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(m[x]=v[x])}return m},t.apply(this,arguments)},r=Ar&&Ar.__createBinding||(Object.create?(function(m,v,h,P){P===void 0&&(P=h),Object.defineProperty(m,P,{enumerable:!0,get:function(){return v[h]}})}):(function(m,v,h,P){P===void 0&&(P=h),m[P]=v[h]})),n=Ar&&Ar.__setModuleDefault||(Object.create?(function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}):function(m,v){m.default=v}),i=Ar&&Ar.__importStar||function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var h in m)h!=="default"&&Object.prototype.hasOwnProperty.call(m,h)&&r(v,m,h);return n(v,m),v},a=Ar&&Ar.__awaiter||function(m,v,h,P){function x(T){return T instanceof h?T:new h(function(k){k(T)})}return new(h||(h=Promise))(function(T,k){function M(H){try{O(P.next(H))}catch(J){k(J)}}function $(H){try{O(P.throw(H))}catch(J){k(J)}}function O(H){H.done?T(H.value):x(H.value).then(M,$)}O((P=P.apply(m,v||[])).next())})},o=Ar&&Ar.__generator||function(m,v){var h={label:0,sent:function(){if(T[0]&1)throw T[1];return T[1]},trys:[],ops:[]},P,x,T,k;return k={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function M(O){return function(H){return $([O,H])}}function $(O){if(P)throw new TypeError("Generator is already executing.");for(;h;)try{if(P=1,x&&(T=O[0]&2?x.return:O[0]?x.throw||((T=x.return)&&T.call(x),0):x.next)&&!(T=T.call(x,O[1])).done)return T;switch(x=0,T&&(O=[O[0]&2,T.value]),O[0]){case 0:case 1:T=O;break;case 4:return h.label++,{value:O[1],done:!1};case 5:h.label++,x=O[1],O=[0];continue;case 7:O=h.ops.pop(),h.trys.pop();continue;default:if(T=h.trys,!(T=T.length>0&&T[T.length-1])&&(O[0]===6||O[0]===2)){h=0;continue}if(O[0]===3&&(!T||O[1]>T[0]&&O[1]<T[3])){h.label=O[1];break}if(O[0]===6&&h.label<T[1]){h.label=T[1],T=O;break}if(T&&h.label<T[2]){h.label=T[2],h.ops.push(O);break}T[2]&&h.ops.pop(),h.trys.pop();continue}O=v.call(m,h)}catch(H){O=[6,H],x=0}finally{P=T=0}if(O[0]&5)throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}},s=Ar&&Ar.__rest||function(m,v){var h={};for(var P in m)Object.prototype.hasOwnProperty.call(m,P)&&v.indexOf(P)<0&&(h[P]=m[P]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,P=Object.getOwnPropertySymbols(m);x<P.length;x++)v.indexOf(P[x])<0&&Object.prototype.propertyIsEnumerable.call(m,P[x])&&(h[P[x]]=m[P[x]]);return h},c=Ar&&Ar.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.useWranglerDataContext=e.WranglerDataContext=void 0;var l=i(y),u=c(oa),d=c(LU);e.WranglerDataContext=l.createContext(void 0);function p(m){var v=l.useState(void 0),h=v[0],P=v[1],x=l.useState(!1),T=x[0],k=x[1],M=l.useState([]),$=M[0],O=M[1];m.children;var H=s(m,["children"]),J={merchant:H.merchant,culture:H.culture,initialSelectedAttributes:H.initialSelectedAttributes,initialQuantity:H.selectedQuantity,merchandisingExperience:H.merchandisingExperience,merchAttr:H.merchAttr,includeVat:H.includeVat,priceStyle:H.priceStyle,couponCode:H.couponCode,pricingContextString:H.pricingContextString,excludeInitialSelectedAttributes:H.excludeInitialSelectedAttributes,deselectCompletedOptions:H.deselectCompletedOptions,selectedAttributes:H.selectedAttributes};return d.default(function(){var W=!0;function me(){return a(this,void 0,void 0,function(){var Z,B,Q;return o(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,,3]),Z=t({},H),[4,u.default.getWranglerData(Z,H.wranglerHost)];case 1:return B=R.sent(),W&&(O(B.exceptionMessages),k(!1),P(B.data||h)),[3,3];case 2:return Q=R.sent(),W&&(O([Q.message+": "+Q.stack]),k(!1)),[3,3];case 3:return[2]}})})}return h&&k(!0),me(),function(){W=!1}},[H]),l.default.createElement(e.WranglerDataContext.Provider,{value:{data:h,context:J,updating:T,exceptionMessages:$}},m.children)}e.default=p;var g=function(){return l.useContext(e.WranglerDataContext)};e.useWranglerDataContext=g})(Ar);var wi={};(function(e){var t=wi&&wi.__assign||function(){return t=Object.assign||function(u){for(var d,p=1,g=arguments.length;p<g;p++){d=arguments[p];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(u[m]=d[m])}return u},t.apply(this,arguments)},r=wi&&wi.__createBinding||(Object.create?(function(u,d,p,g){g===void 0&&(g=p),Object.defineProperty(u,g,{enumerable:!0,get:function(){return d[p]}})}):(function(u,d,p,g){g===void 0&&(g=p),u[g]=d[p]})),n=wi&&wi.__setModuleDefault||(Object.create?(function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}):function(u,d){u.default=d}
5),i=wi&&wi.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var p in u)p!=="default"&&Object.prototype.hasOwnProperty.call(u,p)&&r(d,u,p);return n(d,u),d},a=wi&&wi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.useManagedWranglerSelectionsContext=e.ManagedWranglerSelectionsProvider=e.ManagedWranglerSelectionsContext=void 0;var o=i(y),s=a(Ar);e.ManagedWranglerSelectionsContext=o.createContext(void 0);function c(u){var d=o.useState(u.selectedQuantity),p=d[0],g=d[1],m=o.useState(u.selectedAttributes||{}),v=m[0],h=m[1];function P(T){g(T),u.onChangeQuantity&&u.onChangeQuantity(T,p)}function x(T){h(T),u.onChangeSelections&&u.onChangeSelections(T,v)}return o.default.createElement(e.ManagedWranglerSelectionsContext.Provider,{value:{setSelectedQuantity:P,setSelections:x}},o.default.createElement(s.default,t({},u,{selectedAttributes:v,selectedQuantity:p}),u.children))}e.ManagedWranglerSelectionsProvider=c;var l=function(){return o.useContext(e.ManagedWranglerSelectionsContext)};e.useManagedWranglerSelectionsContext=l})(wi),(function(e){var t=ur&&ur.__createBinding||(Object.create?(function(c,l,u,d){d===void 0&&(d=u),Object.defineProperty(c,d,{enumerable:!0,get:function(){return l[u]}})}):(function(c,l,u,d){d===void 0&&(d=u),c[d]=l[u]})),r=ur&&ur.__setModuleDefault||(Object.create?(function(c,l){Object.defineProperty(c,"default",{enumerable:!0,value:l})}):function(c,l){c.default=l}),n=ur&&ur.__importStar||function(c){if(c&&c.__esModule)return c;var l={};if(c!=null)for(var u in c)u!=="default"&&Object.prototype.hasOwnProperty.call(c,u)&&t(l,c,u);return r(l,c),l},i=ur&&ur.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.useManagedWranglerSelectionsContext=e.ManagedWranglerSelectionsProvider=e.ManagedWranglerSelectionsContext=e.useWranglerDataContext=e.WranglerDataContext=e.WranglerDataProvider=e.WranglerDataSource=void 0;var a=i(oa);e.WranglerDataSource=a.default;var o=n(Ar);e.WranglerDataProvider=o.default,Object.defineProperty(e,"WranglerDataContext",{enumerable:!0,get:function(){return o.WranglerDataContext}}),Object.defineProperty(e,"useWranglerDataContext",{enumerable:!0,get:function(){return o.useWranglerDataContext}});var s=wi;Object.defineProperty(e,"ManagedWranglerSelectionsContext",{enumerable:!0,get:function(){return s.ManagedWranglerSelectionsContext}}),Object.defineProperty(e,"useManagedWranglerSelectionsContext",{enumerable:!0,get:function(){return s.useManagedWranglerSelectionsContext}}),Object.defineProperty(e,"ManagedWranglerSelectionsProvider",{enumerable:!0,get:function(){return s.ManagedWranglerSelectionsProvider}})})(ur);var Sc={},uS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(uS);var $r=uS.exports,Vl={},jl=function(e){return e&&e.Math===Math&&e},zr=jl(typeof globalThis=="object"&&globalThis)||jl(typeof window=="object"&&window)||jl(typeof self=="object"&&self)||jl(typeof bi=="object"&&bi)||jl(typeof zr=="object"&&zr)||(function(){return this})()||Function("return this")(),UU={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mh=typeof document=="object"&&document.all,bn=typeof Mh>"u"&&Mh!==void 0?function(e){return typeof e=="function"||e===Mh}:function(e){return typeof e=="function"},FU=bn,ja=function(e){return typeof e=="object"?e!==null:FU(e)},BU=zr,dS=ja,Oh=BU.document,qU=dS(Oh)&&dS(Oh.createElement),Ah=function(e){return qU?Oh.createElement(e):{}},zU=Ah,$h=zU("span").classList,pS=$h&&$h.constructor&&$h.constructor.prototype,VU=pS===Object.prototype?void 0:pS,rn=function(e){try{return!!e()}catch{return!0}},jU=rn,Rh=!jU(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),fS=Rh,gS=Function.prototype,Nh=gS.call,HU=fS&&gS.bind.bind(Nh,Nh),kn=fS?HU:function(e){return function(){return Nh.apply(e,arguments)}},mS=kn,GU=mS({}.toString),WU=mS("".slice),Dh=function(e){return WU(GU(e),8,-1)},QU=kn,ZU=rn,KU=Dh,Lh=Object,YU=QU("".split),XU=ZU(function(){return!Lh("z").propertyIsEnumerable(0)})?function(e){return KU(e)==="String"?YU(e,""):Lh(e)}:Lh,hS=function(e){return e==null},JU=hS,eF=TypeError,Pc=function(e){if(JU(e))throw new eF("Can't call method on "+e);return e},tF=XU,rF=Pc,Hl=function(e){return tF(rF(e))},vS={exports:{}},yS=zr,nF=Object.defineProperty,Uh=function(e,t){try{nF(yS,e,{value:t,configurable:!0,writable:!0})}catch{yS[e]=t}return t},iF=zr,aF=Uh,bS="__core-js_shared__",wS=vS.exports=iF[bS]||aF(bS,{});(wS.versions||(wS.versions=[])).push({version:"3.45.1",mode:"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Fh=vS.exports,TS=Fh,Bh=function(e,t){return TS[e]||(TS[e]=t||{})},oF=Pc,sF=Object,qh=function(e){return sF(oF(e))},cF=kn,lF=qh,uF=cF({}.hasOwnProperty),ca=Object.hasOwn||function(t,r){return uF(lF(t),r)},dF=kn,pF=0,fF=Math.random(),gF=dF(1.1.toString),ES=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gF(++pF+fF,36)},mF=zr,SS=mF.navigator,PS=SS&&SS.userAgent,hF=PS?String(PS):"",CS=zr,zh=hF,IS=CS.process,xS=CS.Deno,_S=IS&&IS.versions||xS&&xS.version,kS=_S&&_S.v8,Di,ip;kS&&(Di=kS.split("."),ip=Di[0]>0&&Di[0]<4?1:+(Di[0]+Di[1])),!ip&&zh&&(Di=zh.match(/Edge\/(\d+)/),(!Di||Di[1]>=74)&&(Di=zh.match(/Chrome\/(\d+)/),Di&&(ip=+Di[1])));var vF=ip,MS=vF,yF=rn,bF=zr,wF=bF.String,OS=!!Object.getOwnPropertySymbols&&!yF(function(){var e=Symbol("symbol detection");return!wF(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&MS&&MS<41}),TF=OS,AS=TF&&!Symbol.sham&&typeof Symbol.iterator=="symbol",EF=zr,SF=Bh,$S=ca,PF=ES,CF=OS,IF=AS,Cc=EF.Symbol,Vh=SF("wks"),xF=IF?Cc.for||Cc:Cc&&Cc.withoutSetter||PF,la=function(e){return $S(Vh,e)||(V
5h[e]=CF&&$S(Cc,e)?Cc[e]:xF("Symbol."+e)),Vh[e]},_F=ja,kF=String,MF=TypeError,cs=function(e){if(_F(e))return e;throw new MF(kF(e)+" is not an object")},RS={},OF=rn,Ha=!OF(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),AF=Ha,$F=rn,NS=AF&&$F(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Eo={},RF=Ha,NF=rn,DF=Ah,DS=!RF&&!NF(function(){return Object.defineProperty(DF("div"),"a",{get:function(){return 7}}).a!==7}),LF=Rh,ap=Function.prototype.call,Ga=LF?ap.bind(ap):function(){return ap.apply(ap,arguments)},jh=zr,UF=bn,FF=function(e){return UF(e)?e:void 0},Hh=function(e,t){return arguments.length<2?FF(jh[e]):jh[e]&&jh[e][t]},BF=kn,LS=BF({}.isPrototypeOf),qF=Hh,zF=bn,VF=LS,jF=AS,HF=Object,US=jF?function(e){return typeof e=="symbol"}:function(e){var t=qF("Symbol");return zF(t)&&VF(t.prototype,HF(e))},GF=String,WF=function(e){try{return GF(e)}catch{return"Object"}},QF=bn,ZF=WF,KF=TypeError,FS=function(e){if(QF(e))return e;throw new KF(ZF(e)+" is not a function")},YF=FS,XF=hS,BS=function(e,t){var r=e[t];return XF(r)?void 0:YF(r)},Gh=Ga,Wh=bn,Qh=ja,JF=TypeError,e2=function(e,t){var r,n;if(t==="string"&&Wh(r=e.toString)&&!Qh(n=Gh(r,e))||Wh(r=e.valueOf)&&!Qh(n=Gh(r,e))||t!=="string"&&Wh(r=e.toString)&&!Qh(n=Gh(r,e)))return n;throw new JF("Can't convert object to primitive value")},t2=Ga,qS=ja,zS=US,r2=BS,n2=e2,i2=la,a2=TypeError,o2=i2("toPrimitive"),s2=function(e,t){if(!qS(e)||zS(e))return e;var r=r2(e,o2),n;if(r){if(t===void 0&&(t="default"),n=t2(r,e,t),!qS(n)||zS(n))return n;throw new a2("Can't convert object to primitive value")}return t===void 0&&(t="number"),n2(e,t)},c2=s2,l2=US,VS=function(e){var t=c2(e,"string");return l2(t)?t:t+""},u2=Ha,d2=DS,p2=NS,op=cs,jS=VS,f2=TypeError,Zh=Object.defineProperty,g2=Object.getOwnPropertyDescriptor,Kh="enumerable",Yh="configurable",Xh="writable";Eo.f=u2?p2?function(t,r,n){if(op(t),r=jS(r),op(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Xh in n&&!n[Xh]){var i=g2(t,r);i&&i[Xh]&&(t[r]=n.value,n={configurable:Yh in n?n[Yh]:i[Yh],enumerable:Kh in n?n[Kh]:i[Kh],writable:!1})}return Zh(t,r,n)}:Zh:function(t,r,n){if(op(t),r=jS(r),op(n),d2)try{return Zh(t,r,n)}catch{}if("get"in n||"set"in n)throw new f2("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var m2=Math.ceil,h2=Math.floor,v2=Math.trunc||function(t){var r=+t;return(r>0?h2:m2)(r)},y2=v2,sp=function(e){var t=+e;return t!==t||t===0?0:y2(t)},b2=sp,w2=Math.max,T2=Math.min,E2=function(e,t){var r=b2(e);return r<0?w2(r+t,0):T2(r,t)},S2=sp,P2=Math.min,HS=function(e){var t=S2(e);return t>0?P2(t,9007199254740991):0},C2=HS,I2=function(e){return C2(e.length)},x2=Hl,_2=E2,k2=I2,M2=function(e){return function(t,r,n){var i=x2(t),a=k2(i);if(a===0)return!e&&-1;var o=_2(n,a),s;if(e&&r!==r){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===r)return e||o||0;return!e&&-1}},O2={indexOf:M2(!1)},Jh={},A2=kn,ev=ca,$2=Hl,R2=O2.indexOf,N2=Jh,GS=A2([].push),WS=function(e,t){var r=$2(e),n=0,i=[],a;for(a in r)!ev(N2,a)&&ev(r,a)&&GS(i,a);for(;t.length>n;)ev(r,a=t[n++])&&(~R2(i,a)||GS(i,a));return i},tv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D2=WS,L2=tv,U2=Object.keys||function(t){return D2(t,L2)},F2=Ha,B2=NS,q2=Eo,z2=cs,V2=Hl,j2=U2;RS.f=F2&&!B2?Object.defineProperties:function(t,r){z2(t);for(var n=V2(r),i=j2(r),a=i.length,o=0,s;a>o;)q2.f(t,s=i[o++],n[s]);return t};var H2=Hh,G2=H2("document","documentElement"),W2=Bh,Q2=ES,QS=W2("keys"),rv=function(e){return QS[e]||(QS[e]=Q2(e))},Z2=cs,K2=RS,ZS=tv,Y2=Jh,X2=G2,J2=Ah,eB=rv,KS=">",YS="<",nv="prototype",iv="script",XS=eB("IE_PROTO"),av=function(){},JS=function(e){return YS+iv+KS+e+YS+"/"+iv+KS},eP=function(e){e.write(JS("")),e.close();var t=e.parentWindow.Object;return e=null,t},tB=function(){var e=J2("iframe"),t="java"+iv+":",r;return e.style.display="none",X2.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(JS("document.F=Object")),r.close(),r.F},cp,lp=function(){try{cp=new ActiveXObject("htmlfile")}catch{}lp=typeof document<"u"?document.domain&&cp?eP(cp):tB():eP(cp);for(var e=ZS.length;e--;)delete lp[nv][ZS[e]];return lp()};Y2[XS]=!0;var ov=Object.create||function(t,r){var n;return t!==null?(av[nv]=Z2(t),n=new av,av[nv]=null,n[XS]=t):n=lp(),r===void 0?n:K2.f(n,r)},rB=la,nB=ov,iB=Eo.f,sv=rB("unscopables"),cv=Array.prototype;cv[sv]===void 0&&iB(cv,sv,{configurable:!0,value:nB(null)});var aB=function(e){cv[sv][e]=!0},lv={},oB=zr,sB=bn,tP=oB.WeakMap,cB=sB(tP)&&/native code/.test(String(tP)),uv=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},lB=Ha,uB=Eo,dB=uv,Gl=lB?function(e,t,r){return uB.f(e,t,dB(1,r))}:function(e,t,r){return e[t]=r,e},pB=cB,rP=zr,fB=ja,gB=Gl,dv=ca,pv=Fh,mB=rv,hB=Jh,nP="Object already initialized",fv=rP.TypeError,vB=rP.WeakMap,up,Wl,dp,yB=function(e){return dp(e)?Wl(e):up(e,{})},bB=function(e){return function(t){var r;if(!fB(t)||(r=Wl(t)).type!==e)throw new fv("Incompatible receiver, "+e+" required");return r}};if(pB||pv.state){var ua=pv.state||(pv.state=new vB);ua.get=ua.get,ua.has=ua.has,ua.set=ua.set,up=function(e,t){if(ua.has(e))throw new fv(nP);return t.facade=e,ua.set(e,t),t},Wl=function(e){return ua.get(e)||{}},dp=function(e){return ua.has(e)}}else{var Ic=mB("state");hB[Ic]=!0,up=function(e,t){if(dv(e,Ic))throw new fv(nP);return t.facade=e,gB(e,Ic,t),t},Wl=function(e){return dv(e,Ic)?e[Ic]:{}},dp=function(e){return dv(e,Ic)}}var gv={set:up,get:Wl,has:dp,enforce:yB,getterFor:bB},mv={},iP={},aP={}.propertyIsEnumerable,oP=Object.getOwnPropertyDescriptor,wB=oP&&!aP.call({1:2},1);iP.f=wB?function(t){var r=oP(this,t);return!!r&&r.enumerable}:aP;var TB=Ha,EB=Ga,SB=iP,PB=uv,CB=Hl,IB=VS,xB=ca,_B=DS,sP=Object.getOwnPropertyDescriptor;mv.f=TB?sP:function(t,r){if(t=CB(t),r=IB(r),_B)try{return sP(t,r)}catch{}if(xB(t,r))return PB(!EB(SB.f,t,r),t[r])};var cP={exports:{}}
5,hv=Ha,kB=ca,lP=Function.prototype,MB=hv&&Object.getOwnPropertyDescriptor,uP=kB(lP,"name"),OB=uP&&(function(){}).name==="something",AB=uP&&(!hv||hv&&MB(lP,"name").configurable),vv={PROPER:OB,CONFIGURABLE:AB},$B=kn,RB=bn,yv=Fh,NB=$B(Function.toString);RB(yv.inspectSource)||(yv.inspectSource=function(e){return NB(e)});var DB=yv.inspectSource,bv=kn,LB=rn,UB=bn,pp=ca,wv=Ha,FB=vv.CONFIGURABLE,BB=DB,dP=gv,qB=dP.enforce,zB=dP.get,pP=String,fp=Object.defineProperty,VB=bv("".slice),jB=bv("".replace),HB=bv([].join),GB=wv&&!LB(function(){return fp(function(){},"length",{value:8}).length!==8}),WB=String(String).split("String"),QB=cP.exports=function(e,t,r){VB(pP(t),0,7)==="Symbol("&&(t="["+jB(pP(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!pp(e,"name")||FB&&e.name!==t)&&(wv?fp(e,"name",{value:t,configurable:!0}):e.name=t),GB&&r&&pp(r,"arity")&&e.length!==r.arity&&fp(e,"length",{value:r.arity});try{r&&pp(r,"constructor")&&r.constructor?wv&&fp(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=qB(e);return pp(n,"source")||(n.source=HB(WB,typeof t=="string"?t:"")),e};Function.prototype.toString=QB(function(){return UB(this)&&zB(this).source||BB(this)},"toString");var ZB=cP.exports,KB=bn,YB=Eo,XB=ZB,JB=Uh,gp=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(KB(r)&&XB(r,a,n),n.global)i?e[t]=r:JB(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:YB.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},fP={},e3=WS,t3=tv,r3=t3.concat("length","prototype");fP.f=Object.getOwnPropertyNames||function(t){return e3(t,r3)};var gP={};gP.f=Object.getOwnPropertySymbols;var n3=Hh,i3=kn,a3=fP,o3=gP,s3=cs,c3=i3([].concat),l3=n3("Reflect","ownKeys")||function(t){var r=a3.f(s3(t)),n=o3.f;return n?c3(r,n(t)):r},mP=ca,u3=l3,d3=mv,p3=Eo,f3=function(e,t,r){for(var n=u3(t),i=p3.f,a=d3.f,o=0;o<n.length;o++){var s=n[o];!mP(e,s)&&!(r&&mP(r,s))&&i(e,s,a(t,s))}},g3=rn,m3=bn,h3=/#|\.prototype\./,Ql=function(e,t){var r=y3[v3(e)];return r===w3?!0:r===b3?!1:m3(t)?g3(t):!!t},v3=Ql.normalize=function(e){return String(e).replace(h3,".").toLowerCase()},y3=Ql.data={},b3=Ql.NATIVE="N",w3=Ql.POLYFILL="P",T3=Ql,mp=zr,E3=mv.f,S3=Gl,P3=gp,C3=Uh,I3=f3,x3=T3,Tv=function(e,t){var r=e.target,n=e.global,i=e.stat,a,o,s,c,l,u;if(n?o=mp:i?o=mp[r]||C3(r,{}):o=mp[r]&&mp[r].prototype,o)for(s in t){if(l=t[s],e.dontCallGetSet?(u=E3(o,s),c=u&&u.value):c=o[s],a=x3(n?s:r+(i?".":"#")+s,e.forced),!a&&c!==void 0){if(typeof l==typeof c)continue;I3(l,c)}(e.sham||c&&c.sham)&&S3(l,"sham",!0),P3(o,s,l,e)}},_3=rn,k3=!_3(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),M3=ca,O3=bn,A3=qh,$3=rv,R3=k3,hP=$3("IE_PROTO"),Ev=Object,N3=Ev.prototype,vP=R3?Ev.getPrototypeOf:function(e){var t=A3(e);if(M3(t,hP))return t[hP];var r=t.constructor;return O3(r)&&t instanceof r?r.prototype:t instanceof Ev?N3:null},D3=rn,L3=bn,U3=ja,yP=vP,F3=gp,B3=la,Sv=B3("iterator"),bP=!1,ls,Pv,Cv;[].keys&&(Cv=[].keys(),"next"in Cv?(Pv=yP(yP(Cv)),Pv!==Object.prototype&&(ls=Pv)):bP=!0);var q3=!U3(ls)||D3(function(){var e={};return ls[Sv].call(e)!==e});q3&&(ls={}),L3(ls[Sv])||F3(ls,Sv,function(){return this});var wP={IteratorPrototype:ls,BUGGY_SAFARI_ITERATORS:bP},z3=Eo.f,V3=ca,j3=la,TP=j3("toStringTag"),Iv=function(e,t,r){e&&!r&&(e=e.prototype),e&&!V3(e,TP)&&z3(e,TP,{configurable:!0,value:t})},H3=wP.IteratorPrototype,G3=ov,W3=uv,Q3=Iv,Z3=lv,K3=function(){return this},Y3=function(e,t,r,n){var i=t+" Iterator";return e.prototype=G3(H3,{next:W3(+!n,r)}),Q3(e,i,!1),Z3[i]=K3,e},X3=kn,J3=FS,eq=function(e,t,r){try{return X3(J3(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},tq=ja,rq=function(e){return tq(e)||e===null},nq=rq,iq=String,aq=TypeError,oq=function(e){if(nq(e))return e;throw new aq("Can't set "+iq(e)+" as a prototype")},sq=eq,cq=ja,lq=Pc,uq=oq,dq=Object.setPrototypeOf||("__proto__"in{}?(function(){var e=!1,t={},r;try{r=sq(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return lq(i),uq(a),cq(i)&&(e?r(i,a):i.__proto__=a),i}})():void 0),pq=Tv,fq=Ga,EP=vv,gq=bn,mq=Y3,SP=vP,PP=dq,hq=Iv,vq=Gl,xv=gp,yq=la,bq=lv,CP=wP,wq=EP.PROPER,Tq=EP.CONFIGURABLE,IP=CP.IteratorPrototype,hp=CP.BUGGY_SAFARI_ITERATORS,Zl=yq("iterator"),xP="keys",Kl="values",_P="entries",Eq=function(){return this},Sq=function(e,t,r,n,i,a,o){mq(r,t,n);var s=function(P){if(P===i&&p)return p;
5if(!hp&&P&&P in u)return u[P];switch(P){case xP:return function(){return new r(this,P)};case Kl:return function(){return new r(this,P)};case _P:return function(){return new r(this,P)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,u=e.prototype,d=u[Zl]||u["@@iterator"]||i&&u[i],p=!hp&&d||s(i),g=t==="Array"&&u.entries||d,m,v,h;if(g&&(m=SP(g.call(new e)),m!==Object.prototype&&m.next&&(SP(m)!==IP&&(PP?PP(m,IP):gq(m[Zl])||xv(m,Zl,Eq)),hq(m,c,!0))),wq&&i===Kl&&d&&d.name!==Kl&&(Tq?vq(u,"name",Kl):(l=!0,p=function(){return fq(d,this)})),i)if(v={values:s(Kl),keys:a?p:s(xP),entries:s(_P)},o)for(h in v)(hp||l||!(h in u))&&xv(u,h,v[h]);else pq({target:t,proto:!0,forced:hp||l},v);return u[Zl]!==p&&xv(u,Zl,p,{name:i}),bq[t]=p,v},Pq=function(e,t){return{value:e,done:t}},Cq=Hl,_v=aB,kP=lv,MP=gv,Iq=Eo.f,xq=Sq,vp=Pq,_q=Ha,OP="Array Iterator",kq=MP.set,Mq=MP.getterFor(OP),Oq=xq(Array,"Array",function(e,t){kq(this,{type:OP,target:Cq(e),index:0,kind:t})},function(){var e=Mq(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,vp(void 0,!0);switch(e.kind){case"keys":return vp(r,!1);case"values":return vp(t[r],!1)}return vp([r,t[r]],!1)},"values"),AP=kP.Arguments=kP.Array;if(_v("keys"),_v("values"),_v("entries"),_q&&AP.name!=="values")try{Iq(AP,"name",{value:"values"})}catch{}var $P=zr,RP=UU,Aq=VU,Yl=Oq,NP=Gl,$q=Iv,Rq=la,kv=Rq("iterator"),Mv=Yl.values,DP=function(e,t){if(e){if(e[kv]!==Mv)try{NP(e,kv,Mv)}catch{e[kv]=Mv}if($q(e,t,!0),RP[t]){for(var r in Yl)if(e[r]!==Yl[r])try{NP(e,r,Yl[r])}catch{e[r]=Yl[r]}}}};for(var Ov in RP)DP($P[Ov]&&$P[Ov].prototype,Ov);DP(Aq,"DOMTokenList");var Nq=Rh,LP=Function.prototype,UP=LP.apply,FP=LP.call,Dq=typeof Reflect=="object"&&Reflect.apply||(Nq?FP.bind(UP):function(){return FP.apply(UP,arguments)}),Lq=la,Uq=Lq("toStringTag"),BP={};BP[Uq]="z";var Fq=String(BP)==="[object z]",Bq=Fq,qq=bn,yp=Dh,zq=la,Vq=zq("toStringTag"),jq=Object,Hq=yp((function(){return arguments})())==="Arguments",Gq=function(e,t){try{return e[t]}catch{}},Wq=Bq?yp:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=Gq(t=jq(e),Vq))=="string"?r:Hq?yp(t):(n=yp(t))==="Object"&&qq(t.callee)?"Arguments":n},Qq=Wq,Zq=String,bp=function(e){if(Qq(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Zq(e)},Kq=cs,qP=function(){var e=Kq(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Av=rn,Yq=zr,$v=Yq.RegExp,zP=Av(function(){var e=$v("a","y");return e.lastIndex=2,e.exec("abcd")!==null});zP||Av(function(){return!$v("a","y").sticky});var Xq=zP||Av(function(){var e=$v("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),Jq={BROKEN_CARET:Xq},ez=rn,tz=zr,rz=tz.RegExp,nz=ez(function(){var e=rz(".","s");return!(e.dotAll&&e.test(` 6`)&&e.flags==="s")}),iz=rn,az=zr,oz=az.RegExp,sz=iz(function(){var e=oz("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xc=Ga,wp=kn,cz=bp,lz=qP,uz=Jq,dz=Bh,pz=ov,fz=gv.get,gz=nz,mz=sz,hz=dz("native-string-replace",String.prototype.replace),Tp=RegExp.prototype.exec,Rv=Tp,vz=wp("".charAt),yz=wp("".indexOf),bz=wp("".replace),Nv=wp("".slice),Dv=(function(){var e=/a/,t=/b*/g;return xc(Tp,e,"a"),xc(Tp,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),VP=uz.BROKEN_CARET,Lv=/()??/.exec("")[1]!==void 0,wz=Dv||Lv||VP||gz||mz;wz&&(Rv=function(t){var r=this,n=fz(r),i=cz(t),a=n.raw,o,s,c,l,u,d,p;if(a)return a.lastIndex=r.lastIndex,o=xc(Rv,a,i),r.lastIndex=a.lastIndex,o;var g=n.groups,m=VP&&r.sticky,v=xc(lz,r),h=r.source,P=0,x=i;if(m&&(v=bz(v,"y",""),yz(v,"g")===-1&&(v+="g"),x=Nv(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&vz(i,r.lastIndex-1)!==` 7`)&&(h="(?: "+h+")",x=" "+x,P++),s=new RegExp("^(?:"+h+")",v)),Lv&&(s=new RegExp("^"+h+"$(?!\\s)",v)),Dv&&(c=r.lastIndex),l=xc(Tp,m?s:r,x),m?l?(l.input=Nv(l.input,P),l[0]=Nv(l[0],P),l.index=r.lastIndex,r.lastIndex+=l[0].length):r.lastIndex=0:Dv&&l&&(r.lastIndex=r.global?l.index+l[0].length:c),Lv&&l&&l.length>1&&xc(hz,l[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(l[u]=void 0)}),l&&g)for(l.groups=d=pz(null),u=0;u<g.length;u++)p=g[u],d[p[0]]=l[p[1]];return l});var Uv=Rv,Tz=Tv,jP=Uv;Tz({target:"RegExp",proto:!0,forced:/./.exec!==jP},{exec:jP});var HP=Ga,GP=gp,Ez=Uv,WP=rn,QP=la,Sz=Gl,Pz=QP("species"),Fv=RegExp.prototype,Cz=function(e,t,r,n){var i=QP(e),a=!WP(function(){var l={};return l[i]=function(){return 7},""[e](l)!==7}),o=a&&!WP(function(){var l=!1,u=/a/;return e==="split"&&(u={},u.constructor={},u.constructor[Pz]=function(){return u},u.flags="",u[i]=/./[i]),u.exec=function(){return l=!0,null},u[i](""),!l});if(!a||!o||r){var s=/./[i],c=t(i,""[e],function(l,u,d,p,g){var m=u.exec;return m===Ez||m===Fv.exec?a&&!g?{done:!0,value:HP(s,u,d,p)}:{done:!0,value:HP(l,d,u,p)}:{done:!1}});GP(String.prototype,e,c[0]),GP(Fv,i,c[1])}n&&Sz(Fv[i],"sham",!0)},Bv=kn,Iz=sp,xz=bp,_z=Pc,kz=Bv("".charAt),ZP=Bv("".charCodeAt),Mz=Bv("".slice),Oz=function(e){return function(t,r){var n=xz(_z(t)),i=Iz(r),a=n.length,o,s;return i<0||i>=a?e?"":void 0:(o=ZP(n,i),o<55296||o>56319||i+1===a||(s=ZP(n,i+1))<56320||s>57343?e?kz(n,i):o:e?Mz(n,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Az={charAt:Oz(!0)},$z=Az.charAt,Rz=function(e,t,r){return t+(r?$z(e,t).length:1)},qv=kn,Nz=qh,Dz=Math.floor,zv=qv("".charAt),Lz=qv("".replace),Vv=qv("".slice),Uz=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fz=/\$([$&'`]|\d{1,2})/g,Bz=function(e,t,r,n,i,a){var o=r+e.length,s=n.length,c=Fz;return i!==void 0&&(i=Nz(i),c=Uz),Lz(a,c,function(l,u){var d;switch(zv(u,0)){case"$":return"$";case"&":return e;case"`":return Vv(t,0,r);case"'":return Vv(t,o);case"<":d=i[Vv(u,1,-1)];break;default:var p=+u;if(p===0)return l;if(p>s){var g=Dz(p/10);return g===0?l:g<=s?n[g-1]===void 0?zv(u,1):n[g-1]+zv(u,1):l}d=n[p-1]}return d===void 0?"":d})},qz=zr,zz=rn,KP=qz.RegExp,Vz=!zz(function(){var e=!0;try{KP(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(c,l){Object.defineProperty(t,c,{get:function(){return r+=l,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};e&&(a.hasIndices="d");
7for(var o in a)i(o,a[o]);var s=Object.getOwnPropertyDescriptor(KP.prototype,"flags").get.call(t);return s!==n||r!==n}),jz={correct:Vz},Hz=Ga,Gz=ca,Wz=LS,YP=jz,Qz=qP,Zz=RegExp.prototype,Kz=YP.correct?function(e){return e.flags}:function(e){return!YP.correct&&Wz(Zz,e)&&!Gz(e,"flags")?Hz(Qz,e):e.flags},XP=Ga,Yz=cs,Xz=bn,Jz=Dh,e4=Uv,t4=TypeError,r4=function(e,t){var r=e.exec;if(Xz(r)){var n=XP(r,e,t);return n!==null&&Yz(n),n}if(Jz(e)==="RegExp")return XP(e4,e,t);throw new t4("RegExp#exec called on incompatible receiver")},n4=Dq,JP=Ga,Ep=kn,i4=Cz,a4=rn,o4=cs,s4=bn,c4=ja,l4=sp,u4=HS,us=bp,d4=Pc,p4=Rz,f4=BS,g4=Bz,m4=Kz,h4=r4,v4=la,jv=v4("replace"),y4=Math.max,b4=Math.min,w4=Ep([].concat),Hv=Ep([].push),Sp=Ep("".indexOf),eC=Ep("".slice),T4=function(e){return e===void 0?e:String(e)},E4=(function(){return"a".replace(/./,"$0")==="$0"})(),tC=(function(){return/./[jv]?/./[jv]("a","$0")==="":!1})(),S4=!a4(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});i4("replace",function(e,t,r){var n=tC?"$":"$0";return[function(a,o){var s=d4(this),c=c4(a)?f4(a,jv):void 0;return c?JP(c,a,s,o):JP(t,us(s),a,o)},function(i,a){var o=o4(this),s=us(i);if(typeof a=="string"&&Sp(a,n)===-1&&Sp(a,"$<")===-1){var c=r(t,o,s,a);if(c.done)return c.value}var l=s4(a);l||(a=us(a));var u=us(m4(o)),d=Sp(u,"g")!==-1,p;d&&(p=Sp(u,"u")!==-1,o.lastIndex=0);for(var g=[],m;m=h4(o,s),!(m===null||(Hv(g,m),!d));){var v=us(m[0]);v===""&&(o.lastIndex=p4(s,u4(o.lastIndex),p))}for(var h="",P=0,x=0;x<g.length;x++){m=g[x];for(var T=us(m[0]),k=y4(b4(l4(m.index),s.length),0),M=[],$,O=1;O<m.length;O++)Hv(M,T4(m[O]));var H=m.groups;if(l){var J=w4([T],M,k,s);H!==void 0&&Hv(J,H),$=us(n4(a,void 0,J))}else $=g4(T,s,k,M,H,a);k>=P&&(h+=eC(s,P,k)+$,P=k+T.length)}return h+eC(s,P)}]},!S4||!E4||tC);var rC={exports:{}},nC={exports:{}},iC={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(iC);var aC=iC.exports,oC={exports:{}};(function(e){var t=aC.default;function r(n,i){if(t(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var o=a.call(n,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(oC);var P4=oC.exports;(function(e){var t=aC.default,r=P4;function n(i){var a=r(i,"string");return t(a)=="symbol"?a:a+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(nC);var C4=nC.exports;(function(e){var t=C4;function r(n,i,a){return(i=t(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(rC);var ds=rC.exports,ps={},at={},Pp={},sC=` 8\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,I4=kn,x4=Pc,_4=bp,Gv=sC,cC=I4("".replace),k4=RegExp("^["+Gv+"]+"),M4=RegExp("(^|[^"+Gv+"])["+Gv+"]+$"),O4=function(e){return function(t){var r=_4(x4(t));return e&1&&(r=cC(r,k4,"")),e&2&&(r=cC(r,M4,"$1")),r}},A4={trim:O4(3)},$4=vv.PROPER,R4=rn,lC=sC,uC="\u200B\x85\u180E",N4=function(e){return R4(function(){return!!lC[e]()||uC[e]()!==uC||$4&&lC[e].name!==e})},D4=Tv,L4=A4.trim,U4=N4;D4({target:"String",proto:!0,forced:U4("trim")},{trim:function(){return L4(this)}});var Wv={exports:{}},F4=Wv.exports;(function(e,t){(function(r,n){e.exports=n()})(F4,(function(){/*! 9 * mustache.js - Logic-less {{mustache}} templates with JavaScript 10 * http://github.com/janl/mustache.js 11 */var r=Object.prototype.toString,n=Array.isArray||function(B){return r.call(B)==="[object Array]"};function i(Z){return typeof Z=="function"}function a(Z){return n(Z)?"array":typeof Z}function o(Z){return Z.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(Z,B){return Z!=null&&typeof Z=="object"&&B in Z}function c(Z,B){return Z!=null&&typeof Z!="object"&&Z.hasOwnProperty&&Z.hasOwnProperty(B)}var l=RegExp.prototype.test;function u(Z,B){return l.call(Z,B)}var d=/\S/;function p(Z){return!u(d,Z)}var g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function m(Z){return String(Z).replace(/[&<>"'`=\/]/g,function(Q){return g[Q]})}var v=/\s*/,h=/\s+/,P=/\s*=/,x=/\s*\}/,T=/#|\^|\/|>|\{|&|=|!/;function k(Z,B){if(!Z)return[];var Q=!1,R=[],Y=[],ie=[],he=!1,ye=!1,le="",te=0;function Oe(){if(he&&!ye)for(;ie.length;)delete Y[ie.pop()];else ie=[];he=!1,ye=!1}var ut,ve,Pe;function $t(fe){if(typeof fe=="string"&&(fe=fe.split(h,2)),!n(fe)||fe.length!==2)throw new Error("Invalid tags: "+fe);ut=new RegExp(o(fe[0])+"\\s*"),ve=new RegExp("\\s*"+o(fe[1])),Pe=new RegExp("\\s*"+o("}"+fe[1]))}$t(B||W.tags);for(var Ne=new O(Z),Le,Ve,Xe,ot,We,je;!Ne.eos();){if(Le=Ne.pos,Xe=Ne.scanUntil(ut),Xe)for(var ge=0,Ze=Xe.length;ge<Ze;++ge)ot=Xe.charAt(ge),p(ot)?(ie.push(Y.length),le+=ot):(ye=!0,Q=!0,le+=" "),Y.push(["text",ot,Le,Le+1]),Le+=1,ot===` 12`&&(Oe(),le="",te=0,Q=!1);if(!Ne.scan(ut))break;if(he=!0,Ve=Ne.scan(T)||"name",Ne.scan(v),Ve==="="?(Xe=Ne.scanUntil(P),Ne.scan(P),Ne.scanUntil(ve)):Ve==="{"?(Xe=Ne.scanUntil(Pe),Ne.scan(x),Ne.scanUntil(ve),Ve="&"):Xe=Ne.scanUntil(ve),!Ne.scan(ve))throw new Error("Unclosed tag at "+Ne.pos);
12if(Ve==">"?We=[Ve,Xe,Le,Ne.pos,le,te,Q]:We=[Ve,Xe,Le,Ne.pos],te++,Y.push(We),Ve==="#"||Ve==="^")R.push(We);else if(Ve==="/"){if(je=R.pop(),!je)throw new Error('Unopened section "'+Xe+'" at '+Le);if(je[1]!==Xe)throw new Error('Unclosed section "'+je[1]+'" at '+Le)}else Ve==="name"||Ve==="{"||Ve==="&"?ye=!0:Ve==="="&&$t(Xe)}if(Oe(),je=R.pop(),je)throw new Error('Unclosed section "'+je[1]+'" at '+Ne.pos);return $(M(Y))}function M(Z){for(var B=[],Q,R,Y=0,ie=Z.length;Y<ie;++Y)Q=Z[Y],Q&&(Q[0]==="text"&&R&&R[0]==="text"?(R[1]+=Q[1],R[3]=Q[3]):(B.push(Q),R=Q));return B}function $(Z){for(var B=[],Q=B,R=[],Y,ie,he=0,ye=Z.length;he<ye;++he)switch(Y=Z[he],Y[0]){case"#":case"^":Q.push(Y),R.push(Y),Q=Y[4]=[];break;case"/":ie=R.pop(),ie[5]=Y[2],Q=R.length>0?R[R.length-1][4]:B;break;default:Q.push(Y)}return B}function O(Z){this.string=Z,this.tail=Z,this.pos=0}O.prototype.eos=function(){return this.tail===""},O.prototype.scan=function(B){var Q=this.tail.match(B);if(!Q||Q.index!==0)return"";var R=Q[0];return this.tail=this.tail.substring(R.length),this.pos+=R.length,R},O.prototype.scanUntil=function(B){var Q=this.tail.search(B),R;switch(Q){case-1:R=this.tail,this.tail="";break;case 0:R="";break;default:R=this.tail.substring(0,Q),this.tail=this.tail.substring(Q)}return this.pos+=R.length,R};function H(Z,B){this.view=Z,this.cache={".":this.view},this.parent=B}H.prototype.push=function(B){return new H(B,this)},H.prototype.lookup=function(B){var Q=this.cache,R;if(Q.hasOwnProperty(B))R=Q[B];else{for(var Y=this,ie,he,ye,le=!1;Y;){if(B.indexOf(".")>0)for(ie=Y.view,he=B.split("."),ye=0;ie!=null&&ye<he.length;)ye===he.length-1&&(le=s(ie,he[ye])||c(ie,he[ye])),ie=ie[he[ye++]];else ie=Y.view[B],le=s(Y.view,B);if(le){R=ie;break}Y=Y.parent}Q[B]=R}return i(R)&&(R=R.call(this.view)),R};function J(){this.templateCache={_cache:{},set:function(B,Q){this._cache[B]=Q},get:function(B){return this._cache[B]},clear:function(){this._cache={}}}}J.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},J.prototype.parse=function(B,Q){var R=this.templateCache,Y=B+":"+(Q||W.tags).join(":"),ie=typeof R<"u",he=ie?R.get(Y):void 0;return he==null&&(he=k(B,Q),ie&&R.set(Y,he)),he},J.prototype.render=function(B,Q,R,Y){var ie=this.getConfigTags(Y),he=this.parse(B,ie),ye=Q instanceof H?Q:new H(Q,void 0);return this.renderTokens(he,ye,R,B,Y)},J.prototype.renderTokens=function(B,Q,R,Y,ie){for(var he="",ye,le,te,Oe=0,ut=B.length;Oe<ut;++Oe)te=void 0,ye=B[Oe],le=ye[0],le==="#"?te=this.renderSection(ye,Q,R,Y,ie):le==="^"?te=this.renderInverted(ye,Q,R,Y,ie):le===">"?te=this.renderPartial(ye,Q,R,ie):le==="&"?te=this.unescapedValue(ye,Q):le==="name"?te=this.escapedValue(ye,Q,ie):le==="text"&&(te=this.rawValue(ye)),te!==void 0&&(he+=te);return he},J.prototype.renderSection=function(B,Q,R,Y,ie){var he=this,ye="",le=Q.lookup(B[1]);function te(ve){return he.render(ve,Q,R,ie)}if(le){if(n(le))for(var Oe=0,ut=le.length;Oe<ut;++Oe)ye+=this.renderTokens(B[4],Q.push(le[Oe]),R,Y,ie);else if(typeof le=="object"||typeof le=="string"||typeof le=="number")ye+=this.renderTokens(B[4],Q.push(le),R,Y,ie);else if(i(le)){if(typeof Y!="string")throw new Error("Cannot use higher-order sections without the original template");le=le.call(Q.view,Y.slice(B[3],B[5]),te),le!=null&&(ye+=le)}else ye+=this.renderTokens(B[4],Q,R,Y,ie);return ye}},J.prototype.renderInverted=function(B,Q,R,Y,ie){var he=Q.lookup(B[1]);if(!he||n(he)&&he.length===0)return this.renderTokens(B[4],Q,R,Y,ie)},J.prototype.indentPartial=function(B,Q,R){for(var Y=Q.replace(/[^ \t]/g,""),ie=B.split(` 13`),he=0;he<ie.length;he++)ie[he].length&&(he>
130||!R)&&(ie[he]=Y+ie[he]);return ie.join(` 14`)},J.prototype.renderPartial=function(B,Q,R,Y){if(R){var ie=this.getConfigTags(Y),he=i(R)?R(B[1]):R[B[1]];if(he!=null){var ye=B[6],le=B[5],te=B[4],Oe=he;le==0&&te&&(Oe=this.indentPartial(he,te,ye));var ut=this.parse(Oe,ie);return this.renderTokens(ut,Q,R,Oe,Y)}}},J.prototype.unescapedValue=function(B,Q){var R=Q.lookup(B[1]);if(R!=null)return R},J.prototype.escapedValue=function(B,Q,R){var Y=this.getConfigEscape(R)||W.escape,ie=Q.lookup(B[1]);if(ie!=null)return typeof ie=="number"&&Y===W.escape?String(ie):Y(ie)},J.prototype.rawValue=function(B){return B[1]},J.prototype.getConfigTags=function(B){return n(B)?B:B&&typeof B=="object"?B.tags:void 0},J.prototype.getConfigEscape=function(B){if(B&&typeof B=="object"&&!n(B))return B.escape};var W={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Z){me.templateCache=Z},get templateCache(){return me.templateCache}},me=new J;return W.clearCache=function(){return me.clearCache()},W.parse=function(B,Q){return me.parse(B,Q)},W.render=function(B,Q,R,Y){if(typeof B!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+a(B)+'" was given as the first argument for mustache#render(template, view, partials)');return me.render(B,Q,R,Y)},W.escape=m,W.Scanner=O,W.Context=H,W.Writer=J,W}))})(Wv);var B4=Wv.exports,q4=$r;Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.MustacheService=void 0;var Qv=q4(ds),z4=V4(B4);function dC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(dC=function(n){return n?r:t})(e)}function V4(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=dC(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}class j4{constructor(){(0,Qv.default)(this,"trimUnecessarySpaces",t=>t&&t.length>0?t.replace(/ +/g," ").trim():t),(0,Qv.default)(this,"areThereTokensIn",t=>t.includes("{{")&&t.includes("}}")),(0,Qv.default)(this,"combineObjectsWithFirstObjectPreference",(t,r)=>{const n=Object.assign({},t),i=Object.keys(n);for(const a of Object.keys(r))i.includes(a)||(n[a]=r[a]);return n})}replace(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.combineObjectsWithFirstObjectPreference(n,r);let a=z4.render(t,i);return this.areThereTokensIn(a)&&(a=this.replace(a,r)),this.trimUnecessarySpaces(a)}}Pp.MustacheService=j4;var Cp={},Zv={};Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.default=H4;function H4(){return Intl}var pC=$r;Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.FormatterService=void 0;var G4=pC(ds),W4=pC(Zv);class Q4{constructor(){(0,G4.default)(this,"intl",void 0),this.intl=(0,W4.default)()}formatPrice(t){return new this.intl.NumberFormat(t.culture,{currency:t.currency,minimumFractionDigits:t.minimumFractionDigits,style:"currency"}).format(t.price)}formatPercentage(t,r){return new this.intl.NumberFormat(r,{style:"percent",maximumFractionDigits:0}).format(t/100)}formatPriceDifference(t){const r=new this.intl.NumberFormat(t.culture,{currency:t.currency,minimumFractionDigits:t.minimumFractionDigits,style:"currency"}),n=t.price<0?"":"+";return"".concat(n).concat(r.format(t.price))}formatQuantity(t,r){return new this.intl.NumberFormat(r,{}).format(t)}}Cp.FormatterService=Q4;var Xl={};Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.CultureFormatter=void 0;class Z4{format(t){try{const r=t.split("-")[0],n=t.split("-")[1];return[r.toLowerCase(),n.toUpperCase()].join("-")}catch(r){throw new Error("Unable to format culture, not in the right format ".concat(t,". ").concat(r))}}}Xl.CultureFormatter=Z4;var Ip={},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.logger=void 0;const K4=(e,t)=>
14{console.error(e,JSON.stringify(t))},Y4=(e,t)=>{console.warn(e,JSON.stringify(t))},X4=e=>{console.log(e)};Wa.logger={error:K4,warn:Y4,info:X4};var J4=$r;Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.UrlClient=void 0;var fC=J4(ds),eV=Wa;class tV{constructor(){(0,fC.default)(this,"urlCache",void 0),(0,fC.default)(this,"baseUrl",void 0),this.urlCache=new Map,this.baseUrl="https://url.prod.merch.vpsvc.com/v3"}async getPageSlug(t,r,n){const i=this.urlCache.get(t);if(i!==void 0)return i;const a="".concat(this.baseUrl,"/url/").concat(n,"/").concat(r,"/").concat(t,"?requestor=TokenEngine");let o;try{o=(await(await fetch(a)).json()).url}catch(s){o="#",eV.logger.error("The request for tenant ".concat(n," and ").concat(r," to url: ").concat(a,". Returned error ").concat(s.stack),{contextData:{stack:s.stack,culture:r,tenant:n}})}return this.urlCache.set(t,o),o}async fillUrlCache(t,r){const n=await this.getUrlTypes(r),i=[];for(const s of n)i.push(this.getUrls(r,t,s));const a=await Promise.all(i),o=new Map;for(const s of a)s&&Object.keys(s).forEach(c=>{o.set(c,s[c].url)});this.urlCache=o}async getUrlTypes(t){const r="".concat(this.baseUrl,"/types/").concat(t,"?requestor=TokenEngine"),n=await fetch(r);return n&&n.json()}async getUrls(t,r,n){const i="".concat(this.baseUrl,"/all/").concat(t,"/").concat(r,"?requestor=TokenEngine&pageType=").concat(n);try{return(await fetch(i)).json()}catch{return}}}Ip.UrlClient=tV;var xp={};Object.defineProperty(xp,"__esModule",{value:!0}),xp.ContextService=void 0;var rV=Xl;class nV{getCulture(t){const r=new rV.CultureFormatter,n=t.context.environments.culture;return r.format(n)}getTenant(t){return t.context.environments.tenant}getUrlClient(t){return t.context.environments.urlClient}}xp.ContextService=nV;var da=[],Ti=[],iV=typeof Uint8Array<"u"?Uint8Array:Array,Kv=!1;function gC(){Kv=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)da[t]=e[t],Ti[e.charCodeAt(t)]=t;Ti[45]=62,Ti[95]=63}function aV(e){Kv||gC();var t,r,n,i,a,o,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new iV(s*3/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Ti[e.charCodeAt(t)]<<18|Ti[e.charCodeAt(t+1)]<<12|Ti[e.charCodeAt(t+2)]<<6|Ti[e.charCodeAt(t+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=i&255;return a===2?(i=Ti[e.charCodeAt(t)]<<2|Ti[e.charCodeAt(t+1)]>>4,o[c++]=i&255):a===1&&(i=Ti[e.charCodeAt(t)]<<10|Ti[e.charCodeAt(t+1)]<<4|Ti[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=i&255),o}function oV(e){return da[e>>18&63]+da[e>>12&63]+da[e>>6&63]+da[e&63]}function sV(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(oV(n));return i.join("")}function mC(e){Kv||gC();for(var t,r=e.length,n=r%3,i="",a=[],o=16383,s=0,c=r-n;s<c;s+=o)a.push(sV(e,s,s+o>c?c:s+o));return n===1?(t=e[r-1],i+=da[t>>2],i+=da[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=da[t>>10],i+=da[t>>4&63],i+=da[t<<2&63],i+="="),a.push(i),a.join("")}function _p(e,t,r,n,i){var a,o,s=i*8-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,p=r?-1:1,g=e[t+d];for(d+=p,a=g&(1<<-u)-1,g>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=o*256+e[t+d],d+=p,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:(g?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(g?-1:1)*o*Math.pow(2,a-n)}function hC(e,t,r,n,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:a-1,m=n?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+d>=1?t+=p/c:t+=p*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+g]=s&255,g+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+g]=o&255,g+=m,o/=256,l-=8);e[r+g-m]|=v*128}var cV={}.toString,vC=Array.isArray||function(e){return cV.call(e)=="[object Array]"};/*! 15 * The buffer module from node.js, for the browser. 16 * 17 * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> 18 * @license MIT 19 */var lV=50;ce.TYPED_ARRAY_SUPPORT=L.TYPED_ARRAY_SUPPORT!==void 0?L.TYPED_ARRAY_SUPPORT:!0,kp();function kp(){return ce.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Qa(e,t){if(kp()<t)throw new RangeError("Invalid typed array length");return ce.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=ce.prototype):(e===null&&(e=new ce(t)),e.length=t),e}function ce(e,t,r){if(!ce.TYPED_ARRAY_SUPPORT&&!(this instanceof ce))return new ce(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Yv(this,e)}return yC(this,e,t,r)}ce.poolSize=8192,ce._augment=function(e){return e.__proto__=ce.prototype,e};function yC(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?pV(e,t,r,n):typeof t=="string"?dV(e,t,r):fV(e,t)}ce.from=function(e,t,r){return yC(null,e,t,r)},ce.TYPED_ARRAY_SUPPORT&&(ce.prototype.__proto__=Uint8Array.prototype,ce.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&ce[Symbol.species]);function bC(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function uV(e,t,r,n){return bC(t),t<=0?Qa(e,t):r!==void 0?typeof n=="string"?Qa(e,t).fill(r,n):Qa(e,t).fill(r):Qa(e,t)}ce.alloc=function(e,t,r){return uV(null,e,t,r)};function Yv(e,t){if(bC(t),e=Qa(e,t<0?0:Jv(t)|0),!ce.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}ce.allocUnsafe=function(e){return Yv(null,e)},ce.allocUnsafeSlow=function(e){return Yv(null,e)};function dV(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!ce.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=wC(t,r)|0;e=Qa(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Xv(e,t){var r=t.length<0?0:Jv(t.length)|0;e=Qa(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function pV(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");
vendor: 16,726 bytes, line 19
19return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),ce.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=ce.prototype):e=Xv(e,t),e}function fV(e,t){if(pa(t)){var r=Jv(t.length)|0;return e=Qa(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||AV(t.length)?Qa(e,0):Xv(e,t);if(t.type==="Buffer"&&vC(t.data))return Xv(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Jv(e){if(e>=kp())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kp().toString(16)+" bytes");return e|0}ce.isBuffer=$V;function pa(e){return!!(e!=null&&e._isBuffer)}ce.compare=function(t,r){if(!pa(t)||!pa(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0},ce.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ce.concat=function(t,r){if(!vC(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ce.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=ce.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){var o=t[n];if(!pa(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function wC(e,t){if(pa(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ap(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return kC(e).length;default:if(n)return Ap(e).length;t=(""+t).toLowerCase(),n=!0}}ce.byteLength=wC;function gV(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return PV(this,t,r);case"utf8":case"utf-8":return PC(this,t,r);case"ascii":return EV(this,t,r);case"latin1":case"binary":return SV(this,t,r);case"base64":return wV(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CV(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ce.prototype._isBuffer=!0;function fs(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}ce.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)fs(this,r,r+1);return this},ce.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)fs(this,r,r+3),fs(this,r+1,r+2);return this},ce.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)fs(this,r,r+7),fs(this,r+1,r+6),fs(this,r+2,r+5),fs(this,r+3,r+4);return this},ce.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?PC(this,0,t):gV.apply(this,arguments)},ce.prototype.equals=function(t){if(!pa(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:ce.compare(this,t)===0},ce.prototype.inspect=function(){var t="",r=lV;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},ce.prototype.compare=function(t,r,n,i,a){if(!pa(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;for(var o=a-i,s=n-r,c=Math.min(o,s),l=this.slice(i,a),u=t.slice(r,n),d=0;d<c;++d)if(l[d]!==u[d]){o=l[d],s=u[d];break}return o<s?-1:s<o?1:0};function TC(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ce.from(t,n)),pa(t))return t.length===0?-1:EC(e,t,r,n,i);if(typeof t=="number")return t=t&255,ce.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):EC(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function EC(e,t,r,n,i){var a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function c(g,m){return a===1?g[m]:g.readUInt16BE(m*a)}var l;if(i){var u=-1;for(l=r;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(r+s>o&&(r=o-s),l=r;l>=0;l--){for(var d=!0,p=0;p<s;p++)if(c(e,l+p)!==c(t,p)){d=!1;break}if(d)return l}return-1}ce.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1},ce.prototype.indexOf=function(t,r,n){return TC(this,t,r,n,!0)},ce.prototype.lastIndexOf=function(t,r,n){return TC(this,t,r,n,!1)};function mV(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function hV(e,t,r,n){return $p(Ap(t,e.length-r),e,r,n)}function SC(e,t,r,n){return $p(MV(t),e,r,n)}function vV(e,t,r,n){return SC(e,t,r,n)}function yV(e,t,r,n){return $p(kC(t),e,r,n)}function bV(e,t,r,n){return $p(OV(t,e.length-r),e,r,n)}ce.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return mV(this,t,r,n);case"utf8":case"utf-8":return hV(this,t,r,n);case"ascii":return SC(this,t,r,n);case"latin1":case"binary":return vV(this,t,r,n);case"base64":return yV(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bV(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},ce.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wV(e,t,r){return t===0&&r===e.length?mC(e):mC(e.slice(t,r))}function PC(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)===128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)===128&&(l&192)===128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)===128&&(l&192)===128&&(u&192)===128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return TV(n)}var CC=4096;function TV(e){var t=e.length;if(t<=CC)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=CC));return r}function EV(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function SV(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function PV(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=kV(e[a]);return i}function CV(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}ce.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(ce.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=ce.prototype;else{var a=r-t;i=new ce(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+t]}return i};function Vr(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}ce.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Vr(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return i},ce.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Vr(t,r,this.length);for(var i=this[t+--r],a=1;r>0&&(a*=256);)i+=this[t+--r]*a;return i},ce.prototype.readUInt8=function(t,r){return r||Vr(t,1,this.length),this[t]},ce.prototype.readUInt16LE=function(t,r){return r||Vr(t,2,this.length),this[t]|this[t+1]<<8},ce.prototype.readUInt16BE=function(t,r){return r||Vr(t,2,this.length),this[t]<<8|this[t+1]},ce.prototype.readUInt32LE=function(t,r){return r||Vr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},ce.prototype.readUInt32BE=function(t,r){return r||Vr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ce.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Vr(t,r,this.length);for(var i=this[t],a=1,o=0;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i},ce.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Vr(t,r,this.length);for(var i=r,a=1,o=this[t+--i];i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o},ce.prototype.readInt8=function(t,r){return r||Vr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},ce.prototype.readInt16LE=function(t,r){r||Vr(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},ce.prototype.readInt16BE=function(t,r){r||Vr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},ce.prototype.readInt32LE=function(t,r){return r||Vr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ce.prototype.readInt32BE=function(t,r){return r||Vr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ce.prototype.readFloatLE=function(t,r){return r||Vr(t,4,this.length),_p(this,t,!0,23,4)},ce.prototype.readFloatBE=function(t,r){return r||Vr(t,4,this.length),_p(this,t,!1,23,4)},ce.prototype.readDoubleLE=function(t,r){return r||Vr(t,8,this.length),_p(this,t,!0,52,8)},ce.prototype.readDoubleBE=function(t,r){return r||Vr(t,8,this.length),_p(this,t,!1,52,8)};function Fn(e,t,r,n,i,a){if(!pa(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}ce.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Fn(this,t,r,n,a,0)}var o=1,s=0;for(this[r]=t&255;++s<n&&(o*=256);)this[r+s]=t/o&255;return r+n},ce.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;Fn(this,t,r,n,a,0)}var o=n-1,s=1;for(this[r+o]=t&255;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+n},ce.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,1,255,0),ce.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};function Mp(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}ce.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mp(this,t,r,!0),r+2},ce.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mp(this,t,r,!1),r+2};function Op(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}ce.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Op(this,t,r,!0),r+4},ce.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Op(this,t,r,!1),r+4},ce.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Fn(this,t,r,n,a-1,-a)}var o=0,s=1,c=0;for(this[r]=t&255;++o<n&&(s*=256);)t<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(t/s>>0)-c&255;return r+n},ce.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var a=Math.pow(2,8*n-1);Fn(this,t,r,n,a-1,-a)}var o=n-1,s=1,c=0;for(this[r+o]=t&255;--o>=0&&(s*=256);)t<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(t/s>>0)-c&255;return r+n},ce.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,1,127,-128),ce.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1},ce.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mp(this,t,r,!0),r+2},ce.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mp(this,t,r,!1),r+2},ce.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,4,2147483647,-2147483648),ce.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Op(this,t,r,!0),r+4},ce.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Fn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ce.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Op(this,t,r,!1),r+4};function IC(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function xC(e,t,r,n,i){return i||IC(e,t,r,4),hC(e,t,r,n,23,4),r+4}ce.prototype.writeFloatLE=function(t,r,n){return xC(this,t,r,!0,n)},ce.prototype.writeFloatBE=function(t,r,n){return xC(this,t,r,!1,n)};function _C(e,t,r,n,i){return i||IC(e,t,r,8),hC(e,t,r,n,52,8),r+8}ce.prototype.writeDoubleLE=function(t,r,n){return _C(this,t,r,!0,n)},ce.prototype.writeDoubleBE=function(t,r,n){return _C(this,t,r,!1,n)},ce.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var a=i-n,o;if(this===t&&n<r&&r<i)for(o=a-1;o>=0;--o)t[o+r]=this[o+n];else if(a<1e3||!ce.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),r);return a},ce.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var a=t.charCodeAt(0);a<256&&(t=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!ce.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{var s=pa(t)?t:Ap(new ce(t,i).toString()),c=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%c]}return this};var IV=/[^+\/0-9A-Za-z-_]/g;function xV(e){if(e=_V(e).replace(IV,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function _V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kV(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ap(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}
19else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function MV(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function OV(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function kC(e){return aV(xV(e))}function $p(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function AV(e){return e!==e}function $V(e){return e!=null&&(!!e._isBuffer||MC(e)||RV(e))}function MC(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function RV(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&MC(e.slice(0,0))}class ri{constructor(t,r,n,i,a){this.kind=t,this.input=r,this.begin=n,this.end=i,this.file=a}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[t,r]=[1,1];for(let n=0;n<this.begin;n++)this.input[n]===` 20`?(t++,r=1):r++;return[t,r]}size(){return this.end-this.begin}}class So{liquidMethodMissing(t,r){}}const NV=Object.prototype.toString,OC=String.prototype.toLowerCase,ey=Object.hasOwnProperty;function tt(e){return typeof e=="string"}function Rr(e){return typeof e=="function"}function DV(e){return e&&Rr(e.then)}function Rp(e){return e&&Rr(e.next)&&Rr(e.throw)&&Rr(e.return)}function Te(e){return e=pt(e),tt(e)?e:mr(e)?"":nn(e)?e.map(t=>Te(t)).join(""):String(e)}function Jl(e){return e=pt(e),nn(e)?e:tt(e)&&e.length>0?[e]:UV(e)?Array.from(e):Dp(e)?Object.keys(e).map(t=>[t,e[t]]):[]}function wn(e){return e=pt(e),mr(e)?[]:nn(e)?e:[e]}function pt(e){return e instanceof So&&Rr(e.valueOf)?e.valueOf():e}function ty(e){return+pt(e)||0}function Np(e){return typeof e=="number"}function AC(e){return e&&Rr(e.toLiquid)?AC(e.toLiquid()):e}function mr(e){return e==null}function LV(e){return e===void 0}function nn(e){return NV.call(e)==="[object Array]"}function $C(e){return e&&Np(e.length)}function UV(e){return Dp(e)&&Symbol.iterator in e}function RC(e,t){e=e||{};for(const r in e)if(ey.call(e,r)&&t(e[r],r,e)===!1)break;return e}function NC(e){return e[e.length-1]}function Dp(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function DC(e,t,r=1){const n=[];for(let i=e;i<t;i+=r)n.push(i);return n}function eu(e,t,r=" "){return LC(e,t,r,(n,i)=>i+n)}function FV(e,t,r=" "){return LC(e,t,r,(n,i)=>n+i)}function LC(e,t,r,n){e=String(e);const i=t-e.length;return i<=0?e:n(e,r.repeat(i))}function UC(e){return e}function BV(e){return[...e].some(r=>r>="a"&&r<="z")?e.toUpperCase():e.toLowerCase()}function qV(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function zV(e,t){return mr(e)&&mr(t)?0:mr(e)?1:mr(t)||e<t?-1:e>t?1:0}function VV(e,t){return mr(e)&&mr(t)?0:mr(e)?1:mr(t)||(e=OC.call(e),t=OC.call(t),e<t)?-1:e>t?1:0}function Lp(e){return function(...t){return e.call(this,...t.map(pt))}}function fa(e){return function(...t){return e.call(this,...t.map(ty))}}function*Up(e){const t=new Set;for(const r of e){const n=JSON.stringify(r);t.has(n)||(t.add(n),yield r)}}const FC="__liquidClass__";class Po extends Error{constructor(t,r){super(typeof t=="string"?t:t.message),this.context="",typeof t!="string"&&Object.defineProperty(this,"originalError",{value:t,enumerable:!1}),Object.defineProperty(this,"token",{value:r,enumerable:!1}),Object.defineProperty(this,FC,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:HV(this.token),enumerable:!1}),this.message=GV(this.message,this.token),this.stack=this.message+` 21`+this.context+` 22`+this.stack,this.originalError&&(this.stack+=` 23From `+this.originalError.stack)}static is(t){return t?.[FC]==="LiquidError"}}class BC extends Po{constructor(t,r){super(t,r),this.name="TokenizationError",super.update()}}class qC extends Po{constructor(t,r){super(t,r),this.name="ParseError",this.message=t.message,super.update()}}class zC extends Po{constructor(t,r){super(t,r.token),this.name="RenderError",this.message=t.message,super.update(
vendor: 75,608 bytes, lines 23-32
23)}static is(t){return t.name==="RenderError"}}class VC extends Po{constructor(t){super(t[0],t[0].token),this.errors=t,this.name="LiquidErrors";const r=t.length>1?"s":"";this.message=`${t.length} error${r} found`,super.update()}static is(t){return t.name==="LiquidErrors"}}class jC extends Po{constructor(t,r){super(t,r),this.name="UndefinedVariableError",this.message=t.message,super.update()}}class jV extends Error{constructor(t){super(`undefined variable: ${t}`),this.name="InternalUndefinedVariableError",this.variableName=t}}class HC extends Error{constructor(t){super(t),this.name="AssertionError",this.message=t+""}}function HV(e){const[t,r]=e.getPosition(),n=e.input.split(` 24`),i=Math.max(t-2,1),a=Math.min(t+3,n.length);return DC(i,a+1).map(s=>{const c=s===t?">> ":" ",l=eu(String(s),String(a).length);let u=`${c}${l}| `;const d=s===t?` 25`+eu("^",r+u.length):"";return u+=n[s-1],u+=d,u}).join(` 26`)}function GV(e,t){t.file&&(e+=`, file:${t.file}`);const[r,n]=t.getPosition();return e+=`, line:${r}, col:${n}`,e}const Ut=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],WV=1,_c=4,GC=8,WC=16,QV=32,ZV=64,KV=128;function Fp(e){const t=e.charCodeAt(0);return t>=128?!Ut[t]:!!(Ut[t]&WV)}Ut[160]=Ut[5760]=Ut[6158]=Ut[8192]=Ut[8193]=Ut[8194]=Ut[8195]=Ut[8196]=Ut[8197]=Ut[8198]=Ut[8199]=Ut[8200]=Ut[8201]=Ut[8202]=Ut[8232]=Ut[8233]=Ut[8239]=Ut[8287]=Ut[12288]=_c,Ut[8220]=Ut[8221]=KV;function an(e,t){if(!e){const r=typeof t=="function"?t():t||`expect ${e} to be true`;throw new HC(r)}}function Bp(e,t=`unexpected ${JSON.stringify(e)}`){an(!e,t)}class YV extends So{equals(t){return mr(pt(t))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}}class kc extends So{equals(t){return t instanceof kc?!1:(t=pt(t),tt(t)||nn(t)?t.length===0:Dp(t)?Object.keys(t).length===0:!1)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(t){return t instanceof kc}}class ry extends kc{equals(t){return t===!1||mr(pt(t))?!0:tt(t)?/^\s*$/.test(t):super.equals(t)}static is(t){return t instanceof ry}}class ny extends So{constructor(t,r,n){super(),this.i=0,this.length=t,this.name=`${n}-${r}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return this.i===0}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}}class QC{constructor(){this.buffer=""}write(t){this.buffer+=Te(t)}}class XV{constructor(){throw this.buffer="",this.stream=null,new Error("streaming not supported in browser")}}class JV{constructor(){this.buffer=""}write(t){t=pt(t),typeof t!="string"&&this.buffer===""?this.buffer=t:this.buffer=Te(this.buffer)+Te(t)}}class ZC extends So{constructor(t=()=>""){super(),this.superBlockRender=t}*super(){const t=new QC;return yield this.superBlockRender(t),t.buffer}}function ga(e){return e&&Rr(e.equals)&&Rr(e.gt)&&Rr(e.geq)&&Rr(e.lt)&&Rr(e.leq)}const KC=new YV,YC={true:!0,false:!1,nil:KC,null:KC,empty:new kc,blank:new ry};function iy(e){const t={};for(const[r,n]of Object.entries(e)){let i=t;for(let a=0;a<r.length;a++){const o=r[a];i[o]=i[o]||{},a===r.length-1&&Fp(r[a])&&(i[o].needBoundary=!0),i=i[o]}i.data=n,i.end=!0}return t}var qp=function(){return qp=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qp.apply(this,arguments)};function Jt(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{l(n.next(u))}catch(d){o(d)}}function c(u){try{l(n.throw(u))}catch(d){o(d)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((n=n.apply(e,[])).next())})}function ay(e,t){const r=t||e;return(n,...i)=>n?r(...i):e(...i)}function ma(e){return Jt(this,void 0,void 0,function*(){if(!Rp(e))return e;let t,r=!1,n="next";do{const i=e[n](t);r=i.done,t=i.value,n="next";try{Rp(t)&&(t=ma(t)),DV(t)&&(t=yield t)}catch(a){n="throw",t=a}}while(!r);return t})}function ha(e){if(!Rp(e))return e;let t,r=!1,n="next";do{const i=e[n](t);if(r=i.done,t=i.value,n="next",Rp(t))try{t=ha(t)}catch(a){n="throw",t=a}}while(!r);return t}const ej=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function tj(e){return[31,rj(e)?29:28,31,30,31,30,31,31,30,31,30,31]}function XC(e){let t=0;for(let r=0;r<e.getMonth();++r)t+=tj(e)[r];return t+e.getDate()}function JC(e,t){const r=XC(e)+(t-e.getDay()),i=7-new Date(e.getFullYear(),0,1).getDay()+t;return String(Math.floor((r-i)/7)+1)}function rj(e){const t=e.getFullYear();return!!((t&3)===0&&(t%100||t%400===0&&t))}function nj(e){const t=e.getDate();if([11,12,13].includes(t))return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function ij(e){return parseInt(e.getFullYear().toString().substring(0,2),10)}const aj={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},oj=new Set("aAbBceklpP");function eI(e,t){const r=Math.abs(e.getTimezoneOffset()),n=Math.floor(r/60),i=r%60;return(e.getTimezoneOffset()>0?"-":"+")+eu(n,2,"0")+(t.flags[":"]?":":"")+eu(i,2,"0")}const oy={a:e=>e.getShortWeekdayName(),A:e=>e.getLongWeekdayName(),b:e=>e.getShortMonthName(),B:e=>e.getLongMonthName(),c:e=>e.toLocaleString(),C:e=>ij(e),d:e=>e.getDate(),e:e=>e.getDate(),H:e=>e.getHours(),I:e=>String(e.getHours()%12||12),j:e=>XC(e),k:e=>e.getHours(),l:e=>String(e.getHours()%12||12),L:e=>e.getMilliseconds(),m:e=>e.getMonth()+1,M:e=>e.getMinutes(),N:(e,t)=>{var r;const n=Number(t.width)||9,i=String(e.getMilliseconds()).slice(0,n);return(r=t.memoryLimit)===null||r===void 0||r.use(n-i.length),FV(i,n,"0")},p:e=>e.getHours()<12?"AM":"PM",P:e=>e.getHours()<12?"am":"pm",q:e=>nj(e),s:e=>Math.round(e.getTime()/1e3),S:e=>e.getSeconds(),u:e=>e.getDay()||7,U:e=>JC(e,0),w:e=>e.getDay(),W:e=>JC(e,1),x:e=>e.toLocaleDateString(),X:e=>e.toLocaleTimeString(),y:e=>e.getFullYear().toString().slice(2,4),Y:e=>e.getFullYear(),z:eI,Z:(e,t)=>e.getTimeZoneName()||eI(e,t),t:()=>" ",n:()=>` 27`,"%":()=>"%"};oy.h=oy.b;function zp(e,t,r){let n="",i=t,a;for(;a=ej.exec(i);)n+=i.slice(0,a.index),i=i.slice(a.index+a[0].length),n+=sj(e,a,r);return n+i}function sj(e,t,r){const[n,i="",a,o,s]=t,c=oy[s];if(!c)return n;const l={};for(const g of i)l[g]=!0;let u=String(c(e,{flags:l,width:a,modifier:o,memoryLimit:r})),d=oj.has(s)?" ":"0",p=a||aj[s]||0;return l["^"]?u=u.toUpperCase():l["#"]&&(u=BV(u)),l._?d=" ":l[0]&&(d="0"),l["-"]&&(p=0),r?.use(Number(p)-u.length),eu(u,p,d)}function tI(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}const cj=6e4,lj=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,rI=["January","February","March","April","May","June","July","August","September","October","November","December"],uj=rI.map(e=>e.slice(0,3)),nI=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dj=nI.map(e=>e.slice(0,3));class Li{constructor(t,r,n){this.locale=r,this.DateTimeFormat=tI(),this.date=new Date(t),this.timezoneFixed=n!==void 0,n===void 0&&(n=this.date.getTimezoneOffset()),this.timezoneOffset=tt(n)?Li.getTimezoneOffset(n,this.date):n,this.timezoneName=tt(n)?n:"";const i=(this.date.getTimezoneOffset()-this.timezoneOffset)*cj,a=this.date.getTime()+i;this.displayDate=new Date(a)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(t,r){return r?.timeZone?this.date.toLocaleString(t,r):this.displayDate.toLocaleString(t,r)}toLocaleTimeString(t){return this.displayDate.toLocaleTimeString(t)}toLocaleDateString(t){return this.displayDate.toLocaleDateString(t)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){if(this.timezoneFixed)return this.timezoneName;if(this.DateTimeFormat)return this.DateTimeFormat().resolvedOptions().timeZone}getLongMonthName(){var t;return(t=this.format({month:"long"}))!==null&&t!==void 0?t:rI[this.getMonth()]}getShortMonthName(){var t;return(t=this.format({month:"short"}))!==null&&t!==void 0?t:uj[this.getMonth()]}getLongWeekdayName(){var t;return(t=this.format({weekday:"long"}))!==null&&t!==void 0?t:nI[this.displayDate.getDay()]}getShortWeekdayName(){var t;return(t=this.format({weekday:"short"}))!==null&&t!==void 0?t:dj[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(t){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,t).format(this.displayDate)}static createDateFixedToTimezone(t,r){const n=t.match(lj);if(n&&n[1]==="Z")return new Li(+new Date(t),r,0);if(n&&n[2]&&n[3]&&n[4]){const[,,i,a,o]=n,s=(i==="+"?-1:1)*(parseInt(a,10)*60+parseInt(o,10));return new Li(+new Date(t),r,s)}return new Li(t,r)}static getTimezoneOffset(t,r){const n=r.toLocaleString("en-US",{timeZone:t}),i=r.toLocaleString("en-US",{timeZone:"UTC"}),a=new Date(n);return(+new Date(i)-+a)/(60*1e3)}}class sy{constructor(t,r){this.base=0,this.message=`${t} limit exceeded`,this.limit=r}use(t){+t>0&&(an(this.base+ +t<=this.limit,this.message),this.base+=+t)}check(t){+t>0&&an(+t<=this.limit,this.message)}}class cy extends ri{constructor(t,[r,n],i,a,o,s,c,l){super(t,i,a,o,l),this.trimLeft=!1,this.trimRight=!1;const u=i[r]==="-",d=i[n-1]==="-";let p=u?r+1:r,g=d?n-1:n;for(;p<g&&Ut[i.charCodeAt(p)]&_c;)p++;for(;g>p&&Ut[i.charCodeAt(g-1)]&_c;)g--;this.contentRange=[p,g],this.trimLeft=u||s,this.trimRight=d||c}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}}class ly extends cy{constructor(t,r,n,i,a){const{trimTagLeft:o,trimTagRight:s,tagDelimiterLeft:c,tagDelimiterRight:l}=i,[u,d]=[r+c.length,n-l.length];super(Ft.Tag,[u,d],t,r,n,o,s,a),this.tokenizer=new Ui(t,i.operators,a,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class pj extends cy{constructor(t,r,n,i,a){const{trimOutputLeft:o,trimOutputRight:s,outputDelimiterLeft:c,outputDelimiterRight:l}=i,u=[r+c.length,n-l.length];super(Ft.Output,u,t,r,n,o,s,a)}}class iI extends ri{constructor(t,r,n,i){super(Ft.HTML,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}}class fj extends ri{constructor(t,r,n,i){super(Ft.Number,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.content=Number(this.getText())}}class uy extends ri{constructor(t,r,n,i){super(Ft.Word,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.content=this.getText()}}class gj extends ri{constructor(t,r,n,i){super(Ft.Literal,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.literal=this.getText(),this.content=YC[this.literal]}}const aI={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},mj={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0};class hj extends ri{constructor(t,r,n,i){super(Ft.Operator,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.operator=this.getText()}getPrecedence(){const t=this.getText();return t in aI?aI[t]:1}}class oI extends ri{constructor(t,r,n,i,a,o){super(Ft.PropertyAccess,n,i,a,o),this.variable=t,this.props=r}}class sI extends ri{constructor(t,r,n,i,a,o){super(Ft.Filter,n,i,a,o),this.name=t,this.args=r}}class vj extends ri{constructor(t,r,n,i,a,o){super(Ft.Hash,t,r,n,o),this.input=t,this.begin=r,this.end=n,this.name=i,this.value=a,this.file=o}}const yj=/[\da-fA-F]/,cI=/[0-7]/,lI={b:"\b",f:"\f",n:` 28`,r:"\r",t:" ",v:"\v"};function uI(e){const t=e.charCodeAt(0);return t>=97?t-87:t>=65?t-55:t-48}function bj(e){let t="";for(let r=1;r<e.length-1;r++){if(e[r]!=="\\"){t+=e[r];continue}if(lI[e[r+1]]!==void 0)t+=lI[e[++r]];else if(e[r+1]==="u"){let n=0,i=r+2;for(;i<=r+5&&yj.test(e[i]);)n=n*16+uI(e[i++]);r=i-1,t+=String.fromCharCode(n)}else if(!cI.test(e[r+1]))t+=e[++r];else{let n=r+1,i=0;for(;n<=r+3&&cI.test(e[n]);)i=i*8+uI(e[n++]);r=n-1,t+=String.fromCharCode(i)}}return t}class wj extends ri{constructor(t,r,n,i){super(Ft.Quoted,t,r,n,i),this.input=t,this.begin=r,this.end=n,this.file=i,this.content=bj(this.getText())}}class Tj extends ri{constructor(t,r,n,i,a,o){super(Ft.Range,t,r,n,o),this.input=t,this.begin=r,this.end=n,this.lhs=i,this.rhs=a,this.file=o}}class Ej extends cy{constructor(t,r,n,i,a){super(Ft.Tag,[r,n],t,r,n,!1,!1,a),this.tokenizer=new Ui(t,i.operators,a,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}}class Sj extends ri{constructor(t,r,n,i,a,o){super(Ft.FilteredValue,n,i,a,o),this.initial=t,this.filters=r,this.input=n,this.begin=i,this.end=a,this.file=o}}const Pj={now:()=>Date.now()};function dy(){return typeof L=="object"&&L.performance||typeof window=="object"&&window.performance||Pj}class Cj{renderTemplatesToNodeStream(t,r){const n=new XV;return Promise.resolve().then(()=>ma(this.renderTemplates(t,r,n))).then(()=>n.end(),i=>n.error(i)),n.stream}*renderTemplates(t,r,n){n||(n=r.opts.keepOutputType?new JV:new QC),r.renderLimit.check(dy().now());const i=[];for(const a of t){r.renderLimit.check(dy().now());try{const o=yield a.render(r,n);if(o&&n.write(o),r.breakCalled||r.continueCalled)break}catch(o){const s=Po.is(o)?o:new zC(o,a);if(r.opts.catchAllErrors)i.push(s);else throw s}}if(i.length)throw new VC(i);return n.buffer}}class dI{constructor(t){this.postfix=[..._j(t)]}*evaluate(t,r){an(t,"unable to evaluate: context not defined");const n=[];for(const i of this.postfix)if(vy(i)){const a=n.pop();let o;if(mj[i.operator]===1)o=yield t.opts.operators[i.operator](a,t);else{const s=n.pop();o=yield t.opts.operators[i.operator](s,a,t)}n.push(o)}else n.push(yield hr(i,t,r));return n[0]}valid(){return!!this.postfix.length}}function*hr(e,t,r=!1){if(e){if("content"in e)return e.content;if(ru(e))return yield Ij(e,t,r);if(wy(e))return yield xj(e,t)}}function*Ij(e,t,r){const n=[];for(const i of e.props)n.push(yield hr(i,t,!1));try{if(e.variable){const i=yield hr(e.variable,t,r);return yield t._getFromScope(i,n)}else return yield t._get(n)}catch(i){if(r&&i.name==="InternalUndefinedVariableError")return null;throw new jC(i,e)}}function pI(e){return e.content}function*xj(e,t){const r=yield hr(e.lhs,t),n=yield hr(e.rhs,t);return t.memoryLimit.use(n-r+1),DC(+r,+n+1)}function*_j(e){const t=[];for(const r of e)if(vy(r)){for(;t.length&&t[t.length-1].getPrecedence()>r.getPrecedence();)yield t.pop();t.push(r)}else yield r;for(;t.length;)yield t.pop()}function Co(e,t){return!tu(e,t)}function tu(e,t){return e=pt(e),t.opts.jsTruthy?!e:e===!1||e===void 0||e===null}const fI={"==":Za,"!=":(e,t)=>!Za(e,t),">":(e,t)=>ga(e)?e.gt(t):ga(t)?t.lt(e):pt(e)>pt(t),"<":(e,t)=>ga(e)?e.lt(t):ga(t)?t.gt(e):pt(e)<pt(t),">=":(e,t)=>ga(e)?e.geq(t):ga(t)?t.leq(e):pt(e)>=pt(t),"<=":(e,t)=>ga(e)?e.leq(t):ga(t)?t.geq(e):pt(e)<=pt(t),contains:(e,t)=>(e=pt(e),nn(e)?e.some(r=>Za(r,t)):Rr(e?.indexOf)?e.indexOf(pt(t))>-1:!1),not:(e,t)=>tu(pt(e),t),and:(e,t,r)=>Co(pt(e),r)&&Co(pt(t),r),or:(e,t,r)=>Co(pt(e),r)||Co(pt(t),r)};function Za(e,t){return ga(e)?e.equals(t):ga(t)?t.equals(e):(e=pt(e),t=pt(t),nn(e)?nn(t)&&kj(e,t):e===t)}function kj(e,t){return e.length!==t.length?!1:!e.some((r,n)=>!Za(r,t[n]))}function Mj(e,t){return e.some(r=>Za(r,t))}class py{constructor(t,r,n,i){this.key=t,this.value=r,this.next=n,this.prev=i}}class gI{constructor(t,r=0){this.limit=t,this.size=r,this.cache={},this.head=new py("HEAD",null,null,null),this.tail=new py("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(t,r){if(this.cache[t])this.cache[t].value=r;else{const n=new py(t,r,this.head.next,this.head);this.head.next.prev=n,this.head.next=n,this.cache[t]=n,this.size++,this.ensureLimit()}}read(t){if(!this.cache[t])return;const{value:r}=this.cache[t];return this.remove(t),this.write(t,r),r}remove(t){const r=this.cache[t];r.prev.next=r.next,r.next.prev=r.prev,delete this.cache[t],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}}function mI(e,t){const r=document.createElement("base");r.href=e;const n=document.getElementsByTagName("head")[0];n.insertBefore(r,n.firstChild);const i=document.createElement("a");i.href=t;const a=i.href;return n.removeChild(r),a}function Oj(e,t,r){return e.length&&NC(e)!=="/"&&(e+="/"),mI(e,t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/,(i,a,o)=>{const s=o.split("/").pop();return/\.\w+$/.test(s)?i:a+o+r})}function Aj(e){return Jt(this,void 0,void 0,function*(){return new Promise((t,r)=>{const n=new XMLHttpRequest;n.onload=()=>{n.status>=200&&n.status<300?t(n.responseText):r(new Error(n.statusText))},n.onerror=()=>{r(new Error("An error occurred whilst receiving the response."))},n.open("GET",e),n.send()})})}function $j(e){const t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(),t.status<200||t.status>=300)throw new Error(t.statusText);return t.responseText}function Rj(e){return Jt(this,void 0,void 0,function*(){return!0})}function Nj(e){return!0}function Dj(e){return mI(e,".")}var Lj=Object.freeze({__proto__:null,resolve:Oj,readFile:Aj,readFileSync:$j,exists:Rj,existsSync:Nj,dirname:Dj,sep:"/"});function Uj(e,t,...r){return e=pt(e),nn(e)||tt(e)?e.length?e:t:e===!1&&new Map(r).get("allow_false")?!1:tu(e,this.context)?t:e}function hI(e,t=0){return JSON.stringify(e,null,t)}function Fj(e,t=0){const r=[];return JSON.stringify(e,function(n,i){if(typeof i!="object"||i===null)return i;for(;r.length>0&&r[r.length-1]!==this;)r.pop();return r.includes(i)?"[Circular]":(r.push(i),i)},t)}function Bj(e){return Number(e)}var vI={default:Uj,raw:{raw:!0,handler:UC},jsonify:hI,to_integer:Bj,json:hI,inspect:Fj};const qj={"&":"&","<":"<",">":">",'"':""","'":"'"},zj={"&":"&","<":"<",">":">",""":'"',"'":"'"};function Vp(e){return e=Te(e),this.context.memoryLimit.use(e.length),e.replace(/&|<|>|"|'/g,t=>qj[t])}function Vj(e){return Vp.call(this,e)}function jj(e){return e=Te(e),this.context.memoryLimit.use(e.length),e.replace(/&(amp|lt|gt|#34|#39);/g,t=>zj[t])}function Hj(e){return Vp.call(this,jj.call(this,e))}function Gj(e){const t=Te(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,`<br /> 29`)}function Wj(e){const t=Te(e);this.context.memoryLimit.use(t.length);const r=new Map([["<script","<\/script>"],["<style","</style>"],["<!--","-->"],["<",">"]]);let n="",i=0;for(;i<t.length;){const a=t.indexOf("<",i);if(a<0)return n+t.slice(i);n+=t.slice(i,a);for(const[o,s]of r){if(!t.startsWith(o,a))continue;const c=t.indexOf(s,a+o.length);if(c>=0){i=c+s.length;break}r.delete(o)}if(i===a)return n+t.slice(a)}return n}var Qj=Object.freeze({__proto__:null,escape:Vp,xml_escape:Vj,escape_once:Hj,newline_to_br:Gj,strip_html:Wj});class Zj{constructor(t){this.mapping=t,this.sep="/"}exists(t){return Jt(this,void 0,void 0,function*(){return this.existsSync(t)})}existsSync(t){return!mr(this.mapping[t])}readFile(t){return Jt(this,void 0,void 0,function*(){return this.readFileSync(t)})}readFileSync(t){const r=this.mapping[t];if(mr(r))throw new Error(`ENOENT: ${t}`);return r}dirname(t){const r=t.split(this.sep);return r.pop(),r.join(this.sep)}resolve(t,r,n){if(r+=n,t===".")return r;const i=t.split(/\/+/);for(const a of r.split(this.sep))a==="."||a===""||(a===".."?(i.length>1||i[0]!=="")&&i.pop():i.push(a));return i.join(this.sep)}}const gs={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:Lj,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:fI,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Kj(e){var t,r;if(e.hasOwnProperty("root")&&(e.hasOwnProperty("partials")||(e.partials=e.root),e.hasOwnProperty("layouts")||(e.layouts=e.root)),e.hasOwnProperty("cache")){let n;typeof e.cache=="number"?n=e.cache>0?new gI(e.cache):void 0:typeof e.cache=="object"?n=e.cache:n=e.cache?new gI(1024):void 0,e.cache=n}return e=Object.assign(Object.assign(Object.assign({},gs),e.jekyllInclude?{dynamicPartials:!1}:{}),e),(!e.fs.dirname||!e.fs.sep)&&e.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),e.relativeReference=!1),e.root=jp(e.root),e.partials=jp(e.partials),e.layouts=jp(e.layouts),e.outputEscape=e.outputEscape&&Yj(e.outputEscape),e.locale||(e.locale=(r=(t=tI())===null||t===void 0?void 0:t().resolvedOptions().locale)!==null&&r!==void 0?r:"en-US"),e.templates&&(e.fs=new Zj(e.templates),e.relativeReference=!0,e.root=e.partials=e.layouts="."),e}function Yj(e){return e==="escape"?Vp:e==="json"?vI.json:(an(Rr(e),"`outputEscape` need to be of type string or function"),e)}function jp(e){let t=[];return nn(e)&&(t=e),tt(e)&&(t=[e]),t}function Xj(e,t){let r=!1;for(let n=0;n<e.length;n++){const i=e[n];II(i)&&(!r&&i.trimLeft&&Jj(e[n-1],t.greedy),_o(i)&&(i.name==="raw"?r=!0:i.name==="endraw"&&(r=!1)),!r&&i.trimRight&&e6(e[n+1],t.greedy))}}function Jj(e,t){if(!e||!Gp(e))return;const r=t?_c:WC;for(;Ut[e.input.charCodeAt(e.end-1-e.trimRight)]&r;)e.trimRight++}function e6(e,t){if(!e||!Gp(e))return;const r=t?_c:WC;for(;Ut[e.input.charCodeAt(e.begin+e.trimLeft)]&r;)e.trimLeft++;e.input.charAt(e.begin+e.trimLeft)===` 30`&&e.trimLeft++}class Ui{constructor(t,r=gs.operators,n,i){this.input=t,this.file=n,this.rawBeginAt=-1,this.p=i?i[0]:0,this.N=i?i[1]:t.length,this.opTrie=iy(r),this.literalTrie=iy(YC)}readExpression(){return new dI(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){const t=this.readOperator();if(t){yield t;continue}const r=this.readValue();if(r){yield r;continue}return}}readOperator(){this.skipBlank();const t=this.matchTrie(this.opTrie);if(t!==-1)return new hj(this.input,this.p,this.p=t,this.file)}matchTrie(t){let r=t,n=this.p,i;for(;r[this.input[n]]&&n<this.N;)r=r[this.input[n++]],r.end&&(i=r);return!i||i.needBoundary&&Fp(this.peek(n-this.p))?-1:n}readFilteredValue(){const t=this.p,r=this.readExpression();this.assert(r.valid(),`invalid value expression: ${this.snapshot()}`);const n=this.readFilters();return new Sj(r,n,this.input,t,this.p,this.file)}readFilters(){const t=[];for(;;){const r=this.readFilter();if(!r)return t;t.push(r)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');const t=this.readIdentifier();if(!t.size())return this.assert(this.end(),"expected filter name"),null;const r=[];if(this.skipBlank(),this.peek()===":")do{++this.p;const n=this.readFilterArg();n&&r.push(n),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new sI(t.getText(),r,this.input,t.begin,this.p,this.file)}readFilterArg(){const t=this.readValue();if(!t)return;if(this.skipBlank(),this.peek()!==":")return t;++this.p;const r=this.readValue();return[t.getText(),r]}readTopLevelTokens(t=gs){const r=[];for(;this.p<this.N;){const n=this.readTopLevelToken(t);r.push(n)}return Xj(r,t),r}readTopLevelToken(t){const{tagDelimiterLeft:r,outputDelimiterLeft:n}=t;return this.rawBeginAt>-1?this.readEndrawOrRawContent(t):this.match(r)?this.readTagToken(t):this.match(n)?this.readOutputToken(t):this.readHTMLToken([r,n])}readHTMLToken(t){const r=this.p;for(;this.p<this.N&&!t.some(n=>this.match(n));)++this.p;return new iI(this.input,r,this.p,this.file)}readTagToken(t){const{file:r,input:n}=this,i=this.p;if(this.readToDelimiter(t.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(i)} not closed`,i);const a=new ly(n,i,this.p,t,r);return a.name==="raw"&&(this.rawBeginAt=i),a}readToDelimiter(t,r=!1){for(this.skipBlank();this.p<this.N;){if(r&&this.peekType()&GC){this.readQuoted();continue}if(++this.p,this.rmatch(t))return this.p}return-1}readOutputToken(t=gs){const{file:r,input:n}=this,{outputDelimiterRight:i}=t,a=this.p;if(this.readToDelimiter(i,!0)===-1)throw this.error(`output ${this.snapshot(a)} not closed`,a);return new pj(n,a,this.p,t,r)}readEndrawOrRawContent(t){const{tagDelimiterLeft:r,tagDelimiterRight:n}=t,i=this.p;let a=this.readTo(r)-r.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){a=this.readTo(r)-r.length;continue}for(;this.p<=this.N;){if(this.rmatch(n)){const o=this.p;return i===a?(this.rawBeginAt=-1,new ly(this.input,i,o,t,this.file)):(this.p=a,new iI(this.input,i,a,this.file))}if(this.rmatch(r))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,i)}readLiquidTagTokens(t=gs){const r=[];for(;this.p<this.N;){const n=this.readLiquidTagToken(t);n&&r.push(n)}return r}readLiquidTagToken(t){if(this.skipBlank(),this.end())return;const r=this.p;this.readToDelimiter(` 31`);const n=this.p;return new Ej(this.input,r,n,t,this.file)}error(t,r=this.p){return new BC(t,new uy(this.input,r,this.N,this.file))}assert(t,r,n){if(!t)throw this.error(typeof r=="function"?r():r,n)}snapshot(t=this.p){return JSON.stringify(qV(this.input.slice(t,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();const t=this.p;for(;!this.end()&&Fp(this.peek());)++this.p;return new uy(this.input,t,this.p,this.file)}readNonEmptyIdentifier(){const t=this.readIdentifier();return t.size()?t:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(t){const r=[];for(;;){const n=this.readHash(t);if(!n)return r;r.push(n)}}readHash(t){this.skipBlank(),this.peek()===","&&++this.p;const r=this.p,n=this.readNonEmptyIdentifier();if(!n)return;let i;this.skipBlank();const a=tt(t)?t:t?"=":":";return this.peek()===a&&(++this.p,i=this.readValue()),new vj(this.input,r,this.p,n,i,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(t=1){this.p+=t}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(t){for(;this.p<this.N;)if(++this.p,this.rmatch(t))return this.p;return-1}readValue(){this.skipBlank();const t=this.p,r=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),n=this.readProperties(!r);return n.length?new oI(r,n,this.input,t,this.p):r}readScopeValue(){this.skipBlank();const t=this.p,r=this.readProperties();if(r.length)return new oI(void 0,r,this.input,t,this.p)}readProperties(t=!0){const r=[];for(;;){if(this.peek()==="["){this.p++;const n=this.readValue()||new uy(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),r.push(n);continue}if(t&&!r.length){const n=this.readNonEmptyIdentifier();if(n){r.push(n);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;const n=this.readNonEmptyIdentifier();if(!n)break;r.push(n);continue}break}return r}readNumber(){this.skipBlank();let t=!1,r=!1,n=0;for(this.peekType()&ZV&&n++;this.p+n<=this.N;)if(this.peekType(n)&QV)r=!0,n++;else if(this.peek(n)==="."&&this.peek(n+1)!=="."){if(t||!r)return;t=!0,n++}else break;if(r&&!Fp(this.peek(n))){const i=new fj(this.input,this.p,this.p+n,this.file);return this.advance(n),i}}readLiteral(){this.skipBlank();const t=this.matchTrie(this.literalTrie);if(t===-1)return;const r=new gj(this.input,this.p,t,this.file);return this.p=t,r}readRange(){this.skipBlank();const t=this.p;if(this.peek()!=="(")return;++this.p;const r=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");const n=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Tj(this.input,t,this.p,r,n,this.file)}readValueOrThrow(){const t=this.readValue();return this.assert(t,()=>`unexpected token ${this.snapshot()}, value expected`),t}readQuoted(){this.skipBlank();const t=this.p;if(!(this.peekType()&GC))return;++this.p;let r=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[t]&&!r));)r?r=!1:this.input[this.p-1]==="\\"&&(r=!0);return new wj(this.input,t,this.p,this.file)}*readFileNameTemplate(t){const{outputDelimiterLeft:r}=t,n=[","," ","\r",` 32`," ",r],i=new Set(n);for(;this.p<this.N&&!i.has(this.peek());)yield this.match(r)?this.readOutputToken(t):this.readHTMLToken(n)}match(t){for(let r=0;r<t.length;r++)if(t[r]!==this.input[this.p+r])return!1;return!0}rmatch(t){for(let r=0;r<t.length;r++)if(t[t.length-1-r]!==this.input[this.p-1-r])return!1;return!0}peekType(t=0){return this.p+t>=this.N?0:Ut[this.input.charCodeAt(this.p+t)]}peek(t=0){return this.p+t>=this.N?"":this.input[this.p+t]}skipBlank(){for(;this.peekType()&_c;)++this.p}}class yI{constructor(t,r){this.handlers={},this.stopRequested=!1,this.tokens=t,this.parseToken=r}on(t,r){return this.handlers[t]=r,this}trigger(t,r){const n=this.handlers[t];return n?(n.call(this,r),!0):!1}start(){this.trigger("start");let t;for(;!this.stopRequested&&(t=this.tokens.shift());){if(this.trigger("token",t)||_o(t)&&this.trigger(`tag:${t.name}`,t))continue;const r=this.parseToken(t,this.tokens);this.trigger("template",r)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}}class fy{constructor(t){this.token=t}}class nr extends fy{constructor(t,r,n){super(t),this.name=t.name,this.liquid=n,this.tokenizer=t.tokenizer}}class ms{constructor(t,r){this.hash={};const n=t instanceof Ui?t:new Ui(t,{});for(const i of n.readHashes(r))this.hash[i.name.content]=i.value}*render(t){const r={};for(const n of Object.keys(this.hash))r[n]=this.hash[n]===void 0?!0:yield hr(this.hash[n],t);return r}}function t6(e){return class extends nr{constructor(t,r,n){super(t,r,n),Rr(e.parse)&&e.parse.call(this,t,r)}*render(t,r){const n=yield new ms(this.token.args,t.opts.keyValueSeparator).render(t);return yield e.render.call(this,t,r,n)}}}function bI(e){return nn(e)}class gy{constructor(t,r,n){this.token=t,this.name=t.name,this.handler=Rr(r)?r:Rr(r?.handler)?r.handler:UC,this.raw=!Rr(r)&&!!r?.raw,this.args=t.args,this.liquid=n}*render(t,r){const n=[];for(const i of this.args)bI(i)?n.push([i[0],yield hr(i[1],r)]):n.push(yield hr(i,r));return yield this.handler.apply({context:r,token:this.token,liquid:this.liquid},[t,...n])}}class Bn{constructor(t,r){this.filters=[];const n=typeof t=="string"?new Ui(t,r.options.operators).readFilteredValue():t;this.initial=n.initial,this.filters=n.filters.map(i=>new gy(i,this.getFilter(r,i.name),r))}*value(t,r){r=r||t.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let n=yield this.initial.evaluate(t,r);for(const i of this.filters)n=yield i.render(n,t);return n}getFilter(t,r){const n=t.filters[r];return an(n||!t.options.strictFilters,()=>`undefined filter: ${r}`),n}}class wI extends fy{constructor(t,r){var n;super(t);const i=new Ui(t.input,r.options.operators,t.file,t.contentRange);this.value=new Bn(i.readFilteredValue(),r);const a=this.value.filters,o=r.options.outputEscape;if(!(!((n=a[a.length-1])===null||n===void 0)&&n.raw)&&o){const s=new sI(toString.call(o),[],"",0,0);a.push(new gy(s,o,r))}}*render(t,r){const n=yield this.value.value(t,!1);r.write(n)}*arguments(){yield this.value}}class r6 extends fy{constructor(t){super(t),this.str=t.getContent()}*render(t,r){r.write(this.str)}}class Io{constructor(t,r){this.segments=t,this.location=r}toString(){return Hp(this.segments,!0)}toArray(){function*t(...r){for(const n of r)n instanceof Io?yield Array.from(t(...n.segments)):yield n}return Array.from(t(...this.segments))}}class my{constructor(){this.map=new Map}get(t){const r=Hp([t.segments[0]]);return this.map.has(r)||this.map.set(r,[]),this.map.get(r)}has(t){return this.map.has(Hp([t.segments[0]]))}push(t){this.get(t).push(t)}asObject(){return Object.fromEntries(this.map)}}const TI={partials:!0};function*EI(e,t,r){const n=new my,i=new my,a=new my,o=new SI(new Set),s=new Set;function c(u,d){n.push(u);const p=d.alias(u);if(p!==void 0){const g=p.segments[0];tt(g)&&!o.has(g)&&i.push(p)}else{const g=u.segments[0];tt(g)&&!d.has(g)&&i.push(u)}for(const g of u.segments)g instanceof Io&&c(g,d)}function*l(u,d){if(u.arguments)for(const p of u.arguments())for(const g of PI(p))c(g,d);if(u.localScope)for(const p of u.localScope()){d.add(p.content),d.deleteAlias(p.content);const[g,m]=p.getPosition();a.push(new Io([p.content],{row:g,col:m,file:p.file}))}if(u.children)if(u.partialScope){const p=u.partialScope();if(p===void 0){for(const v of yield u.children(t,r))yield l(v,d);return}if(s.has(p.name))return;const g=new Set,m=p.isolated?new SI(g):d.push(g);for(const v of p.scope)if(tt(v))g.add(v);else{const[h,P]=v;g.add(h);const x=Array.from(PI(P));x.length&&m.setAlias(h,x[0].segments)}for(const v of yield u.children(t,r))yield l(v,m),s.add(p.name);m.pop()}else{u.blockScope&&d.push(new Set(u.blockScope()));for(const p of yield u.children(t,r))yield l(p,d);u.blockScope&&d.pop()}}for(const u of e)yield l(u,o);return{variables:n.asObject(),globals:i.asObject(),locals:a.asObject()}}function Ka(e,t={}){const r=Object.assign(Object.assign({},TI),t);return ma(EI(e,r.partials,!1))}function Ya(e,t={}){const r=Object.assign(Object.assign({},TI),t);return ha(EI(e,r.partials,!0))}class SI{constructor(t){this.stack=[{names:t,aliases:new Map}]}has(t){for(const r of this.stack)if(r.names.has(t))return!0;return!1}push(t){return this.stack.push({names:t,aliases:new Map}),this}pop(){var t;return(t=this.stack.pop())===null||t===void 0?void 0:t.names}add(t){this.stack[0].names.add(t)}alias(t){const r=t.segments[0];if(!tt(r))return;const n=this.getAlias(r);if(n!==void 0)return new Io([...n,...t.segments.slice(1)],t.location)}setAlias(t,r){this.stack[this.stack.length-1].aliases.set(t,r)}deleteAlias(t){this.stack[this.stack.length-1].aliases.delete(t)}getAlias(t){for(const r of this.stack){if(r.aliases.has(t))return r.aliases.get(t);if(r.names.has(t))return}}}function*PI(e){qn(e)?yield*Mc(e):e instanceof Bn&&(yield*n6(e))}function*n6(e){for(const t of e.initial.postfix)qn(t)&&(yield*Mc(t));for(const t of e.filters)for(const r of t.args)bI(r)&&r[1]?yield*Mc(r[1]):qn(r)&&(yield*Mc(r))}function*Mc(e){wy(e)?(yield*Mc(e.lhs),yield*Mc(e.rhs)):ru(e)&&(yield hy(e))}function hy(e){const t=[];let r=e.file;const n=e.props[0];r=r||n.file,Wp(n)||yy(n)||by(n)?t.push(n.content):ru(n)&&t.push(...hy(n).segments);for(const o of e.props.slice(1))r=r||o.file,Wp(o)||yy(o)||by(o)?t.push(o.content):ru(o)&&t.push(hy(o));const[i,a]=e.getPosition();return new Io(t,{row:i,col:a,file:r})}const CI=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Hp(e,t=!1){const r=[],n=e[0];tt(n)&&(!t||n.match(CI)?r.push(`${n}`):r.push(`['${n}']`));for(const i of e.slice(1))i instanceof Io?r.push(`[${Hp(i.segments)}]`):tt(i)?i.match(CI)?r.push(`.${i}`):r.push(`['${i}']`):r.push(`[${i}]`);return r.join("")}var hs;(function(e){e.Partials="partials",e.Layouts="layouts",e.Root="root"})(hs||(hs={}));class i6{constructor(t){var r,n,i,a;if(this.options=t,t.relativeReference){const s=t.fs.sep;an(s,"`fs.sep` is required for relative reference");const c=["."+s,".."+s,"./","../"];this.shouldLoadRelative=l=>c.some(u=>l.startsWith(u))}else this.shouldLoadRelative=s=>!1;const o=t.fs;this.contains=ay(((r=o.contains)===null||r===void 0?void 0:r.bind(o))||(()=>Jt(this,void 0,void 0,function*(){return!0})),((n=o.containsSync)===null||n===void 0?void 0:n.bind(o))||(()=>!0)),this.exists=ay(((i=o.exists)===null||i===void 0?void 0:i.bind(o))||(()=>Jt(this,void 0,void 0,function*(){return!1})),(a=o.existsSync)===null||a===void 0?void 0:a.bind(o))}*lookup(t,r,n,i){const a=this.options[r];for(const o of this.candidates(t,a,i)){let s=!1;for(const c of a)if(yield this.contains(!!n,c,o)){s=!0;break}if(s&&(yield this.exists(!!n,o)))return o}throw this.lookupError(t,a)}*candidates(t,r,n){const{fs:i,extname:a}=this.options;this.shouldLoadRelative(t)&&n&&(yield i.resolve(this.dirname(n),t,a));for(const o of r)yield i.resolve(o,t,a);if(i.fallback!==void 0){const o=i.fallback(t);o!==void 0&&(yield o)}}dirname(t){const r=this.options.fs;return an(r.dirname,"`fs.dirname` is required for relative reference"),r.dirname(t)}lookupError(t,r){const n=new Error("ENOENT");return n.message=`ENOENT: Failed to lookup "${t}" in "${r}"`,n.code="ENOENT",n}}class xo{constructor(t){var r,n;this.liquid=t,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new i6(this.liquid.options),this.parseLimit=new sy("parse length",t.options.parseLimit),this.readFile=ay(((r=this.fs.readFile)===null||r===void 0?void 0:r.bind(this.fs))||(()=>Jt(this,void 0,void 0,function*(){throw new Error("readFile not implemented")})),(n=this.fs.readFileSync)===null||n===void 0?void 0:n.bind(this.fs))}parse(t,r){t=String(t),this.parseLimit.use(t.length);const i=new Ui(t,this.liquid.options.operators,r).readTopLevelTokens(this.liquid.options);return this.parseTokens(i)}parseTokens(t){let r;const n=[],i=[];for(;r=t.shift();)try{n.push(this.parseToken(r,t))}catch(a){if(this.liquid.options.catchAllErrors)i.push(a);else throw a}if(i.length)throw new VC(i);return n}parseToken(t,r){try{if(_o(t)){const n=this.liquid.tags[t.name];return an(n,`tag "${t.name}" not found`),new n(t,r,this.liquid,this)}return xI(t)?new wI(t,this.liquid):new r6(t)}catch(n){throw Po.is(n)?n:new qC(n,t)}}parseStream(t){return new yI(t,(r,n)=>this.parseToken(r,n))}*_parseFileCached(t,r,n=hs.Root,i){const a=this.cache,o=this.loader.shouldLoadRelative(t)?i+","+t:n+":"+t,s=yield a.read(o);if(s)return s;const c=this._parseFile(t,r,n,i),l=r?yield c:ma(c);a.write(o,l);try{return yield l}catch(u){throw a.remove(o),u}}*_parseFile(t,r,n=hs.Root,i){const a=yield this.loader.lookup(t,n,r,i);return this.parse(yield this.readFile(!!r,a),a)}}var Ft;(function(e){e[e.Number=1]="Number",e[e.Literal=2]="Literal",e[e.Tag=4]="Tag",e[e.Output=8]="Output",e[e.HTML=16]="HTML",e[e.Filter=32]="Filter",e[e.Hash=64]="Hash",e[e.PropertyAccess=128]="PropertyAccess",e[e.Word=256]="Word",e[e.Range=512]="Range",e[e.Quoted=1024]="Quoted",e[e.Operator=2048]="Operator",e[e.FilteredValue=4096]="FilteredValue",e[e.Delimited=12]="Delimited"})(Ft||(Ft={}));function II(e){return!!(Ei(e)&Ft.Delimited)}function vy(e){return Ei(e)===Ft.Operator}function Gp(e){return Ei(e)===Ft.HTML}function xI(e){return Ei(e)===Ft.Output}function _o(e){return Ei(e)===Ft.Tag}function Wp(e){return Ei(e)===Ft.Quoted}function a6(e){return Ei(e)===Ft.Literal}function yy(e){return Ei(e)===Ft.Number}function ru(e){return Ei(e)===Ft.PropertyAccess}function by(e){return Ei(e)===Ft.Word}function wy(e){return Ei(e)===Ft.Range}function qn(e){return(Ei(e)&1667)>0}function Ei(e){return e?e.kind:-1}var o6=Object.freeze({__proto__:null,isDelimitedToken:II,isOperatorToken:vy,isHTMLToken:Gp,isOutputToken:xI,isTagToken:_o,isQuotedToken:Wp,isLiteralToken:a6,isNumberToken:yy,isPropertyAccessToken:ru,isWordToken:by,isRangeToken:wy,isValueToken:qn});function ko(e){const t=Object.create(null);return e&&Object.assign(t,e),t}let Oc=class ZN{constructor(t={},r=gs,n={},{memoryLimit:i,renderLimit:a}={}){var o,s,c,l,u;this.scopes=[ko()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!n.sync,this.opts=r,this.globals=(o=n.globals)!==null&&o!==void 0?o:r.globals,this.environments=Dp(t)?t:Object(t),this.strictVariables=(s=n.strictVariables)!==null&&s!==void 0?s:this.opts.strictVariables,this.ownPropertyOnly=(c=n.ownPropertyOnly)!==null&&c!==void 0?c:r.ownPropertyOnly,this.memoryLimit=i??new sy("memory alloc",(l=n.memoryLimit)!==null&&l!==void 0?l:r.memoryLimit),this.renderLimit=a??new sy("template render",dy().now()+((u=n.renderLimit)!==null&&u!==void 0?u:r.renderLimit))}getRegister(t,r=void 0){return this.registers[t]=this.registers[t]||r}setRegister(t,r){return this.registers[t]=r}saveRegister(...t){return t.map(r=>[r,this.getRegister(r)])}restoreRegister(t){return t.forEach(([r,n])=>this.setRegister(r,n))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((t,r)=>qp(t,r),{})}get(t){return this.getSync(t)}getSync(t){return ha(this._get(t))}*_get(t){const r=this.findScope(t[0]);return yield this._getFromScope(r,t)}getFromScope(t,r){return ha(this._getFromScope(t,r))}*_getFromScope(t,r,n=this.strictVariables){tt(r)&&(r=r.split("."));for(let i=0;i<r.length;i++)if(t=yield this.readProperty(t,r[i]),n&&LV(t))throw new jV(r.slice(0,i+1).join("."));return t}push(t){return this.scopes.push(t)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(t={}){return new ZN(t,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(t){for(let r=this.scopes.length-1;r>=0;r--){const n=this.scopes[r];if(t in n)return n}return t in this.environments?this.environments:this.globals}readProperty(t,r){if(t=AC(t),r=pt(r),mr(t))return t;if(nn(t)&&r<0)return t[t.length+ +r];const n=s6(t,r,this.ownPropertyOnly);return n===void 0&&t instanceof So?t.liquidMethodMissing(r,this):Rr(n)?n.call(t):r==="size"?u6(t):r==="first"?c6(t):r==="last"?l6(t):n}};function s6(e,t,r){if(!(r&&!ey.call(e,t)&&!(e instanceof So)))return e[t]}function c6(e){return nn(e)?e[0]:e.first}function l6(e){return nn(e)?e[e.length-1]:e.last}function u6(e){if(ey.call(e,"size")||e.size!==void 0)return e.size;if(nn(e)||tt(e))return e.length;if(typeof e=="object")return Object.keys(e).length}var vs;(function(e){e[e.OUTPUT=0]="OUTPUT",e[e.STORE=1]="STORE"})(vs||(vs={}));const d6=fa(Math.abs),p6=fa(Math.max),f6=fa(Math.min),g6=fa(Math.ceil),m6=fa((e,t,r=!1)=>r?Math.floor(e/t):e/t),h6=fa(Math.floor),v6=fa((e,t)=>e-t),y6=fa((e,t)=>e+t),b6=fa((e,t)=>e%t),w6=fa((e,t)=>e*t);function T6(e,t=0){e=ty(e),t=ty(t);const r=Math.pow(10,t),n=e*r;return Math.sign(e)*Math.round(Math.abs(n))/r}var E6=Object.freeze({__proto__:null,abs:d6,at_least:p6,at_most:f6,ceil:g6,divided_by:m6,floor:h6,minus:v6,plus:y6,modulo:b6,times:w6,round:T6});const S6=e=>decodeURIComponent(Te(e)).replace(/\+/g," "),P6=e=>encodeURIComponent(Te(e)).replace(/%20/g,"+"),C6=e=>encodeURIComponent(Te(e)).replace(/%20/g,"+").replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),I6=e=>encodeURI(Te(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),_I=/[^\p{M}\p{L}\p{Nd}]+/ug,x6={raw:/\s+/g,default:_I,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:_I,none:null};function _6(e,t="default",r=!1){e=Te(e);const n=x6[t];return n&&(t==="latin"&&(e=k6(e)),e=e.replace(n,"-").replace(/^-|-$/g,"")),r?e:e.toLowerCase()}function k6(e){return e.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìÃÂîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Ã…Â’]/g,"OE").replace(/[Þ]/g,"TH")}var M6=Object.freeze({__proto__:null,url_decode:S6,url_encode:P6,cgi_escape:C6,uri_escape:I6,slugify:_6});const O6=Lp(function(e,t){const r=wn(e),n=mr(t)?" ":Te(t),i=r.length*(1+n.length);return this.context.memoryLimit.use(i),r.join(n)}),A6=Lp(e=>$C(e)?NC(e):""),$6=Lp(e=>$C(e)?e[0]:""),R6=Lp(function(e){const t=wn(e);return this.context.memoryLimit.use(t.length),[...t].reverse()});function*kI(e,t,r){const n=[],i=wn(e);this.context.memoryLimit.use(i.length);for(const a of i)n.push([a,t?yield this.context._getFromScope(a,Te(t).split("."),!1):a]);return n.sort((a,o)=>r(a[1],o[1])).map(a=>a[0])}function*N6(e,t){return yield*kI.call(this,e,t,zV)}function*D6(e,t){return yield*kI.call(this,e,t,VV)}const L6=e=>e&&e.length||0;function*U6(e,t){const r=[],n=wn(e);this.context.memoryLimit.use(n.length);for(const i of n)r.push(yield this.context._getFromScope(i,Te(t),!1));return r}function*F6(e,t){let r=0;const n=wn(e);for(const i of n){const a=Number(t?yield this.context._getFromScope(i,Te(t),!1):i);r+=Number.isNaN(a)?0:a}return r}function B6(e){const t=wn(e);return this.context.memoryLimit.use(t.length),t.filter(r=>!mr(pt(r)))}function MI(e,t=[]){const r=wn(e),n=wn(t);return this.context.memoryLimit.use(r.length+n.length),r.concat(n)}function q6(e,t){return MI.call(this,e,[t])}function z6(e,t){const r=wn(e);this.context.memoryLimit.use(r.length);const n=[...r];return n.unshift(t),n}function V6(e){const t=[...wn(e)];return t.pop(),t}function j6(e){const t=wn(e);this.context.memoryLimit.use(t.length);const r=[...t];return r.shift(),r}function H6(e,t,r=1){return e=pt(e),mr(e)?[]:(nn(e)||(e=Te(e)),t=t<0?e.length+t:t,this.context.memoryLimit.use(r),e.slice(t,t+r))}function OI(e){return this.context.opts.jekyllWhere?t=>kc.is(e)?Za(t,e):nn(t)?Mj(t,e):Za(t,e):e===void 0?t=>Co(t,this.context):t=>Za(t,e)}function*AI(e,t,r,n){const i=[];t=wn(t),this.context.memoryLimit.use(t.length);const a=new Ui(Te(r)).readScopeValue();for(const s of t)i.push(yield hr(a,this.context.spawn(s)));const o=OI.call(this,n);return t.filter((s,c)=>o(i[c])===e)}function*$I(e,t,r,n){const i=[],a=new Bn(Te(n),this.liquid),o=wn(t);this.context.memoryLimit.use(o.length);for(const s of o){this.context.push({[r]:s});const c=yield a.value(this.context);this.context.pop(),c===e&&i.push(s)}return i}function*G6(e,t,r){return yield*AI.call(this,!0,e,t,r)}function*W6(e,t,r){return yield*AI.call(this,!1,e,t,r)}function*Q6(e,t,r){return yield*$I.call(this,!0,e,t,r)}function*Z6(e,t,r){return yield*$I.call(this,!1,e,t,r)}function*K6(e,t){const r=new Map;e=Jl(e);const n=new Ui(Te(t)).readScopeValue();this.context.memoryLimit.use(e.length);for(const i of e){const a=yield hr(n,this.context.spawn(i));r.has(a)||r.set(a,[]),r.get(a).push(i)}return[...r.entries()].map(([i,a])=>({name:i,items:a}))}function*Y6(e,t,r){const n=new Map,i=new Bn(Te(r),this.liquid);e=Jl(e),this.context.memoryLimit.use(e.length);for(const a of e){this.context.push({[t]:a});const o=yield i.value(this.context);this.context.pop(),n.has(o)||n.set(o,[]),n.get(o).push(a)}return[...n.entries()].map(([a,o])=>({name:a,items:o}))}function*Ty(e,t,r){const n=new Ui(Te(t)).readScopeValue(),i=wn(e),a=OI.call(this,r);for(let o=0;o<i.length;o++){const s=yield hr(n,this.context.spawn(i[o]));if(a(s))return[o,i[o]]}}function*Ey(e,t,r){const n=new Bn(Te(r),this.liquid),i=wn(e);for(let a=0;a<i.length;a++){this.context.push({[t]:i[a]});const o=yield n.value(this.context);if(this.context.pop(),o)return[a,i[a]]}}function*X6(e,t,r){return!!(yield*Ty.call(this,e,t,r))}function*J6(e,t,r){return!!(yield*Ey.call(this,e,t,r))}function*e8(e,t,r){const n=yield*Ty.call(this,e,t,r);return n?n[0]:void 0}function*t8(e,t,r){const n=yield*Ey.call(this,e,t,r);return n?n[0]:void 0}function*r8(e,t,r){const n=yield*Ty.call(this,e,t,r);return n?n[1]:void 0}function*n8(e,t,r){const n=yield*Ey.call(this,e,t,r);return n?n[1]:void 0}function i8(e){return e=wn(e),this.context.memoryLimit.use(e.length),[...new Set(e)]}function a8(e,t=1){if(e=pt(e),mr(e))return[];nn(e)||(e=Te(e)),this.context.memoryLimit.use(t);const r=[...e].sort(()=>Math.random()-.5);return t===1?r[0]:r.slice(0,t)}var o8=Object.freeze({__proto__:null,join:O6,last:A6,first:$6,reverse:R6,sort:N6,sort_natural:D6,size:L6,map:U6,sum:F6,compact:B6,concat:MI,push:q6,unshift:z6,pop:V6,shift:j6,slice:H6,where:G6,reject:W6,where_exp:Q6,reject_exp:Z6,group_by:K6,group_by_exp:Y6,has:X6,has_exp:J6,find_index:e8,find_index_exp:t8,find:r8,find_exp:n8,uniq:i8,sample:a8});function Sy(e,t,r){var n,i;const a=((n=e?.length)!==null&&n!==void 0?n:0)+((i=r?.length)!==null&&i!==void 0?i:0);this.context.memoryLimit.use(a);const o=NI(e,this.context.opts,r);return o?(t=pt(t),t=mr(t)?this.context.opts.dateFormat:Te(t),this.context.memoryLimit.use(t.length),zp(o,t,this.context.memoryLimit)):e}function s8(e){return Sy.call(this,e,"%Y-%m-%dT%H:%M:%S%:z")}function c8(e){return Sy.call(this,e,"%a, %d %b %Y %H:%M:%S %z")}function l8(e,t,r){return RI.call(this,e,"%b",t,r)}function u8(e,t,r){return RI.call(this,e,"%B",t,r)}function RI(e,t,r,n){const i=NI(e,this.context.opts);if(!i)return e;const a=this.context.memoryLimit;if(r==="ordinal"){const o=i.getDate();return n==="US"?zp(i,`${t} ${o}%q, %Y`,a):zp(i,`${o}%q ${t} %Y`,a)}return zp(i,`%d ${t} %Y`,a)}function NI(e,t,r){let n;const i=r??t.timezoneOffset,a=t.locale;if(e=pt(e),!mr(e))return e==="now"||e==="today"?n=new Li(Date.now(),a,i):Np(e)?n=new Li(e*1e3,a,i):tt(e)?/^\d+$/.test(e)?n=new Li(+e*1e3,a,i):t.preserveTimezones&&r===void 0?n=Li.createDateFixedToTimezone(e,a):n=new Li(e,a,i):n=new Li(e,a,i),n.valid()?n:void 0}var d8=Object.freeze({__proto__:null,date:Sy,date_to_xmlschema:s8,date_to_rfc822:c8,date_to_string:l8,date_to_long_string:u8});const Py=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,DI=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function p8(e,t){an(arguments.length===2,"append expect 2 arguments");const r=Te(e),n=Te(t);return this.context.memoryLimit.use(r.length+n.length),r+n}function f8(e,t){an(arguments.length===2,"prepend expect 2 arguments");const r=Te(e),n=Te(t);return this.context.memoryLimit.use(r.length+n.length),n+r}function g8(e,t){const r=Te(e);if(this.context.memoryLimit.use(r.length),t){t=Te(t),this.context.memoryLimit.use(t.length);for(let n=0,i=new Set(t);n<r.length;n++)if(!i.has(r[n]))return r.slice(n);return""}return r.trimStart()}function m8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()}function h8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),Te(t).toUpperCase()}function v8(e,t){const r=Te(e);return t=Te(t),this.context.memoryLimit.use(r.length+t.length),r.split(t).join("")}function y8(e,t){const r=Te(e);return t=Te(t),this.context.memoryLimit.use(r.length+t.length),r.replace(t,"")}function b8(e,t){const r=Te(e),n=Te(t);this.context.memoryLimit.use(r.length+n.length);const i=r.lastIndexOf(n);return i===-1?r:r.substring(0,i)+r.substring(i+n.length)}function w8(e,t){if(e=Te(e),this.context.memoryLimit.use(e.length),t){t=Te(t),this.context.memoryLimit.use(t.length);for(let r=e.length-1,n=new Set(t);r>=0;r--)if(!n.has(e[r]))return e.slice(0,r+1);return""}return e.trimEnd()}function T8(e,t){const r=Te(e);this.context.memoryLimit.use(r.length);const n=r.split(Te(t));for(;n.length&&n[n.length-1]==="";)n.pop();return n}function E8(e,t){const r=Te(e);if(this.context.memoryLimit.use(r.length),t){const n=new Set(Te(t));this.context.memoryLimit.use(n.size);let i=0,a=r.length-1;for(;n.has(r[i]);)i++;for(;a>=i&&n.has(r[a]);)a--;return r.slice(i,a+1)}return r.trim()}function S8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,"")}function P8(e){return e=Te(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function C8(e,t,r){const n=Te(e);t=Te(t),r=Te(r);const i=n.split(t),a=n.length+(i.length-1)*(r.length-t.length);return this.context.memoryLimit.use(a),i.join(r)}function I8(e,t,r){const n=Te(e);return t=Te(t),r=Te(r),this.context.memoryLimit.use(n.length+t.length+r.length),n.replace(t,()=>r)}function x8(e,t,r){const n=Te(e),i=Te(t),a=Te(r);this.context.memoryLimit.use(n.length+i.length+a.length);const o=n.lastIndexOf(i);return o===-1?n:n.substring(0,o)+a+n.substring(o+i.length)}function _8(e,t=50,r="..."){const n=Te(e);return r=Te(r),this.context.memoryLimit.use(n.length+r.length),n.length<=t?e:n.substring(0,t-r.length)+r}function k8(e,t=15,r="..."){const n=Te(e);r=Te(r),this.context.memoryLimit.use(n.length+r.length);const i=n.split(/\s+/);t<=0&&(t=1);let a=i.slice(0,t).join(" ");return i.length>=t&&(a+=r),a}function M8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g," ")}function O8(e,t){const r=Te(e);if(this.context.memoryLimit.use(r.length),e=r.trim(),!e)return 0;switch(t){case"cjk":return(e.match(Py)||[]).length+(e.match(DI)||[]).length;case"auto":return Py.test(e)?e.match(Py).length+(e.match(DI)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}}function A8(e,t="and"){switch(t=Te(t),this.context.memoryLimit.use(e.length+t.length),e.length){case 0:return"";case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}}var $8=Object.freeze({__proto__:null,append:p8,prepend:f8,lstrip:g8,downcase:m8,upcase:h8,remove:v8,remove_first:y8,remove_last:b8,rstrip:w8,split:T8,strip:E8,strip_newlines:S8,capitalize:P8,replace:C8,replace_first:I8,replace_last:x8,truncate:_8,truncatewords:k8,normalize_whitespace:M8,number_of_words:O8,array_to_sentence_string:A8});function R8(e){return btoa(String.fromCharCode(...new TextEncoder().encode(e)))}function N8(e){return new TextDecoder().decode(Uint8Array.from(atob(e),t=>t.charCodeAt(0)))}function D8(e){if(typeof ce<"u"&&ce.isBuffer(e))return this.context.memoryLimit.use(e.byteLength),e.toString("base64");const t=Te(e);return this.context.memoryLimit.use(t.length),R8(t)}function L8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),N8(t)}var U8=Object.freeze({__proto__:null,base64_encode:D8,base64_decode:L8});function LI(e){const t=new Uint8Array(e);let r="";for(let n=0;n<t.length;n++)r+=t[n].toString(16).padStart(2,"0");return r}function F8(e){return Jt(this,void 0,void 0,function*(){const t=new TextEncoder().encode(e),r=yield crypto.subtle.digest("SHA-256",t);return LI(r)})}function B8(e,t){return Jt(this,void 0,void 0,function*(){const r=new TextEncoder,n=yield crypto.subtle.importKey("raw",r.encode(t),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=yield crypto.subtle.sign("HMAC",n,r.encode(e));return LI(i)})}function q8(e){const t=Te(e);return this.context.memoryLimit.use(t.length),F8(t)}function z8(e,t){const r=Te(e),n=Te(t);return this.context.memoryLimit.use(r.length+n.length),B8(r,n)}var V8=Object.freeze({__proto__:null,sha256:q8,hmac_sha256:z8});const UI=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qj),E6),M6),o8),d8),$8),U8),V8),vI);class FI extends nr{constructor(t,r,n){super(t,r,n),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new Bn(this.tokenizer.readFilteredValue(),this.liquid)}*render(t){t.bottom()[this.key]=yield this.value.value(t,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}}const BI=["offset","limit","reversed"];class qI extends nr{constructor(t,r,n,i){super(t,r,n);const a=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),s=this.tokenizer.readValue();if(!a.size()||o.content!=="in"||!s)throw new Error(`illegal tag: ${t.getText()}`);this.variable=a.content,this.collection=s,this.hash=new ms(this.tokenizer,n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c;const l=i.parseStream(r).on("start",()=>c=this.templates).on("tag:else",u=>{Bp(u.args),c=this.elseTemplates}).on("tag:endfor",u=>{Bp(u.args),l.stop()}).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});l.start()}*render(t,r){const n=this.liquid.renderer;let i=Jl(yield hr(this.collection,t));if(!i.length){yield n.renderTemplates(this.elseTemplates,t,r);return}const a="continue-"+this.variable+"-"+this.collection.getText();t.push(ko({continue:t.getRegister(a,{})}));const o=yield this.hash.render(t);t.pop(),i=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(l=>BI.includes(l)):BI.filter(l=>o[l]!==void 0)).reduce((l,u)=>u==="offset"?H8(l,o.offset):u==="limit"?G8(l,o.limit):j8(l),i),t.setRegister(a,(o.offset||0)+i.length);const c=ko({forloop:new ny(i.length,this.collection.getText(),this.variable)});t.push(c);for(const l of i){if(c[this.variable]=l,t.continueCalled=t.breakCalled=!1,yield n.renderTemplates(this.templates,t,r),t.breakCalled)break;c.forloop.next()}t.continueCalled=t.breakCalled=!1,t.pop()}*children(){const t=this.templates.slice();return this.elseTemplates&&t.push(...this.elseTemplates),t}*arguments(){yield this.collection;for(const t of Object.values(this.hash.hash))qn(t)&&(yield t)}blockScope(){return[this.variable,"forloop"]}}function j8(e){return[...e].reverse()}function H8(e,t){return e.slice(t)}function G8(e,t){return e.slice(0,t)}class zI extends nr{constructor(t,r,n,i){for(super(t,r,n),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;r.length;){const a=r.shift();if(_o(a)&&a.name==="endcapture")return;this.templates.push(i.parseToken(a,r))}throw new Error(`tag ${t.getText()} not closed`)}readVariable(){let t=this.tokenizer.readIdentifier();if(t.content||(t=this.tokenizer.readQuoted(),t))return t;throw this.tokenizer.error("invalid capture name")}*render(t){const n=yield this.liquid.renderer.renderTemplates(this.templates,t);t.bottom()[this.variable]=n}*children(){return this.templates}*localScope(){yield this.identifier}}class VI extends nr{constructor(t,r,n,i){super(t,r,n),this.branches=[],this.elseTemplates=[],this.value=new Bn(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let a=[],o=0;const s=i.parseStream(r).on("tag:when",c=>{if(o>0)return;a=[];const l=[];for(;!c.tokenizer.end();)l.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:l,templates:a})}).on("tag:else",()=>{o++,a=this.elseTemplates}).on("tag:endcase",()=>s.stop()).on("template",c=>{(a!==this.elseTemplates||o===1)&&a.push(c)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});s.start()}*render(t,r){const n=this.liquid.renderer,i=pt(yield this.value.value(t,t.opts.lenientIf));let a=!1;for(const o of this.branches)for(const s of o.values){const c=yield hr(s,t,t.opts.lenientIf);if(Za(i,c)){yield n.renderTemplates(o.templates,t,r),a=!0;break}}a||(yield n.renderTemplates(this.elseTemplates,t,r))}*arguments(){yield this.value,yield*this.branches.flatMap(t=>t.values)}*children(){const t=this.branches.flatMap(r=>r.templates);return this.elseTemplates&&t.push(...this.elseTemplates),t}}class jI extends nr{constructor(t,r,n){for(super(t,r,n);r.length;){const i=r.shift();if(_o(i)&&i.name==="endcomment")return}throw new Error(`tag ${t.getText()} not closed`)}render(){}}class HI extends nr{constructor(t,r,n,i){super(t,r,n);const a=this.tokenizer;for(this.file=Cy(a,this.liquid,i),this.currentFile=t.file;!a.end();){a.skipBlank();const o=a.p,s=a.readIdentifier();if((s.content==="with"||s.content==="for")&&(a.skipBlank(),a.peek()!==":")){const c=a.readValue();if(c){const l=a.p,u=a.readIdentifier();let d;u.content==="as"?d=a.readIdentifier():a.p=l,this[s.content]={value:c,alias:d&&d.content},a.skipBlank(),a.peek()===","&&a.advance();continue}}a.p=o;break}this.hash=new ms(a,n.options.keyValueSeparator)}*render(t,r){const{liquid:n,hash:i}=this,a=yield Iy(this.file,t,n);an(a,()=>`illegal file path "${a}"`);const o=t.spawn(),s=o.bottom();if(qp(s,yield i.render(t)),this.with){const{value:c,alias:l}=this.with;s[l||a]=yield hr(c,t)}if(this.for){const{value:c,alias:l}=this.for,u=Jl(yield hr(c,t));s.forloop=new ny(u.length,c.getText(),l);for(const d of u){s[l]=d;const p=yield n._parsePartialFile(a,o.sync,this.currentFile);yield n.renderer.renderTemplates(p,o,r),s.forloop.next()}}else{const c=yield n._parsePartialFile(a,o.sync,this.currentFile);yield n.renderer.renderTemplates(c,o,r)}}*children(t,r){return t&&tt(this.file)?yield this.liquid._parsePartialFile(this.file,r,this.currentFile):[]}partialScope(){if(tt(this.file)){const t=Object.keys(this.hash.hash);if(this.with){const{value:r,alias:n}=this.with;tt(n)?t.push([n,r]):tt(this.file)&&t.push([this.file,r])}if(this.for){const{value:r,alias:n}=this.for;tt(n)?t.push([n,r]):tt(this.file)&&t.push([this.file,r])}return{name:this.file,isolated:!0,scope:t}}}*arguments(){for(const t of Object.values(this.hash.hash))qn(t)&&(yield t);if(this.with){const{value:t}=this.with;qn(t)&&(yield t)}if(this.for){const{value:t}=this.for;qn(t)&&(yield t)}}}function Cy(e,t,r){if(t.options.dynamicPartials){const a=e.readValue();if(e.assert(a,"illegal file path"),a.getText()==="none")return;if(Wp(a)){const o=r.parse(pI(a));return GI(o)}return a}const n=[...e.readFileNameTemplate(t.options)],i=GI(r.parseTokens(n));return i==="none"?void 0:i}function GI(e){return e.length===1&&Gp(e[0].token)?e[0].token.getContent():e}function*Iy(e,t,r){return typeof e=="string"?e:Array.isArray(e)?r.renderer.renderTemplates(e,t):yield hr(e,t)}class WI extends nr{constructor(t,r,n,i){super(t,r,n);const{tokenizer:a}=t;this.file=Cy(a,this.liquid,i),this.currentFile=t.file;const o=a.p;a.readIdentifier().content==="with"?(a.skipBlank(),a.peek()!==":"?this.withVar=a.readValue():a.p=o):a.p=o,this.hash=new ms(a,n.options.jekyllInclude||n.options.keyValueSeparator)}*render(t,r){const{liquid:n,hash:i,withVar:a}=this,{renderer:o}=n,s=yield Iy(this.file,t,n);an(s,()=>`illegal file path "${s}"`);const c=t.saveRegister("blocks","blockMode");t.setRegister("blocks",{}),t.setRegister("blockMode",vs.OUTPUT);const l=ko(yield i.render(t));a&&(l[s]=yield hr(a,t));const u=yield n._parsePartialFile(s,t.sync,this.currentFile);t.push(t.opts.jekyllInclude?ko({include:l}):l),yield o.renderTemplates(u,t,r),t.pop(),t.restoreRegister(c)}*children(t,r){return t&&tt(this.file)?yield this.liquid._parsePartialFile(this.file,r,this.currentFile):[]}partialScope(){if(tt(this.file)){let t;return this.liquid.options.jekyllInclude?t=["include"]:(t=Object.keys(this.hash.hash),this.withVar&&t.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:t}}}*arguments(){yield*Object.values(this.hash.hash).filter(qn),qn(this.file)&&(yield this.file),qn(this.withVar)&&(yield this.withVar)}}class QI extends nr{constructor(t,r,n){super(t,r,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(t,r){const n=t.environments;Np(n[this.variable])||(n[this.variable]=0),r.write(Te(--n[this.variable]))}*localScope(){yield this.identifier}}class ZI extends nr{constructor(t,r,n){super(t,r,n),this.candidates=[];const i=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),i&&(this.tokenizer.peek()===":"?(this.group=i,this.tokenizer.advance()):this.candidates.push(i));!this.tokenizer.end();){const a=this.tokenizer.readValue();a&&this.candidates.push(a),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${t.getText()}"`)}*render(t,r){const i=`cycle:${yield hr(this.group,t)}:`+this.candidates.join(","),a=t.getRegister("cycle",{});let o=a[i];o===void 0&&(o=a[i]=0);const s=this.candidates[o];return o=(o+1)%this.candidates.length,a[i]=o,yield hr(s,t)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}}class KI extends nr{constructor(t,r,n,i){super(t,r,n),this.branches=[];let a=[];i.parseStream(r).on("start",()=>this.branches.push({value:new Bn(t.tokenizer.readFilteredValue(),this.liquid),templates:a=[]})).on("tag:elsif",o=>{an(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new Bn(o.tokenizer.readFilteredValue(),this.liquid),templates:a=[]})}).on("tag:else",o=>{Bp(o.args),an(!this.elseTemplates,"duplicated else"),a=this.elseTemplates=[]}).on("tag:endif",function(o){Bp(o.args),this.stop()}).on("template",o=>a.push(o)).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)}).start()}*render(t,r){const n=this.liquid.renderer;for(const{value:i,templates:a}of this.branches){const o=yield i.value(t,t.opts.lenientIf);if(Co(o,t)){yield n.renderTemplates(a,t,r);return}}yield n.renderTemplates(this.elseTemplates||[],t,r)}*children(){const t=this.branches.flatMap(r=>r.templates);return this.elseTemplates&&t.push(...this.elseTemplates),t}arguments(){return this.branches.map(t=>t.value)}}class YI extends nr{constructor(t,r,n){super(t,r,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(t,r){const n=t.environments;Np(n[this.variable])||(n[this.variable]=0);const i=n[this.variable];n[this.variable]++,r.write(Te(i))}*localScope(){yield this.identifier}}class XI extends nr{constructor(t,r,n,i){super(t,r,n),this.file=Cy(this.tokenizer,this.liquid,i),this.currentFile=t.file,this.args=new ms(this.tokenizer,n.options.keyValueSeparator),this.templates=i.parseTokens(r)}*render(t,r){const{liquid:n,args:i,file:a}=this,{renderer:o}=n;if(a===void 0){t.setRegister("blockMode",vs.OUTPUT),yield o.renderTemplates(this.templates,t,r);return}const s=yield Iy(this.file,t,n);an(s,()=>`illegal file path "${s}"`);const c=yield n._parseLayoutFile(s,t.sync,this.currentFile);t.setRegister("blockMode",vs.STORE);const l=yield o.renderTemplates(this.templates,t),u=t.getRegister("blocks",{});u[""]===void 0&&(u[""]=(d,p)=>p.write(l)),t.setRegister("blockMode",vs.OUTPUT),t.push(ko(yield i.render(t))),yield o.renderTemplates(c,t,r),t.pop()}*children(t){const r=this.templates.slice();return t&&tt(this.file)&&r.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),r}*arguments(){for(const t of Object.values(this.args.hash))qn(t)&&(yield t);qn(this.file)&&(yield this.file)}partialScope(){if(tt(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}}class JI extends nr{constructor(t,r,n,i){super(t,r,n),this.templates=[];const a=/\w+/.exec(t.args);for(this.block=a?a[0]:"";r.length;){const o=r.shift();if(_o(o)&&o.name==="endblock")return;const s=i.parseToken(o,r);this.templates.push(s)}throw new Error(`tag ${t.getText()} not closed`)}*render(t,r){const n=this.getBlockRender(t);t.getRegister("blockMode")===vs.STORE?t.getRegister("blocks",{})[this.block]=n:yield n(new ZC,r)}getBlockRender(t){const r=this,{liquid:n,templates:i}=this,a=t.getRegister("blocks",{})[this.block],o=function*(s,c){const l=t.getRegister("blockStack",[]);if(l.includes(r))throw new Error("block tag cannot be nested");l.push(r),t.push(ko({block:s})),yield n.renderer.renderTemplates(i,t,c),t.pop(),l.pop()};return a?(s,c)=>a(new ZC(l=>o(s,l)),c):o}*children(){return this.templates}blockScope(){return["block"]}}class e1 extends nr{constructor(t,r,n){for(super(t,r,n),this.tokens=[];r.length;){const i=r.shift();if(_o(i)&&i.name==="endraw")return;this.tokens.push(i)}throw new Error(`tag ${t.getText()} not closed`)}render(){return this.tokens.map(t=>t.getText()).join("")}}class W8 extends ny{constructor(t,r,n,i){super(t,n,i),this.length=t,this.cols=r}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}}class t1 extends nr{constructor(t,r,n,i){super(t,r,n);const a=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();const o=this.tokenizer.readIdentifier(),s=this.tokenizer.readValue();if(o.content!=="in"||!s)throw new Error(`illegal tag: ${t.getText()}`);this.variable=a.content,this.collection=s,this.args=new ms(this.tokenizer,n.options.keyValueSeparator),this.templates=[];let c;const l=i.parseStream(r).on("start",()=>c=this.templates).on("tag:endtablerow",()=>l.stop()).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)});l.start()}*render(t,r){let n=Jl(yield hr(this.collection,t));const i=yield this.args.render(t),a=i.offset||0,o=i.limit===void 0?n.length:i.limit;n=n.slice(a,a+o);const s=i.cols||n.length,c=this.liquid.renderer,l=new W8(n.length,s,this.collection.getText(),this.variable),u=ko({tablerowloop:l});t.push(u);for(let d=0;d<n.length;d++,l.next())u[this.variable]=n[d],l.col0()===0&&(l.row()!==1&&r.write("</tr>"),r.write(`<tr class="row${l.row()}">`)),r.write(`<td class="col${l.col()}">`),yield c.renderTemplates(this.templates,t,r),r.write("</td>");n.length&&r.write("</tr>"),t.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(const t of Object.values(this.args.hash))qn(t)&&(yield t)}blockScope(){return[this.variable,"tablerowloop"]}}class r1 extends nr{constructor(t,r,n,i){super(t,r,n),this.branches=[],this.elseTemplates=[];let a=[],o=0;i.parseStream(r).on("start",()=>this.branches.push({value:new Bn(t.tokenizer.readFilteredValue(),this.liquid),test:tu,templates:a=[]})).on("tag:elsif",s=>{if(o>0){a=[];return}this.branches.push({value:new Bn(s.tokenizer.readFilteredValue(),this.liquid),test:Co,templates:a=[]})}).on("tag:else",()=>{o++,a=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",s=>{(a!==this.elseTemplates||o===1)&&a.push(s)}).on("end",()=>{throw new Error(`tag ${t.getText()} not closed`)}).start()}*render(t,r){const n=this.liquid.renderer;for(const{value:i,test:a,templates:o}of this.branches){const s=yield i.value(t,t.opts.lenientIf);if(a(s,t)){yield n.renderTemplates(o,t,r);return}}yield n.renderTemplates(this.elseTemplates,t,r)}*children(){const t=this.branches.flatMap(r=>r.templates);return this.elseTemplates&&t.push(...this.elseTemplates),t}arguments(){return this.branches.map(t=>t.value)}}class n1 extends nr{render(t,r){t.breakCalled=!0}}class i1 extends nr{render(t,r){t.continueCalled=!0}}class a1 extends nr{constructor(t,r,n){super(t,r,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new Bn(this.tokenizer.readFilteredValue(),this.liquid))}*render(t,r){if(!this.value)return;const n=yield this.value.value(t,!1);r.write(n)}*arguments(){this.value&&(yield this.value)}}class o1 extends nr{constructor(t,r,n,i){super(t,r,n);const a=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=i.parseTokens(a)}*render(t,r){yield this.liquid.renderer.renderTemplates(this.templates,t,r)}*children(){return this.templates}}class s1 extends nr{constructor(t,r,n){if(super(t,r,n),t.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}}const c1={assign:FI,for:qI,capture:zI,case:VI,comment:jI,include:WI,render:HI,decrement:QI,increment:YI,cycle:ZI,if:KI,layout:XI,block:JI,raw:e1,tablerow:t1,unless:r1,break:n1,continue:i1,echo:a1,liquid:o1,"#":s1};class xy{constructor(t={}){this.renderer=new Cj,this.filters=Object.create(null),this.tags=Object.create(null),this.options=Kj(t),this.parser=new xo(this),RC(c1,(r,n)=>this.registerTag(n,r)),RC(UI,(r,n)=>this.registerFilter(n,r))}parse(t,r){return new xo(this).parse(t,r)}_render(t,r,n){const i=r instanceof Oc?r:new Oc(r,this.options,n);return this.renderer.renderTemplates(t,i)}render(t,r,n){return Jt(this,void 0,void 0,function*(){return ma(this._render(t,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(t,r,n){return ha(this._render(t,r,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(t,r,n={}){const i=new Oc(r,this.options,n);return this.renderer.renderTemplatesToNodeStream(t,i)}_parseAndRender(t,r,n){const i=this.parse(t);return this._render(i,r,n)}parseAndRender(t,r,n){return Jt(this,void 0,void 0,function*(){return ma(this._parseAndRender(t,r,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(t,r,n){return ha(this._parseAndRender(t,r,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(t,r,n){return new xo(this).parseFile(t,r,hs.Partials,n)}_parseLayoutFile(t,r,n){return new xo(this).parseFile(t,r,hs.Layouts,n)}_parseFile(t,r,n,i){return new xo(this).parseFile(t,r,n,i)}parseFile(t,r){return Jt(this,void 0,void 0,function*(){return ma(new xo(this).parseFile(t,!1,r))})}parseFileSync(t,r){return ha(new xo(this).parseFile(t,!0,r))}*_renderFile(t,r,n){const i=yield this._parseFile(t,n.sync,n.lookupType);return yield this._render(i,r,n)}renderFile(t,r,n){return Jt(this,void 0,void 0,function*(){return ma(this._renderFile(t,r,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(t,r,n){return ha(this._renderFile(t,r,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(t,r,n){return Jt(this,void 0,void 0,function*(){const i=yield this.parseFile(t);return this.renderToNodeStream(i,r,n)})}_evalValue(t,r){const n=new Bn(t,this),i=r instanceof Oc?r:new Oc(r,this.options);return n.value(i)}evalValue(t,r){return Jt(this,void 0,void 0,function*(){return ma(this._evalValue(t,r))})}evalValueSync(t,r){return ha(this._evalValue(t,r))}registerFilter(t,r){this.filters[t]=r}registerTag(t,r){this.tags[t]=Rr(r)?r:t6(r)}plugin(t){return t.call(this,xy)}express(){const t=this;let r=!0;return function(n,i,a){if(r){r=!1;const o=jp(this.root);t.options.root.unshift(...o),t.options.layouts.unshift(...o),t.options.partials.unshift(...o)}t.renderFile(n,i).then(o=>a(null,o),a)}}analyze(t,r={}){return Jt(this,void 0,void 0,function*(){return Ka(t,r)})}analyzeSync(t,r={}){return Ya(t,r)}parseAndAnalyze(t,r,n={}){return Jt(this,void 0,void 0,function*(){return Ka(this.parse(t,r),n)})}parseAndAnalyzeSync(t,r,n={}){return Ya(this.parse(t,r),n)}variables(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Object.keys(n.variables)})}variablesSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Object.keys(n.variables)}fullVariables(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Array.from(new Set(Object.values(n.variables).flatMap(i=>i.map(a=>String(a)))))})}fullVariablesSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Array.from(new Set(Object.values(n.variables).flatMap(i=>i.map(a=>String(a)))))}variableSegments(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Array.from(Up(Object.values(n.variables).flatMap(i=>i.map(a=>a.toArray()))))})}variableSegmentsSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Array.from(Up(Object.values(n.variables).flatMap(i=>i.map(a=>a.toArray()))))}globalVariables(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Object.keys(n.globals)})}globalVariablesSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Object.keys(n.globals)}globalFullVariables(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Array.from(new Set(Object.values(n.globals).flatMap(i=>i.map(a=>String(a)))))})}globalFullVariablesSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Array.from(new Set(Object.values(n.globals).flatMap(i=>i.map(a=>String(a)))))}globalVariableSegments(t,r={}){return Jt(this,void 0,void 0,function*(){const n=yield Ka(tt(t)?this.parse(t):t,r);return Array.from(Up(Object.values(n.globals).flatMap(i=>i.map(a=>a.toArray()))))})}globalVariableSegmentsSync(t,r={}){const n=Ya(tt(t)?this.parse(t):t,r);return Array.from(Up(Object.values(n.globals).flatMap(i=>i.map(a=>a.toArray()))))}}var Q8=Object.freeze({__proto__:null,AssertionError:HC,AssignTag:FI,BlockTag:JI,BreakTag:n1,CaptureTag:zI,C
32aseTag:VI,CommentTag:jI,Context:Oc,ContinueTag:i1,CycleTag:ZI,DecrementTag:QI,Drop:So,EchoTag:a1,Expression:dI,Filter:gy,ForTag:qI,Hash:ms,IfTag:KI,IncludeTag:WI,IncrementTag:YI,InlineCommentTag:s1,LayoutTag:XI,Liquid:xy,LiquidError:Po,LiquidTag:o1,get LookupType(){return hs},Output:wI,ParseError:qC,ParseStream:yI,Parser:xo,RawTag:e1,RenderError:zC,RenderTag:HI,TablerowTag:t1,Tag:nr,TagToken:ly,Token:ri,get TokenKind(){return Ft},TokenizationError:BC,Tokenizer:Ui,TypeGuards:o6,UndefinedVariableError:jC,UnlessTag:r1,Value:Bn,Variable:Io,analyze:Ka,analyzeSync:Ya,assert:an,createTrie:iy,defaultOperators:fI,defaultOptions:gs,evalQuotedToken:pI,evalToken:hr,filters:UI,isFalsy:tu,isTruthy:Co,tags:c1,toPromise:ma,toValue:pt,toValueSync:ha,version:"[VI]{version}[/VI]"}),Z8=Ph(Q8);Object.defineProperty(at,"__esModule",{value:!0}),at.urlClientFactory=at.mustacheService=at.formatterService=at.engine=at.cultureFormatter=at.contextService=void 0;var K8=Pp,Y8=Cp,X8=Xl,J8=Ip,e5=xp,t5=Z8;at.formatterService=new Y8.FormatterService,at.mustacheService=new K8.MustacheService,at.cultureFormatter=new X8.CultureFormatter,at.contextService=new e5.ContextService,at.engine=new t5.Liquid({strictVariables:!1,cache:!0}),at.urlClientFactory={create:()=>new J8.UrlClient};var Nr={},Mo={},er={};Object.defineProperty(er,"__esModule",{value:!0}),er.localized=void 0;const _t={},r5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Bara </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> styck </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> med rabattkoden </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Bara",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Pris </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} rabatt",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Grundpris",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/st.</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"ing\xE5r","priceForQtyUnits.subtemplate":"f\xF6r {{quantity}} st.",priceForQtyForSingleUnit:"f\xF6r {{quantity}} st.",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / st.</span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / f\xF6rp. </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / mottagare </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} f\xF6r bara </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} f\xF6r",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} fr\xE5n </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} fr\xE5n </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. moms)",vatEx:"(exkl. moms)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Du har sparat",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"ursprungligt pris:",salePrice:"aktuellt f\xF6rs\xE4ljningspris:",vatIncWithShipping:"(inkl. moms plus {{{shippingMessage}}})",vatExWithShipping:"(exkl. moms plus {{{shippingMessage}}})",shippingMessage:"Leverans"};_t["sv-se"]=r5;const n5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>A partir de apenas </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> por unidade </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> com o c\xF3digo </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Apenas",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>
32Pre\xE7o </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"Desconto de {{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Pre\xE7o base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/cada</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inclu\xEDdo","priceForQtyUnits.subtemplate":"por {{quantity}} unidades",priceForQtyForSingleUnit:"por {{quantity}} unidades",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unidade </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / pacote </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinat\xE1rio </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} por apenas </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} por",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(IVA inc.)",vatEx:"(Sem IVA)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Poupou {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"pre\xE7o original:",salePrice:"pre\xE7o promocional atual:",vatIncWithShipping:"(com IVA mais {{{shippingMessage}}})",vatExWithShipping:"(sem IVA mais {{{shippingMessage}}})",shippingMessage:"Envio"};_t["pt-pt"]=n5;const i5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"",labeledPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"","priceForQtyUnits.subtemplate":"{{quantity}}",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}</span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} ",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"",vatEx:"",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"{{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"",salePrice:""};_t["no-locale"]=i5;const a5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Al vanaf </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per stuk </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> met code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Slechts",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prijs </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} korting",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Basisprijs",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/stuk</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"Inclusief","priceForQtyUnits.subtemplate":"voor {{quantity}} stuks",priceForQtyForSingleUnit:"voor {{quantity}} stuk",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/stuk </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/pak </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/ontvanger </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} voor slechts </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} voor",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} vanaf </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} vanaf </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(incl. btw)",vatEx:"(excl. btw)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Je hebt {{amount}} bespaard",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"oorspronkelijke prijs:",salePrice:"huidige aanbiedingsprijs:",vatIncWithShipping:"(incl. btw en {{{shippingMessage}}})",vatExWithShipping:"(excl. btw en {{{shippingMessage}}})",shippingMessage:"verzendkosten"};_t["nl-nl"]=a5;const o5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Al vanaf </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per stuk </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> met code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Slechts",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prijs </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} korting",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Basisprijs",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/stuk</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"Inclusief","priceForQtyUnits.subtemplate":"voor {{quantity}} stuks",priceForQtyForSingleUnit:"for {{quantity}} stuk",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>
32/stuk </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> /pak </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/ontvanger </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} voor slechts </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} voor",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} vanaf </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} vanaf </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(incl. btw)",vatEx:"(excl. btw)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Je hebt {{amount}} bespaard",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"oorspronkelijke prijs:",salePrice:"huidige aanbiedingsprijs:"};_t["nl-be"]=o5;const s5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>S\xE5 lite som </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per stykk </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> med kode </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Kun",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Pris </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} rabatt",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Grunnpris",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/per stk.</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inkludert","priceForQtyUnits.subtemplate":"for {{quantity}} stk.",priceForQtyForSingleUnit:"for {{quantity}} stk.",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / stk </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / pakke </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / mottaker </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for kun </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} fra </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} fra </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. MVA)",vatEx:"(ekskl. MVA)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Du sparte {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"opprinnelig pris:",salePrice:"aktuell tilbudspris:",vatIncWithShipping:"(inkl. MVA pluss {{{shippingMessage}}})",vatExWithShipping:"(ekskl. MVA pluss {{{shippingMessage}}})",shippingMessage:"Frakt"};_t["nb-no"]=s5;const c5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>A soli </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per unit\xE0 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> con il codice </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"A soli",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prezzo </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"-{{percent}}%",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prezzo di base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/unit\xE0</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"incluso","priceForQtyUnits.subtemplate":"per {{quantity}} unit\xE0",priceForQtyForSingleUnit:"per {{quantity}} unit\xE0",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit\xE0 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / confezione </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinatario </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a soli </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} a",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partire da </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partire da </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(IVA incl.)",vatEx:"(IVA escl.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Hai risparmiato {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prezzo originale:",salePrice:"prezzo di vendita attuale:",vatIncWithShipping:"(incl. IVA pi\xF9 {{{shippingMessage}}})",vatExWithShipping:"(escl. IVA pi\xF9 {{{shippingMessage}}})",shippingMessage:"Spedizione"};_t["it-it"]=c5;const l5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>A soli </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per unit\xE0 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> con il codice </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Solo",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prezzo </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} di sconto",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prezzo di base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/unit\xE0</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"incluso","priceForQtyUnits.subtemplate":"per {{quantity}} unit\xE0",priceForQtyForSingleUnit:"for {{quantity}} unit\xE0",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit\xE0 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / confezione </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinatario </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a soli </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} a",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partire da </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partire da </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(IVA incl.)",vatEx:"(IVA escl.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Hai risparmiato {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prezzo originale:",salePrice:"prezzo di vendita attuale:"};_t["it-ch"]=l5;const u5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>\xC0 partir de </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> l\u2019unit\xE9 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> en entrant le code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Seulement",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prix </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"-{{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prix\xA0de base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>
32/unit\xE9</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inclus","priceForQtyUnits.subtemplate":"pour {{quantity}} unit\xE9s",priceForQtyForSingleUnit:"pour {{quantity}} unit\xE9",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit\xE9 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / lot </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinataire </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} pour seulement </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} pour",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} d\xE8s </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} \xE0 partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(toutes taxes comprises)",vatEx:"(hors taxes)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Vous \xE9conomisez {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prix initial\xA0:",salePrice:"prix sold\xE9 actuel\xA0:",vatIncWithShipping:"(TTC plus {{{shippingMessage}}})",vatExWithShipping:"(HT plus {{{shippingMessage}}})",shippingMessage:"Frais de livraison"};_t["fr-fr"]=u5;const d5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>\xC0 partir de </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> l\u2019unit\xE9 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> en entrant le code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Seulement",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prix </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} de r\xE9duction",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prix\xA0de base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/unit\xE9</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inclus","priceForQtyUnits.subtemplate":"pour {{quantity}} unit\xE9s",priceForQtyForSingleUnit:"for {{quantity}} unit\xE9",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit\xE9 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / lot </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinataire </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} pour seulement </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} pour",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}}
32 d\xE8s </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} \xE0 partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(TTC)",vatEx:"(HT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Vous \xE9conomisez {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prix initial\xA0:",salePrice:"prix sold\xE9 actuel\xA0:"};_t["fr-ch"]=d5;const p5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>\xC0 partir de </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> l\u2019unit\xE9 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> avec le code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Seulement",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prix </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"- {{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prix de base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ch.</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inclus","priceForQtyUnits.subtemplate":"pour {{quantity}}\xA0unit\xE9s",priceForQtyForSingleUnit:"pour {{quantity}}\xA0unit\xE9",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/unit\xE9 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / lot </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/destinataire </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} pour seulement </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} pour",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} \xE0 partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(TPS/TVH incluses)",vatEx:"(TPS/TVH en sus)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Vous avez \xE9conomis\xE9 {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prix initial\xA0:",salePrice:"prix r\xE9duit actuel\xA0:",vatIncWithShipping:"(TPS/TVH incluses + {{{shippingMessage}}})",vatExWithShipping:"(TPS/TVH incluses + {{{shippingMessage}}})",shippingMessage:"exp\xE9dition"};_t["fr-ca"]=p5;const f5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>\xC0 partir de </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> l\u2019unit\xE9 </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> en entrant le code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Seulement",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Prix </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} de r\xE9duction",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Prix\xA0de base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>
32/unit\xE9</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inclus","priceForQtyUnits.subtemplate":"pour {{quantity}} unit\xE9s",priceForQtyForSingleUnit:"for {{quantity}} unit\xE9",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit\xE9 </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / lot </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinataire </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} pour seulement </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} pour",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} d\xE8s </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} \xE0 partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(TTC)",vatEx:"(HT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Vous \xE9conomisez {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"prix initial\xA0:",salePrice:"prix sold\xE9 actuel\xA0:"};_t["fr-be"]=f5;const g5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Alkaen </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per tuote</span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> k\xE4ytett\xE4ess\xE4 koodia </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Vain",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Hinta </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} alennus",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Perushinta",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/kpl</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"sis\xE4ltyy mukaan","priceForQtyUnits.subtemplate":"/ {{quantity}} kpl",priceForQtyForSingleUnit:"/ {{quantity}} kpl",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / tuote</span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / pakkaus </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / vastaanottaja </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} vain </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} ",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} alkaen </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} alkaen </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(sis. ALV)",vatEx:"(ei sis. ALV)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"S\xE4\xE4stit {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"alkuper\xE4inen hinta:",salePrice:"nykyinen alennushinta:",vatIncWithShipping:"(sis. ALV + {{{shippingMessage}}})",vatExWithShipping:"(ei sis. ALV + {{{shippingMessage}}})",shippingMessage:"Toimitus"};_t["fi-fi"]=g5;const m5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Por tan solo </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> la unidad </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> con c\xF3digo </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Tan solo",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Precio </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} dto.",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Precio base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>c/u</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"incluido","priceForQtyUnits.subtemplate":"por {{quantity}} unidades",priceForQtyForSingleUnit:"por {{quantity}} unidades",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unidad </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / paquete </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinatario </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} por solo </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} para",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} desde </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(Incl. IVA)",vatEx:"(Excl. IVA)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Ahorr\xF3 {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"precio original:",salePrice:"precio de venta actual:",vatIncWithShipping:"(Incl. Iva m\xE1s {{{shippingMessage}}})",vatExWithShipping:"(Excl. Iva m\xE1s {{{shippingMessage}}})",shippingMessage:"Env\xEDo"};_t["es-us"]=m5;const h5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Desde tan solo </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> por unidad </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> con el c\xF3digo </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Solo",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Precio </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} de dto.",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Precio base",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/unidad</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"incluido","priceForQtyUnits.subtemplate":"por {{quantity}} unidades",priceForQtyForSingleUnit:"por {{quantity}} unidad",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>
32 / unidad </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / paquete </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / destinatario </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} por solo </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} por",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} desde </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} a partir de </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(IVA incl.)",vatEx:"(IVA no incl.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Ahorras {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"precio original:",salePrice:"precio con descuento:",vatIncWithShipping:"(IVA incl. m\xE1s {{{shippingMessage}}})",vatExWithShipping:"(IVA no incl. m\xE1s {{{shippingMessage}}})",shippingMessage:"Env\xEDo"};_t["es-es"]=h5;const v5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-us"]=v5;const y5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-sg"]=y5;const b5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-nz"]=b5;const w5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-jp"]=w5;const T5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-in"]=T5;const E5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:",vatIncWithShipping:"(inc. VAT plus {{{shippingMessage}}})",vatExWithShipping:"(ex. VAT plus {{{shippingMessage}}})",shippingMessage:"Shipping"};_t["en-ie"]=E5;const S5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-gb"]=S5;const P5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-ca"]=P5;const C5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>As low as </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> per piece </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> with code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Just",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Price </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} off",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Base Price",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/ea</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"included","priceForQtyUnits.subtemplate":"for {{quantity}} units",priceForQtyForSingleUnit:"for {{quantity}} unit",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / unit </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / package </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / recipient </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for only </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} from </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} starting at </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inc. VAT)",vatEx:"(ex. VAT)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"You saved {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"original price:",salePrice:"current sale price:"};_t["en-au"]=C5;const I5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Schon ab </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> pro St\xFCck </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> mit dem Code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Nur",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Preis </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"-{{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Grundpreis",plusOrMinusPerUnit:"<span class='swan-pricing'><span class='swan-pricing-offer'>je </span>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inklusive","priceForQtyUnits.subtemplate":"f\xFCr {{quantity}} St\xFCck",priceForQtyForSingleUnit:"f\xFCr {{quantity}} St\xFCck",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/St\xFCck </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/Packung </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/Empf\xE4nger </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} f\xFCr nur </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} f\xFCr",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} schon ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. MwSt.)",vatEx:"(exkl. MwSt.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"So viel haben Sie gespart: {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"Alter Preis:",salePrice:"Neuer reduzierter Preis:",vatIncWithShipping:"(inkl. MwSt. zzgl. {{{shippingMessage}}})",vatExWithShipping:"(zzgl. MwSt. zzgl. {{{shippingMessage}}})",shippingMessage:"Lieferung"};_t["de-de"]=I5;const x5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Schon ab </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> pro St\xFCck </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> mit dem Code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Nur",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Preis </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"-{{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Grundpreis",plusOrMinusPerUnit:"<span class='swan-pricing'><span class='swan-pricing-offer'>je </span>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inklusive","priceForQtyUnits.subtemplate":"f\xFCr {{quantity}} St\xFCck",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / St\xFCck </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/Packung </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / Empf\xE4nger </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} f\xFCr nur </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} f\xFCr",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} schon ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. MwSt.)",vatEx:"(exkl. MwSt.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"So viel haben Sie gespart: {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"Alter Preis:",salePrice:"Neuer reduzierter Preis:"};_t["de-ch"]=x5;const _5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Schon ab </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> pro St\xFCck </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> mit dem Code </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Nur",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Preis </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"-{{percent}}",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Grundpreis",plusOrMinusPerUnit:"<span class='swan-pricing'><span class='swan-pricing-offer'>je </span>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inklusive","priceForQtyUnits.subtemplate":"f\xFCr {{quantity}} St\xFCck",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / St\xFCck </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/Packung </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> / Empf\xE4nger </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} f\xFCr nur </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} f\xFCr",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} schon ab </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. MwSt.)",vatEx:"(exkl. MwSt.)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"So viel haben Sie gespart: {{amount}}",rangePrice:"<span class='swan-pricing'>{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"Alter Preis:",salePrice:"Neuer reduzierter Preis:"};_t["de-at"]=_5;const k5={rawPrice:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",asLowAsPricePerPiece:"<span class='swan-pricing'><span class='swan-pricing-offer'>Fra kun </span>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'> pr. styk </span>{{{vatMessage}}}</span>",couponCallout:"<span class='swan-pricing'>{{{justMessage}}} {{{discountPrice}}}<span class='swan-pricing-offer'> med rabatkoden </span>{{{couponCode}}} {{{vatMessage}}}</span>","couponCallout.subtemplate":"Kun",labeledPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>Pris </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",percentOff:"<span class='swan-pricing'>{{{percentOff}}}</span>","percentOff.subtemplate":"{{percent}} rabat",plusOrMinus:"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinus.subtemplate":"Basispris",plusOrMinusPerUnit:"<span class='swan-pricing'>{{{plusOrMinus}}}<span class='swan-pricing-offer'>/stk.</span></span>","plusOrMinusPerUnit.base":"<span class='swan-pricing'>{{{plusOrMinus}}}</span>","plusOrMinusPerUnit.subtemplate":"inkluderet","priceForQtyUnits.subtemplate":"for {{quantity}} styk",priceForQtyForSingleUnit:"for {{quantity}} styk",priceForQtyUnits:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}} {{{forQtyUnits}}} {{{vatMessage}}}</span>",pricePerUnit:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/stk. </span>{{{vatMessage}}}</span>",pricePerPackage:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/pakke </span>{{{vatMessage}}}</span>",pricePerRecipient:"<span class='swan-pricing'>{{{comparativePriceListDiscount}}}<span class='swan-pricing-offer'>/modtager </span></span>",qtyForOnly:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} for kun </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyForPrice:"{{qtyFor}} {{price}} {{vatText}}","qtyForPrice.subtemplate":"{{quantity}} for",qtyFromPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} fra </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",qtyStartingAtPrice:"<span class='swan-pricing'><span class='swan-pricing-offer'>{{quantity}} stk. fra </span>{{{comparativePriceListDiscount}}} {{{vatMessage}}}</span>",vatInc:"(inkl. moms)",vatEx:"(ekskl. moms)",vatMessage:"<span class='swan-pricing'>{{{vatMessage}}}</span>",youSaved:"<span class='swan-pricing'>{{{youSaved}}}</span>","youSaved.subtemplate":"Du har sparet {{amount}}",rangePrice:"<span class='swan-pricing'>
32{{{comparativeRangePriceListDiscount}}} {{{vatMessage}}}</span>",originalPrice:"normalpris:",salePrice:"nuv\xE6rende tilbudspris:",vatIncWithShipping:"(inkl. moms plus {{{shippingMessage}}})",vatExWithShipping:"(ekskl. moms plus {{{shippingMessage}}})",shippingMessage:"Forsendelse"};_t["da-dk"]=k5;const M5="no-locale",O5=(e,t)=>_t[t.toLowerCase()]?_t[t.toLowerCase()][e]:_t[M5][e];er.localized=O5;var ys={},nu={};Object.defineProperty(nu,"__esModule",{value:!0}),nu.getHost=void 0;var A5=Wa;const l1="https://livesite.jetstream.vpsvc.com/",$5=async(e,t)=>{let r;try{const i=await(await fetch(l1)).json();r=i.tenant[t]&&i.tenant[t].sites;for(const a in r)if(r[a].primaryLanguage===e||r[a].supportedLanguages.includes(e))return"https://".concat(r[a].canonicalDomain);throw new Error("Canonical domain not found for tenant ".concat(t," and ").concat(e))}catch(n){throw A5.logger.error("The request for tenant ".concat(t," and ").concat(e," to url: ").concat(l1,". Returned error ").concat(n.stack),{contextData:{stack:n.stack,culture:e,tenant:t}}),n}};nu.getHost=$5,Object.defineProperty(ys,"__esModule",{value:!0}),ys.getShippingUrl=D5,ys.getUrl=N5,ys.name=void 0;var Qp=at,R5=nu;ys.name="url";async function N5(e,t,r){const n=Qp.contextService.getCulture(e),i=Qp.contextService.getTenant(e);if(!i)throw new Error("tenant not set");const o=await Qp.contextService.getUrlClient(e).getPageSlug(t,n,i);if(o==="#")return o;if(r){const s=await(0,R5.getHost)(n,i);return"".concat(s).concat(o)}return o}function D5(e){const t={promotique:"https://www.promotique.de/lieferung",vistaprint:"https://www.vistaprint.de/lieferung"};let r=Qp.contextService.getTenant(e);if(r===void 0&&(r="vistaprint"),r=r.toLowerCase(),!t[r])throw new Error("tenant not supported");return"".concat(t[r])}Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.getVatHtml=B5,Mo.getVatText=u1;var _y=at,ky=er,L5=ys;const U5="<span class='swan-short-tax-message'>{{vatText}}</span>",F5="<span class='swan-short-tax-message'>{{vatTextWithShipping}}</span>";function u1(e,t){const r=e?"vatInc":"vatEx";return My(t)?"":(0,ky.localized)(r,t)}async function B5(e,t,r,n){if(My(t))return"";if(j5(t)&&!r)return await q5(e,t,n);const i={vatText:u1(e,t)};return _y.mustacheService.replace(U5,i)}async function q5(e,t,r){const n=await z5(t,r),i={vatTextWithShipping:V5(e,t),shippingMessage:n};return _y.mustacheService.replace(F5,i)}async function z5(e,t){var r;const n=(0,ky.localized)("shippingMessage",e),i=(0,L5.getShippingUrl)(t),a=(r=t.context)!==null&&r!==void 0&&(r=r.environments)!==null&&r!==void 0&&r.isTile?"<span class='swan-standard-tile-separately-clickable-contents'><a target='_blank' href='".concat(i,"'>{{shippingMessage}}</a></span>"):"<a target='_blank' href='".concat(i,"'>{{shippingMessage}}</a>");return _y.mustacheService.replace(a,{shippingMessage:n})}function V5(e,t){const r=e?"vatIncWithShipping":"vatExWithShipping";return My(t)?"":(0,ky.localized)(r,t)}const d1={"en-in":!0,"en-au":!0,"en-sg":!0,"en-nz":!0,"en-jp":!0,"ja-jp":!0,"en-us":!0,"es-us":!0,"en-ca":!0,"fr-ca":!0};function My(e){const t=e.replace("_","-").toLowerCase();return d1[t]?d1[t]:!1}const p1={"de-de":!0};function j5(e){const t=e.replace("_","-").toLowerCase();return p1[t]?p1[t]:!1}
32Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.ComparativeDisplayType=void 0,Nr.comparativePriceFilter=Y5,Nr.isPriceDiscounted=K5,Nr.shouldShowComparative=Z5;var f1=at,H5=Mo,G5=Wa,g1=er;const W5="<span class='swan-list-price'>{{listPrice}}</span>",Q5="<span class='swan-pricing-comparison'><span class='swan-list-price'><span class='swan-visually-hidden'>{{originalPrice}}</span>{{listPrice}}</span> <span class='swan-discount-price'><span class='swan-visually-hidden'>{{salePrice}}</span>{{discountPrice}}</span></span>";let Zp=Nr.ComparativeDisplayType=(function(e){return e.Always="Always",e.Never="Never",e.Legacy="Legacy",e.CustomerFriendly="CustomerFriendly",e})({});function Z5(e,t,r){switch(r){case Zp.Always:return!0;case Zp.Never:return!1;case Zp.Legacy:G5.logger.info("Incorrect Comparative Display Type, showing comparison");case Zp.CustomerFriendly:return e!==t&&e>0&&t>=0&&t<e}}function K5(e,t){return e!==t&&e>0&&t>=0&&t<e}async function Y5(e,t,r,n,i,a,o,s,c){const l={},u={};let d;t!==r?(l.comparativePriceListDiscount=Q5,d=f1.formatterService.formatPrice({culture:e,currency:n,price:r,minimumFractionDigits:i}),u.originalPrice=(0,g1.localized)("originalPrice",e),u.salePrice=(0,g1.localized)("salePrice",e)):l.comparativePriceListDiscount=W5;const p=f1.formatterService.formatPrice({culture:e,currency:n,price:t,minimumFractionDigits:i});return u.discountPrice=d,u.listPrice=p,u.vatInc=a,o||(u.vatMessage=await(0,H5.getVatHtml)(a,e,s,c)),{htmlTemplates:l,mustacheVariables:u}}Object.defineProperty(ps,"__esModule",{value:!0}),ps.filter=t9,ps.name=void 0;var m1=at,X5=Nr,J5=er;const e9=ps.name="asLowAsPricePerPiece";async function t9(e,t,r,n,i,a,o){const s=this,c=m1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,X5.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,J5.localized)(e9,c);return m1.mustacheService.replace(d,u,l)}var bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.filter=a9,bs.name=void 0;var h1=at,r9=Nr,n9=er;const i9=bs.name="labeledPrice";async function a9(e,t,r,n,i,a,o){const s=this,c=h1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,r9.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,n9.localized)(i9,c);return h1.mustacheService.replace(d,u,l)}var ws={};Object.defineProperty(ws,"__esModule",{value:!0}),ws.filter=l9,ws.name=void 0;var o9=Nr,v1=at,s9=er;const c9=ws.name="pricePerUnit";async function l9(e,t,r,n,i,a,o){const s=this,c=v1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,o9.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,s9.localized)(c9,c);return v1.mustacheService.replace(d,u,l)}var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.filter=f9,Ts.name=void 0;var u9=Nr,y1=at,d9=er;const p9=Ts.name="pricePerPackage";async function f9(e,t,r,n,i,a,o){const s=this,c=y1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,u9.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,d9.localized)(p9,c);return y1.mustacheService.replace(d,u,l)}var Es={};Object.defineProperty(Es,"__esModule",{value:!0}),Es.filter=v9,Es.name=void 0;var g9=Nr,b1=at,m9=er;const h9=Es.name="pricePerRecipient";async function v9(e,t,r,n,i,a,o){const s=this,c=b1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,g9.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,m9.localized)(h9,c);return b1.mustacheService.replace(d,u,l)}var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.filter=T9,Ss.name=void 0;var Oy=at,y9=Nr,b9=er;const w9=Ss.name="qtyStartingAtPrice";async function T9(e,t,r,n,i,a,o,s){const c=this,l=Oy.contextService.getCulture(c),{htmlTemplates:u,mustacheVariables:d}=await(0,y9.comparativePriceFilter)(l,t,r,n,i,a,o,s,c),p=Oy.formatterService.formatQuantity(e,l);d.quantity=p;const g=(0,b9.localized)(w9,l);return Oy.mustacheService.replace(g,d,u)}var Ps={};Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.filter=C9,Ps.name=void 0;var Ay=at,E9=Nr,S9=er;const P9=Ps.name="qtyForOnly";async function C9(e,t,r,n,i,a,o,s){const c=this,l=Ay.contextService.getCulture(c),{htmlTemplates:u,mustacheVariables:d}=await(0,E9.comparativePriceFilter)(l,t,r,n,i,a,o,s,c),p=Ay.formatterService.formatQuantity(e,l);d.quantity=p;const g=(0,S9.localized)(P9,l);return Ay.mustacheService.replace(g,d,u)}var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.filter=_9,Cs.name=void 0;var $y=at,I9=Nr,Ry=er;const w1=Cs.name="priceForQtyUnits",x9="<span class='pricing-for-units-callout'>{{forQtyUnits}}</span>";async function _9(e,t,r,n,i,a,o,s){const c=this,l=$y.contextService.getCulture(c),{htmlTemplates:u,mustacheVariables:d}=await(0,I9.comparativePriceFilter)(l,t,r,n,i,a,o,s,c),p=$y.formatterService.formatQuantity(e,l);d.quantity=p,u.forQtyUnits=x9,d.forQtyUnits=e===1?(0,Ry.localized)("priceForQtyForSingleUnit",l):(0,Ry.localized)("".concat(w1,".subtemplate"),l);const g=(0,Ry.localized)(w1,l);return $y.mustacheService.replace(g,d,u)}var Is={};Object.defineProperty(Is,"__esModule",{value:!0}),Is.filter=M9,Is.name=void 0;var Ny=at,T1=er;const E1=Is.name="percentOff",k9="<span class='swan-pricing-offer'>{{percentOff}}</span>";async function M9(e){const t=Ny.contextService.getCulture(this),n={percent:Ny.formatterService.formatPercentage(e,t),percentOff:(0,T1.localized)("".concat(E1,".subtemplate"),t)},i=(0,T1.localized)(E1,t),a={percentOff:k9};return Ny.mustacheService.replace(i,n,a)}var xs={};Object.defineProperty(xs,"__esModule",{value:!0}),xs.filter=A9,xs.name=void 0;var Dy=at,S1=er;const P1=xs.name="youSaved",O9="<span class='you-saved-price'>{{youSavedText}}</span>";async function A9(e,t,r){const n=Dy.contextService.getCulture(this),i=Dy.formatterService.formatPrice({currency:t,minimumFractionDigits:r,culture:n,price:e}),a={youSaved:O9},o={amount:i};o.youSavedText=(0,S1.localized)("".concat(P1,".subtemplate"),n);const s=(0,S1.localized)(P1,n);return Dy.mustacheService.replace(s,o,a)}var _s={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.ZeroDisplayType=void 0,Oo.getZeroDisplayMessage=R9;var C1=er,I1=at;let Ly=Oo.ZeroDisplayType=(function(e){return e.Zero="Zero",e.BasePrice="BasePrice",e.Included="Included",e.Legacy="Legacy",e})({});const $9="<span class='swan-pricing'><span class='swan-list-price'>{{ value }}</span></span>";function R9(e,t,r,n){let i;switch(n){case Ly.Zero:i=I1.formatterService.formatPrice({culture:e,currency:t,price:0,minimumFractionDigits:r}),i="+".concat(i);break;case Ly.BasePrice:i=(0,C1.localized)("plusOrMinus.subtemplate",e);break;case Ly.Included:i=(0,C1.localized)("plusOrMinusPerUnit.subtemplate",e);break;default:return Promise.resolve("0")}return I1.mustacheService.replace($9,{value:i},{})}Object.defineProperty(_s,"__esModule",{value:!0}),_s.filter=F9,_s.name=void 0;var iu=Nr,Kp=at,Yp=er,x1=Oo;const _1=_s.name="plusOrMinus",N9="<span class='swan-list-price'>{{plusOrMinusListPrice}}</span>",D9="<span class='swan-list-price'>{{plusOrMinusDiscountPrice}}</span>",L9="<span class='swan-discount-price'>{{plusOrMinusDiscountPrice}}</span>",U9="<span class='swan-pricing-comparison'><span class='swan-list-price'><span class='swan-visually-hidden'>{{originalPrice}}</span>{{plusOrMinusListPrice}}</span> <span class='swan-discount-price'><span class='swan-visually-hidden'>{{salePrice}}</span>{{plusOrMinusDiscountPrice}}</span></span>";async function F9(e,t,r,n,i,a){const o=Kp.contextService.getCulture(this);let s;e!==0?s=Kp.formatterService.formatPriceDifference({culture:o,currency:r,price:e,minimumFractionDigits:n}):s=(0,Yp.localized)("".concat(_1,".subtemplate"),o);const c={plusOrMinusListPrice:s},l=(0,Yp.localized)(_1,o),u={plusOrMinus:N9};if(a===void 0&&(a=iu.ComparativeDisplayType.CustomerFriendly),a===iu.ComparativeDisplayType.Legacy&&(a=iu.ComparativeDisplayType.Always),t!==e){(0,iu.shouldShowComparative)(e,t,a)?(u.plusOrMinus=U9,c.originalPrice=(0,Yp.localized)("originalPrice",o),c.salePrice=(0,Yp.localized)("salePrice",o)):(0,iu.isPriceDiscounted)(e,t)?u.plusOrMinus=L9:u.plusOrMinus=D9;const d=Kp.formatterService.formatPriceDifference({culture:o,currency:r,price:t,minimumFractionDigits:n});c.plusOrMinusDiscountPrice=d}return e===0&&t===0&&i!==void 0&&i!==x1.ZeroDisplayType.Legacy?(0,x1.getZeroDisplayMessage)(o,r,n,i):K
32p.mustacheService.replace(l,c,u)}var ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.filter=j9,ks.name=void 0;var Xp=Nr,au=at,ou=er,k1=Oo;const Uy=ks.name="plusOrMinusPerUnit",B9="<span class='swan-list-price'>{{plusOrMinusListPrice}}</span>",q9="<span class='swan-discount-price'>{{plusOrMinusDiscountPrice}}</span>",z9="<span class='swan-list-price'>{{plusOrMinusDiscountPrice}}</span>",V9="<span class='swan-pricing-comparison'><span class='swan-list-price'><span class='swan-visually-hidden'>{{originalPrice}}</span>{{plusOrMinusListPrice}}</span> <span class='swan-discount-price'><span class='swan-visually-hidden'>{{salePrice}}</span>{{plusOrMinusDiscountPrice}}</span></span>";async function j9(e,t,r,n,i,a){const o=au.contextService.getCulture(this);let s=(0,ou.localized)(Uy,o),c;e!==0?c=au.formatterService.formatPriceDifference({culture:o,currency:r,price:e,minimumFractionDigits:n}):t!==0?c=au.formatterService.formatPriceDifference({culture:o,currency:r,price:e,minimumFractionDigits:n}):(s=(0,ou.localized)("".concat(Uy,".base"),o),c=(0,ou.localized)("".concat(Uy,".subtemplate"),o));const l={plusOrMinusListPrice:c},u={plusOrMinus:B9};if((a===void 0||a===Xp.ComparativeDisplayType.Legacy)&&(a=Xp.ComparativeDisplayType.Never),t!==e){(0,Xp.shouldShowComparative)(e,t,a)?(u.plusOrMinus=V9,l.originalPrice=(0,ou.localized)("originalPrice",o),l.salePrice=(0,ou.localized)("salePrice",o)):(0,Xp.isPriceDiscounted)(e,t)?u.plusOrMinus=q9:u.plusOrMinus=z9;const d=au.formatterService.formatPriceDifference({culture:o,currency:r,price:t,minimumFractionDigits:n});l.plusOrMinusDiscountPrice=d}return e===0&&t===0&&i!==void 0&&i!==k1.ZeroDisplayType.Legacy?(0,k1.getZeroDisplayMessage)(o,r,n,i):au.mustacheService.replace(s,l,u)}var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.filter=Q9,Ms.name=void 0;var M1=at,H9=er,G9=Nr;const W9=Ms.name="rawPrice";async function Q9(e,t,r,n,i,a,o){const s=this,c=M1.contextService.getCulture(s),{htmlTemplates:l,mustacheVariables:u}=await(0,G9.comparativePriceFilter)(c,e,t,r,n,i,a,o,s),d=(0,H9.localized)(W9,c);return M1.mustacheService.replace(d,u,l)}var Os={};Object.defineProperty(Os,"__esModule",{value:!0}),Os.filter=J9,Os.name=void 0;var Fy=at,Z9=Mo,O1=er;const A1=Os.name="couponCallout",K9="<span class='swan-discount-price'>{{discountPrice}}</span>",Y9="<span class='swan-promo-code'>{{couponCode}}</span>",X9="<span class='swan-discount-price'>{{justMessageText}}</span>";async function J9(e,t,r,n,i,a,o){const s=this,c=Fy.contextService.getCulture(s),l=Fy.formatterService.formatPrice({currency:r,minimumFractionDigits:n,culture:c,price:t}),u={couponCode:Y9,discountPrice:K9,justMessage:X9},d=(0,O1.localized)(A1,c),p={discountPrice:l,couponCode:e};return p.justMessageText=(0,O1.localized)("".concat(A1,".subtemplate"),c),a||(p.vatMessage=await(0,Z9.getVatHtml)(i,c,o,s)),Fy.mustacheService.replace(d,p,u)}var As={};Object.defineProperty(As,"__esModule",{value:!0}),As.filter=tH,As.name=void 0;var su=at,eH=Mo,$1=er;const R1=As.name="qtyForPrice";async function tH(e,t,r,n,i,a,o){const s=su.contextService.getCulture(this),l={quantity:su.formatterService.formatQuantity(e,s)};if(l.qtyFor=(0,$1.localized)("".concat(R1,".subtemplate"),s),t!==r){const d=su.formatterService.formatPrice({culture:s,currency:n,price:r,minimumFractionDigits:i});l.price=d}else{const d=su.formatterService.formatPrice({culture:s,currency:n,price:t,minimumFractionDigits:i});l.price=d}o||(l.vatText=await(0,eH.getVatText)(a,s));const u=(0,$1.localized)(R1,s);return su.mustacheService.replace(u,l)}var $s={};Object.defineProperty($s,"__esModule",{value:!0}),$s.filter=aH,$s.name=void 0;var By=at,rH=Nr,nH=er;const iH=$s.name="qtyFromPrice";async function aH(e,t,r,n,i,a,o,s){const c=this,l=By.contextService.getCulture(c),{htmlTemplates:u,mustacheVariables:d}=await(0,rH.comparativePriceFilter)(l,t,r,n,i,a,o,s,c),p=By.formatterService.formatQuantity(e,l);d.quantity=p;const g=(0,nH.localized)(iH,l);return By.mustacheService.replace(g,d,u)}var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.filter=lH,Rs.name=void 0;var N1=at,oH=Mo,sH=er;const cH=Rs.name="vatMessage";async function lH(e,t){const r=this,n=N1.contextService.getCulture(r),a={vatMessage:await(0,oH.getVatHtml)(e,n,t,r)},o=(0,sH.localized)(cH,n);return N1.mustacheService.replace(o,a)}var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.filter=gH,Ns.name=void 0;var Ac=at,uH=Mo,qy=er;const dH=Ns.name="rangePrice",pH="<span class='swan-list-price'>{{lowestListPrice}} \u2014 {{highestListPrice}}</span>",fH="<span class='swan-pricing-comparison'><span class='list-price-wrapper' aria-hidden='true'><span class='swan-list-price'><span class='swan-visually-hidden'>{{originalPrice}}</span>{{lowestListPrice}}</span> \u2014 <span class='swan-list-price'>{{highestListPrice}}</span></span> <span class='swan-discount-price'><span class='swan-visually-hidden'>{{salePrice}}</span>{{lowestDiscountPrice}} \u2014 {{highestDiscountPrice}}</span></span>";async function gH(e,t,r,n,i,a,o,s,c){const l=this,u=Ac.contextService.getCulture(l),d={},p={};let g,m;
32e!==r||t!==n?(d.comparativeRangePriceListDiscount=fH,g=Ac.formatterService.formatPrice({culture:u,currency:i,price:r,minimumFractionDigits:a}),m=Ac.formatterService.formatPrice({culture:u,currency:i,price:n,minimumFractionDigits:a}),p.originalPrice=(0,qy.localized)("originalPrice",u),p.salePrice=(0,qy.localized)("salePrice",u)):d.comparativeRangePriceListDiscount=pH;const v=Ac.formatterService.formatPrice({culture:u,currency:i,price:e,minimumFractionDigits:a}),h=Ac.formatterService.formatPrice({culture:u,currency:i,price:t,minimumFractionDigits:a});p.lowestListPrice=v,p.highestListPrice=h,p.lowestDiscountPrice=g,p.highestDiscountPrice=m,p.vatInc=o,s||(p.vatMessage=await(0,uH.getVatHtml)(o,u,c,l));const P=(0,qy.localized)(dH,u);return Ac.mustacheService.replace(P,p,d)}var cu={};Object.defineProperty(cu,"__esModule",{value:!0}),cu.filter=hH,cu.name=void 0;var mH=ys;cu.name="url";async function hH(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return await(0,mH.getUrl)(this,e,t)}var lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.filter=bH,lu.name=void 0;var D1=at,vH=nu;const yH=lu.name="legal";async function bH(e){const t=D1.contextService.getCulture(this),r=D1.contextService.getTenant(this);if(!r)throw new Error("tenant not set");if(!t)throw new Error("culture not set");try{const n=await(0,vH.getHost)(t,r);return"".concat(n,"/").concat(yH,"/").concat(e)}catch{return"#"}}var uu={},$c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.getContactUsPage=$c.getCarePhoneData=void 0;var L1=Wa;const Jp="https://channel-provider-service.care.vpsvc.com",wH=async(e,t)=>{try{const r="".concat(Jp,"/v2/phone/?tenant=").concat(t.toLowerCase(),"&locale=").concat(e.toLowerCase(),"&requestor=token-engine");return(await fetch(r)).json()}catch(r){throw L1.logger.error("The request for tenant ".concat(t," and ").concat(e," to url: ").concat(Jp,". Returned error ").concat(r.stack),{contextData:{stack:r.stack,culture:e,tenant:t}}),r}};$c.getCarePhoneData=wH;const TH=async(e,t)=>{try{const r="".concat(Jp,"/v2/contact_us_page?tenant=").concat(t.toLowerCase(),"&locale=").concat(e.toLowerCase(),"&requestor=token-engine");return(await fetch(r)).json()}catch(r){throw L1.logger.error("The request for tenant ".concat(t," and ").concat(e," to url: ").concat(Jp,". Returned error ").concat(r.stack),{contextData:{stack:r.stack,culture:e,tenant:t}}),r}};$c.getContactUsPage=TH,Object.defineProperty(uu,"__esModule",{value:!0}),uu.filter=EH,uu.name=void 0;var U1=at,F1=$c;uu.name="care";async function EH(e){const t=U1.contextService.getCulture(this),r=U1.contextService.getTenant(this);if(!r)throw new Error("tenant not set");if(!t)throw new Error("culture not set");try{if(e==="CONTACT_US_PAGE")return(await(0,F1.getContactUsPage)(t,r)).new_platform_path;{const n=await(0,F1.getCarePhoneData)(t,r);switch(e){case"PHONE":return n.phoneNumber;case"PHONE_SCHEDULE":return n.shortFormatSchedule.length>1?n.shortFormatSchedule.join(", "):n.shortFormatSchedule.shift();default:return""}}}catch{return""}}var du={};Object.defineProperty(du,"__esModule",{value:!0}),du.filter=SH,du.name=void 0,du.name="allcaps";async function SH(e){return'<span class="swan-text-all-caps">'.concat(e,"</span>")}var PH=$r;Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=void 0;var ef=PH(ds),B1=dr(ps),q1=dr(bs),z1=dr(ws),V1=dr(Ts),j1=dr(Es),H1=dr(Ss),G1=dr(Ps),W1=dr(Cs),Q1=dr(Is),Z1=dr(xs),K1=dr(_s),Y1=dr(ks),X1=dr(Ms),J1=dr(Os),ex=dr(As),tx=dr($s),rx=dr(Rs),nx=dr(Ns),ix=dr(cu),ax=dr(lu),ox=dr(uu),sx=dr(du),Zt=at,zy=Wa;function cx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(cx=function(n){return n?r:t})(e)}function dr(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=cx(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
32t%2?lx(Object(r),!0).forEach(function(n){(0,ef.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}let IH=class{constructor(t,r){(0,ef.default)(this,"urlClient",void 0),(0,ef.default)(this,"culture",void 0),(0,ef.default)(this,"tenant",void 0),t&&(this.urlClient=Zt.urlClientFactory.create(),this.culture=t,Zt.engine.registerFilter(B1.name,B1.filter),Zt.engine.registerFilter(q1.name,q1.filter),Zt.engine.registerFilter(z1.name,z1.filter),Zt.engine.registerFilter(V1.name,V1.filter),Zt.engine.registerFilter(j1.name,j1.filter),Zt.engine.registerFilter(H1.name,H1.filter),Zt.engine.registerFilter(G1.name,G1.filter),Zt.engine.registerFilter(W1.name,W1.filter),Zt.engine.registerFilter(Q1.name,Q1.filter),Zt.engine.registerFilter(Z1.name,Z1.filter),Zt.engine.registerFilter(K1.name,K1.filter),Zt.engine.registerFilter(Y1.name,Y1.filter),Zt.engine.registerFilter(X1.name,X1.filter),Zt.engine.registerFilter(J1.name,J1.filter),Zt.engine.registerFilter(ex.name,ex.filter),Zt.engine.registerFilter(tx.name,tx.filter),Zt.engine.registerFilter(rx.name,rx.filter),Zt.engine.registerFilter(nx.name,nx.filter),Zt.engine.registerFilter(sx.name,sx.filter),r&&(this.tenant=r,Zt.engine.registerFilter(ix.name,ix.filter),Zt.engine.registerFilter(ax.name,ax.filter),Zt.engine.registerFilter(ox.name,ox.filter)))}async render(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{if(!this.culture)throw new Error("culture not set");return await Zt.engine.parseAndRender(t,CH({culture:this.culture,tenant:this.tenant,urlClient:this.urlClient},r))}catch(n){throw zy.logger.error(n,{contextData:{stack:n.stack,culture:this.culture,tenant:this.tenant}}),new Error(n)}}replace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{return Zt.mustacheService.replace(t,r)}catch(n){throw zy.logger.error(n,{contextData:{stack:n.stack,culture:this.culture,tenant:this.tenant}}),new Error(n)}}async fillUrlCache(){try{if(!this.culture)throw new Error("culture not set");if(!this.tenant)throw new Error("tenant not set");await this.urlClient.fillUrlCache(this.culture,this.tenant)}catch(t){throw zy.logger.error("fillUrlCache failed for locale ".concat(this.culture," and tenant ").concat(this.tenant),{contextData:{culture:this.culture,stack:t.stack,error:t,tenant:this.tenant}}),new Error("fillUrlCache failed for locale ".concat(this.culture," and tenant ").concat(this.tenant,": ").concat(t))}}};Vl.default=IH;var tf={},Rc={},pu={},rf={},nf={},fu={},Si={};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=void 0;class xH{getValidationErrors(t){const r=[];try{this.validateParameters(t)}catch(n){n.forEach(i=>r.push(i))}return r.join()}}Si.default=xH;var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.getErrors=LH,ni.validate=void 0;function _H(e,t){return()=>{if(!(e&&typeof e=="string"&&e.length===3))return"validation failed: ".concat(t," invalid value, needs a string with length 3, current value: ").concat(e)}}function kH(e,t){return()=>{if(!(e!==void 0&&typeof e=="number"&&!isNaN(e)&&e>0))return"validation failed: ".concat(t," invalid value, needs a number greater than 0, current value: ").concat(e)}}function MH(e,t){return()=>{if(!(e!==void 0&&typeof e=="number"&&!isNaN(e)&&e>=0))return"validation failed: ".concat(t," invalid value, needs a number greater or equal than 0, current value: ").concat(e)}}function OH(e,t){return()=>{if(!(e!==void 0&&typeof e=="number"&&!isNaN(e)))return"validation failed: ".concat(t," invalid value, needs a decimal, current value: ").concat(e)}}function AH(e,t){return()=>{if(!(e!==void 0&&typeof e=="number"&&Number.isInteger(e)&&!isNaN(e)&&e>0))return"validation failed: ".concat(t," invalid value, needs an integer greater than 0, current value: ").concat(e)}}function $H(e,t){return()=>{if(!(e!==void 0&&typeof e=="number"&&Number.isInteger(e)&&!isNaN(e)))return"validation failed: ".concat(t," invalid value, needs integer greater equals to 0, current value: ").concat(e)}}function RH(e,t){return()=>{if(!(e||typeof e!="string"))return"validation failed: ".concat(t," invalid value, needs a string, current value: ").concat(e)}}function NH(e,t){return()=>{if(!(e!==void 0&&typeof e=="boolean"))return"validation failed: ".concat(t," invalid value, needs a boolean, current value: ").concat(e)}}function DH(e,t){return()=>{if(!(e===void 0||typeof e=="boolean"))return"validation failed: ".concat(t," invalid value, needs a boolean or undefined, current value: ").concat(e)}}function LH(e){const t=[];return e.forEach(r=>{const n=r();
32n&&t.push(n)}),t}ni.validate={isCurrency:_H,isDecimalPositive:kH,isDecimal:OH,isNotNegativeDecimal:MH,isIntegerPositive:AH,isInteger:$H,isString:RH,isBoolean:NH,isBooleanOrUndefined:DH};var UH=$r;Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0;var FH=UH(Si),va=ni;class BH extends FH.default{validateParameters(t){const r=(0,va.getErrors)([va.validate.isIntegerPositive(t.quantity,"quantity"),va.validate.isNotNegativeDecimal(t.listPrice,"listPrice"),va.validate.isNotNegativeDecimal(t.discountPrice,"discountPrice"),va.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),va.validate.isString(t.culture,"culture"),va.validate.isCurrency(t.currency,"currency"),va.validate.isBoolean(t.vatInc,"vatInc"),va.validate.isBooleanOrUndefined(t.hideVatMessage,"hideVatMessage"),va.validate.isBooleanOrUndefined(t.hideShippingMessageInVatMessage,"hideShippingMessageInVatMessage")]);if(r.length>0)throw r}generateToken(t,r){const n="".concat(t.hideVatMessage?"".concat(t.hideVatMessage):"".concat(!1)),i="".concat(t.hideShippingMessageInVatMessage?"".concat(t.hideShippingMessageInVatMessage):"".concat(!1));return"{{ ".concat(t.quantity," | ").concat(r,": ").concat(t.listPrice,", ").concat(t.discountPrice,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", ").concat(t.vatInc,", ").concat(n,", ").concat(i," }}")}}fu.default=BH;var gu={},qH=$r;Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var zH=qH(Si),Xa=ni;class VH extends zH.default{validateParameters(t){const r=(0,Xa.getErrors)([Xa.validate.isNotNegativeDecimal(t.listPrice,"listPrice"),Xa.validate.isNotNegativeDecimal(t.discountPrice,"discountPrice"),Xa.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),Xa.validate.isString(t.culture,"culture"),Xa.validate.isCurrency(t.currency,"currency"),Xa.validate.isBoolean(t.vatInc,"vatInc"),Xa.validate.isBooleanOrUndefined(t.hideVatMessage,"hideVatMessage"),Xa.validate.isBooleanOrUndefined(t.hideShippingMessageInVatMessage,"hideShippingMessageInVatMessage")]);if(r.length>0)throw r}generateToken(t,r){const n="".concat(t.hideVatMessage?"".concat(t.hideVatMessage):"".concat(!1)),i="".concat(t.hideShippingMessageInVatMessage?"".concat(t.hideShippingMessageInVatMessage):"".concat(!1));return"{{ ".concat(t.listPrice," | ").concat(r,": ").concat(t.discountPrice,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", ").concat(t.vatInc,", ").concat(n,", ").concat(i," }}")}}gu.default=VH;var mu={},jH=$r;Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0;var HH=jH(Si),Fi=ni;class GH extends HH.default{validateParameters(t){const r=(0,Fi.getErrors)([Fi.validate.isNotNegativeDecimal(t.lowestListPrice,"lowestListPrice"),Fi.validate.isNotNegativeDecimal(t.highestListPrice,"highestListPrice"),Fi.validate.isNotNegativeDecimal(t.lowestDiscountPrice,"lowestDiscountPrice"),Fi.validate.isNotNegativeDecimal(t.highestDiscountPrice,"highestDiscountPrice"),Fi.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),Fi.validate.isString(t.culture,"culture"),Fi.validate.isCurrency(t.currency,"currency"),Fi.validate.isBoolean(t.vatInc,"vatInc"),Fi.validate.isBooleanOrUndefined(t.hideVatMessage,"hideVatMessage"),Fi.validate.isBooleanOrUndefined(t.hideShippingMessageInVatMessage,"hideShippingMessageInVatMessage")]);if(r.length>0)throw r}generateToken(t,r){const n="".concat(t.hideVatMessage?"".concat(t.hideVatMessage):"".concat(!1)),i="".concat(t.hideShippingMessageInVatMessage?"".concat(t.hideShippingMessageInVatMessage):"".concat(!1));return"{{ ".concat(t.lowestListPrice," | ").concat(r,": ").concat(t.highestListPrice,", ").concat(t.lowestDiscountPrice,", ").concat(t.highestDiscountPrice,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", ").concat(t.vatInc,", ").concat(n,", ").concat(i," }}")}}mu.default=GH;var hu={},WH=$r;Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0;var QH=WH(Si),vu=ni;class ZH extends QH.default{validateParameters(t){const r=(0,vu.getErrors)([vu.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),vu.validate.isString(t.culture,"culture"),vu.validate.isDecimalPositive(t.amountSaved,"amountSaved"),vu.validate.isCurrency(t.currency,"currency")]);if(r.length>0)throw r}generateToken(t,r){return"{{ ".concat(t.amountSaved," | ").concat(r,": '").concat(t.currency,"', ").concat(t.minimumFractionDigits," }}")}}hu.default=ZH;var yu={},KH=$r;
32Object.defineProperty(yu,"__esModule",{value:!0}),yu.default=void 0;var YH=Oo,XH=KH(Si),Nc=ni;class JH extends XH.default{validateParameters(t){const r=(0,Nc.getErrors)([Nc.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),Nc.validate.isString(t.culture,"culture"),Nc.validate.isCurrency(t.currency,"currency"),Nc.validate.isDecimal(t.priceDifference,"priceDifference"),Nc.validate.isDecimal(t.priceDifferenceDiscounted,"priceDifferenceDiscounted")]);if(r.length>0)throw r}generateToken(t,r){const n=t.zeroDisplayType===void 0?YH.ZeroDisplayType.Legacy:t.zeroDisplayType,i=t.comparativeDisplayType!==void 0?", '".concat(t.comparativeDisplayType,"'"):"";return"{{ ".concat(t.priceDifference," | ").concat(r,": ").concat(t.priceDifferenceDiscounted,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", '").concat(n,"'").concat(i," }}")}}yu.default=JH;var bu={},eG=$r;Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0;var tG=eG(Si),Vy=ni;class rG extends tG.default{validateParameters(t){const r=(0,Vy.getErrors)([Vy.validate.isInteger(t.percentageOff,"percentageOff"),Vy.validate.isString(t.culture,"culture")]);if(r.length>0)throw r}generateToken(t,r){return"{{ ".concat(t.percentageOff," | ").concat(r," }}")}}bu.default=rG;var wu={},nG=$r;Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0;var iG=nG(Si),Ja=ni;class aG extends iG.default{validateParameters(t){const r=(0,Ja.getErrors)([Ja.validate.isDecimalPositive(t.unitListPrice,"unitListPrice"),Ja.validate.isDecimalPositive(t.unitDiscountPrice,"unitDiscountPrice"),Ja.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),Ja.validate.isString(t.culture,"culture"),Ja.validate.isCurrency(t.currency,"currency"),Ja.validate.isBoolean(t.vatInc,"vatInc"),Ja.validate.isBooleanOrUndefined(t.hideVatMessage,"hideVatMessage"),Ja.validate.isBooleanOrUndefined(t.hideShippingMessageInVatMessage,"hideShippingMessageInVatMessage")]);if(r.length>0)throw r}generateToken(t,r){const n="".concat(t.hideVatMessage?"".concat(t.hideVatMessage):"".concat(!1)),i="".concat(t.hideShippingMessageInVatMessage?"".concat(t.hideShippingMessageInVatMessage):"".concat(!1));return"{{ ".concat(t.unitListPrice," | ").concat(r,": ").concat(t.unitDiscountPrice,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", ").concat(t.vatInc,", ").concat(n,", ").concat(i," }}")}}wu.default=aG;var Tu={},oG=$r;Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.default=void 0;var sG=oG(Si),eo=ni;class cG extends sG.default{validateParameters(t){const r=(0,eo.getErrors)([eo.validate.isString(t.coupon,"coupon"),eo.validate.isDecimalPositive(t.price,"price"),eo.validate.isInteger(t.minimumFractionDigits,"minimumFractionDigits"),eo.validate.isString(t.culture,"culture"),eo.validate.isCurrency(t.currency,"currency"),eo.validate.isBoolean(t.vatInc,"vatInc"),eo.validate.isBooleanOrUndefined(t.hideVatMessage,"hideVatMessage"),eo.validate.isBooleanOrUndefined(t.hideShippingMessageInVatMessage,"hideShippingMessageInVatMessage")]);if(r.length>0)throw r}generateToken(t,r){const n="".concat(t.hideVatMessage?"".concat(t.hideVatMessage):"".concat(!1)),i="".concat(t.hideShippingMessageInVatMessage?"".concat(t.hideShippingMessageInVatMessage):"".concat(!1));return"{{ '".concat(t.coupon,"' | ").concat(r,": ").concat(t.price,", '").concat(t.currency,"', ").concat(t.minimumFractionDigits,", ").concat(t.vatInc,", ").concat(n,", ").concat(i," }}")}}Tu.default=cG;var Eu={},lG=$r;Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0;var uG=lG(Si),ux=ni;class dG extends uG.default{validateParameters(t){const r=(0,ux.getErrors)([ux.validate.isBoolean(t.vatInc,"vatInc")]);if(r.length>0)throw r}generateToken(t,r){return"{{ ".concat(t.vatInc," | ").concat(r,": ").concat(t.hideShippingMessageInVatMessage," }}")}}Eu.default=dG;var ya=$r;Object.defineProperty(nf,"__esModule",{value:!0}),nf.default=void 0;var ba=ya(ds),pG=ya(fu),fG=ya(gu),gG=ya(mu),mG=ya(hu),hG=ya(yu),vG=ya(bu),yG=ya(wu),bG=ya(Tu),wG=ya(Eu),TG=jr(ps),EG=jr(bs),SG=jr(ws),PG=jr(Ts),CG=jr(Es),IG=jr(Ss),xG=jr(Ps),_G=jr(Cs),kG=jr(Is),MG=jr(xs),OG=jr(_s),AG=jr(ks),$G=jr(Ms),RG=jr(Os),NG=jr(As),DG=jr($s),LG=jr(Rs),UG=jr(Ns);function dx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(dx=function(n){return n?r:t})(e)}
32function jr(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=dx(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}class FG{constructor(){(0,ba.default)(this,"map",void 0),(0,ba.default)(this,"quantityPriceTokenGenerator",void 0),(0,ba.default)(this,"priceTokenGenerator",void 0),(0,ba.default)(this,"rangePriceTokenGenerator",void 0),(0,ba.default)(this,"unitPriceTokenGenerator",void 0),(0,ba.default)(this,"plusOrMinusTokenGenerator",void 0),(0,ba.default)(this,"savingsTokenGenerator",void 0),(0,ba.default)(this,"percentageTokenGenerator",void 0),(0,ba.default)(this,"couponCalloutGenerator",void 0),(0,ba.default)(this,"vatTokenGenerator",void 0),this.quantityPriceTokenGenerator=new pG.default,this.priceTokenGenerator=new fG.default,this.rangePriceTokenGenerator=new gG.default,this.plusOrMinusTokenGenerator=new hG.default,this.savingsTokenGenerator=new mG.default,this.percentageTokenGenerator=new vG.default,this.unitPriceTokenGenerator=new yG.default,this.couponCalloutGenerator=new bG.default,this.vatTokenGenerator=new wG.default,this.map=new Map,this.map.set(IG.name,this.quantityPriceTokenGenerator),this.map.set(DG.name,this.quantityPriceTokenGenerator),this.map.set(xG.name,this.quantityPriceTokenGenerator),this.map.set(_G.name,this.quantityPriceTokenGenerator),this.map.set(NG.name,this.quantityPriceTokenGenerator),this.map.set(TG.name,this.unitPriceTokenGenerator),this.map.set(SG.name,this.unitPriceTokenGenerator),this.map.set(PG.name,this.unitPriceTokenGenerator),this.map.set(CG.name,this.unitPriceTokenGenerator),this.map.set(EG.name,this.priceTokenGenerator),this.map.set(OG.name,this.plusOrMinusTokenGenerator),this.map.set(AG.name,this.plusOrMinusTokenGenerator),this.map.set(MG.name,this.savingsTokenGenerator),this.map.set(kG.name,this.percentageTokenGenerator),this.map.set($G.name,this.priceTokenGenerator),this.map.set(RG.name,this.couponCalloutGenerator),this.map.set(LG.name,this.vatTokenGenerator),this.map.set(UG.name,this.rangePriceTokenGenerator)}get(t){return this.map.get(t)}}nf.default=FG;var BG=$r;Object.defineProperty(rf,"__esModule",{value:!0}),rf.tokenGeneratorMapInstance=void 0;var qG=BG(nf);rf.tokenGeneratorMapInstance=new qG.default;var zG=$r;Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0;var VG=zG(ds),px=Wa,jG=rf;class HG{constructor(){(0,VG.default)(this,"tokenGeneratorMap",void 0),this.tokenGeneratorMap=jG.tokenGeneratorMapInstance}generateToken(t,r){if(!t||Object.keys(t).length===0||!r)return px.logger.warn("Can't generate token",{contextData:{presentationType:r,presentationInfo:t}}),"";try{const n=this.tokenGeneratorMap.get(r);if(n){const i=n.getValidationErrors(t);if(i)throw new Error("There are validation errors for ".concat(r,": ").concat(i));return n.generateToken(t,r)}throw new Error("Invalid presentationType: ".concat(r))}catch(n){throw px.logger.error(n,{contextData:{presentationType:r,presentationInfo:t}}),new Error(n)}}}pu.default=HG;var fx=$r;Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.tokenEngineFactory=Rc.presentationTokenFactory=void 0;var GG=fx(pu),WG=fx(Vl);Rc.presentationTokenFactory=new GG.default,Rc.tokenEngineFactory={create:(e,t)=>new WG.default(e,t)};var QG=$r;Object.defineProperty(tf,"__esModule",{value:!0}),tf.default=void 0;var ZG=QG(ds),gx=Rc;class KG{constructor(t,r){(0,ZG.default)(this,"tokenEngine",void 0),this.tokenEngine=gx.tokenEngineFactory.create(t,r)}async get(t,r){let n;try{n=gx.presentationTokenFactory.generateToken(t,r)}catch(i){return Promise.reject(i)}return await this.tokenEngine.render(n)}}tf.default=KG;var mx={};Object.defineProperty(mx,"__esModule",{value:!0});var YG={},XG=Hr(ps),JG=Hr(bs),e7=Hr(ws),t7=Hr(Ts),r7=Hr(Es),n7=Hr(Ss),i7=Hr(Ps),a7=Hr(Cs),o7=Hr(Is),s7=Hr(xs),c7=Hr(_s),l7=Hr(ks),u7=Hr(Ms),d7=Hr(Os),p7=Hr(As),f7=Hr($s),g7=Hr(Rs),m7=Hr(Ns);function hx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;
32return(hx=function(n){return n?r:t})(e)}function Hr(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=hx(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function ALe(e){return e}n7.name,i7.name,JG.name,c7.name,l7.name,o7.name,s7.name,u7.name,e7.name,t7.name,r7.name,XG.name,a7.name,d7.name,f7.name,p7.name,g7.name,m7.name,(function(e){var t=$r;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ComparativeDisplayType",{enumerable:!0,get:function(){return P.ComparativeDisplayType}}),Object.defineProperty(e,"ICouponCallout",{enumerable:!0,get:function(){return a.ICouponCallout}}),Object.defineProperty(e,"IPercentage",{enumerable:!0,get:function(){return o.IPercentage}}),Object.defineProperty(e,"IPlusOrMinus",{enumerable:!0,get:function(){return s.IPlusOrMinus}}),Object.defineProperty(e,"IPresentation",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"IPrice",{enumerable:!0,get:function(){return c.IPrice}}),Object.defineProperty(e,"IQuantityPrice",{enumerable:!0,get:function(){return u.IQuantityPrice}}),Object.defineProperty(e,"IRangePrice",{enumerable:!0,get:function(){return l.IRangePrice}}),Object.defineProperty(e,"ISavings",{enumerable:!0,get:function(){return d.ISavings}}),Object.defineProperty(e,"IUnitPrice",{enumerable:!0,get:function(){return p.IUnitPrice}}),Object.defineProperty(e,"IVatMessage",{enumerable:!0,get:function(){return g.IVatMessage}}),Object.defineProperty(e,"PresentationProvider",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"PresentationTokenFactory",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"PricePresentationType",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"TokenEngine",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"ZeroDisplayType",{enumerable:!0,get:function(){return h.ZeroDisplayType}}),e.default=void 0;var r=t(Vl),n=t(tf),i=t(pu),a=Tu,o=bu,s=yu,c=gu,l=mu,u=fu,d=hu,p=wu,g=Eu,m=t(mx),v=t(YG),h=Oo,P=Nr;e.default=r.default})(Sc);var vx=Ec(Sc);const h7=({onSaveSelections:e,onCancel:t,saveChangesLabel:r,revertChangesLabel:n})=>y.createElement(y.Fragment,null,y.createElement(Dt,{skin:"primary",width:"full-width",mb:"4",onClick:e},r),y.createElement(Dt,{width:"full-width",onClick:t},n));var zn=function(){return zn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},zn.apply(this,arguments)};function af(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof L<"u"?L:typeof self<"u"?self:{};function v7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt="-ms-",Pu="-moz-",At="-webkit-",yx="comm",of="rule",jy="decl",y7="@import",bx="@keyframes",b7="@layer",wx=Math.abs,Hy=String.fromCharCode,Gy=Object.assign;function w7(e,t){return Gr(e,0)^45?(((t<<2^Gr(e,0))<<2^Gr(e,1))<<2^Gr(e,2))<<2^Gr(e,3):0}function Tx(e){return e.trim()}function to(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,r){return e.replace(t,r)}function sf(e,t,r){return e.indexOf(t,r)}function Gr(e,t){return e.charCodeAt(t)|0}function Dc(e,t,r){return e.slice(t,r)}function wa(e){return e.length}function Ex(e){return e.length}function Cu(e,t){return t.push(e),e}function T7(e,t){return e.map(t).join("")}function Sx(e,t){return e.filter(function(r){return!to(r,t)})}var cf=1,Lc=1,Px=0,Pi=0,Pr=0,Uc="";function lf(e,t,r,n,i,a,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:cf,column:Lc,length:o,return:"",siblings:s}}function Ao(e,t){return Gy(lf("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Fc(e){for(;e.root;)e=Ao(e.root,{children:[e]});Cu(e,e.siblings)}function E7(){return Pr}function S7(){return Pr=Pi>0?Gr(Uc,--Pi):0,Lc--,Pr===10&&(Lc=1,cf--),Pr}function Bi(){return Pr=Pi<Px?Gr(Uc,Pi++):0,Lc++,Pr===10&&(Lc=1,cf++),Pr}function Ds(){return Gr(Uc,Pi)}function uf(){return Pi}function df(e,t){return Dc(Uc,e,t)}function Wy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P7(e){return cf=Lc=1,Px=wa(Uc=e),Pi=0,[]}function C7(e){return Uc="",e}function Qy(e){return Tx(df(Pi-1,Zy(e===91?e+2:e===40?e+1:e)))}function I7(e){for(;(Pr=Ds())&&Pr<33;)Bi();return Wy(e)>2||Wy(Pr)>3?"":" "}function x7(e,t){for(;--t&&Bi()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return df(e,uf()+(t<6&&Ds()==32&&Bi()==32))}function Zy(e){for(;Bi();)switch(Pr){case e:return Pi;case 34:case 39:e!==34&&e!==39&&Zy(Pr);break;case 40:e===41&&Zy(e);break;case 92:Bi();break}return Pi}function _7(e,t){for(;Bi()&&e+Pr!==57;)if(e+Pr===84&&Ds()===47)break;return"/*"+df(t,Pi-1)+"*"+Hy(e===47?e:Bi())}function k7(e){for(;!Wy(Ds());)Bi();return df(e,Pi)}function M7(e){return C7(pf("",null,null,null,[""],e=P7(e),0,[0],e))}function pf(e,t,r,n,i,a,o,s,c){for(var l=0,u=0,d=o,p=0,g=0,m=0,v=1,h=1,P=1,x=0,T="",k=i,M=a,$=n,O=T;h;)switch(m=x,x=Bi()){case 40:if(m!=108&&Gr(O,d-1)==58){sf(O+=rt(Qy(x),"&","&\f"),"&\f",wx(l?s[l-1]:0))!=-1&&(P=-1);break}case 34:case 39:case 91:O+=Qy(x);break;case 9:case 10:case 13:case 32:O+=I7(m);break;case 92:O+=x7(uf()-1,7);continue;case 47:switch(Ds()){case 42:case 47:Cu(O7(_7(Bi(),uf()),t,r,c),c);break;default:O+="/"}break;case 123*v:s[l++]=wa(O)*P;case 125*v:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+u:P==-1&&(O=rt(O,/\f/g,"")),g>0&&wa(O)-d&&Cu(g>32?Ix(O+";",n,r,d-1,c):Ix(rt(O," ","")+";",n,r,d-2,c),c);break;case 59:O+=";";default:if(Cu($=Cx(O,t,r,l,u,i,s,T,k=[],M=[],d,a),a),x===123)if(u===0)pf(O,t,$,$,k,a,d,s,M);else switch(p===99&&Gr(O,3)===110?100:p){case 100:case 108:case 109:case 115:pf(e,$,$,n&&Cu(Cx(e,$,$,0,0,i,s,T,i,k=[],d,M),M),i,M,d,s,n?k:M);break;default:pf(O,$,$,$,[""],M,0,s,M)}}l=u=g=0,v=P=1,T=O="",d=o;break;case 58:d=1+wa(O),g=m;default:if(v<1){if(x==123)--v;else if(x==125&&v++==0&&S7()==125)continue}switch(O+=Hy(x),x*v){case 38:P=u>0?1:(O+="\f",-1);break;case 44:s[l++]=(wa(O)-1)*P,P=1;break;case 64:Ds()===45&&(O+=Qy(Bi())),p=Ds(),u=d=wa(T=O+=k7(uf())),x++;break;case 45:m===45&&wa(O)==2&&(v=0)}}return a}function Cx(e,t,r,n,i,a,o,s,c,l,u,d){for(var p=i-1,g=i===0?a:[""],m=Ex(g),v=0,h=0,P=0;v<n;++v)for(var x=0,T=Dc(e,p+1,p=wx(h=o[v])),k=e;x<m;++x)(k=Tx(h>0?g[x]+" "+T:rt(T,/&\f/g,g[x])))&&(c[P++]=k);return lf(e,t,r,i===0?of:s,c,l,u,d)}function O7(e,t,r,n){return lf(e,t,r,yx,Hy(E7()),Dc(e,2,-2),0,n)}function Ix(e,t,r,n,i){return lf(e,t,r,jy,Dc(e,0,n),Dc(e,n+1,-1),n,i)}function xx(e,t,r){switch(w7(e,t)){case 5103:return At+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return At+e+e;case 4789:return Pu+e+e;
32case 5349:case 4246:case 4810:case 6968:case 2756:return At+e+Pu+e+Kt+e+e;case 5936:switch(Gr(e,t+11)){case 114:return At+e+Kt+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return At+e+Kt+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return At+e+Kt+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return At+e+Kt+e+e;case 6165:return At+e+Kt+"flex-"+e+e;case 5187:return At+e+rt(e,/(\w+).+(:[^]+)/,At+"box-$1$2"+Kt+"flex-$1$2")+e;case 5443:return At+e+Kt+"flex-item-"+rt(e,/flex-|-self/g,"")+(to(e,/flex-|baseline/)?"":Kt+"grid-row-"+rt(e,/flex-|-self/g,""))+e;case 4675:return At+e+Kt+"flex-line-pack"+rt(e,/align-content|flex-|-self/g,"")+e;case 5548:return At+e+Kt+rt(e,"shrink","negative")+e;case 5292:return At+e+Kt+rt(e,"basis","preferred-size")+e;case 6060:return At+"box-"+rt(e,"-grow","")+At+e+Kt+rt(e,"grow","positive")+e;case 4554:return At+rt(e,/([^-])(transform)/g,"$1"+At+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+Kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+e+e;case 4200:if(!to(e,/flex-|baseline/))return Kt+"grid-column-align"+Dc(e,t)+e;break;case 2592:case 3360:return Kt+rt(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,to(n.props,/grid-\w+-end/)})?~sf(e+(r=r[t].value),"span",0)?e:Kt+rt(e,"-start","")+e+Kt+"grid-row-span:"+(~sf(r,"span",0)?to(r,/\d+/):+to(r,/\d+/)-+to(e,/\d+/))+";":Kt+rt(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return to(n.props,/grid-\w+-start/)})?e:Kt+rt(rt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,At+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wa(e)-1-t>6)switch(Gr(e,t+1)){case 109:if(Gr(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Pu+(Gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sf(e,"stretch",0)?xx(rt(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,a,o,s,c,l){return Kt+i+":"+a+l+(o?Kt+i+"-span:"+(s?c:+c-+a)+l:"")+e});case 4949:if(Gr(e,t+6)===121)return rt(e,":",":"+At)+e;break;case 6444:switch(Gr(e,Gr(e,14)===45?18:11)){case 120:return rt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+At+(Gr(e,14)===45?"inline-":"")+"box$3$1"+At+"$2$3$1"+Kt+"$2box$3")+e;case 100:return rt(e,":",":"+Kt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rt(e,"scroll-","scroll-snap-")+e}return e}function ff(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function A7(e,t,r,n){switch(e.type){case b7:if(e.children.length)break;case y7:case jy:return e.return=e.return||e.value;case yx:return"";case bx:return e.return=e.value+"{"+ff(e.children,n)+"}";case of:if(!wa(e.value=e.props.join(",")))return""}return wa(r=ff(e.children,n))?e.return=e.value+"{"+r+"}":""}function $7(e){var t=Ex(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function R7(e){return function(t){t.root||(t=t.return)&&e(t)}}function N7(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jy:e.return=xx(e.value,e.length,r);return;case bx:return ff([Ao(e,{value:rt(e.value,"@","@"+At)})],n);case of:if(e.length)return T7(r=e.props,function(i){switch(to(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Fc(Ao(e,{props:[rt(i,/:(read-\w+)/,":"+Pu+"$1")]})),Fc(Ao(e,{props:[i]})),Gy(e,{props:Sx(r,n)});break;case"::placeholder":Fc(Ao(e,{props:[rt(i,/:(plac\w+)/,":"+At+"input-$1")]})),Fc(Ao(e,{props:[rt(i,/:(plac\w+)/,":"+Pu+"$1")]})),Fc(Ao(e,{props:[rt(i,/:(plac\w+)/,Kt+"input-$1")]})),Fc(Ao(e,{props:[i]})),Gy(e,{props:Sx(r,n)});break}return""})}}var D7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
32idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bc=typeof tn<"u"&&tn.env!==void 0&&(tn.env.REACT_APP_SC_ATTR||tn.env.SC_ATTR)||"data-styled",_x="active",kx="data-styled-version",gf="6.1.19",Ky=`/*!sc*/ 33`,mf=typeof window<"u"&&typeof document<"u",L7=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof tn<"u"&&tn.env!==void 0&&tn.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&tn.env.REACT_APP_SC_DISABLE_SPEEDY!==""?tn.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&tn.env.REACT_APP_SC_DISABLE_SPEEDY:typeof tn<"u"&&tn.env!==void 0&&tn.env.SC_DISABLE_SPEEDY!==void 0&&tn.env.SC_DISABLE_SPEEDY!==""&&tn.env.SC_DISABLE_SPEEDY!=="false"&&tn.env.SC_DISABLE_SPEEDY),hf=Object.freeze([]),qc=Object.freeze({});function U7(e,t,r){return r===void 0&&(r=qc),e.theme!==r.theme&&e.theme||t||r.theme}var Mx=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),F7=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,B7=/(^-|-$)/g;function Ox(e){return e.replace(F7,"-").replace(B7,"")}var q7=/(a)(d)/gi,vf=52,Ax=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yy(e){var t,r="";for(t=Math.abs(e);t>vf;t=t/vf|0)r=Ax(t%vf)+r;return(Ax(t%vf)+r).replace(q7,"$1-$2")}var Xy,$x=5381,zc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Rx=function(e){return zc($x,e)};function z7(e){return Yy(Rx(e)>>>0)}function V7(e){return e.displayName||e.name||"Component"}function Jy(e){return typeof e=="string"&&!0}var Nx=typeof Symbol=="function"&&Symbol.for,Dx=Nx?Symbol.for("react.memo"):60115,j7=Nx?Symbol.for("react.forward_ref"):60112,H7={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G7={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W7=((Xy={})[j7]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xy[Dx]=Lx,Xy);function Ux(e){return("type"in(t=e)&&t.type.$$typeof)===Dx?Lx:"$$typeof"in e?W7[e.$$typeof]:H7;var t}var Q7=Object.defineProperty,Z7=Object.getOwnPropertyNames,Fx=Object.getOwnPropertySymbols,K7=Object.getOwnPropertyDescriptor,Y7=Object.getPrototypeOf,Bx=Object.prototype;function qx(e,t,r){if(typeof t!="string"){if(Bx){var n=Y7(t);n&&n!==Bx&&qx(e,n,r)}var i=Z7(t);Fx&&(i=i.concat(Fx(t)));for(var a=Ux(e),o=Ux(t),s=0;s<i.length;++s){var c=i[s];if(!(c in G7||r&&r[c]||o&&c in o||a&&c in a)){var l=K7(t,c);try{Q7(e,c,l)}catch{}}}}return e}function Vc(e){return typeof e=="function"}function eb(e){return typeof e=="object"&&"styledComponentId"in e}function Ls(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function zx(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Iu(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tb(e,t,r){if(r===void 0&&(r=!1),!r&&!Iu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=tb(e[n],t[n]);else if(Iu(t))for(var n in t)e[n]=tb(e[n],t[n]);return e}function rb(e,t){Object.defineProperty(e,"toString",{value:t})}function xu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var X7=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,a=i;t>=a;)if((a<<=1)<0)throw xu(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=i;o<a;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(t+1),c=(o=0,r.length);o<c;o++)this.tag.insertRule(s,r[o])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r;this.groupSizes[t]=0;for(var a=n;a<i;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),a=i+n,o=i;o<a;o++)r+="".concat(this.tag.getRule(o)).concat(Ky);return r},e})(),yf=new Map,bf=new Map,wf=1,Tf=function(e){if(yf.has(e))return yf.get(e);for(;bf.has(wf);)wf++;var t=wf++;return yf.set(e,t),bf.set(t,e),t},J7=function(e,t){wf=t+1,yf.set(e,t),bf.set(t,e)},eW="style[".concat(Bc,"][").concat(kx,'="').concat(gf,'"]'),tW=new RegExp("^".concat(Bc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),rW=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a<o;a++)(n=i[a])&&e.registerName(t,n)},nW=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ky),i=[],a=0,o=n.length;a<o;a++){var s=n[a].trim();if(s){var c=s.match(tW);if(c){var l=0|parseInt(c[1],10),u=c[2];l!==0&&(J7(u,l),rW(e,u,c[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},Vx=function(e){for(var t=document.querySelectorAll(eW),r=0,n=t.length;r<n;r++){var i=t[r];
33i&&i.getAttribute(Bc)!==_x&&(nW(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function iW(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jx=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=(function(s){var c=Array.from(s.querySelectorAll("style[".concat(Bc,"]")));return c[c.length-1]})(r),a=i!==void 0?i.nextSibling:null;n.setAttribute(Bc,_x),n.setAttribute(kx,gf);var o=iW();return o&&n.setAttribute("nonce",o),r.insertBefore(n,a),n},aW=(function(){function e(t){this.element=jx(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,a=n.length;i<a;i++){var o=n[i];if(o.ownerNode===r)return o}throw xu(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),oW=(function(){function e(t){this.element=jx(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),sW=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Hx=mf,cW={isServer:!mf,useCSSOMInjection:!L7},Gx=(function(){function e(t,r,n){t===void 0&&(t=qc),r===void 0&&(r={});var i=this;this.options=zn(zn({},cW),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&mf&&Hx&&(Hx=!1,Vx(this)),rb(this,function(){return(function(a){for(var o=a.getTag(),s=o.length,c="",l=function(d){var p=(function(P){return bf.get(P)})(d);if(p===void 0)return"continue";var g=a.names.get(p),m=o.getGroup(d);if(g===void 0||!g.size||m.length===0)return"continue";var v="".concat(Bc,".g").concat(d,'[id="').concat(p,'"]'),h="";g!==void 0&&g.forEach(function(P){P.length>0&&(h+="".concat(P,","))}),c+="".concat(m).concat(v,'{content:"').concat(h,'"}').concat(Ky)},u=0;u<s;u++)l(u);return c})(i)})}return e.registerId=function(t){return Tf(t)},e.prototype.rehydrate=function(){!this.server&&mf&&Vx(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(zn(zn({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new sW(i):n?new aW(i):new oW(i)})(this.options),new X7(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Tf(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Tf(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Tf(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),lW=/&/g,uW=/^\s*\/\/.*$/gm;function Wx(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Wx(r.children,t)),r})}function dW(e){var t,r,n,i=qc,a=i.options,o=a===void 0?qc:a,s=i.plugins,c=s===void 0?hf:s,l=function(p,g,m){return m.startsWith(r)&&m.endsWith(r)&&m.replaceAll(r,"").length>0?".".concat(t):p},u=c.slice();u.push(function(p){p.type===of&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(lW,r).replace(n,l))}),o.prefix&&u.push(N7),u.push(A7);var d=function(p,g,m,v){g===void 0&&(g=""),m===void 0&&(m=""),v===void 0&&(v="&"),t=v,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var h=p.replace(uW,""),P=M7(m||g?"".concat(m," ").concat(g," { ").concat(h," }"):h);o.namespace&&(P=Wx(P,o.namespace));var x=[];return ff(P,$7(u.concat(R7(function(T){return x.push(T)})))),x};return d.hash=c.length?c.reduce(function(p,g){return g.name||xu(15),zc(p,g.name)}
33,$x).toString():"",d}var pW=new Gx,nb=dW(),Qx=y.createContext({shouldForwardProp:void 0,styleSheet:pW,stylis:nb});Qx.Consumer,y.createContext(void 0);function Zx(){return xt(Qx)}var fW=(function(){function e(t,r){var n=this;this.inject=function(i,a){a===void 0&&(a=nb);var o=n.name+a.hash;i.hasNameForId(n.id,o)||i.insertRules(n.id,o,a(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,rb(this,function(){throw xu(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=nb),this.name+t.hash},e})(),gW=function(e){return e>="A"&&e<="Z"};function Kx(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;gW(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Yx=function(e){return e==null||e===!1||e===""},Xx=function(e){var t,r,n=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Yx(a)&&(Array.isArray(a)&&a.isCss||Vc(a)?n.push("".concat(Kx(i),":"),a,";"):Iu(a)?n.push.apply(n,af(af(["".concat(i," {")],Xx(a),!1),["}"],!1)):n.push("".concat(Kx(i),": ").concat((t=i,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in D7||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Us(e,t,r,n){if(Yx(e))return[];if(eb(e))return[".".concat(e.styledComponentId)];if(Vc(e)){if(!Vc(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return Us(i,t,r,n)}var a;return e instanceof fW?r?(e.inject(r,n),[e.getName(n)]):[e]:Iu(e)?Xx(e):Array.isArray(e)?Array.prototype.concat.apply(hf,e.map(function(o){return Us(o,t,r,n)})):[e.toString()]}function mW(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Vc(r)&&!eb(r))return!1}return!0}var hW=Rx(gf),vW=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&mW(t),this.componentId=r,this.baseHash=zc(hW,r),this.baseStyle=n,Gx.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Ls(i,this.staticRulesId);else{var a=zx(Us(this.rules,t,r,n)),o=Yy(zc(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,o)){var s=n(a,".".concat(o),void 0,this.componentId);r.insertRules(this.componentId,o,s)}i=Ls(i,o),this.staticRulesId=o}else{for(var c=zc(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")l+=d;else if(d){var p=zx(Us(d,t,r,n));c=zc(c,p+u),l+=p}}if(l){var g=Yy(c>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(l,".".concat(g),void 0,this.componentId)),i=Ls(i,g)}}return i},e})(),Jx=y.createContext(void 0);Jx.Consumer;var ib={};function yW(e,t,r){var n=eb(e),i=e,a=!Jy(e),o=t.attrs,s=o===void 0?hf:o,c=t.componentId,l=c===void 0?(function(k,M){var $=typeof k!="string"?"sc":Ox(k);ib[$]=(ib[$]||0)+1;var O="".concat($,"-").concat(z7(gf+$+ib[$]));return M?"".concat(M,"-").concat(O):O})(t.displayName,t.parentComponentId):c,u=t.displayName,d=u===void 0?(function(k){return Jy(k)?"styled.".concat(k):"Styled(".concat(V7(k),")")})(e):u,p=t.displayName&&t.componentId?"".concat(Ox(t.displayName),"-").concat(t.componentId):t.componentId||l,g=n&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var h=t.shouldForwardProp;m=function(k,M){return v(k,M)&&h(k,M)}}else m=v}var P=new vW(r,p,n?i.componentStyle:void 0);function x(k,M){return(function($,O,H){var J=$.attrs,W=$.componentStyle,me=$.defaultProps,Z=$.foldedComponentIds,B=$.styledComponentId,Q=$.target,R=y.useContext(Jx),Y=Zx(),ie=$.shouldForwardProp||Y.shouldForwardProp,he=U7(O,R,me)||qc,ye=(function(Pe,$t,Ne){for(var Le,Ve=zn(zn({},$t),{className:void 0,theme:Ne}),Xe=0;Xe<Pe.length;Xe+=1){var ot=Vc(Le=Pe[Xe])?Le(Ve):Le;for(var We in ot)Ve[We]=We==="className"?Ls(Ve[We],ot[We]):We==="style"?zn(zn({},Ve[We]),ot[We]):ot[We]}return $t.className&&(Ve.className=Ls(Ve.className,$t.className)),Ve})(J,O,he),le=ye.as||Q,te={};for(var Oe in ye)ye[Oe]===void 0||Oe[0]==="$"||Oe==="as"||Oe==="theme"&&ye.theme===he||(Oe==="forwardedAs"?te.as=ye.forwardedAs:ie&&!ie(Oe,le)||(te[Oe]=ye[Oe]));var ut=(function(Pe,$t){var Ne=Zx(),Le=Pe.generateAndInjectStyles($t,Ne.styleSheet,Ne.stylis);return Le})(W,ye),ve=Ls(Z,B);return ut&&(ve+=" "+ut),ye.className&&(ve+=" "+ye.className),te[Jy(le)&&!Mx.has(le)?"class":"className"]=ve,H&&(te.ref=H),Wd(le,te)})(T,k,M)}x.displayName=d;var T=y.forwardRef(x);return T.attrs=g,T.componentStyle=P,T.displayName=d,T.shouldForwardProp=m,T.foldedComponentIds=n?Ls(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=p,T.target=n?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?(function(M){for(var $=[],O=1;O<arguments.length;O++)$[O-1]=arguments[O];for(var H=0,J=$;H<J.length;H++)tb(M,J[H],!0);return M})({},i.defaultProps,k):k}}),rb(T,function(){return".".concat(T.styledComponentId)}),a&&qx(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function e_(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var t_=function(e){return Object.assign(e,{isCss:!0})};function bW(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Vc(e)||Iu(e))return t_(Us(e_(hf,af([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Us(n):t_(Us(e_(n,t)))}function ab(e,t,r){if(r===void 0&&(r=qc),!t)throw xu(1,t);var n=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return e(t,r,bW.apply(void 0,af([i],a,!1)))};return n.attrs=function(i){return ab(e,t,zn(zn({}
33,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return ab(e,t,zn(zn({},r),i))},n}var r_=function(e){return ab(yW,e)},ob=r_;Mx.forEach(function(e){ob[e]=r_(e)});var wW="Quantity",TW="Choose your quantity",EW="Select this quantity",SW="Close",PW="...",CW="Price",IW="Unit price",xW="Not available with other selections: ",_W="Select...",kW="{{{PERCENT}}}% savings",MW="sale",OW="{{{AMOUNT}}} savings / unit",AW="{{{AMOUNT}}} savings / unit + sale",$W="See more quantities",RW="Required",NW="Sample",DW="Estimated quantity",LW="{{{COUNT}}} Recipients",UW="Recommended",FW="New",BW="Incompatible",qW="Out of stock",zW="Dismiss alert",VW="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}}.",jW="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}} & {{{ATTRIBUTE2}}} {{{OPTION2}}}.",HW="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} & {{{ATTRIBUTE3}}} {{{OPTION3}}}.",GW="Incompatible with more than {{{ATTRIBUTE_COUNT}}} options.",WW="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} was unselected.",QW="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} & {{{ATTRIBUTE2}}} {{{OPTION2}}} were unselected.",ZW="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} & {{{ATTRIBUTE3}}} {{{OPTION3}}} were unselected.",KW="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: More than {{{ATTRIBUTE_COUNT}}} options were unselected.",YW="{{{MINIMUM}}} {{{UNIT}}} to {{{MAXIMUM}}} {{{UNIT}}}",XW="At least {{{MINIMUM}}} {{{UNIT}}}",JW="Enter a value between {{{MINIMUM}}} to {{{MAXIMUM}}} pages, including cover ",eQ="At least {{{MINIMUM}}} pages, including cover ",tQ="Input is invalid",rQ="Closest numbers are {{{LOWER}}} {{{UNIT}}} and {{{HIGHER}}} {{{UNIT}}}",nQ="Number can't exceed 8 decimals",iQ="The minimum number is {{{MINIMUM}}} {{{UNIT}}}",aQ="The maximum number is {{{MAXIMUM}}} {{{UNIT}}}",oQ="Input must be a number",sQ="Enter a value between {{{LOWER}}} to {{{HIGHER}}} {{{UNIT}}}",cQ="Closest numbers are {{{LOWER}}} pages and {{{HIGHER}}} pages ",lQ="The minimum number is {{{MINIMUM}}} pages ",uQ="The maximum number is {{{MAXIMUM}}} pages ",dQ="Enter a value between {{{LOWER}}} to {{{HIGHER}}} pages, including cover ",pQ="Please provide all required information.",fQ="Minimum: {{{MINIMUM}}} {{{UNIT}}} Maximum: {{{MAXIMUM}}} {{{UNIT}}}",gQ="Show pricing guide",mQ="Pricing guide",hQ="Confirm",vQ="Cancel",yQ="Enter quantity...",bQ="Minimum: {{{MINIMUM}}} {{{UNIT}}}",wQ="Maximum: {{{MAXIMUM}}} {{{UNIT}}}",TQ="Please choose {{{LOWER}}} {{{UNIT}}} or {{{HIGHER}}} {{{UNIT}}}",EQ="Please enter a number",n_={quantityLabel:wW,quantityFlyoutHeader:TW,quantityFlyoutCTA:EW,closeButton:SW,pricePlaceholder:PW,priceLabel:CW,unitPriceLabel:IW,incompatibilityMessage:xW,select:_W,percentSavings:kW,sale:MW,amountSavings:OW,amountSavingsWithSale:AW,seeMoreQuantities:$W,required:RW,sample:NW,estimatedQuantity:DW,numberOfRecipients:LW,recommendedCallout:UW,newCallout:FW,incompatibleLabel:BW,outOfStockCallout:qW,dismissAlert:zW,unwindingMessage_1:VW,unwindingMessage_2:jW,unwindingMessage_3:HW,unwindingMessage_more:GW,unwindingAlertMessage_1:WW,unwindingAlertMessage_2:QW,unwindingAlertMessage_3:ZW,unwindingAlertMessage_more:KW,fullRangedHelperText:YW,rangePartialRangedHelperText:XW,fullRangedHelperTextForBooklets:JW,rangePartialRangedHelperTextForBooklets:eQ,rangedGeneralInputError:tQ,rangedBetweenRangesError:rQ,rangedDecimalPrecisionError:nQ,rangedMinInputValueError:iQ,rangedMaxInputValueError:aQ,rangedNotANumberError:oQ,requiredAttributeFieldError:sQ,rangedBetweenRangesErrorForBooklets:cQ,rangedMinInputValueErrorForBooklets:lQ,rangedMaxInputValueErrorForBooklets:uQ,requiredAttributeFieldErrorForBooklets:dQ,requiredInformationToast:pQ,quantityComboboxHelperText:fQ,quantityComboboxShowPricingGuide:gQ,quantityComboboxPricingGuide:mQ,quantityComboboxFlyoutConfirmation:hQ,quantityComboboxFlyoutCancel:vQ,quantityComboboxPlaceholderText:yQ,quantityComboboxBelowMinError:bQ,quantityComboboxAboveMaxError:wQ,quantityComboboxBetweenRangeError:TQ,quantityComboboxInvali
33dInputError:EQ},SQ="Antal",PQ="V\xE6lg antal",CQ="V\xE6lg dette antal",IQ="Luk",xQ="...",_Q="Pris",kQ="Stykpris",MQ="Ikke tilg\xE6ngelig sammen med andre valg: ",OQ="V\xE6lg...",AQ="{{{PERCENT}}}% besparelser",$Q="udsalg",RQ="{{{AMOUNT}}} besparelser/stk.",NQ="{{{AMOUNT}}} besparelser/stk. + udsalg",DQ="Se flere m\xE6ngder",LQ="Skal udfyldes",UQ="Varepr\xF8ve",FQ="Estimeret antal",BQ="{{{COUNT}}} Modtagere",qQ="Anbefalet",zQ="Nyt",VQ="Inkompatibel",jQ="Ikke p\xE5 lager",HQ="Luk meddelelse",GQ="Inkompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}}.",WQ="Inkompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}} og {{{ATTRIBUTE2}}} {{{OPTION2}}}.",QQ="Inkompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} og {{{ATTRIBUTE3}}} {{{OPTION3}}}.",ZQ="Inkompatibel med mere end {{{ATTRIBUTE_COUNT}}} valgmuligheder.",KQ="For at v\xE6re kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} blev fravalgt.",YQ="For at v\xE6re kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} og {{{ATTRIBUTE2}}} {{{OPTION2}}} blev fravalgt.",XQ="For at v\xE6re kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} og {{{ATTRIBUTE3}}} {{{OPTION3}}} blev fravalgt.",JQ="For at v\xE6re kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: Mere end {{{ATTRIBUTE_COUNT}}} valgmuligheder blev fravalgt.",eZ="{{{MINIMUM}}} {{{UNIT}}} til {{{MAXIMUM}}} {{{UNIT}}}",tZ="Mindst {{{MINIMUM}}} {{{UNIT}}}",rZ="Indtast en v\xE6rdi mellem {{{MINIMUM}}} og {{{MAXIMUM}}} sider, inklusive forside ",nZ="Mindst {{{MINIMUM}}} sider, inklusive forside ",iZ="Inputtet er ugyldigt",aZ="De n\xE6rmeste tal er {{{LOWER}}} {{{UNIT}}} og {{{HIGHER}}} {{{UNIT}}}",oZ="Tallet m\xE5 ikke have over 8 decimaler",sZ="Minimumtallet er {{{MINIMUM}}} {{{UNIT}}}",cZ="Maksimumtallet er {{{MAXIMUM}}} {{{UNIT}}}",lZ="Det indtastede skal v\xE6re et tal",uZ="Indtast en v\xE6rdi mellem {{{LOWER}}} og {{{HIGHER}}} {{{UNIT}}}",dZ="Det t\xE6tteste antal er {{{LOWER}}} sider og {{{HIGHER}}} sider ",pZ="Minimumsantallet er {{{MINIMUM}}} sider ",fZ="Maksimumsantallet er {{{MAXIMUM}}} sider ",gZ="Indtast en v\xE6rdi mellem {{{LOWER}}} og {{{HIGHER}}} sider, inklusive forside ",mZ="Giv os alle de n\xF8dvendige oplysninger.",hZ="Minimum: {{{MINIMUM}}} {{{UNIT}}} Maksimum: {{{MAXIMUM}}} {{{UNIT}}}",vZ="Vis prisguide",yZ="Prisguide",bZ="Bekr\xE6ft",wZ="Annuller",TZ="Indtats antal...",EZ="Minimum: {{{MINIMUM}}} {{{UNIT}}}",SZ="Maksimum: {{{MAXIMUM}}} {{{UNIT}}}",PZ="V\xE6lg {{{LOWER}}} {{{UNIT}}} eller {{{HIGHER}}} {{{UNIT}}}",CZ="Indtast et tal",IZ={quantityLabel:SQ,quantityFlyoutHeader:PQ,quantityFlyoutCTA:CQ,closeButton:IQ,pricePlaceholder:xQ,priceLabel:_Q,unitPriceLabel:kQ,incompatibilityMessage:MQ,select:OQ,percentSavings:AQ,sale:$Q,amountSavings:RQ,amountSavingsWithSale:NQ,seeMoreQuantities:DQ,required:LQ,sample:UQ,estimatedQuantity:FQ,numberOfRecipients:BQ,recommendedCallout:qQ,newCallout:zQ,incompatibleLabel:VQ,outOfStockCallout:jQ,dismissAlert:HQ,unwindingMessage_1:GQ,unwindingMessage_2:WQ,unwindingMessage_3:QQ,unwindingMessage_more:ZQ,unwindingAlertMessage_1:KQ,unwindingAlertMessage_2:YQ,unwindingAlertMessage_3:XQ,unwindingAlertMessage_more:JQ,fullRangedHelperText:eZ,rangePartialRangedHelperText:tZ,fullRangedHelperTextForBooklets:rZ,rangePartialRangedHelperTextForBooklets:nZ,rangedGeneralInputError:iZ,rangedBetweenRangesError:aZ,rangedDecimalPrecisionError:oZ,rangedMinInputValueError:sZ,rangedMaxInputValueError:cZ,rangedNotANumberError:lZ,requiredAttributeFieldError:uZ,rangedBetweenRangesErrorForBooklets:dZ,rangedMinInputValueErrorForBooklets:pZ,rangedMaxInputValueErrorForBooklets:fZ,requiredAttributeFieldErrorForBooklets:gZ,requiredInformationToast:mZ,quantityComboboxHelperText:hZ,quantityComboboxShowPricingGuide:vZ,quantityComboboxPricingGuide:yZ,quantityComboboxFlyoutConfirmation:bZ,quantityComboboxFlyoutCancel:wZ,quantityComboboxPlaceholderText:TZ,quantityComboboxBelowMinError:EZ,quantityComboboxAboveMaxError:SZ,quantityComboboxBetweenRangeError:PZ,quantityComboboxInvalidInputError:CZ},xZ="Menge",_Z="Bestellmenge ausw\xE4hlen",kZ="Diese Menge ausw\xE4hlen",MZ="Schlie\xDFen",OZ="...",AZ="Preis",$Z="St\xFCckpreis",RZ="Nicht mit anderen Optionen verf\xFCgbar: ",NZ="Ausw\xE4hlen...",DZ="{{{PERCENT}}}\xA0% Ersparnis",LZ="Sale",UZ="{{{AMOUNT}}} Ersparnis / St\xFCck",FZ="{{{AMOUNT}}}
33 Ersparnis / St\xFCck + Sale",BZ="Weitere Mengen",qZ="Erforderlich",zZ="Muster",VZ="Voraussichtliche Menge",jZ="{{{COUNT}}} Personen",HZ="Unsere Empfehlung",GZ="Neu",WZ="Nicht kombinierbar",QZ="Nicht auf Lager",ZZ="Warnung schlie\xDFen",KZ="Nicht kombinierbar mit {{{ATTRIBUTE1}}} {{{OPTION1}}}.",YZ="Nicht kombinierbar mit {{{ATTRIBUTE1}}} {{{OPTION1}}} und {{{ATTRIBUTE2}}} {{{OPTION2}}}.",XZ="Nicht kombinierbar mit {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} und {{{ATTRIBUTE3}}} {{{OPTION3}}}.",JZ="Nicht kombinierbar mit mehr als {{{ATTRIBUTE_COUNT}}} Optionen.",eK="F\xFCr die Kombinierbarkeit mit {{{ATTRIBUTE}}} {{{OPTION}}} wurde {{{ATTRIBUTE1}}} {{{OPTION1}}} abgew\xE4hlt.",tK="F\xFCr die Kombinierbarkeit mit {{{ATTRIBUTE}}} {{{OPTION}}} wurden {{{ATTRIBUTE1}}} {{{OPTION1}}} und {{{ATTRIBUTE2}}} {{{OPTION2}}} abgew\xE4hlt.",rK="F\xFCr die Kombinierbarkeit mit {{{ATTRIBUTE}}} {{{OPTION}}} wurden {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} und {{{ATTRIBUTE3}}} {{{OPTION3}}} abgew\xE4hlt.",nK="F\xFCr die Kombinierbarkeit mit {{{ATTRIBUTE}}} {{{OPTION}}} wurden mehr als {{{ATTRIBUTE_COUNT}}} Optionen abgew\xE4hlt.",iK="{{{MINIMUM}}} {{{UNIT}}} bis {{{MAXIMUM}}} {{{UNIT}}}",aK="Mindestens {{{MINIMUM}}} {{{UNIT}}}",oK="Geben Sie einen Wert zwischen {{{MINIMUM}}} und {{{MAXIMUM}}} f\xFCr die Anzahl Seiten ein, einschlie\xDFlich Einband ",sK="Mindestens {{{MINIMUM}}} Seiten, einschlie\xDFlich Einband ",cK="Eingabe ist ung\xFCltig",lK="Die n\xE4chsten Werte sind {{{LOWER}}} {{{UNIT}}} und {{{HIGHER}}} {{{UNIT}}}.",uK="Die Zahl darf nicht mehr als acht Dezimalstellen aufweisen.",dK="Die kleinste Zahl ist {{{MINIMUM}}}\xA0{{{UNIT}}}.",pK="Die gr\xF6\xDFte Zahl ist {{{MAXIMUM}}}\xA0{{{UNIT}}}.",fK="Eingabe muss eine Zahl sein",gK="Geben Sie einen Wert zwischen {{{LOWER}}} und {{{HIGHER}}} {{{UNIT}}} ein",mK="Die n\xE4chstkleinere Zahl ist {{{LOWER}}} Seiten und die n\xE4chstgr\xF6\xDFere {{{HIGHER}}} Seiten ",hK="Die kleinste Zahl ist {{{MINIMUM}}}\xA0Seiten ",vK="Die gr\xF6\xDFte Zahl ist {{{MAXIMUM}}}\xA0Seiten ",yK="Geben Sie einen Wert zwischen {{{LOWER}}} und {{{HIGHER}}} f\xFCr die Anzahl Seiten ein, einschlie\xDFlich Einband ",bK="Bitte geben Sie alle notwendigen Informationen an.",wK="Mindestens: {{{MINIMUM}}} {{{UNIT}}} H\xF6chstens: {{{MAXIMUM}}} {{{UNIT}}}",TK="Preisliste anzeigen",EK="Preisliste",SK="Best\xE4tigen",PK="Abbrechen",CK="Menge eingeben...",IK="Mindestens: {{{MINIMUM}}} {{{UNIT}}}",xK="H\xF6chstens: {{{MAXIMUM}}} {{{UNIT}}}",_K="Bitte w\xE4hlen Sie {{{LOWER}}} {{{UNIT}}} oder {{{HIGHER}}} {{{UNIT}}}",kK="Bitte eine Zahl eingeben",sb={quantityLabel:xZ,quantityFlyoutHeader:_Z,quantityFlyoutCTA:kZ,closeButton:MZ,pricePlaceholder:OZ,priceLabel:AZ,unitPriceLabel:$Z,incompatibilityMessage:RZ,select:NZ,percentSavings:DZ,sale:LZ,amountSavings:UZ,amountSavingsWithSale:FZ,seeMoreQuantities:BZ,required:qZ,sample:zZ,estimatedQuantity:VZ,numberOfRecipients:jZ,recommendedCallout:HZ,newCallout:GZ,incompatibleLabel:WZ,outOfStockCallout:QZ,dismissAlert:ZZ,unwindingMessage_1:KZ,unwindingMessage_2:YZ,unwindingMessage_3:XZ,unwindingMessage_more:JZ,unwindingAlertMessage_1:eK,unwindingAlertMessage_2:tK,unwindingAlertMessage_3:rK,unwindingAlertMessage_more:nK,fullRangedHelperText:iK,rangePartialRangedHelperText:aK,fullRangedHelperTextForBooklets:oK,rangePartialRangedHelperTextForBooklets:sK,rangedGeneralInputError:cK,rangedBetweenRangesError:lK,rangedDecimalPrecisionError:uK,rangedMinInputValueError:dK,rangedMaxInputValueError:pK,rangedNotANumberError:fK,requiredAttributeFieldError:gK,rangedBetweenRangesErrorForBooklets:mK,rangedMinInputValueErrorForBooklets:hK,rangedMaxInputValueErrorForBooklets:vK,requiredAttributeFieldErrorForBooklets:yK,requiredInformationToast:bK,quantityComboboxHelperText:wK,quantityComboboxShowPricingGuide:TK,quantityComboboxPricingGuide:EK,quantityComboboxFlyoutConfirmation:SK,quantityComboboxFlyoutCancel:PK,quantityComboboxPlaceholderText:CK,quantityComboboxBelowMinError:IK,quantityComboboxAboveMaxError:xK,quantityComboboxBetweenRangeError:_K,quantityComboboxInvalidInputError:kK},MK="Quantity",OK="Choose your quantity",AK="Select this quantity",$K="Close",RK="...",NK="Price",DK="Unit price",LK="Not available with other selections: ",UK="Select...",FK="{{{PERCENT}}}% savings",BK="sale",qK="{{{AMOUNT}}} savings/unit",zK="{{{AMOUNT}}} savings/unit + sale",VK="See more quantities",jK="Required",HK="Sample",GK="Estimated quantity",WK="{{{COUNT}}} Recipients",QK="Recommended",ZK="New",KK="Incompatible",YK="Out of stock",XK="Dismiss alert",JK="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}}.",eY="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}} & {{{ATTRIBUTE2}}} {{{OPTION2}}}.",tY="Incompatible with {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} & {{{ATTRIBUTE3}}} {{{OPTION3}}}.",rY="Incompatible with more than {{{ATTRIBUTE_COUNT}}} options.",nY="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} was unselected.",iY="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} & {{{ATTRIBUTE2}}} {{{OPTION2}}} were unselected.",aY="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} & {{{ATTRIBUTE3}}} {{{OPTION3}}} were unselected.",oY="To be compatible with {{{ATTRIBUTE}}} {{{OPTION}}}: More than {{{ATTRIBUTE_COUNT}}} options were unselected.",sY="{{{MINIMUM}}} {{{UNIT}}} to {{{MAXIMUM}}} {{{UNIT}}}",cY="At least {{{MINIMUM}}} {{{UNIT}}}",lY="Enter a value between {{{MINIMUM}}} to {{{MAXIMUM}}} pages, including cover ",uY="At least {{{MINIMUM}}}
33 pages, including cover ",dY="Input is invalid",pY="Closest numbers are {{{LOWER}}} {{{UNIT}}} and {{{HIGHER}}} {{{UNIT}}}",fY="Number can't exceed 8 decimals",gY="The minimum number is {{{MINIMUM}}} {{{UNIT}}}",mY="The maximum number is {{{MAXIMUM}}} {{{UNIT}}}",hY="Input must be a number",vY="Enter a value between {{{LOWER}}} to {{{HIGHER}}} {{{UNIT}}}",yY="Closest numbers are {{{LOWER}}} pages and {{{HIGHER}}} pages ",bY="The minimum number is {{{MINIMUM}}} pages ",wY="The maximum number is {{{MAXIMUM}}} pages ",TY="Enter a value between {{{LOWER}}} to {{{HIGHER}}} pages, including cover ",EY="Please provide all required information.",SY="Minimum: {{{MINIMUM}}} {{{UNIT}}} Maximum: {{{MAXIMUM}}} {{{UNIT}}}",PY="Show pricing guide",CY="Pricing guide",IY="Confirm",xY="Cancel",_Y="Enter quantity...",kY="Minimum: {{{MINIMUM}}} {{{UNIT}}}",MY="Maximum: {{{MAXIMUM}}} {{{UNIT}}}",OY="Please choose {{{LOWER}}} {{{UNIT}}} or {{{HIGHER}}} {{{UNIT}}}",AY="Please enter a number",jc={quantityLabel:MK,quantityFlyoutHeader:OK,quantityFlyoutCTA:AK,closeButton:$K,pricePlaceholder:RK,priceLabel:NK,unitPriceLabel:DK,incompatibilityMessage:LK,select:UK,percentSavings:FK,sale:BK,amountSavings:qK,amountSavingsWithSale:zK,seeMoreQuantities:VK,required:jK,sample:HK,estimatedQuantity:GK,numberOfRecipients:WK,recommendedCallout:QK,newCallout:ZK,incompatibleLabel:KK,outOfStockCallout:YK,dismissAlert:XK,unwindingMessage_1:JK,unwindingMessage_2:eY,unwindingMessage_3:tY,unwindingMessage_more:rY,unwindingAlertMessage_1:nY,unwindingAlertMessage_2:iY,unwindingAlertMessage_3:aY,unwindingAlertMessage_more:oY,fullRangedHelperText:sY,rangePartialRangedHelperText:cY,fullRangedHelperTextForBooklets:lY,rangePartialRangedHelperTextForBooklets:uY,rangedGeneralInputError:dY,rangedBetweenRangesError:pY,rangedDecimalPrecisionError:fY,rangedMinInputValueError:gY,rangedMaxInputValueError:mY,rangedNotANumberError:hY,requiredAttributeFieldError:vY,rangedBetweenRangesErrorForBooklets:yY,rangedMinInputValueErrorForBooklets:bY,rangedMaxInputValueErrorForBooklets:wY,requiredAttributeFieldErrorForBooklets:TY,requiredInformationToast:EY,quantityComboboxHelperText:SY,quantityComboboxShowPricingGuide:PY,quantityComboboxPricingGuide:CY,quantityComboboxFlyoutConfirmation:IY,quantityComboboxFlyoutCancel:xY,quantityComboboxPlaceholderText:_Y,quantityComboboxBelowMinError:kY,quantityComboboxAboveMaxError:MY,quantityComboboxBetweenRangeError:OY,quantityComboboxInvalidInputError:AY},$Y="Cantidad",RY="Elige la cantidad",NY="Selecciona esta cantidad",DY="Cerrar",LY="\u2026",UY="Precio",FY="Precio unitario",BY="No disponible con otras selecciones: ",qY="Elegir\u2026",zY="{{{PERCENT}}}% de ahorro",VY="rebajas",jY="{{{AMOUNT}}} de ahorro / unidad",HY="{{{AMOUNT}}} de ahorro / unidad + descuento",GY="Ver m\xE1s cantidades",WY="Obligatorio",QY="Muestra",ZY="Cantidad estimada",KY="{{{COUNT}}} destinatarios",YY="Recomendado",XY="Novedad",JY="Incompatible",eX="Agotado",tX="Descartar alerta",rX="Incompatible con {{{OPTION1}}} {{{ATTRIBUTE1}}}.",nX="Incompatible con {{{OPTION1}}} {{{ATTRIBUTE1}}} y {{{OPTION2}}} {{{ATTRIBUTE2}}}.",iX="Incompatible con {{{OPTION1}}} {{{ATTRIBUTE1}}}, {{{OPTION2}}} {{{ATTRIBUTE2}}} y {{{OPTION3}}} {{{ATTRIBUTE3}}}.",aX="Incompatible con m\xE1s de {{{ATTRIBUTE_COUNT}}} opciones.",oX="Para que sea compatible con {{{OPTION}}} {{{ATTRIBUTE}}}, se ha deseleccionado {{{OPTION1}}} {{{ATTRIBUTE1}}}.",sX="Para que sea compatible con {{{OPTION}}} {{{ATTRIBUTE}}}, se han deseleccionado {{{OPTION1}}} {{{ATTRIBUTE1}}} y {{{OPTION2}}} {{{ATTRIBUTE2}}}.",cX="Para que sea compatible con {{{OPTION}}} {{{ATTRIBUTE}}}, se han deseleccionado {{{OPTION1}}} {{{ATTRIBUTE1}}}, {{{OPTION2}}} {{{ATTRIBUTE2}}} y {{{OPTION3}}} {{{ATTRIBUTE3}}}.",lX="Para que sea compatible con {{{OPTION}}} {{{ATTRIBUTE}}}, se han deseleccionado m\xE1s de {{{ATTRIBUTE_COUNT}}} opciones.",uX="De {{{MINIMUM}}} {{{UNIT}}} a {{{MAXIMUM}}} {{{UNIT}}}",dX="Al menos {{{MINIMUM}}} {{{UNIT}}}",pX="Introduce un n\xFAmero de p\xE1ginas entre {{{MINIMUM}}} y {{{MAXIMUM}}} (portada incluida) ",fX="Al menos {{{MINIMUM}}} p\xE1ginas (portada incluida) ",gX="El valor de entrada no es v\xE1lido",mX="Los n\xFAmeros m\xE1s cercanos son {{{LOWER}}} {{{UNIT}}} y {{{HIGHER}}} {{{UNIT}}}",hX="El n\xFAmero no puede exceder los 8 decimales",vX="El n\xFAmero m\xEDnimo es {{{MINIMUM}}} {{{UNIT}}}",yX="El n\xFAmero m\xE1ximo es {{{MAXIMUM}}} {{{UNIT}}}",bX="El valor de entrada debe ser un n\xFAmero",wX="Introduce un valor entre {{{LOWER}}} y {{{HIGHER}}} {{{UNIT}}}",TX="Los n\xFAmeros m\xE1s cercanos son {{{LOWER}}} p\xE1ginas y {{{HIGHER}}} p\xE1ginas ",EX="El n\xFAmero m\xEDnimo es {{{MINIMUM}}} p\xE1ginas ",SX="El n\xFAmero m\xE1ximo es {{{MAXIMUM}}} p\xE1ginas ",PX="Introduce un n\xFAmero de p\xE1ginas entre {{{LOWER}}} y {{{HIGHER}}} (portada incluida) ",CX="Por favor, indica toda la informaci\xF3n obligatoria.",IX="M\xEDnimo: {{{MINIMUM}}} {{{UNIT}}} M\xE1ximo: {{{MAXIMUM}}} {{{UNIT}}}",xX="Mostrar la gu\xEDa de precios",_X="Gu\xEDa de precios",kX="Confirmar",MX="Cancelar",OX="Introduce la cantidad...",AX="M\xEDnimo: {{{MINIMUM}}} {{{UNIT}}}",$X="M\xE1ximo: {{{MAXIMUM}}} {{{UNIT}}}",RX="Indica tu preferencia entre {{{LOWER}}} {{{UNIT}}} o {{{HIGHER}}} {{{UNIT}}}",NX="Introduce un n\xFAmero",DX={quantityLabel:$Y,quantityFlyoutHeader:RY,quantityFlyoutCTA:NY,closeButton:DY,pricePlaceholder:LY,priceLabel:UY,unitPrice
33Label:FY,incompatibilityMessage:BY,select:qY,percentSavings:zY,sale:VY,amountSavings:jY,amountSavingsWithSale:HY,seeMoreQuantities:GY,required:WY,sample:QY,estimatedQuantity:ZY,numberOfRecipients:KY,recommendedCallout:YY,newCallout:XY,incompatibleLabel:JY,outOfStockCallout:eX,dismissAlert:tX,unwindingMessage_1:rX,unwindingMessage_2:nX,unwindingMessage_3:iX,unwindingMessage_more:aX,unwindingAlertMessage_1:oX,unwindingAlertMessage_2:sX,unwindingAlertMessage_3:cX,unwindingAlertMessage_more:lX,fullRangedHelperText:uX,rangePartialRangedHelperText:dX,fullRangedHelperTextForBooklets:pX,rangePartialRangedHelperTextForBooklets:fX,rangedGeneralInputError:gX,rangedBetweenRangesError:mX,rangedDecimalPrecisionError:hX,rangedMinInputValueError:vX,rangedMaxInputValueError:yX,rangedNotANumberError:bX,requiredAttributeFieldError:wX,rangedBetweenRangesErrorForBooklets:TX,rangedMinInputValueErrorForBooklets:EX,rangedMaxInputValueErrorForBooklets:SX,requiredAttributeFieldErrorForBooklets:PX,requiredInformationToast:CX,quantityComboboxHelperText:IX,quantityComboboxShowPricingGuide:xX,quantityComboboxPricingGuide:_X,quantityComboboxFlyoutConfirmation:kX,quantityComboboxFlyoutCancel:MX,quantityComboboxPlaceholderText:OX,quantityComboboxBelowMinError:AX,quantityComboboxAboveMaxError:$X,quantityComboboxBetweenRangeError:RX,quantityComboboxInvalidInputError:NX},LX="Cantidad",UX="Elija la cantidad",FX="Seleccionar esta cantidad",BX="Cerrar",qX="...",zX="Precio",VX="Precio unitario",jX="No est\xE1 disponible con otras opciones seleccionadas: ",HX="Seleccionar...",GX="{{{PERCENT}}}% de ahorro",WX="ofertas",QX="ahorro de {{{AMOUNT}}}/unidad",ZX="ahorro de {{{AMOUNT}}}/unidad + oferta",KX="Ver m\xE1s cantidades",YX="Obligatorio",XX="Muestra",JX="Cantidad estimada",eJ="{{{COUNT}}} destinatarios",tJ="Recomendado",rJ="Nuevo",nJ="No es compatible",iJ="Agotado",aJ="Descartar alerta",oJ="No es compatible con {{{ATTRIBUTE1}}} {{{OPTION1}}}.",sJ="No es compatible con {{{ATTRIBUTE1}}} {{{OPTION1}}} y {{{ATTRIBUTE2}}} {{{OPTION2}}}.",cJ="No es compatible con {{{ATTRIBUTE1}}} {{{OPTION1}}},{{{ATTRIBUTE2}}} {{{OPTION2}}} y {{{ATTRIBUTE3}}} {{{OPTION3}}}.",lJ="No es compatible con m\xE1s de {{{ATTRIBUTE_COUNT}}} opciones.",uJ="Para que sea compatible con {{{ATTRIBUTE}}} {{{OPTION}}}: se deseleccion\xF3 {{{ATTRIBUTE1}}} {{{OPTION1}}}.",dJ="Para que sea compatible con {{{ATTRIBUTE}}} {{{OPTION}}}: se deseleccion\xF3 {{{ATTRIBUTE1}}} {{{OPTION1}}} y {{{ATTRIBUTE2}}} {{{OPTION2}}}.",pJ="Para que sea compatible con {{{ATTRIBUTE}}}{{{OPTION}}}: se deseleccion\xF3 {{{ATTRIBUTE1}}} {{{OPTION1}}} , {{{ATTRIBUTE2}}}{{{OPTION2}}} y {{{ATTRIBUTE3}}} {{{OPTION3}}}.",fJ="Para que sea compatible con {{{ATTRIBUTE}}} {{{OPTION}}}: Se deseleccionaron m\xE1s de {{{ATTRIBUTE_COUNT}}} opciones.",gJ="{{{MINIMUM}}} {{{UNIT}}} a {{{MAXIMUM}}} {{{UNIT}}}",mJ="Por lo menos {{{MINIMUM}}} {{{UNIT}}}",hJ="Ingrese una cantidad entre {{{MINIMUM}}} a {{{MAXIMUM}}} p\xE1ginas, incluyendo la cubierta ",vJ="Por lo menos {{{MINIMUM}}} p\xE1ginas, incluyendo la cubierta ",yJ="El dato ingresado no es v\xE1lido",bJ="Los n\xFAmeros m\xE1s cercanos son {{{LOWER}}} {{{UNIT}}} y {{{HIGHER}}} {{{UNIT}}}",wJ="El n\xFAmero no puede sobrepasar 8 decimales",TJ="El n\xFAmero m\xEDnimo es {{{MINIMUM}}} {{{UNIT}}}",EJ="El n\xFAmero m\xE1ximo es {{{MAXIMUM}}} {{{UNIT}}}",SJ="El dato ingresado debe ser un n\xFAmero",PJ="Ingresar una cantidad entre {{{LOWER}}} y {{{HIGHER}}} {{{UNIT}}}",CJ="Los n\xFAmeros m\xE1s cercanos son de {{{LOWER}}} p\xE1ginas y {{{HIGHER}}} p\xE1ginas ",IJ="El n\xFAmero m\xEDnimo es de {{{MINIMUM}}} p\xE1ginas ",xJ="El n\xFAmero m\xE1ximo es de {{{MAXIMUM}}} p\xE1ginas ",_J="Ingrese una cantidad entre {{{LOWER}}} a {{{HIGHER}}} p\xE1ginas, incluyendo la cubierta ",kJ="Proporcione toda la informaci\xF3n obligatoria.",MJ="M\xEDnimo: {{{MINIMUM}}} {{{UNIT}}} M\xE1ximo: {{{MAXIMUM}}} {{{UNIT}}}",OJ="Ver gu\xEDa de precios",AJ="Gu\xEDa de precios",$J="Confirmar",RJ="Cancelar",NJ="Ingresar la cantidad...",DJ="M\xEDnimo: {{{MINIMUM}}}{{{UNIT}}}",LJ="M\xE1ximo: {{{MAXIMUM}}}{{{UNIT}}}",UJ="Seleccione {{{LOWER}}} {{{UNIT}}} o {{{HIGHER}}}{{{UNIT}}}",FJ="Ingrese un n\xFAmero",BJ={quantityLabel:LX,quantityFlyoutHeader:UX,quantityFlyoutCTA:FX,closeButton:BX,pricePlaceholder:qX,priceLabel:zX,unitPrice
33Label:VX,incompatibilityMessage:jX,select:HX,percentSavings:GX,sale:WX,amountSavings:QX,amountSavingsWithSale:ZX,seeMoreQuantities:KX,required:YX,sample:XX,estimatedQuantity:JX,numberOfRecipients:eJ,recommendedCallout:tJ,newCallout:rJ,incompatibleLabel:nJ,outOfStockCallout:iJ,dismissAlert:aJ,unwindingMessage_1:oJ,unwindingMessage_2:sJ,unwindingMessage_3:cJ,unwindingMessage_more:lJ,unwindingAlertMessage_1:uJ,unwindingAlertMessage_2:dJ,unwindingAlertMessage_3:pJ,unwindingAlertMessage_more:fJ,fullRangedHelperText:gJ,rangePartialRangedHelperText:mJ,fullRangedHelperTextForBooklets:hJ,rangePartialRangedHelperTextForBooklets:vJ,rangedGeneralInputError:yJ,rangedBetweenRangesError:bJ,rangedDecimalPrecisionError:wJ,rangedMinInputValueError:TJ,rangedMaxInputValueError:EJ,rangedNotANumberError:SJ,requiredAttributeFieldError:PJ,rangedBetweenRangesErrorForBooklets:CJ,rangedMinInputValueErrorForBooklets:IJ,rangedMaxInputValueErrorForBooklets:xJ,requiredAttributeFieldErrorForBooklets:_J,requiredInformationToast:kJ,quantityComboboxHelperText:MJ,quantityComboboxShowPricingGuide:OJ,quantityComboboxPricingGuide:AJ,quantityComboboxFlyoutConfirmation:$J,quantityComboboxFlyoutCancel:RJ,quantityComboboxPlaceholderText:NJ,quantityComboboxBelowMinError:DJ,quantityComboboxAboveMaxError:LJ,quantityComboboxBetweenRangeError:UJ,quantityComboboxInvalidInputError:FJ},qJ="M\xE4\xE4r\xE4",zJ="Valitse haluamasi m\xE4\xE4r\xE4",VJ="Valitse t\xE4m\xE4 m\xE4\xE4r\xE4",jJ="Sulje",HJ="...",GJ="Hinta",WJ="Yksikk\xF6hinta",QJ="Ei saatavilla muiden valintojen kohdalla: ",ZJ="Valitse...",KJ="{{{PERCENT}}} %:n s\xE4\xE4st\xF6t",YJ="Ale",XJ="{{{AMOUNT}}} %:n s\xE4\xE4st\xF6t/kpl",JJ="{{{AMOUNT}}} %:n s\xE4\xE4st\xF6t/kpl + ale",eee="Katso lis\xE4\xE4 kappalem\xE4\xE4ri\xE4",tee="Vaaditaan",ree="N\xE4ytekappale",nee="Arvioitu m\xE4\xE4r\xE4",iee="{{{COUNT}}} Vastaanottajat",aee="Suositellut",oee="Uutta",see="Yhteensopimaton",cee="Tilap\xE4isesti lopussa",lee="Ohita ilmoitus",uee="Yhteensopimaton seuraavien kanssa: {{{ATTRIBUTE1}}} {{{OPTION1}}}.",dee="Yhteensopimaton seuraavien kanssa: {{{ATTRIBUTE1}}} {{{OPTION1}}} ja {{{ATTRIBUTE2}}} {{{OPTION2}}}.",pee="Yhteensopimaton seuraavien kanssa: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} ja {{{ATTRIBUTE3}}} {{{OPTION3}}}.",fee="Yhteensopimaton useamman kuin {{{ATTRIBUTE_COUNT}}} vaihtoehdon kanssa.",gee="Yhteensopiva seuraavien kanssa: {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} poistettu.",mee="Yhteensopiva seuraavien kanssa: {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} ja {{{ATTRIBUTE2}}} {{{OPTION2}}} poistettu.",hee="Yhteensopiva seuraavien kanssa: {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} ja {{{ATTRIBUTE3}}} {{{OPTION3}}} poistettu.",vee="Yhteensopiva seuraavien kanssa: {{{ATTRIBUTE}}} {{{OPTION}}}: Useampi kuin {{{ATTRIBUTE_COUNT}}} vaihtoehtoa poistettu.",yee="{{{MINIMUM}}} {{{UNIT}}} ja {{{MAXIMUM}}} {{{UNIT}}} v\xE4lilt\xE4",bee="V\xE4hint\xE4\xE4n {{{MINIMUM}}} {{{UNIT}}}",wee="Sy\xF6t\xE4 arvo v\xE4lilt\xE4 {{{MINIMUM}}}\u2013{{{MAXIMUM}}} sivua, kansi mukaan lukien ",Tee="V\xE4hint\xE4\xE4n {{{MINIMUM}}} sivua, kansi mukaan lukien ",Eee="Tieto on virheellinen",See="L\xE4himm\xE4t numerot ovat {{{LOWER}}} {{{UNIT}}} ja {{{HIGHER}}} {{{UNIT}}}",Pee="Luku ei saa ylitt\xE4\xE4 kahdeksaa desimaalia",Cee="V\xE4himm\xE4isluku on {{{MINIMUM}}} {{{UNIT}}}",Iee="Enimm\xE4isluku on {{{MAXIMUM}}} {{{UNIT}}}",xee="Sy\xF6tteen on oltava numero",_ee="Anna arvo v\xE4lill\xE4 {{{LOWER}}} ja {{{HIGHER}}} {{{UNIT}}}",kee="L\xE4himm\xE4t numerot ovat {{{LOWER}}} sivua ja {{{HIGHER}}} sivua ",Mee="V\xE4himm\xE4isluku on {{{MINIMUM}}} sivua ",Oee="Enimm\xE4isluku on {{{MAXIMUM}}} sivua ",Aee="Sy\xF6t\xE4 arvo v\xE4lilt\xE4 {{{LOWER}}}\u2013{{{HIGHER}}} sivua, kansi mukaan lukien ",$ee="Anna kaikki tarvittavat tiedot.",Ree="Minimi: {{{MINIMUM}}} {{{UNIT}}} Maksimi: {{{MAXIMUM}}} {{{UNIT}}}",Nee="N\xE4yt\xE4 hinnoitteluopas",Dee="Hinnoitteluopas",Lee="Vahvista",Uee="Peruuta",Fee="Anna lukum\xE4\xE4r\xE4...",Bee="Minimi: {{{MINIMUM}}} {{{UNIT}}}",qee="Maksimi: {{{MAXIMUM}}} {{{UNIT}}}",zee="Valitse {{{LOWER}}} {{{UNIT}}} tai {{{HIGHER}}} {{{UNIT}}}",Vee="Anna numero",jee={quantityLabel:qJ,quantityFlyoutHeader:zJ,quantityFlyoutCTA:VJ,closeButton:jJ,pricePlaceholder:HJ,priceLabel:GJ,unitPrice
33Label:WJ,incompatibilityMessage:QJ,select:ZJ,percentSavings:KJ,sale:YJ,amountSavings:XJ,amountSavingsWithSale:JJ,seeMoreQuantities:eee,required:tee,sample:ree,estimatedQuantity:nee,numberOfRecipients:iee,recommendedCallout:aee,newCallout:oee,incompatibleLabel:see,outOfStockCallout:cee,dismissAlert:lee,unwindingMessage_1:uee,unwindingMessage_2:dee,unwindingMessage_3:pee,unwindingMessage_more:fee,unwindingAlertMessage_1:gee,unwindingAlertMessage_2:mee,unwindingAlertMessage_3:hee,unwindingAlertMessage_more:vee,fullRangedHelperText:yee,rangePartialRangedHelperText:bee,fullRangedHelperTextForBooklets:wee,rangePartialRangedHelperTextForBooklets:Tee,rangedGeneralInputError:Eee,rangedBetweenRangesError:See,rangedDecimalPrecisionError:Pee,rangedMinInputValueError:Cee,rangedMaxInputValueError:Iee,rangedNotANumberError:xee,requiredAttributeFieldError:_ee,rangedBetweenRangesErrorForBooklets:kee,rangedMinInputValueErrorForBooklets:Mee,rangedMaxInputValueErrorForBooklets:Oee,requiredAttributeFieldErrorForBooklets:Aee,requiredInformationToast:$ee,quantityComboboxHelperText:Ree,quantityComboboxShowPricingGuide:Nee,quantityComboboxPricingGuide:Dee,quantityComboboxFlyoutConfirmation:Lee,quantityComboboxFlyoutCancel:Uee,quantityComboboxPlaceholderText:Fee,quantityComboboxBelowMinError:Bee,quantityComboboxAboveMaxError:qee,quantityComboboxBetweenRangeError:zee,quantityComboboxInvalidInputError:Vee},Hee="Quantit\xE9",Gee="Choisissez la quantit\xE9",Wee="S\xE9lectionner cette quantit\xE9",Qee="Fermer",Zee="...",Kee="Prix",Yee="Prix \u200B\u200Bunitaire",Xee="Non disponible avec les autres s\xE9lections\xA0: ",Jee="S\xE9lectionnez...",ete="{{{PERCENT}}}% d\u2019\xE9conomie",tte="solde",rte="{{{AMOUNT}}}% d\u2019\xE9conomie/unit\xE9",nte="{{{AMOUNT}}}% d\u2019\xE9conomie/unit\xE9 + solde",ite="Afficher plus de quantit\xE9s",ate="Obligatoire",ote="\xC9chantillon",ste="Quantit\xE9 estim\xE9e",cte="{{{COUNT}}}\xA0destinataires",lte="Recommand\xE9",ute="Nouveau",dte="Incompatible",pte="En rupture de stock",fte="Ignorer l\u2019alerte",gte="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}}.",mte="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}} et {{{ATTRIBUTE2}}} {{{OPTION2}}}.",hte="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} et {{{ATTRIBUTE3}}} {{{OPTION3}}}.",vte="Incompatible avec plus de {{{ATTRIBUTE_COUNT}}}\xA0options.",yte="Pour \xEAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}}\xA0: {{{ATTRIBUTE1}}} {{{OPTION1}}} a \xE9t\xE9 d\xE9s\xE9lectionn\xE9.",bte="Pour \xEAtre compatibles avec {{{ATTRIBUTE}}} {{{OPTION}}}\xA0: {{{ATTRIBUTE1}}} {{{OPTION1}}} et {{{ATTRIBUTE2}}} {{{OPTION2}}} ont \xE9t\xE9 d\xE9s\xE9lectionn\xE9s.",wte="Pour \xEAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}}\xA0: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} et {{{ATTRIBUTE3}}} {{{OPTION3}}} ont \xE9t\xE9 d\xE9s\xE9lectionn\xE9s.",Tte="Pour \xEAtre compatibles avec {{{ATTRIBUTE}}} {{{OPTION}}}\xA0: plus de {{{ATTRIBUTE_COUNT}}}\xA0options ont \xE9t\xE9 d\xE9s\xE9lectionn\xE9es.",Ete="{{{MINIMUM}}} {{{UNIT}}} \xE0 {{{MAXIMUM}}} {{{UNIT}}}",Ste="Au moins {{{MINIMUM}}} {{{UNIT}}}",Pte="Saisissez un nombre de pages compris entre {{{MINIMUM}}} et {{{MAXIMUM}}}, couverture incluse ",Cte="Au moins {{{MINIMUM}}}\xA0pages, couverture incluse ",Ite="L\u2019entr\xE9e n\u2019est pas valide",xte="Les nombres les plus proches sont {{{LOWER}}} {{{UNIT}}} et {{{HIGHER}}} {{{UNIT}}}",_te="Le nombre ne peut pas d\xE9passer 8\xA0d\xE9cimales",kte="Le nombre minimum est de {{{MINIMUM}}} {{{UNIT}}}",Mte="Le nombre maximum est de {{{MAXIMUM}}} {{{UNIT}}}",Ote="L'entr\xE9e doit \xEAtre un nombre",Ate="Saisir une valeur comprise entre {{{LOWER}}} et {{{HIGHER}}} {{{UNIT}}}",$te="Les nombres de pages les plus proches sont {{{LOWER}}}\xA0et {{{HIGHER}}} ",Rte="Le nombre minimum de pages est de {{{MINIMUM}}} ",Nte="Le nombre maximum de pages est de {{{MAXIMUM}}} ",Dte="Saisissez un nombre de pages compris entre {{{LOWER}}} et {{{HIGHER}}}, couverture incluse ",Lte="Veuillez fournir toutes les informations requises.",Ute="Minimum\xA0: {{{MINIMUM}}} {{{UNIT}}}Maximum\xA0: {{{MAXIMUM}}} {{{UNIT}}}",Fte="Afficher le guide des prix",Bte="Guide des prix",qte="Confirmer",zte="Annuler",Vte="Saisir la quantit\xE9...",jte="Minimum\xA0: {{{MINIMUM}}} {{{UNIT}}}",Hte="Maximum\xA0: {{{MAXIMUM}}} {{{UNIT}}}",Gte="Veuillez choisir {{{LOWER}}} ou {{{UNIT}}} {{{HIGHER}}} {{{UNIT}}}",Wte="Veuillez saisir un nombre",Qte={quantityLabel:Hee,quantityFlyoutHeader:Gee,quantityFlyoutCTA:Wee,closeButton:Qee,pricePlaceholder:Zee,priceLabel:Kee,unitPrice
33Label:Yee,incompatibilityMessage:Xee,select:Jee,percentSavings:ete,sale:tte,amountSavings:rte,amountSavingsWithSale:nte,seeMoreQuantities:ite,required:ate,sample:ote,estimatedQuantity:ste,numberOfRecipients:cte,recommendedCallout:lte,newCallout:ute,incompatibleLabel:dte,outOfStockCallout:pte,dismissAlert:fte,unwindingMessage_1:gte,unwindingMessage_2:mte,unwindingMessage_3:hte,unwindingMessage_more:vte,unwindingAlertMessage_1:yte,unwindingAlertMessage_2:bte,unwindingAlertMessage_3:wte,unwindingAlertMessage_more:Tte,fullRangedHelperText:Ete,rangePartialRangedHelperText:Ste,fullRangedHelperTextForBooklets:Pte,rangePartialRangedHelperTextForBooklets:Cte,rangedGeneralInputError:Ite,rangedBetweenRangesError:xte,rangedDecimalPrecisionError:_te,rangedMinInputValueError:kte,rangedMaxInputValueError:Mte,rangedNotANumberError:Ote,requiredAttributeFieldError:Ate,rangedBetweenRangesErrorForBooklets:$te,rangedMinInputValueErrorForBooklets:Rte,rangedMaxInputValueErrorForBooklets:Nte,requiredAttributeFieldErrorForBooklets:Dte,requiredInformationToast:Lte,quantityComboboxHelperText:Ute,quantityComboboxShowPricingGuide:Fte,quantityComboboxPricingGuide:Bte,quantityComboboxFlyoutConfirmation:qte,quantityComboboxFlyoutCancel:zte,quantityComboboxPlaceholderText:Vte,quantityComboboxBelowMinError:jte,quantityComboboxAboveMaxError:Hte,quantityComboboxBetweenRangeError:Gte,quantityComboboxInvalidInputError:Wte},Zte="Quantit\xE9",Kte="Choisissez la quantit\xE9",Yte="Choisir cette quantit\xE9",Xte="Fermer",Jte="...",ere="Prix",tre="Prix unitaire",rre="Non disponible avec vos autres choix\xA0: ",nre="S\xE9lectionner...",ire="{{{PERCENT}}}% \xE9conomis\xE9s",are="offre exclusive",ore="{{{AMOUNT}}} \xE9conomis\xE9s / unit\xE9",sre="{{{AMOUNT}}} \xE9conomis\xE9s / unit\xE9 + promotion",cre="Voir plus de quantit\xE9s",lre="Obligatoire",ure="\xC9chantillon statistique",dre="Quantit\xE9 estim\xE9e",pre="{{{COUNT}}} Destinataires",fre="Recommand\xE9",gre="Nouveau",mre="Incompatible",hre="En rupture de stock",vre="Ignorer le message d\u2019alerte",yre="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}}.",bre="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}} et {{{ATTRIBUTE2}}} {{{OPTION2}}}.",wre="Incompatible avec {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} et {{{ATTRIBUTE3}}} {{{OPTION3}}}.",Tre="Incompatible avec plus de {{{ATTRIBUTE_COUNT}}} options.",Ere="\xCAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}} : {{{ATTRIBUTE1}}} {{{OPTION1}}} n'a pas \xE9t\xE9 s\xE9lectionn\xE9.",Sre="\xCAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}} : {{{ATTRIBUTE1}}} {{{OPTION1}}} et {{{ATTRIBUTE2}}} {{{OPTION2}}} n'a pas \xE9t\xE9 s\xE9lectionn\xE9.",Pre="\xCAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}} : {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} et {{{ATTRIBUTE3}}} {{{OPTION3}}} n'a pas \xE9t\xE9 s\xE9lectionn\xE9.",Cre="\xCAtre compatible avec {{{ATTRIBUTE}}} {{{OPTION}}} : Plus de {{{ATTRIBUTE_COUNT}}} n'ont pas \xE9t\xE9 s\xE9lectionn\xE9es.",Ire="{{{MINIMUM}}}\xA0{{{UNIT}}} \xE0 {{{MAXIMUM}}}\xA0{{{UNIT}}}",xre="Au moins {{{MINIMUM}}}\xA0{{{UNIT}}}",_re="Saisissez une valeur comprise entre {{{MINIMUM}}} \xE0 {{{MAXIMUM}}} pages, couverture comprise ",kre="Au moins {{{MINIMUM}}} pages, couverture comprise ",Mre="Entr\xE9e non valide",Ore="Les valeurs les plus proches sont {{{LOWER}}} {{{UNIT}}} et {{{HIGHER}}} {{{UNIT}}}",Are="Le nombre ne peut pas d\xE9passer 8\xA0d\xE9cimales",$re="Nombre minimum : {{{MINIMUM}}} {{{UNIT}}}",Rre="Nombre maximum : {{{MAXIMUM}}} {{{UNIT}}}",Nre="La valeur saisie doit \xEAtre un nombre",Dre="Saisissez une valeur comprise entre {{{LOWER}}} et {{{HIGHER}}} {{{UNIT}}}",Lre="Les valeurs les plus proches sont {{{LOWER}}} pages et {{{HIGHER}}} pages ",Ure="Nombre minimum : {{{MINIMUM}}} pages ",Fre="Nombre maximum : {{{MAXIMUM}}} pages ",Bre="Saisissez une valeur comprise entre {{{LOWER}}} \xE0 {{{HIGHER}}} pages, couverture comprise ",qre="Veuillez fournir toutes les informations requises.",zre="Minimum : {{{MINIMUM}}} {{{UNIT}}} Maximum : {{{MAXIMUM}}} {{{UNIT}}}",Vre="Afficher le guide des prix",jre="Guide des prix",Hre="Confirmer",Gre="Annuler",Wre="Saisissez la quantit\xE9...",Qre="Minimum : {{{MINIMUM}}} {{{UNIT}}}",Zre="Maximum : {{{MAXIMUM}}} {{{UNIT}}}",Kre="Veuillez choisir {{{LOWER}}} {{{UNIT}}} ou {{{HIGHER}}} {{{UNIT}}}",Yre="Veuillez saisir un chiffre",cb={quantityLabel:Zte,quantityFlyoutHeader:Kte,quantityFlyoutCTA:Yte,closeButton:Xte,pricePlaceholder:Jte,priceLabel:ere,unitPrice
33Label:tre,incompatibilityMessage:rre,select:nre,percentSavings:ire,sale:are,amountSavings:ore,amountSavingsWithSale:sre,seeMoreQuantities:cre,required:lre,sample:ure,estimatedQuantity:dre,numberOfRecipients:pre,recommendedCallout:fre,newCallout:gre,incompatibleLabel:mre,outOfStockCallout:hre,dismissAlert:vre,unwindingMessage_1:yre,unwindingMessage_2:bre,unwindingMessage_3:wre,unwindingMessage_more:Tre,unwindingAlertMessage_1:Ere,unwindingAlertMessage_2:Sre,unwindingAlertMessage_3:Pre,unwindingAlertMessage_more:Cre,fullRangedHelperText:Ire,rangePartialRangedHelperText:xre,fullRangedHelperTextForBooklets:_re,rangePartialRangedHelperTextForBooklets:kre,rangedGeneralInputError:Mre,rangedBetweenRangesError:Ore,rangedDecimalPrecisionError:Are,rangedMinInputValueError:$re,rangedMaxInputValueError:Rre,rangedNotANumberError:Nre,requiredAttributeFieldError:Dre,rangedBetweenRangesErrorForBooklets:Lre,rangedMinInputValueErrorForBooklets:Ure,rangedMaxInputValueErrorForBooklets:Fre,requiredAttributeFieldErrorForBooklets:Bre,requiredInformationToast:qre,quantityComboboxHelperText:zre,quantityComboboxShowPricingGuide:Vre,quantityComboboxPricingGuide:jre,quantityComboboxFlyoutConfirmation:Hre,quantityComboboxFlyoutCancel:Gre,quantityComboboxPlaceholderText:Wre,quantityComboboxBelowMinError:Qre,quantityComboboxAboveMaxError:Zre,quantityComboboxBetweenRangeError:Kre,quantityComboboxInvalidInputError:Yre},Xre="Quantit\xE0",Jre="Scegli una quantit\xE0",ene="Seleziona questa quantit\xE0",tne="Chiudi",rne="...",nne="Prezzo",ine="Prezzo unitario",ane="Ora disponibile con altre opzioni selezionate: ",one="Seleziona...",sne="{{{PERCENT}}}% risparmiato",cne="saldi",lne="{{{AMOUNT}}}
33 risparmio / unit\xE0",une="{{{AMOUNT}}} risparmio / unit\xE0 + offerta",dne="Vedi altre quantit\xE0",pne="Obbligatorio",fne="Campione",gne="Quantit\xE0 stimata",mne="{{{COUNT}}} Destinatari",hne="Scelta consigliata",vne="Novit\xE0",yne="Incompatibile",bne="Articolo non disponibile",wne="Ignora avviso",Tne="Incompatibile con {{{ATTRIBUTE1}}} {{{OPTION1}}}.",Ene="Incompatibile con {{{ATTRIBUTE1}}} {{{OPTION1}}} e {{{ATTRIBUTE2}}} {{{OPTION2}}}.",Sne="Incompatibile con {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} e {{{ATTRIBUTE3}}} {{{OPTION3}}}.",Pne="Incompatibile con pi\xF9 di {{{ATTRIBUTE_COUNT}}} opzioni.",Cne="Per essere compatibile con {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} \xE8 stato deselezionato.",Ine="Per essere compatibile con {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} e {{{ATTRIBUTE2}}} {{{OPTION2}}} sono stati deselezionati.",xne="Per essere compatibile con {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} e {{{ATTRIBUTE3}}} {{{OPTION3}}} sono stati deselezionati.",_ne="Per essere compatibile con {{{ATTRIBUTE}}} {{{OPTION}}}: Sono state deselezionate pi\xF9 di {{{ATTRIBUTE_COUNT}}} opzioni.",kne="Da {{{MINIMUM}}} {{{UNIT}}} a {{{MAXIMUM}}} {{{UNIT}}}",Mne="Almeno {{{MINIMUM}}} {{{UNIT}}}",One="Inserisci un valore tra {{{MINIMUM}}} e {{{MAXIMUM}}} pagine, inclusa la copertina ",Ane="Almeno {{{MINIMUM}}} pagine, inclusa la copertina ",$ne="Inserimento non valido",Rne="I numeri pi\xF9 vicini sono {{{LOWER}}} {{{UNIT}}} e {{{HIGHER}}} {{{UNIT}}}",Nne="Il numero non pu\xF2 avere pi\xF9 di 8 decimali",Dne="Il numero minimo \xE8 {{{MINIMUM}}} {{{UNIT}}}",Lne="Il numero massimo \xE8 {{{MAXIMUM}}} {{{UNIT}}}",Une="Il valore inserito deve essere un numero",Fne="Inserisci un valore compreso tra {{{LOWER}}} e {{{HIGHER}}} {{{UNIT}}}",Bne="I numeri pi\xF9 vicini sono {{{LOWER}}} pagine e {{{HIGHER}}} pagine ",qne="Il numero minimo \xE8 {{{MINIMUM}}} pagine ",zne="Il numero massimo \xE8 {{{MAXIMUM}}} pagine ",Vne="Inserisci un valore tra {{{LOWER}}} e {{{HIGHER}}} inclusa la copertina ",jne="Inserisci tutte le informazioni necessarie.",Hne="Minimo: {{{MINIMUM}}} {{{UNIT}}} Massimo: {{{MAXIMUM}}} {{{UNIT}}}",Gne="Mostra guida ai prezzi",Wne="Guida ai prezzi",Qne="Conferma",Zne="Annulla",Kne="Inserisci quantit\xE0...",Yne="Minimo: {{{MINIMUM}}} {{{UNIT}}}",Xne="Massimo: {{{MAXIMUM}}} {{{UNIT}}}",Jne="Selezionare {{{LOWER}}} {{{UNIT}}} o {{{HIGHER}}} {{{UNIT}}}",eie="Inserire un numero",i_={quantityLabel:Xre,quantityFlyoutHeader:Jre,quantityFlyoutCTA:ene,closeButton:tne,pricePlaceholder:rne,priceLabel:nne,unitPrice
33Label:ine,incompatibilityMessage:ane,select:one,percentSavings:sne,sale:cne,amountSavings:lne,amountSavingsWithSale:une,seeMoreQuantities:dne,required:pne,sample:fne,estimatedQuantity:gne,numberOfRecipients:mne,recommendedCallout:hne,newCallout:vne,incompatibleLabel:yne,outOfStockCallout:bne,dismissAlert:wne,unwindingMessage_1:Tne,unwindingMessage_2:Ene,unwindingMessage_3:Sne,unwindingMessage_more:Pne,unwindingAlertMessage_1:Cne,unwindingAlertMessage_2:Ine,unwindingAlertMessage_3:xne,unwindingAlertMessage_more:_ne,fullRangedHelperText:kne,rangePartialRangedHelperText:Mne,fullRangedHelperTextForBooklets:One,rangePartialRangedHelperTextForBooklets:Ane,rangedGeneralInputError:$ne,rangedBetweenRangesError:Rne,rangedDecimalPrecisionError:Nne,rangedMinInputValueError:Dne,rangedMaxInputValueError:Lne,rangedNotANumberError:Une,requiredAttributeFieldError:Fne,rangedBetweenRangesErrorForBooklets:Bne,rangedMinInputValueErrorForBooklets:qne,rangedMaxInputValueErrorForBooklets:zne,requiredAttributeFieldErrorForBooklets:Vne,requiredInformationToast:jne,quantityComboboxHelperText:Hne,quantityComboboxShowPricingGuide:Gne,quantityComboboxPricingGuide:Wne,quantityComboboxFlyoutConfirmation:Qne,quantityComboboxFlyoutCancel:Zne,quantityComboboxPlaceholderText:Kne,quantityComboboxBelowMinError:Yne,quantityComboboxAboveMaxError:Xne,quantityComboboxBetweenRangeError:Jne,quantityComboboxInvalidInputError:eie},tie="Antall",rie="Velg antall",nie="Velg dette antallet",iie="Lukk",aie="...",oie="Pris",sie="Enhetspris",cie="Ikke tilgjengelig med andre valg: ",lie="Velg...",uie="{{{PERCENT}}}\xA0% besparelse",die="salg",pie="{{{AMOUNT}}} besparelse/enhet",fie="{{{AMOUNT}}} besparelse/enhet + salg",gie="Se flere antall",mie="Obligatorisk",hie="Pr\xF8ve",vie="Estimert antall",yie="{{{COUNT}}} Mottakere",bie="Anbefalt",wie="Nyhet",Tie="Uforenlig",Eie="Utsolgt",Sie="Avvis varsel",Pie="Uforenlig med {{{ATTRIBUTE1}}} {{{OPTION1}}}.",Cie="Uforenlig med {{{ATTRIBUTE1}}} {{{OPTION1}}} og {{{ATTRIBUTE2}}} {{{OPTION2}}}.",Iie="Uforenlig med {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} og {{{ATTRIBUTE3}}} {{{OPTION3}}}.",xie="Uforenlig med mer enn {{{ATTRIBUTE_COUNT}}} alternativer.",_ie="\xC5 v\xE6re forenlig med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} ble valgt bort.",kie="\xC5 v\xE6re forenlig med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} og {{{ATTRIBUTE2}}} {{{OPTION2}}} ble valgt bort.",Mie="\xC5 v\xE6re forenlig med {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} og {{{ATTRIBUTE3}}} {{{OPTION3}}} ble valgt bort.",Oie="\xC5 v\xE6re forenlig med {{{ATTRIBUTE}}} {{{OPTION}}}: Mer enn {{{ATTRIBUTE_COUNT}}} alternativer ble valgt bort.",Aie="{{{MINIMUM}}} {{{UNIT}}} til {{{MAXIMUM}}} {{{UNIT}}}",$ie="Minst {{{MINIMUM}}} {{{UNIT}}}",Rie="Skriv inn en verdi mellom {{{MINIMUM}}} og {{{MAXIMUM}}} sider, inkludert omslag ",Nie="Minst {{{MINIMUM}}} sider, inkludert omslag ",Die="Inndata er ugyldig",Lie="De n\xE6rmeste tallene er {{{LOWER}}} {{{UNIT}}} og {{{HIGHER}}} {{{UNIT}}}",Uie="Tallet kan ikke ha mer enn 8 desimaler",Fie="Minimumsantall er {{{MINIMUM}}} {{{UNIT}}}",Bie="Maksimalt antall er {{{MAXIMUM}}} {{{UNIT}}}",qie="Inndata m\xE5 v\xE6re et tall",zie="Skriv inn en verdi mellom {{{LOWER}}} og {{{HIGHER}}} {{{UNIT}}}",Vie="De n\xE6rmeste antallene er {{{LOWER}}} sider og {{{HIGHER}}} sider ",jie="Minimumsantall er {{{MINIMUM}}} sider ",Hie="Maksimalt antall er {{{MAXIMUM}}} sider ",Gie="Skriv inn en verdi mellom {{{LOWER}}} og {{{HIGHER}}} sider, inkludert omslag ",Wie="Angi alle opplysninger som kreves.",Qie="Minimum: {{{MINIMUM}}} {{{UNIT}}} Maksimum: {{{MAXIMUM}}} {{{UNIT}}}",Zie="Vis prisoversikt",Kie="Prisoversikt",Yie="Bekreft",Xie="Avbryt",Jie="Angi antall...",eae="Minimum: {{{MINIMUM}}} {{{UNIT}}}",tae="Maksimum: {{{MAXIMUM}}} {{{UNIT}}}",rae="Velg {{{LOWER}}} {{{UNIT}}} eller {{{HIGHER}}} {{{UNIT}}}",nae="Angi et nummer",iae={quantityLabel:tie,quantityFlyoutHeader:rie,quantityFlyoutCTA:nie,closeButton:iie,pricePlaceholder:aie,priceLabel:oie,unitPrice
33Label:sie,incompatibilityMessage:cie,select:lie,percentSavings:uie,sale:die,amountSavings:pie,amountSavingsWithSale:fie,seeMoreQuantities:gie,required:mie,sample:hie,estimatedQuantity:vie,numberOfRecipients:yie,recommendedCallout:bie,newCallout:wie,incompatibleLabel:Tie,outOfStockCallout:Eie,dismissAlert:Sie,unwindingMessage_1:Pie,unwindingMessage_2:Cie,unwindingMessage_3:Iie,unwindingMessage_more:xie,unwindingAlertMessage_1:_ie,unwindingAlertMessage_2:kie,unwindingAlertMessage_3:Mie,unwindingAlertMessage_more:Oie,fullRangedHelperText:Aie,rangePartialRangedHelperText:$ie,fullRangedHelperTextForBooklets:Rie,rangePartialRangedHelperTextForBooklets:Nie,rangedGeneralInputError:Die,rangedBetweenRangesError:Lie,rangedDecimalPrecisionError:Uie,rangedMinInputValueError:Fie,rangedMaxInputValueError:Bie,rangedNotANumberError:qie,requiredAttributeFieldError:zie,rangedBetweenRangesErrorForBooklets:Vie,rangedMinInputValueErrorForBooklets:jie,rangedMaxInputValueErrorForBooklets:Hie,requiredAttributeFieldErrorForBooklets:Gie,requiredInformationToast:Wie,quantityComboboxHelperText:Qie,quantityComboboxShowPricingGuide:Zie,quantityComboboxPricingGuide:Kie,quantityComboboxFlyoutConfirmation:Yie,quantityComboboxFlyoutCancel:Xie,quantityComboboxPlaceholderText:Jie,quantityComboboxBelowMinError:eae,quantityComboboxAboveMaxError:tae,quantityComboboxBetweenRangeError:rae,quantityComboboxInvalidInputError:nae},aae="Aantal",oae="Kies het aantal",sae="Dit aantal selecteren",cae="Sluiten",lae="...",uae="Prijs",dae="Prijs per stuk",pae="Niet beschikbaar met andere opties: ",fae="Selecteren...",gae="{{{PERCENT}}}% korting",mae="Sale",hae="{{{AMOUNT}}} korting per stuk",vae="{{{AMOUNT}}} korting per stuk + sale",yae="Meer hoeveelheden weergeven",bae="Verplicht",wae="Proefmonster",Tae="Geschat aantal",Eae="{{{COUNT}}} ontvangers",Sae="Aanbevolen",Pae="Nieuw",Cae="Incompatibel",Iae="Niet op voorraad",xae="Melding sluiten",_ae="Incompatibel met {{{ATTRIBUTE1}}} {{{OPTION1}}}.",kae="Incompatibel met {{{ATTRIBUTE1}}} {{{OPTION1}}} en {{{ATTRIBUTE2}}} {{{OPTION2}}}.",Mae="Incompatibel met {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} en {{{ATTRIBUTE3}}} {{{OPTION3}}}.",Oae="Incompatibel met meer dan {{{ATTRIBUTE_COUNT}}} opties.",Aae="Om compatibel te zijn met {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} is gedeselecteerd.",$ae="Om compatibel te zijn met {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} en {{{ATTRIBUTE2}}} {{{OPTION2}}} zijn gedeselecteerd.",Rae="Om compatibel te zijn met {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} en {{{ATTRIBUTE3}}} {{{OPTION3}}} zijn gedeselecteerd.",Nae="Om compatibel te zijn met {{{ATTRIBUTE}}} {{{OPTION}}}: meer dan {{{ATTRIBUTE_COUNT}}} opties zijn gedeselecteerd.",Dae="{{{MINIMUM}}} {{{UNIT}}} tot {{{MAXIMUM}}} {{{UNIT}}}",Lae="Minimaal {{{MINIMUM}}} {{{UNIT}}}",Uae="Voer een waarde van {{{MINIMUM}}} tot {{{MAXIMUM}}} pagina's in, inclusief omslag ",Fae="Ten minste {{{MINIMUM}}} pagina's, inclusief omslag ",Bae="Invoer is ongeldig",qae="Dichtstbijzijnde getallen zijn {{{LOWER}}} {{{UNIT}}} en {{{HIGHER}}} {{{UNIT}}}",zae="Getal kan niet meer dan 8 decimalen hebben",Vae="Het minimumgetal is {{{MINIMUM}}} {{{UNIT}}}",jae="Het maximumgetal is {{{MAXIMUM}}} {{{UNIT}}}",Hae="Invoer moet een getal zijn",Gae="Voer een waarde in tussen {{{LOWER}}} en {{{HIGHER}}} {{{UNIT}}}",Wae="Dichtstbijzijnde getallen zijn {{{LOWER}}} pagina's en {{{HIGHER}}} pagina's ",Qae="Het minimumgetal is {{{MINIMUM}}} pagina's ",Zae="Het maximumgetal is {{{MAXIMUM}}} pagina's ",Kae="Voer een waarde van {{{LOWER}}} tot {{{HIGHER}}} pagina's in, inclusief omslag ",Yae="Vul alle vereiste gegevens in.",Xae="Minimum: {{{MINIMUM}}} {{{UNIT}}} Maximum: {{{MAXIMUM}}} {{{UNIT}}}",Jae="Prijsgids tonen",eoe="Prijsgids",toe="Bevestigen",roe="Annuleren",noe="Vul hoeveelheid in...",ioe="Minimum: {{{MINIMUM}}} {{{UNIT}}}",aoe="Maximum: {{{MAXIMUM}}} {{{UNIT}}}",ooe="Kies {{{LOWER}}} {{{UNIT}}} of {{{HIGHER}}} {{{UNIT}}}",soe="Voer een getal in",a_={quantityLabel:aae,quantityFlyoutHeader:oae,quantityFlyoutCTA:sae,closeButton:cae,pricePlaceholder:lae,priceLabel:uae,unitPrice
33Label:dae,incompatibilityMessage:pae,select:fae,percentSavings:gae,sale:mae,amountSavings:hae,amountSavingsWithSale:vae,seeMoreQuantities:yae,required:bae,sample:wae,estimatedQuantity:Tae,numberOfRecipients:Eae,recommendedCallout:Sae,newCallout:Pae,incompatibleLabel:Cae,outOfStockCallout:Iae,dismissAlert:xae,unwindingMessage_1:_ae,unwindingMessage_2:kae,unwindingMessage_3:Mae,unwindingMessage_more:Oae,unwindingAlertMessage_1:Aae,unwindingAlertMessage_2:$ae,unwindingAlertMessage_3:Rae,unwindingAlertMessage_more:Nae,fullRangedHelperText:Dae,rangePartialRangedHelperText:Lae,fullRangedHelperTextForBooklets:Uae,rangePartialRangedHelperTextForBooklets:Fae,rangedGeneralInputError:Bae,rangedBetweenRangesError:qae,rangedDecimalPrecisionError:zae,rangedMinInputValueError:Vae,rangedMaxInputValueError:jae,rangedNotANumberError:Hae,requiredAttributeFieldError:Gae,rangedBetweenRangesErrorForBooklets:Wae,rangedMinInputValueErrorForBooklets:Qae,rangedMaxInputValueErrorForBooklets:Zae,requiredAttributeFieldErrorForBooklets:Kae,requiredInformationToast:Yae,quantityComboboxHelperText:Xae,quantityComboboxShowPricingGuide:Jae,quantityComboboxPricingGuide:eoe,quantityComboboxFlyoutConfirmation:toe,quantityComboboxFlyoutCancel:roe,quantityComboboxPlaceholderText:noe,quantityComboboxBelowMinError:ioe,quantityComboboxAboveMaxError:aoe,quantityComboboxBetweenRangeError:ooe,quantityComboboxInvalidInputError:soe},coe="Quantidade",loe="Escolha a quantidade",uoe="Selecionar esta quantidade",doe="Fechar",poe="...",foe="Pre\xE7o",goe="Pre\xE7o \xE0 unidade",moe="N\xE3o dispon\xEDvel com outras sele\xE7\xF5es: ",hoe="Selecionar...",voe="Poupan\xE7a de {{{PERCENT}}}%",yoe="venda",boe="Poupan\xE7a de {{{AMOUNT}}} / unidade",woe="Poupan\xE7a de {{{AMOUNT}}} / unidade+ promo\xE7\xE3o",Toe="Ver mais quantidades",Eoe="Obrigat\xF3rio",Soe="Amostra",Poe="Quantidade estimada",Coe="{{{COUNT}}} destinat\xE1rios",Ioe="Recomendado",xoe="Novidade",_oe="Incompat\xEDvel",koe="Esgotado",Moe="Dispensar alerta",Ooe="Incompat\xEDvel com {{{ATTRIBUTE1}}} {{{OPTION1}}}.",Aoe="Incompat\xEDvel com {{{ATTRIBUTE1}}} {{{OPTION1}}} e {{{ATTRIBUTE2}}} {{{OPTION2}}}.",$oe="Incompat\xEDvel com {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} e {{{ATTRIBUTE3}}} {{{OPTION3}}}.",Roe="Incompat\xEDvel com mais de {{{ATTRIBUTE_COUNT}}} op\xE7\xF5es.",Noe="Para ser compat\xEDvel com {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} foi desmarcado.",Doe="Para ser compat\xEDvel com {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}} e {{{ATTRIBUTE2}}} {{{OPTION2}}} foram desmarcados.",Loe="Para ser compat\xEDvel com {{{ATTRIBUTE}}} {{{OPTION}}}: {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} e {{{ATTRIBUTE3}}} {{{OPTION3}}} foram desmarcados.",Uoe="Para ser compat\xEDvel com {{{ATTRIBUTE}}} {{{OPTION}}}: Mais de {{{ATTRIBUTE_COUNT}}} op\xE7\xF5es foram desmarcadas.",Foe="{{{MINIMUM}}} {{{UNIT}}} a {{{MAXIMUM}}} {{{UNIT}}}",Boe="Pelo menos {{{MINIMUM}}} {{{UNIT}}}",qoe="Introduza um valor entre {{{MINIMUM}}} e {{{MAXIMUM}}} p\xE1ginas, incluindo a capa ",zoe="Pelo menos, {{{MINIMUM}}} p\xE1ginas, incluindo a capa ",Voe="A entrada \xE9 inv\xE1lida",joe="Os n\xFAmeros mais pr\xF3ximos s\xE3o {{{LOWER}}} {{{UNIT}}} e {{{HIGHER}}} {{{UNIT}}}",Hoe="O n\xFAmero n\xE3o pode ter mais de 8 decimais",Goe="O n\xFAmero m\xEDnimo \xE9 {{{MINIMUM}}} {{{UNIT}}}",Woe="O n\xFAmero m\xE1ximo \xE9 {{{MAXIMUM}}} {{{UNIT}}}",Qoe="O valor de entrada tem de ser um n\xFAmero",Zoe="Introduza um valor entre {{{LOWER}}} e {{{HIGHER}}} {{{UNIT}}}",Koe="Os n\xFAmeros mais pr\xF3ximos s\xE3o {{{LOWER}}} p\xE1ginas e {{{HIGHER}}} p\xE1ginas ",Yoe="O n\xFAmero m\xEDnimo s\xE3o {{{MINIMUM}}} p\xE1ginas ",Xoe="O n\xFAmero m\xE1ximo s\xE3o {{{MAXIMUM}}} p\xE1ginas ",Joe="Introduza um valor entre {{{LOWER}}} e {{{HIGHER}}} p\xE1ginas, incluindo a capa ",ese="Indique todas as informa\xE7\xF5es necess\xE1rias.",tse="M\xEDnimo: {{{MINIMUM}}} {{{UNIT}}} M\xE1ximo: {{{MAXIMUM}}} {{{UNIT}}}",rse="Mostrar guia de pre\xE7os",nse="Guia de pre\xE7os",ise="Confirmar",ase="Cancelar",ose="Introduzir quantidade...",sse="M\xEDnimo: {{{MINIMUM}}}{{{UNIT}}}",cse="M\xE1ximo: {{{MAXIMUM}}} {{{UNIT}}}",lse="Escolha {{{LOWER}}} {{{UNIT}}} ou {{{HIGHER}}} {{{UNIT}}}
33",use="Introduza um n\xFAmero",dse={quantityLabel:coe,quantityFlyoutHeader:loe,quantityFlyoutCTA:uoe,closeButton:doe,pricePlaceholder:poe,priceLabel:foe,unitPriceLabel:goe,incompatibilityMessage:moe,select:hoe,percentSavings:voe,sale:yoe,amountSavings:boe,amountSavingsWithSale:woe,seeMoreQuantities:Toe,required:Eoe,sample:Soe,estimatedQuantity:Poe,numberOfRecipients:Coe,recommendedCallout:Ioe,newCallout:xoe,incompatibleLabel:_oe,outOfStockCallout:koe,dismissAlert:Moe,unwindingMessage_1:Ooe,unwindingMessage_2:Aoe,unwindingMessage_3:$oe,unwindingMessage_more:Roe,unwindingAlertMessage_1:Noe,unwindingAlertMessage_2:Doe,unwindingAlertMessage_3:Loe,unwindingAlertMessage_more:Uoe,fullRangedHelperText:Foe,rangePartialRangedHelperText:Boe,fullRangedHelperTextForBooklets:qoe,rangePartialRangedHelperTextForBooklets:zoe,rangedGeneralInputError:Voe,rangedBetweenRangesError:joe,rangedDecimalPrecisionError:Hoe,rangedMinInputValueError:Goe,rangedMaxInputValueError:Woe,rangedNotANumberError:Qoe,requiredAttributeFieldError:Zoe,rangedBetweenRangesErrorForBooklets:Koe,rangedMinInputValueErrorForBooklets:Yoe,rangedMaxInputValueErrorForBooklets:Xoe,requiredAttributeFieldErrorForBooklets:Joe,requiredInformationToast:ese,quantityComboboxHelperText:tse,quantityComboboxShowPricingGuide:rse,quantityComboboxPricingGuide:nse,quantityComboboxFlyoutConfirmation:ise,quantityComboboxFlyoutCancel:ase,quantityComboboxPlaceholderText:ose,quantityComboboxBelowMinError:sse,quantityComboboxAboveMaxError:cse,quantityComboboxBetweenRangeError:lse,quantityComboboxInvalidInputError:use},pse="Antal",fse="V\xE4lj antal",gse="V\xE4lj det h\xE4r antalet",mse="St\xE4ng",hse="...",vse="Pris",yse="Pris per enhet",bse="G\xE5r inte att v\xE4lja med andra val: ",wse="V\xE4lj...",Tse="{{{PERCENT}}} % rabatt",Ese="rea",Sse="{{{AMOUNT}}} rabatt / enhet",Pse="{{{AMOUNT}}} rabatt / enhet + rea",Cse="Se fler antal",Ise="Obligatoriskt",xse="Varuprov",_se="Ber\xE4knat antal",kse="{{{COUNT}}} Mottagare",Mse="Rekommenderas",Ose="Nyhet",Ase="Ej kompatibel",$se="Ej i lager",Rse="Avvisa avisering",Nse="Ej kompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}}.",Dse="Ej kompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}} eller {{{ATTRIBUTE2}}} {{{OPTION2}}}.",Lse="Ej kompatibel med {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} eller {{{ATTRIBUTE3}}} {{{OPTION3}}}.",Use="Ej kompatibel med mer \xE4n {{{ATTRIBUTE_COUNT}}} alternativ.",Fse="F\xF6r att bli kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: avmarkerades {{{ATTRIBUTE1}}} {{{OPTION1}}}.",Bse="F\xF6r att bli kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: avmarkerades {{{ATTRIBUTE1}}} {{{OPTION1}}} och {{{ATTRIBUTE2}}} {{{OPTION2}}}.",qse="F\xF6r att bli kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: avmarkerades {{{ATTRIBUTE1}}} {{{OPTION1}}}, {{{ATTRIBUTE2}}} {{{OPTION2}}} och {{{ATTRIBUTE3}}} {{{OPTION3}}}.",zse="F\xF6r att bli kompatibel med {{{ATTRIBUTE}}} {{{OPTION}}}: avmarkerades fler \xE4n {{{ATTRIBUTE_COUNT}}} alternativ.",Vse="{{{MINIMUM}}} {{{UNIT}}} till {{{MAXIMUM}}} {{{UNIT}}}",jse="Minst {{{MINIMUM}}} {{{UNIT}}}",Hse="Ange ett v\xE4rde mellan {{{MINIMUM}}} och {{{MAXIMUM}}} sidor, inklusive omslag ",Gse="Minst {{{MINIMUM}}} sidor, inklusive omslag ",Wse="Inmatningen \xE4r ogiltig",Qse="De n\xE4rmaste talen \xE4r {{{LOWER}}} {{{UNIT}}} och {{{HIGHER}}} {{{UNIT}}}",Zse="Talet f\xE5r ha h\xF6gst 8 decimaler",Kse="L\xE4gsta giltiga tal \xE4r {{{MINIMUM}}} {{{UNIT}}}",Yse="H\xF6gsta giltiga tal \xE4r {{{MAXIMUM}}} {{{UNIT}}}",Xse="Inmatningen m\xE5ste vara ett tal",Jse="Ange ett v\xE4rde mellan {{{LOWER}}} och {{{HIGHER}}} {{{UNIT}}}",ece="Det n\xE4rmaste talet \xE4r {{{LOWER}}} sidor och {{{HIGHER}}} sidor ",tce="L\xE4gsta giltiga tal \xE4r {{{MINIMUM}}} sidor ",rce="H\xF6gsta giltiga tal \xE4r {{{MAXIMUM}}} sidor ",nce="Ange ett v\xE4rde mellan {{{LOWER}}} och {{{HIGHER}}} sidor, inklusive omslag ",ice="Ange all obligatorisk information, tack.",ace="Minimum: {{{MINIMUM}}} {{{UNIT}}} Max: {{{MAXIMUM}}} {{{UNIT}}}",oce="Visa prisguide",sce="Prisguide",cce="Bekr\xE4fta",lce="Avbryt",uce="Ange antal...",dce="Minimum: {{{MINIMUM}}} {{{UNIT}}}",pce="Max: {{{MAXIMUM}}} {{{UNIT}}}",fce="V\xE4lj {{{LOWER}}} {{{UNIT}}} eller {{{HIGHER}}} {{{UNIT}}}",gce="Ange ett nummer",mce={quantityLabel:pse,quantityFlyoutHeader:fse,quantityFlyoutCTA:gse,closeButton:mse,pricePlaceholder:hse,priceLabel:vse,unitPrice
33Label:yse,incompatibilityMessage:bse,select:wse,percentSavings:Tse,sale:Ese,amountSavings:Sse,amountSavingsWithSale:Pse,seeMoreQuantities:Cse,required:Ise,sample:xse,estimatedQuantity:_se,numberOfRecipients:kse,recommendedCallout:Mse,newCallout:Ose,incompatibleLabel:Ase,outOfStockCallout:$se,dismissAlert:Rse,unwindingMessage_1:Nse,unwindingMessage_2:Dse,unwindingMessage_3:Lse,unwindingMessage_more:Use,unwindingAlertMessage_1:Fse,unwindingAlertMessage_2:Bse,unwindingAlertMessage_3:qse,unwindingAlertMessage_more:zse,fullRangedHelperText:Vse,rangePartialRangedHelperText:jse,fullRangedHelperTextForBooklets:Hse,rangePartialRangedHelperTextForBooklets:Gse,rangedGeneralInputError:Wse,rangedBetweenRangesError:Qse,rangedDecimalPrecisionError:Zse,rangedMinInputValueError:Kse,rangedMaxInputValueError:Yse,rangedNotANumberError:Xse,requiredAttributeFieldError:Jse,rangedBetweenRangesErrorForBooklets:ece,rangedMinInputValueErrorForBooklets:tce,rangedMaxInputValueErrorForBooklets:rce,requiredAttributeFieldErrorForBooklets:nce,requiredInformationToast:ice,quantityComboboxHelperText:ace,quantityComboboxShowPricingGuide:oce,quantityComboboxPricingGuide:sce,quantityComboboxFlyoutConfirmation:cce,quantityComboboxFlyoutCancel:lce,quantityComboboxPlaceholderText:uce,quantityComboboxBelowMinError:dce,quantityComboboxAboveMaxError:pce,quantityComboboxBetweenRangeError:fce,quantityComboboxInvalidInputError:gce};const hce={"en-us":n_,"da-dk":IZ,"de-at":sb,"de-ch":sb,"de-de":sb,"en-au":jc,"en-ca":n_,"en-gb":jc,"en-ie":jc,"en-in":jc,"en-nz":jc,"en-sg":jc,"es-es":DX,"es-us":BJ,"fi-fi":jee,"fr-ca":Qte,"fr-be":cb,"fr-ch":cb,"fr-fr":cb,"it-ch":i_,"it-it":i_,"nb-no":iae,"nl-be":a_,"nl-nl":a_,"pt-pt":dse,"sv-se":mce},vce=e=>hce[e.toLowerCase()],o_=yi(void 0),yce=e=>{const t=Ye(()=>vce(e.locale),[e.locale]);return y.createElement(o_.Provider,{value:t},t&&e.children)},Mn=()=>{const e=xt(o_);if(e===void 0)throw new Error("useProductOptionsTranslations must be used with localization provider");return{i18n:t=>e[t],i18nUnsafe:t=>e[t]}},bce=({choice:e,locale:t,currency:r,fractionDigits:n,pricePlaceholder:i,vatInc:a=!1,hideVatMessage:o=!0})=>{const{differentialListPrice:s,differentialDiscountPrice:c}=e,l=c??s;if(l===void 0)return null;if(l===0&&s===0)return y.createElement("span",{className:"zero-price"},"+",y.createElement(Tc,{placeHolderText:i,pricingInfo:{currency:r,minimumFractionDigits:n,culture:t,listPrice:0,discountPrice:0,vatInc:a,hideVatMessage:o}}));const u=s===0&&l!==0?Zd:Jm;return y.createElement(u,{placeHolderText:i,pricingInfo:{currency:r,minimumFractionDigits:n,culture:t,priceDifference:s??0,priceDifferenceDiscounted:l??0}})},wce=({choice:e,locale:t,currency:r,fractionDigits:n,pricePlaceholder:i,hideZeroPrice:a=!1})=>{const{differentialUnitDiscountPrice:o,differentialUnitListPrice:s}=e,c=s??0,l=o??0;return a&&c===0&&l===0?y.createElement(y.Fragment,null):y.createElement(Zd,{placeHolderText:i,pricingInfo:{currency:r,minimumFractionDigits:n,culture:t,priceDifference:c,priceDifferenceDiscounted:l,comparativeDisplayType:xE.CustomerFriendly}})};function lb(e,t){return!!e||!!t}const Fs=e=>{const t=Tce(e);return t&&e.showPriceWithParentheses?y.createElement(y.Fragment,null,"(",t,")"):t||y.createElement(y.Fragment,null)},Tce=({choice:e,priceDisplayMode:t,locale:r,currency:n,fractionDigits:i,hideZeroPrice:a=!0,vatInc:o=!1,hideVatMessage:s=!0,tenant:c})=>{const{i18n:l}=Mn();let u;switch(t){case"differential-total":{u=y.createElement(bce,{choice:e,pricePlaceholder:l("pricePlaceholder"),locale:r,currency:n,fractionDigits:i,vatInc:o,hideVatMessage:s});break}case"differential-unit":{lb(e.differentialUnitListPrice,e.differentialUnitDiscountPrice)&&(u=y.createElement(wce,{choice:e,pricePlaceholder:l("pricePlaceholder"),locale:r,currency:n,fractionDigits:i,hideZeroPrice:a}));break}case"unit":{lb(e.unitDiscountedPrice,e.unitListPrice)&&(u=y.createElement(Qd,{tenant:c,placeHolderText:l("pricePlaceholder"),pricingInfo:{currency:n,minimumFractionDigits:i,culture:r,unitDiscountPrice:e.unitDiscountedPrice??0,unitListPrice:e.unitListPrice??0,vatInc:o,hideVatMessage:s}}));break}case"total":{lb(e.totalDiscountedPrice,e.totalListPrice)&&(u=y.createElement(Tc,{tenant:c,placeHolderText:l("pricePlaceholder"),pricingInfo:{currency:n,minimumFractionDigits:i,culture:r,discountPrice:e.totalDiscountedPrice??0,listPrice:e.totalListPrice??0,vatInc:o,hideVatMessage:s}}));break}}return u},s_=y.createContext(void 0);class _u{_messages=[];addValidation(t){this._messages.push(t)}get messages(){return this._messages}}class ku{_mutations=[];addMutation(t){this._mutations.push(t)}get mutations(){return this._mutations}}function Ece(e,t){const r=new _u;let n=!1;return t===!0?n=!0:e.choices.every(a=>!!a.image)||(n=!0,r.addValidation("At least one choice is missing a thumbnail image. `hideImages` flag will be set to true.")),{messages:r.messages,hideImages:n}}const ub=e=>!("minimum"in e),Sce=e=>"minimum"in e,$o=e=>e.choices.every(ub),Pce=e=>e.every(ub),c_=e=>e.choices.some(t=>"key"in t)&&e.choices.some(t=>"minimum"in t);function Cce(e,t,r,n){const i=new _u,a=Ice(e,t),o=xce(r,e,i,a.style,a.skin,n);return{messages:i.messages,style:o.style,skin:o.skin}}function Ice(e,t){return{style:e.style,skin:t}}function xce(e,t,r,n,i,a){if($o(t)){e&&t.choices.length>0&&t.choices.every(s=>/^#[0-9A-F]{6}(?:\/#[0-9A-F]{6})?$/i.test(s.key))&&(n==="tiles"?(r.addValidation("The 'tiles' style was changed to 'color-swatch-super' as all keys have a hex code and there are no images to display."),n="color-swatch-super",i="standard"):(r.addValidation(`The ${n} ${i} was converted to a standard color-swatch as all keys have a hex code`),n="color-swatch",i="standard")),n==="buttons"&&i==="wide"&&e&&a&&(r.addValidation("The 'button' skin was changed to 'tight' from 'wide' because there are no images, descriptions or savings to display."),i="tight");const o="standard";n==="dropdown"&&t.key==="Quantity"&&i!==o&&(r.addValidation(`The "dropdown" skin was changed to "${o}" from ${i} because "Quantity" dropdowns should always use "${o}" skin.`),i=o)}return{style:n,skin:i}}function l_(e){return e.some(t=>(t.unitListPrice??0)!==0||(t.unitDiscountedPrice??0)!==0)}function u_(e){return e.some(t=>(t.totalListPrice??0)!==0||(t.totalDiscountedPrice??0)!==0)}function _ce(e){return e.some(t=>(t.differentialUnitListPrice??0)!==0||(t.differentialUnitDiscountPrice??0)!==0)}function kce(e){return e.some(t=>(t.differentialListPrice??0)!==0||(t.differentialDiscountPrice??0)!==0)}function Mce(e,t){const r=new _u;let n="differential-unit";return t==="none"?n="none":t==="differential-unit"?e.key==="Quantity"&&e.style==="dropdown"?l_(e.choices)?(r.addValidation("Quantity should display 'Unit' prices. 'differential-unit' was changed to 'unit'"),n="unit"):(r.addValidation("Quantity should display 'Unit' prices, but there are no unit prices to display. 'differential-unit' was changed to 'none'"),n="none"):_ce(e.choices)?n="differential-unit":(r.addValidation("None of the choices have unit differential prices. Prices will not be shown."),n="none"):t==="differential-total"?e.key==="Quantity"&&u_(e.choices)?(r.addValidation("Quantity should display 'Total' prices. 'differential-total' was changed to 'total'"),n="total"):kce(e.choices)?n="differential-total":(r.addValidation("None of the choices have total differential prices. Prices will not be shown."),n="none"):t==="unit"?l_(e.choices)?n="unit":(r.addValidation("None of the choices have unit prices. Prices will not be shown."),n="none"):t==="total"&&(u_(e.choices)?n="total":(r.addValidation("None of the choices have total prices. Prices will not be shown."),n="none")),{messages:r.messages,priceDisplayMode:n}}function Oce(e,t,r){const n=new ku;return e.style!==t&&(n.addMutation({type:"add",reason:"style was undefined, setting to default style",oldState:e.style,newState:t}),e.style=t),n}function Ace(e,t){const r=new _u;let n=!1;if(t===!0)n=!0;else{const i=new $ce(e),{result:a,violations:o}=i.validateDescriptions();n=!a,Object.entries(o).map(([s,c])=>
33{c.map(l=>r.addValidation(`Option value key ${s} failed description validation with code ${l}`))})}return{hideDescriptions:n,messages:r.messages}}var ro;(function(e){e.EMPTY_DESCRIPTION="EmptyDescription",e.DESCRIPTION_CONTAINS_LINK="DescriptionContainsLink",e.DESCRIPTION_CONTAINS_MEDIA="DescriptionContainsMedia",e.DESCRIPTION_TOO_LONG_OR_TOO_SHORT="DescriptionTooLongOrTooShort"})(ro||(ro={}));class $ce{individualViolationCounter;validationResult;productOption;constructor(t){this.productOption=t,this.validationResult={},this.individualViolationCounter=Object.values(ro).reduce((r,n)=>(r[n]=0,r),{})}validateDescriptions(){return{result:this.getGroupValidationResults()&&this.getIndividualValidationResults(),violations:{...this.validationResult}}}getGroupValidationResults(){return[this.descriptionTooLong].every(r=>r.bind(this)())}getIndividualValidationResults(){return this.productOption.choices.every(t=>this.validateIndividualDescription(t))}validateIndividualDescription(t){return!this.descriptionContainsLink(t)&&!this.descriptionContainsMedia(t)&&!this.hasHappenedNthTime(()=>!this.descriptionIsEmpty(t),ro.EMPTY_DESCRIPTION,2)}hasHappenedNthTime(t,r,n){return!t()&&this.individualViolationCounter[r]>=n}descriptionTooLong(){const t=this.productOption.choices.filter(i=>!this.descriptionIsEmpty(i)).map(i=>({key:i.key,description:i.description})).filter(i=>!!i.description).map(i=>{const a=this.cleanUpDescription(i.description||"");return{key:i.key,description:a}})||[],r=this.calculateAverage(t.map(i=>i.description.length));return t.every(({key:i,description:a})=>a.length>.5*r&&a.length<1.5*r?!0:(this.addDescriptionViolation(i,ro.DESCRIPTION_TOO_LONG_OR_TOO_SHORT),!1))}descriptionIsEmpty(t){const{description:r,key:n}=t;if(!r)return this.addDescriptionViolation(n,ro.EMPTY_DESCRIPTION),!0;const i=this.cleanUpDescription(r);return/\S/g.test(i)?!1:(this.addDescriptionViolation(n,ro.EMPTY_DESCRIPTION),!0)}descriptionContainsLink(t){const{description:r,key:n}=t;return/<a>|<a (.|\n)*?>/g.test(r||"")?(this.addDescriptionViolation(n,ro.DESCRIPTION_CONTAINS_LINK),!0):!1}descriptionContainsMedia(t){const{description:r,key:n}=t;return/<(img|picture|video)>|<(img|picture|video) (.|\n)*?>/g.test(r||"")?(this.addDescriptionViolation(n,ro.DESCRIPTION_CONTAINS_MEDIA),!0):!1}addDescriptionViolation(t,r){this.validationResult[t]||(this.validationResult[t]=[]),this.validationResult[t].includes(r)||(this.validationResult[t].push(r),this.individualViolationCounter[r]++)}cleanUpDescription(t){return t.replaceAll(/<(.|\n)*?>/g,"").replaceAll(" "," ")}calculateAverage(t){return t.reduce((r,n)=>r+n,0)/t.length}}function Rce(e,t){const r=new _u;let n=t;return t!=="hidden"&&(e.choices.some(a=>(a.savingsPercent??0)>0||(a.savingsTotal??0)>0)?e.choices.some(o=>(o.savingsPercent??0)<0||(o.savingsTotal??0)<0)&&r.addValidation("Some of choices have negative savings. This can be confusing the customer. savingsFormat will be 'hidden'"):r.addValidation("None of the choices have savings data. savingsFormat will be 'hidden'.")),{messages:r.messages,savingsFormat:n}}function Nce(e,t){const r=new ku;return e.key==="Quantity"&&(r.addMutation({type:"update",reason:"quantity should use translations of quantityLabel as name",oldState:e.name,newState:t("quantityLabel")}),e.name=t("quantityLabel")),r}function Dce(e,t){const r=new ku,n={legacy_recommended:"recommendedCallout",legacy_new:"newCallout",legacy_incompatible:"incompatibleLabel",legacy_outofstock:"outOfStockCallout"};return $o(e)&&e.choices.map(i=>{if(i.isOutOfStock){const o={key:"OutOfStock",text:t("outOfStockCallout")};r.addMutation({type:"update",reason:"Choice is out of stock, preferred out of stock callout",oldState:i.callouts,newState:o}),i.callouts=[o]}else i.callouts?.map(a=>{Object.entries(n).map(([o,s])=>{if(a.text.toLowerCase()===o){const c=t(s);r.addMutation({type:"update",reason:`Reserved callout text ${o} should use translations of ${s}`,oldState:a.text,newState:c}),a.text=c}})})}),r}function Lce(e){const t=new ku;if(c_(e)){const r=e.choices.filter(n=>"minimum"in n);t.addMutation({type:"remove",reason:"choices have list models, filtering out list models for ranges",oldState:e.choices,newState:r}),e.choices=r}return t}function Uce(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Fce(e){const t=new ku;if($o(e)&&(e.key==="Size"||e.key==="Format")){const r=e.choices.findIndex(n=>n.key==="Custom");if(r!==-1&&r!==0){const n=[...e.choices],i=n.splice(r,1)[0];n.unshift(i),t.addMutation({type:"remove",reason:"choices have custom size, move custom to first position",oldState:e.choices,newState:n}),e.choices=n}}return t}const Bce=({productOption:e,skin:t,priceDisplayMode:r="differential-unit",hideImages:n,hideDescriptions:i,showFormErrors:a=!1,savingsFormat:o="percent",children:s})=>{const{i18n:c}=Mn(),l=zce(e,o,n,r,i,t),u=qce(e),d=Object.assign({},u,l),p=!e.isRequired||e.isRequired&&!!e.selectedKey,g=Ye(()=>{const m=Uce(e),v=[...Oce(m,d.style,d.skin).mutations,...Nce(m,c).mutations,...Dce(m,c).mutations,...Lce(m).mutations,...Fce(m).mutations];return{validationMessages:d.messages,decoratorMutations:v,productOption:m,skin:d.skin,priceDisplayMode:d.priceDisplayMode,hideImages:d.hideImages,hideDescriptions:d.hideDescriptions,savingsFormat:d.savingsFormat,showFormErrors:a&&!p,selectedOptionText:Vce(e)}},[e,d]);return y.createElement(s_.Provider,{value:g},s)};function qce(e){return Ye(()=>!$o(e)&&e.style!=="quantity-combobox"?{style:"textbox",skin:"wide",messages:["Ranged attributes only have one possible UI at this time."]}:c_(e)?{messages:["Ranged attributes can only have range options; list options filtered out"]}:{style:e.style},[e])}function zce(e,t,r,n,i,a="standard"){return Ye(()=>{if($o(e)){const{messages:o,...s}=Rce(e,t),{messages:c,...l}=Ece(e,r),{messages:u,...d}=Mce(e,n),{messages:p,...g}=Ace(e,i),{messages:m,...v}=Cce(e,a,l.hideImages,g.hideDescriptions);return{hideImages:l.hideImages,style:v.style,skin:v.skin,priceDisplayMode:d.priceDisplayMode,hideDescriptions:g.hideDescriptions,savingsFormat:s.savingsFormat,messages:[...c,...m,...u,...p,...o]}}},[a,n,r,i,e,t])}function Vce(e){return $o(e)?e.choices.find(t=>t.key===e.selectedKey)?.name:e.selectedKey}const Mu=()=>{const e=xt(s_);if(!e)throw new Error("useProductOptionContext must be used within a ProductOptionProvider");return e},jce=({showSelectedOptionText:e})=>{const{productOption:t,showFormErrors:r,selectedOptionText:n}=Mu(),i="*";return y.createElement(y.Fragment,null,t.name,t.isRequired&&!r&&y.createElement(B
33a,{"aria-hidden":"true",fontSkin:"body-standard"},i),t.isRequired&&r&&y.createElement(Ba,{textColor:"error",fontSkin:"body-standard"},i),e&&y.createElement(Ba,{"aria-hidden":"true",fontSkin:"body-standard",ml:"3"},n))},Ci=({titleId:e,showSelectedOptionText:t})=>(Mu(),y.createElement(ct,{mb:"2"},y.createElement(we,{id:e,fontSkin:"body-standard-bold",as:"label"},y.createElement(jce,{showSelectedOptionText:t})))),Hce=({option:e,locale:t,currency:r,fractionDigits:n,showIncompatibleChoices:i,priceDisplayMode:a="differential-unit",tenant:o,onChanged:s})=>{const c=(u,d)=>{s({choiceKey:u})},l=Sr();return y.createElement(y.Fragment,null,y.createElement(Ci,{titleId:l}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"single-select",skin:"buttons",selectedValue:e.selectedKey,onSelectedValueChange:c,"aria-labelledby":l,"aria-required":e.isRequired},e.choices.filter(u=>i||u.isCompatible).map(u=>y.createElement(hi,{key:`choice_${u.key}`,value:u.key,disabled:!u.isCompatible},y.createElement(vi,{mr:"3",mb:"3",style:{padding:"0px 10px",height:"4em"},...u.additionalProps??{}},y.createElement(Sl,null,y.createElement(Re,{flexDirection:"column"},y.createElement(we,{fontSize:"small",fontWeight:"bold"},u.name),a==="none"||u.key===e.selectedKey?y.createElement(y.Fragment,null,"\xA0"):y.createElement(Fs,{choice:u,priceDisplayMode:a,locale:t,currency:r,fractionDigits:n,hideZeroPrice:!0,tenant:o}))))))))},db=({callouts:e})=>y.createElement(y.Fragment,null,e?.map(t=>y.createElement(mi,{key:t.key,skin:t.style??"accent",emphasis:"low"},t.text)));function pb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Bs=pb();function d_(e){Bs=e}const p_=/[&<>"']/,Gce=new RegExp(p_.source,"g"),f_=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Wce=new RegExp(f_.source,"g"),Qce={"&":"&","<":"<",">":">",'"':""","'":"'"},g_=e=>Qce[e];function ii(e,t){if(t){if(p_.test(e))return e.replace(Gce,g_)}else if(f_.test(e))return e.replace(Wce,g_);return e}const Zce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Kce(e){return e.replace(Zce,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const Yce=/(^|[^\[])\^/g;function Bt(e,t){let r=typeof e=="string"?e:e.source;t=t||"";const n={replace:(i,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(Yce,"$1"),r=r.replace(i,o),n},getRegex:()=>new RegExp(r,t)};return n}function m_(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Ou={exec:()=>null};function h_(e,t){const r=e.replace(/\|/g,(a,o,s)=>{let c=!1,l=o;for(;--l>=0&&s[l]==="\\";)c=!c;return c?"|":" |"}),n=r.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function Au(e,t,r){const n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function Xce(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return-1}function v_(e,t,r,n){const i=t.href,a=t.title?ii(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const s={type:"link",raw:r,href:i,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,s}return{type:"image",raw:r,href:i,title:a,text:ii(o)}}function Jce(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(` 34`).map(i=>{const a=i.match(/^\s+/);if(a===null)return i;const[o]=a;return o.length>=n.length?i.slice(n.length):i}).join(` 35`)}class Ef{options;rules;lexer;constructor(t){this.options=t||Bs}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Au(n,` 36`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const n=r[0],i=Jce(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){const i=Au(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Au(r[0],` 37`)}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){let n=Au(r[0],` 38`).split(` 39`),i="",a="";const o=[];for(;n.length>0;){let s=!1;const c=[];let l;for(l=0;l<n.length;l++)if(/^ {0,3}>/.test(n[l]))c.push(n[l]),s=!0;else if(!s)c.push(n[l]);else break;n=n.slice(l);const u=c.join(` 40`),d=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` 41 $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i} 42${u}`:u,a=a?`${a} 43${d}`:d;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,o,!0),this.lexer.state.top=p,n.length===0)break;const g=o[o.length-1];if(g?.type==="code")break;if(g?.type==="blockquote"){const m=g,v=m.raw+` 44`+n.join(` 45`),h=this.blockquote(v);o[o.length-1]=h,i=i.substring(0,i.length-m.raw.length)+h.raw,a=a.substring(0,a.length-m.text.length)+h.text;break}else if(g?.type==="list"){const m=g,v=m.raw+` 46`+n.join(` 47`),h=this.list(v);o[o.length-1]=h,i=i.substring(0,i.length-g.raw.length)+h.raw,a=a.substring(0,a.length-m.raw.length)+h.raw,n=v.substring(o[o.length-1].raw.length).split(` 48`);continue}}return{type:"blockquote",raw:i,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim();const i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const o=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let s=!1;for(;t;){let c=!1,l="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;l=r[0],t=t.substring(l.length);let d=r[2].split(` 49`,1)[0].replace(/^\t+/,P=>" ".repeat(3*P.length)),p=t.split(` 50`,1)[0],g=!d.trim(),m=0;if(this.options.pedantic?(m=2,u=d.trimStart()):g?m=r[1].length+1:(m=r[2].search(/[^ ]/),m=m>4?1:m,u=d.slice(m),m+=r[1].length),g&&/^ *$/.test(p)&&(l+=p+` 51`,t=t.substring(p.length+1),c=!0),!c){const P=new RegExp(`^ {0,${Math.min(3,m-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,m-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),T=new RegExp(`^ {0,${Math.min(3,m-1)}}(?:\`\`\`|~~~)`),k=new RegExp(`^ {0,${Math.min(3,m-1)}}#`);for(;t;){const M=t.split(` 52`,1)[0];if(p=M,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),T.test(p)||k.test(p)||P.test(p)||x.test(t))break;if(p.search(/[^ ]/)>=m||!p.trim())u+=` 53`+p.slice(m);else{if(g||d.search(/[^ ]/)>=4||T.test(d)||k.test(d)||x.test(d))break;u+=` 54`+p}!g&&!p.trim()&&(g=!0),l+=M+` 55`,t=t.substring(M.length+1),d=p.slice(m)}}a.loose||(s?a.loose=!0:/\n *\n *$/.test(l)&&(s=!0));let v=null,h;this.options.gfm&&(v=/^\[[ xX]\] /.exec(u),v&&(h=v[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:l,task:!!v,checked:h,loose:!1,text:u,tokens:[]}),a.raw+=l}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){const l=a.items[c].tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>/\n.*\n/.test(d.raw));a.loose=u}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){const r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){const r=this.rules.block.def.exec(t);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(t){const r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;const n=h_(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` 56`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const s of i)/^ *-+: *$/.test(s)?o.align.push("right"):/^ *:-+: *$/.test(s)?o.align.push("center"):/^ *:-+ *$/.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<n.length;s++)o.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:o.align[s]});for(const s of a)o.rows.push(h_(s,o.header.length).map((c,l)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[l]})));return o}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const n=r[1].charAt(r[1].length-1)===` 57`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:ii(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const n=r[2].trim();
57if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const o=Au(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=Xce(r[2],"()");if(o>-1){const c=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),v_(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const i=(n[2]||n[1]).replace(/\s+/g," "),a=r[i.toLowerCase()];if(!a){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return v_(n,a,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const o=[...i[0]].length-1;let s,c,l=o,u=0;const d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+o);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(c=[...s].length,i[3]||i[4]){l+=c;continue}else if((i[5]||i[6])&&o%3&&!((o+c)%3)){u+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+u);const p=[...i[0]][0].length,g=t.slice(0,o+i.index+p+c);if(Math.min(o,c)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," ");const i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=ii(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){const r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=ii(r[1]),i="mailto:"+n):(n=ii(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=ii(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=ii(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=ii(r[0]),{type:"text",raw:r[0],text:n}}}}const ele=/^(?: *(?:\n|$))+/,tle=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,rle=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nle=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,y_=/(?:[*+-]|\d{1,9}[.)])/,b_=Bt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,y_).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),fb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ile=/^[^\n]+/,gb=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ale=Bt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",gb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ole=Bt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y_).getRegex(),Sf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,sle=Bt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
57)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",mb).replace("tag",Sf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w_=Bt(fb).replace("hr",$u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex(),hb={blockquote:Bt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w_).getRegex(),code:tle,def:ale,fences:rle,heading:nle,hr:$u,html:sle,lheading:b_,list:ole,newline:ele,paragraph:w_,table:Ou,text:ile},T_=Bt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex(),cle={...hb,table:T_,paragraph:Bt(fb).replace("hr",$u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",T_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Sf).getRegex()},lle={...hb,html:Bt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ou,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Bt(fb).replace("hr",$u).replace("heading",` *#{1,6} *[^ 58]`).replace("lheading",b_).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E_=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ule=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,S_=/^( {2,}|\\)\n(?!\s*$)/,dle=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ru="\\p{P}\\p{S}",ple=Bt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ru).getRegex(),fle=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,gle=Bt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ru).getRegex(),mle=Bt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ru).getRegex(),hle=Bt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ru).getRegex(),vle=Bt(/\\([punct])/,"gu").replace(/punct/g,Ru).getRegex(),yle=Bt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ble=Bt(mb).replace("(?:-->|$)","-->").getRegex(),wle=Bt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ble).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pf=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Tle=Bt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Pf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),P_=Bt(/^!?\[(label)\]\[(ref)\]/).replace("label",Pf).replace("ref",gb).getRegex(),C_=Bt(/^!?\[(ref)\](?:\[\])?/).replace("ref",gb).getRegex(),Ele=Bt("reflink|nolink(?!\\()","g").replace("reflink",P_).replace("nolink",C_).getRegex(),vb={_backpedal:Ou,anyPunctuation:vle,autolink:yle,blockSkip:fle,br:S_,code:ule,del:Ou,emStrongLDelim:gle,emStrongRDelimAst:mle,emStrongRDelimUnd:hle,escape:E_,link:Tle,nolink:C_,punctuation:ple,reflink:P_,reflinkSearch:Ele,tag:wle,text:dle,url:Ou},Sle={...vb,link:Bt(/^!?\[(label)\]\((.*?)\)/).replace("label",Pf).getRegex(),reflink:Bt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pf).getRegex()},yb={...vb,escape:Bt(E_).replace("])","~|])").getRegex(),url:Bt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ple={...yb,br:Bt(S_).replace("{2,}","*").getRegex(),text:Bt(yb.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Cf={normal:hb,gfm:cle,pedantic:lle},Nu={normal:vb,gfm:yb,breaks:Ple,pedantic:Sle};class Ta{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Bs,this.options.tokenizer=this.options.tokenizer||new Ef,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:Cf.normal,inline:Nu.normal};this.options.pedantic?(r.block=Cf.pedantic,r.inline=Nu.pedantic):this.options.gfm&&(r.block=Cf.gfm,this.options.breaks?r.inline=Nu.breaks:r.inline=Nu.gfm),this.tokenizer.rules=r}static get rules(){return{block:Cf,inline:Nu}}static lex(t,r){return new Ta(r).lex(t)}static lexInline(t,r){return new Ta(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` 59`),this.blockTokens(t,this.tokens);for(let r=0;
59r<this.inlineQueue.length;r++){const n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,c,l)=>c+" ".repeat(l.length));let i,a,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(i=s.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+=` 60`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` 61`+i.raw,a.text+=` 62`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` 63`+i.raw,a.text+=` 64`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(o=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){a=r[r.length-1],n&&a?.type==="paragraph"?(a.raw+=` 65`+i.raw,a.text+=` 66`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i),n=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+=` 67`+i.raw,a.text+=` 68`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,a,o=t,s,c,l;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,o,l)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=t.slice(1);let p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(a=t.substring(0,u+1))}if(n=this.tokenizer.inlineText(a)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(l=n.raw.slice(-1)),c=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return r}}class If{options;parser;constructor(t){this.options=t||Bs}space(t){return""}code({text:t,lang:r,escaped:n}){const i=(r||"").match(/^\S*/)?.[0],a=t.replace(/\n$/,"")+` 69`;return i?'<pre><code class="language-'+ii(i)+'">'+(n?a:ii(a,!0))+`</code></pre> 70`:"<pre><code>"+(n?a:ii(a,!0))+`</code></pre> 71`}blockquote({tokens:t}){return`<blockquote> 72${this.parser.parse(t)}</blockquote> 73`}html({text:t}){return t}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}> 74`}hr(t){return`<hr> 75`}list(t){const r=t.ordered,n=t.start;let i="";for(let s=0;s<t.items.length;s++){const c=t.items[s];i+=this.listitem(c)}const a=r?"ol":"ul",o=r&&n!==1?' start="'+n+'"':"";return"<"+a+o+`> 76`+i+"</"+a+`> 77`}listitem(t){let r="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li> 78`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 79`}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<t.rows.length;a++){const o=t.rows[a];n="";for(let s=0;s<o.length;s++)n+=this.tablecell(o[s]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table> 80<thead> 81`+r+`</thead> 82`+i+`</table> 83`}tablerow({text:t}){return`<tr> 84${t}</tr> 85`}tablecell(t){const r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}> 86`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){const i=this.parser.parseInline(n),a=m_(t);if(a===null)return i;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+i+"</a>",o}image({href:t,title:r,text:n}){const i=m_(t);if(i===null)return n;t=i;let a=`<img src="${t}" alt="${n}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class bb{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ea{options;renderer;textRenderer;constructor(t){this.options=t||Bs,this.options.renderer=this.options.renderer||new If,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bb}static parse(t,r){return new Ea(r).parse(t)}static parseInline(t,r){return new Ea(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){const a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=a,c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=c||"";continue}}const o=a;switch(o.type){case"space":{n+=this.renderer.space(o);continue}case"hr":{n+=this.renderer.hr(o);continue}case"heading":{n+=this.renderer.heading(o);continue}case"code":{n+=this.renderer.code(o);continue}case"table":{n+=this.renderer.table(o);continue}
86case"blockquote":{n+=this.renderer.blockquote(o);continue}case"list":{n+=this.renderer.list(o);continue}case"html":{n+=this.renderer.html(o);continue}case"paragraph":{n+=this.renderer.paragraph(o);continue}case"text":{let s=o,c=this.renderer.text(s);for(;i+1<t.length&&t[i+1].type==="text";)s=t[++i],c+=` 87`+this.renderer.text(s);r?n+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):n+=c;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){const a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=s||"";continue}}const o=a;switch(o.type){case"escape":{n+=r.text(o);break}case"html":{n+=r.html(o);break}case"link":{n+=r.link(o);break}case"image":{n+=r.image(o);break}case"strong":{n+=r.strong(o);break}case"em":{n+=r.em(o);break}case"codespan":{n+=r.codespan(o);break}case"br":{n+=r.br(o);break}case"del":{n+=r.del(o);break}case"text":{n+=r.text(o);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class xf{options;constructor(t){this.options=t||Bs}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class Cle{defaults=pb();options=this.setOptions;parse=this.#e(Ta.lex,Ea.parse);parseInline=this.#e(Ta.lexInline,Ea.parseInline);Parser=Ea;Renderer=If;TextRenderer=bb;Lexer=Ta;Tokenizer=Ef;Hooks=xf;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(const i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{const a=i;for(const o of a.header)n=n.concat(this.walkTokens(o.tokens,r));for(const o of a.rows)for(const s of o)n=n.concat(this.walkTokens(s.tokens,r));break}case"list":{const a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{const a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{const s=a[o].flat(1/0);n=n.concat(this.walkTokens(s,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=r.renderers[a.name];o?r.renderers[a.name]=function(...s){let c=a.renderer.apply(this,s);return c===!1&&(c=o.apply(this,s)),c}:r.renderers[a.name]=a.renderer}
87if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){const a=this.defaults.renderer||new If(this.defaults);for(const o in n.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const s=o;let c=n.renderer[s];const l=a[s];a[s]=(...u)=>{n.useNewRenderer||(c=this.#t(c,s,a));let d=c.apply(a,u);return d===!1&&(d=l.apply(a,u)),d||""}}i.renderer=a}if(n.tokenizer){const a=this.defaults.tokenizer||new Ef(this.defaults);for(const o in n.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,c=n.tokenizer[s],l=a[s];a[s]=(...u)=>{let d=c.apply(a,u);return d===!1&&(d=l.apply(a,u)),d}}i.tokenizer=a}if(n.hooks){const a=this.defaults.hooks||new xf;for(const o in n.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const s=o,c=n.hooks[s],l=a[s];xf.passThroughHooks.has(o)?a[s]=u=>{if(this.defaults.async)return Promise.resolve(c.call(a,u)).then(p=>l.call(a,p));const d=c.call(a,u);return l.call(a,d)}:a[s]=(...u)=>{let d=c.apply(a,u);return d===!1&&(d=l.apply(a,u)),d}}i.hooks=a}if(n.walkTokens){const a=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(s){let c=[];return c.push(o.call(this,s)),a&&(c=c.concat(a.call(this,s))),c}}this.defaults={...this.defaults,...i}}),this}#t(t,r,n){switch(r){case"heading":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,n.parser.parseInline(i.tokens),i.depth,Kce(n.parser.parseInline(i.tokens,n.parser.textRenderer)))};case"code":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text,i.lang,!!i.escaped)};case"table":return function(i){if(!i.type||i.type!==r)return t.apply(this,arguments);let a="",o="";for(let c=0;c<i.header.length;c++)o+=this.tablecell({text:i.header[c].text,tokens:i.header[c].tokens,header:!0,align:i.align[c]});a+=this.tablerow({text:o});let s="";for(let c=0;c<i.rows.length;c++){const l=i.rows[c];o="";for(let u=0;u<l.length;u++)o+=this.tablecell({text:l[u].text,tokens:l[u].tokens,header:!1,align:i.align[u]});s+=this.tablerow({text:o})}return t.call(this,a,s)};case"blockquote":return function(i){if(!i.type||i.type!==r)return t.apply(this,arguments);const a=this.parser.parse(i.tokens);return t.call(this,a)};case"list":return function(i){if(!i.type||i.type!==r)return t.apply(this,arguments);const a=i.ordered,o=i.start,s=i.loose;let c="";for(let l=0;l<i.items.length;l++){const u=i.items[l],d=u.checked,p=u.task;let g="";if(u.task){const m=this.checkbox({checked:!!d});s?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=m+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=m+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:m+" "}):g+=m+" "}g+=this.parser.parse(u.tokens,s),c+=this.listitem({type:"list_item",raw:g,text:g,task:p,checked:!!d,loose:s,tokens:u.tokens})}return t.call(this,c,a,o)};case"html":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text,i.block)};case"paragraph":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"escape":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)};case"link":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.href,i.title,this.parser.parseInline(i.tokens))};case"image":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.href,i.title,i.text)};case"strong":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"em":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"codespan":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)};case"del":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(i.tokens))};case"text":return function(i){return!i.type||i.type!==r?t.apply(this,arguments):t.call(this,i.text)}}return t}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ta.lex(t,r??this.defaults)}parser(t,r){return Ea.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{const a={...i},o={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const s=this.#r(!!o.silent,!!o.async);if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));
87if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>r(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let c=t(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=r(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return s(c)}}}#r(t,r){return n=>{if(n.message+=` 88Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+ii(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}}const qs=new Cle;function Rt(e,t){return qs.parse(e,t)}Rt.options=Rt.setOptions=function(e){return qs.setOptions(e),Rt.defaults=qs.defaults,d_(Rt.defaults),Rt},Rt.getDefaults=pb,Rt.defaults=Bs,Rt.use=function(...e){return qs.use(...e),Rt.defaults=qs.defaults,d_(Rt.defaults),Rt},Rt.walkTokens=function(e,t){return qs.walkTokens(e,t)},Rt.parseInline=qs.parseInline,Rt.Parser=Ea,Rt.parser=Ea.parse,Rt.Renderer=If,Rt.TextRenderer=bb,Rt.Lexer=Ta,Rt.lexer=Ta.lex,Rt.Tokenizer=Ef,Rt.Hooks=xf,Rt.parse=Rt,Rt.options,Rt.setOptions,Rt.use,Rt.walkTokens,Rt.parseInline,Ea.parse,Ta.lex;function I_({markdownText:e}){const t=Rt.parse(e??"",{async:!1});return y.createElement(y.Fragment,null,e&&y.createElement(Dd,{className:"product-options-markdown"},y.createElement("div",{dangerouslySetInnerHTML:{__html:t}})))}const x_=({descriptionMarkdown:e})=>y.createElement(y.Fragment,null,e&&y.createElement(D0,null,y.createElement(I_,{markdownText:e}))),wb=({choice:e})=>e.image?y.createElement(N0,{style:{height:"unset"}},y.createElement(qa,{alt:"",src:e.image})):null,Ile=({option:e,locale:t,currency:r,fractionDigits:n,priceDisplayMode:i="differential-unit",showIncompatibleChoices:a,hideImages:o,hideDescriptions:s,tenant:c,onChanged:l})=>{const u=(p,g)=>{l({choiceKey:p})},d=Sr();return y.createElement(y.Fragment,null,y.createElement(Ci,{titleId:d}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"single-select",skin:"tiles-mini",selectedValue:e.selectedKey,onSelectedValueChange:u,"aria-labelledby":d,"aria-required":e.isRequired},e.choices.filter(p=>a||p.isCompatible).map(p=>y.createElement(hi,{key:`choice_${p.key}`,value:p.key,disabled:!p.isCompatible},y.createElement(vi,{...p.additionalProps??{}},!o&&y.createElement(db,{callouts:p.callouts}),!o&&y.createElement(wb,{choice:p}),y.createElement(Sl,null,y.createElement(Md,null,p.name),i==="none"||p.key===e.selectedKey?y.createElement(y.Fragment,null):y.createElement(Od,null,y.createElement(Fs,{choice:p,priceDisplayMode:i,locale:t,currency:r,fractionDigits:n,hideZeroPrice:!0,tenant:c})),!s&&y.createElement(x_,{descriptionMarkdown:p.description})))))))};function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb.apply(this,arguments)}function xle(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _le(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var kle=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;
88return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_le(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=xle(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Tn="-ms-",_f="-moz-",kt="-webkit-",__="comm",Eb="rule",Sb="decl",Mle="@import",k_="@keyframes",Ole="@layer",Ale=Math.abs,kf=String.fromCharCode,$le=Object.assign;function Rle(e,t){return on(e,0)^45?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}function M_(e){return e.trim()}function Nle(e,t){return(e=t.exec(e))?e[0]:e}function Mt(e,t,r){return e.replace(t,r)}function Pb(e,t){return e.indexOf(t)}function on(e,t){return e.charCodeAt(t)|0}function Du(e,t,r){return e.slice(t,r)}function Sa(e){return e.length}function Cb(e){return e.length}function Mf(e,t){return t.push(e),e}function Dle(e,t){return e.map(t).join("")}var Of=1,Hc=1,O_=0,Vn=0,Cr=0,Gc="";function Af(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Of,column:Hc,length:o,return:""}}function Lu(e,t){return $le(Af("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lle(){return Cr}function Ule(){return Cr=Vn>0?on(Gc,--Vn):0,Hc--,Cr===10&&(Hc=1,Of--),Cr}function ai(){return Cr=Vn<O_?on(Gc,Vn++):0,Hc++,Cr===10&&(Hc=1,Of++),Cr}function Pa(){return on(Gc,Vn)}function $f(){return Vn}function Uu(e,t){return Du(Gc,e,t)}function Fu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A_(e){return Of=Hc=1,O_=Sa(Gc=e),Vn=0,[]}function $_(e){return Gc="",e}function Rf(e){return M_(Uu(Vn-1,Ib(e===91?e+2:e===40?e+1:e)))}function Fle(e){for(;(Cr=Pa())&&Cr<33;)ai();return Fu(e)>2||Fu(Cr)>3?"":" "}function Ble(e,t){for(;--t&&ai()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Uu(e,$f()+(t<6&&Pa()==32&&ai()==32))}function Ib(e){for(;ai();)switch(Cr){case e:return Vn;case 34:case 39:e!==34&&e!==39&&Ib(Cr);break;case 40:e===41&&Ib(e);break;case 92:ai();break}return Vn}function qle(e,t){for(;ai()&&e+Cr!==57;)if(e+Cr===84&&Pa()===47)break;return"/*"+Uu(t,Vn-1)+"*"+kf(e===47?e:ai())}function zle(e){for(;!Fu(Pa());)ai();return Uu(e,Vn)}function R_(e){return $_(Nf("",null,null,null,[""],e=A_(e),0,[0],e))}function Nf(e,t,r,n,i,a,o,s,c){for(var l=0,u=0,d=o,p=0,g=0,m=0,v=1,h=1,P=1,x=0,T="",k=i,M=a,$=n,O=T;h;)switch(m=x,x=ai()){case 40:if(m!=108&&on(O,d-1)==58){Pb(O+=Mt(Rf(x),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:O+=Rf(x);break;case 9:case 10:case 13:case 32:O+=Fle(m);break;case 92:O+=Ble($f()-1,7);continue;case 47:switch(Pa()){case 42:case 47:Mf(Vle(qle(ai(),$f()),t,r),c);break;default:O+="/"}break;case 123*v:s[l++]=Sa(O)*P;case 125*v:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+u:P==-1&&(O=Mt(O,/\f/g,"")),g>0&&Sa(O)-d&&Mf(g>32?D_(O+";",n,r,d-1):D_(Mt(O," ","")+";",n,r,d-2),c);break;case 59:O+=";";default:if(Mf($=N_(O,t,r,l,u,i,s,T,k=[],M=[],d),a),x===123)if(u===0)Nf(O,t,$,$,k,a,d,s,M);else switch(p===99&&on(O,3)===110?100:p){case 100:case 108:case 109:case 115:Nf(e,$,$,n&&Mf(N_(e,$,$,0,0,i,s,T,i,k=[],d),M),i,M,d,s,n?k:M);break;default:Nf(O,$,$,$,[""],M,0,s,M)}}l=u=g=0,v=P=1,T=O="",d=o;break;case 58:d=1+Sa(O),g=m;default:if(v<1){if(x==123)--v;else if(x==125&&v++==0&&Ule()==125)continue}switch(O+=kf(x),x*v){case 38:P=u>0?1:(O+="\f",-1);break;case 44:s[l++]=(Sa(O)-1)*P,P=1;break;case 64:Pa()===45&&(O+=Rf(ai())),p=Pa(),u=d=Sa(T=O+=zle($f())),x++;break;case 45:m===45&&Sa(O)==2&&(v=0)}}return a}function N_(e,t,r,n,i,a,o,s,c,l,u){for(var d=i-1,p=i===0?a:[""],g=Cb(p),m=0,v=0,h=0;m<n;++m)for(var P=0,x=Du(e,d+1,d=Ale(v=o[m])),T=e;P<g;++P)(T=M_(v>0?p[P]+" "+x:Mt(x,/&\f/g,p[P])))&&(c[h++]=T);return Af(e,t,r,i===0?Eb:s,c,l,u)}function Vle(e,t,r){return Af(e,t,r,__,kf(Lle()),Du(e,2,-2),0)}function D_(e,t,r,n){return Af(e,t,r,Sb,Du(e,0,n),Du(e,n+1,-1),n)}function zs(e,t){for(var r="",n=Cb(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function L_(e,t,r,n){switch(e.type){case Ole:if(e.children.length)break;case Mle:case Sb:return e.return=e.return||e.value;case __:return"";case k_:return e.return=e.value+"{"+zs(e.children,n)+"}";case Eb:e.value=e.props.join(",")}return Sa(r=zs(e.children,n))?e.return=e.value+"{"+r+"}":""}function U_(e){var t=Cb(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function jle(e){return function(t){t.root||(t=t.return)&&e(t)}}var Hle=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var i=t(n);return r.set(n,i),i}};function Gle(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var xb=typeof document<"u",Wle=function(t,r,n){for(var i=0,a=0;i=a,a=Pa(),i===38&&a===12&&(r[n]=1),!Fu(a);)ai();return Uu(t,Vn)},Qle=function(t,r){var n=-1,i=44;do switch(Fu(i)){case 0:i===38&&Pa()===12&&(r[n]=1),t[n]+=Wle(Vn-1,r,n);break;case 2:t[n]+=Rf(i);break;case 4:if(i===44){t[++n]=Pa()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=kf(i)}while(i=ai());return t},Zle=function(t,r){return $_(Qle(A_(t),r))},F_=new WeakMap,Kle=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!F_.get(n))&&!i){F_.set(t,!0);for(var a=[],o=Zle(r,a),s=n.props,c=0,l=0;c<o.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=a[c]?o[c].replace(/&\f/g,s[u]):s[u]+" "+o[c]}}},Yle=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function B_(e,t){switch(Rle(e,t)){case 5103:return kt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return kt+e+e;
88case 5349:case 4246:case 4810:case 6968:case 2756:return kt+e+_f+e+Tn+e+e;case 6828:case 4268:return kt+e+Tn+e+e;case 6165:return kt+e+Tn+"flex-"+e+e;case 5187:return kt+e+Mt(e,/(\w+).+(:[^]+)/,kt+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return kt+e+Tn+"flex-item-"+Mt(e,/flex-|-self/,"")+e;case 4675:return kt+e+Tn+"flex-line-pack"+Mt(e,/align-content|flex-|-self/,"")+e;case 5548:return kt+e+Tn+Mt(e,"shrink","negative")+e;case 5292:return kt+e+Tn+Mt(e,"basis","preferred-size")+e;case 6060:return kt+"box-"+Mt(e,"-grow","")+kt+e+Tn+Mt(e,"grow","positive")+e;case 4554:return kt+Mt(e,/([^-])(transform)/g,"$1"+kt+"$2")+e;case 6187:return Mt(Mt(Mt(e,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),e,"")+e;case 5495:case 3959:return Mt(e,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return Mt(Mt(e,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+Tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+e+e;case 4095:case 3583:case 4068:case 2532:return Mt(e,/(.+)-inline(.+)/,kt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Sa(e)-1-t>6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Mt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+_f+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pb(e,"stretch")?B_(Mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,Sa(e)-3-(~Pb(e,"!important")&&10))){case 107:return Mt(e,":",":"+kt)+e;case 101:return Mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(on(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+Tn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return kt+e+Tn+Mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+Tn+Mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+Tn+Mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+Tn+e+e}return e}var Xle=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Sb:t.return=B_(t.value,t.length);break;case k_:return zs([Lu(t,{value:Mt(t.value,"@","@"+kt)})],i);case Eb:if(t.length)return Dle(t.props,function(a){switch(Nle(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zs([Lu(t,{props:[Mt(a,/:(read-\w+)/,":"+_f+"$1")]})],i);case"::placeholder":return zs([Lu(t,{props:[Mt(a,/:(plac\w+)/,":"+kt+"input-$1")]}),Lu(t,{props:[Mt(a,/:(plac\w+)/,":"+_f+"$1")]}),Lu(t,{props:[Mt(a,/:(plac\w+)/,Tn+"input-$1")]})],i)}return""})}},q_=xb?void 0:Hle(function(){return Gle(function(){return{}})}),Jle=[Xle],z_=function(t){var r=t.key;if(xb&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var M=k.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var i=t.stylisPlugins||Jle,a={},o,s=[];xb&&(o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(k){for(var M=k.getAttribute("data-emotion").split(" "),$=1;$<M.length;$++)a[M[$]]=!0;s.push(k)}));var c,l=[Kle,Yle];if(q_){var m=[L_],v=U_(l.concat(i,m)),h=function(M){return zs(R_(M),v)},P=q_(i)(r),x=function(M,$){var O=$.name;return P[O]===void 0&&(P[O]=h(M?M+"{"+$.styles+"}":$.styles)),P[O]};c=function(M,$,O,H){var J=$.name,W=x(M,$);if(T.compat===void 0)return H&&(T.inserted[J]=!0),W;if(H)T.inserted[J]=W;else return W}}else{var u,d=[L_,jle(function(k){u.insert(k)})],p=U_(l.concat(i,d)),g=function(M){return zs(R_(M),p)};c=function(M,$,O,H){u=O,g(M?M+"{"+$.styles+"}":$.styles),H&&(T.inserted[$.name]=!0)}}var T={key:r,sheet:new kle({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return T.sheet.hydrate(s),T},_b=typeof document<"u";function eue(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var V_=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||_b===!1&&t.compat!==void 0)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},tue=function(t,r,n){V_(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a="",o=r;do{var s=t.insert(r===o?"."+i:"",o,t.sheet,!0);!_b&&s!==void 0&&(a+=s),o=o.next}while(o!==void 0);if(!_b&&a.length!==0)return a}};function rue(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>
88>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nue={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function iue(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var aue=/[A-Z]|^ms/g,oue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,j_=function(t){return t.charCodeAt(1)===45},H_=function(t){return t!=null&&typeof t!="boolean"},kb=iue(function(e){return j_(e)?e:e.replace(aue,"-$&").toLowerCase()}),G_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(oue,function(n,i,a){return Ca={name:i,styles:a,next:Ca},i})}return nue[t]!==1&&!j_(t)&&typeof r=="number"&&r!==0?r+"px":r};function Bu(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ca={name:i.name,styles:i.styles,next:Ca},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Ca={name:o.name,styles:o.styles,next:Ca},o=o.next;var s=a.styles+";";return s}return sue(e,t,r)}case"function":{if(e!==void 0){var c=Ca,l=r(e);return Ca=c,Bu(e,t,l)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function sue(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Bu(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":H_(s)&&(n+=kb(a)+":"+G_(a,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)H_(o[c])&&(n+=kb(a)+":"+G_(a,o[c])+";");else{var l=Bu(e,t,o);switch(a){case"animation":case"animationName":{n+=kb(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var W_=/label:\s*([^\s;{]+)\s*(;|$)/g,Ca;function cue(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ca=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Bu(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Bu(r,t,e[s]),n){var c=a;i+=c[s]}W_.lastIndex=0;for(var l="",u;(u=W_.exec(i))!==null;)l+="-"+u[1];var d=rue(i)+l;return{name:d,styles:i,next:Ca}}var lue=typeof document<"u",Q_=function(t){return t()},uue=Lt.useInsertionEffect?Lt.useInsertionEffect:!1,due=lue&&uue||Q_,pue=typeof document<"u",Df=Lt.createContext(typeof HTMLElement<"u"?z_({key:"css"}):null);Df.Provider;var Z_=function(t){return Ri(function(r,n){var i=xt(Df);return t(r,i,n)})};pue||(Z_=function(t){return function(r){var n=xt(Df);return n===null?(n=z_({key:"css"}),Lt.createElement(Df.Provider,{value:n},t(r,n))):t(r,n)}});var fue=Lt.createContext({});function gue(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mue=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
88ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hue=gue(function(e){return mue.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vue=typeof document<"u",yue=hue,bue=function(t){return t!=="theme"},K_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yue:bue},Y_=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},wue=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;V_(r,n,i);var a=due(function(){return tue(r,n,i)});if(!vue&&a!==void 0){for(var o,s=n.name,c=n.next;c!==void 0;)s+=" "+c.name,c=c.next;return Lt.createElement("style",(o={},o["data-emotion"]=r.key+" "+s,o.dangerouslySetInnerHTML={__html:a},o.nonce=r.sheet.nonce,o))}return null},Tue=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=Y_(t,r,n),c=s||K_(i),l=!c("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var g=u.length,m=1;m<g;m++)d.push(u[m],p[m])}var v=Z_(function(h,P,x){var T=l&&h.as||i,k="",M=[],$=h;if(h.theme==null){$={};for(var O in h)$[O]=h[O];$.theme=Lt.useContext(fue)}typeof h.className=="string"?k=eue(P.registered,M,h.className):h.className!=null&&(k=h.className+" ");var H=cue(d.concat(M),P.registered,$);k+=P.key+"-"+H.name,o!==void 0&&(k+=" "+o);var J=l&&s===void 0?K_(T):c,W={};for(var me in h)l&&me==="as"||J(me)&&(W[me]=h[me]);return W.className=k,x&&(W.ref=x),Lt.createElement(Lt.Fragment,null,Lt.createElement(wue,{cache:P,serialized:H,isStringTag:typeof T=="string"}),Lt.createElement(T,W))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(h,P){var x=e(h,Tb({},r,P,{shouldForwardProp:Y_(v,P,!0)}));return x.apply(void 0,d)},v}},Eue=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],jn=Tue.bind(null);Eue.forEach(function(e){jn[e]=jn(e)});const Sue=y.createContext(void 0);function X_(){return y.useContext(Sue)??{disableSwanSnowflakes:!1}}const Pue=new Sc.TokenEngine,J_=3;function ek(e,t,r,n){const i=r.length,a=i>Math.min(J_,r.length)?"more":i.toString(),o=`${t}_${a}`,s={ATTRIBUTE_COUNT:J_.toString()};n&&(s.ATTRIBUTE=Lf(n.attributeName,"normal"),s.OPTION=Lf(n.optionName,"bold")),r.forEach((l,u)=>{const d=`ATTRIBUTE${u+1}`,p=`OPTION${u+1}`;s[d]=Lf(l.attributeName,"normal"),s[p]=Lf(l.optionName,"bold")});const c=e(o);return Pue.replace(c??"",s)}
88function Lf(e,t="normal"){switch(t){case"bold":return`<span class="swan-font-weight-bold">${e}</span>`;case"normal":return`<span class="swan-font-weight-normal">${e}</span>`;case"none":return`${e}`}}const Cue=jn.div` 89 .swan-selection-set.swan-selection-set-skin-tiles-horizontal, 90 .swan-selection-set.swan-selection-set-skin-tiles-mini, 91 .swan-selection-set.swan-selection-set-skin-tiles-vertical { 92 --grid-gap: var(--swan-sem-space-4); 93 gap: var(--grid-gap); 94 container-type: inline-size; 95 container-name: productOption; 96 } 97 98 .swan-selection-set.swan-selection-set-skin-tiles-vertical 99 .tight-button 100 .swan-selection-set-label { 101 margin: 0 !important; 102 min-width: unset !important; 103 max-width: unset !important; 104 width: 100%; 105 } 106 107 .swan-selection-set.swan-selection-set-skin-tiles-vertical 108 .tight-button 109 .swan-selection-set-label { 110 height: 100%; 111 } 112 113 .swan-selection-set.swan-selection-set-skin-tiles-vertical .tight-button { 114 --grid-columns: 1; 115 --column-gaps: 0px; 116 flex: 0 1 calc((100% - var(--column-gaps)) / var(--grid-columns)); 117 } 118 119 @container productOption (min-width: 260px) { 120 .swan-selection-set.swan-selection-set-skin-tiles-vertical .tight-button { 121 --grid-columns: 2; 122 --column-gaps: var(--grid-gap); 123 } 124 } 125 126 @container productOption (min-width: 425px) { 127 .swan-selection-set.swan-selection-set-skin-tiles-vertical .tight-button { 128 --grid-columns: 3; 129 --column-gaps: calc(var(--grid-gap) * 2); 130 } 131 } 132 133 @container productOption (min-width: 600px) { 134 .swan-selection-set.swan-selection-set-skin-tiles-vertical .tight-button { 135 --grid-columns: 4; 136 --column-gaps: calc(var(--grid-gap) * 3); 137 max-width: 170px; 138 } 139 } 140 141 .incompatible-option { 142 border-width: 2px !important; 143 background-color: var(--swan-color-grey-100) !important; 144 border-style: dashed; 145 border-color: var(--swan-color-grey-500) !important; 146 } 147`,Iue=({children:e})=>{const{disableSwanSnowflakes:t}=X_();return t?y.createElement(y.Fragment,null,e):y.createElement(Cue,null,e)},xue=({option:e,locale:t,currency:r,fractionDigits:n,priceDisplayMode:i="differential-unit",showIncompatibleChoices:a,hideImages:o,tenant:s,onChanged:c})=>{const l=Mn(),u=(g,m)=>{e.selectedKey&&delete g[e.selectedKey];for(const[v,h]of Object.entries(g))if(h&&v!==e.selectedKey){c({choiceKey:v});break}},d=Sr(),p={};for(const g of e.choices)p[g.key]=g.key===e.selectedKey;return y.createElement(Iue,null,y.createElement(Ci,{titleId:d}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"multi-select",skin:"tiles-vertical",selectedValues:p,onSelectedValuesChange:u,"aria-labelledby":d,role:"radiogroup","aria-required":e.isRequired?"true":void 0},e.choices.filter(g=>a||g.isCompatible).map(g=>y.createElement("div",{className:"tight-button",key:`choice_${g.key}`},y.createElement(hi,{value:g.key,disabled:!g.isCompatible&&!g.violations?.length},y.createElement(vi,{className:g.violations?.length?"incompatible-option":"compatible-option",style:{minHeight:o?"unset":"inherit"},...g.additionalProps??{}},!o&&y.createElement(wb,{choice:g}),!o&&y.createElement(db,{callouts:g.callouts}),y.createElement(Sl,null,y.createElement(Md,null,g.name),g.violations?.length?y.createElement(we,{as:"span",fontWeight:"normal",dangerouslySetInnerHTML:{__html:_ue(g.violations,l)}}):i==="none"||g.key===e.selectedKey?y.createElement(y.Fragment,null):y.createElement(Od,null,y.createElement(Fs,{choice:g,priceDisplayMode:i,locale:t,currency:r,fractionDigits:n,hideZeroPrice:!0,tenant:s})))))))))};function _ue(e,{i18n:t}){return ek(t,"unwindingMessage",e)}const kue=jn.div` 148 .swan-selection-set { 149 flex-wrap: wrap; 150 } 151 152 .swan-selection-set.swan-selection-set-skin-tiles-horizontal .swan-callout { 153 position: relative; 154 top: unset; 155 left: unset; 156 margin-bottom: var(--swan-spacing-standard-1); 157 } 158 159 .swan-selection-set.swan-selection-set-skin-tiles-horizontal .swan-selection-set-label { 160 word-break: initial; 161 align-items: start; 162 } 163 164 .swan-selection-set.swan-selection-set-skin-tiles-horizontal .swan-selection-set-tile-contents { 165 width: 100%; 166 } 167`,tk=({option:e,locale:t,currency:r,fractionDigits:n,onChanged:i,priceDisplayMode:a="differential-unit",showIncompatibleChoices:o,hideImages:s,tenant:c,hideDescriptions:l})=>{const u=(g,m)=>{i({choiceKey:g})},d=Sr(),p=e.choices.filter(g=>o||g.isCompatible);return y.createElement(kue,null,y.createElement(Ci,{titleId:d}),y.createElement($i,{variant:"single-select",skin:"tiles-horizontal",selectedValue:e.selectedKey,onSelectedValueChange:u,"aria-labelledby":d,"aria-required":e.isRequired},p.map((g,m)=>y.createElement(hi,{key:`choice_${g.key}`,value:g.key,disabled:!g.isCompatible,id:e.key+g.key},y.createElement(vi,{mb:m===p.length-1?0:void 0,...g.additionalProps??{}},!s&&y.createElement(wb,{choice:g}),y.createElement(Sl,{ml:{xs:0,sm:0,md:"5",lg:"5",xl:"5"}},g.callouts&&g.callouts.length>0&&y.createElement(ct,{mb:g.experimental?.auto_upsell_1&&g.experimental?.auto_upsell_2?"1":"3"},y.createElement(db,{callouts:g.callouts})),!s&&g.experimental?.auto_upsell_1&&g.experimental?.auto_upsell_2&&y.createElement(y.Fragment,null,y.createElement(we,{fontSkin:"body-small"},g.experimental?.auto_upsell_1),y.createElement(we,{fontSkin:"footnote",textColor:"subtle",mb:3},g.experimental?.auto_upsell_2)),y.createElement(Re,{justifyContent:"space-between",fontSize:"standard"},y.createElement(Md,null,g.name),a==="none"||g.key===e.selectedKey?y.createElement(y.Fragment,null):y.createElement(Od,{pl:"3"},y.createElement(Fs,{tenant:c,choice:g,priceDisplayMode:a,locale:t,currency:r,fractionDigits:n,hideZeroPrice:!0}))),!l&&y.createElement(x_,{descriptionMarkdown:g.description})))))))};
167function Mue(e){switch(e){case"minimal":return Hce;case"standard":return Ile;case"tight":return xue;case"wide":return tk;default:return tk}}const Oue=e=>{const t=i=>{e.onChanged(i)},r=Mue(e.skin??"wide"),n={...e,onChanged:t};return y.createElement(r,{...n})},rk=({callouts:e})=>{const t=e?.[0];return t?y.createElement(mi,{key:t.key,skin:t.style??"info",emphasis:"low",ml:"3"},t.text):y.createElement(y.Fragment,null)},Aue=e=>[y.createElement(Pm,null,y.createElement(Cl,{textValue:"dummy-message",key:"dropdown-option-incompatible-option-msg",disabled:!0},y.createElement(we,{fontWeight:"bold"}," ",e("incompatibilityMessage")," ")))],Uf=e=>e?e.replaceAll('"',""e;"):null,$ue=e=>e?e.replaceAll(""e;",'"'):null,Mb=()=>{const{i18n:e}=Mn();return y.createElement(ct,null,y.createElement(we,{fontWeight:"bold"},e("select")))};function nk(e){const t=Uf(e);return new Set(t!=null?[t]:[])}function Ob(e,t){const[r,n]=y.useState(nk(e));y.useEffect(()=>{n(nk(e))},[e]);const i=y.useCallback(a=>{if(a==="all")throw new Error("the 'all' should not be selected");const o=Array.from(a.values());o.length>0&&(t({choiceKey:$ue(o[0])}),n(new Set(o)))},[t]);return{selectedKeys:r,handleOnSelectionChange:i}}const Rue=e=>{const{option:t,onChanged:r,showIncompatibleChoices:n,fractionDigits:i,locale:a,currency:o,priceDisplayMode:s="none",tenant:c}=e,{i18n:l}=Mn(),u=Sr(),d=t.choices.filter(h=>h.isCompatible),{selectedKeys:p,handleOnSelectionChange:g}=Ob(t.selectedKey,r);let m=[];n&&(m=t.choices.filter(h=>!h.isCompatible));const v=(h,P)=>{const x=y.createElement(y.Fragment,null,y.createElement(we,null,h.name),y.createElement(Fs,{tenant:c,choice:h,fractionDigits:i,priceDisplayMode:s,locale:a,currency:o,hideZeroPrice:!0}));return y.createElement(Cl,{key:Uf(h.key),textValue:h.name,disabled:h.isOutOfStock,label:y.createElement(Re,{flexDirection:"row",gap:"3",fontWeight:"bold"},x,P&&y.createElement(rk,{callouts:h.callouts})),...h.additionalProps??{}},y.createElement(Re,{gap:"3",alignItems:"baseline"},x,P&&y.createElement(rk,{callouts:h.callouts})))};return y.createElement(y.Fragment,null,y.createElement(Ci,{titleId:u}),y.createElement(Ad,{selectionMode:"single",fullWidth:!0,selectedKeys:p,onSelectionChange:g,size:"standard","aria-required":t.isRequired},y.createElement($d,{"aria-labelledby":u,placeholder:y.createElement(Mb,null)}),y.createElement(Rd,null,y.createElement(Nd,null,y.createElement(Pm,null,d.map(h=>v(h,!0))),n&&m.length>0?Aue(l):[],m.map(h=>v(h,!1))))))},Nue=jn.div` 168 .swan-listbox-button-with-label span > * { 169 margin-left: unset; 170 } 171 172 .swan-listbox-button-with-label span { 173 display: unset; 174 align-items: unset; 175 } 176`,Due=({children:e})=>{const{disableSwanSnowflakes:t}=X_();return t?y.createElement(y.Fragment,null,e):y.createElement(Nue,null,e)},Lue=e=>{const{option:t,onChanged:r,showIncompatibleChoices:n,fractionDigits:i,locale:a,currency:o,priceDisplayMode:s="none",hideImages:c,tenant:l}=e,u=Sr(),d=!c&&t.choices.some(m=>!!m.image),{selectedKeys:p,handleOnSelectionChange:g}=Ob(t.selectedKey,r);return y.createElement(Due,null,y.createElement(Ci,{titleId:u}),y.createElement(Ad,{selectionMode:"single",fullWidth:!0,selectedKeys:p,onSelectionChange:g},y.createElement($d,{"aria-labelledby":u,placeholder:y.createElement(Mb,null)}),y.createElement(Rd,null,y.createElement(Nd,null,t.choices.filter(m=>n||m.isCompatible).map(m=>y.createElement(Cl,{key:Uf(m.key),textValue:m.name,label:y.createElement(Re,{flexDirection:"row",gap:"3",fontWeight:"bold"},y.createElement(ik,{tenant:l,choice:m,priceDisplayMode:s,locale:a,fractionDigits:i,currency:o})),withThumbnail:d,disabled:m.isOutOfStock,...m.additionalProps??{}},d&&y.createElement(L0,null,y.createElement(qa,{src:m.image})),y.createElement(Re,{flexDirection:d?"column":"row",alignItems:"center"},y.createElement(ik,{tenant:l,choice:m,priceDisplayMode:s,locale:a,fractionDigits:i,currency:o}),!!m.callouts&&m.callouts.length>0&&m.callouts.map(v=>y.createElement(mi,{emphasis:"low",ml:"3",key:v.key,skin:v.style??"info"},v.text)))))))))},ik=({tenant:e,choice:t,priceDisplayMode:r,locale:n,fractionDigits:i,currency:a,vatInc:o=!1,hideVatMessage:s=!0})=>y.createElement(y.Fragment,null,y.createElement(ct,null,y.createElement(V0,null,t.name)),r!=="none"&&y.createElement(ct,{ml:"2"},y.createElement(Fs,{tenant:e,choice:t,priceDisplayMode:r,locale:n,currency:a,fractionDigits:i,vatInc:o,hideVatMessage:s,showPriceWithParentheses:!0}))),Uue=jn.span` 177 .swan-listbox-full-width .swan-listbox-button {
178 align-items: stretch; 179 flex-direction: column; 180 justify-content: center; 181 } 182`,Fue=jn.span` 183 .swan-listbox-option { 184 padding-right: calc(var(--swan-spacing-standard-4) + 2 * 16px); 185 } 186`,Bue=e=>{const{option:t,onChanged:r,showIncompatibleChoices:n,fractionDigits:i,locale:a,currency:o,priceDisplayMode:s="differential-unit",hideImages:c,hideDescriptions:l,tenant:u}=e,d=!c&&t.choices.some(v=>!!v.image),{selectedKeys:p,handleOnSelectionChange:g}=Ob(t.selectedKey,r),m=Sr();return y.createElement(Uue,null,y.createElement(Ci,{titleId:m}),y.createElement(Ad,{selectionMode:"single",fullWidth:!0,selectedKeys:p,onSelectionChange:g,mb:"6"},y.createElement($d,{"aria-labelledby":m,placeholder:y.createElement(Mb,null)}),y.createElement(Rd,null,y.createElement(Fue,null,y.createElement(Nd,null,t.choices.filter(v=>n||v.isCompatible).map(v=>y.createElement(Cl,{key:Uf(v.key),textValue:v.name,withThumbnail:!0,disabled:v.isOutOfStock,...v.additionalProps??{}},y.createElement(vn,null,y.createElement(Be,null,d&&y.createElement(_e,{span:3},y.createElement(qa,{src:v.image})),y.createElement(_e,{span:d?9:12},y.createElement(Re,{justifyContent:"space-between"},y.createElement(we,{fontWeight:"bold"},v.name),y.createElement(Fs,{tenant:u,choice:v,fractionDigits:i,priceDisplayMode:s,locale:a,currency:o,hideZeroPrice:!0})),!l&&y.createElement(I_,{markdownText:v.description})))))))))))},que=e=>{switch(e){case"wide":return Bue;case"minimal":return Rue;case"standard":default:return Lue}},zue=e=>{const{onChanged:t,skin:r,option:n}=e,a={...e,onChanged:s=>{t&&t({choiceKey:s.choiceKey})}},o=que(r??"standard");return y.createElement(o,{...a})},ak=e=>y.createElement(ok,{...e,size:"standard"}),Vue=e=>y.createElement(ok,{...e,size:"super"}),ok=({option:e,size:t,showIncompatibleChoices:r,onChanged:n})=>{const[i,a]=y.useState(e.selectedKey??null);Ye(()=>{const c=e.choices.find(d=>d.key===e.selectedKey),l=c?.isOutOfStock||c?.isCompatible||r,u=c?.isOutOfStock??!1;l&&!u&&a(e.selectedKey??null)},[e,r]);const o=c=>{a(c),n?.({choiceKey:c})},s=Sr();return y.createElement(ct,null,y.createElement(Ci,{titleId:s,showSelectedOptionText:!0}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"single-select",selectedValue:i,onSelectedValueChange:o,"aria-required":e.isRequired,"aria-labelledby":s},y.createElement(Pl,{className:"color-swatches-base",size:t},e.choices.map((c,l)=>{const u=c.key?.split("/"),d=u?.[0],p=u?.[1]??d,g=c.isOutOfStock||c.isCompatible||r,m=c.isOutOfStock??!1;return g&&y.createElement(hi,{key:`choice_${c.key}`,value:c.key,disabled:m},y.createElement(vi,null,y.createElement(Il,{component:"span",primaryColor:d,secondaryColor:p,accessibleText:c.name,...c.additionalProps??{}})))}))))};function jue(e){switch(e){case"standard":case"minimal":case"tight":return ak;case"wide":return Vue;default:return ak}}const Hue=e=>{const t=i=>{e?.onChanged?.(i)},r=jue(e.skin??"standard"),n={...e,onChanged:t};return y.createElement(r,{...n})};var Gue=yi(void 0),Vs=function(){var e=xt(Gue);return e},Ff=function(){return y.createElement(ts,{"aria-label":"loading"},y.createElement(Al,{width:"narrow"}))},Wue=function(e){var t=e.differentialListPrice,r=e.differentialDiscountPrice,n=e.locale,i=e.currency,a=e.fractionDigits,o=e.pricePlaceholder,s=r??t,c=t===0&&s!==0?Zd:Jm;return y.createElement(c,{placeHolderText:o,pricingInfo:{currency:i,minimumFractionDigits:a,culture:n,priceDifference:t??0,priceDifferenceDiscounted:s??0}})},Wc=function(){return Wc=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Wc.apply(this,arguments)};function sk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function no(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{l(n.next(u))}catch(d){o(d)}}function c(u){try{l(n.throw(u))}catch(d){o(d)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})}function Ia(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(u){l=[6,u],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Que(e,t,r){for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Zue=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return no(void 0,Que([e],t),void 0,function(n,i,a,o){var s,c,l;return i===void 0&&(i={}),a===void 0&&(a=5),o===void 0&&(o=500),Ia(this,function(u){switch(u.label){case 0:s=function(d){var p,g,m;return Ia(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,6]),[4,fetch(n,i)];case 1:if(p=v.sent(),p.ok)return[2,{value:p}];throw p.status>=400&&p.status<500?new Error("HTTP client 4XX! status: ".concat(p.status)):new Error("HTTP error! status: ".concat(p.status));case 2:if(g=v.sent(),g instanceof Error&&g.message.includes("HTTP client 4XX"))throw g;return d<a?(m=o*Math.pow(2,d),[4,new Promise(function(h){return setTimeout(h,m)})]):[3,4];case 3:return v.sent(),[3,5];case 4:throw g;case 5:return[3,6];case 6:return[2]}})},c=0,u.label=1;case 1:return c<=a?[5,s(c)]:[3,4];case 2:if(l=u.sent(),typeof l=="object")return[2,l.value];u.label=3;case 3:return c++,[3,1];case 4:throw new Error("Failed to fetch after retries")}})})},ck=new Map,Bf=new Map;function Kue(e){var t=e.get("cache-control");if(t){var r=t.match(/max-age=(\d+)/);if(r){var n=parseInt(r[1],10);return Date.now()+n*1e3}if(/no-cache|no-store/.test(t))return null}var i=e.get("expires");if(i){var a=new Date(i).getTime();if(!isNaN(a))return a}return null}function lk(e,t){return no(this,void 0,void 0,function(){var r,n,i,a,o,s,c,l,u,d,p;return Ia(this,function(g){switch(g.label){case 0:return r=e.toString(),n=ck.get(r),n&&n.expiresAt>Date.now()?[2,new Response(n.value.body,n.value)]:(i=void 0,Bf.has(r)?(a=Bf.get(r),[4,a]):[3,2]);case 1:return i=g.sent(),[3,4];case 2:return o=Zue(e,t),Bf.set(r,o),[4,o];case 3:i=g.sent(),Bf.delete(r),g.label=4;case 4:return i?(s=i.clone(),[4,s.arrayBuffer()]):[2,new Response(null,{status:500,statusText:"No response"})];case 5:return c=g.sent(),l=new Headers(s.headers),u=s.status,d=s.statusText,p=Kue(l),p&&u===200&&ck.set(r,{value:{body:c,headers:l,status:u,statusText:d},expiresAt:p}),[2,i.clone()]}})})}var uk="@vp/configurator-prices",Ab="Vistaprint",Yue="https://website-pricing-service.prices.cimpress.io",Xue="".concat(Yue,"/v4/prices/startingAt/estimated");function Jue(e,t,r,n,i,a,o,s,c){o===void 0&&(o="0");var l=new URL(Xue);if(c&&c!=="undefined"){var u=decodeURIComponent(c),d=u.split("&");d.length>1?d.map(function(x){var T=x.split("=");l.searchParams.append(T[0],T[1])}):l.searchParams.append("pricingContext",c)}if(l.searchParams.has("merchantId")||l.searchParams.append("merchantId",t),l.searchParams.has("market")||l.searchParams.append("market",r),n&&!l.searchParams.has("couponCode")&&l.searchParams.append("couponCode",n),l.searchParams.append("requestor",uk),l.searchParams.append("productKey",e),l.searchParams.append("Quantities",i.join(",")),s)for(var p=0,g=s;p<g.length;p++){var m=g[p];l.searchParams.append("optionalPriceComponents",m)}for(var v=0,h=Object.keys(a);v<h.length;v++){var P=h[v];l.searchParams.append("selections[".concat(P,"]"),a[P])}return o&&l.searchParams.append("ProductVersion",o.toString()),l.searchParams.sort(),l}var qf=function(e){return no(void 0,void 0,void 0,function(){var t,r,n,i,a,o,s,c,l,u,d,p,g,m;return Ia(this,function(v){switch(v.label){case 0:if(t=e.productKey,r=e.merchant,n=e.market,i=e.couponCode,a=e.quantities,o=e.selections,s=e.productVersion,c=e.pricingContextString,l=e.optionalPriceComponents,u=l===void 0?["UnitPrice","PercentageAndAmountOff"]:l,!a)return[2];v.label=1;case 1:return v.trys.push([1,5,,6]),d=Jue(t,r,n,i,a,o,s,u,c),[4,lk(d,{method:"GET",headers:{"Content-Type":"application/json"}})];case 2:return p=v.sent(),p.ok?[4,p.json()]:[3,4];case 3:return g=v.sent(),[2,g];case 4:return[3,6];case 5:return m=v.sent(),console.error("Error fetching differential pricing:",m),[2];case 6:return[2]}})})},ede=function(e,t,r,n){var i,a,o=(i=r.estimatedPrices)===null||i===void 0?void 0:i[e],s=(a=n.estimatedPrices)===null||a===void 0?void 0:a[t];if(!(o===void 0||s===void 0))return{total:{listTaxed:s.totalListPrice.taxed,listUntaxed:s.totalListPrice.untaxed,discountedTaxed:s.totalDiscountedPrice.taxed,discountedUntaxed:s.totalDiscountedPrice.untaxed},unit:{listTaxed:s.unitListPrice.taxed,listUntaxed:s.unitListPrice.untaxed,discountedTaxed:s.unitDiscountedPrice.taxed,discountedUntaxed:s.unitDiscountedPrice.untaxed},differential:{listTaxed:s.totalListPrice.taxed-o.totalListPrice.taxed,listUntaxed:s.totalListPrice.untaxed-o.totalListPrice.untaxed,discountedTaxed:s.totalDiscountedPrice.taxed-o.totalDiscountedPrice.taxed,discountedUntaxed:s.totalDiscountedPrice.untaxed-o.totalDiscountedPrice.untaxed},differentialUnit:{listTaxed:s.unitListPrice.taxed-o.unitListPrice.taxed,listUntaxed:s.unitListPrice.untaxed-o.unitListPrice.untaxed,discountedTaxed:s.unitDiscountedPrice.taxed-o.unitDiscountedPrice.taxed,discountedUntaxed:s.unitDiscountedPrice.untaxed-o.unitDiscountedPrice.untaxed}}},dk=function(e,t,r,n,i,a){return no(void 0,void 0,void 0,function(){var o,s,c,l,u,d,p,g,m,v;return Ia(this,function(h){switch(h.label){case 0:return o=n.Quantity,s=sk(n,["Quantity"]),c=qf({productKey:t,merchant:"Vistaprint",productVersion:r,market:e,selections:s,quantities:[o],pricingContextString:a}),l=i.Quantity,u=sk(i,["Quantity"]),d=qf({productKey:t,merchant:"Vistaprint",market:e,productVersion:r,selections:u,quantities:[l],pricingContextString:a}),[4,Promise.all([c,d])];case 1:return p=h.sent(),g=p[0],m=p[1],!g||!m||!g.currency||!g.fractionDigits?[2,void 0]:(v=ede(n.Quantity,i.Quantity,g,m),v?[2,{itemTotals:v,currency:g.currency,fractionDigits:g.fractionDigits}]:[2,void 0])}})})},$b=function(e,t,r){var n=Vs(),i=pe(!0),a=i[0],o=i[1],s=pe(),c=s[0],l=s[1],u=pe(),d=u[0],p=u[1],g=pe(),m=g[0],v=g[1];return Ee(function(){var h=function(){l(void 0),p(void 0),v(void 0),o(!1)};if(!n){h();return}var P=n.completedSelections&&r&&Object.keys(n.completedSelections).length===Object.keys(r).length&&Object.entries(n.completedSelections).every(function(T){var k=T[0],M=T[1];return r[k]===M}),x=function(){return no(void 0,void 0,void 0,function(){var T,T,k,M,$;return Ia(this,function(O){switch(O.label){case 0:return O.trys.push([0,5,,6]),o(!0),P?(h(),[2]):n.completedSelections&&r&&n.completedSelections.Quantity&&r.Quantity?[4,dk(n.market,n.productKey,n.productVersion,n.c
186ompletedSelections,r,n.pricingContextString)]:[3,2];case 1:return T=O.sent(),T?(l(T.itemTotals),p(T.currency),v(T.fractionDigits),o(!1),[2]):(h(),[2]);case 2:return!(($=n.selections)===null||$===void 0)&&$.Quantity?[4,dk(n.market,n.productKey,n.productVersion,n.selections,Object.assign({},n.selections,(M={},M[e]=t,M)),n.pricingContextString)]:[3,4];case 3:return T=O.sent(),T?(l(T.itemTotals),p(T.currency),v(T.fractionDigits),o(!1),[2]):(h(),[2]);case 4:return h(),[3,6];case 5:return k=O.sent(),console.error("Error checking if prices should be shown:",k),h(),[3,6];case 6:return[2]}})})};x()},[n?.selections,n?.market,n?.productKey,n?.productVersion,n?.completedSelections,n?.pricingContextString,e,t,r]),{isLoading:a,prices:c,currency:d,minimumFractionDigits:m}},pk=function(e){var t,r,n,i,a,o,s=e.option,c=e.optionValue,l=e.completedSelections,u=Vs(),d=$b(s,c,l),p=d.isLoading,g=d.prices,m=d.currency,v=d.minimumFractionDigits,h=u?.selections[s],P=h===c;return p?y.createElement(Ff,null):!g||!u?.culture||!m||!v||!(!((t=g.differential)===null||t===void 0)&&t.listTaxed)&&!(!((r=g.differential)===null||r===void 0)&&r.discountedTaxed)||P?y.createElement("span",null,"\xA0"):y.createElement(Wue,{differentialListPrice:(i=(n=g.differential)===null||n===void 0?void 0:n.listTaxed)!==null&&i!==void 0?i:0,differentialDiscountPrice:(o=(a=g.differential)===null||a===void 0?void 0:a.discountedTaxed)!==null&&o!==void 0?o:0,locale:u.culture,currency:m,fractionDigits:v,pricePlaceholder:"..."})},tde=function(e){var t,r,n=e.option,i=e.optionValue,a=e.completedSelections,o=(Vs()||{}).culture,s=$b(n,i,a),c=s.isLoading,l=s.prices,u=s.currency,d=s.minimumFractionDigits;return o?c?y.createElement(Ff,null):!l||!o||!u||!d||!l.unit.listTaxed&&!l.unit.discountedTaxed?y.createElement("span",null,"\xA0"):y.createElement(Qd,{pricingInfo:{unitListPrice:(t=l.unit.discountedTaxed)!==null&&t!==void 0?t:0,unitDiscountPrice:(r=l.unit.discountedTaxed)!==null&&r!==void 0?r:0,culture:o,currency:u,minimumFractionDigits:d,vatInc:!0,hideVatMessage:!0,hideShippingMessageInVatMessage:!0},placeHolderText:"",tenant:"vistaprint"}):y.createElement("span",null,"\xA0")},rde=function(e){var t,r,n=e.option,i=e.optionValue,a=e.completedSelections,o=(Vs()||{}).culture,s=$b(n,i,a),c=s.isLoading,l=s.prices,u=s.currency,d=s.minimumFractionDigits;return o?c?y.createElement(Ff,null):!l||!o||!u||!d||!l.total.listTaxed&&!l.total.discountedTaxed?y.createElement("span",null,"\xA0"):y.createElement(Tc,{pricingInfo:{listPrice:(t=l.total.listTaxed)!==null&&t!==void 0?t:0,discountPrice:(r=l.total.discountedTaxed)!==null&&r!==void 0?r:0,culture:o,currency:u,minimumFractionDigits:d,vatInc:!0,hideVatMessage:!0,hideShippingMessageInVatMessage:!0},placeHolderText:"",tenant:"vistaprint"}):y.createElement("span",null,"\xA0")},nde=function(e,t,r,n,i,a){return no(void 0,void 0,void 0,function(){var o,s,c,l,u,d,p,g,m,v,h,P,x,T,k;return Ia(this,function(M){switch(M.label){case 0:return o=Wc({},n),delete o.Quantity,s=qf({merchant:Ab,market:e,productKey:t,productVersion:r,selections:Wc({},o),quantities:["".concat(i)]}),c=qf({merchant:Ab,market:e,productKey:t,productVersion:r,selections:Wc({},o),quantities:["".concat(a)]}),[4,Promise.all([s,c])];case 1:return l=M.sent(),u=l[0],d=l[1],p=u&&((T=u.estimatedPrices)===null||T===void 0?void 0:T["".concat(i)]),g=d&&((k=d.estimatedPrices)===null||k===void 0?void 0:k["".concat(a)]),!p||!g?[2,{percentageSavings:0,itemTotals:void 0}]:(m=p?.unitDiscountedPrice.untaxed||0,v=g?.totalDiscountedPrice.untaxed||0,h=m*a,P={total:{listTaxed:g.totalListPrice.taxed,listUntaxed:g.totalListPrice.untaxed,discountedTaxed:g.totalDiscountedPrice.taxed,discountedUntaxed:g.totalDiscountedPrice.untaxed},unit:{listTaxed:g.unitListPrice.taxed,listUntaxed:g.unitListPrice.untaxed,discountedTaxed:g.unitDiscountedPrice.taxed,discountedUntaxed:g.unitDiscountedPrice.untaxed}},m===0||v===0||!a?[2,{percentageSavings:0,itemTotals:P}]:(x=Math.floor((h-v)/h*100),[2,{percentageSavings:x,itemTotals:P}]))}})})},ide=function(e,t){var r=Vs(),n=pe(!0),i=n[0],a=n[1],o=pe(),s=o[0],c=o[1],l=pe(0),u=l[0],d=l[1],p=r||{},g=p.selections,m=p.market,v=p.productKey,h=p.productVersion;return Ee(function(){var P=function(){c(void 0),d(0),a(!1)};if(!g||!m||!v||!h){P();return}var x=function(){return no(void 0,void 0,void 0,function(){var T,k;return Ia(this,function(M){switch(M.label){case 0:return M.trys.push([0,2,,3]),a(!0),e<=t?(P(),[2]):[4,nde(m,v,h,g,t,e)];case 1:return T=M.sent(),c(T.itemTotals),d(T.percentageSavings),a(!1),[2];case 2:return k=M.sent(),console.error("Error checking percentage savings",k),P(),[3,3];case 3:return[2]}})})};x()},[g,m,v,h,e,t]),{isLoading:i,prices:s,percentageSaving:u}},ade="{{{PERCENT}}}% savings",ode="sale",fk={percentSavings:ade,sale:ode},sde="{{{PERCENT}}}% besparelser",cde="udsalg",lde={percentSavings:sde,sale:cde},ude="{{{PERCENT}}}\xA0% Ersparnis",dde="Sale",Rb={percentSavings:ude,sale:dde},pde="{{{PERCENT}}}% savings",fde="sale",Qc={percentSavings:pde,sale:fde},gde="{{{PERCENT}}}% de ahorro",mde="rebajas",hde={percentSavings:gde,sale:mde},vde="{{{PERCENT}}}% de ahorro",yde="ofertas",bde={percentSavings:vde,sale:yde},wde="{{{PERCENT}}} %:n s\xE4\xE4st\xF6t",Tde="Ale",Ede={percentSavings:wde,sale:Tde},Sde="{{{PERCENT}}}% d\u2019\xE9conomie",Pde="solde",Cde={percentSavings:Sde,sale:Pde},Ide="{{{PERCENT}}}% \xE9conomis\xE9s",xde="offre exclusive",Nb={percentSavings:Ide,sale:xde},_de="{{{PERCENT}}}% risparmiato",kde="saldi",gk={percentSavings:_de,sale:kde},Mde="{{{PERCENT}}}\xA0% besparelse",Ode="salg",Ade={percentSavings:Mde,sale:Ode},$de="{{{PERCENT}}}% korting",Rde="Sale",mk={percentSavings:$de,sale:Rde},Nde="Poupan\xE7a de {{{PERCENT}}}%",Dde="venda",Lde={percentSavings:Nde,sale:Dde},Ude="{{{PERCENT}}} % rabatt",Fde="rea",Bde={percentSavings:Ude,sale:Fde},qde={"en-us":fk,"da-dk":lde,"de-at":Rb,"de-ch":Rb,"de-de":Rb,"en-au":Qc,"en-ca":fk,"en-gb":Qc,"en-ie":Qc,"en-in":Qc,"en-nz":Qc,"en-sg":Qc,"es-es":hde,"es-us":bde,"fi-fi":Ede,"fr-ca":Cde,"fr-be":Nb,"fr-ch":Nb,"fr-fr":Nb,"it-ch":gk,"it-it":gk,"nb-no":Ade,"nl-be":mk,"nl
186-nl":mk,"pt-pt":Lde,"sv-se":Bde},zde=function(e){return qde[e.toLowerCase()]},Vde=function(e){var t=Ye(function(){return zde(e)},[e]),r=Et(function(i){return t[i]},[t]),n=Et(function(i){return t[i]},[t]);return{i18n:r,i18nUnsafe:n}},jde=function(e){var t=e.targetQuantity,r=e.sourceQuantity,n=(Vs()||{}).culture,i=ide(t,r),a=i.isLoading,o=i.prices,s=i.percentageSaving,c=Vde(n??"en-US").i18n;if(!n)return y.createElement("span",null,"\xA0");if(a)return y.createElement(Ff,null);if(!o||!n)return y.createElement("span",null,"\xA0");var l=s>0,u=o.total.listTaxed>o.total.discountedTaxed;if(!l&&!u)return y.createElement("span",null,"\xA0");var d=l?"+ "+c("sale"):c("sale"),p=c("percentSavings");return y.createElement(Re,null,l&&y.createElement(Ld,{fontSize:"small",textColor:"subtle",fontWeight:"normal"},y.createElement(ti,{tokenizedText:p,contextVariables:{PERCENT:"".concat(s)}})),u&&y.createElement(we,{textColor:"promo",fontSize:"small",fontWeight:"normal"},"\xA0",d))},Hde="https://website-pricing-service.prices.cimpress.io",Gde=function(e){return no(void 0,void 0,void 0,function(){var t,r,n,i,a,o,s,c,l;return Ia(this,function(u){switch(u.label){case 0:t=e.productKey,r=e.merchant,n=e.market,i=e.selections,a=e.productVersion,u.label=1;case 1:return u.trys.push([1,5,,6]),o=new URL("".concat(Hde,"/v4/prices/estimated/quantityPriceBreaks")),o.searchParams.append("productKey",t),o.searchParams.append("productVersion",a.toString()),o.searchParams.append("merchantId",r),o.searchParams.append("market",n),Object.keys(i).sort().forEach(function(d){o.searchParams.append("selections[".concat(d,"]"),i[d])}),o.searchParams.append("requestor",uk),[4,lk(o,{method:"GET",headers:{"Content-Type":"application/json"}})];case 2:return s=u.sent(),s.ok?[4,s.json()]:[3,4];case 3:return c=u.sent(),[2,c];case 4:return[3,6];case 5:return l=u.sent(),console.error("Error fetching price breaks:",l),[2];case 6:return[2]}})})},Wde=function(){var e=Vs(),t=pe(!0),r=t[0],n=t[1],i=pe([]),a=i[0],o=i[1],s=e||{},c=s.productKey,l=s.productVersion,u=s.market,d=s.completedSelections,p=Wc({},d??{});return delete p.Quantity,Ee(function(){var g=!0,m=function(){o([]),n(!1)};if(!c||!l||!u){m();return}var v=function(){return no(void 0,void 0,void 0,function(){var h,P;return Ia(this,function(x){switch(x.label){case 0:n(!0),x.label=1;case 1:return x.trys.push([1,3,4,5]),[4,Gde({productKey:c,productVersion:l.toString(),merchant:Ab,market:u,selections:p})];case 2:return h=x.sent(),h&&(P=Object.keys(h.estimatedPrices).map(function(T){return parseInt(T,10)}).filter(function(T){return!isNaN(T)}).sort(function(T,k){return T-k}),g&&P.length>0&&o(P)),[3,5];case 3:return x.sent(),g&&m(),[3,5];case 4:return g&&n(!1),[7];case 5:return[2]}})})};return v(),function(){g=!1}},[c,l,JSON.stringify(p),u]),{isLoading:r,quantityPriceBreaks:a}};const hk=e=>{const{choice:t,minimumNonSampleQuantity:r}=e,{name:n,callouts:i}=t;return y.createElement(Re,{flexDirection:"column",style:{width:"100%"}},y.createElement(Re,{justifyContent:"space-between"},y.createElement(Re,null,y.createElement(we,null,n),!!i&&i.length>0&&i.map(a=>y.createElement(mi,{emphasis:"low",ml:"3",key:a.key,skin:a.style??"info"},a.text))),y.createElement(rde,{option:"Quantity",optionValue:t.key})),y.createElement(Re,{justifyContent:"space-between"},y.createElement(ct,{textColor:"subtle",fontSize:"small"},y.createElement(tde,{option:"Quantity",optionValue:t.key})),r&&parseInt(t.key)&&y.createElement(jde,{targetQuantity:parseInt(t.key),sourceQuantity:r})))},Qde=e=>{try{const t=Dl();e(t)}catch(t){console.warn("Failed to send tracking event",t)}},Db=(e,t,r=0)=>{Qde(n=>{n?n.track(e,t):r>10?console.warn("Analytics tracking not loaded"):setTimeout(()=>Db(e,t,++r),1e3)})},Zde=e=>{const{option:t,currency:r,fractionDigits:n,minimumNonSampleQuantity:i,locale:a,onChanged:o}=e,{choices:s,selectedKey:c}=t,l=parseInt(c??""),[u,d]=pe(!1),[p,g]=pe(l),m=Sr(),{i18n:v,i18nUnsafe:h}=Mn();Ee(()=>{g(l)},[l]);const P=Et(()=>{g(l),d(!1),Db("Fly-Out Closed",{category:"Fly-Out",label:"Qty Edit Fly-out"})},[l]),x=Et(()=>{d(!0),Db("Fly-Out Viewed",{category:"Fly-Out",label:"Qty Edit Fly-out"})},[]),T=Et(()=>{p!==l&&o({choiceKey:`${p}`,isValid:!0,eventTarget:"fly-out"}),d(!1)},[p]),k=Et(M=>{M&&M!==`${p}`&&g(parseInt(M))}
vendor: 4,228 bytes, lines 186-192
186,[p]);return y.createElement(y.Fragment,null,y.createElement(It,{render:M=>y.createElement(Dt,{skin:"link",className:M.className,onClick:x},M.children)},h("quantityComboboxShowPricingGuide")),y.createElement(xl,{isOpen:u,onRequestDismiss:()=>{P()},variant:"panel-right"},y.createElement(_l,null,y.createElement(Ud,null,y.createElement(Fd,{accessibleText:v("closeButton")})),y.createElement(kl,{pl:1},y.createElement(Ml,{id:m},h("quantityComboboxPricingGuide"))),y.createElement(Ol,{pl:1},y.createElement($i,{variant:"single-select",skin:"buttons",selectedValue:`${p}`,onSelectedValueChange:k,"aria-labelledby":m},s.map(M=>y.createElement(hi,{key:M.key,value:M.key},y.createElement(vi,{style:{width:"100%",minWidth:"auto"},mr:0},y.createElement(hk,{choice:M,minimumNonSampleQuantity:i,locale:a,currency:r,fractionDigits:n})))))),y.createElement(Bd,{pinned:!0},y.createElement(_m,null,y.createElement(Dt,{skin:"secondary",onClick:()=>{P()}},h("quantityComboboxFlyoutCancel")),y.createElement(Dt,{skin:"primary",onClick:T},h("quantityComboboxFlyoutConfirmation")))))))};var Kde="Expected a function",vk=NaN,Yde="[object Symbol]",Xde=/^\s+|\s+$/g,Jde=/^[-+]0x[0-9a-f]+$/i,epe=/^0b[01]+$/i,tpe=/^0o[0-7]+$/i,rpe=parseInt,npe=typeof Su=="object"&&Su&&Su.Object===Object&&Su,ipe=typeof self=="object"&&self&&self.Object===Object&&self,ape=npe||ipe||Function("return this")(),ope=Object.prototype,spe=ope.toString,cpe=Math.max,lpe=Math.min,Lb=function(){return ape.Date.now()};function upe(e,t,r){var n,i,a,o,s,c,l=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Kde);t=yk(t)||0,Ub(r)&&(u=!!r.leading,d="maxWait"in r,a=d?cpe(yk(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function g($){var O=n,H=i;return n=i=void 0,l=$,o=e.apply(H,O),o}function m($){return l=$,s=setTimeout(P,t),u?g($):o}function v($){var O=$-c,H=$-l,J=t-O;return d?lpe(J,a-H):J}function h($){var O=$-c,H=$-l;return c===void 0||O>=t||O<0||d&&H>=a}function P(){var $=Lb();if(h($))return x($);s=setTimeout(P,v($))}function x($){return s=void 0,p&&n?g($):(n=i=void 0,o)}function T(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function k(){return s===void 0?o:x(Lb())}function M(){var $=Lb(),O=h($);if(n=arguments,i=this,c=$,O){if(s===void 0)return m(c);if(d)return s=setTimeout(P,t),g(c)}return s===void 0&&(s=setTimeout(P,t)),o}return M.cancel=T,M.flush=k,M}function Ub(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function dpe(e){return!!e&&typeof e=="object"}function ppe(e){return typeof e=="symbol"||dpe(e)&&spe.call(e)==Yde}function yk(e){if(typeof e=="number")return e;if(ppe(e))return vk;if(Ub(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ub(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Xde,"");var r=epe.test(e);return r||tpe.test(e)?rpe(e.slice(2),r?2:8):Jde.test(e)?vk:+e}var fpe=upe,bk=v7(fpe);/*! 187 * decimal.js v10.4.3 188 * An arbitrary-precision Decimal type for JavaScript. 189 * https://github.com/MikeMcl/decimal.js 190 * Copyright (c) 2022 Michael Mclaughlin <[email protected]> 191 * MIT Licence 192 */var Zc=9e15,Ro=1e9,Fb="0123456789abcdef",zf="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Vf="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823
192066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Bb={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Zc,maxE:Zc,crypto:!1},wk,io,ze=!0,jf="[DecimalError] ",No=jf+"Invalid argument: ",Tk=jf+"Precision limit exceeded",Ek=jf+"crypto unavailable",Sk="[object Decimal]",En=Math.floor,Dr=Math.pow,gpe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,mpe=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,hpe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Pk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qi=1e7,De=7,vpe=9007199254740991,ype=zf.length-1,qb=Vf.length-1,ae={toStringTag:Sk};ae.absoluteValue=ae.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Me(e)},ae.ceil=function(){return Me(new this.constructor(this),this.e+1,2)},ae.clampedTo=ae.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(No+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)},ae.comparedTo=ae.cmp=function(e){var t,r,n,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,c=a.s,l=e.s;if(!o||!s)return!c||!l?NaN:c!==l?c:o===s?0:!o^c<0?1:-1;if(!o[0]||!s[0])return o[0]?c:s[0]?-l:0;if(c!==l)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(n=o.length,i=s.length,t=0,r=n<i?n:i;t<r;++t)if(o[t]!==s[t])return o[t]>s[t]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1},ae.cosine=ae.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+De,n.rounding=1,r=bpe(n,Mk(n,r)),n.precision=e,n.rounding=t,Me(io==2||io==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)},ae.cubeRoot=ae.cbrt=function(){var e,t,r,n,i,a,o,s,c,l,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ze=!1,a=u.s*Dr(u.s*u,1/3),!a||Math.abs(a)==1/0?(r=sn(u.d),e=u.e,(a=(e-r.length+1)%3)&&(r+=a==1||a==-2?"0":"00"),a=Dr(r,1/3),e=En((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?r="5e"+e:(r=a.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new d(r),n.s=u.s):n=new d(a.toString()),o=(e=d.precision)+3;;)if(s=n,c=s.times(s).times(s),l=c.plus(u),n=zt(l.plus(u).times(s),l.plus(c),o+2,1),sn(s.d).slice(0,o)===(r=sn(n.d)).slice(0,o))if(r=r.slice(o-3,o+1),r=="9999"||!i&&r=="4999"){if(!i&&(Me(s,e+1,0),s.times(s).times(s).eq(u))){n=s;break}o+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(Me(n,e+1,1),t=!n.times(n).times(n).eq(u));break}return ze=!0,Me(n,e,d.rounding,t)},ae.decimalPlaces=ae.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-En(this.e/De))*De,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},ae.dividedBy=ae.div=function(e){return zt(this,new this.constructor(e))},ae.dividedToIntegerBy=ae.divToInt=function(e){var t=this,r=t.constructor;return Me(zt(t,new r(e),0,1,1),r.precision,r.rounding)},ae.equals=ae.eq=function(e){return this.cmp(e)===0},ae.floor=function(){return Me(new this.constructor(this),this.e+1,3)},ae.greaterThan=ae.gt=function(e){return this.cmp(e)>0},ae.greaterThanOrEqualTo=ae.gte=function(e){var t=this.cmp(e);return t==1||t===0},ae.hyperbolicCosine=ae.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/Qf(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=Kc(o,1,a.times(t),new o(1),!0);for(var c,l=e,u=new o(8);l--;)c=a.times(a),a=s.minus(c.times(u.minus(c.times(u))));return Me(a,o.precision=r,o.rounding=n,!0)},ae.hyperbolicSine=ae.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,n=i.d.length,n<3)i=Kc(a,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Qf(5,e)),i=Kc(a,2,i,i,!0);for(var o,s=new a(5),c=new a(16),l=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(c.times(o).plus(l))))}return a.precision=t,a.rounding=r,Me(i,t,r,!0)}
192,ae.hyperbolicTangent=ae.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,zt(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},ae.inverseCosine=ae.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;return n!==-1?n===0?t.isNeg()?zi(r,i,a):new r(0):new r(NaN):t.isZero()?zi(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=zi(r,i+4,a).times(.5),r.precision=i,r.rounding=a,e.minus(t))},ae.inverseHyperbolicCosine=ae.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,ze=!1,r=r.times(r).minus(1).sqrt().plus(r),ze=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},ae.inverseHyperbolicSine=ae.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,ze=!1,r=r.times(r).plus(1).sqrt().plus(r),ze=!0,n.precision=e,n.rounding=t,r.ln())},ae.inverseHyperbolicTangent=ae.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?Me(new a(i),e,t,!0):(a.precision=r=n-i.e,i=zt(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},ae.inverseSine=ae.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,t!==-1?t===0?(e=zi(a,r+4,n).times(.5),e.s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))},ae.inverseTangent=ae.atan=function(){var e,t,r,n,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,p=u.rounding;if(l.isFinite()){if(l.isZero())return new u(l);if(l.abs().eq(1)&&d+4<=qb)return o=zi(u,d+4,p).times(.25),o.s=l.s,o}else{if(!l.s)return new u(NaN);if(d+4<=qb)return o=zi(u,d+4,p).times(.5),o.s=l.s,o}for(u.precision=s=d+10,u.rounding=1,r=Math.min(28,s/De+2|0),e=r;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(ze=!1,t=Math.ceil(s/De),n=1,c=l.times(l),o=new u(l),i=l;e!==-1;)if(i=i.times(c),a=o.minus(i.div(n+=2)),i=i.times(c),o=a.plus(i.div(n+=2)),o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),ze=!0,Me(o,u.precision=d,u.rounding=p,!0)},ae.isFinite=function(){return!!this.d},ae.isInteger=ae.isInt=function(){return!!this.d&&En(this.e/De)>this.d.length-2},ae.isNaN=function(){return!this.s},ae.isNegative=ae.isNeg=function(){return this.s<0},ae.isPositive=ae.isPos=function(){return this.s>0},ae.isZero=function(){return!!this.d&&this.d[0]===0},ae.lessThan=ae.lt=function(e){return this.cmp(e)<0},ae.lessThanOrEqualTo=ae.lte=function(e){return this.cmp(e)<1},ae.logarithm=ae.log=function(e){var t,r,n,i,a,o,s,c,l=this,u=l.constructor,d=u.precision,p=u.rounding,g=5;if(e==null)e=new u(10),t=!0;else{if(e=new u(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=l.d,l.s<0||!r||!r[0]||l.eq(1))return new u(r&&!r[0]?-1/0:l.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(i=r[0];i%10===0;)i/=10;a=i!==1}if(ze=!1,s=d+g,o=Lo(l,s),n=t?Wf(u,s+10):Lo(e,s),c=zt(o,n,s,1),qu(c.d,i=d,p))do if(s+=10,o=Lo(l,s),n=t?Wf(u,s+10):Lo(e,s),c=zt(o,n,s,1),!a){+sn(c.d).slice(i+1,i+15)+1==1e14&&(c=Me(c,d+1,0));break}while(qu(c.d,i+=10,p));return ze=!0,Me(c,d,p)},ae.minus=ae.sub=function(e){var t,r,n,i,a,o,s,c,l,u,d,p,g=this,m=g.constructor;if(e=new m(e),!g.d||!e.d)return!g.s||!e.s?e=new m(NaN):g.d?e.s=-e.s:e=new m(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(l=g.d,p=e.d,s=m.precision,c=m.rounding,!l[0]||!p[0]){if(p[0])e.s=-e.s;else if(l[0])e=new m(g);else return new m(c===3?-0:0);return ze?Me(e,s,c):e}if(r=En(e.e/De),u=En(g.e/De),l=l.slice(),a=u-r,a){for(d=a<0,d?(t=l,a=-a,o=p.length):(t=p,r=u,o=l.length),n=Math.max(Math.ceil(s/De),o)+2,a>n&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for(n=l.length,o=p.length,d=n<o,d&&(o=n),n=0;n<o;n++)if(l[n]!=p[n]){d=l[n]<p[n];break}a=0}for(d&&(t=l,l=p,p=t,e.s=-e.s),o=l.length,n=p.length-o;n>0;--n)l[o++]=0;for(n=p.length;n>a;){if(l[--n]<p[n]){for(i=n;i&&l[--i]===0;)l[i]=qi-1;--l[i],l[n]+=qi}l[n]-=p[n]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(e.d=l,e.e=Gf(l,r),ze?Me(e,s,c):e):new m(c===3?-0:0)},ae.modulo=ae.mod=function(e){var t,r=this,n=r.constructor;
192return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?Me(new n(r),n.precision,n.rounding):(ze=!1,n.modulo==9?(t=zt(r,e.abs(),0,3,1),t.s*=e.s):t=zt(r,e,0,n.modulo,1),t=t.times(e),ze=!0,r.minus(t))},ae.naturalExponential=ae.exp=function(){return zb(this)},ae.naturalLogarithm=ae.ln=function(){return Lo(this)},ae.negated=ae.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Me(e)},ae.plus=ae.add=function(e){var t,r,n,i,a,o,s,c,l,u,d=this,p=d.constructor;if(e=new p(e),!d.d||!e.d)return!d.s||!e.s?e=new p(NaN):d.d||(e=new p(e.d||d.s===e.s?d:NaN)),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(l=d.d,u=e.d,s=p.precision,c=p.rounding,!l[0]||!u[0])return u[0]||(e=new p(d)),ze?Me(e,s,c):e;if(a=En(d.e/De),n=En(e.e/De),l=l.slice(),i=a-n,i){for(i<0?(r=l,i=-i,o=u.length):(r=u,n=a,o=l.length),a=Math.ceil(s/De),o=a>o?a+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=l.length,i=u.length,o-i<0&&(i=o,r=u,u=l,l=r),t=0;i;)t=(l[--i]=l[i]+u[i]+t)/qi|0,l[i]%=qi;for(t&&(l.unshift(t),++n),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=Gf(l,n),ze?Me(e,s,c):e},ae.precision=ae.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(No+e);return r.d?(t=Ck(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},ae.round=function(){var e=this,t=e.constructor;return Me(new t(e),e.e+1,t.rounding)},ae.sine=ae.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+De,n.rounding=1,r=Tpe(n,Mk(n,r)),n.precision=e,n.rounding=t,Me(io>2?r.neg():r,e,t,!0)):new n(NaN)},ae.squareRoot=ae.sqrt=function(){var e,t,r,n,i,a,o=this,s=o.d,c=o.e,l=o.s,u=o.constructor;if(l!==1||!s||!s[0])return new u(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);for(ze=!1,l=Math.sqrt(+o),l==0||l==1/0?(t=sn(s),(t.length+c)%2==0&&(t+="0"),l=Math.sqrt(t),c=En((c+1)/2)-(c<0||c%2),l==1/0?t="5e"+c:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+c),n=new u(t)):n=new u(l.toString()),r=(c=u.precision)+3;;)if(a=n,n=a.plus(zt(o,a,r+2,1)).times(.5),sn(a.d).slice(0,r)===(t=sn(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(Me(a,c+1,0),a.times(a).eq(o))){n=a;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(Me(n,c+1,1),e=!n.times(n).eq(o));break}return ze=!0,Me(n,c,u.rounding,e)},ae.tangent=ae.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=zt(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,Me(io==2||io==4?r.neg():r,e,t,!0)):new n(NaN)},ae.times=ae.mul=function(e){var t,r,n,i,a,o,s,c,l,u=this,d=u.constructor,p=u.d,g=(e=new d(e)).d;if(e.s*=u.s,!p||!p[0]||!g||!g[0])return new d(!e.s||p&&!p[0]&&!g||g&&!g[0]&&!p?NaN:!p||!g?e.s/0:e.s*0);for(r=En(u.e/De)+En(e.e/De),c=p.length,l=g.length,c<l&&(a=p,p=g,g=a,o=c,c=l,l=o),a=[],o=c+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=c+n;i>n;)s=a[i]+g[n]*p[i-n-1]+t,a[i--]=s%qi|0,t=s/qi|0;a[i]=(a[i]+t)%qi|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=Gf(a,r),ze?Me(e,d.precision,d.rounding):e},ae.toBinary=function(e,t){return jb(this,2,e,t)},ae.toDecimalPlaces=ae.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Hn(e,0,Ro),t===void 0?t=n.rounding:Hn(t,0,8),Me(r,e+r.e+1,t))},ae.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=xa(n,!0):(Hn(e,0,Ro),t===void 0?t=i.rounding:Hn(t,0,8),n=Me(new i(n),e+1,t),r=xa(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},ae.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?r=xa(i):(Hn(e,0,Ro),t===void 0?t=a.rounding:Hn(t,0,8),n=Me(new a(i),e+i.e+1,t),r=xa(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},ae.toFraction=function(e){var t,r,n,i,a,o,s,c,l,u,d,p,g=this,m=g.d,v=g.constructor;if(!m)return new v(g);if(l=r=new v(1),n=c=new v(0),t=new v(n),a=t.e=Ck(m)-g.e-1,o=a%De,t.d[0]=Dr(10,o<0?De+o:o),e==null)e=a>0?t:l;else{if(s=new v(e),!s.isInt()||s.lt(l))throw Error(No+s);e=s.gt(t)?a>0?t:l:s}for(ze=!1,s=new v(sn(m)),u=v.precision,v.precision=a=m.length*De*2;d=zt(s,t,0,1,1),i=r.plus(d.times(n)),i.cmp(e)!=1;)r=n,n=i,i=l,l=c.plus(d.times(i)),c=i,i=t,t=s.minus(d.times(i)),s=i;return i=zt(e.minus(r),n,0,1,1),c=c.plus(i.times(l)),r=r.plus(i.times(n)),c.s=l.s=g.s,p=zt(l,n,a,1).minus(g).abs().cmp(zt(c,r,a,1).minus(g).abs())<1?[l,n]:[c,r],v.precision=u,ze=!0,p},ae.toHexadecimal=ae.toHex=function(e,t){return jb(this,16,e,t)},ae.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:Hn(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(ze=!1,r=zt(r,e,0,t,1).times(e),ze=!0,Me(r)):(e.s=r.s,r=e),r},ae.toNumber=function(){return+this},ae.toOctal=function(e,t){return jb(this,8,e,t)},ae.toPower=ae.pow=function(e){var t,r,n,i,a,o,s=this,c=s.constructor,l=+(e=new c(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new c(Dr(+s,l));if(s=new c(s),s.eq(1))return s;if(n=c.precision,a=c.rounding,e.eq(1))return Me(s,n,a);if(t=En(e.e/De),t>=e.d.length-1&&(r=l<0?-l:l)<=vpe)return i=Ik(c,s,r,n),e.s<0?new c(1).div(i):Me(i,n,a);if(o=s.s,o<0){if(t<e.d.length-1)return new c(NaN);if((e.d[t]&1)==0&&(o=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=o,s}return r=Dr(+s,l),t=r==0||!isFinite(r)?En(l*(Math.log("0."+sn(s.d))/Math.LN10+s.e+1)):new c(r+"").e,t>c.maxE+1||t<c.minE-1?new c(t>0?o/0:0):(ze=!1,c.rounding=s.s=1,r=Math.min(12,(t+"").length),i=zb(e.times(Lo(s,n+r)),n),i.d&&(i=Me(i,n+5,1),qu(i.d,n,a)&&(t=n+10,i=Me(zb(e.times(Lo(s,t+r)),t),t+5,1),+sn(i.d).slice(n+1,n+15)+1==1e14&&(i=Me(i,n+1,0)))),i.s=o,ze=!0,c.rounding=a,Me(i,n,a))},ae.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=xa(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Hn(e,1,Ro),t===void 0?t=i.rounding:Hn(t,0,8),n=Me(new i(n),e,t),r=xa(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},ae.toSignificantDigits=ae.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Hn(e,1,Ro),t===void 0?t=n.rounding:Hn(t,0,8)),Me(new n(r),e,t)},ae.toString=function(){var e=this,t=e.constructor,r=xa(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},ae.truncated=ae.trunc=function(){return Me(new this.constructor(this),this.e+1,1)},ae.valueOf=ae.toJSON=function(){var e=this,t=e.constructor,r=xa(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function sn(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=De-n.length,r&&(a+=Do(r)),a+=n;o=e[t],n=o+"",r=De-n.length,r&&(a+=Do(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}function Hn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(No+e)}function qu(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=De,i=0):(i=Math.ceil((t+1)/De),t%=De),a=Dr(10,De-t),s=e[i]%a|0,n==null?t<3?(t==0?s=s/100|0:t==1&&(s=s/10|0),o=r<4&&s==99999||r>3&&s==49999||s==5e4||s==0):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==Dr(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0:t<4?(t==0?s=s/1e3|0:t==1?s=s/100|0:t==2&&(s=s/10|0),o=(n||r<4)&&s==9999||!n&&r>3&&s==4999):o=((n||r<4)&&s+1==a||!n&&r>
1923&&s+1==a/2)&&(e[i+1]/a/1e3|0)==Dr(10,t-3)-1,o}function Hf(e,t,r){for(var n,i=[0],a,o=0,s=e.length;o<s;){for(a=i.length;a--;)i[a]*=t;for(i[0]+=Fb.indexOf(e.charAt(o++)),n=0;n<i.length;n++)i[n]>r-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function bpe(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Qf(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=Kc(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}var zt=(function(){function e(n,i,a){var o,s=0,c=n.length;for(n=n.slice();c--;)o=n[c]*i+s,n[c]=o%a|0,s=o/a|0;return s&&n.unshift(s),n}function t(n,i,a,o){var s,c;if(a!=o)c=a>o?1:-1;else for(s=c=0;s<a;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,a,o){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*o+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o,s,c){var l,u,d,p,g,m,v,h,P,x,T,k,M,$,O,H,J,W,me,Z,B=n.constructor,Q=n.s==i.s?1:-1,R=n.d,Y=i.d;if(!R||!R[0]||!Y||!Y[0])return new B(!n.s||!i.s||(R?Y&&R[0]==Y[0]:!Y)?NaN:R&&R[0]==0||!Y?Q*0:Q/0);for(c?(g=1,u=n.e-i.e):(c=qi,g=De,u=En(n.e/g)-En(i.e/g)),me=Y.length,J=R.length,P=new B(Q),x=P.d=[],d=0;Y[d]==(R[d]||0);d++);if(Y[d]>(R[d]||0)&&u--,a==null?($=a=B.precision,o=B.rounding):s?$=a+(n.e-i.e)+1:$=a,$<0)x.push(1),m=!0;else{if($=$/g+2|0,d=0,me==1){for(p=0,Y=Y[0],$++;(d<J||p)&&$--;d++)O=p*c+(R[d]||0),x[d]=O/Y|0,p=O%Y|0;m=p||d<J}else{for(p=c/(Y[0]+1)|0,p>1&&(Y=e(Y,p,c),R=e(R,p,c),me=Y.length,J=R.length),H=me,T=R.slice(0,me),k=T.length;k<me;)T[k++]=0;Z=Y.slice(),Z.unshift(0),W=Y[0],Y[1]>=c/2&&++W;do p=0,l=t(Y,T,me,k),l<0?(M=T[0],me!=k&&(M=M*c+(T[1]||0)),p=M/W|0,p>1?(p>=c&&(p=c-1),v=e(Y,p,c),h=v.length,k=T.length,l=t(v,T,h,k),l==1&&(p--,r(v,me<h?Z:Y,h,c))):(p==0&&(l=p=1),v=Y.slice()),h=v.length,h<k&&v.unshift(0),r(T,v,k,c),l==-1&&(k=T.length,l=t(Y,T,me,k),l<1&&(p++,r(T,me<k?Z:Y,k,c))),k=T.length):l===0&&(p++,T=[0]),x[d++]=p,l&&T[0]?T[k++]=R[H
192]||0:(T=[R[H]],k=1);while((H++<J||T[0]!==void 0)&&$--);m=T[0]!==void 0}x[0]||x.shift()}if(g==1)P.e=u,wk=m;else{for(d=1,p=x[0];p>=10;p/=10)d++;P.e=d+u*g-1,Me(P,s?a+P.e+1:a,o,m)}return P}})();function Me(e,t,r,n){var i,a,o,s,c,l,u,d,p,g=e.constructor;e:if(t!=null){if(d=e.d,!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=De,o=t,u=d[p=0],c=u/Dr(10,i-o-1)%10|0;else if(p=Math.ceil((a+1)/De),s=d.length,p>=s)if(n){for(;s++<=p;)d.push(0);u=c=0,i=1,a%=De,o=a-De+1}else break e;else{for(u=s=d[p],i=1;s>=10;s/=10)i++;a%=De,o=a-De+i,c=o<0?0:u/Dr(10,i-o-1)%10|0}if(n=n||t<0||d[p+1]!==void 0||(o<0?u:u%Dr(10,i-o-1)),l=r<4?(c||n)&&(r==0||r==(e.s<0?3:2)):c>5||c==5&&(r==4||n||r==6&&(a>0?o>0?u/Dr(10,i-o):0:d[p-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,l?(t-=e.e+1,d[0]=Dr(10,(De-t%De)%De),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=p,s=1,p--):(d.length=p+1,s=Dr(10,De-a),d[p]=o>0?(u/Dr(10,i-o)%Dr(10,o)|0)*s:0),l)for(;;)if(p==0){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,d[0]==qi&&(d[0]=1));break}else{if(d[p]+=s,d[p]!=qi)break;d[p--]=0,s=1}for(a=d.length;d[--a]===0;)d.pop()}return ze&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function xa(e,t,r){if(!e.isFinite())return kk(e);var n,i=e.e,a=sn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Do(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+Do(-i-1)+a,r&&(n=r-o)>0&&(a+=Do(n))):i>=o?(a+=Do(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Do(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Do(n))),a}function Gf(e,t){var r=e[0];for(t*=De;r>=10;r/=10)t++;return t}function Wf(e,t,r){if(t>ype)throw ze=!0,r&&(e.precision=r),Error(Tk);return Me(new e(zf),t,1,!0)}function zi(e,t,r){if(t>qb)throw Error(Tk);return Me(new e(Vf),t,r,!0)}function Ck(e){var t=e.length-1,r=t*De+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Do(e){for(var t="";e--;)t+="0";return t}function Ik(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/De+4);for(ze=!1;;){if(r%2&&(a=a.times(t),Ok(a.d,o)&&(i=!0)),r=En(r/2),r===0){r=a.d.length-1,i&&a.d[r]===0&&++a.d[r];break}t=t.times(t),Ok(t.d,o)}return ze=!0,a}function xk(e){return e.d[e.d.length-1]&1}function _k(e,t,r){for(var n,i=new e(t[0]),a=0;++a<t.length;)if(n=new e(t[a]),n.s)i[r](n)&&(i=n);else{i=n;break}return i}function zb(e,t){var r,n,i,a,o,s,c,l=0,u=0,d=0,p=e.constructor,g=p.rounding,m=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(ze=!1,c=m):c=t,s=new p(.03125);e.e>-2;)e=e.times(s),d+=5;for(n=Math.log(Dr(2,d))/Math.LN10*2+5|0,c+=n,r=a=o=new p(1),p.precision=c;;){if(a=Me(a.times(e),c,1),r=r.times(++u),s=o.plus(zt(a,r,c,1)),sn(s.d).slice(0,c)===sn(o.d).slice(0,c)){for(i=d;i--;)o=Me(o.times(o),c,1);if(t==null)if(l<3&&qu(o.d,c-n,g,l))p.precision=c+=10,r=a=s=new p(1),u=0,l++;else return Me(o,p.precision=m,g,ze=!0);else return p.precision=m,o}o=s}}function Lo(e,t){var r,n,i,a,o,s,c,l,u,d,p,g=1,m=10,v=e,h=v.d,P=v.constructor,x=P.rounding,T=P.precision;if(v.s<0||!h||!h[0]||!v.e&&h[0]==1&&h.length==1)return new P(h&&!h[0]?-1/0:v.s!=1?NaN:h?0:v);if(t==null?(ze=!1,u=T):u=t,P.precision=u+=m,r=sn(h),n=r.charAt(0),Math.abs(a=v.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=sn(v.d),n=r.charAt(0),g++;a=v.e,n>1?(v=new P("0."+r),a++):v=new P(n+"."+r.slice(1))}else return l=Wf(P,u+2,T).times(a+""),v=Lo(new P(n+"."+r.slice(1)),u-m).plus(l),P.precision=T,t==null?Me(v,T,x,ze=!0):v;for(d=v,c=o=v=zt(v.minus(1),v.plus(1),u,1),p=Me(v.times(v),u,1),i=3;;){if(o=Me(o.times(p),u,1),l=c.plus(zt(o,new P(i),u,1)),sn(l.d).slice(0,u)===sn(c.d).slice(0,u))if(c=c.times(2),a!==0&&(c=c.plus(Wf(P,u+2,T).times(a+""))),c=zt(c,new P(g),u,1),t==null)if(qu(c.d,u-m,x,s))P.precision=u+=m,l=o=v=zt(d.minus(1),d.plus(1),u,1),p=Me(v.times(v),u,1),i=s=1;else return Me(c,P.precision=T,x,ze=!0);else return P.precision=T,c;c=l,i+=2}}function kk(e){return String(e.s*e.s/0)}function Vb(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%De,r<0&&(n+=De),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=De;n<i;)e.d.push(+t.slice(n,n+=De));t=t.slice(n),n=De-t.length}else n-=i;for(;n--;)t+="0";e.d.push(+t),ze&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function wpe(e,t){var r,n,i,a,o,s,c,l,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Pk.test(t))return Vb(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(mpe.test(t))r=16,t=t.toLowerCase();else if(gpe.test(t))r=2;else if(hpe.test(t))r=8;else throw Error(No+t);for(a=t.search(/p/i),a>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),o=a>=0,n=e.constructor,o&&(t=t.replace(".",""),s=t.length,a=s-a,i=Ik(n,new n(r),a,a*2)),l=Hf(t,r,qi),u=l.length-1,a=u;l[a]===0;--a)l.pop();return a<0?new n(e.s*0):(e.e=Gf(l,u),e.d=l,ze=!1,o&&(e=zt(e,i,s*4)),c&&(e=e.times(Math.abs(c)<54?Dr(2,c):js.pow(2,c))),ze=!0,e)}function Tpe(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Kc(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Qf(5,r)),t=Kc(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function Kc(e,t,r,n,i){var a,o,s,c,l=e.precision,u=Math.ceil(l/De);for(ze=!1,c=r.times(r),s=new e(n);;){if(o=zt(s.times(c),new e(t++*t++),l,1),s=i?n.plus(o):n.minus(o),n=zt(o.times(c),new e(t++*t++),l,1),o=s.plus(n),o.d[u]!==void 0){for(a=u;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s,s=n,n=o,o=a}return ze=!0,o.d.length=u+1,o}function Qf(e,t){for(var r=e;--t;)r*=e;return r}function Mk(e,t){var r,n=t.s<0,i=zi(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return io=n?4:1,t;if(r=t.divToInt(i),r.isZero())io=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(a))return io=xk(r)?n?2:3:n?4:1,t;io=xk(r)?n?1:4:n?3:2}return t.minus(i).abs()}function jb(e,t,r,n){var i,a,o,s,c,l,u,d,p,g=e.constructor,m=r!==void 0;if(m?(Hn(r,1,Ro),n===void 0?n=g.rounding:Hn(n,0,8)):(r=g.precision,n=g.rounding),!e.isFinite())u=kk(e);else{for(u=xa(e),o=u.indexOf("."),m?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,o>=0&&(u=u.replace(".",""),p=new g(1),p.e=u.length-o,p.d=Hf(xa(p),10,i),p.e=p.d.length),d=Hf(u,10,i),a=c=d.length;d[--c]==0;)d.pop();if(!d[0])u=m?"0p+0":"0";else{if(o<0?a--:(e=new g(e),e.d=d,e.e=a,e=zt(e,p,r,n,0,i),d=e.d,a=e.e,l=wk),o=d[r],s=i/2,l=l||d[r+1
192]!==void 0,l=n<4?(o!==void 0||l)&&(n===0||n===(e.s<0?3:2)):o>s||o===s&&(n===4||l||n===6&&d[r-1]&1||n===(e.s<0?8:7)),d.length=r,l)for(;++d[--r]>i-1;)d[r]=0,r||(++a,d.unshift(1));for(c=d.length;!d[c-1];--c);for(o=0,u="";o<c;o++)u+=Fb.charAt(d[o]);if(m){if(c>1)if(t==16||t==8){for(o=t==16?4:3,--c;c%o;c++)u+="0";for(d=Hf(u,i,t),c=d.length;!d[c-1];--c);for(o=1,u="1.";o<c;o++)u+=Fb.charAt(d[o])}else u=u.charAt(0)+"."+u.slice(1);u=u+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)u="0"+u;u="0."+u}else if(++a>c)for(a-=c;a--;)u+="0";else a<c&&(u=u.slice(0,a)+"."+u.slice(a))}u=(t==16?"0x":t==2?"0b":t==8?"0o":"")+u}return e.s<0?"-"+u:u}function Ok(e,t){if(e.length>t)return e.length=t,!0}function Epe(e){return new this(e).abs()}function Spe(e){return new this(e).acos()}function Ppe(e){return new this(e).acosh()}function Cpe(e,t){return new this(e).plus(t)}function Ipe(e){return new this(e).asin()}function xpe(e){return new this(e).asinh()}function _pe(e){return new this(e).atan()}function kpe(e){return new this(e).atanh()}function Mpe(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=zi(this,a,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?zi(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=zi(this,a,1).times(.5),r.s=e.s):t.s<0?(this.precision=a,this.rounding=1,r=this.atan(zt(e,t,a,1)),t=zi(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(zt(e,t,a,1)),r}function Ope(e){return new this(e).cbrt()}function Ape(e){return Me(e=new this(e),e.e+1,2)}function $pe(e,t,r){return new this(e).clamp(t,r)}function Rpe(e){if(!e||typeof e!="object")throw Error(jf+"Object expected");var t,r,n,i=e.defaults===!0,a=["precision",1,Ro,"rounding",0,8,"toExpNeg",-Zc,0,"toExpPos",0,Zc,"maxE",0,Zc,"minE",-Zc,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=Bb[r]),(n=e[r])!==void 0)if(En(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(No+r+": "+n);if(r="crypto",i&&(this[r]=Bb[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(Ek);else this[r]=!1;else throw Error(No+r+": "+n);return this}function Npe(e){return new this(e).cos()}function Dpe(e){return new this(e).cosh()}function Ak(e){var t,r,n;function i(a){var o,s,c,l=this;if(!(l instanceof i))return new i(a);if(l.constructor=i,$k(a)){l.s=a.s,ze?!a.d||a.e>i.maxE?(l.e=NaN,l.d=null):a.e<i.minE?(l.e=0,l.d=[0]):(l.e=a.e,l.d=a.d.slice()):(l.e=a.e,l.d=a.d?a.d.slice():a.d);return}if(c=typeof a,c==="number"){if(a===0){l.s=1/a<0?-1:1,l.e=0,l.d=[0];return}if(a<0?(a=-a,l.s=-1):l.s=1,a===~~a&&a<1e7){for(o=0,s=a;s>=10;s/=10)o++;ze?o>i.maxE?(l.e=NaN,l.d=null):o<i.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[a]):(l.e=o,l.d=[a]);return}else if(a*0!==0){a||(l.s=NaN),l.e=NaN,l.d=null;return}return Vb(l,a.toString())}else if(c!=="string")throw Error(No+a);return(s=a.charCodeAt(0))===45?(a=a.slice(1),l.s=-1):(s===43&&(a=a.slice(1)),l.s=1),Pk.test(a)?Vb(l,a):wpe(l,a)}if(i.prototype=ae,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Rpe,i.clone=Ak,i.isDecimal=$k,i.abs=Epe,i.acos=Spe,i.acosh=Ppe,i.add=Cpe,i.asin=Ipe,i.asinh=xpe,i.atan=_pe,i.atanh=kpe,i.atan2=Mpe,i.cbrt=Ope,i.ceil=Ape,i.clamp=$pe,i.cos=Npe,i.cosh=Dpe,i.div=Lpe,i.exp=Upe,i.floor=Fpe,i.hypot=Bpe,i.ln=qpe,i.log=zpe,i.log10=jpe,i.log2=Vpe,i.max=Hpe,i.min=Gpe,i.mod=Wpe,i.mul=Qpe,i.pow=Zpe,i.random=Kpe,i.round=Ype,i.sign=Xpe,i.sin=Jpe,i.sinh=efe,i.sqrt=tfe,i.sub=rfe,i.sum=nfe,i.tan=ife,i.tanh=afe,i.trunc=ofe,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Lpe(e,t){return new this(e).div(t)}function Upe(e){return new this(e).exp()}function Fpe(e){return Me(e=new this(e),e.e+1,3)}function Bpe(){var e,t,r=new this(0);for(ze=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return ze=!0,new this(1/0);r=t}return ze=!0,r.sqrt()}function $k(e){return e instanceof js||e&&e.toStringTag===Sk||!1}function qpe(e){return new this(e).ln()}function zpe(e,t){return new this(e).log(t)}function Vpe(e){return new this(e).log(2)}function jpe(e){return new this(e).log(10)}function Hpe(){return _k(this,arguments,"lt")}function Gpe(){return _k(this,arguments,"gt")}function Wpe(e,t){return new this(e).mod(t)}function Qpe(e,t){return new this(e).mul(t)}function Zpe(e,t){return new this(e).pow(t)}function Kpe(e){var t,r,n,i,a=0,o=new this(1),s=[];if(e===void 0?e=this.precision:Hn(e,1,Ro),n=Math.ceil(e/De),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else throw Error(Ek);else for(;a<n;)s[a++]=Math.random()*1e7|0;for(n=s[--a],e%=De,n&&e&&(i=Dr(10,De-e),s[a]=(n/i|0)*i);s[a]===0;a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;
192s[0]===0;r-=De)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<De&&(r-=De-n)}return o.e=r,o.d=s,o}function Ype(e){return Me(e=new this(e),e.e+1,this.rounding)}function Xpe(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function Jpe(e){return new this(e).sin()}function efe(e){return new this(e).sinh()}function tfe(e){return new this(e).sqrt()}function rfe(e,t){return new this(e).sub(t)}function nfe(){var e=0,t=arguments,r=new this(t[e]);for(ze=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return ze=!0,Me(r,this.precision,this.rounding)}function ife(e){return new this(e).tan()}function afe(e){return new this(e).tanh()}function ofe(e){return Me(e=new this(e),e.e+1,1)}ae[Symbol.for("nodejs.util.inspect.custom")]=ae.toString,ae[Symbol.toStringTag]="Decimal";var js=ae.constructor=Ak(Bb);zf=new js(zf),Vf=new js(Vf);const Hb=e=>{const t=e.getMaximum(),r=e.getIncrement();if(r&&r.greaterThan(0)){const n=e.getMinimum(),i=t.minus(n).mod(r);return i.equals(0)?t:t.minus(i)}else return t},Gb=e=>e.getRanges().reduce((t,r)=>t.greaterThan(Hb(r))?t:Hb(r),new js(Number.NEGATIVE_INFINITY)).toNumber(),Zf=e=>e.getRanges().reduce((t,r)=>t.getMinimum().lessThan(r.getMinimum())?t:r).getMinimum().toNumber(),Rk=e=>{const t=[];
192e.getRanges().forEach(n=>{const i=n.getMinimum();t.push(i);const a=n.getIncrement()??new js(0);a.greaterThan(0)&&i.plus(a).lessThanOrEqualTo(n.getMaximum())&&t.push(i.plus(a))});const r=Array.from(new Set(t.map(n=>n.toNumber())));if(r.sort((n,i)=>n-i),!(r.length<2))return r[1]},sfe=e=>{const t=[];e.getRanges().forEach(n=>{const i=Hb(n);t.push(i);const a=n.getIncrement()??new js(0);a.greaterThan(0)&&i.minus(a).greaterThanOrEqualTo(n.getMinimum())&&t.push(i.minus(a))});const r=Array.from(new Set(t.map(n=>n.toNumber())));if(r.sort((n,i)=>i-n),!(r.length<2))return r[1]},cfe=(e,t,r)=>{const[n,i]=pe(e),a=Et(bk((o,s,c,l)=>{if(!l){i([...s]);return}if(!c){i([...s]);return}let u=[...s];if(o){const d=parseInt(o);if(d&&d>0){const p=s.filter(h=>h<d).sort((h,P)=>h-P),g=s.filter(h=>h>d).sort((h,P)=>h-P),m=s.includes(d),v=c.contains(d);if(m)g.length>0?u=[d,g[0]]:p.length>0?u=[p[p.length-1],d]:u=[d];else if(v.contains)g.length>0?u=[d,g[0]]:p.length>0?u=[p[p.length-1],d]:u=[d];else{const h=Zf(c),P=Gb(c);if(d<h){const x=Rk(c);u=x?[h,x]:[h]}else if(d>P){const x=sfe(c);u=x?[x,P]:[P]}else u=[v.adjacentValues?.lowerAdjValue?.toNumber(),v.adjacentValues?.upperAdjValue?.toNumber()].filter(x=>x!==void 0)}u=[...new Set(u)]}}i(u)},600),[i]);return Ee(()=>(a(r.inputValue,e,t,r.inputValueHasChangedAfterSelection),()=>{a.cancel()}),[r.inputValue,e,a,r.inputValueHasChangedAfterSelection,t]),{filteredOptions:n}},lfe=(e,t)=>{let r;return e&&(t&&e.getRanges().length>0?r=Rk(e):r=Zf(e)),r},Wb=(e,t)=>{if(e===t)return[e];const r=8,n=[];for(let a=0;a<r;a++){const o=a/(r-1),s=Math.round((e+1)*Math.pow((t+1)/(e+1),o))-1;n.push(s)}const i=[];for(let a=0;a<n.length;a++){const o=n[a];i.includes(o)?o+1<=t&&!i.includes(o+1)?i.push(o+1):o-1>=e&&!i.includes(o-1)&&i.push(o-1):i.push(o)}for(let a=e;i.length<r&&a<=t;a++)i.includes(a)||i.push(a);return i.sort((a,o)=>a-o).slice(0,r)},ufe=(e,t)=>parseInt(e.key)-parseInt(t.key),dfe=()=>({strategyApplies:(e,t)=>Pce(e),getDiscreteChoices:(e,t)=>{const r=e,n=r.length;if(n===0)return[];const i=[],a=new Set;if(t){const s=r.findIndex(c=>c.key===t);s>=0&&(i.push(r[s]),a.add(s))}const o=Wb(0,n-1);for(const s of o)a.has(s)||(i.push(r[s]),a.add(s));return i.sort(ufe)}});var Nk={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:Su,(function(){return(function(r){var n={};function i(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=n,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:s})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,o){if(1&o&&(a=i(a)),8&o||4&o&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),2&o&&typeof a!="string")for(var c in a)i.d(s,c,function(l){return a[l]}.bind(null,c));return s},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=6)})([function(r,n,i){var a=this&&this.__extends||(function(){var s=function(c,l){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var p in d)d.hasOwnProperty(p)&&(u[p]=d[p])})(c,l)};return function(c,l){function u(){this.constructor=c}s(c,l),c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var o=(function(s){function c(l){var u=s.call(this,l)||this;return u.ERROR_CODE="PRECISION_TOO_LONG",Object.setPrototypeOf(u,c.prototype),u}return a(c,s),c})(Error);n.default=o},function(r,n,i){var a=this&&this.__extends||(function(){var s=function(c,l){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var p in d)d.hasOwnProperty(p)&&(u[p]=d[p])})(c,l)};return function(c,l){function u(){this.constructor=c}
192s(c,l),c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var o=(function(s){function c(l){var u=s.call(this,l)||this;return u.ERROR_CODE="INVALID_INPUT",Object.setPrototypeOf(u,c.prototype),u}return a(c,s),c})(Error);n.default=o},function(r,n,i){var a=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0}),n.exceedsMaximumPrecision=n.EXCEEDED_PRECISION_MESSAGE=void 0;var o=a(i(3)),s=a(i(4)),c=a(i(0)),l=a(i(1));function u(p){var g=new s.default(p);return!g.toDecimalPlaces(8).add(0).equals(g)}n.EXCEEDED_PRECISION_MESSAGE="maximum number of decimal places supported is 8",n.exceedsMaximumPrecision=u;var d=(function(){function p(g,m,v){this.minimum=(function(h){if(h instanceof s.default&&!h.isFinite())throw new o.default("The range minimum must be a finite value");try{return new s.default(h)}catch{throw new o.default('The range minimum "'+h+'" is not a valid value.')}})(g),this.maximum=(function(h,P,x){if(P instanceof s.default&&P.isNaN())throw new o.default("The range maximum cannot be NaN");if(P==null)return new s.default(1/0);try{return new s.default(P)}catch{throw new o.default('The range maximum "'+P+'" is not a valid value.')}})(this.minimum,m),this.increment=(function(h,P,x){if(x instanceof s.default&&!x.isFinite())throw new o.default("The range increment must be a finite value");try{return x==null||x.valueOf()===0||h.equals(P)?void 0:new s.default(x)}catch{throw new o.default('The range increment "'+x+'" is not a valid value.')}})(this.minimum,this.maximum,v),(function(h,P,x){if(h===void 0)throw new o.default("minimum is required");if(P!==void 0&&h.greaterThan(P))throw new o.default("minimum must be less than or equal to maximum");if(x&&x.lessThan(0))throw new o.default("increment must be positive");if(u(h))throw new c.default(n.EXCEEDED_PRECISION_MESSAGE);if(P!==void 0&&P.isFinite()&&u(P))throw new c.default(n.EXCEEDED_PRECISION_MESSAGE);if(x!==void 0&&u(x))throw new c.default(n.EXCEEDED_PRECISION_MESSAGE)})(this.minimum,this.maximum,this.increment)}return p.prototype.getMinimum=function(){return this.minimum},p.prototype.getMaximum=function(){return this.maximum},p.prototype.getIncrement=function(){return this.increment},p.prototype.contains=function(g){var m,v;try{v=new s.default(g)}catch{throw new l.default('The value "'+g+'" is not a valid input')}if(v===void 0)throw new l.default("A valid value is required to check if the range contains it");if(u(v))throw new c.default(n.EXCEEDED_PRECISION_MESSAGE);if(m=this.minimum.lessThanOrEqualTo(v)&&this.maximum.greaterThanOrEqualTo(v),this.increment!==void 0){var h=void 0;h=s.default.sub(v,this.minimum),m=m&&h.greaterThanOrEqualTo(0)&&h.mod(this.increment).isZero()&&h.mod(this.increment).isZero()}return m},p.prototype.calculateNearestValues=function(g){var m,v={};try{m=new s.default(g)}catch{throw new l.default("The input value is invalid")}if(this.increment)if(m.greaterThanOrEqualTo(this.minimum)){var h=m;m.greaterThanOrEqualTo(this.maximum)&&(h=this.maximum,v.upperAdjValue=void 0);var P=h.sub(this.minimum).dividedToIntegerBy(this.increment);if(v.lowerAdjValue=P.mul(this.increment).add(this.minimum),v.lowerAdjValue.equals(m))throw new l.default("The value is already present in the range");if(m.lessThan(this.maximum)){var x=P.add(1).mul(this.increment).add(this.minimum);x.greaterThan(this.maximum)&&(x=void 0),v.upperAdjValue=x}}else v.lowerAdjValue=void 0,v.upperAdjValue=this.minimum;else if(m.greaterThan(this.maximum))v.lowerAdjValue=this.maximum,v.upperAdjValue=void 0;else{if(!m.lessThan(this.minimum))throw new l.default("The value is already present in the range");v.lowerAdjValue=void 0,v.upperAdjValue=this.minimum}return v},p.prototype.toString=function(){return this.minimum===this.maximum?""+this.minimum:this.minimum+"-"+this.maximum+"#"+this.increment},p})();n.default=d},function(r,n,i){var a=this&&this.__extends||(function(){var s=function(c,l){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var p in d)d.hasOwnProperty(p)&&(u[p]=d[p])})(c,l)};return function(c,l){function u(){this.constructor=c}
192s(c,l),c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var o=(function(s){function c(l){var u=s.call(this,l)||this;return u.ERROR_CODE="MALFORMED_RANGE",Object.setPrototypeOf(u,c.prototype),u}return a(c,s),c})(Error);n.default=o},function(r,n,i){var a;(function(o){var s,c,l,u=9e15,d=1e9,p="0123456789abcdef",g="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",m="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",v={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},h=!0,P="[DecimalError] ",x=P+"Invalid argument: ",T=P+"Precision limit exceeded",k=P+"crypto unavailable",M="[object Decimal]",$=Math.floor,O=Math.pow,H=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,J=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,W=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,me=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Z=1e7,B=g.length-1,Q=m.length-1,R={toStringTag:M};function Y(w){var S,E,I,A=w.length-1,C="",N=w[0];if(A>0){for(C+=N,S=1;S<A;S++)(E=7-(I=w[S]+"").length)&&(C+=Ne(E)),C+=I;(E=7-(I=(N=w[S])+"").length)&&(C+=Ne(E))}else if(N===0)return"0";for(;N%10==0;)N/=10;return C+N}function ie(w,S,E){if(w!==~~w||w<S||w>E)throw Error(x+w)}function he(w,S,E,I){var A,C,N,F;for(C=w[0];C>=10;C/=10)--S;return--S<0?(S+=7,A=0):(A=Math.ceil((S+1)/7),S%=7),C=O(10,7-S),F=w[A]%C|0,I==null?S<3?(S==0?F=F/100|0:S==1&&(F=F/10|0),N=E<4&&F==99999||E>3&&F==49999||F==5e4||F==0):N=(E<4&&F+1==C||E>3&&F+1==C/2)&&(w[A+1]/C/100|0)==O(10,S-2)-1||(F==C/2||F==0)&&(w[A+1]/C/100|0)==0:S<4?(S==0?F=F/1e3|0:S==1?F=F/100|0:S==2&&(F=F/10|0),N=(I||E<4)&&F==9999||!I&&E>3&&F==4999):N=((I||E<4)&&F+1==C||!I&&E>3&&F+1==C/2)&&(w[A+1]/C/1e3|0)==O(10,S-3)-1,N}function ye(w,S,E){for(var I,A,C=[0],N=0,F=w.length;N<F;){for(A=C.length;A--;)C[A]*=S;for(C[0]+=p.indexOf(w.charAt(N++)),I=0;I<C.length;I++)C[I]>E-1&&(C[I+1]===void 0&&(C[I+1]=0),C[I+1]+=C[I]/E|0,C[I]%=E)}return C.reverse()}R.absoluteValue=R.abs=function(){var w=new this.constructor(this);return w.s<0&&(w.s=1),te(w)},R.ceil=function(){return te(new this.constructor(this),this.e+1,2)},R.clampedTo=R.clamp=function(w,S){var E=this,I=E.constructor;if(w=new I(w),S=new I(S),!w.s||!S.s)return new I(NaN);if(w.gt(S))throw Error(x+S);return E.cmp(w)<0?w:E.cmp(S)>0?S:new I(E)},R.comparedTo=R.cmp=function(w){var S,E,I,A,C=this,N=C.d,F=(w=new C.constructor(w)).d,q=C.s,G=w.s;if(!N||!F)return q&&G?q!==G?q:N===F?0:!N^q<0?1:-1:NaN;if(!N[0]||!F[0])return N[0]?q:F[0]?-G:0;
192if(q!==G)return q;if(C.e!==w.e)return C.e>w.e^q<0?1:-1;for(S=0,E=(I=N.length)<(A=F.length)?I:A;S<E;++S)if(N[S]!==F[S])return N[S]>F[S]^q<0?1:-1;return I===A?0:I>A^q<0?1:-1},R.cosine=R.cos=function(){var w,S,E=this,I=E.constructor;return E.d?E.d[0]?(w=I.precision,S=I.rounding,I.precision=w+Math.max(E.e,E.sd())+7,I.rounding=1,E=(function(A,C){var N,F,q;if(C.isZero())return C;(F=C.d.length)<32?q=(1/it(4,N=Math.ceil(F/3))).toString():(N=16,q="2.3283064365386962890625e-10"),A.precision+=N,C=fe(A,1,C.times(q),new A(1));for(var G=N;G--;){var V=C.times(C);C=V.times(V).minus(V).times(8).plus(1)}return A.precision-=N,C})(I,Qe(I,E)),I.precision=w,I.rounding=S,te(l==2||l==3?E.neg():E,w,S,!0)):new I(1):new I(NaN)},R.cubeRoot=R.cbrt=function(){var w,S,E,I,A,C,N,F,q,G,V=this,ee=V.constructor;if(!V.isFinite()||V.isZero())return new ee(V);for(h=!1,(C=V.s*O(V.s*V,1/3))&&Math.abs(C)!=1/0?I=new ee(C.toString()):(E=Y(V.d),(C=((w=V.e)-E.length+1)%3)&&(E+=C==1||C==-2?"0":"00"),C=O(E,1/3),w=$((w+1)/3)-(w%3==(w<0?-1:2)),(I=new ee(E=C==1/0?"5e"+w:(E=C.toExponential()).slice(0,E.indexOf("e")+1)+w)).s=V.s),N=(w=ee.precision)+3;;)if(G=(q=(F=I).times(F).times(F)).plus(V),I=le(G.plus(V).times(F),G.plus(q),N+2,1),Y(F.d).slice(0,N)===(E=Y(I.d)).slice(0,N)){if((E=E.slice(N-3,N+1))!="9999"&&(A||E!="4999")){+E&&(+E.slice(1)||E.charAt(0)!="5")||(te(I,w+1,1),S=!I.times(I).times(I).eq(V));break}if(!A&&(te(F,w+1,0),F.times(F).times(F).eq(V))){I=F;break}N+=4,A=1}return h=!0,te(I,w,ee.rounding,S)},R.decimalPlaces=R.dp=function(){var w,S=this.d,E=NaN;if(S){if(E=7*((w=S.length-1)-$(this.e/7)),w=S[w])for(;w%10==0;w/=10)E--;E<0&&(E=0)}return E},R.dividedBy=R.div=function(w){return le(this,new this.constructor(w))},R.dividedToIntegerBy=R.divToInt=function(w){var S=this.constructor;return te(le(this,new S(w),0,1,1),S.precision,S.rounding)},R.equals=R.eq=function(w){return this.cmp(w)===0},R.floor=function(){return te(new this.constructor(this),this.e+1,3)},R.greaterThan=R.gt=function(w){return this.cmp(w)>0},R.greaterThanOrEqualTo=R.gte=function(w){var S=this.cmp(w);return S==1||S===0},R.hyperbolicCosine=R.cosh=function(){var w,S,E,I,A,C=this,N=C.constructor,F=new N(1);if(!C.isFinite())return new N(C.s?1/0:NaN);if(C.isZero())return F;E=N.precision,I=N.rounding,N.precision=E+Math.max(C.e,C.sd())+4,N.rounding=1,(A=C.d.length)<32?S=(1/it(4,w=Math.ceil(A/3))).toString():(w=16,S="2.3283064365386962890625e-10"),C=fe(N,1,C.times(S),new N(1),!0);for(var q,G=w,V=new N(8);G--;)q=C.times(C),C=F.minus(q.times(V.minus(q.times(V))));return te(C,N.precision=E,N.rounding=I,!0)},R.hyperbolicSine=R.sinh=function(){var w,S,E,I,A=this,C=A.constructor;if(!A.isFinite()||A.isZero())return new C(A);if(S=C.precision,E=C.rounding,C.precision=S+Math.max(A.e,A.sd())+4,C.roun
192ding=1,(I=A.d.length)<3)A=fe(C,2,A,A,!0);else{w=(w=1.4*Math.sqrt(I))>16?16:0|w,A=fe(C,2,A=A.times(1/it(5,w)),A,!0);for(var N,F=new C(5),q=new C(16),G=new C(20);w--;)N=A.times(A),A=A.times(F.plus(N.times(q.times(N).plus(G))))}return C.precision=S,C.rounding=E,te(A,S,E,!0)},R.hyperbolicTangent=R.tanh=function(){var w,S,E=this,I=E.constructor;return E.isFinite()?E.isZero()?new I(E):(w=I.precision,S=I.rounding,I.precision=w+7,I.rounding=1,le(E.sinh(),E.cosh(),I.precision=w,I.rounding=S)):new I(E.s)},R.inverseCosine=R.acos=function(){var w,S=this,E=S.constructor,I=S.abs().cmp(1),A=E.precision,C=E.rounding;return I!==-1?I===0?S.isNeg()?Pe(E,A,C):new E(0):new E(NaN):S.isZero()?Pe(E,A+4,C).times(.5):(E.precision=A+6,E.rounding=1,S=S.asin(),w=Pe(E,A+4,C).times(.5),E.precision=A,E.rounding=C,w.minus(S))},R.inverseHyperbolicCosine=R.acosh=function(){var w,S,E=this,I=E.constructor;return E.lte(1)?new I(E.eq(1)?0:NaN):E.isFinite()?(w=I.precision,S=I.rounding,I.precision=w+Math.max(Math.abs(E.e),E.sd())+4,I.rounding=1,h=!1,E=E.times(E).minus(1).sqrt().plus(E),h=!0,I.precision=w,I.rounding=S,E.ln()):new I(E)},R.inverseHyperbolicSine=R.asinh=function(){var w,S,E=this,I=E.constructor;return!E.isFinite()||E.isZero()?new I(E):(w=I.precision,S=I.rounding,I.precision=w+2*Math.max(Math.abs(E.e),E.sd())+6,I.rounding=1,h=!1,E=E.times(E).plus(1).sqrt().plus(E),h=!0,I.precision=w,I.rounding=S,E.ln())},R.inverseHyperbolicTangent=R.atanh=function(){var w,S,E,I,A=this,C=A.constructor;return A.isFinite()?A.e>=0?new C(A.abs().eq(1)?A.s/0:A.isZero()?A:NaN):(w=C.precision,S=C.rounding,I=A.sd(),Math.max(I,w)<2*-A.e-1?te(new C(A),w,S,!0):(C.precision=E=I-A.e,A=le(A.plus(1),new C(1).minus(A),E+w,1),C.precision=w+4,C.rounding=1,A=A.ln(),C.precision=w,C.rounding=S,A.times(.5))):new C(NaN)},R.inverseSine=R.asin=function(){var w,S,E,I,A=this,C=A.constructor;return A.isZero()?new C(A):(S=A.abs().cmp(1),E=C.precision,I=C.rounding,S!==-1?S===0?((w=Pe(C,E+4,I).times(.5)).s=A.s,w):new C(NaN):(C.precision=E+6,C.rounding=1,A=A.div(new C(1).minus(A.times(A)).sqrt().plus(1)).atan(),C.precision=E,C.rounding=I,A.times(2)))},R.inverseTangent=R.atan=function(){var w,S,E,I,A,C,N,F,q,G=this,V=G.constructor,ee=V.precision,se=V.rounding;if(G.isFinite()){if(G.isZero())return new V(G);if(G.abs().eq(1)&&ee+4<=Q)return(N=Pe(V,ee+4,se).times(.25)).s=G.s,N}else{if(!G.s)return new V(NaN);if(ee+4<=Q)return(N=Pe(V,ee+4,se).times(.5)).s=G.s,N}for(V.precision=F=ee+10,V.rounding=1,w=E=Math.min(28,F/7+2|0);w;--w)G=G.div(G.times(G).plus(1).sqrt().plus(1));for(h=!1,S=Math.ceil(F/7),I=1,q=G.times(G),N=new V(G),A=G;w!==-1;)if(A=A.times(q),C=N.minus(A.div(I+=2)),A=A.times(q),(N=C.plus(A.div(I+=2))).d[S]!==void 0)for(w=S;N.d[w]===C.d[w]&&w--;);return E&&(N=N.times(2<<E-1)),h=!0,te(N,V.precision=ee,V.rounding=se,!0)},R.isFinite=function(){return!!this.d},R.isInteger=R.isInt=function(){return!!this.d&&$(this.e/7)>this.d.length-2},R.isNaN=function(){return!this.s},R.isNegative=R.isNeg=function(){return this.s<0},R.isPositive=R.isPos=function(){return this.s>0},R.isZero=function(){return!!this.d&&this.d[0]===0},R.lessThan=R.lt=function(w){return this.cmp(w)<0},R.lessThanOrEqualTo=R.lte=function(w){return this.cmp(w)<1},R.logarithm=R.log=function(w){var S,E,I,A,C,N,F,q,G=this.constructor,V=G.precision,ee=G.rounding;if(w==null)w=new G(10),S=!0;else{if(E=(w=new G(w)).d,w.s<0||!E||!E[0]||w.eq(1))return new G(NaN);S=w.eq(10)}if(E=this.d,this.s<0||!E||!E[0]||this.eq(1))return new G(E&&!E[0]?-1/0:this.s!=1?NaN:E?0:1/0);if(S)if(E.length>1)C=!0;else{for(A=E[0];A%10==0;)A/=10;C=A!==1}if(h=!1,N=We(this,F=V+5),I=S?ve(G,F+10):We(w,F),he((q=le(N,I,F,1)).d,A=V,ee))do if(N=We(this,F+=10),I=S?ve(G,F+10):We(w,F),q=le(N,I,F,1),!C){+Y(q.d).slice(A+1,A+15)+1==1e14&&(q=te(q,V+1,0));break}while(he(q.d,A+=10,ee));return h=!0,te(q,V,ee)},R.minus=R.sub=function(w){var S,E,I,A,C,N,F,q,G,V,ee,se,be=this,xe=be.constructor;if(w=new xe(w),!be.d||!w.d)return be.s&&w.s?be.d?w.s=-w.s:w=new xe(w.d||be.s!==w.s?be:NaN):w=new xe(NaN),w;if(be.s!=w.s)return w.s=-w.s,be.plus(w);if(G=be.d,se=w.d,F=xe.precision,q=xe.rounding,!G[0]||!se[0]){if(se[0])w.s=-w.s;else{if(!G[0])return new xe(q===3?-0:0);w=new xe(be)}return h?te(w,F,q):w}if(E=$(w.e/7),V=$(be.e/7),G=G.slice(),C=V-E){for((ee=C<0)?(S=G,C=-C,N=se.length):(S=se,E=V,N=G.length),C>(I=Math.max(Math.ceil(F/7),N)+2)&&(C=I,S.length=1),S.reverse(),I=C;I--;)S.push(0);S.reverse()}else{for((ee=(I=G.length)<(N=se.length))&&(N=I),I=0;I<N;I++)if(G[I]!=se[I]){ee=G[I]<se[I];break}C=0}for(ee&&(S=G,G=se,se=S,w.s=-w.s),N=G.length,I=se.length-N;I>0;--I)G[N++]=0;for(I=se.length;I>C;){if(G[--I]<se[I]){for(A=I;A&&G[--A]===0;)G[A]=Z-1;--G[A],G[I]+=Z}G[I]-=se[I]}for(;G[--N]===0;)G.pop();for(;G[0]===0;G.shift())--E;return G[0]?(w.d=G,w.e=ut(G,E),h?te(w,F,q):w):new xe(q===3?-0:0)},R.modulo=R.mod=function(w){var S,E=this,I=E.constructor;return w=new I(w),!E.d||!w.s||w.d&&!w.d[0]?new I(NaN):!w.d||E.d&&!E.d[0]?te(new I(E),I.precision,I.rounding):(h=!1,I.modulo==9?(S=le(E,w.abs(),0,3,1)).s*=w.s:S=le
192(E,w,0,I.modulo,1),S=S.times(w),h=!0,E.minus(S))},R.naturalExponential=R.exp=function(){return ot(this)},R.naturalLogarithm=R.ln=function(){return We(this)},R.negated=R.neg=function(){var w=new this.constructor(this);return w.s=-w.s,te(w)},R.plus=R.add=function(w){var S,E,I,A,C,N,F,q,G,V,ee=this,se=ee.constructor;if(w=new se(w),!ee.d||!w.d)return ee.s&&w.s?ee.d||(w=new se(w.d||ee.s===w.s?ee:NaN)):w=new se(NaN),w;if(ee.s!=w.s)return w.s=-w.s,ee.minus(w);if(G=ee.d,V=w.d,F=se.precision,q=se.rounding,!G[0]||!V[0])return V[0]||(w=new se(ee)),h?te(w,F,q):w;if(C=$(ee.e/7),I=$(w.e/7),G=G.slice(),A=C-I){for(A<0?(E=G,A=-A,N=V.length):(E=V,I=C,N=G.length),A>(N=(C=Math.ceil(F/7))>N?C+1:N+1)&&(A=N,E.length=1),E.reverse();A--;)E.push(0);E.reverse()}for((N=G.length)-(A=V.length)<0&&(A=N,E=V,V=G,G=E),S=0;A;)S=(G[--A]=G[A]+V[A]+S)/Z|0,G[A]%=Z;for(S&&(G.unshift(S),++I),N=G.length;G[--N]==0;)G.pop();return w.d=G,w.e=ut(G,I),h?te(w,F,q):w},R.precision=R.sd=function(w){var S,E=this;if(w!==void 0&&w!==!!w&&w!==1&&w!==0)throw Error(x+w);return E.d?(S=$t(E.d),w&&E.e+1>S&&(S=E.e+1)):S=NaN,S},R.round=function(){var w=this,S=w.constructor;return te(new S(w),w.e+1,S.rounding)},R.sine=R.sin=function(){var w,S,E=this,I=E.constructor;return E.isFinite()?E.isZero()?new I(E):(w=I.precision,S=I.rounding,I.precision=w+Math.max(E.e,E.sd())+7,I.rounding=1,E=(function(A,C){var N,F=C.d.length;if(F<3)return C.isZero()?C:fe(A,2,C,C);N=(N=1.4*Math.sqrt(F))>16?16:0|N,C=fe(A,2,C=C.times(1/it(5,N)),C);for(var q,G=new A(5),V=new A(16),ee=new A(20);N--;)q=C.times(C),C=C.times(G.plus(q.times(V.times(q).minus(ee))));return C})(I,Qe(I,E)),I.precision=w,I.rounding=S,te(l>2?E.neg():E,w,S,!0)):new I(NaN)},R.squareRoot=R.sqrt=function(){var w,S,E,I,A,C,N=this,F=N.d,q=N.e,G=N.s,V=N.constructor;if(G!==1||!F||!F[0])return new V(!G||G<0&&(!F||F[0])?NaN:F?N:1/0);for(h=!1,(G=Math.sqrt(+N))==0||G==1/0?(((S=Y(F)).length+q)%2==0&&(S+="0"),G=Math.sqrt(S),q=$((q+1)/2)-(q<0||q%2),I=new V(S=G==1/0?"5e"+q:(S=G.toExponential()).slice(0,S.indexOf("e")+1)+q)):I=new V(G.toString()),E=(q=V.precision)+3;;)if(I=(C=I).plus(le(N,C,E+2,1)).times(.5),Y(C.d).slice(0,E)===(S=Y(I.d)).slice(0,E)){if((S=S.slice(E-3,E+1))!="9999"&&(A||S!="4999")){+S&&(+S.slice(1)||S.charAt(0)!="5")||(te(I,q+1,1),w=!I.times(I).eq(N));break}if(!A&&(te(C,q+1,0),C.times(C).eq(N))){I=C;break}E+=4,A=1}return h=!0,te(I,q,V.rounding,w)},R.tangent=R.tan=function(){var w,S,E=this,I=E.constructor;return E.isFinite()?E.isZero()?new I(E):(w=I.precision,S=I.rounding,I.precision=w+10,I.rounding=1,(E=E.sin()).s=1,E=le(E,new I(1).minus(E.times(E)).sqrt(),w+10,0),I.precision=w,I.rounding=S,te(l==2||l==4?E.neg():E,w,S,!0)):new I(NaN)},R.times=R.mul=function(w){var S,E,I,A,C,N,F,q,G,V=this,ee=V.constructor,se=V.d,be=(w=new ee(w)).d;if(w.s*=V.s,!(se&&se[0]&&be&&be[0]))return new ee(!w.s||se&&!se[0]&&!be||be&&!be[0]&&!se?NaN:se&&be?0*w.s:w.s/0);for(E=$(V.e/7)+$(w.e/7),(q=se.length)<(G=be.length)&&(C=se,se=be,be=C,N=q,q=G,G=N),C=[],I=N=q+G;I--;)C.push(0);for(I=G;--I>=0;){for(S=0,A=q+I;A>I;)F=C[A]+be[I]*se[A-I-1]+S,C[A--]=F%Z|0,S=F/Z|0;C[A]=(C[A]+S)%Z|0}for(;!C[--N];)C.pop();return S?++E:C.shift(),w.d=C,w.e=ut(C,E),h?te(w,ee.precision,ee.rounding):w},R.toBinary=function(w,S){return gt(this,2,w,S)},R.toDecimalPlaces=R.toDP=function(w,S){var E=this,I=E.constructor;return E=new I(E),w===void 0?E:(ie(w,0,d),S===void 0?S=I.rounding:ie(S,0,8),te(E,w+E.e+1,S))},R.toExponential=function(w,S){var E,I=this,A=I.constructor;return w===void 0?E=Oe(I,!0):(ie(w,0,d),S===void 0?S=A.rounding:ie(S,0,8),E=Oe(I=te(new A(I),w+1,S),!0,w+1)),I.isNeg()&&!I.isZero()?"-"+E:E},R.toFixed=function(w,S){var E,I,A=this,C=A.constructor;return w===void 0?E=Oe(A):(ie(w,0,d),S===void 0?S=C.rounding:ie(S,0,8),E=Oe(I=te(new C(A),w+A.e+1,S),!1,w+I.e+1)),A.isNeg()&&!A.isZero()?"-"+E:E},R.toFraction=function(w){var S,E,I,A,C,N,F,q,G,V,ee,se,be=this,xe=be.d,st=be.constructor;if(!xe)return new st(be);if(G=E=new st(1),N=(C=(S=new st(I=q=new st(0))).e=$t(xe)-be.e-1)%7,S.d[0]=O(10,N<0?7+N:N),w==null)w=C>0?S:G;else{if(!(F=new st(w)).isInt()||F.lt(G))throw Error(x+F);w=F.gt(S)?C>0?S:G:F}for(h=!1,F=new st(Y(xe)),V=st.precision,st.precision=C=7*xe.length*2;ee=le(F,S,0,1,1),(A=E.plus(ee.times(I))).cmp(w)!=1;)E=I,I=A,A=G,G=q.plus(ee.times(A)),q=A,A=S,S=F.minus(ee.times(A)),F=A;return A=le(w.minus(E),I,0,1,1),q=q.plus(A.times(G)),E=E.plus(A.times(I)),q.s=G.s=be.s,se=le(G,I,C,1).minus(be).abs().cmp(le(q,E,C,1).minus(be).abs())<1?[G,I]:[q,E],st.precision=V,h=!0,se},R.toHexadecimal=R.toHex=function(w,S){return gt(this,16,w,S)},R.toNearest=function(w,S){var E=this,I=E.constructor;if(E=new I(E),w==null){if(!E.d)return E;w=new I(1),S=I.rounding}else{if(w=new I(w),S===void 0?S=I.rounding:ie(S,0,8),!E.d)return w.s?E:w;
192if(!w.d)return w.s&&(w.s=E.s),w}return w.d[0]?(h=!1,E=le(E,w,0,S,1).times(w),h=!0,te(E)):(w.s=E.s,E=w),E},R.toNumber=function(){return+this},R.toOctal=function(w,S){return gt(this,8,w,S)},R.toPower=R.pow=function(w){var S,E,I,A,C,N,F=this,q=F.constructor,G=+(w=new q(w));if(!(F.d&&w.d&&F.d[0]&&w.d[0]))return new q(O(+F,G));if((F=new q(F)).eq(1))return F;if(I=q.precision,C=q.rounding,w.eq(1))return te(F,I,C);if((S=$(w.e/7))>=w.d.length-1&&(E=G<0?-G:G)<=9007199254740991)return A=Le(q,F,E,I),w.s<0?new q(1).div(A):te(A,I,C);if((N=F.s)<0){if(S<w.d.length-1)return new q(NaN);if((1&w.d[S])==0&&(N=1),F.e==0&&F.d[0]==1&&F.d.length==1)return F.s=N,F}return(S=(E=O(+F,G))!=0&&isFinite(E)?new q(E+"").e:$(G*(Math.log("0."+Y(F.d))/Math.LN10+F.e+1)))>q.maxE+1||S<q.minE-1?new q(S>0?N/0:0):(h=!1,q.rounding=F.s=1,E=Math.min(12,(S+"").length),(A=ot(w.times(We(F,I+E)),I)).d&&he((A=te(A,I+5,1)).d,I,C)&&(S=I+10,+Y((A=te(ot(w.times(We(F,S+E)),S),S+5,1)).d).slice(I+1,I+15)+1==1e14&&(A=te(A,I+1,0))),A.s=N,h=!0,q.rounding=C,te(A,I,C))},R.toPrecision=function(w,S){var E,I=this,A=I.constructor;return w===void 0?E=Oe(I,I.e<=A.toExpNeg||I.e>=A.toExpPos):(ie(w,1,d),S===void 0?S=A.rounding:ie(S,0,8),E=Oe(I=te(new A(I),w,S),w<=I.e||I.e<=A.toExpNeg,w)),I.isNeg()&&!I.isZero()?"-"+E:E},R.toSignificantDigits=R.toSD=function(w,S){var E=this.constructor;return w===void 0?(w=E.precision,S=E.rounding):(ie(w,1,d),S===void 0?S=E.rounding:ie(S,0,8)),te(new E(this),w,S)},R.toString=function(){var w=this,S=w.constructor,E=Oe(w,w.e<=S.toExpNeg||w.e>=S.toExpPos);return w.isNeg()&&!w.isZero()?"-"+E:E},R.truncated=R.trunc=function(){return te(new this.constructor(this),this.e+1,1)},R.valueOf=R.toJSON=function(){var w=this,S=w.constructor,E=Oe(w,w.e<=S.toExpNeg||w.e>=S.toExpPos);return w.isNeg()?"-"+E:E};var le=(function(){function w(I,A,C){var N,F=0,q=I.length;for(I=I.slice();q--;)N=I[q]*A+F,I[q]=N%C|0,F=N/C|0;return F&&I.unshift(F),I}function S(I,A,C,N){var F,q;if(C!=N)q=C>N?1:-1;else for(F=q=0;F<C;F++)if(I[F]!=A[F]){q=I[F]>A[F]?1:-1;break}return q}function E(I,A,C,N){for(var F=0;C--;)I[C]-=F,F=I[C]<A[C]?1:0,I[C]=F*N+I[C]-A[C];for(;!I[0]&&I.length>1;)I.shift()}return function(I,A,C,N,F,q){var G,V,ee,se,be,xe,st,He,In,Ht,Wt,kr,ki,xn,Jr,Yn,Er,Mr,Qt,Gt,La=I.constructor,Ln=I.s==A.s?1:-1,fr=I.d,ht=A.d;if(!(fr&&fr[0]&&ht&&ht[0]))return new La(I.s&&A.s&&(fr?!ht||fr[0]!=ht[0]:ht)?fr&&fr[0]==0||!ht?0*Ln:Ln/0:NaN);for(q?(be=1,V=I.e-A.e):(q=Z,be=7,V=$(I.e/be)-$(A.e/be)),Qt=ht.length,Er=fr.length,Ht=(In=new La(Ln)).d=[],ee=0;ht[ee]==(fr[ee]||0);ee++);if(ht[ee]>(fr[ee]||0)&&V--,C==null?(xn=C=La.precision,N=La.rounding):xn=F?C+(I.e-A.e)+1:C,xn<0)Ht.push(1),xe=!0;else{if(xn=xn/be+2|0,ee=0,Qt==1){for(se=0,ht=ht[0],xn++;(ee<Er||se)&&xn--;ee++)Jr=se*q+(fr[ee]||0),Ht[ee]=Jr/ht|0,se=Jr%ht|0;xe=se||ee<Er}else{for((se=q/(ht[0]+1)|0)>1&&(ht=w(ht,se,q),fr=w(fr,se,q),Qt=ht.length,Er=fr.length),Yn=Qt,kr=(Wt=fr.slice(0,Qt)).length;kr<Qt;)Wt[kr++]=0;(Gt=ht.slice()).unshift(0),Mr=ht[0],ht[1]>=q/2&&++Mr;do se=0,(G=S(ht,Wt,Qt,kr))<0?(ki=Wt[0],Qt!=kr&&(ki=ki*q+(Wt[1]||0)),(se=ki/Mr|0)>1?(se>=q&&(se=q-1),(G=S(st=w(ht,se,q),Wt,He=st.length,kr=Wt.length))==1&&(se--,E(st,Qt<He?Gt:ht,He,q))):(se==0&&(G=se=1),st=ht.slice()),(He=st.length)<kr&&st.unshift(0),E(Wt,st,kr,q),G==-1&&(G=S(ht,Wt,Qt,kr=Wt.length))<1&&(se++,E(Wt,Qt<kr?Gt:ht,kr,q)),kr=Wt.length):G===0&&(se++,Wt=[0]),Ht[ee++]=se,G&&Wt[0]?Wt[kr++]=fr[Yn]||0:(Wt=[fr[Yn]],kr=1);while((Yn++<Er||Wt[0]!==void 0)&&xn--);xe=Wt[0]!==void 0}Ht[0]||Ht.shift()}if(be==1)In.e=V,c=xe;else{for(ee=1,se=Ht[0];se>=10;se/=10)ee++;In.e=ee+V*be-1,te(In,F?C+In.e+1:C,N,xe)}return In}})();function te(w,S,E,I){var A,C,N,F,q,G,V,ee,se,be=w.constructor;e:if(S!=null){if(!(ee=w.d))return w;for(A=1,F=ee[0];F>=10;F/=10)A++;if((C=S-A)<0)C+=7,N=S,q=(V=ee[se=0])/O(10,A-N-1)%10|0;else if((se=Math.ceil((C+1)/7))>=(F=ee.length)){if(!I)break e;for(;F++<=se;)ee.push(0);V=q=0,A=1,N=(C%=7)-7+1}else{for(V=F=ee[se],A=1;F>=10;F/=10)A++;q=(N=(C%=7)-7+A)<0?0:V/O(10,A-N-1)%10|0}if(I=I||S<0||ee[se+1]!==void 0||(N<0?V:V%O(10,A-N-1)),G=E<4?(q||I)&&(E==0||E==(w.s<0?3:2)):q>5||q==5&&(E==4||I||E==6&&(C>0?N>0?V/O(10,A-N):0:ee[se-1])%10&1||E==(w.s<0?8:7)),S<1||!ee[0])return ee.length=0,G?(S-=w.e+1,ee[0]=O(10,(7-S%7)%7),w.e=-S||0):ee[0]=w.e=0,w;if(C==0?(ee.length=se,F=1,se--):(ee.length=se+1,F=O(10,7-C),ee[se]=N>0?(V/O(10,A-N)%O(10,N)|0)*F:0),G)for(;;){if(se==0){for(C=1,N=ee[0];N>=10;N/=10)C++;for(N=ee[0]+=F,F=1;N>=10;N/=10)F++;
192C!=F&&(w.e++,ee[0]==Z&&(ee[0]=1));break}if(ee[se]+=F,ee[se]!=Z)break;ee[se--]=0,F=1}for(C=ee.length;ee[--C]===0;)ee.pop()}return h&&(w.e>be.maxE?(w.d=null,w.e=NaN):w.e<be.minE&&(w.e=0,w.d=[0])),w}function Oe(w,S,E){if(!w.isFinite())return je(w);var I,A=w.e,C=Y(w.d),N=C.length;return S?(E&&(I=E-N)>0?C=C.charAt(0)+"."+C.slice(1)+Ne(I):N>1&&(C=C.charAt(0)+"."+C.slice(1)),C=C+(w.e<0?"e":"e+")+w.e):A<0?(C="0."+Ne(-A-1)+C,E&&(I=E-N)>0&&(C+=Ne(I))):A>=N?(C+=Ne(A+1-N),E&&(I=E-A-1)>0&&(C=C+"."+Ne(I))):((I=A+1)<N&&(C=C.slice(0,I)+"."+C.slice(I)),E&&(I=E-N)>0&&(A+1===N&&(C+="."),C+=Ne(I))),C}function ut(w,S){var E=w[0];for(S*=7;E>=10;E/=10)S++;return S}function ve(w,S,E){if(S>B)throw h=!0,E&&(w.precision=E),Error(T);return te(new w(g),S,1,!0)}function Pe(w,S,E){if(S>Q)throw Error(T);return te(new w(m),S,E,!0)}function $t(w){var S=w.length-1,E=7*S+1;if(S=w[S]){for(;S%10==0;S/=10)E--;for(S=w[0];S>=10;S/=10)E++}return E}function Ne(w){for(var S="";w--;)S+="0";return S}function Le(w,S,E,I){var A,C=new w(1),N=Math.ceil(I/7+4);for(h=!1;;){if(E%2&&un((C=C.times(S)).d,N)&&(A=!0),(E=$(E/2))===0){E=C.d.length-1,A&&C.d[E]===0&&++C.d[E];break}un((S=S.times(S)).d,N)}return h=!0,C}function Ve(w){return 1&w.d[w.d.length-1]}function Xe(w,S,E){for(var I,A=new w(S[0]),C=0;++C<S.length;){if(!(I=new w(S[C])).s){A=I;break}A[E](I)&&(A=I)}return A}function ot(w,S){var E,I,A,C,N,F,q,G=0,V=0,ee=0,se=w.constructor,be=se.rounding,xe=se.precision;if(!w.d||!w.d[0]||w.e>17)return new se(w.d?w.d[0]?w.s<0?0:1/0:1:w.s?w.s<0?0:w:NaN);for(S==null?(h=!1,q=xe):q=S,F=new se(.03125);w.e>-2;)w=w.times(F),ee+=5;for(q+=I=Math.log(O(2,ee))/Math.LN10*2+5|0,E=C=N=new se(1),se.precision=q;;){if(C=te(C.times(w),q,1),E=E.times(++V),Y((F=N.plus(le(C,E,q,1))).d).slice(0,q)===Y(N.d).slice(0,q)){for(A=ee;A--;)N=te(N.times(N),q,1);if(S!=null)return se.precision=xe,N;if(!(G<3&&he(N.d,q-I,be,G)))return te(N,se.precision=xe,be,h=!0);se.precision=q+=10,E=C=F=new se(1),V=0,G++}N=F}}function We(w,S){var E,I,A,C,N,F,q,G,V,ee,se,be=1,xe=w,st=xe.d,He=xe.constructor,In=He.rounding,Ht=He.precision;if(xe.s<0||!st||!st[0]||!xe.e&&st[0]==1&&st.length==1)return new He(st&&!st[0]?-1/0:xe.s!=1?NaN:st?0:xe);if(S==null?(h=!1,V=Ht):V=S,He.precision=V+=10,I=(E=Y(st)).charAt(0),!(Math.abs(C=xe.e)<15e14))return G=ve(He,V+2,Ht).times(C+""),xe=We(new He(I+"."+E.slice(1)),V-10).plus(G),He.precision=Ht,S==null?te(xe,Ht,In,h=!0):xe;for(;I<7&&I!=1||I==1&&E.charAt(1)>3;)I=(E=Y((xe=xe.times(w)).d)).charAt(0),be++;for(C=xe.e,I>1?(xe=new He("0."+E),C++):xe=new He(I+"."+E.slice(1)),ee=xe,q=N=xe=le(xe.minus(1),xe.plus(1),V,1),se=te(xe.times(xe),V,1),A=3;;){if(N=te(N.times(se),V,1),Y((G=q.plus(le(N,new He(A),V,1))).d).slice(0,V)===Y(q.d).slice(0,V)){if(q=q.times(2),C!==0&&(q=q.plus(ve(He,V+2,Ht).times(C+""))),q=le(q,new He(be),V,1),S!=null)return He.precision=Ht,q;if(!he(q.d,V-10,In,F))return te(q,He.precision=Ht,In,h=!0);He.precision=V+=10,G=N=xe=le(ee.minus(1),ee.plus(1),V,1),se=te(xe.times(xe),V,1),A=F=1}q=G,A+=2}}function je(w){return String(w.s*w.s/0)}function ge(w,S){var E,I,A;for((E=S.indexOf("."))>-1&&(S=S.replace(".","")),(I=S.search(/e/i))>0?(E<0&&(E=I),E+=+S.slice(I+1),S=S.substring(0,I)):E<0&&(E=S.length),I=0;S.charCodeAt(I)===48;I++);for(A=S.length;S.charCodeAt(A-1)===48;--A);if(S=S.slice(I,A)){if(A-=I,w.e=E=E-I-1,w.d=[],I=(E+1)%7,E<0&&(I+=7),I<A){for(I&&w.d.push(+S.slice(0,I)),A-=7;I<A;)w.d.push(+S.slice(I,I+=7));I=7-(S=S.slice(I)).length}else I-=A;for(;I--;)S+="0";w.d.push(+S),h&&(w.e>w.constructor.maxE?(w.d=null,w.e=NaN):w.e<w.constructor.minE&&(w.e=0,w.d=[0]))}else w.e=0,w.d=[0];return w}function Ze(w,S){var E,I,A,C,N,F,q,G,V;if(S.indexOf("_")>-1){if(S=S.replace(/(\d)_(?=\d)/g,"$1"),me.test(S))return ge(w,S)}else if(S==="Infinity"||S==="NaN")return+S||(w.s=NaN),w.e=NaN,w.d=null,w;if(J.test(S))E=16,S=S.toLowerCase();else if(H.test(S))E=2;else{if(!W.test(S))throw Error(x+S);E=8}for((C=S.search(/p/i))>0?(q=+S.slice(C+1),S=S.substring(2,C)):S=S.slice(2),N=(C=S.indexOf("."))>=0,I=w.constructor,N&&(C=(F=(S=S.replace(".","")).length)-C,A=Le(I,new I(E),C,2*C)),C=V=(G=ye(S,E,Z)).length-1;G[C]===0;--C)G.pop();return C<0?new I(0*w.s):(w.e=ut(G,V),w.d=G,h=!1,N&&(w=le(w,A,4*F)),q&&(w=w.times(Math.abs(q)<54?O(2,q):s.pow(2,q))),h=!0,w)}function fe(w,S,E,I,A){var C,N,F,q,G=w.precision,V=Math.ceil(G/7);for(h=!1,q=E.times(E),F=new w(I);;){if(N=le(F.times(q),new w(S++*S++),G,1),F=A?I.plus(N):I.minus(N),I=le(N.times(q),new w(S++*S++),G,1),(N=F.plus(I)).d[V]!==void 0){for(C=V;N.d[C]===F.d[C]&&C--;);if(C==-1)break}C=F,F=I,I=N,N=C}return h=!0,N.d.length=V+1,N}function it(w,S){for(var E=w;--S;)E*=w;return E}function Qe(w,S){var E,I=S.s<0,A=Pe(w,w.precision,1),C=A.times(.5);if((S=S.abs()).lte(C))return l=I?4:1,S;if((E=S.divToInt(A)).isZero())l=I?3:2;else{if((S=S.minus(E.times(A))).lte(C))return l=Ve(E)?I?2:3:I?4:1,S;l=Ve(E)?I?1:4:I?3:2}return S.minus(A).abs()}function gt(w,S,E,I){var A,C,N,F,q,G,V,ee,se,be=w.constructor,xe=E!==void 0;if(xe?(ie(E,1,d),I===void 0?I=be.rounding:ie(I,0,8)):(E=be.precision,I=be.rounding),w.isFinite()){for(xe?(A=2,S==16?E=4*E-3:S==8&&(E=3*E-2)):A=S,(N=(V=Oe(w)).indexOf("."))>=0&&(V=V.replace(".",""),(se=new be(1)).e=V.length-N,se.d=ye(Oe(se),10,A),se.e=se.d.length),C=q=(ee=ye(V,10,A)).length;ee[--q]==0;)ee.pop();if(ee[0]){if(N<0?C--:((w=new be(w)).d=ee,w.e=C,ee=(w=le(w,se,E,I,0,A)).d,C=w.e,G=c),N=ee[E],F=A/2,G=G||ee[E+1]!==void 0,G=I<4?(N!==void 0||G)&&(I===0||I===(w.s<0?3:2)):N>F||N===F&&(I===4||G||I===6&&1&ee[E-1]||I===(w.s<0?8:7)),ee.length=E,G)for(;++ee[--E]>A-1;)ee[E]=0,E||(++C,ee.unshift(1));for(q=ee.length;!ee[q-1];--q);for(N=0,V="";N<q;N++)V+=p.charAt(ee[N]);if(xe){if(q>1)if(S==16||S==8){for(N=S==16?4:3,--q;q%N;q++)V+="0";
192for(q=(ee=ye(V,A,S)).length;!ee[q-1];--q);for(N=1,V="1.";N<q;N++)V+=p.charAt(ee[N])}else V=V.charAt(0)+"."+V.slice(1);V=V+(C<0?"p":"p+")+C}else if(C<0){for(;++C;)V="0"+V;V="0."+V}else if(++C>q)for(C-=q;C--;)V+="0";else C<q&&(V=V.slice(0,C)+"."+V.slice(C))}else V=xe?"0p+0":"0";V=(S==16?"0x":S==2?"0b":S==8?"0o":"")+V}else V=je(w);return w.s<0?"-"+V:V}function un(w,S){if(w.length>S)return w.length=S,!0}function mt(w){return new this(w).abs()}function Xr(w){return new this(w).acos()}function or(w){return new this(w).acosh()}function Fe(w,S){return new this(w).plus(S)}function ke(w){return new this(w).asin()}function Ce(w){return new this(w).asinh()}function Ie(w){return new this(w).atan()}function Ke(w){return new this(w).atanh()}function St(w,S){w=new this(w),S=new this(S);var E,I=this.precision,A=this.rounding,C=I+4;return w.s&&S.s?w.d||S.d?!S.d||w.isZero()?(E=S.s<0?Pe(this,I,A):new this(0)).s=w.s:!w.d||S.isZero()?(E=Pe(this,C,1).times(.5)).s=w.s:S.s<0?(this.precision=C,this.rounding=1,E=this.atan(le(w,S,C,1)),S=Pe(this,C,1),this.precision=I,this.rounding=A,E=w.s<0?E.minus(S):E.plus(S)):E=this.atan(le(w,S,C,1)):(E=Pe(this,C,1).times(S.s>0?.25:.75)).s=w.s:E=new this(NaN),E}function qe(w){return new this(w).cbrt()}function Pt(w){return te(w=new this(w),w.e+1,2)}function jt(w,S,E){return new this(w).clamp(S,E)}function yt(w){if(!w||typeof w!="object")throw Error(P+"Object expected");var S,E,I,A=w.defaults===!0,C=["precision",1,d,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(S=0;S<C.length;S+=3)if(E=C[S],A&&(this[E]=v[E]),(I=w[E])!==void 0){if(!($(I)===I&&I>=C[S+1]&&I<=C[S+2]))throw Error(x+E+": "+I);this[E]=I}if(E="crypto",A&&(this[E]=v[E]),(I=w[E])!==void 0){if(I!==!0&&I!==!1&&I!==0&&I!==1)throw Error(x+E+": "+I);if(I){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(k);this[E]=!0}else this[E]=!1}return this}function sr(w){return new this(w).cos()}function br(w){return new this(w).cosh()}function di(w,S){return new this(w).div(S)}function cr(w){return new this(w).exp()}function Br(w){return te(w=new this(w),w.e+1,3)}function wr(){var w,S,E=new this(0);for(h=!1,w=0;w<arguments.length;)if((S=new this(arguments[w++])).d)E.d&&(E=E.plus(S.times(S)));else{if(S.s)return h=!0,new this(1/0);E=S}return h=!0,E.sqrt()}function Nn(w){return w instanceof s||w&&w.toStringTag===M||!1}function Tr(w){return new this(w).ln()}function dn(w,S){return new this(w).log(S)}function Ki(w){return new this(w).log(2)}function pi(w){return new this(w).log(10)}function Yi(){return Xe(this,arguments,"lt")}function Xi(){return Xe(this,arguments,"gt")}function Ji(w,S){return new this(w).mod(S)}function pn(w,S){return new this(w).mul(S)}function fi(w,S){return new this(w).pow(S)}function Yt(w){var S,E,I,A,C=0,N=new this(1),F=[];if(w===void 0?w=this.precision:ie(w,1,d),I=Math.ceil(w/7),this.crypto)if(crypto.getRandomValues)for(S=crypto.getRandomValues(new Uint32Array(I));C<I;)(A=S[C])>=429e7?S[C]=crypto.getRandomValues(new Uint32Array(1))[0]:F[C++]=A%1e7;else{if(!crypto.randomBytes)throw Error(k);for(S=crypto.randomBytes(I*=4);C<I;)(A=S[C]+(S[C+1]<<8)+(S[C+2]<<16)+((127&S[C+3])<<24))>=214e7?crypto.randomBytes(4).copy(S,C):(F.push(A%1e7),C+=4);C=I/4}else for(;C<I;)F[C++]=1e7*Math.random()|0;for(w%=7,(I=F[--C])&&w&&(A=O(10,7-w),F[C]=(I/A|0)*A);F[C]===0;C--)F.pop();if(C<0)E=0,F=[0];else{for(E=-1;F[0]===0;E-=7)F.shift();for(I=1,A=F[0];A>=10;A/=10)I++;I<7&&(E-=7-I)}return N.e=E,N.d=F,N}function fn(w){return te(w=new this(w),w.e+1,this.rounding)}function ea(w){return(w=new this(w)).d?w.d[0]?w.s:0*w.s:w.s||NaN}function ta(w){return new this(w).sin()}function Zo(w){return new this(w).sinh()}function ra(w){return new this(w).sqrt()}function gn(w,S){return new this(w).sub(S)}function po(){var w=0,S=arguments,E=new this(S[w]);for(h=!1;E.s&&++w<S.length;)E=E.plus(S[w]);return h=!0,te(E,this.precision,this.rounding)}function na(w){return new this(w).tan()}function fc(w){return new this(w).tanh()}function Dn(w){return te(w=new this(w),w.e+1,1)}(s=(function w(S){var E,I,A;function C(N){var F,q,G,V=this;if(!(V instanceof C))return new C(N);if(V.constructor=C,Nn(N))return V.s=N.s,void(h?!N.d||N.e>C.maxE?(V.e=NaN,V.d=null):N.e<C.minE?(V.e=0,V.d=[0]):(V.e=N.e,V.d=N.d.slice()):(V.e=N.e,V.d=N.d?N.d.slice():N.d));if((G=typeof N)=="number"){if(N===0)return V.s=1/N<0?-1:1,V.e=0,void(V.d=[0]);if(N<0?(N=-N,V.s=-1):V.s=1,N===~~N&&N<1e7){for(F=0,q=N;q>=10;q/=10)F++;return void(h?F>C.maxE?(V.e=NaN,V.d=null):F<C.minE?(V.e=0,V.d=[0]):(V.e=F,V.d=[N]):(V.e=F,V.d=[N])
192)}return 0*N!=0?(N||(V.s=NaN),V.e=NaN,void(V.d=null)):ge(V,N.toString())}if(G!=="string")throw Error(x+N);return(q=N.charCodeAt(0))===45?(N=N.slice(1),V.s=-1):(q===43&&(N=N.slice(1)),V.s=1),me.test(N)?ge(V,N):Ze(V,N)}if(C.prototype=R,C.ROUND_UP=0,C.ROUND_DOWN=1,C.ROUND_CEIL=2,C.ROUND_FLOOR=3,C.ROUND_HALF_UP=4,C.ROUND_HALF_DOWN=5,C.ROUND_HALF_EVEN=6,C.ROUND_HALF_CEIL=7,C.ROUND_HALF_FLOOR=8,C.EUCLID=9,C.config=C.set=yt,C.clone=w,C.isDecimal=Nn,C.abs=mt,C.acos=Xr,C.acosh=or,C.add=Fe,C.asin=ke,C.asinh=Ce,C.atan=Ie,C.atanh=Ke,C.atan2=St,C.cbrt=qe,C.ceil=Pt,C.clamp=jt,C.cos=sr,C.cosh=br,C.div=di,C.exp=cr,C.floor=Br,C.hypot=wr,C.ln=Tr,C.log=dn,C.log10=pi,C.log2=Ki,C.max=Yi,C.min=Xi,C.mod=Ji,C.mul=pn,C.pow=fi,C.random=Yt,C.round=fn,C.sign=ea,C.sin=ta,C.sinh=Zo,C.sqrt=ra,C.sub=gn,C.sum=po,C.tan=na,C.tanh=fc,C.trunc=Dn,S===void 0&&(S={}),S&&S.defaults!==!0)for(A=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],E=0;E<A.length;)S.hasOwnProperty(I=A[E++])||(S[I]=this[I]);return C.config(S),C})(v)).prototype.constructor=s,s.default=s.Decimal=s,g=new s(g),m=new s(m),(a=function(){return s}.call(n,i,n,r))===void 0||(r.exports=a)})()},function(r,n,i){var a=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(n,"__esModule",{value:!0});var o=i(2),s=a(i(4)),c=a(i(1)),l=a(i(0)),u=(function(){function d(p){if(p===void 0||p.length===0)throw new c.default("There collection of ranges should have at least one range defined");this.ranges=p}return d.prototype.getRanges=function(){return this.ranges},d.prototype.contains=function(p){var g,m=!1;try{g=new s.default(p)}catch{throw new c.default('The value "'+p+'" is not a valid input')}if(g===void 0)throw new c.default("A valid value is required to check if the range contains it");if(o.exceedsMaximumPrecision(g))throw new l.default(o.EXCEEDED_PRECISION_MESSAGE);for(var v=0;v<this.ranges.length;v++)if(this.ranges[v].contains(g)){m=!0;break}var h={contains:m};return m||(h.adjacentValues=this.calculateNearestValues(g)),h},d.prototype.calculateNearestValues=function(p){for(var g={},m=0,v=this.ranges;m<v.length;m++){var h=v[m].calculateNearestValues(p);h.lowerAdjValue&&(g.lowerAdjValue&&!h.lowerAdjValue.greaterThan(g.lowerAdjValue)||(g.lowerAdjValue=h.lowerAdjValue)),h.upperAdjValue&&(g.upperAdjValue&&!h.upperAdjValue.lessThan(g.upperAdjValue)||(g.upperAdjValue=h.upperAdjValue))}return g},d.prototype.toString=function(){return this.ranges.toString()},d})();n.default=u},function(r,n,i){var a=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0}),n.InvalidInputError=n.DecimalPrecisionError=n.MalformedRangeError=n.RangeConverter=n.Ranges=n.Range=void 0;var o=a(i(2));n.Range=o.default;var s=a(i(5));n.Ranges=s.default;var c=a(i(7));n.RangeConverter=c.default;var l=a(i(0));n.DecimalPrecisionError=l.default;var u=a(i(3));n.MalformedRangeError=u.default;var d=a(i(1));n.InvalidInputError=d.default},function(r,n,i){var a=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0});var o=a(i(5)),s=a(i(2)),c=a(i(0)),l=a(i(1)),u=a(i(3)),d=(function(){function p(){}return p.toRanges=function(g){var m=[];try{g.forEach((function(v){m.push(p.toRange(v))}))}catch(v){throw v instanceof l.default||v instanceof c.default||v instanceof u.default?v:new l.default("The input cannot be converted to Ranges")}return new o.default(m)},p.toRange=function(g){return new s.default(g.minimum,g.maximum,g.increment)},p})();n.default=d}])}))})(Nk);var Kf=Nk.exports;const Qb=e=>{const t=[];for(const r of e)if(r.minimum!==void 0)t.push(new Kf.Range(r.minimum,r.maximum,r.increment));else{const n=parseFloat(r.key);isNaN(n)||t.push(new Kf.Range(n,n))}if(t.length!==0)return new Kf.Ranges(t)},pfe=e=>e?Sce(e)?ffe(e):[Number(e.key)]:[],Zb=[1,2,3,4,5,10,25,50],Kb=[0,1,2,3,4,5,10,25],ffe=e=>{if(!e)return[];const{minimum:t,maximum:r,increment:n}=e,i=r??Number.MAX_SAFE_INTEGER,a=[];if(!n)return a.push(t),a;if(n<t&&Kb[Kb.length-1]*n+t<=i){for(const s of Kb)a.push(s*n+t);return a}if(Zb[Zb.length-1]*n+t<=i){for(const s of Zb)a.push(s*n);return a}let o=0;for(let s=t;s<=i&&o<500;s+=n)a.push(s),o++;return a},Dk=e=>{const t=new Set;
192for(const i of e)pfe(i).forEach(a=>t.add(a));const r=Array.from(t);return r.sort((i,a)=>i-a),r.length===0?[]:Wb(0,r.length-1).map(i=>r[i])},Lk=(e,t,r)=>{const n=t.find(i=>ub(i)&&i.key===String(e));return n||{key:String(e),name:String(e),isCompatible:r?r.contains(e).contains:!1}},gfe=()=>({strategyApplies:()=>!0,getDiscreteChoices:(e,t)=>{if(e.length===0)return[];const r=Dk(e),n=t?parseInt(t,10):void 0;n&&!r.includes(n)&&r.push(n);const i=Qb(e);return r.sort((a,o)=>a-o).map(a=>Lk(a,e,i))}}),mfe=e=>({strategyApplies:()=>e.length>0,getDiscreteChoices:(t,r)=>{if(t.length===0||e.length===0)return[];const n=Qb(t),i=e.map(c=>({key:String(c),name:String(c),isCompatible:n?n.contains(c).contains:!1}));let a=new Set;if(e.length>=8)Wb(0,e.length-1).forEach(l=>a.add(e[l]));else{const c=8-i.length,l=Dk(t);if(c>=l.length)a=new Set([...e,...l]);else{const u=l.filter(d=>!e.includes(d)).slice(0,c);a=new Set([...e,...u])}}const o=r?parseInt(r,10):void 0;return o&&!isNaN(o)&&!a.has(o)&&a.add(o),Array.from(a).sort((c,l)=>c-l).map(c=>Lk(c,t,n))}}),Uk=dfe(),hfe=gfe(),vfe=(e,t)=>{const{quantityPriceBreaks:r}=Wde(),n=Ye(()=>{let o=mfe(r);return o.strategyApplies(e,t)?o.getDiscreteChoices(e,t):Uk.strategyApplies(e,t)?Uk.getDiscreteChoices(e,t):hfe.getDiscreteChoices(e,t)},[e,t,r]),[i,a]=pe(n);return Ee(()=>{((s,c)=>JSON.stringify(s)===JSON.stringify(c))(i,n)||a(n)},[n,i]),i};var Vt;(function(e){e.EMPTY_INPUT="emptyInput",e.NOT_A_NUMBER="notANumber",e.NOT_IN_RANGE="notInRange",e.UNSUPPORTED_PRECISION="unsupportedPrecision",e.UNKNOWN_ERROR="unknownError",e.SUCCESS="success"})(Vt||(Vt={}));const Yb=(e,t,r,n)=>{if(!e)return r&&n?{code:Vt.EMPTY_INPUT}:{code:Vt.SUCCESS};try{const{contains:i,adjacentValues:a}=t.contains(e);return i?{code:Vt.SUCCESS}:{code:Vt.NOT_IN_RANGE,additionalInformation:{adjacentValues:a}}}catch(i){if(i instanceof Error){if(i.message.includes("decimal"))return{code:Vt.UNSUPPORTED_PRECISION};if(i.message.includes("not a valid input"))return{code:Vt.NOT_A_NUMBER}}return console.error(i),{code:Vt.UNKNOWN_ERROR}}},yfe=(e,t,r,n)=>{const i=Zf(t),a=Gb(t);switch(e.code){case Vt.EMPTY_INPUT:case Vt.NOT_A_NUMBER:return{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxInvalidInputError")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})};case Vt.NOT_IN_RANGE:{const o=e.additionalInformation?.adjacentValues?.lowerAdjValue,s=e.additionalInformation?.adjacentValues?.upperAdjValue;return o===void 0&&s===void 0?{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxInvalidInputError")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})}:s===void 0?{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxAboveMaxError")??"",contextVariables:{MAXIMUM:`${o}`,UNIT:""}})}:o===void 0?{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxBelowMinError")??"",contextVariables:{MINIMUM:`${s}`,UNIT:""}})}:{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxBetweenRangeError")??"",contextVariables:{LOWER:`${o}`,HIGHER:`${s}`,UNIT:""}})}}case Vt.UNSUPPORTED_PRECISION:return{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxInvalidInputError")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})};case Vt.UNSUPPORTED_PRECISION:return{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxInvalidInputError")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})};case Vt.UNKNOWN_ERROR:return{type:"error",content:y.createElement(ti,{tokenizedText:n("quantityComboboxInvalidInputError")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})};case Vt.SUCCESS:default:return{type:"info",content:y.createElement(ti,{tokenizedText:n("quantityComboboxHelperText")??"",contextVariables:{MINIMUM:`${i}`,MAXIMUM:`${a}`,UNIT:""}})}}},bfe=(e,t,r,n,i,a)=>{if(!t)return;const o=y.useMemo(()=>Yb(e,t,r,n),[e,t,r,n]),s=yfe(o,t,i,a);return{result:o,message:s}},wfe=e=>{const{inputId:t,infoId:r,errorId:n,skin:i,validationResult:a,compatibleRanges:o,isRequired:s,onSelectionChange:c,onInputBlur:l}=e,{i18nUnsafe:u}=Mn(),{overlayState:d}=j0(),p=vt(null);return Ee(()=>{const g=p.current,m=v=>{if(g&&v.key==="Enter"){if(v.preventDefault(),d?.selectionManager?.focusedKey)return;(o?Yb(g.value,o,!!s,!0):{code:Vt.UNKNOWN_ERROR}).code===Vt.SUCCESS&&(c(g.value,"text-input"),d?.setOpen(!1)),v.stopImmediatePropagation()}};return g?.addEventListener("keydown",m),()=>g?.removeEventListener("keydown",m)},[o,s,c,p]),y.createElement(y.Fragment,null,y.createElement(H0,{id:`quantity-input-${t}`,"aria-describedby":r,"aria-invalid":a?.message.type==="error","aria-errormessage":a?.message.type==="error"?n:void 0,placeholder:u("quantityComboboxPlaceholderText"),skin:i,onBlur:l,ref:p}))},Tfe=e=>{const{locale:t,option:r,hasSampleQuantity:n,currency:i,fractionDigits:a,showError:o,onChanged:s}=e,{name:c,selectedKey:l,choices:u,isRequired:d}=r,{i18n:p,i18nUnsafe:g}=Mn(),m=vfe(u,l),v=Ye(()=>m.map(R=>parseInt(R.key)).filter(R=>!isNaN(R)),[m]),h=Ye(()=>Qb(u),[u]),P=Sr(),x=Sr(),T=Sr(),k=Sr(),[M,$]=pe({selectedKey:"",inputValue:"",inputValueHasChangedAfterSelection:!1});Ee(()=>{$({selectedKey:l??"",inputValue:l??"",inputValueHasChangedAfterSelection:!1})},[l]);const{filteredOptions:O}=cfe(v,h,M),H=Et((R,Y)=>{const he=(R?h?.contains(R).contains:!1)?`${R}`:"";$({inputValue:`${R}`,selectedKey:R?R.toString():"",inputValueHasChangedAfterSelection:!1}),he!==l&&s({choiceKey:he,isValid:!!he,eventTarget:Y})},[l,h,s]),J=Et(R=>{$(Y=>({inputValue:R,selectedKey:Y.selectedKey,inputValueHasChangedAfterSelection:!0}
192))},[]),W=Et(()=>{$(R=>({...R,inputValue:R.selectedKey,inputValueHasChangedAfterSelection:!1}))},[]),me=bfe(M.inputValue,h,!!d,!!o,p,g),Z=Ye(()=>lfe(h,n??!1),[h,n]),B=Ye(()=>{if(h&&h.getRanges().length>0){const R=g("quantityComboboxHelperText"),Y=Zf(h),ie=Gb(h);return{type:"info",content:y.createElement(ti,{tokenizedText:R??"",contextVariables:{MINIMUM:`${Y}`,MAXIMUM:`${ie}`,UNIT:""}})}}},[h]);if(!h)return null;const Q=o&&me?.message.type==="error";return y.createElement(y.Fragment,null,y.createElement(Re,{mb:"2",justifyContent:"space-between"},y.createElement(we,{id:x,fontSkin:"body-standard-bold",as:"label"},c),y.createElement(Zde,{option:{...r,choices:m},currency:i,fractionDigits:a,minimumNonSampleQuantity:Z,locale:t,onChanged:s})),y.createElement(U0,{items:O,inputValue:M.inputValue,onInputChange:R=>J(R||""),onSelectionChange:R=>H(R,"dropdown"),menuTrigger:"focus","aria-labelledby":x,selectedKey:M.selectedKey||void 0,disableAutoFilter:!0},y.createElement(wfe,{inputId:P,infoId:T,errorId:k,isRequired:d,validationResult:me,compatibleRanges:h,skin:Q?"error":"standard",onInputBlur:W,onSelectionChange:H}),y.createElement(F0,null,me?.message.type==="error"&&y.createElement(B0,{fontSkin:"body-small",textColor:"subtle"},me.message.content),y.createElement(q0,null,O.map(R=>{let Y=m.find(ie=>ie.key===R.toString());return Y||(Y={key:R.toString(),name:R.toString(),isCompatible:!0}),y.createElement(z0,{key:R.toString(),textValue:R.toString()},y.createElement(hk,{choice:Y,minimumNonSampleQuantity:Z,locale:t,currency:i,fractionDigits:a}))})))),!Q&&y.createElement(we,{id:T,mt:"2",fontSkin:"body-small",textColor:"subtle"},B?.content),Q&&y.createElement(we,{id:k,textColor:"error",fontSkin:"body-small",role:"status","aria-live":"polite",mt:"2"},me?.message.content))},Efe=e=>{switch(e){case"standard":default:return Tfe}},Sfe=e=>{const{onChanged:t,skin:r}=e,n=a=>{t&&t(a)},i=Efe(r??"standard");return y.createElement(i,{...e,onChanged:n})},Pfe=jn.div` 193 width: 100%; 194 height: 10em; 195 overflow: scroll; 196 background-color: #111111; 197 color: white; 198 199 > pre { 200 margin: 0; 201 padding: 0.2em 0; 202 border-bottom: 1px solid #888888; 203 } 204`,Cfe=()=>{const{decoratorMutations:e,validationMessages:t}=Mu();return y.createElement(O0,{style:{borderStyle:"dashed",borderWidth:"1px",borderColor:"black",borderRadius:"0.5em",backgroundImage:"linear-gradient(45deg, #e0e0e0 25%, #e8e8e8 25%, #e8e8e8 50%, #e0e0e0 50%, #e0e0e0 75%, #e8e8e8 75%, #e8e8e8 100%)",backgroundSize:"56.57px 56.57px"}},y.createElement(A0,{m:0,p:"2",pr:"4",style:{borderStyle:"none",borderWidth:0,borderColor:"transparent"}},y.createElement($0,{m:"2",p:"2"},y.createElement("pre",{style:{margin:"0"}},"Debug Info"))),y.createElement(R0,{px:"4",p:"2",style:{position:"relative"}},y.createElement(Pfe,null,y.createElement("pre",null,"Validations:"),y.createElement("pre",null,JSON.stringify(t,null,2)),y.createElement("pre",null,"Mutations:"),y.createElement("pre",null,JSON.stringify(e,null,2)))))},Ife=Ri(({notificationOptions:e},t)=>{const{optionCausingUnselect:r,optionsUnselected:n}=e;if(!r||!n)return y.createElement(y.Fragment,null);const{i18n:i}=Mn(),a=ek(i,"unwindingAlertMessage",n,r);return y.createElement(es,{ref:t,skin:"warning",marginTop:6,marginBottom:"6"},y.createElement(Ba,{fontWeight:"normal",dangerouslySetInnerHTML:{__html:a}}),y.createElement(El,{accessibleText:i("dismissAlert")}))});var Yf=function(){return Yf=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Yf.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var xfe=function(e){var t={};return Object.keys(e).forEach(function(r){r.toLowerCase()!=="quantity"&&(t[r]=e[r])}),t},_fe=function(e,t,r){var n;return Yf(Yf({},r),(n={},n[e]=t,n))},zu=999999,kfe=yi(void 0),Mfe=function(){var e=xt(kfe);return e||(console.warn("useConfiguratorAvailability must be used within a ConfiguratorAvailabilityProvider. Returning default context value."),{productKey:"",productVersion:1,attributeKeys:void 0,attributes:void 0,currentSelections:void 0,completedSelections:void 0,isApparelSizedGood:!1,country:"",culture:"",authHeader:"",isLoading:!1,availabilityCombinations:[],isPPAGTail:!1,moq:1})},Ofe=function(e,t,r){var n=e.filter(function(i){return Object.entries(t).every(function(a){var o=a[0],s=a[1];return r&&o.toLowerCase()==="size"?!0:i.combination[o]===s})});return n},Afe=function(e){if(e.length===0)return zu;var t=e.filter(function(n){return!n.isConstrained});if(t.length===0)return zu;var r=Math.max.apply(Math,t.map(function(n){return n.inventoryCount}));return r>zu?zu:r},$fe=function(e){var t=e.filter(function(r){return!r.isConstrained});return t.length===0?!1:t.some(function(r){return r.lowStock})},Rfe=function(e){return e.length===0?!1:e.every(function(t){return t.isConstrained})},Xb=function(e,t){var r=Mfe(),n=r.currentSelections,i=r.isApparelSizedGood,a=r.isLoading,o=r.availabilityCombinations,s=r.isPPAGTail,c=r.debug,l=pe(zu),u=l[0],d=l[1],p=pe(!1),g=p[0],m=p[1],v=pe(!1),h=v[0],P=v[1];return Ee(function(){if(!a&&o?.length>0&&n&&s){var x=_fe(e,t,n),T=xfe(x),k=Ofe(o,T,i);if(c&&(console.debug("[useAvailability] optionKey: ".concat(e,", optionValueKey: ").concat(t)),console.debug("[useAvailability] selectionsToMatch:",T),console.debug("[useAvailability] matchingCombinations:",k)),k?.length>0){var M=Afe(k),$=$fe(k),O=Rfe(k);d(M),m($),P(O),c&&console.debug("[useAvailability] totalInventoryCount: ".concat(M,", anyLowStock: ").concat($,", allConstrained: ").concat(O))}}},[a,i,JSON.stringify(n),o,e,t]),{isLoading:a,inventoryCount:u,lowStock:g,isConstrained:h}};const Nfe=({optionKey:e,choice:t})=>{const r=t.key?.split("/"),n=r?.[0],i=r?.[1]??n,{isLoading:a,isConstrained:o,inventoryCount:s}
204=Xb(e,t.key),[c,l]=y.useState(!1);return Ee(()=>{a||(s===0||o?l(!0):c&&l(!1))},[a,o,s]),y.createElement(hi,{key:`choice_${t.key}`,value:t.key,disabled:c||!t.isCompatible},y.createElement(vi,{...t.additionalProps??{}},y.createElement(Il,{component:"span",primaryColor:n,secondaryColor:i,accessibleText:t.name})))},Dfe=({option:e,showIncompatibleChoices:t,onChanged:r})=>{const[n,i]=y.useState(e.selectedKey??null);Ye(()=>{(e.choices.find(l=>l.key===e.selectedKey)?.isCompatible||t)&&i(e.selectedKey??null)},[e,t]);const a=s=>{i(s),r?.({choiceKey:s})},o=Sr();return y.createElement(ct,null,y.createElement(Ci,{titleId:o,showSelectedOptionText:!0}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"single-select",selectedValue:n,onSelectedValueChange:a,"aria-required":e.isRequired,"aria-labelledby":o},y.createElement(Pl,{className:"color-swatches-base",size:"super"},e.choices.map(s=>(s.isCompatible||t)&&y.createElement(Nfe,{key:`${e.key}_${s.key}`,optionKey:e.key,choice:s})))))};function Lfe(e){switch(e){case"standard":default:return Dfe}}const Ufe=e=>{const t=i=>{e?.onChanged?.(i)},r=Lfe(e.skin??"standard"),n={...e,onChanged:t};return y.createElement(r,{...n})},Ffe=e=>{const{option:t,onChanged:r,isDisabled:n,message:i}=e,[a,o]=pe(t.selectedKey??""),s=Sr(),c=Sr(),l=Sr(),u=Et(bk(d=>{r({choiceKey:d})},250),[r]);return Ee(()=>{t.selectedKey&&u(t.selectedKey)},[]),y.createElement(y.Fragment,null,y.createElement(Ci,{titleId:s}),y.createElement(Cm,{disabled:n,skin:"standard",value:a,onChange:d=>{o(d.target.value),u(d.target.value)},"aria-required":t.isRequired,"aria-labelledby":s,"aria-describedby":c,"aria-invalid":i?.type==="error","aria-errormessage":i?.type==="error"?l:void 0}),i&&i.type==="info"&&y.createElement(we,{id:c,mt:"2",fontSkin:"body-small",textColor:"subtle"},i.text),i&&i.type==="error"&&y.createElement(we,{id:l,textColor:"error",fontSkin:"body-small",role:"status","aria-live":"polite",mt:"2"},i.text))},Bfe=e=>{switch(e){case"standard":default:return Ffe}},qfe=e=>Kf.RangeConverter.toRanges(e),zfe=(e,t,r,n)=>{const i=Jb(n),a=Fk(r),o=Bk(r),s=i?t("fullRangedHelperTextForBooklets"):e("fullRangedHelperText"),c=i?t("rangePartialRangedHelperTextForBooklets"):e("rangePartialRangedHelperText"),l=new Sc.TokenEngine;let u;return s&&a.isFinite()?u=l.replace(s,{MINIMUM:o,UNIT:n,MAXIMUM:a}):c&&(u=l.replace(c,{MINIMUM:o,UNIT:n})),{helperText:u}},Vfe=e=>{const{isConstrained:t,validationCode:r,additionalInformation:n,rangeInformation:i,unitOfMeasure:a,i18n:o,i18nUnsafe:s}=e;if(t)return o("outOfStockCallout");switch(r){case Vt.EMPTY_INPUT:return jfe(o,s,Bk(i),Fk(i),a);case Vt.SUCCESS:return"";case Vt.NOT_IN_RANGE:return Hfe(o,s,n?.adjacentValues,a);case Vt.UNSUPPORTED_PRECISION:return o("rangedDecimalPrecisionError");case Vt.NOT_A_NUMBER:return o("rangedNotANumberError");case Vt.UNKNOWN_ERROR:default:return o("rangedGeneralInputError")}},jfe=(e,t,r,n,i)=>{const o=Jb(i)?t("requiredAttributeFieldErrorForBooklets"):e("requiredAttributeFieldError");return new Sc.TokenEngine().replace(o??"",{LOWER:r,UNIT:i,HIGHER:n})},Hfe=(e,t,r,n)=>{const i=Jb(n);if(!r||!r.lowerAdjValue&&!r.upperAdjValue)return e("rangedGeneralInputError");const{lowerAdjValue:a,upperAdjValue:o}=r,s=new Sc.TokenEngine;let c,l;return a&&!o?(l=i?t("rangedMaxInputValueErrorForBooklets"):e("rangedMaxInputValueError"),c=s.replace(l??"",{MAXIMUM:a,UNIT:n})):!a&&o?(l=i?t("rangedMinInputValueErrorForBooklets"):e("rangedMinInputValueError"),c=s.replace(l??"",{MINIMUM:o,UNIT:n})):(l=i?t("rangedBetweenRangesErrorForBooklets"):e("rangedBetweenRangesError"),c=s.replace(l??"",{LOWER:a,HIGHER:o,UNIT:n})),c},Fk=e=>e.getRanges().reduce((t,r)=>t.getMaximum().greaterThan(r.getMaximum())?t:r).getMaximum(),Bk=e=>e.getRanges().reduce((t,r)=>t.getMinimum().lessThan(r.getMinimum())?t:r).getMinimum(),Jb=e=>e?.toLowerCase()==="pages",Gfe=(e,t,r)=>{const{showFormErrors:n,productOption:i}=Mu(),[a,o]=pe(i.selectedKey??null),[s,c]=pe(!!n),{i18n:l,i18nUnsafe:u}=Mn(),d=Ye(()=>qfe(i.choices),[i.choices]),p=Ye(()=>zfe(l,u,d,e).helperText,[l,u,d,e]),[g,m]=pe({message:void 0,isValid:!0});return Ee(()=>{if(!d)return;const h=Yb(a,d,!!i.isRequired,s),P=Vfe({isConstrained:t,validationCode:h.code,additionalInformation:h.additionalInformation,rangeInformation:d,unitOfMeasure:e,i18n:l,i18nUnsafe:u});a!==i.selectedKey&&(i.selectedKey||a)&&r({choiceKey:h.code===Vt.SUCCESS?a:null,choiceKeyWithInvalids:a??void 0,isValid:h.code===Vt.SUCCESS,code:h.c
204ode,additionalInformation:h.additionalInformation});const x=P||p,T=h.code===Vt.SUCCESS;m(k=>k.message!==x||k.isValid!==T?{message:x,isValid:T}:k)},[s,a,d,e,i.isRequired,i.selectedKey,t,p]),{handleProductChoiceChangedEvent:Et(h=>{const{choiceKey:P}=h;o(P),c(!0)},[]),textboxMessage:g}},Wfe=e=>{const{onChanged:t,skin:r,option:n,isDisabled:i}=e,{handleProductChoiceChangedEvent:a,textboxMessage:o}=Gfe(n.unitOfMeasure??"",i,t),s=Bfe(r??"standard"),c={...e,message:{type:o?.isValid?"info":"error",text:o?.message},onChanged:l=>{a(l)}};return y.createElement(s,{...c})},Qfe=jn.div` 205 color: var(--swan-sem-color-text-info); 206`,Zfe=({choice:e,locale:t,fractionDigits:r,currency:n})=>y.createElement(Re,{alignItems:"baseline"},y.createElement(ct,{paddingRight:"3"},!!(e.totalListPrice&&e.totalDiscountedPrice&&e.totalListPrice>0&&e.totalDiscountedPrice>0)&&y.createElement(Tc,{pricingInfo:{listPrice:e.totalListPrice,discountPrice:e.totalDiscountedPrice,culture:t,currency:n,minimumFractionDigits:r,vatInc:!0,hideVatMessage:!0,hideShippingMessageInVatMessage:!0},placeHolderText:"",tenant:"vistaprint"})),y.createElement(we,{fontSize:"xsmall"},y.createElement(Qfe,null,y.createElement(Qd,{pricingInfo:{unitListPrice:e.unitDiscountedPrice??0,unitDiscountPrice:e.unitDiscountedPrice??0,culture:t,currency:n,minimumFractionDigits:r,vatInc:!0,hideVatMessage:!0,hideShippingMessageInVatMessage:!0},placeHolderText:"",tenant:"vistaprint"})))),qk=jn.div` 207 .swan-discount-price { 208 color: var(--swan-sem-color-text-info); 209 } 210`,zk=jn.div` 211 color: var(--swan-sem-color-text-promo); 212 font-size: var(--swan-sem-font-size-small); 213`,Kfe=({culture:e,currency:t,minimumFractionDigits:r,savingsFormat:n,savingsPercent:i=0,savingsTotal:a=0,onSale:o=!1})=>{const{i18n:s}=Mn(),c=i>0?"+ "+s("sale"):s("sale");if(n==="percent"){const l=s("percentSavings");return y.createElement(y.Fragment,null,i>0&&y.createElement(qk,null,y.createElement(Ld,{fontSize:"small"},y.createElement(ti,{tokenizedText:l,contextVariables:{PERCENT:`${i}`}}))),o&&y.createElement(zk,null,"\xA0",c))}else return n==="difference"?y.createElement(y.Fragment,null,a>0&&y.createElement(qk,null,y.createElement(Ld,{fontSize:"small"},y.createElement(Tc,{placeHolderText:"...",pricingInfo:{listPrice:a,discountPrice:a,minimumFractionDigits:r,vatInc:!0,hideVatMessage:!0,hideShippingMessageInVatMessage:!0,culture:e,currency:t}})," ","discount / unit")),o&&y.createElement(zk,null,"\xA0",c)):y.createElement(y.Fragment,null)},Yfe=jn.div` 214 margin-bottom: var(--swan-spacing-standard-4); 215 216 container-type: inline-size; 217 218 .quantity-container { 219 flex-direction: column; 220 } 221 222 .quantity-number-callouts { 223 width: 200px; 224 margin-bottom: var(--swan-sem-space-3); 225 } 226 227 .quantity-prices { 228 flex-direction: column; 229 flex-grow: 1; 230 } 231 232 @container (width > 400px) { 233 .quantity-container { 234 flex-direction: row; 235 } 236 237 .quantity-number-callouts { 238 width: 150px; 239 } 240 241 .quantity-prices { 242 flex-direction: column; 243 align-items: end; 244 } 245 } 246 247 @container (width > 600px) { 248 .quantity-container { 249 flex-direction: row; 250 } 251 252 .quantity-number-callouts { 253 width: 200px; 254 margin-bottom: 0; 255 } 256 257 .quantity-prices { 258 flex-direction: row; 259 flex-grow: 1; 260 align-items: unset; 261 } 262 } 263`,Xfe=({choice:e,priceDisplayMode:t,locale:r,currency:n,fractionDigits:i,isSampleQuantity:a,quantitySavingsIsVisible:o,onSale:s,savingsFormat:c})=>{const{i18n:l}=Mn();return y.createElement(Yfe,null,y.createElement(ct,null,y.createElement(Re,{className:"quantity-container",justifyContent:"space-between"},y.createElement(Re,{className:"quantity-number-callouts",alignItems:"center"},y.createElement(we,{paddingRight:"3",fontSkin:"body-standard"},e.name),y.createElement(Re,null,e.callouts?.map(u=>y.createElement(mi,{emphasis:"low",key:u.key,skin:u.style??"accent"},u.text)))),y.createElement(Re,{className:"quantity-prices",justifyContent:"space-between"},t!=="none"&&y.createElement(Zfe,{choice:e,locale:r,fractionDigits:i,currency:n}),a&&y.createElement(Re,{alignItems:"center"},y.createElement(mi,{border:"none",emphasis:"low"},l("sample"))),o&&y.createElement(Re,{alignItems:"baseline"},y.createElement(Kfe,{culture:r,currency:n,minimumFractionDigits:i,savingsFormat:c??"percent",savingsTotal:e.savingsTotal,savingsPercent:e.savingsPercent,onSale:s}))))))};jn.div` 264 margin-bottom: var(--swan-spacing-standard-4); 265 266 .swan-selection-set { 267 gap: 16px; 268 container-type: inline-size; 269 container-name: productOption; 270 } 271`;const Vk=({option:e,locale:t,currency:r,fractionDigits:n,onChanged:i,onShowAllQuantities:a,showIncompatibleChoices:o,savingsFormat:s,priceDisplayMode:c,hasSampleQuantity:l})=>
271{const[u,d]=pe(!1),p=Sr(),[g,m]=pe(e.selectedKey),{i18n:v}=Mn();Ee(()=>{m(e.selectedKey)},[e.selectedKey]);const h=(T,k)=>{i({choiceKey:T})},P=5,x=e.choices.length<=P;return y.createElement(y.Fragment,null,y.createElement(Ci,{titleId:p}),y.createElement($i,{style:{flexWrap:"wrap"},variant:"single-select",selectedValue:g,onSelectedValueChange:h,"aria-labelledby":p},e.choices.filter(T=>o||T.isCompatible).map((T,k)=>{const M=l&&k===0,$=!M&&s&&s!=="hidden",O=(T.totalDiscountedPrice??0)<(T.totalListPrice??0);if(u||k<=P-1||e.selectedKey===T.key)return y.createElement(hi,{key:`choice_${T.key}`,value:T.key,disabled:!T.isCompatible,id:e.key+T.key},y.createElement(vi,{style:{wordBreak:"initial"},...T.additionalProps??{}},y.createElement(Xfe,{choice:T,priceDisplayMode:c,locale:t,currency:r,fractionDigits:n,isSampleQuantity:M,quantitySavingsIsVisible:$,onSale:O,savingsFormat:s})))})),!u&&!x&&y.createElement(Re,{justifyContent:"center"},y.createElement(It,{render:T=>y.createElement(Dt,{skin:"link",className:T.className,onClick:()=>{a&&a(),d(!0)}},T.children)},v("seeMoreQuantities"))))};function Jfe(e){switch(e){case"wide":return Vk;default:return Vk}}const ege=e=>{const t=i=>{e.onChanged(i)},r=Jfe(e.skin??"wide"),n={...e,onChanged:t};return y.createElement(r,{...n})},jk=({descriptionMarkdown:e})=>y.createElement(y.Fragment,null,e&&y.createElement(we,{fontSize:"small",textColor:"subtle",px:"3"},e)),tge=({optionKey:e,choice:t,isOptionDisabled:r})=>{const{i18n:n}=Mn(),{isLoading:i,isConstrained:a,inventoryCount:o}=Xb(e,t.key),[s,c]=pe(!1),[l,u]=pe(t.callouts?.[0]);return Ee(()=>{i||(o===0||a?(c(!0),u({key:"OutOfStock",text:n("outOfStockCallout")})):s&&(c(!1),u(t.callouts?.[0])))},[i,a,o]),y.createElement(hi,{value:t.key,disabled:r},y.createElement(vi,{className:"po-card-selection-set-label",px:"0",pt:"0",pb:"3",backgroundColor:s?"strong":void 0},y.createElement(ct,{className:"po-callout-container"},"\xA0",l&&y.createElement(mi,{className:"po-callout",key:l.key,skin:l.style??"accent",emphasis:"low"},l.text)),y.createElement(ct,{className:"po-content"},y.createElement(we,{fontSize:"standard",textColor:"standard",pt:"2",px:"3"},t.name),y.createElement(jk,{descriptionMarkdown:t.description})),y.createElement(ct,{className:"po-price"},y.createElement(xm,{as:"div",fontSize:"small",textColor:"subtle",px:"3"},r?y.createElement(y.Fragment,null):y.createElement(pk,{option:e,optionValue:t.key,completedSelections:t.selections})))))},rge=({optionKey:e,choice:t,isOptionDisabled:r})=>{const{i18n:n}=Mn(),{isLoading:i,isConstrained:a,inventoryCount:o}=Xb(e,t.key),[s,c]=pe(!1),[l,u]=pe(t.callouts?.[0]);return Ee(()=>{i||(o===0||a?(c(!0),u({key:"OutOfStock",text:n("outOfStockCallout")})):s&&(c(!1),u(t.callouts?.[0])))},[i,a,o]),y.createElement(hi,{value:t.key,disabled:r},y.createElement(vi,{className:"po-card-selection-set-label",px:"0",py:"0",backgroundColor:s?"strong":void 0},y.createElement(ct,{className:"po-card-full-bleed",pb:"3"},l&&y.createElement(mi,{className:"po-callout",key:l.key,skin:l.style??"accent",emphasis:"low"},l.text),y.createElement(ct,{className:"po-content"},y.createElement(Im,{ratio:1},y.createElement("img",{className:"po-card-full-bleed-image",src:t.image,alt:""})),y.createElement(we,{fontSize:"standard",textColor:"standard",pt:"2",px:"3"},t.name),t.description?y.createElement(jk,{descriptionMarkdown:t.description}):y.createElement(y.Fragment,null)),y.createElement(ct,{className:"po-price"},y.createElement(xm,{as:"div",fontSize:"small",textColor:"subtle",px:"3"},r?y.createElement(y.Fragment,null):y.createElement(pk,{option:e,optionValue:t.key,completedSelections:t.selections}))))))},nge=e=>{switch(e){case!1:return tge;default:return rge}},ige=jn.div` 272 .po-tiles-selection-set { 273 display: flex; 274 flex-wrap: wrap; 275 --grid-gap: var(--swan-sem-space-4); 276 row-gap: 0px; 277 column-gap: var(--grid-gap); 278 container-type: inline-size; 279 } 280 281 @container (min-width: 260px) { 282 .po-tiles-selection-set .po-card-input { 283 --grid-columns: 2; 284 --column-gaps: var(--grid-gap); 285 } 286 } 287 288 .po-card-selection-set-label { 289 border: var(--swan-sem-border-width-standard) solid var(--swan-sem-color-border-action); 290 box-shadow: 0 0 0; 291 } 292 293 .po-tiles-selection-set .po-card-input { 294 --grid-columns: 1; 295 --column-gaps: 0px; 296 flex: 0 1 calc((100% - var(--column-gaps)) / var(--grid-columns)); 297 } 298 299 @container (min-width: 343px) { 300 .po-tiles-selection-set .po-card-input { 301 --grid-columns: 2; 302 --column-gaps: var(--grid-gap); 303 } 304 } 305 306 @container (min-width: 534px) { 307 .po-tiles-selection-set .po-card-input { 308 --grid-columns: 3; 309 --column-gaps: calc(var(--grid-gap) * 2); 310 } 311 } 312 313 @container (min-width: 720px) { 314 .po-tiles-selection-set .po-card-input { 315 --grid-columns: 4; 316 --column-gaps: calc(var(--grid-gap) * 3); 317 max-width: 170px; 318 } 319 } 320 321 .po-card-full-bleed { 322 display: flex; 323 flex-grow: 1; 324 325 border-radius: var(--swan-sem-border-radius-action); 326 flex-direction: column; 327 align-content: space-between; 328 } 329 330 .po-callout-container { 331 // Reserve space for callout 332 // total height = top spacing + height of callout 333 height: calc( 334 var(--swan-sem-space-3) + var(--swan-sem-font-size-xsmall) * 335 var(--swan-base-font-line-height-500) 336 ); 337 } 338 339 .po-callout { 340 position: absolute; 341 z-index: calc(var(--swan-sem-z-index-raised) + 1); 342 top: var(--swan-sem-space-3); 343 left: var(--swan-sem-space-3); 344 } 345 346 .po-content { 347 flex-grow: 1; 348 } 349 350 .po-price { 351 min-height: 1em;
352 align-self: flex-end; 353 width: 100%; 354 } 355 356 .po-card-full-bleed-image { 357 height: 100%; 358 width: 100%; 359 border-radius: var(--swan-sem-border-radius-action) var(--swan-sem-border-radius-action) 0 0; 360 } 361 362 .po-card-input.po-disabled .po-card-full-bleed-image { 363 opacity: 25%; 364 } 365 366 .po-card-input.po-out-of-stock .po-card-full-bleed-image { 367 opacity: 25%; 368 } 369 370 .po-card-input.po-disabled .po-card-selection-set-label { 371 border: var(--sem-border-width-standard, 1px) dashed 372 var(--sem-color-border-action, rgba(0, 0, 0, 0.17)); 373 } 374`,age=({option:e,showIncompatibleChoices:t,hideImages:r,onChanged:n})=>{const i=(s,c)=>{e.selectedKey&&delete s[e.selectedKey];for(const[l,u]of Object.entries(s))if(u&&l!==e.selectedKey){n({choiceKey:l});break}},a=Sr(),o={};for(const s of e.choices)o[s.key]=s.key===e.selectedKey;return y.createElement(ige,null,y.createElement(Ci,{titleId:a}),y.createElement($i,{variant:"multi-select",className:"po-tiles-selection-set",selectedValues:o,onSelectedValuesChange:i,"aria-labelledby":a,role:"radiogroup","aria-required":e.isRequired?"true":void 0},e.choices.filter(s=>t||s.isCompatible).map(s=>{const c=!s.isCompatible&&!s.violations?.length,l=c?"po-disabled":"",u=s.isOutOfStock?"po-out-of-stock":"",d=nge(!!s.image);return y.createElement("div",{className:`po-card-input ${l} ${u}`},y.createElement(d,{key:`${e.key}_${s.key}`,optionKey:e.key,choice:s,isOptionDisabled:c}))})))};function oge(e){switch(e){case"standard":default:return age}}const sge=e=>{const t=i=>{e.onChanged(i)},r=oge(e.skin??"standard"),n={...e,onChanged:t};return y.createElement(r,{...n})};var ew=new Map,Xf=new WeakMap,Hk=0,cge=void 0;function lge(e){return e?(Xf.has(e)||(Hk+=1,Xf.set(e,Hk.toString())),Xf.get(e)):"0"}function uge(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?lge(e.root):e[t]}`).toString()}function dge(e){const t=uge(e);let r=ew.get(t);if(!r){const n=new Map;let i;const a=new IntersectionObserver(o=>{o.forEach(s=>{var c;const l=s.isIntersecting&&i.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=l),(c=n.get(s.target))==null||c.forEach(u=>{u(l,s)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:n},ew.set(t,r)}return r}function pge(e,t,r={},n=cge){if(typeof window.IntersectionObserver>"u"&&n!==void 0){const c=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:i,observer:a,elements:o}=dge(r),s=o.get(e)||[];return o.has(e)||o.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(o.delete(e),a.unobserve(e)),o.size===0&&(a.disconnect(),ew.delete(i))}}function fge({threshold:e,delay:t,trackVisibility:r,rootMargin:n,root:i,triggerOnce:a,skip:o,initialInView:s,fallbackInView:c,onChange:l}={}){var u;const[d,p]=Lt.useState(null),g=Lt.useRef(l),[m,v]=Lt.useState({inView:!!s,entry:void 0});g.current=l,Lt.useEffect(()=>{if(o||!d)return;let T;return T=pge(d,(k,M)=>{v({inView:k,entry:M}),g.current&&g.current(k,M),M.isIntersecting&&a&&T&&(T(),T=void 0)},{root:i,rootMargin:n,threshold:e,trackVisibility:r,delay:t},c),()=>{T&&T()}},[Array.isArray(e)?e.toString():e,d,i,n,a,o,r,c,t]);const h=(u=m.entry)==null?void 0:u.target,P=Lt.useRef(void 0);!d&&h&&!a&&!o&&P.current!==h&&(P.current=h,v({inView:!!s,entry:void 0}));const x=[p,m.inView,m.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}const gge=({tenant:e,currency:t,fractionDigits:r,locale:n,showIncompatibleChoices:i=!1,onChanged:a,onShowAllQuantities:o,hasSampleQuantity:s})=>{const{productOption:c,skin:l,priceDisplayMode:u,hideImages:d,hideDescriptions:p,savingsFormat:g}=Mu(),m=Et(P=>{a?.({optionKey:c.key,isValid:P.isValid??!0,...P})},[c.key,a]),v={showIncompatibleChoices:i,tenant:e,currency:t,fractionDigits:r,locale:n,priceDisplayMode:u,hideImages:d,hideDescriptions:p,skin:l,savingsFormat:g},h=$o(c);return y.createElement(ct,null,h&&c.style==="buttons"&&y.createElement(Oue,{...v,option:c,onChanged:m}),h&&c.style==="dropdown"&&y.createElement(zue,{...v,option:c,onChanged:m}),h&&c.style==="color-swatch"&&y.createElement(Hue,{...v,option:c,onChanged:m}),h&&c.style==="color-swatch-super"&&y.createElement(Ufe,{...v,option:c,onChanged:m}),h&&c.style==="quantity-list"&&y.createElement(ege,{...v,option:c,onChanged:m,onShowAllQuantities:o,hasSampleQuantity:s}),h&&c.style==="tiles"&&y.createElement(sge,{...v,option:c,onChanged:m}),c.style==="quantity-combobox"&&y.createElement(Sfe,{...v,option:c,onChanged:m,hasSampleQuantity:s}),!h&&c.style==="textbox"&&y.createElement(Wfe,{...v,option:c,onChanged:m,isDisabled:!1}))},mge=e=>{const{productOption:t,skin:r="wide",hideImages:n,hideDescriptions:i,savingsFormat:a,debug:o,showFormErrors:s,priceDisplayMode:c,...l}=e,[u,d]=fge({threshold:1,triggerOnce:!0}),p=vt(null),g=$o(t)&&t.previouslyUnselectedOptions&&t.previouslyUnselectedOptions?.optionCausingUnselect?.attributeKey===t.key&&t.previouslyUnselectedOptions?.optionsUnselected.length>0;return Ee(()=>{!d&&g&&p.current?.scrollIntoView({behavior:"smooth",block:"start"})},[g,d,p]),y.createElement(Bce,{productOption:t,skin:r,priceDisplayMode:c,hideImages:n,hideDescriptions:i,savingsFormat:a,showFormErrors:s},y.createElement("div",{ref:p},g?y.createElement(Ife,{key:`option-notif-${t.key}`,notificationOptions:t.previouslyUnselectedOptions,ref:u}):y.createElement("div",{ref:u})),y.createElement(gge,{...l}),o&&y.createElement(Cfe,null))},hge=({tenant:e,sectionHeading:t,productOptions:r,currency:n,locale:i,fractionDigits:a,skin:o,priceDisplayMode:s="differential-unit",showIncompatibleChoices:c=!1,hideImages:l=!1,hideDescriptions:u=!1,debug:d=!1,show
374FormErrors:p=!1,onChangeSelections:g,onValidation:m})=>{const[v,h]=pe(()=>r.every(x=>!x.isRequired||x.isRequired&&!!x.selectedKey));Ee(()=>{m&&m({isValid:v})},[v]);const P=Et(x=>{const k={...r.reduce((O,H)=>(H.selectedKey&&(O[H.key]=H.selectedKey),O),{})},{optionKey:M,choiceKey:$}=x;M&&$&&(k[M]=$),h(r.every(O=>!O.isRequired||O.isRequired&&!!k[O.key])),g&&g(k)},[r,g]);return y.createElement("section",null,t&&y.createElement(yn,null,t),r.map((x,T)=>y.createElement(ct,{key:x.key,mb:T<r.length-1?5:void 0},y.createElement(mge,{showIncompatibleChoices:c,key:x.key,productOption:x,tenant:e,currency:n,locale:i,skin:o,priceDisplayMode:s,hideImages:l,hideDescriptions:u,fractionDigits:a,showFormErrors:p,onChanged:P,debug:d}))))},Gk=y.createContext(void 0);function tw(){const e=y.useContext(Gk);if(!e)throw new Error("useConfiguratorContext must be used within a ConfiguratorContextProvider");return e}function vge(e,t,r){return[...e.attributes.map(n=>({key:n.key,name:n.name,style:"buttons",selectedKey:n.options.filter(i=>i.isSelected)[0]?.key,choices:yge(n.options),isRequired:r})),{key:"Quantity",name:t.quantity,style:"dropdown",selectedKey:e.quantities.selected.toString(),choices:e.quantities.quantities.map((n,i)=>{const a=e.quantities.quantities[0].unitListPrice*n.quantity,o=n.totalDiscountedPrice,s=a-o,c=Math.round(s/a*100);return{key:n.quantity.toString(),name:n.quantity.toString(),isCompatible:!0,totalListPrice:n.totalListPrice,totalDiscountedPrice:n.totalDiscountedPrice,unitListPrice:n.unitListPrice,unitDiscountedPrice:n.unitDiscountedPrice,differentialListPrice:n.totalListPrice,differentialDiscountPrice:n.totalDiscountedPrice,differentialUnitListPrice:n.unitListPrice,differentialUnitDiscountPrice:n.unitDiscountedPrice,savingsPercent:i>0?c:0,savingsTotal:i>0?s:0}}),isRequired:!1}]}function yge(e){return e.map(t=>({key:t.key,name:t.name,description:t.description,image:t.images[0],callouts:t.badges?.map(r=>({key:r.id,text:r.text})),isCompatible:t.isCompatible,incompatibleReasons:t.incompatibleReasons,differentialListPrice:t.differentialListPrice,differentialDiscountPrice:t.differentialDiscountPrice,differentialUnitListPrice:t.differentialUnitListPrice,differentialUnitDiscountPrice:t.differentialUnitDiscountPrice}))}function bge(e,t){const r=e.substring(0,2).toLowerCase(),n=Qk[`${e.toLowerCase()}`]??Qk[`${r}`];if(!n)throw new Error(`Simple Configurator: Translations not found for culture ${e}`);return{...n,...t??{}}}const Wk={saveChanges:"Update cart",revertChanges:"Keep original",quantity:"Quantity",selectPreview:"Select a preview",front:"Front",back:"Back",open:"Open",close:"Close",previewAlt:"Document Preview",loadingError:"Sorry, our system experienced a temporary glitch. Please give us just a minute and then try again."},Qk={en:Wk,es:{saveChanges:"Actualizar cesta",revertChanges:"Mantener original",quantity:"Cantidad",selectPreview:"Selecciona una vista previa",front:"Anverso",back:"Reverso",open:"Abierto",close:"Cerrar",previewAlt:"Vista previa del documento",loadingError:"Lo sentimos, se ha producido un problema t\xE9cnico temporal. Int\xE9ntalo de nuevo en unos minutos."},it:{saveChanges:"Aggiorna carrello",revertChanges:"Mantieni l'originale",quantity:"Quantit\xE0",selectPreview:"Scegli un\u2019anteprima",front:"Lato anteriore",back:"Indietro",open:"Apri",close:"Chiudi",previewAlt:"Anteprima documento",loadingError:"Siamo spiacenti, si \xE8 verificato un problema temporaneo nel nostro sistema. Riprova tra un minuto."},pt:{saveChanges:"Atualizar cesto",revertChanges:"Manter original",quantity:"Quantidade",selectPreview:"Selecione uma pr\xE9-visualiza\xE7\xE3o",front:"Frente",back:"Verso",open:"Abrir",close:"Fechar",previewAlt:"Pr\xE9-visualiza\xE7\xE3o do documento",loadingError:"Pedimos desculpa. O nosso sistema apresenta uma falha tempor\xE1ria. Tente novamente dentro de um minuto."},"en-GB":Wk,da:{saveChanges:"Opdater vogn",revertChanges:"Behold original",quantity:"Antal",selectPreview:"V\xE6lg en forh\xE5ndsvisning",front:"Forside",back:"Tilbage",open:"\xC5bn",close:"Luk",previewAlt:"Se dokument",loadingError:"Beklager, der er sket en midlertidig fejl i vores system. Vent et \xF8jeblik, og pr\xF8v s\xE5 igen."},de:{saveChanges:"Warenkorb aktualisieren",revertChanges:"Beim Original bleiben",quantity:"Menge",selectPreview:"W\xE4hlen Sie eine Vorschau",front:"Vorderseite",back:"Zur\xFCck",open:"Ge\xF6ffnet",close:"Schlie\xDFen",previewAlt:"Dokumentvorschau",loadingError:"Wir haben vor\xFCbergehende technische Probleme. Bitte entschuldigen Sie etwaige Unannehmlichkeiten. Wir arbeiten an der Behebung. Versuchen Sie es bitte sp\xE4ter noch einmal."},fi:{saveChanges:"P\xE4ivit\xE4 ostoskori",revertChanges:"S\xE4ilyt\xE4 alkuper\xE4inen",quantity:"M\xE4\xE4r\xE4",selectPreview:"Valitse esikatselu",front:"Etupuoli",back:"K\xE4\xE4nt\xF6puoli",open:"Avaa",close:"Sulje",previewAlt:"Asiakirjan esikatselu",loadingError:"Valitettavasti j\xE4rjestelm\xE4ss\xE4mme ilmeni tilap\xE4inen h\xE4iri\xF6. Ole hyv\xE4 ja odota minuutti, ja yrit\xE4 sitten uudestaan."},fr:{saveChanges:"Actualiser le panier",revertChanges:"Conserver l'original",quantity:"Quantit\xE9",selectPreview:"Choisissez un aper\xE7u",front:"Recto",back:"Retour",open:"Ouvert",close:"Fermer",previewAlt:"Aper\xE7u du document",loadingError:"D\xE9sol\xE9, un probl\xE8me temporaire est survenu dans notre syst\xE8me. Veuillez attendre un instant et r\xE9essayer."},nb:{saveChanges:"Oppdater handlevogn",revertChanges:"Behold original",quantity:"Ant.",selectPreview:"Velg en forh\xE5ndsv
374isning",front:"Forside",back:"Bakside",open:"\xC5pne",close:"Lukk",previewAlt:"Forh\xE5ndsvisning av dokument",loadingError:"Beklager, men det har oppst\xE5tt en midlertidig feil i systemet. Vent et par minutter og pr\xF8v igjen."},nl:{saveChanges:"Winkelwagentje bijwerken",revertChanges:"Origineel behouden",quantity:"Aantal",selectPreview:"Selecteer een voorbeeld",front:"Voorkant",back:"Achterkant",open:"Open",close:"Sluiten",previewAlt:"Voorbeeld document",loadingError:"Sorry, ons systeem werkt even niet mee. Probeer het over een minuutje nog een keer."},sv:{saveChanges:"Uppdatera kundvagn",revertChanges:"Beh\xE5ll original",quantity:"Antal",selectPreview:"V\xE4lj en f\xF6rhandsvisning",front:"Framsida",back:"Baksida",open:"\xD6ppet",close:"St\xE4ng",previewAlt:"F\xF6rhandsgranska dokument",loadingError:"Vi beklagar, ett tillf\xE4lligt fel tycks ha uppst\xE5tt i v\xE5rt system. Vi ber dig att v\xE4nta n\xE5gon minut och sedan f\xF6rs\xF6ka igen."}};function wge(e){for(const t of Object.values(e))for(const r of Object.values(t.options))if(r.differentialDiscountPrice!==0)return!1;return!0}function Tge(e){if(e?.price?.breakdown){const t={};for(const r of e.price.breakdown){const n=t[r.name]??(t[r.name]={});n[r.value]={listPrice:r.listPrice,discountPrice:r.discountPrice,percentageOff:r.percentageOff,amountSaved:r.amountSaved}}return t}else return{}}function Ege(e,t){const{fractionDigits:r,currency:n}=t.price,{includeVat:i=!1,culture:a}=e,o=wge(t.attributes);return{quantities:(t.quantities?.quantities??[]).map(({quantity:s,totalListPrice:c,totalDiscountedPrice:l,unitListPrice:u,unitDiscountedPrice:d,badges:p})=>({quantity:s,culture:a,currency:n,listPrice:c,discountPrice:l,unitListPrice:u,unitDiscountPrice:d,badges:p,vatInc:i,minimumFractionDigits:r,hideVatMessage:!1})),culture:a,currency:n,vatInc:i,minimumFractionDigits:r,priceBreakdown:Tge(t),pricesBreakdownArray:t.price.breakdown,allOptionsAreSamePrice:o,hideVatMessage:!1}}const Sge=({children:e,allOptionsRequired:t,onPriceUpdated:r,uiLabelOverrides:n,showFormErrors:i,onValidation:a})=>{const{data:o,updating:s,context:c}=y.useContext(ur.WranglerDataContext),{setSelections:l,setSelectedQuantity:u}=ur.useManagedWranglerSelectionsContext(),d=Ye(()=>bge(c.culture,n),[c.culture,n]),p=Et(T=>{if(T.Quantity){const k=parseInt(T.Quantity,10);u(k),delete T.Quantity}l(T)},[l]),g=Et(T=>{u(T)},[u]),[m,v]=pe(void 0),[h,P]=pe([]);Ee(()=>{if(o&&c){P(vge(o,d,t));const T=s?void 0:o.price;v(T?Ege(c,o):void 0)}},[o,s,c,t]);const x=Ye(()=>{if(o){const T=o.selections.mpvId,k=o.productName,M=o.selections.selectedAttributes,$=o.selections.document,O=o.selections.quantity;return{isLoading:s,priceInfo:m,mpvId:T,productName:k,productOptions:h,onPriceUpdated:r,selectedQuantity:O,setSelectedQuantity:g,uiLabels:d,selections:M,setSelections:p,document:$,culture:c.culture,merchant:c.merchant,currency:o.price.currency,fractionDigits:o.price.fractionDigits,showFormErrors:i,onValidation:a}}else return},[m,s,o,r,g,h,d,i,a]);return h.length===0?null:y.createElement(Gk.Provider,{value:x},e)},Pge=Lt.createContext({debugProductOptionsUi:!1,debugDisabledOptions:!1,debugIncompatibleOptions:!1});function Cge(){return xt(Pge)}const Zk=({hideOptionImages:e,priceDisplayMode:t,hideOptionDescriptions:r,showIncompatibleChoices:n})=>{const{debugProductOptionsUi:i}=Cge(),{productOptions:a,setSelections:o,selections:s,culture:c,merchant:l,currency:u,fractionDigits:d,showFormErrors:p,onValidation:g}=tw(),m=Et(h=>{const P=Object.assign({},s??{},h);o(P)},[s,o]);return y.createElement(y.Fragment,null,!!u&&!!d&&y.createElement(ct,{mb:"between-subsections"},y.createElement(yce,{locale:c},y.createElement(hge,{debug:i,hideImages:e,hideDescriptions:r,showIncompatibleChoices:n,skin:"tight",tenant:l,onChangeSelections:m,productOptions:a,priceDisplayMode:t,currency:u,locale:c,fractionDigits:d,showFormErrors:p,onValidation:g}))))},Kk=()=>{const{onPriceUpdated:e,selectedQuantity:t,priceInfo:r,uiLabels:n,isLoading:i}=tw(),{data:a}=ur.useWranglerDataContext(),[o,s]=pe(void 0),[c,l]=pe(!1);return y.useEffect(()=>{r?(e?.(r),s(r.quantities?.find(u=>u.quantity===t))):s(void 0)},[r]),y.useEffect(()=>{Object.keys(a?.price||{}).length===0&&i===!1?l(!0):l(!1)},[a?.price,i]),y.createElement(Re,{alignItems:"center",flexDirection:"row",justifyContent:"space-between",style:{height:c?void 0:"50px",width:"100%"}},c?y.createElement(es,{mb:"4",skin:"error"},n.loadingError,y.createElement(El,{accessibleText:n.close})):y.createElement(we,null,o?y.createElement("output",null,y.createElement(IE,{placeHolderText:"...",pricingInfo:{currency:o.currency??"USD",culture:o.culture??"en-US",quantity:o.quantity??1,listPrice:o.listPrice??0,discountPrice:o.discountPrice??0,vatInc:o.vatInc??!1,minimumFractionDigits:o.minimumFractionDigits??2,hideVatMessage:o.hideVatMessage??!1}})):y.createElement(Fa,{accessibleText:"...",layout:"horizontal"})))},Ige=ob.div({marginBottom:0,marginTop:0,paddingBottom:0,paddingTop:0,display:"block",position:"sticky",bottom:0,zIndex:10,boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.10)"}),xge=ob.div({display:"flex",flexWrap:"wrap",marginBottom:0,marginTop:0,paddingLeft:0,position:"relative",zIndex:1}),_ge=({responseButtons:e,...t})=>y.createElement(vn,{gutter:"tight"},y.createElement(xge,null,y.createElement(_e,{span:12},y.createElement(Zk,{...t}))),y.createElement(Ige,null,y.createElement(_e,{span:12,bgc:"standard",paddingTop:"3",mb:0,pb:"3",paddingX:"4"},y.createElement(Kk,null),y.createElement(e,null)))),rw="MicroAgent should not be used in Node Environment",kge=(e,t)=>
374{let r=null,n=[],i=typeof window<"u";const a=async()=>{try{const c=await t();if(c===null){i=!1,n.forEach(({method:l,reject:u})=>{u(new Error(rw))}),n=[];return}r=new c.MicroAgent(...e);for(const{method:l,args:u,resolve:d,reject:p}of n)try{const g=r[l](...u);d(g)}catch(g){p(g)}n=[]}catch(c){for(const{reject:l}of n)l(c);n=[]}},o=(c,l)=>new Promise((u,d)=>{n.push({method:c,args:l,resolve:u,reject:d})});i&&a();let s=typeof window>"u";return{proxyMethod(c){return(...l)=>(s&&(console.warn(rw),s=!1),r?Promise.resolve(r[c](...l)):i?o(c,l):Promise.reject(new Error(rw)))}}},Mge=()=>"https://www.vistaprint.com/assets/new-relic-microagent",Oge=e=>`https://www.${e}/assets/new-relic-microagent`,Age=e=>{const t=e.match(/vistaprint\.[a-z]{2,3}(\.[a-z]{2,3})?/);return t&&t[0]?Oge(t[0]):Mge()},Yk="@vp/newrelic-browser-micro-agent/agent",$ge=()=>{if(window._vpMicroAgentModule)return window._vpMicroAgentModule;if(window.System?.resolve(Yk))return window._vpMicroAgentModule=window.System.import(Yk),window._vpMicroAgentModule;const e=Age(window.location.hostname);return window._vpMicroAgentModule=Rge(e).catch(t=>{throw console.error("MicroAgent failed to load",{url:e,error:t.message}),window._vpMicroAgentModule=void 0,t}),window._vpMicroAgentModule};function Rge(e){const t=window.__vpMicroAgentRegister;if(t?.module)return Promise.resolve(t.module);if(t?.pending)return t.pending;let r,n;const i=new Promise((o,s)=>{r=o,n=s});window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=i);const a=document.createElement("script");return a.type="module",a.src=e,a.onerror=(o,s)=>{console.error("Error loading module script:",o,s),window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=void 0),n(new Error(`Failed to load module script: ${e}`))},a.onload=()=>{const o=window.__vpMicroAgentRegister;o?.module?(o.pending=void 0,r(o.module)):(o&&(o.pending=void 0),n(new Error(`Module ${e} loaded but did not register itself.`))),a.remove()},document.head.appendChild(a),i}typeof window<"u"&&(!window.__vpMicroAgentRegister||!window.__vpMicroAgentRegister.version||window.__vpMicroAgentRegister.version<1)&&(window.__vpMicroAgentRegister=Object.assign(function(e,t){window.__vpMicroAgentRegister.module=t},{version:1,import:$ge,module:void 0,pending:void 0}));const Nge=(...e)=>{const t=async()=>{if(typeof window<"u")try{const n=window.__vpMicroAgentRegister?.import;if(!n)throw new Error("MicroAgent import helper not found on window.__vpMicroAgentRegister");return await n()}catch(n){return console.error("MicroAgent failed to load",n),null}else return null},r=kge(e,()=>t());return new Proxy({},{get:(n,i)=>{const a=r.proxyMethod(i);if(a)return(...o)=>a(...o).catch(()=>{})}})},Dge={init:{distributed_tracing:{enabled:!0,cors_use_newrelic_header:!0,cors_use_tracecontext_headers:!0,allowed_origins:["https://www.vistaprint.com"]},privacy:{cookies_enabled:!0},ajax:{deny_list:["bam.nr-data.net"]}},loader_config:{accountID:"2429158",trustKey:"1106546",agentID:"1120320596",licenseKey:"NRBR-3dc2673d64039888e8b",applicationID:"1120320596"},info:{beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"NRBR-3dc2673d64039888e8b",applicationID:"1120320596",sa:1}};async function Lge(){if(typeof window<"u"){const e=Nge(Dge,"Single Configurator With No Preview");return e.start(void 0),e}else return null}let Xk;Lge().then(e=>Xk=e);function Jk(){return Xk}let Uge=class{static warn(t,r,n){this.addPageAction(t,"WARN",{...n??{},error:r})}static info(t,r){this.addPageAction(t,"INFO",r)}static error(t,r,n){const i=Jk();let a;r&&(a=structuredClone(r),a.message=`${t} - ${a.message}`),i?i?.noticeError(a??t,n):console.error(t,a,n)}static addPageAction(t,r,n){const i=Jk(),a={level:r,...n??{}};i?i.addPageAction(t,a):console.log(t,a)}};const Fge=({uiLabelOverrides:e,hideOptionImages:t,priceDisplayMode:r="differential-unit",hideOptionDescriptions:n,showIncompatibleChoices:i,onCancel:a,onSaveSelections:o,onPriceUpdated:s,onErrorClear:c,renderingOverrides:l,allOptionsRequired:u,showFormErrors:d,onValidation:p,loader:g})=>{const m=Ye(()=>()=>y.createElement(Bge,{onSaveSelections:o,onCancel:a,responseButtons:l?.responseButtons}),[l]),v=Ye(()=>l?.configuratorLayout?l.configuratorLayout:_ge,[l?.configuratorLayout]),h=y.useContext(ur.WranglerDataContext),P=y.useContext(ur.ManagedWranglerSelectionsContext),[x,T]=y.useState([]);return h?.exceptionMessages?.length>0&&JSON.stringify(h.exceptionMessages)!==JSON.stringify(x)&&(Uge.error("Received errors from wrangler call",void 0,{errorMessages:h.exceptionMessages}),T(h.exceptionMessages)),x.length>0&&h?.exceptionMessages?.length===0&&(c?.(),T([])),!h?.data||!P?g||y.createElement(Fa,{accessibleText:"..."}):y.createElement(Sge,{allOptionsRequired:u,onPriceUpdated:s,uiLabelOverrides:e,showFormErrors:d,onValidation:p},y.createElement(v,{priceDisplayMode:r,responseButtons:m,hideOptionImages:t,hideOptionDescriptions:n,showIncompatibleChoices:i}))},Bge=({onSaveSelections:e,onCancel:t,responseButtons:r})=>{const n=Ye(()=>r??h7,[r]),{priceInfo:i,mpvId:a,productName:o,uiLabels:s,selectedQuantity:c,isLoading:l,selections:u,document:d}=tw(),p=i?.quantities?.find(m=>m.quantity===c),g={mpvId:a,productName:o,price:p};return y.createElement(n,{onSaveSelections:()=>!l&&u&&e(u,c,d,g),onCancel:t,saveChangesLabel:s.saveChanges,revertChangesLabel:s.revertChanges,selectPreviewLabel:s.selectPreview})},eM=(e,t)=>{var r;!((r=window.tracking)===null||r===void 0)&&r.track?window.tracking.track(e,t):window.addEventListener("trackingReady",()=>{var n;!((n=window.tracking)===null||n===void 0)&&n.track&&window.tracking.track(e,t)})},qge="Attribute Selected",tM=e=>{eM(qge,e)},rM="Product Options Selected",zge=e=>{const r=e.productOptions.map(({key:n,value:i,isUpdated:a,isVisible:o,update:s})=>({key:n,value:i,isUpdated:a,isVisible:o,update:a?s:"nochange"}));eM(rM,{category:e.category,core_product_id:e.core_product_id,docTrans:e.docTrans,label:e.label,list_price:e.list_price,name:e.name,pageDept:e.pageDept,pageName:e.pageName,pageSection:e.pageSection,pageStage:e.pageStage,price:e.price,product_id:e.product_id,productOptions:r,productUpdate:e.productUpdate,sales_quantity:e.sales_quantity,variant:e.variant,quantity:1})};var Yc=TypeError,Vge={},jge=Object.freeze({__proto__:null,default:Vge}),Hge=Ph(jge),nw=typeof Map=="function"&&Map.prototype,iw=Object.getOwnPropertyDescriptor&&nw?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jf=nw&&iw&&typeof iw.get=="function"?iw.get:null,nM=nw&&Map.prototype.forEach,aw=typeof Set=="function"&&Set.prototype,ow=Object.getOwnPropertyDescriptor&&aw?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eg=aw&&ow&&typeof ow.get=="function"?ow.get:null,iM=aw&&Set.prototype.forEach,Gge=typeof WeakMap=="function"&&WeakMap.prototype,Vu=Gge?WeakMap.prototype.has:null,Wge=typeof WeakSet=="function"&&WeakSet.prototype,ju=Wge?WeakSet.prototype.has:null,Qge=typeof WeakRef=="function"&&WeakRef.prototype,aM=Qge?WeakRef.prototype.deref:null,Zge=Boolean.prototype.valueOf,
vendor: 10,399 bytes, lines 374-377
374Kge=Object.prototype.toString,Yge=Function.prototype.toString,Xge=String.prototype.match,sw=String.prototype.slice,Uo=String.prototype.replace,Jge=String.prototype.toUpperCase,oM=String.prototype.toLowerCase,sM=RegExp.prototype.test,cM=Array.prototype.concat,_a=Array.prototype.join,eme=Array.prototype.slice,lM=Math.floor,cw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,lw=Object.getOwnPropertySymbols,uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Hu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Xc||!0)?Symbol.toStringTag:null,uM=Object.prototype.propertyIsEnumerable,dM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function pM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||sM.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-lM(-e):lM(e);if(n!==e){var i=String(n),a=sw.call(t,i.length+1);return Uo.call(i,r,"$&_")+"."+Uo.call(Uo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Uo.call(t,r,"$&_")}var dw=Hge,fM=dw.custom,gM=yM(fM)?fM:null,mM={__proto__:null,double:'"',single:"'"},tme={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},tg=function e(t,r,n,i){var a=r||{};if(ao(a,"quoteStyle")&&!ao(mM,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ao(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=ao(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ao(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ao(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return wM(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?pM(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?pM(t,l):l}var u=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof t=="object")return pw(t)?"[Array]":"[Object]";var d=bme(a,n);if(typeof i>"u")i=[];else if(bM(i,t)>=0)return"[Circular]";function p(B,Q,R){if(Q&&(i=eme.call(i),i.push(Q)),R){var Y={depth:a.depth};return ao(a,"quoteStyle")&&(Y.quoteStyle=a.quoteStyle),e(B,Y,n+1,i)}return e(B,a,n+1,i)}if(typeof t=="function"&&!vM(t)){var g=ume(t),m=rg(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(m.length>0?" { "+_a.call(m,", ")+" }":"")}if(yM(t)){var v=Xc?Uo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):uw.call(t);return typeof t=="object"&&!Xc?Gu(v):v}if(hme(t)){for(var h="<"+oM.call(String(t.nodeName)),P=t.attributes||[],x=0;x<P.length;x++)h+=" "+P[x].name+"="+hM(rme(P[x].value),"double",a);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+oM.call(String(t.nodeName))+">",h}if(pw(t)){if(t.length===0)return"[]";var T=rg(t,p);return d&&!yme(T)?"["+gw(T,d)+"]":"[ "+_a.call(T,", ")+" ]"}if(ime(t)){var k=rg(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!uM.call(t,"cause")?"{ ["+String(t)+"] "+_a.call(cM.call("[cause]: "+p(t.cause),k),", ")+" }":k.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+_a.call(k,", ")+" }"}if(typeof t=="object"&&o){if(gM&&typeof t[gM]=="function"&&dw)return dw(t,{depth:u-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(dme(t)){var M=[];return nM&&nM.call(t,function(B,Q){M.push(p(Q,t,!0)+" => "+p(B,t))}),TM("Map",Jf.call(t),M,d)}if(gme(t)){var $=[];return iM&&iM.call(t,function(B){$.push(p(B,t))}),TM("Set",eg.call(t),$,d)}if(pme(t))return fw("WeakMap");if(mme(t))return fw("WeakSet");if(fme(t))return fw("WeakRef");if(ome(t))return Gu(p(Number(t)));if(cme(t))return Gu(p(cw.call(t)));if(sme(t))return Gu(Zge.call(t));if(ame(t))return Gu(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof bi<"u"&&t===bi)return"{ [object globalThis] }";if(!nme(t)&&!vM(t)){var O=rg(t,p),H=dM?dM(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",W=!H&&Hu&&Object(t)===t&&Hu in t?sw.call(Fo(t),8,-1):J?"Object":"",me=H||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Z=me+(W||J?"["+_a.call(cM.call([],W||[],J||[]),": ")+"] ":"");return O.length===0?Z+"{}":d?Z+"{"+gw(O,d)+"}":Z+"{ "+_a.call(O,", ")+" }"}return String(t)};function hM(e,t,r){var n=r.quoteStyle||t,i=mM[n];return i+e+i}function rme(e){return Uo.call(String(e),/"/g,""")}function Hs(e){return!Hu||!(typeof e=="object"&&(Hu in e||typeof e[Hu]<"u"))}function pw(e){return Fo(e)==="[object Array]"&&Hs(e)}function nme(e){return Fo(e)==="[object Date]"&&Hs(e)}function vM(e){return Fo(e)==="[object RegExp]"&&Hs(e)}function ime(e){return Fo(e)==="[object Error]"&&Hs(e)}function ame(e){return Fo(e)==="[object String]"&&Hs(e)}function ome(e){return Fo(e)==="[object Number]"&&Hs(e)}function sme(e){return Fo(e)==="[object Boolean]"&&Hs(e)}function yM(e){if(Xc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!uw)return!1;try{return uw.call(e),!0}catch{}return!1}function cme(e){if(!e||typeof e!="object"||!cw)return!1;try{return cw.call(e),!0}catch{}return!1}var lme=Object.prototype.hasOwnProperty||function(e){return e in this};function ao(e,t){return lme.call(e,t)}function Fo(e){return Kge.call(e)}function ume(e){if(e.name)return e.name;var t=Xge.call(Yge.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bM(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function dme(e){if(!Jf||!e||typeof e!="object")return!1;try{Jf.call(e);try{eg.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function pme(e){if(!Vu||!e||typeof e!="object")return!1;try{Vu.call(e,Vu);try{ju.call(e,ju)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fme(e){if(!aM||!e||typeof e!="object")return!1;try{return aM.call(e),!0}catch{}return!1}function gme(e){if(!eg||!e||typeof e!="object")return!1;try{eg.call(e);try{Jf.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function mme(e){if(!ju||!e||typeof e!="object")return!1;try{ju.call(e,ju);try{Vu.call(e,Vu)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function hme(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function wM(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return wM(sw.call(e,0,t.maxStringLength),t)+n}var i=tme[t.quoteStyle||"single"];i.lastIndex=0;var a=Uo.call(Uo.call(e,i,"\\$1"),/[\x00-\x1f]/g,vme);return hM(a,"single",t)}function vme(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Jge.call(t.toString(16))}function Gu(e){return"Object("+e+")"}function fw(e){return e+" { ? }"}function TM(e,t,r,n){var i=n?gw(r,n):_a.call(r,", ");return e+" ("+t+") {"+i+"}"}function yme(e){for(var t=0;t<e.length;t++)if(bM(e[t],` 375`)>=0)return!1;return!0}function bme(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=_a.call(Array(e.indent+1)," ");else return null;return{base:r,prev:_a.call(Array(t+1),r)}}function gw(e,t){if(e.length===0)return"";var r=` 376`+t.prev+t.base;return r+_a.call(e,","+r)+` 377`+t.prev}function rg(e,t){var r=pw(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=ao(e,i)?t(e[i],e):""}var a=typeof lw=="function"?lw(e):[],o;if(Xc){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)ao(e,c)&&(r&&String(Number(c))===c&&c<e.length||Xc&&o["$"+c]instanceof Symbol||(sM.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if(typeof lw=="function")for(var l=0;l<a.length;l++)uM.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}var wme=tg,Tme=Yc,ng=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},Eme=function(e,t){if(e){var r=ng(e,t);return r&&r.value}},Sme=function(e,t,r){var n=ng(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Pme=function(e,t){return e?!!ng(e,t):!1},Cme=function(e,t){if(e)return ng(e,t,!0)},Ime=function(){var t,r={assert:function(n){if(!r.has(n))throw new Tme("Side channel does not contain "+wme(n))},delete:function(n){var i=Cme(t,n);return i&&t&&!t.next&&(t=void 0),!!i},get:function(n){return Eme(t,n)},has:function(n){return Pme(t,n)},set:function(n,i){t||(t={next:void 0}),Sme(t,n,i)}};return r},EM=Object,xme=Error,_me=EvalError,kme=RangeError,Mme=ReferenceError,Ome=SyntaxError,Ame=URIError,$me=Math.abs,Rme=Math.floor,Nme=Math.max,Dme=Math.min,Lme=Math.pow,Ume=Math.round,Fme=Number.isNaN||function(t){return t!==t},Bme=Fme,qme=function(t){return Bme(t)||t===0?t:t<0?-1:1},zme=Object.getOwnPropertyDescriptor,ig=zme;if(ig)try{ig([],"length")}catch{ig=null}var SM=ig,ag=Object.defineProperty||!1;if(ag)try{ag({},"a",{value:1})}catch{ag=!1}var PM=ag,Vme=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);
377if(s.value!==i||s.enumerable!==!0)return!1}return!0},CM=typeof Symbol<"u"&&Symbol,jme=Vme,Hme=function(){return typeof CM!="function"||typeof Symbol!="function"||typeof CM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jme()},IM=typeof Reflect<"u"&&Reflect.getPrototypeOf||null,Gme=EM,xM=Gme.getPrototypeOf||null,Wme="Function.prototype.bind called on incompatible ",Qme=Object.prototype.toString,Zme=Math.max,Kme="[object Function]",_M=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},Yme=function(t,r){for(var n=[],i=r,a=0;i<t.length;i+=1,a+=1)n[a]=t[i];return n},Xme=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},Jme=function(t){var r=this;if(typeof r!="function"||Qme.apply(r)!==Kme)throw new TypeError(Wme+r);for(var n=Yme(arguments,1),i,a=function(){if(this instanceof i){var u=r.apply(this,_M(n,arguments));return Object(u)===u?u:this}return r.apply(t,_M(n,arguments))},o=Zme(0,r.length-n.length),s=[],c=0;c<o;c++)s[c]="$"+c;if(i=Function("binder","return function ("+Xme(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i},ehe=Jme,og=Function.prototype.bind||ehe,mw=Function.prototype.call,kM=Function.prototype.apply,the=typeof Reflect<"u"&&Reflect&&Reflect.apply,rhe=og,nhe=kM,ihe=mw,ahe=the,ohe=ahe||rhe.call(ihe,nhe),she=og,che=Yc,lhe=mw,uhe=ohe,MM=function(t){if(t.length<1||typeof t[0]!="function")throw new che("a function is required");return uhe(she,lhe,t)},dhe=MM,OM=SM,AM;try{AM=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var hw=!!AM&&OM&&OM(Object.prototype,"__proto__"),$M=Object,RM=$M.getPrototypeOf,phe=hw&&typeof hw.get=="function"?dhe([hw.get]):typeof RM=="function"?function(t){return RM(t==null?t:$M(t))}:!1,NM=IM,DM=xM,LM=phe,fhe=NM?function(t){return NM(t)}:DM?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return DM(t)}:LM?function(t){return LM(t)}:null,ghe=Function.prototype.call,mhe=Object.prototype.hasOwnProperty,hhe=og,vhe=hhe.call(ghe,mhe),lt,yhe=EM,bhe=xme,whe=_me,The=kme,Ehe=Mme,Jc=Ome,el=Yc,She=Ame,Phe=$me,Che=Rme,Ihe=Nme,xhe=Dme,_he=Lme,khe=Ume,Mhe=qme,UM=Function,vw=function(e){try{return UM('"use strict"; return ('+e+").constructor;")()}catch{}},Wu=SM,Ohe=PM,yw=function(){throw new el},Ahe=Wu?(function(){try{return arguments.callee,yw}catch{try{return Wu(arguments,"callee").get}catch{return yw}}})():yw,tl=Hme(),Wr=fhe,$he=xM,Rhe=IM,FM=kM,Qu=mw,rl={},Nhe=typeof Uint8Array>"u"||!Wr?lt:Wr(Uint8Array),Gs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":tl&&Wr?Wr([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":rl,"%AsyncGenerator%":rl,"%AsyncGeneratorFunction%":rl,"%AsyncIteratorPrototype%":rl,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bhe,"%eval%":eval,"%EvalError%":whe,"%Float16Array%":typeof Float16Array>"u"?lt:Float16Array,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":UM,"%GeneratorFunction%":rl,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 5,003 bytes, line 377
377"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tl&&Wr?Wr(Wr([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tl||!Wr?lt:Wr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yhe,"%Object.getOwnPropertyDescriptor%":Wu,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":The,"%ReferenceError%":Ehe,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tl||!Wr?lt:Wr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tl&&Wr?Wr(""[Symbol.iterator]()):lt,"%Symbol%":tl?Symbol:lt,"%SyntaxError%":Jc,"%ThrowTypeError%":Ahe,"%TypedArray%":Nhe,"%TypeError%":el,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":She,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet,"%Function.prototype.call%":Qu,"%Function.prototype.apply%":FM,"%Object.defineProperty%":Ohe,"%Object.getPrototypeOf%":$he,"%Math.abs%":Phe,"%Math.floor%":Che,"%Math.max%":Ihe,"%Math.min%":xhe,"%Math.pow%":_he,"%Math.round%":khe,"%Math.sign%":Mhe,"%Reflect.getPrototypeOf%":Rhe};if(Wr)try{null.error}catch(e){var Dhe=Wr(Wr(e));Gs["%Error.prototype%"]=Dhe}var Lhe=function e(t){var r;if(t==="%AsyncFunction%")r=vw("async function () {}");else if(t==="%GeneratorFunction%")r=vw("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vw("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Wr&&(r=Wr(i.prototype))}return Gs[t]=r,r},BM={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Zu=og,sg=vhe,Uhe=Zu.call(Qu,Array.prototype.concat),Fhe=Zu.call(FM,Array.prototype.splice),qM=Zu.call(Qu,String.prototype.replace),cg=Zu.call(Qu,String.prototype.slice),Bhe=Zu.call(Qu,RegExp.prototype.exec),qhe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zhe=/\\(\\)?/g,Vhe=function(t){var r=cg(t,0,1),n=cg(t,-1);
377if(r==="%"&&n!=="%")throw new Jc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Jc("invalid intrinsic syntax, expected opening `%`");var i=[];return qM(t,qhe,function(a,o,s,c){i[i.length]=s?qM(c,zhe,"$1"):o||a}),i},jhe=function(t,r){var n=t,i;if(sg(BM,n)&&(i=BM[n],n="%"+i[0]+"%"),sg(Gs,n)){var a=Gs[n];if(a===rl&&(a=Lhe(n)),typeof a>"u"&&!r)throw new el("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Jc("intrinsic "+t+" does not exist!")},bw=function(t,r){if(typeof t!="string"||t.length===0)throw new el("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new el('"allowMissing" argument must be a boolean');if(Bhe(/^%?[^%]*%?$/,t)===null)throw new Jc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Vhe(t),i=n.length>0?n[0]:"",a=jhe("%"+i+"%",r),o=a.name,s=a.value,c=!1,l=a.alias;l&&(i=l[0],Fhe(n,Uhe([0,1],l)));for(var u=1,d=!0;u<n.length;u+=1){var p=n[u],g=cg(p,0,1),m=cg(p,-1);if((g==='"'||g==="'"||g==="`"||m==='"'||m==="'"||m==="`")&&g!==m)throw new Jc("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(c=!0),i+="."+p,o="%"+i+"%",sg(Gs,o))s=Gs[o];else if(s!=null){if(!(p in s)){if(!r)throw new el("base intrinsic for "+t+" exists, but the property is not available.");return}if(Wu&&u+1>=n.length){var v=Wu(s,p);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[p]}else d=sg(s,p),s=s[p];d&&!c&&(Gs[o]=s)}}return s},zM=bw,VM=MM,Hhe=VM([zM("%String.prototype.indexOf%")]),jM=function(t,r){var n=zM(t,!!r);return typeof n=="function"&&Hhe(t,".prototype.")>-1?VM([n]):n},Ghe=bw,Ku=jM,Whe=tg,Qhe=Yc,HM=Ghe("%Map%",!0),Zhe=Ku("Map.prototype.get",!0),Khe=Ku("Map.prototype.set",!0),Yhe=Ku("Map.prototype.has",!0),Xhe=Ku("Map.prototype.delete",!0),Jhe=Ku("Map.prototype.size",!0),GM=!!HM&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Qhe("Side channel does not contain "+Whe(n))},delete:function(n){if(t){var i=Xhe(t,n);return Jhe(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return Zhe(t,n)},has:function(n){return t?Yhe(t,n):!1},set:function(n,i){t||(t=new HM),Khe(t,n,i)}};return r},eve=bw,lg=jM,tve=tg,ug=GM,rve=Yc,nl=eve("%WeakMap%",!0),nve=lg("WeakMap.prototype.get",!0),ive=lg("WeakMap.prototype.set",!0),ave=lg("WeakMap.prototype.has",!0),ove=lg("WeakMap.prototype.delete",!0),sve=nl?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new rve("Side channel does not contain "+tve(i))},delete:function(i){if(nl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return ove(t,i)}else if(ug&&r)return r.delete(i);return!1},get:function(i){return nl&&i&&(typeof i=="object"||typeof i=="function")&&t?nve(t,i):r&&r.get(i)},has:function(i){return nl&&i&&(typeof i=="object"||typeof i=="function")&&t?ave(t,i):!!r&&r.has(i)},set:function(i,a){nl&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new nl),ive(t,i,a)):ug&&(r||(r=ug()),r.set(i,a))}};return n}:ug,cve=Yc,lve=tg,uve=Ime,dve=GM,pve=sve,fve=pve||dve||uve,WM=function(){var t,r={assert:function(n){if(!r.has(n)){var i=n&&Object(n)===n?"the given object key":lve(n);throw new cve("Side channel does not contain "+i)}},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=fve()),t.set(n,i)}};return r},gve=String.prototype.replace,mve=/%20/g,ww={RFC1738:"RFC1738",RFC3986:"RFC3986"},Tw={default:ww.RFC3986,formatters:{RFC1738:function(e){return gve.call(e,mve,"+")},RFC3986:function(e){return String(e)}},RFC1738:ww.RFC1738,RFC3986:ww.RFC3986},hve=Tw,QM=WM,ZM=PM,Ew=Object.prototype.hasOwnProperty,Ws=Array.isArray,dg=QM(),Qs=function(t,r){return dg.set(t,r),t},Zs=function(t){return dg.has(t)},Yu=function(t){return dg.get(t)},Sw=function(t,r){dg.set(t,r)},ka=(function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e})(),vve=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Ws(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&(i[i.length]=n[a]);r.obj[r.prop]=i}}},il=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},Pw=function(t,r,n){r==="__proto__"&&ZM?ZM(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n},yve=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Ws(t)){var i=t.length;if(n&&typeof n.arrayLimit=="number"&&i>=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");return Qs(il(t.concat(r),n),i)}t[i]=r}else if(t&&typeof t=="object")if(Zs(t)){var a=Yu(t)+1;t[a]=r,Sw(t,a)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!Ew.call(Object.prototype,r))&&(t[r]=!0)}else return[t,r];return t}if(!t||typeof t!="object"){if(Zs(r)){for(var o=Object.keys(r),s=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},c=0;c<o.length;c++){var l=parseInt(o[c],10);s[l+1]=r[o[c]]}return Qs(s,Yu(r)+1)}var u=[t].concat(r);if(n&&typeof n.arrayLimit=="number"&&u.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");return Qs(il(u,n),u.length-1)}return u}var d=t;if(Ws(t)&&!Ws(r)&&(d=il(t,n)),Ws(t)&&Ws(r)){if(r.forEach(function(p,g){if(Ew.call(t,g)){var m=t[g];m&&typeof m=="object"&&p&&typeof p=="object"?t[g]=e(m,p,n):t[t.length]=p}else t[g]=p}),n&&typeof n.arrayLimit=="number"&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");return Qs(il(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(p,g){var m=r[g];if(Ew.call(p,g)?Pw(p,g,e(p[g],m,n)):Pw(p,g,m),Zs(r)&&!Zs(p)&&Qs(p,Yu(r)),Zs(p)){var v=parseInt(g,10);String(v)===g&&v>=0&&v>Yu(p)&&Sw(p,v)}return p},d)},bve=function(t,r){return Object.keys(r).reduce(function(n,i){return Pw(n,i,r[i]),n},t)},wve=function(e,t,r){var n=e.replace(/\+/g," ");
vendor: 11,756 bytes, line 377
377if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},pg=1024,Tve=function(t,r,n,i,a){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var s="",c=0;c<o.length;c+=pg){var l=o.length>=pg?o.slice(c,c+pg):o;if(c+pg<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),c-=1)}for(var d=[],p=0;p<l.length;++p){var g=l.charCodeAt(p);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||a===hve.RFC1738&&(g===40||g===41)){d[d.length]=l.charAt(p);continue}if(g<128){d[d.length]=ka[g];continue}if(g<2048){d[d.length]=ka[192|g>>6]+ka[128|g&63];continue}if(g<55296||g>=57344){d[d.length]=ka[224|g>>12]+ka[128|g>>6&63]+ka[128|g&63];continue}p+=1,g=65536+((g&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=ka[240|g>>18]+ka[128|g>>12&63]+ka[128|g>>6&63]+ka[128|g&63]}s+=d.join("")}return s},Eve=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=QM(),i=0;i<r.length;++i)for(var a=r[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u=="object"&&u!==null&&!n.has(u)&&(r[r.length]={obj:o,prop:l},n.set(u,!0))}return vve(r),t},Sve=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Pve=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Cve=function(t,r,n,i,a){if(Zs(t)){if(a)throw new RangeError("Array limit exceeded. Only "+n+" element"+(n===1?"":"s")+" allowed in an array.");var o=Yu(t)+1;return t[o]=r,Sw(t,o),t}var s=[].concat(t,r);if(s.length>n){if(a)throw new RangeError("Array limit exceeded. Only "+n+" element"+(n===1?"":"s")+" allowed in an array.");return Qs(il(s,{plainObjects:i}),s.length-1)}return s},Ive=function(t,r){if(Ws(t)){for(var n=[],i=0;i<t.length;i+=1)n[n.length]=r(t[i]);return n}return r(t)},KM={arrayToObject:il,assign:bve,combine:Cve,compact:Eve,decode:wve,encode:Tve,isBuffer:Pve,isOverflow:Zs,isRegExp:Sve,markOverflow:Qs,maybeMap:Ive,merge:yve},YM=WM,fg=KM,Xu=Tw,xve=Object.prototype.hasOwnProperty,XM={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ma=Array.isArray,_ve=Array.prototype.push,JM=function(e,t){_ve.apply(e,Ma(t)?t:[t])},kve=Date.prototype.toISOString,eO=Xu.default,Lr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:fg.encode,encodeValuesOnly:!1,filter:void 0,format:eO,formatter:Xu.formatters[eO],indices:!1,serializeDate:function(t){return kve.call(t)},skipNulls:!1,strictNullHandling:!1},Mve=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Cw={},Ove=function e(t,r,n,i,a,o,s,c,l,u,d,p,g,m,v,h,P,x){for(var T=t,k=x,M=0,$=!1;(k=k.get(Cw))!==void 0&&!$;){var O=k.get(t);if(M+=1,typeof O<"u"){if(O===M)throw new RangeError("Cyclic object value");$=!0}typeof k.get(Cw)>"u"&&(M=0)}if(typeof u=="function"?T=u(r,T):T instanceof Date?T=g(T):n==="comma"&&Ma(T)&&(T=fg.maybeMap(T,function(le){return le instanceof Date?g(le):le})),T===null){if(o)return v(l&&!h?l(r,Lr.encoder,P,"key",m):r);T=""}if(Mve(T)||fg.isBuffer(T)){if(l){var H=h?r:l(r,Lr.encoder,P,"key",m);return[v(H)+"="+v(l(T,Lr.encoder,P,"value",m))]}return[v(r)+"="+v(String(T))]}var J=[];if(typeof T>"u")return J;var W;if(n==="comma"&&Ma(T))h&&l&&(T=fg.maybeMap(T,function(le){return le==null?le:l(le)})),W=[{value:T.length>0?T.join(",")||null:void 0}];else if(Ma(u))W=u;else{var me=Object.keys(T);W=d?me.sort(d):me}var Z=c?String(r).replace(/\./g,"%2E"):String(r),B=i&&Ma(T)&&T.length===1?Z+"[]":Z;if(a&&Ma(T)&&T.length===0)return B+"[]";for(var Q=0;Q<W.length;++Q){var R=W[Q],Y=typeof R=="object"&&R&&typeof R.value<"u"?R.value:T[R];if(!(s&&Y===null)){var ie=p&&c?String(R).replace(/\./g,"%2E"):String(R),he=Ma(T)?typeof n=="function"?n(B,ie):B:B+(p?"."+ie:"["+ie+"]");x.set(t,M);var ye=YM();ye.set(Cw,x),JM(J,e(Y,he,n,i,a,o,s,c,n==="comma"&&h&&Ma(T)?null:l,u,d,p,g,m,v,h,P,ye))}}return J},Ave=function(t){if(!t)return Lr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Lr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Xu.default;if(typeof t.format<"u"){if(!xve.call(Xu.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Xu.formatters[n],a=Lr.filter;(typeof t.filter=="function"||Ma(t.filter))&&(a=t.filter);var o;if(t.arrayFormat in XM?o=t.arrayFormat:"indices"in t?o=t.indices?"indices":"repeat":o=Lr.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Lr.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Lr.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Lr.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Lr.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Lr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Lr.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Lr.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Lr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Lr.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Lr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Lr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Lr.strictNullHandling}},$ve=function(e,t){var r=e,n=Ave(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Ma(n.filter)&&(a=n.filter,i=a);var o=[];if(typeof r!="object"||r===null)return"";var s=XM[n.arrayFormat],c=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=YM(),u=0;u<i.length;++u){var d=i[u];if(!(typeof d>"u"||d===null)){var p=r[d];n.skipNulls&&p===null||JM(o,Ove(p,d,s,c,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}}var g=o.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B"+n.delimiter:m+="utf8=%E2%9C%93"+n.delimiter),g.length>0?m+g:""},Oa=KM,gg=Object.prototype.hasOwnProperty,Iw=Array.isArray,ir={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Oa.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Rve=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},tO=function(e,t,r,n){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1){if(n&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if(i+=1,i>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");a=e.indexOf(",",a+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},Nve="utf8=%26%2310003%3B",Dve="utf8=%E2%9C%93",Lve=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,r.throwOnLimitExceeded&&typeof a<"u"?a+1:a);if(r.throwOnLimitExceeded&&typeof a<"u"&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(a===1?"":"s")+" allowed.");var s=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c<o.length;++c)o[c].indexOf("utf8=")===0&&(o[c]===Dve?l="utf-8":o[c]===Nve&&(l="iso-8859-1"),s=c,c=o.length);for(c=0;c<o.length;++c)if(c!==s){var u=o[c],d=u.indexOf("]="),p=d===-1?u.indexOf("="):d+1,g,m;if(p===-1?(g=r.decoder(u,ir.decoder,l,"key"),m=r.strictNullHandling?null:""):(g=r.decoder(u.slice(0,p),ir.decoder,l,"key"),g!==null&&(m=Oa.maybeMap(tO(u.slice(p+1),r,Iw(n[g])?n[g].length:0,u.indexOf("[]=")===-1),function(h){return r.decoder(h,ir.decoder,l,"value")}))),m&&r.interpretNumericEntities&&l==="iso-8859-1"&&(m=Rve(String(m))),u.indexOf("[]=")>-1&&(m=Iw(m)?[m]:m),r.comma&&Iw(m)&&m.length>r.arrayLimit&&(m=Oa.combine([],m,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded)),g!==null){var v=gg.call(n,g);v&&(r.duplicates==="combine"||u.indexOf("[]=")>-1)?n[g]=Oa.combine(n[g],m,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded):(!v||r.duplicates==="last")&&(n[g]=m)}}return n},Uve=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var o=n?t:tO(t,r,i),s=e.length-1;s>=0;--s){var c,l=e[s];if(l==="[]"&&r.parseArrays)Oa.isOverflow(o)?c=o:c=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:Oa.combine([],o,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{c=r.plainObjects?{__proto__:null}:{};var u=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,d=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,p=parseInt(d,10),g=!isNaN(p)&&l!==d&&String(p)===d&&p>=0&&r.parseArrays;if(!r.parseArrays&&d==="")c={0:o};else if(g&&p<r.arrayLimit)c=[],c[p]=o;else{if(g&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");g?(c[p]=o,Oa.markOverflow(c,p)):d!=="__proto__"&&(c[d]=o)}}o=c}return o},Fve=function(t,r){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(r.depth<=0)return!r.plainObjects&&gg.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var i=[],a=n.indexOf("["),o=a>=0?n.slice(0,a):n;if(o){if(!r.plainObjects&&gg.call(Object.prototype,o)&&!r.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<r.depth;){for(var u=1,d=c+1,p=-1;d<s&&p<0;){var g=n.charCodeAt(d);g===91?u+=1:g===93&&(u-=1,u===0&&(p=d)),d+=1}if(p<0)return i[i.length]="["+n.slice(c)+"]",i;var m=n.slice(c,p+1),v=m.slice(1,-1);if(!r.plainObjects&&gg.call(Object.prototype,v)&&!r.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf("[",p+1)}if(c>=0){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");i[i.length]="["+n.slice(c)+"]"}return i},Bve=function(t,r,n,i){if(t){var a=Fve(t,n);if(a)return Uve(a,r,n,i)}},qve=function(t){if(!t)return ir;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
377if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?ir.charset:t.charset,n=typeof t.duplicates>"u"?ir.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:ir.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ir.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:ir.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:ir.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:ir.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ir.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:ir.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:ir.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:ir.decoder,delimiter:typeof t.delimiter=="string"||Oa.isRegExp(t.delimiter)?t.delimiter:ir.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:ir.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:ir.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:ir.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:ir.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:ir.strictDepth,strictMerge:typeof t.strictMerge=="boolean"?!!t.strictMerge:ir.strictMerge,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ir.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}},zve=function(e,t){var r=qve(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?Lve(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),o=0;o<a.length;++o){var s=a[o],c=Bve(s,n[s],r,typeof e=="string");i=Oa.merge(i,c,r)}return r.allowSparse===!0?i:Oa.compact(i)},Vve=$ve,jve=zve,Hve=Tw,Gve={formats:Hve,parse:jve,stringify:Vve},Ju=Ec(Gve);function rO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wve(e){if(Array.isArray(e))return e}function Qve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nO(e,t,r,n,i,a,o){try{var s=e[a](o),c=s.value}catch(l){r(l);return}s.done?t(c):Promise.resolve(c).then(n,i)}function Bo(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(c){nO(a,n,i,o,s,"next",c)}function s(c){nO(a,n,i,o,s,"throw",c)}o(void 0)})}}function Zve(e,t,r){return t=mg(t),nye(e,sO()?Reflect.construct(t,r||[],mg(e).constructor):t.apply(e,r))}function al(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ed(e,t,r){return t&&iO(e.prototype,t),r&&iO(e,r),e}function Kve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mg(e){return mg=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mg(e)}function Yve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xw(e,t)}function aO(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Xve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,s;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(c){a=!0,s=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}return n}}
377function Jve(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Kve(e,i,r[i])})}return e}function eye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}function hg(e,t){return t=t??{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eye(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function tye(e,t){if(e==null)return{};var r={},n,i,a;if(typeof Reflect<"u"&&Reflect.ownKeys){for(n=Reflect.ownKeys(e),a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i]);return r}if(r=rye(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i]);return r}function rye(e,t){if(e==null)return{};var r={},n=Object.getOwnPropertyNames(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i]);return r}function nye(e,t){return t&&(oO(t)==="object"||typeof t=="function")?t:Qve(e)}function xw(e,t){return xw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xw(e,t)}function pr(e,t){return Wve(e)||Xve(e,t)||iye(e,t)||Jve()}function oO(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function iye(e,t){if(e){if(typeof e=="string")return rO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rO(e,t)}}function sO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sO=function(){return!!e})()}function qo(e,t){var r,n,i,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:c(0)}),s(o,"throw",{value:c(1)}),s(o,"return",{value:c(2)}),typeof Symbol=="function"&&s(o,Symbol.iterator,{value:function(){return this}}),o;function c(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){a=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(u[0]===6&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(d){u=[6,d],n=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var cO=function e(t,r){var n=this;al(this,e),this.getPageSection=function(){return n._analyticsPageData.pageSection},this.getPageStage=function(){return n._analyticsPageData.pageStage},this.getPageName=function(){return n._analyticsPageData.pageName},this.getProductId=function(){return n._product_id},this.getCoreProductId=function(){return n._analyticsPageData.coreProductId},this.trackDialogDisplayed=function(i){var a=Dl();if(!a){console.error("tracking not initialized");return}a.track("Design PopUp Displayed",hg(On({category:"Design - Upload",label:"Options Display",product_id:n._product_id},n._analyticsPageData),{initialSelection:{selections:i}}),{})},this._analyticsPageData=t,this._product_id=r},lO=yi(null);function uO(){var e=xt(lO);if(!e)throw new Error("Cannot use the useAnalytics hook without a Analytics manager");return e}var dO=function(e){var t=e.children,r=e.analytics,n=lO.Provider;return y.createElement(n,{value:r},t)};function pO(e){var t=vt(null);return t.current!==null||(t.current=e()),t.current}var aye={upload:"Upload",select:"V\xE6lg",loading:"Indl\xE6ser ...",close:"Luk",quantity:"Antal",selectNote:"V\xE6lg alle p\xE5kr\xE6vede muligheder.","upload-dialog-cta":"N\xE6ste"},_w={upload:"Hochladen",select:"Ausw\xE4hlen",loading:"Wird geladen\u2026",close:"Schlie\xDFen",quantity:"Menge",selectNote:"Bitte w\xE4hlen Sie alle erforderlichen Optionen aus.","upload-dialog-cta":"Weiter"},ol={upload:"Upload",select:"Select",loading:"Loading...",close:"Close",quantity:"Quantity",selectNote:"Please select all required options.","upload-dialog-cta":"Next"},oye={upload:"Subir",select:"Seleccionar",loading:"Cargando...",close:"Cerrar",quantity:"Cantidad",selectNote:"Selecciona todas las opciones obligatorias.","upload-dialog-cta":"Siguiente"},sye={upload:"Subir",select:"Seleccionar",loading:"Cargando...",close:"Cerrar",quantity:"Cantidad",selectNote:"Seleccione todas las opciones requeridas.","upload-dialog-cta":"Siguiente"},fO={upload:"Upload",select:"Select",loading:"Loading...",close:"Close",quantity:"Quantity",selectNote:"Please select all required options.","upload-dialog-cta":"Next"},cye={upload:"Lataa palvelimeen",select:"Valitse",loading:"Ladataan...",close:"Sulje",quantity:"M\xE4\xE4r\xE4",selectNote:"Valitse kaikki tarvittavat vaihtoehdot.","upload-dialog-cta":"Seuraava"},lye={upload:"T\xE9l\xE9verser",select:"S\xE9lectionner",loading:"Chargement en cours...",close:"Fermer",quantity:"Quantit\xE9",selectNote:"Veuillez s\xE9lectionner toutes les options obligatoires.","upload-dialog-cta":"Suivant"},kw={upload:"T\xE9l\xE9charger",select:"S\xE9lectionner",loading:"En cours de chargement...",close:"Fermer",quantity:"Quantit\xE9",selectNote:"Veuillez s\xE9lectionner toutes les options requises.","upload-dialog-cta":"Suivant"},gO={upload:"Carica",select:"Seleziona",loading:"Caricamento in corso...",close:"Chiudi",quantity:"Quantit\xE0",selectNote:"Scegli tutte le opzioni richieste.","upload-dialog-cta":"Avanti"},uye={upload:"Last opp",select:"Velg",loading:"Laster\xA0...",close:"Lukk",quantity:"Antall",selectNote:"Velg alle p\xE5krevde alternativer.","upload-dialog-cta":"Neste"},mO={upload:"Uploaden",select:"Selecteer",loading:"Bezig met laden...",close:"Sluiten",quantity:"Hoeveelheid",selectNote:"Selecteer alle verplichte opties.","upload-dialog-cta":"Volgende"},dye={upload:"Carregar",select:"Selecionar",loading:"A carregar...",close:"Fechar",quantity:"Quantidade",selectNote:"Selecione todas as op\xE7\xF5es obrigat\xF3rias.","upload-dialog-cta":"Seguinte"},pye={upload:"Ladda upp",select:"V\xE4lj",loading:"L\xE4ser in\xA0...",close:"St\xE4ng",quantity:"Antal",selectNote:"V\xE4lj alla obligatoriska alternativ.","upload-dialog-cta":"N\xE4sta"},fye={"da-dk":aye,"de-at":_w,"de-ch":_w,"de-de":_w,"en-au":ol,"en-ca":fO,"en-gb":ol,"en-ie":ol,"en-in":ol,"en-nz":
377ol,"en-sg":ol,"en-us":fO,"es-es":oye,"es-us":sye,"fi-fi":cye,"fr-be":kw,"fr-ca":lye,"fr-ch":kw,"fr-fr":kw,"it-ch":gO,"it-it":gO,"nb-no":uye,"nl-be":mO,"nl-nl":mO,"pt-pt":dye,"sv-se":pye},hO=fye,gye=function(e,t){var r,n=hO[t.toLowerCase()];return n&&(r=n[e])!==null&&r!==void 0?r:""},mye=function(e,t){var r,n=hO[t.toLowerCase()];return n&&(r=n[e])!==null&&r!==void 0?r:""},Aa={get:gye,getUnsafe:mye},hye={"en-ie":"https://www.vistaprint.ie","pt-pt":"https://www.vistaprint.pt","es-es":"https://www.vistaprint.es","en-in":"https://www.vistaprint.in","de-at":"https://www.vistaprint.at","fr-be":"https://www.vistaprint.be","nl-be":"https://www.vistaprint.be","fr-ca":"https://www.vistaprint.ca","en-ca":"https://www.vistaprint.ca","de-ch":"https://www.vistaprint.ch","fr-ch":"https://www.vistaprint.ch","it-ch":"https://www.vistaprint.ch","en-nz":"https://www.vistaprint.co.nz","en-gb":"https://www.vistaprint.co.uk","en-us":"https://www.vistaprint.com","es-us":"https://www.vistaprint.com","en-au":"https://www.vistaprint.com.au","de-de":"https://www.vistaprint.de","da-dk":"https://www.vistaprint.dk","fi-fi":"https://www.vistaprint.fi","fr-fr":"https://www.vistaprint.fr","it-it":"https://www.vistaprint.it","nl-nl":"https://www.vistaprint.nl","nb-no":"https://www.vistaprint.no","sv-se":"https://www.vistaprint.se","en-sg":"https://www.vistaprint.sg"};function vO(e,t,r,n){var i=e;return i&&r&&(i=vye(i,r)),i&&n&&(i="".concat(hye[t.toLowerCase()]).concat(i)),i||""}var vye=function(e,t){return"".concat(e,"&documentUrl=").concat(encodeURIComponent(t))};function yO(e,t){e.preventDefault(),typeof window<"u"&&t&&(window.location.href=t)}var td=function(e,t){return{message:e,context:Mw(t,new Set)}},yye=["bearer","eyj0exblijoiand0"],bye=["authorization","client_secret"],Mw=function(e,t){if(t.has(e))return"[Circular]";if(e===null||(typeof e>"u"?"undefined":oO(e))!=="object")return typeof e=="string"?wye(e):e;if(t.add(e),Array.isArray(e))return e.map(function(u){return Mw(u,t)});var r=aO(e,Error)?Object.getOwnPropertyNames(e):Object.keys(e),n={},i=!0,a=!1,o=void 0;try{for(var s=r[Symbol.iterator](),c;!(i=(c=s.next()).done);i=!0){var l=c.value;e[l]!==void 0&&(n[l]=bye.includes(l.toLowerCase())?"[REDACTED]":Mw(e[l],t))}}catch(u){a=!0,o=u}finally{try{!i&&s.return!=null&&s.return()}finally{if(a)throw o}}return n},wye=function(e){var t=!0,r=!1,n=void 0;try{for(var i=yye[Symbol.iterator](),a;!(t=(a=i.next()).done);t=!0){var o=a.value,s=e.toLowerCase().indexOf(o);if(s>-1)return e.slice(0,s+o.length)+" [REDACTED]"}}catch(c){r=!0,n=c}finally{try{!t&&i.return!=null&&i.return()}finally{if(r)throw n}}return e},bO=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};al(this,e),this.context=t}return ed(e,[{key:"debug",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=On({},this.context,n),a=td(r,i);console.debug(a.message,a.context)}},{key:"info",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=On({},this.context,n),a=td(r,i);console.info(a.message,a.context)}},{key:"warn",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=On({},this.context,n),a=td(r,i);console.warn(a.message,a.context)}},{key:"error",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=On({},this.context,n),a=td(r,i);console.error(a.message,a.context)}}]),e})();function Tye(e){var t=(e.match(/ /g)||[]).length;if(t===0)return console.warn("Auth header missing scheme, assuming Bearer token"),"Bearer ".concat(e);if(t===1){if(e.startsWith("Bearer ")){var r=e.slice(7);if(r.length>0)return e}else if(e.startsWith("Session ")){var n=e.slice(8);if(n.length>0)return e}}return console.error("Invalid auth header format"),e}var Eye="https://physical-products-newrelic-logger.large-assortment.vpsvc.com",Sye=(function(){function e(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};al(this,e),this.authToken=n,this.context=hg(On({},i),{requestor:r}),this.url=Eye+"/v1/log/".concat(t,"?requestor=").concat(encodeURIComponent(r))}return ed(e,[{key:"debug",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.logMessage("DEBUG",r,n?.context)}},{key:"info",value:function(r,n){this.logMessage("INFO",r,n?.context)}},{key:"warn",value:function(r,n){this.logMessage("WARN",r,n?.context)}},{key:"error",value:function(r,n){this.logMessage("ERROR",r,n?.context)}},{key:"logMessage",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=hg(On({},this.context,i),{timestamp:new Date().toISOString()}),o=td(n,a),s={level:r,message:o.message,context:o.context},c=fetch(this.url,{method:"POST",headers:{Authorization:Tye(this.authToken),"Content-Type":"application/json"},body:JSON.stringify(s)});c.catch(function(l){return console.error(l)})}}]),e})(),Pye="upload-flow-component",Cye=1120350844,rd=y.createContext(new bO({from:"DEFAULT CONTEXT"}));function Iye(e){var t=e.newRelicApplicationId,r=e.requestor,n=e.context,i=e.authToken,a=e.children,o=Ye(function(){return t&&i?new Sye(t,r,i,n):new bO(n)},[t,r,i,n]);return y.createElement(rd.Provider,{value:o},a)}var xye=["NA_Brochures_Studio3D"],nd=(function(){function e(){al(this,e)}return ed(e,null,[{key:"getABTests",value:function(){return Bo(function(){return qo(this,function(r){switch(r.label){case 0:return this.abExperiments!==null?[2,this.abExperiments]:[4,this.waitForInitializationOnce()];case 1:return r.sent(),this.abExperiments=_E(),[2,this.abExperiments]}})}).call(this)}},{key:"getVariation",value:function(r){return Bo(function(){var n,i;return qo(this,function(a){switch(a.label){case 0:return[4,this.getABTests()];case 1:return[2,(i=a.sent())===null||i===void 0||(n=i.find(function(o){return o.experimentKey===r}))===null||n===void 0?void 0:n.variationKey]}})}).call(this)}},{key:"getTestUserId",value:function(){return Bo(function(){var r;return qo(this,function(n){switch(n.label){case 0:return[4,this.waitForInitializationOnce()];case 1:return n.sent(),[2,(r=kE())!==null&&r!==void 0?r:void 0]}})}).call(this)}},{key:"getABTestString",value:function(){return Bo(function(){var r;return qo(this,function(n){switch(n.label){case 0:return[4,this.getABTests()];case 1:return r=n.sent(),r&&r.length>0?[2,r.filter(function(i){return xye.some(function(a){return a===i.experimentKey})}).sort(function(i,a){return i.experimentKey.localeCompare(a.experimentKey)}).map(function(i){return"".concat(i.experimentKey,":").concat(i.variationKey)}).join(",")]:[2,""]}})}).call(this)}},{key:"waitForInitializationOnce",value:function(){return this.availablePromise===null&&(eh(),this.availablePromise=th(1e3)),this.availablePromise}}]),e})();nd.availablePromise=null,nd.abExperiments=null;var _ye="https://siteflow.merch.vpsvc.com",kye="UploadFlow",Mye=2048,wO=function(e,t,r){return Bo(function(){var n,i;return qo(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,6]),[4,fetch(e)];case 1:if(n=a.sent(),!n.ok)throw new Error("HTTP error! status: ".concat(n.status));return[2,n];case 2:return i=a.sent(),t>0?[4,new Promise(function(o){return setTimeout(o,r)})]:[3,4];case 3:return a.sent(),[2,wO(e,t-1,r*2)];case 4:throw i;case 5:return[3,6];case 6:return[2]}})})()},TO=function(e){return Bo(function(){var t,r,n,i,a,o,s,c,l,u,d,p,g,m,v,h,P,x;return qo(this,function(T){switch(T.label){case 0:return t=e.tenant,r=e.locale,n=e.productKey,i=e.version,a=e.flowAction,o=e.selections,s=e.selectedQuantity,c=e.logging,[4,nd.getABTestString()];case 1:return l=T.sent(),[4,nd.getTestUserId()];case 2:u=T.sent(),d={optionValues:o,quantity:s,optimizelyEndUserId:u,siteContext:l??"",requestor:"".concat(kye).concat("")},p=Ju.stringify(d,{arrayFormat:"comma"}),g="".concat(_ye,"/v2/action/").concat(t,"/").concat(r,"/").concat(a,"/").concat(n,"/").concat(i,"?"),g.length+p.length>Mye&&(c.error("Unable to add site context to Siteflow, URL too long"),delete d.siteContext,p=Ju.stringify(d,{arrayFormat:"comma"})),m="".concat(g).concat(p),T.label=3;case 3:return T.trys.push([3,6,,7]),[4,wO(m,2,1e3)];case 4:return v=T.sent(),[4,v.json()];case 5:return h=T.sent(),h?[2,h]:[2,void 0];case 6:throw P=T.sent(),x="There was an error while getting action url from siteflow: ".concat(JSON.stringify(P,null,2)),c.error(x,{error:(aO(P,Error),P),context:{url:m}}),P;case 7:return[2]}})})()},EO=function(e,t,r,n,i,a,o,s){var c=pr(pe(void 0),2),l=c[0],u=c[1];return Ee(function(){var d=!0,p=function(){return Bo(function(){var g;return qo(this,function(m){switch(m.label){case 0:return[4,TO({tenant:e,locale:t,selections:r,productKey:n,version:i,flowAction:a,selectedQuantity:o,logging:s})];case 1:return g=m.sent(),d&&u(g?.url),[2]}})})()};return p(),function(){d=!1}},[r,o,e,t,n,i,TO]),l},Oye=function(e){var t,r,n,i,a=e.initialPrice,o=e.finalPriceInfo,s=e.initialQuantity,c=e.f
377inalQuantity,l=e.tenant,u=e.locale,d=e.initialSelections,p=e.finalSelections,g=e.productKey,m=e.productVersion,v=e.siteflowAction,h=e.studioDocumentUrl,P=e.productName,x=e.showError,T=e.formValid,k=e.useFullPath,M=e.authToken,$=e.onSubmitButtonSuccess,O=e.onSubmitButtonError,H=e.onToastClose,J=xt(rd),W=ur.useWranglerDataContext(),me=W==null||(r=W.data)===null||r===void 0||(t=r.selections)===null||t===void 0?void 0:t.document,Z=me?.changesPending,B=uO(),Q=B?.getProductId(),R=B?.getPageSection(),Y=B?.getPageName(),ie=B?.getPageStage(),he=o==null||(n=o.quantities.find(function(te){return te.quantity===c}))===null||n===void 0?void 0:n.discountPrice,ye=o==null||(i=o.quantities.find(function(te){return te.quantity===c}))===null||i===void 0?void 0:i.listPrice,le=EO(l,u,p,g,m,v,c,J);return y.createElement(y.Fragment,null,x&&y.createElement(es,{mb:"4",skin:"error",id:"select-option-continue-note","aria-live":"assertive",style:{width:"100%"}},Aa.get("selectNote",u),y.createElement(El,{accessibleText:Aa.get("close",u),onClick:function(){H()}})),y.createElement(Dt,{skin:"primary",width:"full-width",mt:"to-actions",onClick:function(te){return Bo(function(){var Oe,ut,ve,Pe,$t,Ne,Le,Ve,Xe,ot,We,je,ge,Ze,fe,it,Qe,gt,un,mt,Xr,or,Fe,ke;return qo(this,function(Ce){switch(Ce.label){case 0:if(te.preventDefault(),!T)return O({}),[2];$({finalSelections:p,finalQuantity:c}),Pe=a?.totalDiscountedPrice,$t=(Oe=a?.breakdown)!==null&&Oe!==void 0?Oe:[],Ne=(ut=o?.pricesBreakdownArray)!==null&&ut!==void 0?ut:[],Le=[],Ve=!0,Xe=!1,ot=void 0;try{for(We=Object.entries(p||[])[Symbol.iterator]();!(Ve=(je=We.next()).done);Ve=!0)ge=pr(je.value,2),Ze=ge[0],fe=ge[1],it="nochange",Qe=SO($t,Ze),gt=SO(Ne,Ze),it=PO(Qe,gt),Le.push({key:Ze,value:fe,isUpdated:fe!==d[Ze],update:it,isVisible:!Object.keys(d).includes(Ze)})}catch(Ie){Xe=!0,ot=Ie}finally{try{!Ve&&We.return!=null&&We.return()}finally{if(Xe)throw ot}}return Le.push({key:"Quantity",value:(ve=c?.toString())!==null&&ve!==void 0?ve:"0",isUpdated:c!==s,update:Aye(c,s),isVisible:!0}),un=Le.map(function(Ie){return"".concat(Ie.key,":").concat(Ie.value)}).join("_"),mt=h?Z?"true":"false":"na",zge({category:"Upload Flow",pageSection:R,pageStage:ie,pageName:Y,label:rM,product_id:Q,name:P,core_product_id:g,productOptions:Le,productUpdate:PO(Pe,he),docTrans:mt,price:he??0,list_price:ye??0,sales_quantity:c??1,variant:un}),Xr=h,Z?M?[4,ur.WranglerDataSource.realizeDocument(M,me)]:(J.error("No auth token available to realize document",{context:{documentChanges:me}}),[2]):[3,2];case 1:Fe=Ce.sent(),!(Fe==null||(or=Fe.self)===null||or===void 0)&&or.href&&(Xr=Fe.self.href),Ce.label=2;case 2:return ke=vO(le||"",u,Xr,k),yO(te,ke),[2]}})})()},render:function(te){return y.createElement(It,On({to:le??""},te),te.children)}},Aa.getUnsafe("upload-dialog-cta",u)))};function SO(e,t){var r,n;return(r=(n=e.find(function(i){return i.attributeKey===t}))===null||n===void 0?void 0:n.listPrice)!==null&&r!==void 0?r:0}function Aye(e,t){return e>t?"upsell":e<t?"downsell":"nochange"}function PO(e,t){return!e||!t?"nochange":t>e?"upsell":t<e?"downsell":"nochange"}var CO=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};al(this,e),this.defaultOptions=t,this.openTimers=new Map}return ed(e,[{key:"createTimer",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=On({},this.defaultOptions,i),o=a.onEndTimer,s=a.onPrematureUnmount,c=a.autoStart,l=this.openTimers.get(r);if(l)return l.timer;var u={startTimer:function(){n.startTimer(r,u,a)},restartTimer:function(){n.closeTimer(r),n.startTimer(r,u,a)},endTimer:function(){var d=n.closeTimer(r);return d!=null&&o?.(r,d),d},cancelTimer:function(){n.closeTimer(r)},unmount:function(){var d=n.closeTimer(r);d!=null&&s?.(r,d)}};return c&&u.startTimer(),u}},{key:"getTimer",value:function(r){var n=this.openTimers.get(r);return n?.timer}},{key:"startTimer",value:function(r,n,i){var a=this,o=i.timeoutMs,s=i.onTimeout,c=this.openTimers.get(r);if(!c){var l;o&&s&&(l=setTimeout(function(){a.closeTimer(r),s?.(r,o)},o));var u=performance.now();this.openTimers.set(r,{start:u,timeoutId:l,timer:n})}}},{key:"closeTimer",value:function(r){var n=performance.now(),i=this.openTimers.get(r);if(!i)return null;this.openTimers.delete(r);var a=n-i.start;return i.timeoutId&&clearTimeout(i.timeoutId),a}}]),e})(),IO=Lt.createContext(new CO);function $ye(e){var t=e.children,r=new CO(e);return Lt.createElement(IO.Provider,{value:r},t)}function id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Lt.useContext(IO),n=Lt.useMemo(function(){return r.createTimer(e,t)},[]);return Lt.useEffect(function(){return function(){n.unmount()}},[]),n}function Rye(){if(typeof window>"u")return!1;var e=navigator.userAgent,t=navigator.vendor,r=t&&t.includes("Apple")&&e.includes("Safari")&&!e.includes("Chrome");
377if(!r)return!1;var n=e.match(/Version\/(\d+(\.\d+)?)/);if(n&&n[1]){var i=parseFloat(n[1]);return i>=18&&i<18.2&&e.includes("iPhone")}return!1}function Nye(){var e=pr(pe(!1),2),t=e[0],r=e[1];return Ee(function(){r(Rye())},[]),t}var Dye=function(e){var t=e.userSelectedOptions,r=e.locale,n=e.productName,i=e.uploadDialogIsOpen,a=e.onDialogClose,o=e.onSubmit,s=e.quantity,c=e.tenant,l=e.productKey,u=e.productVersion,d=e.siteflowAction,p=e.isStudio,g=e.studioDocumentUrl,m=e.pricingContextString,v=e.loader,h=e.useFullPath,P=e.testUserId,x=e.authToken,T,k,M,$,O,H,J=xt(ur.WranglerDataContext),W=J.data,me=J.updating,Z=J.context,B=pr(pe(s??(W==null||(M=W.quantities)===null||M===void 0?void 0:M.selected)),2),Q=B[0],R=B[1],Y=pr(pe(void 0),2),ie=Y[0],he=Y[1],ye=pr(pe(!1),2),le=ye[0],te=ye[1],Oe=pr(pe(!1),2),ut=Oe[0],ve=Oe[1],Pe=pr(pe(!1),2),$t=Pe[0],Ne=Pe[1],Le=Or(),Ve=xt(rd),Xe=id("UploadDialog - initial load",{onEndTimer:void 0}),ot=id("UploadDialog - pricing load/refresh",{timeoutMs:3e3,onEndTimer:void 0,autoStart:!1}),We=Nye();Ee(function(){i?ie?ot.endTimer():ot.startTimer():ot.cancelTimer()},[i,ie]);var je=id("UploadDialog - updating",{onEndTimer:void 0});Ee(function(){me&&je.restartTimer()},[me]);var ge=W?.attributes.reduce(function(ke,Ce){var Ie=Ce.options.find(function(Ke){return Ke.isSelected});return Ie&&(ke[Ce.key]=Ie.key),ke},{})||{},Ze=On({},t,ge),fe=pr(pe(Ze),2),it=fe[0],Qe=fe[1],gt=W?.price,un=W==null||(O=W.quantities)===null||O===void 0||($=O.quantities[0])===null||$===void 0?void 0:$.quantity,mt=(T=(k=s??(W==null||(H=W.quantities)===null||H===void 0?void 0:H.selected))!==null&&k!==void 0?k:un)!==null&&T!==void 0?T:1;Ee(function(){ve(!1)},[it]);var Xr=Ye(function(){var ke=t||{};return y.createElement(Oye,{initialSelections:ke,finalSelections:it,initialPrice:gt,finalPriceInfo:ie,initialQuantity:mt,finalQuantity:Q??mt,tenant:c,locale:r,productKey:l,productVersion:u,productName:n,siteflowAction:d,isStudio:p,studioDocumentUrl:g,showError:ut,authToken:x,onSubmitButtonError:function(){Ve.error("Error on click upload dialog CTA"),te(!0),ve(!0)},onSubmitButtonSuccess:function(Ce){var Ie=Ce.finalSelections,Ke=Ce.finalQuantity,St=Object.entries(Ie).filter(function(Pt){var jt=pr(Pt,2),yt=jt[0],sr=jt[1];return Object.keys(ke).includes(yt)?ke[yt]!==sr:!0}).reduce(function(Pt,jt){var yt=pr(jt,2),sr=yt[0],br=yt[1];return Pt[sr]=br,Pt},{}),qe=Object.assign({},St,{Quantity:"".concat(Ke)});o(qe)},formValid:$t,onToastClose:function(){ve(!1)},useFullPath:h})},[t,it,gt,ie,mt,Q,c,r,l,u,n,p,g,ut,$t]),or=uO(),Fe=Ye(function(){return function(ke){var Ce=ke.responseButtons,Ie=tye(ke,["responseButtons"]),Ke=ur.useManagedWranglerSelectionsContext().setSelections;return y.createElement(xl,{onlyRenderWhenOpen:!0,bodyWidth:"capped",isOpen:i,takeOver:Le==="xs",variant:"panel-right",style:{textAlign:"start"},onRequestDismiss:function(){a(),Ke(Ze),te(!1),ve(!1)},standardMode:!0},y.createElement(_l,On({"aria-label":n},We?{style:{minHeight:"-webkit-fill-available",maxHeight:"-webkit-fill-available"}}:{}),y.createElement(Ud,null,y.createElement(Fd,{accessibleText:Aa.get("close",r)})),y.createElement(kl,{fontWeight:"normal",fontSize:"standard",mb:7},n&&y.createElement(Ml,{mb:"3"},n),y.createElement(we,null,Aa.get("selectNote",r))),y.createElement(Ol,null,y.createElement(Zk,On({},Ie))),y.createElement(Bd,{pinned:!0},y.createElement(Kk,null),y.createElement(Ce,null))))}},[Aa,n,r,Le,i,a,Qe,te,ve]);return me||!W?v??y.createElement(y.Fragment,null):!W?.attributes.length&&!me?null:(Xe.endTimer(),je.endTimer(),y.createElement(ur.ManagedWranglerSelectionsProvider,{productKey:l,productVersion:u,merchant:c,culture:r,selectedAttributes:it||{},initialSelectedAttributes:t||{},merchandisingExperience:Z.merchandisingExperience,selectedQuantity:W.quantities.selected,excludeInitialSelectedAttributes:Z.excludeInitialSelectedAttributes,deselectCompletedOptions:Z.deselectCompletedOptions,testUserId:P,requestor:"Upload-Flow-Dialog-Component",documentUrl:g,pricingContextString:m,includeVat:Z.includeVat,priceStyle:Z.priceStyle,disableDocumentModification:!x,onChangeQuantity:function(ke){ke!==Q&&tM({category:"Upload Flow",pageSection:or.getPageSection(),pageStage:or.getPageStage(),pageName:or.getPageName(),label:"Quantity",eventDetail:ke.toString()}),R(ke)}
377,onChangeSelections:function(ke){var Ce=!0,Ie=!1,Ke=void 0;try{for(var St=Object.entries(ke)[Symbol.iterator](),qe;!(Ce=(qe=St.next()).done);Ce=!0){var Pt=pr(qe.value,2),jt=Pt[0],yt=Pt[1];if(yt!==it[jt]){tM({category:"Upload Flow",pageSection:or.getPageSection(),pageStage:or.getPageStage(),pageName:or.getPageName(),label:jt,eventDetail:yt});break}}}catch(sr){Ie=!0,Ke=sr}finally{try{!Ce&&St.return!=null&&St.return()}finally{if(Ie)throw Ke}}Qe(ke)}},y.createElement(Fge,{priceDisplayMode:"differential-unit",allOptionsRequired:!0,renderingOverrides:{responseButtons:function(){return Xr},configuratorLayout:Fe},onSaveSelections:function(){},onCancel:function(){},onPriceUpdated:function(ke){JSON.stringify(ie)!==JSON.stringify(ke)&&he(ke)},onValidation:function(ke){var Ce=ke.isValid;Ne(Ce)},showFormErrors:le,loader:y.createElement(y.Fragment,null)})))};function Lye(e){var t=e.selections,r=e.title,n=e.tenant,i=e.locale,a=e.productKey,o=e.productVersion,s=e.siteflowAction,c=e.quantity,l=e.studioDocumentUrl,u=e.children,d=e.useFullPath,p=e.onAcceptOptions,g,m,v,h,P=pr(pe(""),2),x=P[0],T=P[1],k=ur.useWranglerDataContext(),M=k==null||(h=k.data)===null||h===void 0||(v=h.quantities)===null||v===void 0||(m=v.quantities[0])===null||m===void 0?void 0:m.quantity,$=xt(rd),O=EO(n,i,t,a,o,s,(g=c??M)!==null&&g!==void 0?g:1,$);return Ee(function(){O&&T(vO(O,i,l,d))},[O]),y.createElement(It,{title:r,style:{color:"inherit",textDecoration:"inherit",fontWeight:"inherit",height:"100%",width:"100%"},target:"_parent",onClick:function(H){p(t),yO(H,x)},href:x},u)}function Uye(e){var t=e.data,r=e.updating,n=e.setSelections,i=e.updateTimer,a=e.context;Ee(function(){var o,s,c=(o=a?.initialSelectedAttributes)!==null&&o!==void 0?o:{},l=(s=a?.selectedAttributes)!==null&&s!==void 0?s:{},u=Object.keys(c).length===Object.keys(l).length;if(!r&&t&&n&&u){var d,p=!1,g={},m=!0,v=!1,h=void 0;try{for(var P=((d=t?.attributes)!==null&&d!==void 0?d:[])[Symbol.iterator](),x;!(m=(x=P.next()).done);m=!0){var T=x.value,k=T.options.filter(function(O){return O.isCompatible});if(k.length===1&&k[0].isSelected===!1)if(Object.keys(g).length===0)g[T.key]=k[0].key;else{p=!0;break}else if(k.length>1){p=!0;break}}}catch(O){v=!0,h=O}finally{try{!m&&P.return!=null&&P.return()}finally{if(v)throw h}}if(!p&&Object.keys(g).length>0){var M,$;n(On({},(M=t==null||($=t.selections)===null||$===void 0?void 0:$.selectedAttributes)!==null&&M!==void 0?M:{},g))}}else i.restartTimer()},[t,r,n,i,a])}function Fye(e){var t=e.analyticsPageData,r=e.mpvId,n=e.productName,i=e.productKey,a=e.tenant,o=e.locale,s=e.pricingContextString,c=e.quantity,l=e.userOptions,u=e.loader,d=e.productVersion,p=e.siteflowAction,g=e.studioDocumentUrl,m=e.children,v=e.isStudio,h=e.useFullPath,P=e.testUserId,x=e.authToken,T=e.onPopupOpen,k=e.onSubmit,M=e.setSelections,$=e.onError,O,H,J=ur.useWranglerDataContext(),W=J.data,me=J.context,Z=J.updating,B=J.exceptionMessages,Q=pr(pe(!1),2),R=Q[0],Y=Q[1],ie=pO(function(){return new cO(t,r)}),he=pr(y.useState(!1),2),ye=he[0],le=he[1],te=B?.length>0,Oe=id("UploadFlowComponent - initial load"),ut=id("UploadFlowComponent - updating",{onEndTimer:void 0}),ve=Ye(function(){return T??function(){}},[T]),Pe=Ye(function(){return k??function(){}},[k]);if(Ee(function(){var je,ge;!ye&&!Z&&(!(W==null||(je=W.context)===null||je===void 0)&&je.experiment)&&(!(W==null||(ge=W.context)===null||ge===void 0)&&ge.variation)&&(le(!0),rh(W.context.experiment,W.context.variation))},[ye,W==null||(O=W.context)===null||O===void 0?void 0:O.experiment,W==null||(H=W.context)===null||H===void 0?void 0:H.variation]),Uye({data:W,updating:Z,setSelections:M,updateTimer:ut,context:me}),Ee(function(){te&&$(B)},[B,te,$]),!W)return y.createElement(y.Fragment,null,u??m);Oe.endTimer();var $t=W?.attributes.reduce(function(je,ge){var Ze=ge.options.find(function(fe){return fe.isSelected});return Ze&&(je[ge.key]=Ze.key),je},{})||{},Ne=On({},l,$t);function Le(){ie.trackDialogDisplayed(l||{}),Y(!0)}function Ve(){Y(!1)}var Xe=y.createElement(Dt,{component:"span",skin:"primary",disabled:Z,width:"full-width",title:Aa.get("upload",o)},Aa.get("upload",o)),ot=y.createElement(y.Fragment,null,m);if(Z)return u||(m?y.createElement(Fa,{accessibleText:Aa.get("loading",o),size:"standard"}):Xe);ut.endTimer();var We=(W?.attributes||[]).length>0&&(W?.attributes||[]).find(function(je){return je.options.some(function(ge){return!ge.isSelected&&ge.isCompatible})});return We?y.createElement(y.Fragment,null,y.createElement(Dt,{skin:"unstyled",onClick:function(){var je=Object.entries($t).filter(function(Ze){var fe=pr(Ze,2),it=fe[0],Qe=fe[1],gt=l||{};return Object.keys(gt).includes(it)?gt[it]!==Qe:!0}).reduce(function(Ze,fe){var it=pr(fe,2),Qe=it[0],gt=it[1];return Ze[Qe]=gt,Ze},{}),ge=Object.assign({},je,{Quantity:"".concat(W.selections.quantity)});ve(ge),Le()},width:"full-width"},m?ot:Xe),R&&y.createElement(Dye,{uploadDialogIsOpen:R,onDialogClose:Ve,userSelectedOptions:l,locale:o,tenant:a,productKey:i,productVersion:d,siteflowAction:p??"design",productName:n,quantity:c,isStudio:v,studioDocumentUrl:g,pricingContextString:s,loader:u,useFullPath:
377h,testUserId:P,authToken:x,onSubmit:function(je){Pe(je)}})):y.createElement(dO,{analytics:ie},y.createElement(Lye,{authToken:x,title:Aa.get("upload",o),selections:Ne,tenant:a,locale:o,productKey:i,productVersion:d,siteflowAction:p??"design",quantity:c,isStudio:v,studioDocumentUrl:g,useFullPath:h,onAcceptOptions:function(){var je=Object.entries($t).filter(function(Ze){var fe=pr(Ze,2),it=fe[0],Qe=fe[1],gt=l||{};return Object.keys(gt).includes(it)?gt[it]!==Qe:!0}).reduce(function(Ze,fe){var it=pr(fe,2),Qe=it[0],gt=it[1];return Ze[Qe]=gt,Ze},{}),ge=Object.assign({},je,{Quantity:"".concat(W.selections.quantity)});Pe(ge)}},m?ot:Xe))}var Bye=(function(e){Yve(t,e);function t(r){al(this,t);var n;return n=Zve(this,t,[r]),n.state={hasError:!1},n}return ed(t,[{key:"componentDidCatch",value:function(n,i){this.props.logging.error("".concat(this.props.name," unexpected error: ").concat(n.message),{error:n,context:i})}},{key:"render",value:function(){var n;return this.state.hasError?(n=this.props.fallback)!==null&&n!==void 0?n:y.createElement(y.Fragment,null):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),t})(y.Component),xO={},qye=1e4;function zye(e){var t=e.analyticsPageData,r=e.mpvId,n=e.productKey,i=e.tenant,a=e.locale,o=e.quantity,s=e.userOptions,c=e.productVersion,l=e.pricingContextString,u=e.vatInc,d=e.requestor,p=e.authToken,g=e.onError,m=e.loader,v=e.children,h=e.studioDocumentUrl,P=pO(function(){return new cO(t,r)}),x=pr(pe(void 0),2),T=x[0],k=x[1],M=pr(pe(s||xO),2),$=M[0],O=M[1],H=pr(pe(!1),2),J=H[0],W=H[1],me="".concat(Pye,": ").concat(d);Ee(function(){nd.getTestUserId().then(function(B){k(B),W(!0)})},[]),Ee(function(){O(s||xO)},[s]);var Z=g??function(){};return y.createElement(Iye,{requestor:me,newRelicApplicationId:Cye,context:{productKey:n,tenant:i,locale:a,quantity:o,userOptions:s,productVersion:c,selections:$},authToken:p},y.createElement(rd.Consumer,null,function(B){return y.createElement(Bye,{name:"upload-flow-component",logging:B},y.createElement($ye,{autoStart:!0,timeoutMs:qye,onTimeout:function(Q,R){return B.error("Component timer timed out - ".concat(Q),{context:{durationMs:R}})},onEndTimer:function(Q,R){R>0&&B.info("Component timer End - ".concat(Q),{context:{durationMs:R}})},onPrematureUnmount:function(Q,R){return B.error("Component timer unmounted before completion - ".concat(Q),{context:{durationMs:R}})}},y.createElement(dO,{analytics:P},J!==!0?y.createElement(y.Fragment,null,m??v):y.createElement(ur.WranglerDataProvider,{productKey:n,productVersion:c,merchant:i,culture:a,selectedAttributes:$||{},initialSelectedAttributes:s||{},deselectCompletedOptions:!0,merchandisingExperience:"UploadFlow",selectedQuantity:o,excludeInitialSelectedAttributes:!0,testUserId:T,requestor:d,documentUrl:h,pricingContextString:l,includeVat:u,disableDocumentModification:!p,priceStyle:"relative"},y.createElement(Fye,hg(On({},e),{testUserId:T,onError:Z,setSelections:O}))))))}))}var Ow=zye;const Vye="category-page";var jye=".standard-hero-content-upload-cta{display:inline-block}.full-height-carousel-content{height:100%}.swan-standard-hero .swan-standard-hero-text-container .standard-hero-content-upload-cta{text-align:left}";const vg=e=>e.toLowerCase()==="vistaprint",Aw=({pageZone:e,uploadFlowMpv:t,skin:r})=>{qr(jye);const{merchandisingCategoryId:n,locale:i,vatInclusivity:a,tenant:o}=et();return t&&vg(o)?f("div",{className:"standard-hero-content-upload-cta",children:f(Ow,{vatInc:a,analyticsPageData:{pageSection:"Category Page",pageStage:"Discover",pageName:`${n}:Category Page`,productName:t.name,coreProductId:t.coreProductId},tenant:o,locale:i,pricingContextString:os.getPricingContext(),mpvId:t.mpvId,loader:f(_O,{disabled:!0,pageZone:e,skin:r}),productKey:t.coreProductId,productName:t.name,productVersion:t.version,quantity:t.quantities?.default,requestor:Vye,children:f(_O,{pageZone:e,skin:r})})}):f(ue,{})},_O=e=>{const{pageZone:t,disabled:r,skin:n}=e,{dictionaryEntries:i}=et();return f(Dt,{className:"standard-hero-cta",skin:n,"data-section":t,"data-translation":"Upload Design CTA",component:"span",disabled:r,children:i.uploadDesign},"standard-hero-upload-design-cta")},$w=(e,t)=>e==="page header"?"Page Header":e==="section header"?`Section Header ${t}`:`Promo Banner ${t}`,kO=e=>{const{merchandisingCategoryId:t,uploadFlowMpv:r}=et(),{type:n,title:i,fontFamily:a,subtitle:o,cta1:s,cta2:c,cta3:l,uploadFlowMpv:u,image:d,imageXs:p,sectionNumber:g,isH1:m}=e,v=$w(n,g),h=[s,c,l],P=Xs(n),x=nT(P,a),T=iT(P,a),k={};x&&(k.fontFamily=x),T&&(k.fontWeight=T);const M=u?.mpvId?r:void 0,$=()=>{const O=h.map((H,J)=>
vendor: 8,190 bytes, lines 377-378
377f(sS,{index:J,cta:H,merchandisingCategoryId:t,pageZone:v,ctaUrlsLength:h.length},`hero-cta-${J}`));if(M){const H=f(Aw,{pageZone:v,uploadFlowMpv:M},"upload-flow-cta");O.splice(1,0,H)}return O};return X(ue,{children:[f(km,{children:X(Mm,{children:[f(Om,{...k,component:m?"h1":"div",children:i?.value}),o&&f(Am,{children:f(ue,{children:o.value})}),f($m,{children:$()})]})}),f(Rm,{children:f(Nm,{children:f(oS,{media:d,mediaXs:p})})})]})},Hye=(e,t,r,n)=>{let i="",a="",o=!0;if(e?.__typename==="globalMerchandisingProductView"){const s=t.find(c=>e.mpvId===c.mpvId);a=r.find(c=>e.mpvId===c.mpvId)?.url||"",i=s?.name||"",o=n.find(c=>e.mpvId===c.mpvId)?.availability||!1}else e?.__typename==="merchandisingCategory"?(a=r.find(s=>e.mpvId===s.mpvId)?.url||"",i=e.name?.value||"",o=n.find(s=>e.mpvId===s.mpvId)?.availability||!1):(a=e?.targetUrl||"",i=e?.text||"");return{text:i,url:a,associatedPageAvailable:o}};/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function MO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Gye(e){if(Array.isArray(e))return e}function Wye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Qye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 378In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zye(e,t){return Gye(e)||Wye(e,t)||Kye(e,t)||Qye()}function Kye(e,t){if(e){if(typeof e=="string")return MO(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MO(e,t):void 0}}const OO=Object.entries,AO=Object.setPrototypeOf,Yye=Object.isFrozen,Xye=Object.getPrototypeOf,Jye=Object.getOwnPropertyDescriptor;let Ur=Object.freeze,Qr=Object.seal,sl=Object.create,$O=typeof Reflect<"u"&&Reflect,Rw=$O.apply,Nw=$O.construct;Ur||(Ur=function(t){return t}),Qr||(Qr=function(t){return t}),Rw||(Rw=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)}),Nw||(Nw=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const Ks=Ir(Array.prototype.forEach),ebe=Ir(Array.prototype.lastIndexOf),RO=Ir(Array.prototype.pop),ad=Ir(Array.prototype.push),tbe=Ir(Array.prototype.splice),cl=Array.isArray,od=Ir(String.prototype.toLowerCase),Dw=Ir(String.prototype.toString),NO=Ir(String.prototype.match),sd=Ir(String.prototype.replace),DO=Ir(String.prototype.indexOf),rbe=Ir(String.prototype.trim),nbe=Ir(Number.prototype.toString),ibe=Ir(Boolean.prototype.toString),LO=typeof BigInt>"u"?null:Ir(BigInt.prototype.toString),UO=typeof Symbol>"u"?null:Ir(Symbol.prototype.toString),Gn=Ir(Object.prototype.hasOwnProperty),cd=Ir(Object.prototype.toString),Sn=Ir(RegExp.prototype.test),Ys=abe(TypeError);function Ir(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Rw(e,t,n)}}function abe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Nw(e,r)}}function wt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:od;if(AO&&AO(e,null),!cl(t))return e;let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(Yye(t)||(t[n]=a),i=a)}e[i]=!0}return e}function obe(e){for(let t=0;t<e.length;t++)Gn(e,t)||(e[t]=null);return e}function oi(e){const t=sl(null);for(const n of OO(e)){var r=Zye(n,2);const i=r[0],a=r[1];Gn(e,i)&&(cl(a)?t[i]=obe(a):a&&typeof a=="object"&&a.constructor===Object?t[i]=oi(a):t[i]=a)}return t}function sbe(e){switch(typeof e){case"string":return e;case"number":return nbe(e);case"boolean":return ibe(e);case"bigint":return LO?LO(e):"0";case"symbol":return UO?UO(e):"Symbol()";case"undefined":return cd(e);case"function":case"object":{if(e===null)return cd(e);const t=e,r=Vi(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:cd(n)}return cd(e)}default:return cd(e)}}function Vi(e,t){for(;e!==null;){const n=Jye(e,t);if(n){if(n.get)return Ir(n.get);if(typeof n.value=="function")return Ir(n.value)}e=Xye(e)}function r(){return null}return r}function cbe(e){try{return Sn(e,""),!0}catch{return!1}}const FO=Ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lw=Ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uw=Ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),lbe=Ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fw=Ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ube=Ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),BO=Ur(["#text"]),qO=Ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
378spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Bw=Ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zO=Ur(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yg=Ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dbe=Qr(/{{[\w\W]*|^[\w\W]*}}/g),pbe=Qr(/<%[\w\W]*|^[\w\W]*%>/g),fbe=Qr(/\${[\w\W]*/g),gbe=Qr(/^data-[\-\w.\u00B7-\uFFFF]+$/),mbe=Qr(/^aria-[\-\w]+$/),VO=Qr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hbe=Qr(/^(?:\w+script|data):/i),vbe=Qr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ybe=Qr(/^html$/i),bbe=Qr(/^[a-z][.\w]*(-[.\w]+)+$/i),jO=Qr(/<[/\w!]/g),HO=Qr(/<[/\w]/g),wbe=Qr(/<\/no(script|embed|frames)/i),Tbe=Qr(/\/>/i),si={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},GO=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Ebe=Ur(wt({},GO)),Sbe=(function(){const e={};return Ks(GO,t=>{e[t]=Qr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ur(e)})(),Pbe=function(){return typeof window>"u"?null:window},Cbe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;
vendor: 19,580 bytes, lines 378-379
378const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},WO=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},zo=function(t,r,n,i){return Gn(t,r)&&cl(t[r])?wt(i.base?oi(i.base):{},t[r],i.transform):n},qw=function(t,r,n){const i=Gn(t,r)?t[r]:void 0;return i&&typeof i=="object"?oi(i):n()};function QO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pbe();const t=z=>QO(z);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==si.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const n=r,i=n.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,d=e.trustedTypes,p=s.prototype,g=Vi(p,"cloneNode"),m=Vi(p,"remove"),v=Vi(p,"nextSibling"),h=Vi(p,"childNodes"),P=Vi(p,"parentNode"),x=Vi(p,"shadowRoot"),T=Vi(p,"attributes"),k=o&&o.prototype?Vi(o.prototype,"nodeType"):null,M=o&&o.prototype?Vi(o.prototype,"nodeName"):null,$=o&&o.prototype?Vi(o.prototype,"ownerDocument"):null,O=function(b){return k?k(b):b.nodeType},H=function(b){return M?M(b):b.nodeName};if(typeof a=="function"){const z=r.createElement("template");z.content&&z.content.ownerDocument&&(r=z.content.ownerDocument)}let J,W="",me,Z=!1,B=0;const Q=function(){if(B>0)throw Ys('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(b){Q(),B++;try{return J.createHTML(b)}finally{B--}},Y=function(b){Q(),B++;try{return J.createScriptURL(b)}finally{B--}},ie=function(){return Z||(me=Cbe(d,i),Z=!0),me},he=r,ye=he.implementation,le=he.createNodeIterator,te=he.createDocumentFragment,Oe=he.getElementsByTagName,ut=n.importNode;let ve=WO();t.isSupported=typeof OO=="function"&&typeof P=="function"&&ye&&ye.createHTMLDocument!==void 0;const Pe=dbe,$t=pbe,Ne=fbe,Le=gbe,Ve=mbe,Xe=hbe,ot=vbe,We=bbe;let je=VO,ge=null;const Ze=wt({},[...FO,...Lw,...Uw,...Fw,...BO]);let fe=null;const it=wt({},[...qO,...Bw,...zO,...yg]);let Qe=Object.seal(sl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,un=null;const mt=Object.seal(sl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xr=!0,or=!0,Fe=!1,ke=!0,Ce=!1,Ie=!0,Ke=!1,St=!1,qe=null,Pt=null,jt=!1,yt=!1,sr=!1,br=!1,di=!0,cr=!1;const Br="user-content-";let wr=!0,Nn=!1,Tr={},dn=null;const Ki=wt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let pi=null;const Yi=wt({},["audio","video","img","source","image","track"]);let Xi=null;const Ji=wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fi="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let fn=Yt,ea=!1,ta=null;const Zo=wt({},[pn,fi,Yt],Dw),ra=Ur(["mi","mo","mn","ms","mtext"]);let gn=wt({},ra);const po=Ur(["annotation-xml"]);let na=wt({},po);const fc=wt({},["title","style","font","a","script"]);let Dn=null;const w=["application/xhtml+xml","text/html"],S="text/html";let E=null,I=null;const A=r.createElement("form"),C=function(b){return b instanceof RegExp||b instanceof Function},N=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(I&&I===b)return;(!b||typeof b!="object")&&(b={}),b=oi(b),Dn=w.indexOf(b.PARSER_MEDIA_TYPE)===-1?S:b.PARSER_MEDIA_TYPE,E=Dn==="application/xhtml+xml"?Dw:od,ge=zo(b,"ALLOWED_TAGS",Ze,{transform:E}),fe=zo(b,"ALLOWED_ATTR",it,{transform:E}),ta=zo(b,"ALLOWED_NAMESPACES",Zo,{transform:Dw}),Xi=zo(b,"ADD_URI_SAFE_ATTR",Ji,{transform:E,base:Ji}),pi=zo(b,"ADD_DATA_URI_TAGS",Yi,{transform:E,base:Yi}),dn=zo(b,"FORBID_CONTENTS",Ki,{transform:E}),gt=zo(b,"FORBID_TAGS",oi({}),{transform:E}),un=zo(b,"FORBID_ATTR",oi({}),{transform:E}),Tr=Gn(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?oi(b.USE_PROFILES):b.USE_PROFILES:!1,Xr=b.ALLOW_ARIA_ATTR!==!1,or=b.ALLOW_DATA_ATTR!==!1,Fe=b.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=b.SAFE_FOR_TEMPLATES||!1,Ie=b.SAFE_FOR_XML!==!1,Ke=b.WHOLE_DOCUMENT||!1,yt=b.RETURN_DOM||!1,sr=b.RETURN_DOM_FRAGMENT||!1,br=b.RETURN_TRUSTED_TYPE||!1,jt=b.FORCE_BODY||!1,di=b.SANITIZE_DOM!==!1,cr=b.SANITIZE_NAMED_PROPS||!1,wr=b.KEEP_CONTENT!==!1,Nn=b.IN_PLACE||!1,je=cbe(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:VO,fn=typeof b.NAMESPACE=="string"?b.NAMESPACE:Yt,gn=qw(b,"MATHML_TEXT_INTEGRATION_POINTS",()=>wt({},ra)),na=qw(b,"HTML_INTEGRATION_POINTS",()=>wt({},po));const _=qw(b,"CUSTOM_ELEMENT_HANDLING",()=>sl(null));if(Qe=sl(null),Gn(_,"tagNameCheck")&&C(_.tagNameCheck)&&(Qe.tagNameCheck=_.tagNameCheck),Gn(_,"attributeNameCheck")&&C(_.attributeNameCheck)&&(Qe.attributeNameCheck=_.attributeNameCheck),Gn(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(Qe.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),Qr(Qe),Ce&&(or=!1),sr&&(yt=!0),Tr&&(ge=wt({},BO),fe=sl(null),Tr.html===!0&&(wt(ge,FO),wt(fe,qO)),Tr.svg===!0&&(wt(ge,Lw),wt(fe,Bw),wt(fe,yg)),Tr.svgFilters===!0&&(wt(ge,Uw),wt(fe,Bw),wt(fe,yg)),Tr.mathMl===!0&&(wt(ge,Fw),wt(fe,zO),wt(fe,yg))),mt.tagCheck=null,mt.attributeCheck=null,Gn(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?mt.tagCheck=b.ADD_TAGS:cl(b.ADD_TAGS)&&(ge===Ze&&(ge=oi(ge)),wt(ge,b.ADD_TAGS,E))),Gn(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?mt.attributeCheck=b.ADD_ATTR:cl(b.ADD_ATTR)&&(fe===it&&(fe=oi(fe)),wt(fe,b.ADD_ATTR,E))),Gn(b,"ADD_FORBID_CONTENTS")&&cl(b.ADD_FORBID_CONTENTS)&&(dn===Ki&&(dn=oi(dn)),wt(dn,b.ADD_FORBID_CONTENTS,E)),wr&&(ge["#text"]=!0),Ke&&wt(ge,["html","head","body"]),ge.table&&(wt(ge,["tbody"]),delete gt.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ys('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ys('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const U=J;J=b.TRUSTED_TYPES_POLICY;try{W=R("")}catch(K){throw J=U,K}}else b.TRUSTED_TYPES_POLICY===null?(J=void 0,W=""):(J===void 0&&(J=ie()),J&&typeof W=="string"&&(W=R("")));Ur&&Ur(b),I=b},F=wt({},[...Lw,...Uw,...lbe]),q=wt({},[...Fw,...ube]),G=function(b,_,U){return _.namespaceURI===Yt?b==="svg":_.namespaceURI===pn?b==="svg"&&(U==="annotation-xml"||gn[U]):!!F[b]},V=function(b,_,U){return _.namespaceURI===Yt?b==="math":_.namespaceURI===fi?b==="math"&&na[U]:!!q[b]},ee=function(b,_,U){return _.namespaceURI===fi&&!na[U]||_.namespaceURI===pn&&!gn[U]?!1:!q[b]&&(fc[b]||!F[b])},se=function(b){let _=P(b);(!_||!_.tagName)&&(_={namespaceURI:fn,tagName:"template"});const U=od(b.tagName),K=od(_.tagName);return ta[b.namespaceURI]?b.namespaceURI===fi?G(U,_,K):b.namespaceURI===pn?V(U,_,K):b.namespaceURI===Yt?ee(U,_,K):!!(Dn==="application/xhtml+xml"&&ta[b.namespaceURI]):!1},be=function(b){ad(t.removed,{element:b});try{P(b).removeChild(b)}catch{if(m(b),!P(b))throw Ys("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},xe=function(b,_,U){try{b.removeAttributeNode(_)}catch{try{b.removeAttribute(U)}catch{}}},st=function(b){Ht(b);const _=h(b);if(_){const K=[];Ks(_,re=>{ad(K,re)}),Ks(K,re=>{try{m(re)}catch{}})}const U=T(b);if(U)for(let K=U.length-1;K>=0;--K){const re=U[K],de=re&&re.name;typeof de=="string"&&xe(b,re,de)}},He=function(b,_,U){if(!U)try{U=_.getAttributeNode(b)}catch{U=null}ad(t.removed,{attribute:U||null,from:_});try{U?_.removeAttributeNode(U):_.removeAttribute(b)}catch{try{_.removeAttribute(b)}catch{}}if(b==="is")if(yt||sr)try{be(_)}catch{}else try{_.setAttribute(b,"")}catch{}},In=function(b){const _=T(b);if(_)for(let U=_.length-1;U>=0;--U){const K=_[U],re=K&&K.name;typeof re!="string"||fe[E(re)]||xe(b,K,re)}},Ht=function(b){const _=[b];for(;_.length>0;){const U=_.pop();O(U)===si.element&&In(U);const re=h(U);if(re)for(let de=re.length-1;de>=0;--de)_.push(re[de])}},Wt=function(b,_){return Ie?b==="patchsrc"?!0:b==="for"&&_!=="label"&&_!=="output":!1},kr=function(b){if(!Ie)return;const _=[b];for(;_.length>0;){const U=_.pop(),K=O(U);if(K===si.processingInstruction||K===si.comment&&Sn(HO,U.data)){try{m(U)}catch{}continue}if(K===si.element){const de=U,Ae=E(H(U));try{de.hasAttribute&&de.hasAttribute("patchsrc")&&de.removeAttribute("patchsrc"),de.hasAttribute&&de.hasAttribute("for")&&Wt("for",Ae)&&de.removeAttribute("for")}catch{}}const re=h(U);if(re)for(let de=re.length-1;de>=0;--de)_.push(re[de])}},ki=function(b){let _=null,U=null;if(jt)b="<remove></remove>"+b;else{const de=NO(b,/^[\r\n\t ]+/);U=de&&de[0]}Dn==="application/xhtml+xml"&&fn===Yt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const K=J?R(b):b;if(fn===Yt)try{_=new u().parseFromString(K,Dn)}catch{}if(!_||!_.documentElement){_=ye.createDocument(fn,"template",null);try{_.documentElement.innerHTML=ea?W:K}catch{}}const re=_.body||_.documentElement;return b&&U&&re.insertBefore(r.createTextNode(U),re.childNodes[0]||null),fn===Yt?Oe.call(_,Ke?"html":"body")[0]:Ke?_.documentElement:re},xn=function(b){const _=$?$(b):b.ownerDocument;return le.call(_||b,b,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jr=function(b){return b=sd(b,Pe," "),b=sd(b,$t," "),b=sd(b,Ne," "),b},Yn=function(b){var _;b.normalize();const U=$?$(b):b.ownerDocument,K=le.call(U||b,b,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let re=K.nextNode();for(;re;)re.data=Jr(re.data),re=K.nextNode();const de=(_=b.querySelectorAll)===null||_===void 0?void 0:_.call(b,"template");de&&Ks(de,Ae=>{Mr(Ae.content)&&Yn(Ae.content)})},Er=function(b){const _=M?M(b):null;return typeof _!="string"||E(_)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==T(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==k(b)||b.childNodes!==h(b)},Mr=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return k(b)===si.documentFragment}catch{return!1}},Qt=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return typeof k(b)=="number"}catch{return!1}};function Gt(z,b,_){z.length!==0&&Ks(z,U=>{U.call(t,b,_,I)})}const La=function(b,_){return!!(Ie&&b.hasChildNodes()&&!Qt(b.firstElementChild)&&Sn(jO,b.textContent)&&Sn(jO,b.innerHTML)||Ie&&b.namespaceURI===Yt&&Ebe[_]&&(Qt(b.firstElementChild)||typeof b.textContent=="string"&&Sn(Sbe[_],b.textContent))||b.nodeType===si.processingInstruction||Ie&&b.nodeType===si.comment&&Sn(HO,b.data))},Ln=function(b,_){if(b instanceof RegExp)return Sn(b,_);if(b instanceof Function){for(var U=arguments.length,K=new Array(U>2?U-2:0),re=2;re<U;re++)K[re-2]=arguments[re];return!!b(_,...K)}return!1},fr=function(b,_,U){if(!gt[_]&&Mi(_)&&Ln(Qe.tagNameCheck,_))return!1;if(wr&&!dn[_]){const K=P(b),re=h(b);if(re&&K){const de=re.length;for(let Ae=de-1;Ae>=0;--Ae){const Ue=b===U?g(re[Ae],!0):re[Ae];K.insertBefore(Ue,v(b))}}}return be(b),!0},ht=function(b,_,U,K){return b.length===0?_:_===U||_===K?oi(_):_},gc=function(b,_){return b===_||P(b)!==null?!1:(Nn&&Ht(b),!0)},mc=function(b,_){if(Gt(ve.beforeSanitizeElements,b,null),gc(b,_))return!0;if(Er(b))return be(b),!0;const U=E(H(b));if(ge=ht(ve.uponSanitizeElement,ge,Ze,qe),Gt(ve.uponSanitizeElement,b,{tagName:U,allowedTags:ge}),gc(b,_))return!0;if(La(b,U))return be(b),!0;if(gt[U]||!(mt.tagCheck instanceof Function&&mt.tagCheck(U))&&!ge[U]){const re=fr(b,U,_);return re===!1&&Gt(ve.afterSanitizeElements,b,null),re}if(O(b)===si.element&&!se(b)||(U==="noscript"||U==="noembed"||U==="noframes")&&Sn(wbe,b.innerHTML))return be(b),!0;if(Ce&&b.nodeType===si.text){const re=Jr(b.textContent);b.textContent!==re&&(ad(t.removed,{element:b.cloneNode()}),b.textContent=re)}return Gt(ve.afterSanitizeElements,b,null),!1},Ko=function(b,_,U){if(un[_]||Wt(_,b)||di&&(_==="id"||_==="name")&&(U in r||U in A))return!1;const K=fe[_]||mt.attributeCheck instanceof Function&&mt.attributeCheck(_,b);return or&&Sn(Le,_)||Xr&&Sn(Ve,_)?!0:K?Xi[_]||Sn(je,sd(U,ot,""))||(_==="src"||_==="xlink:href"||_==="href")&&b!=="script"&&DO(U,"data:")===0&&pi[b]||Fe&&!Sn(Xe,sd(U,ot,""))?!0:!U:Mi(b)&&Ln(Qe.tagNameCheck,b)&&Ln(Qe.attributeNameCheck,_,b)||_==="is"&&Qe.allowCustomizedBuiltInElements&&Ln(Qe.tagNameCheck,U)},Yo=wt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Mi=function(b){return!Yo[od(b)]&&Sn(We,b)},Pd=function(b,_,U,K){if(J&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!U)switch(d.getAttributeType(b,_)){case"TrustedHTML":return R(K);case"TrustedScriptURL":return Y(K)}return K},Cd=function(b,_,U,K){try{U?b.setAttributeNS(U,_,K):b.setAttribute(_,K),Er(b)?be(b):RO(t.removed)}catch{He(_,b)}},Xn=function(b){Gt(ve.beforeSanitizeAttributes,b,null);const _=b.attributes;if(!_||Er(b))return;fe=ht(ve.uponSanitizeAttribute,fe,it,Pt);const U={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:fe,forceKeepAttr:void 0};let K=_.length;const re=E(b.nodeName);for(;K--;){const de=_[K],Ae=de.name,Ue=de.namespaceURI,Ot=de.value,Ct=E(Ae),Ua=Ot;let bt=Ae==="value"?Ua:rbe(Ua);if(U.attrName=Ct,U.attrValue=bt,U.keepAttr=!0,U.forceKeepAttr=void 0,Gt(ve.uponSanitizeAttribute,b,U),bt=U.attrValue,cr&&(Ct==="id"||Ct==="name")&&DO(bt,Br)!==0&&(He(Ae,b,de),bt=Br+bt),Ie&&Sn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,bt)){He(Ae,b,de);continue}if(Ct==="attributename"&&NO(bt,"href")){He(Ae,b,de);continue}if(!U.forceKeepAttr){if(!U.keepAttr){He(Ae,b,de);continue}if(!ke&&Sn(Tbe,bt)){He(Ae,b,de);continue}if(Ce&&(bt=Jr(bt)),!Ko(re,Ct,bt)){He(Ae,b,de);continue}bt=Pd(re,Ct,Ue,bt),bt!==Ua&&Cd(b,Ae,Ue,bt)}}Gt(ve.afterSanitizeAttributes,b,null)},ia=function(b){let _=null;const U=xn(b);for(Gt(ve.beforeSanitizeShadowDOM,b,null);_=U.nextNode();)if(Gt(ve.uponSanitizeShadowNode,_,null),mc(_,b),Xn(_),Mr(_.content)&&ia(_.content),O(_)===si.element){const K=x(_);Mr(K)&&(fo(K),ia(K))}Gt(ve.afterSanitizeShadowDOM,b,null)},fo=function(b){const _=[{node:b,shadow:null}];for(;_.length>0;){const U=_.pop();if(U.shadow){ia(U.shadow);continue}const K=U.node,de=O(K)===si.element,Ae=h(K);if(Ae)for(let Ue=Ae.length-1;Ue>=0;--Ue)_.push({node:Ae[Ue],shadow:null});if(de){const Ue=M?M(K):null;if(typeof Ue=="string"&&E(Ue)==="template"){const Ot=K.content;Mr(Ot)&&_.push({node:Ot,shadow:null})}}if(de){const Ue=x(K);Mr(Ue)&&_.push({node:null,shadow:Ue},{node:Ue,shadow:null})}}};return t.sanitize=function(z){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,U=null,K=null,re=null;if(ea=!z,ea&&(z="<!-->"),typeof z!="string"&&!Qt(z)&&(z=sbe(z),typeof z!="string"))throw Ys("dirty is not a string, aborting");if(!t.isSupported)return z;St?(ge=qe,fe=Pt):N(b),(ve.uponSanitizeElement.length>0||ve.uponSanitizeAttribute.length>0)&&(ge=oi(ge)),ve.uponSanitizeAttribute.length>0&&(fe=oi(fe)),t.removed=[];const de=Nn&&typeof z!="string"&&Qt(z);if(de){kr(z);const Ot=H(z);if(typeof Ot=="string"){const Ct=E(Ot);if(!ge[Ct]||gt[Ct])throw st(z),Ys("root node is forbidden and cannot be sanitized in-place")}if(Er(z))throw st(z),Ys("root node is clobbered and cannot be sanitized in-place");try{fo(z)}catch(Ct){throw st(z),Ct}}else if(Qt(z))_=ki("<!---->"),U=_.ownerDocument.importNode(z,!0),U.nodeType===si.element&&U.nodeName==="BODY"||U.nodeName==="HTML"?_=U:_.appendChild(U),fo(U);else{if(!yt&&!Ce&&!Ke&&z.indexOf("<")===-1)return J&&br?R(z):z;if(_=ki(z),!_)return yt?null:br?W:""}_&&jt&&be(_.firstChild);const Ae=de?z:_;try{const Ot=xn(Ae);for(;K=Ot.nextNode();)mc(K,Ae),Xn(K),Mr(K.content)&&ia(K.content)}catch(Ot){throw de&&(st(z),Ks(t.removed,Ct=>{Ct.element&&Ht(Ct.element)})),Ot}if(de)return Ks(t.removed,Ot=>{Ot.element&&Ht(Ot.element)}),Ce&&Yn(z),z;if(yt){if(Ce&&Yn(_),sr)for(re=te.call(_.ownerDocument);_.firstChild;)re.appendChild(_.firstChild);else re=_;return(fe.shadowroot||fe.shadowrootmode)&&(re=ut.call(n,re,!0)),re}let Ue=Ke?_.outerHTML:_.innerHTML;return Ke&&ge["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&Sn(ybe,_.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+_.ownerDocument.doctype.name+`> 379`+Ue),Ce&&(Ue=Jr(Ue)),J&&br?R(Ue):Ue},t.setConfig=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};N(z),St=!0,qe=ge,Pt=fe},t.clearConfig=function(){I=null,St=!1,qe=null,Pt=null,J=me,W=""},t.isValidAttribute=function(z,b,_){I||N({});const U=E(z),K=E(b);return Ko(U,K,_)},t.addHook=function(z,b){typeof b=="function"&&Gn(ve,z)&&ad(ve[z],b)},t.removeHook=function(z,b){if(Gn(ve,z)){if(b!==void 0){const _=ebe(ve[z],b);return _===-1?void 0:tbe(ve[z],_,1)[0]}return RO(ve[z])}},t.removeHooks=function(z){Gn(ve,z)&&(ve[z]=[])},t.removeAllHooks=function(){ve=WO()},t}var ZO=QO(),Ibe="Upload design",xbe="Upload design",_be="Upload from this device",kbe="or drag and drop here",Mbe="Only one file can be uploaded at a time",Obe="More upload options",Abe="Google Photos",$be="Google Drive",Rbe="Upload from phone",Nbe="Brand Kit logos",Dbe="Recent uploads",Lbe="Show more",Ube="Your uploaded files will appear here once you add them",Fbe="Your upload",Bbe="Replace",qbe="Delete",zbe="Deleting...",Vbe="Loading...",jbe="Uploading...",Hbe="Loading more assets...",Gbe="Loading more assets is finished",Wbe="Uploading started",Qbe="Uploading finished",Zbe="An error occurred during the upload",Kbe="Skip assets list",Ybe="Image is used in Design",Xbe="Back",Jbe="Specs and templates",ewe="Sign in to access saved uploads",twe="Sign in",rwe="Upload your design",nwe="Upload your image",iwe="Upload your logo",awe="Delete the image?",owe="Are you sure you want to delete this image?",swe="Cancel",cwe="Delete",lwe="Apply {count} images",uwe="Clear selection",dwe="QR code",pwe="Scan to upload from phone",fwe="This upload URL will expire in {minutes}:{seconds}",gwe="QR code was expired",mwe="To continue, refresh the generated code",hwe="Refresh",vwe="Loading...",ywe="Creating new QR Code",bwe="Download detailed guidelines",wwe="Specs and templates are not available for this product",Twe="Accepted file formats",Ewe="Templates",Swe="Create a print-ready file by downloading a template.",Pwe="Design Specs",Cwe="To avoid white edges, extend your design to the bleed line \u2013 but keep text and images within the safety area.",Iwe="Bleed",xwe="Trim",_we="Safety",kwe="Height",Mwe="Width",Owe='{length}"',Awe='{width}"',$we="{length}
379mm",Rwe="{width}mm",Nwe="Safe Area",Dwe={UploadModalTitle:Ibe,UploadButtonLabel:xbe,UploadFromThisDeviceLabel:_be,DragAndDropHintLabel:kbe,DragAndDropMultiFileErrorMessage:Mbe,UploadOptionsDropdownButtonLabel:Obe,UploadOptionsGooglePhotosLabel:Abe,UploadOptionsGoogleDriveLabel:$be,UploadOptionsPhoneLabel:Rbe,BrandKitLogosLabel:Nbe,RecentlyUploadedLabel:Dbe,ShowMoreLabel:Lbe,EmptyAssetListLabel:Ube,YourUploadLabel:Fbe,ReplaceButtonLabel:Bbe,DeleteButtonTitle:qbe,DeletingLabel:zbe,LoadingLabel:Vbe,UploadingLabel:jbe,LoadingMoreAssetsLabel:Hbe,LoadingMoreAssetsFinishedLabel:Gbe,UploadingStartAnnouncement:Wbe,UploadingFinishedAnnouncement:Qbe,UploadingErrorAnnouncement:Zbe,SkipAssetsListHiddenButton:Kbe,AssetInUseLabel:Ybe,BackLabel:Xbe,GuidesAndTemplatesLabel:Jbe,SignInPromptLabel:ewe,SignInButtonLabel:twe,ContextualCalloutDesignLabel:rwe,ContextualCalloutImageLabel:nwe,ContextualCalloutLogoLabel:iwe,DeleteConfirmationDialogTitle:awe,DeleteConfirmationDialogMessage:owe,DeleteConfirmationCancelButton:swe,DeleteConfirmationConfirmButton:cwe,MultiSelectApplyImagesLabel:lwe,MultiSelectClearSelectionLabel:uwe,QrUploadLabel:dwe,QrUploadModalDialogTitle:pwe,QrUploadExpireText:fwe,QrUploadRegenerateTitle:gwe,QrUploadRegenerateSubTitle:mwe,QrUploadRegenerateButton:hwe,QrUploadLoadingLabel:vwe,QrUploadGeneratingText:ywe,SpecsGuidelinesButtonLabel:bwe,SpecsUnavailableLabel:wwe,SpecsFileFormatHeader:Twe,SpecsTemplateHeader:Ewe,SpecsTemplateDesc:Swe,SpecsDesignSpecHeader:Pwe,SpecsDesignSpecDescLine:Cwe,SpecsBleedLabel:Iwe,SpecsTrimLabel:xwe,SpecsSafeLabel:_we,SpecsHeightLabel:kwe,SpecsWidthLabel:Mwe,SpecsLengthInInch:Owe,SpecsWidthInInch:Awe,SpecsLengthInMM:$we,SpecsWidthInMM:Rwe,SpecsSafeArea:Nwe};const KO="en-us",zw={[KO]:Dwe},Lwe={"en-ca":"en-us","en-ie":"en-gb","en-nz":"en-gb","en-sg":"en-gb","de-at":"de-de","de-ch":"de-de","fr-be":"fr-fr","fr-ch":"fr-fr","it-ch":"it-it","nl-be":"nl-nl","en-au":"en-gb","en-in":"en-us"},Uwe=(e,t)=>e,Fwe=e=>{try{return typeof ZO.sanitize=="function"?ZO.sanitize(e):e}catch{return e}},YO=(e,t,r)=>{const n=t.toLowerCase(),i=Lwe[n],a=zw[n]?.[e]??(i&&zw[i]?.[e])??zw[KO]?.[e]??e;return Fwe(Uwe(a))},XO={UploadModalTitle:"UploadModalTitle",UploadButtonLabel:"UploadButtonLabel"},Bwe=({locale:e})=>{const[t,r]=pe(!1);return X(ue,{children:[X(Dt,{skin:"secondary",iconPosition:"left",onClick:()=>r(!0),children:[f(hn,{iconType:"upload"}),YO(XO.UploadButtonLabel,e)]}),f(xl,{isOpen:t,onlyRenderWhenOpen:!0,onRequestDismiss:()=>r(!1),children:X(_l,{children:[f(Ud,{children:f(Fd,{})}),f(kl,{children:f(Ml,{children:YO(XO.UploadModalTitle,e)})}),f(Ol,{children:f(G0,{children:"Upload and design recommendations will appear here."})})]})})]})},Vw="related_products_frequently_ordered_automation",bg="upload_first_flow",qwe="test",zwe=["standingBanners","standingbanners","hangingBanners"],JO=(e,t)=>zwe.includes(e)&&(!t||vg(t)),Vwe=(e,t,r)=>JO(e,r)&&t?.[bg]===qwe,jwe=(e,t,r)=>JO(e,r)&&!!t?.[bg],eA="Category Page",Hwe="Discover",Gwe="Page Header",Wwe=()=>{const{auth:e,calloutsData:t,calloutsLocalization:r,experiments:n,locale:i,logger:a,merchandisingCategoryId:o,mpvs:s,pageLevel:c,rawProductRecommendations:l,reviewsData:u,tenant:d}=et(),[p,g]=pe(void 0);Ee(()=>{e?.isSignedIn&&g(e.isSignedIn())},[e]);const m=Vwe(o,n,d),v=ZTe(),h=Ye(()=>({locale:i,tenant:d,categoryMpvId:o,pageLevel:c??null,recommendations:l?.bestsellers??null,productAvailability:s,...u!==void 0&&{reviews:u},callouts:t,calloutsLocalization:r,...p!==void 0&&{isSignedIn:p},...e?.getAuthorizationHeader!==void 0&&{getAuthorizationHeader:e.getAuthorizationHeader},...v!==void 0&&{tracker:v},trackingContext:{pageSection:eA,pageStage:Hwe,pageName:`${o}:${eA}`,triggerLocation:Gwe},onError:P=>a?.error(P.message)}),[e,t,r,p,i,a,o,s,c,l,u,d,v]);return m?f(ct,{mt:"5",children:f(Bwe,{...h})}):null},Qwe=e=>{const{title:t,fontFamily:r,subtitle:n,type:i,showUploadFirstCta:a}=e,o=Xs(i),s=nT(o,r),c=iT(o,r),l={};return s&&(l.fontFamily=s),c&&(l.fontWeight=c),f(Jn,{mb:"between-sections",children:f(vn,{children:f(Be,{children:X(_e,{span:6,spanXs:12,children:[i!=="section header"&&i!=="promo banner"?f(W0,{...l,mt:"7",mb:"6",children:t.value}):f(we,{mt:"7",mb:"6",children:t.value}),f(we,{children:n?.value}),a&&f(Wwe,{})]})})})})},Zwe=({url:e,text:t})=>f(Dm,{style:{backgroundColor:"pink"},children:f(It,{href:e,children:`${t} - Unavailable (Won't show in prod)`})}),Kwe=e=>{const{debugMode:t}=et();return!e&&t};let jw=class extends Gd{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){const{logger:n,context:i={}}=this.props;n?n.error("ErrorBoundary caught an error",{error:t.message,stack:t.stack,componentStack:r.componentStack,...i}):console.error("ErrorBoundary caught an error:",{error:t.message,stack:t.stack,componentStack:r.componentStack,...i})}render(){return this.state.hasError?this.props.debug?X("div",{style:{padding:"20px",border:"1px solid #ff6b6b",borderRadius:"4px",backgroundColor:"#ffe0e0",color:"#d63031"},children:[f("div",{children:"Something went wrong"}),f("p",{children:"An error occurred while rendering this component."})]}):this.props.fallback?this.props.fallback:null:this.props.children}};const Hw=e=>{const{auth:t,locale:r,logger:n,debugMode:i}=et(),[a,o]=pe(void 0),[s,c]=pe(void 0),{bannerProps:l,headerType:u,sectionNumber:d,sidebar:p,sidebarEnabled:g,leftNav:m,useH1ForTitle:v}=e;Ee(()=>{if(t){o(t.isSignedIn());const $=t.getProfile();c($?.["https://claims.cimpress.io/canonical_id"])}},[t]);const h=u==="Side by Side Hero"?"Side by Side Hero":$w(u,d),{merchandisingCategoryId:P,uploadFlowMpv:x}=et();l.forEach($=>{const O=H=>{H&&!H.altTextOverride&&(H.altTextOverride="")};Array.isArray($.bannerImage)?$.bannerImage.forEach(H=>O(H.imageSrc)):O($.bannerImage.imageSrc)});const T=Et(($,O)=>O&&x&&x.mpvId===O?f(Aw,{pageZone:h,uploadFlowMpv:x,skin:$},"upload-flow-cta"):null,[x,h]),k=($,{destinationUrl:O,ctaPosition:H})=>{An({categoryId:P,pageZone:h,ctaValue:`CTA ${H}`,destinationUrl:O??" "})};if(g&&p)return f(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:f(jw,{logger:n,debug:i,context:{component:"BannerWrapper",sidebarEnabled:!0,bannerProps:l,merchandisingCategoryId:P,locale:r},children:f(ih,{bannerProps:l,trackingHandler:k,leftNav:m,extraProps:{useH1ForTitle:v},isSignedIn:a,customerId:s,locale:r,gmpvFlowFunction:T})})});const M=f(jw,{logger:n,debug:i,context:{component:"BannerWrapper",sidebarEnabled:!1,bannerProps:l,merchandisingCategoryId:P,locale:r},children:f(ih,{bannerProps:l,trackingHandler:k,gmpvFlowFunction:T,extraProps:{useH1ForTitle:v},isSignedIn:a,customerId:s,locale:r})});return f(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:g?f(qd,{"data-testid":"bannerWithSideNav",children:M}):M})},tA={white:{code:"#ffffff",mode:{dark:!1,standard:!0},displayName:"White"},warmWhite:{code:"#f6f6ec",mode:{dark:!1,standard:!0},displayName:"Warm White"},vistaBlue:{code:"#6fd0f5",mode:{dark:!1,standard:!0},displayName:"Vista Blue"},mediumBlue:{code:"#2BA8E0",mode:{dark:!1,standard:!0},displayName:"Vista Blue Medium"},deepBlue:{code:"#006196",mode:{dark:!0,standard:!0},displayName:"Vista Deep Blue"},midnight:{code:"#2f3a53",mode:{dark:!0,standard:!1},displayName:"Midnight"},black900:{code:"#000000",mode:{dark:!0,standard:!1},displayName:"Black"}},rA={softSunkissed:{code:"#F3CB72",mode:{dark:!1,standard:!0},displayName:"Sunkissed"},mainPeach:{code:"#FFB08C",mode:{dark:!1,standard:!0},displayName:"Peach"},deepAperol:{code:"#EE6E58",mode:{dark:!1,standard:!0},displayName:"Aperol"},accentJade:{code:"#00B16B",mode:{dark:!1,standard:!0},displayName:"Jade"}},nA={canary:{code:"#FFCC43",mode:{dark:!1,standard:!0}
379,displayName:"Canary"},pistachio:{code:"#B2C660",mode:{dark:!1,standard:!0},displayName:"Pistachio"},monstera:{code:"#60A64E",mode:{dark:!1,standard:!0},displayName:"Monstera"},papaya:{code:"#F47944",mode:{dark:!1,standard:!0},displayName:"Papaya"}},iA={cream:{code:"#ECDBC4",mode:{dark:!1,standard:!0},displayName:"Cream"},cinnamon:{code:"#E77B40",mode:{dark:!1,standard:!0},displayName:"Cinnamon"},copper:{code:"#983A1B",mode:{dark:!0,standard:!1},displayName:"Copper"},ocean:{code:"#3C5351",mode:{dark:!0,standard:!1},displayName:"Ocean"}},aA={frost:{code:"#D9DCEC",mode:{dark:!1,standard:!0},displayName:"Frost"},teal:{code:"#56ADA9",mode:{dark:!1,standard:!0},displayName:"Teal"},pine:{code:"#285E57",mode:{dark:!0,standard:!1},displayName:"Pine"},pomegranate:{code:"#88284E",mode:{dark:!0,standard:!1},displayName:"Pomegranate"}},oA={holiday:{code:"#9a0202",mode:{dark:!0,standard:!1},displayName:"Holiday"},green2:{code:"#06462e",mode:{dark:!0,standard:!1},displayName:"Green2"},green1:{code:"#50af60",mode:{dark:!1,standard:!0},displayName:"Green1"},red1:{code:"#8b0d13",mode:{dark:!0,standard:!1},displayName:"Red1"},red2:{code:"#8b0d13",mode:{dark:!0,standard:!1},displayName:"Red2"},beige1:{code:"#ede3cf",mode:{dark:!1,standard:!0},displayName:"Beige1"},grey950:{code:"#1D1D1D",mode:{dark:!0,standard:!1},displayName:"Grey950"},meringue:{code:"#EDE3CF",mode:{dark:!1,standard:!0},displayName:"Meringue"},eucalyptus:{code:"#50AF60",mode:{dark:!1,standard:!0},displayName:"Eucalyptus"},evergreen:{code:"#06462E",mode:{dark:!0,standard:!1},displayName:"Evergreen"},candyCane:{code:"#8B0D13",mode:{dark:!0,standard:!1},displayName:"Candy Cane"}},sA={rum:{code:"#c94b2f",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Rum"},talavera:{code:"#2b3b55",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Talavera"},atlantic:{code:"#16618c",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Atlantic"},kingfisher:{code:"#017eb4",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Kingfisher"},rio:{code:"#99d3f3",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Rio"},caspian:{code:"#204949",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Caspian"},celtic:{code:"#046240",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Celtic"},emerald:{code:"#0a806b",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Emerald"},mediumGreen:{code:"#318643",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Medium Green"},opal:{code:"#c0e6df",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Opal"},black900:{code:"#000000",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Black"},graphite:{code:"#313131",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Graphite"},mediumGrey:{code:"#dfdfdf",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Medium Grey"},platinum:{code:"#efefef",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Platinum"}},cA=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sA),tA),oA),iA),rA),nA),aA),lA={npDeepNavy:{code:"#080A54",mode:{dark:!0,standard:!0},displayName:"Deep Navy"},npTeal:{code:"#019497",mode:{dark:!1,standard:!0},displayName:"Teal"},npLavender:{code:"#C29CCD",mode:{dark:!1,standard:!0},displayName:"Lavender"},npPink:{code:"#EF4873",mode:{dark:!1,standard:!0},displayName:"Pink"},npBlack:{code:"#000000",mode:{dark:!0,standard:!0},displayName:"Black"},npWhite:{code:"#FFFFFF",mode:{dark:!1,standard:!0},displayName:"White"},npLightGrey:{code:"#E2E2E2",mode:{dark:!1,standard:!0},displayName:"Light Grey"}},uA={npCoral:{code:"#F28756",mode:{dark:!1,standard:!0},displayName:"Coral"},npSunnyYellow:{code:"#FFCD3D",mode:{dark:!1,standard:!0},displayName:"Sunny Yellow"},npPaleLemon:{code:"#ECEBA0",mode:{dark:!1,standard:!0},displayName:"Pale Lemon"},npOffWhite:{code:"#F5F5F5",mode:{dark:!1,standard:!0},displayName:"Off White"}},dA={npSage:{code:"#A5BF78",mode:{dark:!1,standard:!0},displayName:"Sage"},npTan:{code:"#F2CDA1",mode:{dark:!1,standard:!0},displayName:"Tan"},npAmber:{code:"#FF9E37",mode:{dark:!1,standard:!0},displayName:"Amber"},npEspresso:{code:"#7C3002",mode:{dark:!0,standard:!0},displayName:"Espresso"}},pA={npIceBlue:{code:"#F0F5FF",mode:{dark:!1,standard:!0},displayName:"Ice Blue"},npPowderBlue:{code:"#C1D7EE",mode:{dark:!1,standard:!0},displayName:"Powder Blue"},npBrightCyan:{code:"#20B0E5",mode:{dark:!1,standard:!0},displayName:"Bright Cyan"},npCoolGrey:{code:"#ADAFBD",mode:{dark:!1,standard:!0},displayName:"Cool Grey"}},fA={npMint:{code:"#ADD8D4",mode:{dark:!1,standard:!0},displayName:"Mint"},npSkyBlue:{code:"#99D1E0",mode:{dark:!1,standard:!0},displayName:"Sky Blue"},npWarmTan:{code:"#D6B69D",mode:{dark:!1,standard:!0},displayName:"Warm Tan"},npSeafoam:{code:"#3FBEB7",mode:{dark:!1,standard:!0},displayName:"Seafoam"}},gA={npBurgundy:{code:"#8F2C49",mode:{dark:!0,standard:!0},displayName:"Burgundy"},npCrimson:{code:"#A01E3B",mode:{dark:!0,standard:!0},displayName:"Crimson"},npRed:{code:"#DA3A3E",mode:{dark:!1,standard:!0},displayName:"Red"},npGold:{code:"#EAC87D",mode:{dark:!1,standard:!0},displayName:"Gold"},npPaleMint:{code:"#D8E3DD",mode:{dark:!1,standard:!0},displayName:"Pale Mint"},npForestGreen:{code:"#053F25",mode:{dark:!0,standard:!0},displayName:"Forest Green"},npIvory:{code:"#F6F5F2",mode:{dark:!1,standard:!0},displayName:"Ivory"},npBlush:{code:"#EADDD5",mode:{dark:!1,standard:!0},displayName:"Blush"},npNavy:{code:"#02528C",mode:{dark:!0,standard:!0},displayName:"Navy"},npBabyBlue:{code:"#CDE5F6",mode:{dark:!1,standard:!0},displayName:"Baby Blue"}},mA={npSalmon:{code:"#FFC6B7",mode:{dark:!1,standard:!0},displayName:"Salmon"},npBeige:{code:"#E0D5C7",mode:{dark:!1,standard:!0},displayName:"Beige"},npSteelBlue:{code:"#527FA1",mode:{dark:!1,standard:!0},displayName:"Steel Blue"},npLilac:{code:"#D7BFE7",mode:{dark:!1,standard:!0},displayName:"Lilac"},npSoftLavender:{code:"#F9F2FF",mode:{dark:!1,standard:!0},displayName:"Soft Lavender"},npBubblegum:{code:"#FDADC2",mode:{dark:!1,standard:!0},displayName:"Bubblegum"},npSoftPink:{code:"#FBF0F4",mode:{dark:!1,standard:!0},displayName:"Soft Pink"},npMutedPurple:{code:"#8384A9",mode:{dark:!1,standard:!0},displayName:"Muted Purple"}
379,npIcyMint:{code:"#F2FFFE",mode:{dark:!1,standard:!0},displayName:"Icy Mint"},npDarkGrey:{code:"#595959",mode:{dark:!0,standard:!0},displayName:"Dark Grey"},npVibrantGreen:{code:"#257D17",mode:{dark:!1,standard:!0},displayName:"Vibrant Green"},npChartreuse:{code:"#C1BD53",mode:{dark:!1,standard:!0},displayName:"Chartreuse"},npTangerine:{code:"#F27827",mode:{dark:!1,standard:!0},displayName:"Tangerine"},npPlatinum:{code:"#F0EFEE",mode:{dark:!1,standard:!0},displayName:"Platinum"}},hA=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lA),uA),dA),pA),fA),gA),mA),ld={merged:cA,categorized:{Brand:tA,Summer:nA,Fall:iA,Winter:aA,Spring:rA,Holiday:oA,Marketing:sA},deprecatedCategories:["Marketing"]},vA={p0rr4c9t7js3:ld,olowdmhx072v:ld,vutkdqi6trjg:ld,"9yjwzxk07tr8":ld,bixolu1xw43d:{merged:hA,categorized:{"Brand | Primary":lA,Summer:uA,Fall:dA,Winter:pA,Spring:fA,Holidays:gA,Marketing:mA}}},Ywe=ld,Xwe=e=>e&&vA[e]?vA[e]:Ywe,Jwe=e=>Xwe(e).merged,eTe={holidayRed1:{code:"#8b0d13",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Red1"},holidayRed2:{code:"#8b0d13",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Red2"},holidayGreen1:{code:"#50af60",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Green1"},holidayGreen2:{code:"#06462e",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Green2"},holidayBeige1:{code:"#ede3cf",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Beige1"},darkGrey:{code:"#5c5c5c",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Dark Grey"}};Object.assign(Object.assign({},hA),cA);const yA=new Map,tTe=e=>{const t=e??"";let r=yA.get(t);return r===void 0&&(r={...eTe,...Jwe(e)},yA.set(t,r)),r},ll=(e,t)=>
379{if(typeof t=="string")return tTe(e)[t]};function bA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(null,arguments)}function wA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Gw(e,t)}function rTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gw(e,t)}var TA={exports:{}},Nt={};/** @license React v16.13.1 380 * react-is.production.min.js 381 * 382 * Copyright (c) Facebook, Inc. and its affiliates. 383 * 384 * This source code is licensed under the MIT license found in the 385 * LICENSE file in the root directory of this source tree. 386 */var Zr=typeof Symbol=="function"&&Symbol.for,Ww=Zr?Symbol.for("react.element"):60103,Qw=Zr?Symbol.for("react.portal"):60106,wg=Zr?Symbol.for("react.fragment"):60107,Tg=Zr?Symbol.for("react.strict_mode"):60108,Eg=Zr?Symbol.for("react.profiler"):60114,Sg=Zr?Symbol.for("react.provider"):60109,Pg=Zr?Symbol.for("react.context"):60110,Zw=Zr?Symbol.for("react.async_mode"):60111,Cg=Zr?Symbol.for("react.concurrent_mode"):60111,Ig=Zr?Symbol.for("react.forward_ref"):60112,xg=Zr?Symbol.for("react.suspense"):60113,nTe=Zr?Symbol.for("react.suspense_list"):60120,_g=Zr?Symbol.for("react.memo"):60115,kg=Zr?Symbol.for("react.lazy"):60116,iTe=Zr?Symbol.for("react.block"):60121,aTe=Zr?Symbol.for("react.fundamental"):60117,oTe=Zr?Symbol.for("react.responder"):60118,sTe=Zr?Symbol.for("react.scope"):60119;function ci(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ww:switch(e=e.type,e){case Zw:case Cg:case wg:case Eg:case Tg:case xg:return e;default:switch(e=e&&e.$$typeof,e){case Pg:case Ig:case kg:case _g:case Sg:return e;default:return t}}case Qw:return t}}}function EA(e){return ci(e)===Cg}Nt.AsyncMode=Zw,Nt.ConcurrentMode=Cg,Nt.ContextConsumer=Pg,Nt.ContextProvider=Sg,Nt.Element=Ww,Nt.ForwardRef=Ig,Nt.Fragment=wg,Nt.Lazy=kg,Nt.Memo=_g,Nt.Portal=Qw,Nt.Profiler=Eg,Nt.StrictMode=Tg,Nt.Suspense=xg,Nt.isAsyncMode=function(e){return EA(e)||ci(e)===Zw},Nt.isConcurrentMode=EA,Nt.isContextConsumer=function(e){return ci(e)===Pg},Nt.isContextProvider=function(e){return ci(e)===Sg},Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ww},Nt.isForwardRef=function(e){return ci(e)===Ig},Nt.isFragment=function(e){return ci(e)===wg},Nt.isLazy=function(e){return ci(e)===kg},Nt.isMemo=function(e){return ci(e)===_g},Nt.isPortal=function(e){return ci(e)===Qw},Nt.isProfiler=function(e){return ci(e)===Eg},Nt.isStrictMode=function(e){return ci(e)===Tg},Nt.isSuspense=function(e){return ci(e)===xg},Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wg||e===Cg||e===Eg||e===Tg||e===xg||e===nTe||typeof e=="object"&&e!==null&&(e.$$typeof===kg||e.$$typeof===_g||e.$$typeof===Sg||e.$$typeof===Pg||e.$$typeof===Ig||e.$$typeof===aTe||e.$$typeof===oTe||e.$$typeof===sTe||e.$$typeof===iTe)},Nt.typeOf=ci,TA.exports=Nt;var cTe=TA.exports,Kw=cTe,lTe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uTe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dTe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},SA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yw={};Yw[Kw.ForwardRef]=dTe,Yw[Kw.Memo]=SA;function PA(e){return Kw.isMemo(e)?SA:Yw[e.$$typeof]||lTe}var pTe=Object.defineProperty,fTe=Object.getOwnPropertyNames,CA=Object.getOwnPropertySymbols,gTe=Object.getOwnPropertyDescriptor,mTe=Object.getPrototypeOf,IA=Object.prototype;function xA(e,t,r){if(typeof t!="string"){if(IA){var n=mTe(t);n&&n!==IA&&xA(e,n,r)}var i=fTe(t);CA&&(i=i.concat(CA(t)));for(var a=PA(e),o=PA(t),s=0;s<i.length;++s){var c=i[s];if(!uTe[c]&&!(r&&r[c])&&!(o&&o[c])&&!(a&&a[c])){var l=gTe(t,c);try{pTe(e,c,l)}catch{}}}}return e}var hTe=xA,vTe=Ec(hTe);function yTe(e,t){if(!e){var r=new Error("loadable: "+t);throw r.framesToPop=1,r.name="Invariant Violation",r}}var bTe=y.createContext(),wTe={initialChunks:{}},_A="PENDING",TTe="RESOLVED",Xw="REJECTED";function ETe(e){return typeof e=="function"?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}var STe=function(t){var r=function(i){return y.createElement(bTe.Consumer,null,function(a){return y.createElement(t,Object.assign({__chunkExtractor:a},i))})};return t.displayName&&(r.displayName=t.displayName+"WithChunkExtractor"),r},PTe=function(t){return t};function kA(e){var t=e.defaultResolveComponent,r=t===void 0?PTe:t,n=e.render,i=e.onLoad;function a(s,c){c===void 0&&(c={});var l=ETe(s),u={};function d(P){return c.cacheKey?c.cacheKey(P):l.resolve?l.resolve(P):"static"}function p(P,x,T){var k=c.resolveComponent?c.resolveComponent(P,x):r(P);return vTe(T,k,{preload:!0}),k}var g=function(x){var T=d(x),k=u[T];return(!k||k.status===Xw)&&(k=l.requireAsync(x),k.status=_A,u[T]=k,k.then(function(){k.status=TTe},function(M){console.error("loadable-components: failed to asynchronously load component",{fileName:l.resolve(x),chunkName:l.chunkName(x),error:M&&M.message}),k.status=Xw})),k},m=(function(P){rTe(x,P),x.getDerivedStateFromProps=function(M,$){var O=d(M);return ud({},$,{cacheKey:O,loading:$.loading||$.cacheKey!==O})};function x(k){var M;return M=P.call(this,k)||this,M.state={result:null,error:null,loading:!0,cacheKey:d(k)},yTe(!k.__chunkExtractor||l.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),k.__chunkExtractor?(c.ssr===!1||(l.requireAsync(k).catch(function(){return null}),M.loadSync(),k.__chunkExtractor.addChunk(l.chunkName(k))),wA(M)):(c.ssr!==!1&&(l.isReady&&l.isReady(k)||l.chunkName&&wTe.initialChunks[l.chunkName(k)])&&M.loadSync(),M)}var T=x.prototype;return T.componentDidMount=function(){this.mounted=!0;var M=this.getCache();M&&M.status===Xw&&this.setCache(),this.state.loading&&this.loadAsync()},T.componentDidUpdate=function(M,$){$.cacheKey!==this.state.cacheKey&&this.loadAsync()},T.componentWillUnmount=function(){this.mounted=!1},T.safeSetState=function(M,$){this.mounted&&this.setState(M,$)},T.getCacheKey=function(){return d(this.props)},T.getCache=function(){return u[this.getCacheKey()]}
386,T.setCache=function(M){M===void 0&&(M=void 0),u[this.getCacheKey()]=M},T.triggerOnLoad=function(){var M=this;i&&setTimeout(function(){i(M.state.result,M.props)})},T.loadSync=function(){if(this.state.loading)try{var M=l.requireSync(this.props),$=p(M,this.props,h);this.state.result=$,this.state.loading=!1}catch(O){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:l.resolve(this.props),chunkName:l.chunkName(this.props),error:O&&O.message}),this.state.error=O}},T.loadAsync=function(){var M=this,$=this.resolveAsync();return $.then(function(O){var H=p(O,M.props,h);M.safeSetState({result:H,loading:!1},function(){return M.triggerOnLoad()})}).catch(function(O){return M.safeSetState({error:O,loading:!1})}),$},T.resolveAsync=function(){var M=this.props;M.__chunkExtractor,M.forwardedRef;var $=bA(M,["__chunkExtractor","forwardedRef"]);return g($)},T.render=function(){var M=this.props,$=M.forwardedRef,O=M.fallback;M.__chunkExtractor;var H=bA(M,["forwardedRef","fallback","__chunkExtractor"]),J=this.state,W=J.error,me=J.loading,Z=J.result;if(c.suspense){var B=this.getCache()||this.loadAsync();if(B.status===_A)throw this.loadAsync()}if(W)throw W;var Q=O||c.fallback||null;return me?Q:n({fallback:Q,result:Z,options:c,props:ud({},H,{ref:$})})},x})(y.Component),v=STe(m),h=y.forwardRef(function(P,x){return y.createElement(v,Object.assign({forwardedRef:x},P))});return h.displayName="Loadable",h.preload=function(P){h.load(P)},h.load=function(P){return g(P)},h}function o(s,c){return a(s,ud({},c,{suspense:!0}))}return{loadable:a,lazy:o}}function CTe(e){return e.__esModule?e.default:e.default||e}var MA=kA({defaultResolveComponent:CTe,render:function(t){var r=t.result,n=t.props;return y.createElement(r,n)}}),ITe=MA.loadable,xTe=MA.lazy,OA=kA({onLoad:function(t,r){t&&r.forwardedRef&&(typeof r.forwardedRef=="function"?r.forwardedRef(t):r.forwardedRef.current=t)},render:function(t){var r=t.result,n=t.props;return n.children?n.children(r):null}}),_Te=OA.loadable,kTe=OA.lazy,AA=ITe;AA.lib=_Te;var MTe=xTe;MTe.lib=kTe;
386const OTe=AA(()=>Jo.import("./main.js").then(function(e){return e.m})),$A=e=>typeof document>"u"?f(ue,{}):f(OTe,{...e});var ATe=".debug-page-section{border-color:var(--swan-sem-color-border-error);border-style:solid;border-width:var(--swan-sem-border-width-input);font-size:var(--swan-sem-font-size-small);padding:var(--swan-base-space-400) var(--swan-base-space-400) var(--swan-base-space-400) var(--swan-base-space-0)}";const xr=e=>{const{rawSectionData:t,resolvedSectionData:r}=e,{debugMode:n}=et(),[i,a]=pe(!1);return qr(ATe),n?f(ue,{children:X(ct,{className:"debug-page-section",children:[f(Re,{flexDirection:"column",children:f(we,{children:"Debug information for \u2B06\uFE0F section. This information will only show in debug mode."})}),X(Re,{children:[f(we,{mr:"3",children:"Debug:"}),!i&&f(It,{render:o=>f(Dt,{skin:"link",className:o.className,onClick:()=>a(!i),children:o.children}),children:"Show details"}),i&&f(It,{render:o=>f(Dt,{skin:"link",className:o.className,onClick:()=>a(!i),children:o.children}),children:"Hide details"})]}),i&&X(Re,{flexDirection:"column",children:[f(we,{fontWeight:"bold",children:"Raw section data"}),t?f($A,{collapsed:!0,src:t||{}}):"Not set",f(we,{fontWeight:"bold",children:"Resolved section data"}),r?f($A,{collapsed:!0,src:r||{}}):"Not set"]})]})}):f(ue,{})},Jw=e=>{const{headerType:t,configuration:r,sidebar:n,pageDataFromBFF:i,isCarousel:a,index:o,marginBottom:s,isPrimaryHeader:c}=e,{pageUrls:l,pageAvailabilities:u,mpvs:d}=i,{sidebarEnabled:p,merchandisingCategoryId:g,backgroundColor:m,spaceId:v}=et(),h=r.banner,P=r,x=!!P.fullWidthImage,T=P?.imageFocalPoint,k=$Te(t,a,o),M=RTe(c,a,o),$=NTe({defaultColor:m,heroType:t,overrideColor:P.backgroundColor?.name});if(!h&&!P?.image&&!p)return P?.title?X(ue,{children:[f(Qwe,{type:t,...P,showUploadFirstCta:M}),f(xr,{rawSectionData:r,resolvedSectionData:P})]}):f(ue,{});const O=ll(v,$),H=p&&n?X(Q0,{children:[f(Z0,{children:n?.categoryName?.value}),n?.groups.map((W,me)=>W.groupName&&X("div",{children:[f(K0,{}),f(Y0,{children:W.groupName.value}),f(X0,{children:W.links.map((Z,B)=>{const{url:Q,text:R,associatedPageAvailable:Y}=Hye(Z,d,l,u);return Kwe(Y)?f(Zwe,{url:Q,text:R},B):Q&&R&&Y&&f(Dm,{children:f(It,{href:Q,onClick:()=>An({categoryId:g,destinationUrl:Q,ctaValue:`Group ${me+1} Link ${B+1}`,pageZone:"Side Bar",linkType:"Text Layout Link"}),"data-section":"Side Bar","data-translation":Z.mpvId?Z.mpvId:`Group ${me+1} Link ${B+1}`,children:R})},Q)})})]},W.groupName.value))]}):void 0;if(h)return h.bannerTemplate?X(ue,{children:[f(Hw,{bannerProps:h.bannerTemplate,headerType:t,sidebar:n,sidebarEnabled:p,leftNav:H,useH1ForTitle:!0}),f(xr,{rawSectionData:r,resolvedSectionData:h.bannerTemplate})]}):f(ue,{});const J=p?"card":x?"full-width-image":"card";return X(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:[X(zd,{imageFocalPoint:T??"right bottom",withLeftHandNavigation:!!p,textBoxHorizontalAlign:"left",style:{"--swan-public-marketing-background":O?.code},darkMode:O?.mode.dark,mb:s,variant:J,className:To({"full-height-carousel-content":a}),children:[p&&n&&H,f(kO,{type:t,...P,isH1:k})]}),f(xr,{rawSectionData:r,resolvedSectionData:P})]})},$Te=(e,t,r)=>!!((e==="page header"||e==="sub-category page header")&&(!t||t&&r===0)),RTe=(e,t,r)=>!!e&&(!t||r===0),NTe=e=>{const{overrideColor:t,defaultColor:r,heroType:n}=e;return t&&n!=="page header"?t:r},RA=(e,t)=>{const r=new vx;return[...Array(t-1)].map(function(i,a){return r.replace(e,{slideNumber:a+1})})},DTe=e=>{const{configuration:t,pageDataFromBFF:r,marginBottom:n,isPrimaryHeader:i}=e,{merchandisingCategoryId:a,dictionaryEntries:o}=et(),s=t.type,c=t.headers,{accessibleTextForNext:l,accessibleTextForPrevious:u}=o,d=RA(o.accessibleTextForDots,c.length);return f(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:f(Lm,{swipeToSlide:!0,slidesToShow:1,slidesToScroll:1,skin:"full",infinite:!1,progressIndicator:"dots-inset",mb:n,accessibleTextForPrevious:u,accessibleTextForDots:d,accessibleTextForNext:l,afterChange:p=>{JTe({categoryId:a,pageZone:$w(s),slideIndex:p+1})},children:c.map((p,g)=>f(Um,{children:f(Jw,{headerType:s,configuration:p,pageDataFromBFF:r,isCarousel:!0,index:g,isPrimaryHeader:i})},`carousel-slide-${g}`))})})},NA=yi({}),LTe=({children:e})=>{const t={};return f(NA.Provider,{value:t,children:e})},DA=()=>xt(NA),eT=e=>{const{type:t,children:r,marginBottom:n}=e,{sidebarEnabled:i,backgroundColor:a,spaceId:o}=et(),s=t==="template lane";if(t==="anchor links")return f(ue,{children:r});if(t==="promo banner"||t==="section header"||t==="side by side hero")return f(ct,{mb:n,children:r});const c=f(ct,{marginBottom:n,style:{backgroundColor:s?ll(o,a)?.code:void 0},children:f(vn,{children:f(Be,{children:f(_e,{span:i?9:12,offset:i?3:0,offsetSm:0,spanSm:12,children:r})})})});return s?f(Jn,{paddingX:0,children:c}
386):f(Jn,{children:c})};var LA=(e=>(e.DUMMY_EXPERIMENT="DUMMY_EXPERIMENT",e))(LA||{});const UTe={DUMMY_EXPERIMENT:{dummyVarA:[{sectionType:"page header",position:1,component:()=>null,mcIds:[""],locales:[""],sectionIdsToRemove:{"":[""]}}]}},tT=(e,t,r)=>{if(Object.values(LA).includes(e)){const n=UTe[e][t];if(n)return n.map(i=>({...i,position:i.position}))}},FTe=(e,t)=>{let r=[],n="";if(e)return r=t?.categories||[],n=e,{categories:r,productKey:n}},BTe={ANZS:["en-AU","en-NZ","en-SG"],NA:["en-US","es-US","fr-CA","en-CA"],IN:["en-IN"]},Vo=(e,t)=>{const r=e.split("-"),n=r[0].toLocaleLowerCase(),i=r[1].toUpperCase();return`${n}-${i}`},UA=e=>Object.entries(BTe).find(([,r])=>r.includes(Vo(e)))?.[0]??"EU",FA=e=>Object.keys(e).filter(t=>!!e[t]?.variationKey),BA=(e,t)=>{const r=FA(e);for(const n of r){const i=e[n]?.variationKey,o=((i?tT(n,i):void 0)||[]).find(s=>s.sectionType===t);if(o&&e.isPageSection)return o.component}},qTe=e=>{const{experimentData:t,sections:r,pageDataFromBFF:n,pageCategoryPageV3:i,experiments:a,merchandisingCategoryId:o,locale:s}=e,c=FA(t);let l=[...r];for(const u of c){const d=t[u]?.variationKey,p=t[u]?.isPageSection??!0,m=((d?tT(u,d):void 0)||[]).find(P=>!!P.position),v=m?.mcIds?.includes(o)&&m?.locales?.includes(Vo(s)),h=m?.sectionIdsToRemove?.[Vo(s)]||[];if(l=l.filter(P=>{if(h.length>0&&P?.props?.children.props.id){const x=P?.props?.children.props.id;return!h.includes(x)}return!0}),m&&v){const P=m.position,x=m.component,T={pageDataFromBFF:n,pageCategoryPageV3:i},k=p?f(eT,{children:f(x,{...T})},`test-section-${P}-${u}`):f(x,{...T});l.splice(P,0,k)}}for(const u of Object.keys(a)){const d=a[u],g=((d?tT(u,d):void 0)||[]).filter(m=>!!m.position&&m?.mcIds?.includes(o)&&m?.locales?.includes(Vo(s)));for(const m of g){const v=m?.sectionIdsToRemove?.[Vo(s)]||[];v.length>0&&(l=l.filter(k=>{const M=k?.props?.children?.props?.id;return!M||!v.includes(M)}));const h=m.position,P=m.component,T=f(eT,{children:f(P,{...{pageDataFromBFF:n,pageCategoryPageV3:i}})},`test-section-${h}-${u}-${m.sectionType}`);l.splice(h,0,T)}}return l},qA=e=>{const{section:t}=e,{merchandisingCategoryId:r,uploadFlowMpv:n,sidebarEnabled:i,spaceId:a,tenant:o}=et(),s=t?.banner;if(s)return s?.bannerTemplate?f(Hw,{bannerProps:s?.bannerTemplate,headerType:"Side by Side Hero",sidebarEnabled:i}):f(ue,{});const c=f(J0,{mb:t.type==="side by side page header"?8:0,children:["side1","side2"].map(l=>{const u=l,d=t.content?.[`${u}`].backgroundColor.name,p=d?ll(a,d):void 0,g=t.content?.[`${u}`].uploadFlowMpv?.mpvId&&vg(o)?n:void 0,m=[t.content?.[`${u}`].cta1,t.content?.[`${u}`].cta2,t.content?.[`${u}`].cta3],v=g?m.length+1:m.length,h=t.content?.[`${u}`].fontFamily,P=t.content?.[`${u}`].imageFocalPoint,x=Xs(t.type),T=nT(x,h),k=iT(x,h),M={};T&&(M.fontFamily=T),k&&(M.fontWeight=k);const $=m.map((O,H)=>f(sS,{index:H,cta:O,merchandisingCategoryId:r,pageZone:`Side by Side Hero ${l}`,ctaUrlsLength:v},`hero-cta-${H}`));if(g){const O=f(Aw,{pageZone:`Side by Side Hero ${l}`,uploadFlowMpv:g},"upload-flow-cta");$.splice(1,0,O)}return X(zd,{style:{"--swan-public-marketing-background":p?.code??""},darkMode:p?.mode.dark??!1,textBoxHorizontalAlign:t.content?.[`${u}`].horizontalTextAlignment??"left",variant:"full-width-image",textAlign:t.content?.[`${u}`].verticalTextAlignment??"bottom",imageFocalPoint:P??"right bottom",children:[f(Rm,{children:f(Nm,{children:f(oS,{media:t.content?.[`${u}`].image,mediaXs:t.content?.[`${u}`].imageXs})})}),f(km,{children:X(Mm,{children:[f(Om,{...M,children:t.content?.[`${u}`].title.value}),f(Am,{children:t.content?.[`${u}`].subtitle?.value}),f($m,{children:$})]})})]},`side-by-side-hero-${u}`)})});return i?f(qd,{"data-testid":"doubleBannerWithSideNav",children:c}):c},zTe=e=>typeof e?.banner<"u"?e?.banner?.bannerTemplate?.length===2:e?.content?.side1?.title?.value&&e?.content?.side2?.title?.value,rT=["page header","sub-category page header","side by side page header"],VTe=e=>(e?.sections||[]).find(t=>rT.includes(t.type)),zA=e=>{const{configuration:t,pageDataFromBFF:r,sidebar:n,isPrimaryHeader:i}=e,a=DA(),o=BA(a,t.type);if(o)return f(o,{configuration:t,pageContext:r,sidebar:n});const s=rT.includes(t.type)?8:0;switch(t.type){case"side by side page header":return f(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:f(qA,{section:t})});case"page header":case"sub-category page header":case"section header":return jTe(t,r,s,n,i);default:return f(ue,{})}},jTe=(e,t,r,n,i)=>e.headers?(e.headers||[]).length>1&&!n?.enabled?f(DTe,{configuration:e,pageDataFromBFF:t,marginBottom:r,isPrimaryHeader:i}):f(Jw,{headerType:e.type,configuration:{...e.headers[0]},pageDataFromBFF:t,sidebar:n,marginBottom:r,isPrimaryHeader:i}):f(Jw,{headerType:e.type,configuration:e,pageDataFromBFF:t,sidebar:n,marginBottom:r,isPrimaryHeader:i}),Xs=e=>rT.includes(e),nT=(e,t)=>{let r;return e&&t&&t!=="Graphik"&&(r="special"),r},iT=(e,t)=>{let r;return e&&t&&t!=="Graphik"&&(r="normal"),r},HTe="cpv3_automated_recommendation_eu",GTe="cpv3_automated_recommendation_na",WTe=2,aT=(e,t)=>e<=4||t?4:6,QTe=(e,t)=>
386t==="xs"?WTe:e,VA=e=>e?AE().adaptResponse(e):null,jA=e=>[...e].sort((t,r)=>Number(t.isOutOfStock)-Number(r.isOutOfStock)),ZTe=()=>typeof window>"u"?void 0:window.tracking,KTe=e=>{const{sections:t,mpvs:r,automatedExperience:n,featureFlags:i,productRecommendations:a}=e,o=[];let s=0,c=0;const l=t.some(u=>u.type==="anchor links");return t.forEach((u,d)=>{if(!Xs(u.type))switch(c=l?d+1:d,u.type){case"good better best":{[u.goodValue,u.betterValue,u.bestValue].forEach(g=>{const m=g?.template?.productsList?.selectedProduct?.mpvId||g?.template?.category?.selectedCategory?.mpvId||"",v=m?r.find(h=>h.mpvId===m):void 0;v&&o.push({product_id:m,name:v?.name||g.template?.category?.selectedCategory?.name.value||"",core_product_id:v?.coreProductId||"",position:++s,list_section_id:`Category Page:${c}`})});break}case"product grid":case"product grid horizontal":case"product grid horizontal XL":u.items.forEach(p=>{if(p.product){const g=p.product.template?.productsList?.selectedProduct?.mpvId||p.product.template?.category?.selectedCategory?.mpvId||"",m=g?r.find(v=>v.mpvId===g):void 0;m&&o.push({product_id:g,name:m?.name||p.product.template?.category?.selectedCategory?.name.value||"",core_product_id:m?.coreProductId||"",position:++s,list_section_id:`Category Page:${c}`})}});break;case"product lane":{const p=n?.sections?.find(v=>v.sectionId===u.sectionId);if(p&&Jd(p,i)&&u.automationEnabled&&p){p.items.forEach(v=>{o.push({product_id:v.mpvId,name:v?.productName||"",core_product_id:v.productId||"",position:++s,list_section_id:`Category Page:${c}`})});break}(u.items||[]).forEach(v=>{if(v.product){const h=v.product.template?.productsList?.selectedProduct?.mpvId||v.product.template?.category?.selectedCategory?.mpvId||"",P=h?r.find(x=>x.mpvId===h):void 0;P&&o.push({product_id:h,name:P?.name||v.product.template?.category?.selectedCategory?.name.value||"",core_product_id:P?.coreProductId||"",position:++s,list_section_id:`Category Page:${c}`})}})}break;case"virtual section":{const p=u.value;[p?.localizedFields?.find(m=>m.contentful_id===p?.value.browseOurDesignsMpv?.contentful_id)?.mpvId,p?.localizedFields?.find(m=>m.contentful_id===p?.value.uploadYourDesignMpv?.contentful_id)?.mpvId].forEach(m=>{const v=r.find(h=>h.mpvId===m);m&&o.push({product_id:m,name:v?.name||"",core_product_id:v?.coreProductId||"",position:++s,list_section_id:`Category Page:${c}`})});break}case"stock options":{const p=n?.sections?.find(m=>m.sectionId===u.sectionId);p&&Jd(p,i)&&p.items.forEach(m=>{o.push({product_id:m.mpvId,name:m?.productName||"",core_product_id:m.productId||"",position:++s,list_section_id:`Category Page:${c}`})});break}case"bestsellers":{(a?.bestsellers?.products??[]).forEach(g=>{o.push({product_id:g.mpvId,name:g.name,core_product_id:g.productKey,position:++s,list_section_id:`Category Page:${c}`})});break}case"new arrivals":{const p=a?.newArrivals?.products??[];jA(p).forEach(m=>{o.push({product_id:m.mpvId,name:m.name,core_product_id:m.productKey,position:++s,list_section_id:`Category Page:${c}`})});break}}}),o},An=e=>{const{categoryId:t,pageZone:r,ctaValue:n,destinationUrl:i,index:a,linkType:o}=e,s=window.location.pathname,c=Ch(i),l=`${n}${a?`:${a}`:""}`,u=`${s};${c};${r};${n}${o?`;${o}`:""}`,d=window.tracking;d?.track&&d.track("Navigation Clicked",{category:"Category Page",label:`Content:${r}`,eventDetail:u,navigationDetail:l,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`})},YTe=e=>{const{categoryId:t,videoId:r,videoUrl:n,mobileVideoUrl:i,name:a,progress:o}=e,s=window.tracking;s?.track&&s.track("Media Engaged",{category:"Video",label:r,eventDetail:"viewed_"+o,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`,name:a,videoUrl:n,mobileVideoUrl:i})},XTe=e=>{const{categoryId:t,videoId:r,videoUrl:n,mobileVideoUrl:i,name:a,action:o}=e,s=window.tracking;s?.track&&s.track("Media Engaged",{category:"Video",label:r,eventDetail:"clicked_"+o,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`,name:a,videoUrl:n,mobileVideoUrl:i})},HA=e=>{const{categoryId:t,pageZone:r,ctaValue:n,destinationUrl:i,index:a,linkType:o,itemsCount:s,sectionTypeCount:c}=e,l=window.location.pathname,u=Ch(i),d=`${a?`${a}:${s}:${c}`:""}`,p=`${l};${u};${r};${n}${o?`;${o}`:""}`,g=window.tracking;
386g?.track&&g.track("Navigation Clicked",{category:"Category Page",label:`Content:${r}`,eventDetail:p,navigationDetail:d,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`})},JTe=e=>{const{categoryId:t,pageZone:r,slideIndex:n}=e,i=`Navigated to carousel slide ${n}`,a=window.tracking;a?.track&&a.track("Carousel Arrow Clicked",{category:"Category Page",label:`Content:${r}`,eventDetail:i,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`})},e0e=e=>{const{destinationUrl:t,locale:r,trackingValue:n}=e,i=window.tracking,a=n.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\p{L}\p{N}\s]/gu,"").trim().replace(/\s+/g," "),o=r?.split("-"),s={category:"Discover",label:"Content:Anchor Bar",...o?.[1]?{locale:o[1].toUpperCase()}:{},...o?.[0]?{language:o[0].toLowerCase()}:{},eventDetail:`${window.location.pathname};${t};Anchor Bar;${a}`,navigationDetail:a};i?.track&&i.track("Link Clicked",s)},dd=e=>{const{categoryId:t,pageZone:r,destinationUrl:n,tabIndex:i,templateIndex:a,designId:o,isDesignTemplateCTA:s,isStockOptionsImage:c,stockOptionsCtaText:l}=e,u=window.location.pathname,d=Ch(n);let p=`${s?"Browse all templates:":""}${i}${a?`:${a}`:""}${o?`:${o}`:""}`;c&&(p=`${t}: ${p}`),l&&(p=`${l}: ${i}`);const g=`${u};${d};${r};${i}${a?`:${a}`:""}${o?`:${o}`:""}`,m=window.tracking;m?.track&&m.track("Navigation Clicked",{category:"Category Page",label:`Content:${r}`,eventDetail:g,navigationDetail:p,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`})},GA=e=>{const{categoryId:t,pageZone:r,tabIndex:n}=e,i=window.tracking;i?.track&&i.track("Tab Selected",{category:r,label:`${r}:${n}`,pageSection:"Category Page",pageStage:"Discover",pageName:`${t}:Category Page`})},t0e=({colorInformation:e,colorSwatchCount:t})=>{const r=Or(),n=Ni.getNumberOfColorsToDisplay(r,t),i=e.slice(0,n),a=e.length-n;return f(ei,{children:f(eE,{children:X(Pl,{children:[i.length>1&&i.map((o,s)=>{const c=o.key?.split("/")[0],l=o.key?.split("/")[1];return f(Il,{"data-testid":"color-swatch",primaryColor:c,secondaryColor:l,accessibleText:o.merchandisingName},s)}),a>0&&X(tE,{children:["+",a]})]})})})};function ji({href:e,children:t,...r}){return e?f(It,{href:e,...r,children:t}):f(ue,{children:t})}const Mg=({text:e})=>{let t=0;const r={padding:`${za.SwanSemSpaceNone} ${za.SwanSemSpaceNone} ${za.SwanSemSpace2} ${za.SwanSemSpaceNone}`};let n;(o=>{o.Horizontal="horizontal",o.Vertical="vertical"})(n||(n={}));const i={overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",MozBoxOrient:"vertical",msBoxOrient:"vertical",lineHeight:za.SwanBaseFontLineHeight500,maxHeight:`calc(${za.SwanBaseFontLineHeight500} * 2)`},a=o=>{if(o.startsWith("-")||o.startsWith("*"))return t<3?(t++,f(nE,{style:r,children:f("span",{style:i,children:o.substring(2)})},t)):f(ue,{})};return Array.isArray(e)&&e.length>1&&(e[0].startsWith("-")||e[0].startsWith("*"))?f(rE,{children:e.map(o=>a(o.trim().toString()))}):f(we,{style:{lineHeight:za.SwanBaseFontLineHeight500},children:e})};var Js=(e=>(e.NEW_LOW_PRICE="NEW_LOW_PRICE",e.NEW="NEW",e.NEW_OPTIONS="NEW_OPTIONS",e))(Js||{});const WA=e=>e?.tagType?e.tagType in Js:!0;var oo=(e=>(e.TAG="TAG",e.CAMPAIGN="CAMPAIGN",e.OUT_OF_STOCK="OUT_OF_STOCK",e))(oo||{});const Og=({callout:e,enableCampaignCallouts:t,mpvId:r,styleConfig:n})=>{const i=Array.isArray(e),{marginTop:a=0,marginBottom:o=0,marginLeft:s=0,marginRight:c=0}=n??{};return f(Re,{flexDirection:"column",gap:"2",children:i?e.map((l,u)=>l.type===oo.CAMPAIGN&&r&&t?f(ct,{mt:a,mb:o,ml:s,mr:c,children:f(mm,{product:r},u)},r):(l.type===oo.OUT_OF_STOCK||l.type===oo.TAG&&WA(l))&&l.value&&l.value!==""&&l.skin&&(l.variant||l.emphasis)?f(mi,{skin:l.skin,variant:l.variant??null,emphasis:l.emphasis??null,style:{width:"fit-content"},"data-testid":"callout",mt:a,mb:o,ml:s,mr:c,children:l.value},u):null):X(ue,{children:[e?.value&&e?.value!==""&&e?.skin&&(e?.variant||e?.emphasis)&&WA(e)&&f(mi,{skin:e.skin,variant:e.variant??null,emphasis:e.emphasis??null,style:{width:"fit-content"},"data-testid":"callout",mt:a,mb:o,ml:s,mr:c,children:e.value}),t&&f(mm,{product:r??""})]})})},Ag=e=>{const{merchandisingCategoryId:t}=et(),{name:r,description:n,formattedDescription:i,linkUrl:a,image:o,callout:s,layout:c,disabled:l,index:u,pageZone:d,mpvId:p,productId:g,imageRef:m,showPrice:v,enableCampaignCallouts:h,review:P,colorInformation:x,colorSwatchCount:T,version:k,selections:M,quantity:$}=e;qr(PU);const O=n?.split(` 387`),H=Or()==="xs",{isFavoriteDataReady:J}=SE();return X(mo,{className:To({"tile-disabled":l}),layout:c,mb:H&&c!=="vertical"?0:"5",imageWidth:"standard",children:[X($l,{children:[f(ji,{href:a,skin:"unstyled","data-section":d,"data-position":u,"data-translation":p,onClick:()=>{An({categoryId:t,pageZone:d,ctaValue:p||r,destinationUrl:a,index:u})},children:s&&f(Og,{callout:s,enableCampaignCallouts:h,mpvId:p})}),EU(g,k,r,p,J)&&f(ei,{onClick:W=>W.stopPropagation(),children:f(PE,{productKey:g,productVersion:k,selectedOptions:{},productName:r,mpvId:p,pageZone:d,productPosition:u})})]}),f(ho,{className:To({"tile-disabled-image":l}),children:f(ji,{href:a,skin:"unstyled","data-section":d,"data-position":u,"data-translation":p,onClick:()=>{An({categoryId:t,pageZone:d,ctaValue:p||r,destinationUrl:a,index:u})},children:f(Vd,{aspectRatio:1,src:o?.src,ref:m,alt:o?.altTextOverride||""})})}),X(rs,{className:To({"tile-disabled-contents":l}),children:[X(ji,{href:a,skin:"unstyled","data-section":d,"data-position":u,"data-translation":p,onClick:()=>{An({categoryId:t,pageZone:d,ctaValue:p||r,destinationUrl:a,index:u})},children:[x&&x.length>1&&f(t0e,{colorInformation:x,colorSwatchCount:T}),f(ns,{children:r}),i?f(vo,{mt:3,mb:3,dangerouslySetInnerHTML:{__html:i}}):f(vo,{mt:3,mb:3,children:f(Mg,{text:O})}),P&&X(Re,{alignItems:"center",flexWrap:"wrap",flexDirection:"row",children:[f(Tl,{ratingV
387alue:P.averageRating,"aria-label":P.reviewedByNCustomersLabel}),X(we,{textColor:"subtle",paddingLeft:"2",children:["(",P.reviewsCount,")"]})]}),v&&p&&f(bc,{children:f(is,{mpvId:p,...$!==void 0&&{quantity:$},...M&&Object.keys(M).length>0&&{selections:M}})})]}),p&&f(ei,{children:f(wc,{mpvId:p,...M&&Object.keys(M).length>0&&{selections:M},...$!==void 0&&{quantity:$},trackingData:{pageZone:d}})})]})]})},r0e=({tile:e,index:t,productGridLayout:r,hideProductDescription:n,colorSwatchCount:i})=>{const a=e.product?.template,o=a?.productsList?.selectedProductVariants?.Quantity;return f(ue,{children:f(Ag,{name:a?.tileDetails?.header?.value??"",description:n?"":a?.tileDetails?.description?.value??"",image:a?.tileDetails?.image?.cloudinaryImage?.[0],linkUrl:a?.tileDetails?.link?.href,callout:{value:"Unavailable (Won't show in prod)",skin:"holiday",variant:"inverse"},layout:r||"vertical",disabled:!0,index:t+1,pageZone:"",mpvId:e.mpvId,productId:a?.productKey,showPrice:!!e.showPrice,enableCampaignCallouts:!0,colorInformation:e.colorInformation,colorSwatchCount:i,selectedProductVariants:a?.productsList?.selectedProductVariants,quantity:o!==void 0?Number(o):o})})},QA=e=>{const{debugMode:t}=et();return e&&!e.associatedPageAvailable&&t};class n0e{resolveSkin(){return"info"}resolveEmphasis(){return"low"}}class ZA{resolveSkin(){return"info"}resolveEmphasis(){return"standard"}}class i0e{tagTypeSkinOverrides={[Js.NEW_LOW_PRICE]:"promo",[Js.NEW]:"accent",[Js.NEW_OPTIONS]:"accent"};resolveSkin(t){return this.tagTypeSkinOverrides[t]??"accent"}resolveEmphasis(){return"standard"}}function KA(e){switch(e){case oo.CAMPAIGN:return new ZA;case oo.OUT_OF_STOCK:return new n0e;case oo.TAG:return new i0e;default:return new ZA}}function YA(e,t){return KA(e).resolveSkin(t)}function XA(e){return KA(e).resolveEmphasis()}const $g=e=>{const{callout:t,isOutOfStock:r,allAvailableTags:n,outOfStockText:i,logger:a,tileId:o}=e;if(r&&r===!0&&i!=="")return{value:i,skin:YA(oo.OUT_OF_STOCK),emphasis:XA(oo.OUT_OF_STOCK)};if(Array.isArray(t))return t.map(c=>{const l=c.tagType&&c.tagType in Js?Js[c.tagType]:void 0;return{...c,skin:YA(c.type,l),emphasis:XA(c.type)}});{n||a?.warn("Missing allAvailableTags in product tile",{tileId:o});const s=n?.default,c=t;return{value:s?.value||c?.text?.value,skin:s?.skin||c?.skin,variant:s?.variant||c?.variant,tagType:s?.id||c?.nonLocalizedValue}}},a0e=({section:e,pageDataFromBFF:t,sectionNumber:r})=>{const{enableCampaignCallouts:n,sidebarEnabled:i,reviewsData:a,dictionaryEntries:o,debugMode:s,logger:c}=et(),l=e.type==="product grid"?"vertical":"horizontal",u=e.type==="product grid"?6:12,d=e.type==="product grid"?`Product Grid ${r}`:e.type==="product grid horizontal"?"Product Grid Horizontal":"Product Grid Horizontal XL",p=Ni.getModel(e,t);let g=p.tiles.length;p.tiles.forEach(x=>{!s&&!tp(x)&&g--});const m=Ni.getNumberOfProductTilesPerRow(i,e.type,g),v=Ni.getMaxColorSwatchCountDesktop(m,i),h=12/m,P=e.hideProductDescription;return!p.tiles.length||p.tiles.length===0?f(ue,{}):X(ue,{children:[f(Be,{mb:4,children:f(_e,{span:i?7:5,children:p.title&&f(yn,{fontSize:"x2large",children:p.title.value})})}),X(Be,{mb:7,children:[f(_e,{span:i?7:5,children:p.subtitle&&f(we,{fontSize:"standard",children:p.subtitle.value})}),f(_e,{span:i?5:7,children:f(Re,{alignItems:"flex-end",justifyContent:"flex-end",children:e.enableSeeAllCTA&&e.seeAllCta?.targetUrl&&o.seeAllCtaText&&f(ji,{id:"see-all-cta",skin:"cta",href:e.seeAllCta?.targetUrl,children:o.seeAllCtaText})})})]}),f(Be,{children:p.tiles.map((x,T)=>{if(tp(x)){const k=$g({isOutOfStock:x?.isOutOfStock??!1,outOfStockText:o?.outOfStock||"",logger:c,callout:x.product?.template?.calloutDetails,allAvailableTags:x.product?.template?.allAvailableTags,tileId:x.product?.contentful_id}),M=x.product?.template,$=M?.productsList?.selectedProduct?.mpvId,O=M?.productsList?.selectedProductVariants?.Quantity,H=M?.productsList?.selectedProductVariants?Ni.getSelectionsFromProductVariants(M?.productsList?.selectedProductVariants):{};return f(_e,{span:h,spanXs:u,children:f(Ag,{name:M?.tileDetails?.header?.value??"",description:P?"":M?.tileDetails?.description?.value??"",formattedDescription:Ni.getFormattedDescription(P,M?.tileDetails?.formattedDescription?.value),image:M?.tileDetails?.image?.cloudinaryImage?.[0],linkUrl:M?.tileDetails?.link?.href,callout:k,layout:l,disabled:!Sh(x),index:T+1,pageZone:d,mpvId:$,review:a?.[$],productId:M?.productKey,showPrice:!!x.showPrice,enableCampaignCallouts:n,colorInformation:x.c
387olorInformation,colorSwatchCount:v,version:x.version,selections:H,quantity:O!==void 0?Number(O):O},T)},T)}else if(QA(x))return f(_e,{span:h,spanXs:u,children:f(r0e,{tile:x,index:T,productGridLayout:l,hideProductDescription:P,colorSwatchCount:v},T)},T);return f(y.Fragment,{},T)})}),f(xr,{rawSectionData:e,resolvedSectionData:p})]})};var o0e=".skip-to-next-section{background:var(--swan-base-color-grey-100);border:1px solid var(--swan-base-color-grey-300);display:block;left:-200vw;padding:1px var(--swan-sem-space-3);position:absolute;top:var(--swan-sem-space-none);z-index:-1}";const oT=({nextSectionId:e,nextSectionTitle:t})=>{if(!e)return f(ue,{});const{dictionaryEntries:r}=et();qr(o0e);const n=new vx,i=t?.value&&r.skipToNextSectionWithTitle?n.replace(r.skipToNextSectionWithTitle,{sectionTitle:t.value}):r.skipToNextSection;return f(It,{className:"skip-to-next-section",href:`#${e}`,children:i??""})},s0e=({tile:e,index:t,productGridLayout:r,hideProductDescription:n,colorSwatchCount:i})=>f(ue,{children:f(Ag,{name:e.name??"",description:n?"":e.description??"",image:e.image,linkUrl:e.linkUrl,callout:{value:"Unavailable (Won't show in prod)",skin:"holiday",variant:"inverse"},layout:r||"vertical",disabled:!0,index:t+1,pageZone:"",mpvId:e.mpvId,productId:e.productId,showPrice:!!e.showPrice,enableCampaignCallouts:e?.enableCampaignCallouts||!1,colorInformation:e.colorInformation,colorSwatchCount:i,selectedProductVariants:e.selectedProductVariants,quantity:e.quantity})}),c0e=({sectionData:e,rawSectionData:t})=>{const{sidebarEnabled:r,dictionaryEntries:n,debugMode:i,logger:a}=et();if(!e?.tiles?.length)return f(ue,{});let o=e.tiles.length;e.tiles.forEach(h=>{!i&&!tp(h)&&o--});const s=Ni.getNumberOfProductTilesPerRow(r,e.type,o),c={xs:2,sm:s,md:s,lg:s,xl:s},{productLane:l,slide:u}=n,d=e.hideProductDescription,p=Ni.getMaxColorSwatchCountDesktop(s,r),g=`${l}-${e.sectionNumber}`,v=`${e.title||`${l} ${e.sectionNumber}`}`;return X(ue,{children:[f(Be,{mb:4,"data-testid":`product-lane-title-row-${e.sectionId}`,children:f(_e,{span:r?7:5,children:e.title&&f(yn,{fontSize:"x2large",children:e.title})})}),f(oT,{nextSectionId:e.nextSectionId,nextSectionTitle:e?.nextSectionTitle}
387),X(Be,{mb:7,children:[f(_e,{span:r?7:5,children:e.subtitle&&f(we,{fontSize:"standard",children:e.subtitle})}),f(_e,{span:r?5:7,children:f(Re,{alignItems:"flex-end",justifyContent:"flex-end",children:e.enableSeeAllCTA&&e.seeAllCta?.targetUrl&&n.seeAllCtaText&&f(It,{skin:"cta",href:e.seeAllCta?.targetUrl,children:n.seeAllCtaText})})})]}),f(yl,{id:g,slidesToShow:c,initialSlide:1,"aria-label":v,children:e.tiles.map((h,P)=>{if(tp(h)){const x=$g({isOutOfStock:h?.isOutOfStock??!1,outOfStockText:n?.outOfStock||"",logger:a,callout:h?.callout,allAvailableTags:h?.allAvailableTags,tileId:h?.contentful_id}),T=`${g}-${u}-${P+1}`,k=h.mpvId;return f(yc,{id:T,children:f(Ag,{name:h.name??"",description:d?"":h.description??"",formattedDescription:Ni.getFormattedDescription(d,h.formattedDescription),image:h.image,linkUrl:h.linkUrl,callout:x,layout:"vertical",disabled:!Sh(h),index:P+1,pageZone:`Product Lane ${e.sectionNumber}`,mpvId:k,review:h.review,productId:h.productId,showPrice:!!h.showPrice,enableCampaignCallouts:h?.enableCampaignCallouts||!0,colorInformation:h.colorInformation,colorSwatchCount:p,version:h.version,selections:h.selectedProductVariants,quantity:h.quantity})},P)}else if(QA(h))return f(yc,{children:f(s0e,{tile:h,index:P,hideProductDescription:d,colorSwatchCount:p})},P);return null})}),f(xr,{rawSectionData:t??{},resolvedSectionData:e})]})},l0e=(e,t,r,n)=>e.map(a=>{if(a.template)return u0e(a,t,r,n)}),u0e=(e,t,r,n)=>{const i=e.template;if(i){const{allAvailableTags:a,calloutDetails:o,tileDetails:s,productsList:c}=i,l=c?.selectedProduct?.mpvId;let u={};if(l){const p=yh.getMpv(l,t);u=Ni.getTileV2FromMpv(l,p)}return{name:s?.header?.value??"",description:s?.description?.value||"",formattedDescription:s?.formattedDescription?.value||"",imageUrl:s?.image?.cloudinaryImage?.[0]?.src,transformedPrimaryUrl:s?.link?.href,primaryUrlText:s?.urlText?.value??s?.link?.text??"",transformedSecondaryUrl:i?.secondaryLink?.link?.href??"",secondaryUrlText:i?.secondaryLink?.label?.value??i?.secondaryLink?.link?.text??"",callout:$g({callout:o,isOutOfStock:u?.isOutOfStock??!1,allAvailableTags:a,outOfStockText:r?.outOfStock||"",logger:n,tileId:e.contentful_id}),showPrice:!0,isOutOfStock:u?.isOutOfStock??!1,productId:u?.productId,colorInformation:u?.colorInformation,mpvId:l}}},d0e=e=>!!(e&&!e.includes(void 0)&&e.length===3);var p0e="@media only screen and (max-width:767px){.good-better-best-wrapper .good-better-best-row{gap:var(--swan-sem-space-4)}}.good-better-best-wrapper .good-better-best-row .gbb-tile-name,.good-better-best-wrapper .good-better-best-row .gbb-tile-name:hover{text-decoration:none}.good-better-best-wrapper .good-better-best-row .gbb-hidden,.good-better-best-wrapper .good-better-best-row .gbb-hidden .gbb-tile{height:100%}.good-better-best-wrapper .good-better-best-row .gbb-hidden .gbb-tile .gbb-tile-contents{justify-content:space-between}.good-better-best-wrapper .good-better-best-row .gbb-hidden .gbb-tile .gbb-tile-contents.no-primary-url{justify-content:flex-start}.good-better-best-wrapper .good-better-best-row .gbb-hidden .gbb-tile .gbb-tile-contents .good-better-best-tile-description{color:var(--swan-sem-color-text-standard)}.good-better-best-wrapper .good-better-best-row .gbb-hidden .gbb-tile .gbb-tile-contents .swan-standard-tile-separately-clickable-contents .coupon-card{margin-bottom:var(--swan-sem-space-1);margin-top:var(--swan-sem-space-1)}.good-better-best-wrapper .good-better-best-row .tile-disabled .tile-disabled-image{filter:grayscale(1) opacity(.6)}.good-better-best-wrapper .good-better-best-row .tile-disabled .tile-disabled-contents{color:var(--swan-sem-color-text-subtle)}.good-better-best-wrapper .good-better-best-row .tile-disabled :hover{cursor:pointer}";const f0e=()=>f(we,{textColor:"error",children:"Good Better Best section has undefined or unavailable tiles"}),g0e=(e,t)=>{const r=new URL(e);return r.searchParams.delete(t),r.href},m0e=(e,t)=>t<=0||!e?e||"":t===3?e.replace(/(\/images\/[^/]*?)([/,])w_\d+([,/])/,(r,n,i,a)=>`${n}${i}w_800${a}`):e,sT=(e,t)=>{t?.preventDefault(),e&&(window.location.href=e)},h0e=e=>{qr(p0e);const{dictionaryEntries:t,enableCampaignCallouts:r,merchandisingCategoryId:n,debugMode:i,logger:a}=et(),{section:o,pageDataFromBFF:s}=e,c=[o.goodValue,o.betterValue,o.bestValue],l=l0e(c,s,t,a);return d0e(l)?X(ue,{children:[X(ct,{className:"good-better-best-wrapper",children:[o.title?.value&&f(Be,{my:"3",children:f(_e,{span:12,children:f(yn,{fontSize:"x2large",children:o.title.value})})}),o.subtitle?.value&&f(Be,{mb:8,children:f(_e,{span:12,children:f(we,{children:o.subtitle.value})})}),f(Be,{className:"good-better-best-row","data-testid":"gbb-tiles-container",children:l.map((u,d)=>{const p=u?.callout,g=u?Sh(u):!1;return v0e({tile:u,index:d,callout:p,isTileInStock:g,merchandisingCategoryId:n,enableCampaignCallouts:r,colorInformation:u?.colorInformation,tilesLength:l.length})})})]}),f(xr,{rawSectionData:o,resolvedSectionData:l})]}):i?f(f0e,{}):f(ue,{})},v0e=e=>{const{tile:t,index:r,callout:n,isTileInStock:i,merchandisingCategoryId:a,enableCampaignCallouts:o,tilesLength:s}=e,c={className:To("gbb-tile",{"tile-disabled":!i}),skin:"product",imageWidth:"full-bleed"},l={href:t.transformedPrimaryUrl,covering:!0,onClick:v=>{An({categoryId:a,pageZone:"Good Better Best",ctaValue:"Tile",destinationUrl:t.transformedPrimaryUrl,index:r+1}),sT(t.transformedPrimaryUrl,v)},"data-section":"Good Better Best","data-position":r+1,"data-translation":t.mpvId||"Tile"},u={my:4,onClick:v=>{An({categoryId:a,pageZone:"Good Better Best",ctaValue:"CTA 1",destinationUrl:t.transformedPrimaryUrl,index:r+1}),sT(t.transformedPrimaryUrl,v)},"data-section":"Good Better Best","data-position":r+1,"data-translation":t.mpvId||"CTA 1",href:t.transformedPrimaryUrl,skin:"unstyled"},d={onClick:v=>{An({categoryId:a,pageZone:"Good Better Best",ctaValue:"CTA 2",destinationUrl:t.transformedSecondaryUrl,index:r+1}),sT(t.transformedSecondaryUrl,v)},"data-section":"Good Better Best","data-position":r+1,"data-translation":t.mpvId||"CTA 2",href:t.transformedSecondaryUrl},p=t.description?.split(` 388`),g=Ye(()=>m0e(t.imageUrl,s),[t.imageUrl,s]),m={pageZone:"Good Better Best"};return X(_e,{span:4,spanXs:12,flexColumn:!0,children:[f(Fm,{xs:!0,className:"gbb-hidden","data-testid":"gbb-tile-desktop",children:X(mo,{mb:"5",layout:"vertical",...c,children:[f($l,{children:n&&f(Og,{callout:n,enableCampaignCallouts:o,mpvId:t.mpvId})}),f(ho,{className:To({"tile-disabled-image":!i}),children:f(qa,{src:g,alt:t.name||""})}),X(rs,{className:To("gbb-tile-contents",{"tile-disabled-contents":!i,"no-primary-url":!t.primaryUrlText}),children:[f(ji,{...l,className:"gbb-tile-name",children:f(ns,{children:t.name})}),t.formattedDescription?f(vo,{className:"good-better-best-tile-description",dangerouslySetInnerHTML:{__html:t.formattedDescription}}):f(vo,{className:"good-better-best-tile-description",children:f(Mg,{text:p})}),t.showPrice&&t.mpvId&&f(bc,{children:f(is,{mpvId:t.mpvId})}),t.mpvId&&f(ei,{className:"pot-margin-remove",children:f(wc,{mpvId:t.mpvId,trackingData:m})}),t.transformedSecondaryUrl&&t.secondaryUrlText&&f(ei,{children:f(ji,{skin:"cta",...d,mt:"5",children:t.secondaryUrlText||""})}),t.primaryUrlText&&f(Dt,{...u,skin:"secondary",size:"standard",my:"2",children:t.primaryUrlText})]})]})}),f(Fm,{sm:!0,md:!0,lg:!0,xl:!0,className:"gbb-hidden","data-testid":"gbb-tile-mobile",children:X(mo,{mb:"5",layout:"horizontal",...c,children:[f($l,{children:n&&f(Og,{callout:n,enableCampaignCallouts:o,mpvId:t.mpvId})}),f(ho,{children:f(qa,{src:t.imageUrl,alt:t.name||""})}),X(rs,{className:To("gbb-tile-contents",{"tile-disabled-contents":!i,"no-primary-url":!t.primaryUrlText}),children:[f(ji,{...l,className:"gbb-tile-name",children:f(ns,{children:t.name})}),t.formattedDescription?f(vo,{className:"good-better-best-tile-description",dangerouslySetInnerHTML:{__html:t.formattedDescription}}):f(vo,{className:"good-better-best-tile-description",children:f(Mg,{text:p})}),t.showPrice&&t.mpvId&&f(bc,{children:f(is,{mpvId:t.mpvId})}),t.mpvId&&f(ei,{className:"pot-margin-remove",children:f(wc,{mpvId:t.mpvId,trackingData:m})}),t.transformedSecondaryUrl&&t.secondaryUrlText&&f(ei,{children:f(ji,{...d,children:t.secondaryUrlText})}),t.primaryUrlText&&f(Dt,{...u,skin:"secondary",size:"mini",children:t.primaryUrlText})]})]})})]},`GoodBetterBestTile${r}`)},y0e=e=>{const{configuration:t,sectionNumber:r}=e,{sidebarEnabled:n,spaceId:i,backgroundColor:a}=et(),o=t?.backgroundColor?.name??a,s=!!t.fullWidthImage,c=t?.banner;if(c)return c.bannerTemplate?X(ue,{children:[f(Hw,{bannerProps:c.bannerTemplate,headerType:t.headerType,sectionNumber:r,sidebarEnabled:n}),f(xr,{rawSectionData:t})]}):f(ue,{});const l=ll(i,o),u=f(zd,{imageFocalPoint:t.imageFocalPoint??"right bottom",textBoxHorizontalAlign:"right",style:{"--swan-public-marketing-background":l?.code},darkMode:l?.mode.dark,variant:s?"full-width-image":"card",children:f(kO,{...t,sectionNumber:r})});return f(ue,{children:X(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:[n?f(qd,{"data-testid":"promoBannerWithSideNav",children:u}):u,f(xr,{rawSectionData:t})]})})};var JA=".remove-p-margin p:first-child{margin-top:0}";const b0e=e=>{qr(JA);const{sectionTitle:t,content:r}=e,{sidebarEnabled:n}=et();return X(ue,{children:[f(Be,{children:X(_e,{span:n?7:5,spanXs:12,children:[f(yn,{fontSize:"x2large",marginBottom:"5",children:t}),f(Dd,{dangerouslySetInnerHTML:{__html:r}}
388)]})}),f(xr,{rawSectionData:{sectionTitle:t,content:r}})]})},w0e=(e,t,r)=>!!e&&(r??!!t),T0e=e=>{const{locale:t,merchandisingCategoryId:r}=et(),{socialCurationsTitle:n,socialCurationsSubtitle:i,data:a}=e,o={pageName:`${r}:Category Page`,pageSection:"Category Page",pageStage:"Discover"};return X(ue,{children:[X(vn,{children:[X(Be,{mb:"7",children:[f(_e,{span:5,spanXs:12,children:f(yn,{fontSize:"x2large",children:n})}),f(_e,{span:12,spanXs:12,children:f(we,{children:i})})]}),f(Be,{children:f(_e,{span:12,children:f(NE,{widgetData:a,analyticsData:o,locale:t})})},1)]}),f(xr,{rawSectionData:{socialCurationsTitle:n,socialCurationsSubtitle:i,data:a}})]})},E0e=(e,t,r)=>!!e?.apiKey&&!!e.widget.instanceId&&!!e.source.id&&!!t&&!!r;class e${static requestor="category-page-v3";static developmentMode=!1}const S0e=(e,t)=>!!(e&&e.tileName?.value&&(!t||e.mpv&&e.mpv.mpvId)&&e.url),P0e=e=>!!(e&&e.mpv&&e.mpv.mpvId&&e.mpv.merchandisingDetails.filter(t=>t.type==="UploadFlow").length===1),C0e=(e,t,r,n,i)=>{const{value:a,localizedFields:o}=e,s=r?.data||r,c=o.find(v=>v.contentful_id===a.browseOurDesignsMpv?.contentful_id)?.mpvId,l=t.find(v=>v.mpvId===c),u=i?.find(v=>v.productKey===l?.coreProductId)?.url,d={tileName:o.find(v=>v.contentful_id===a.browseOurDesignsHeader?.contentful_id),tileDescription:o.find(v=>v.contentful_id===a.browseOurDesignsSubheader?.contentful_id),tileImage:o.find(v=>v.contentful_id===a.browseOurDesignsImage?.contentful_id),ctaText:o.find(v=>v.contentful_id===a.browseOurDesignsCtaText?.contentful_id),mpv:l,url:u},p={tileName:o.find(v=>v.contentful_id===a.uploadYourDesignHeader?.contentful_id),tileDescription:o.find(v=>v.contentful_id===a.uploadYourDesignSubheader?.contentful_id),tileImage:o.find(v=>v.contentful_id===a.uploadYourDesignImage?.contentful_id),ctaText:o.find(v=>v.contentful_id===a.uploadYourDesignCtaText?.contentful_id),mpv:n},g=s?.serviceConfig?.Standard?.status==="Available"?s?.urls?.hub:"",m={tileName:o.find(v=>v.contentful_id===a.designServicesHeader?.contentful_id),tileDescription:o.find(v=>v.contentful_id===a.designServicesSubheader?.contentful_id),tileImage:o.find(v=>v.contentful_id===a.designServicesImage?.contentful_id),ctaText:o.find(v=>v.contentful_id===a.designServicesCtaText?.contentful_id),url:g};return{browseOurDesignsTile:d,uploadYourDesignTile:p,designServicesTile:m}};var I0e=".virtual-section-tile .virtual-section-tile-container{height:100%}@media only screen and (max-width:1023px){.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-header{font-size:var(--swan-sem-font-size-small)}}.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-cta,.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-description{font-size:var(--swan-sem-font-size-small)}@media only screen and (max-width:1023px){.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-cta,.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-description{font-size:var(--swan-sem-font-size-small)}}@media only screen and (min-width:1440px){.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-image{width:var(--swan-sem-space-9)}}@media only screen and (min-width:1024px)and (max-width:1439px){.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-image{width:var(--swan-sem-space-8)}}@media only screen and (max-width:1023px){.virtual-section-tile .virtual-section-tile-container .virtual-section-tile-image{width:var(--swan-sem-font-size-x3large)}}";const t$=e=>{qr(I0e);const r=["browseDesigns","upload","workWithAPro"][e.index-1],n=f(yn,{fontSize:"large",className:"virtual-section-tile-header",children:e.tileName});return X(Re,{flexDirection:"row",justifyContent:"space-between",className:"virtual-section-tile-container",as:"span",children:[X(Re,{flexDirection:"column",justifyContent:"space-between",as:"span",children:[e.clickable?f(It,{skin:"unstyled",covering:!0,href:e.tileUrl,"data-section":e.pageZone,"data-position":e.index,"data-translation":e.ctaValue,children:n}):f(ue,{children:n}),f(we,{className:"virtual-section-tile-description",as:"span",children:e.tileDescription}),X(Re,{alignItems:"center",mt:"4",className:"virtual-section-tile-cta",as:"span",children:[f(Ba,{fontSize:"small",fontWeight:"bold",mr:"2",children:e.ctaText}),f(hn,{iconType:"arrowRight",size:"20p"})]})]}),f(Re,{justifyContent:"flex-end",as:"span",children:f(hn,{iconType:r})})]})},x0e=e=>{const{data:t,mpvs:r,designServices:n,uploadFlowMpv:i,galleries:a}=e,{locale:o,vatInclusivity:s,merchandisingCategoryId:c,tenant:l}=et(),u=C0e(t,r,n,i,a),d=[{tile:"browseOurDesignsTile",trackingId:"Browse Design",requiresMpv:!0},{tile:"uploadYourDesignTile"},{tile:"designServicesTile",trackingId:"Design Services",requiresMpv:!1}],p=(v,h)=>f(Bm,{skin:"link",as:"span",bordered:!0,evenHeight:!0,className:"virtual-section-tile",children:f(t$,{tileName:v.tileName.value,tileDescription:v.tileDescription.value,ctaText:v.ctaText?.value,tileImage:v.tileImage,tileUrl:v.url,pageZone:"Virtual Section",index:h,ctaValue:"Upload De
388sign",clickable:!1})},`tile-${v.tileName.value}`),g=v=>{const{tile:h,categoryId:P,destinationUrl:x,ctaValue:T,index:k,pageZone:M}=v;return f(Bm,{skin:"link",onClick:()=>An({categoryId:P,destinationUrl:x,ctaValue:T,index:k,pageZone:M}),bordered:!0,evenHeight:!0,className:"virtual-section-tile",children:f(t$,{tileName:h.tileName.value,tileDescription:h.tileDescription.value,ctaText:h.ctaText?.value,tileImage:h.tileImage,tileUrl:h.url,pageZone:M,index:k,ctaValue:T,clickable:!0})},`tile-${h.tileName.value}`)},m=(v,h)=>{const{requestor:P}=e$,x=p(v,h),T=v.mpv,k=T.quantities?.default;return f(Ow,{vatInc:s,analyticsPageData:{pageSection:"Category Page",pageStage:"Discover",pageName:`${c}:Category Page`,productName:T.name,coreProductId:T.coreProductId},tenant:l,locale:o,pricingContextString:os.getPricingContext(),mpvId:T.mpvId,loader:f("div",{className:"out-of-stock",children:x}),productKey:T.coreProductId,productName:T.name,productVersion:T.version,quantity:k,requestor:P,children:x})};return X(ue,{children:[f(Be,{children:d.map(({tile:v,trackingId:h,requiresMpv:P},x)=>{const T=u[v];return v==="uploadYourDesignTile"&&P0e(T)&&vg(l)?f(_e,{span:4,spanXs:12,children:m(T,x+1)},`virtual-section-${v}`):S0e(T,P)&&f(_e,{span:4,spanXs:12,children:g({tile:T,categoryId:c,destinationUrl:T.url,ctaValue:h,index:x+1,pageZone:"Virtual Section"})},`virtual-section-${v}`)})}),f(xr,{rawSectionData:t,resolvedSectionData:u})]})},r$=(e,t,r)=>{const n=e.galleryInformation?.[`${t}`]??e.galleryInformation?.[`${e.defaultLocale}`];if(!n||!n.selectedGallery)return;const i=n.selectedCategories?.map(s=>s.id)?.sort()?.join(","),a=n.selectedGallery.productKey,o=r?.find(s=>
388s.productKey===a&&s.categories?.sort().join(",")===i);return o?.images?.forEach(s=>{if(s.galleryUrl){const c=g0e(s.galleryUrl,"keyword");s.galleryUrl=c}}),o},_0e=e=>{const{content:t,galleries:r,nextSectionId:n,nextSectionTitle:i,sectionNumber:a}=e,{locale:o,backgroundColor:s,sidebarEnabled:c,merchandisingCategoryId:l,dictionaryEntries:u,spaceId:d}=et(),p=Or()==="xs",g=ll(d,s)?.mode.dark,m=c?3:4,v={xs:2.25,sm:m,md:m,lg:m,xl:m},h=r$(t,o,r);if(!h?.images||h.images.length<1)return f(ue,{});const{accessibleTextForNext:P,accessibleTextForPrevious:x,designImageAltTextPrefix:T,accessibleTextForSlide:k,accessibleTextForVisibleSlides:M,templateLane:$,carousel:O,slide:H}=u,J=RA(u.accessibleTextForDots,h.images.length),W=`${$}-${a}`,Z=`${t?.title?.value||`${$} ${a}`}`;return f(ue,{children:X(Jn,{children:[f(Be,{pt:9,mb:"5",children:f(_e,{span:10,children:t?.title?.value&&f(yn,{fontSize:"x2large",mb:0,darkMode:g,children:t.title.value})})}),f(oT,{nextSectionId:n,nextSectionTitle:i}),X(Be,{pb:"6",children:[f(_e,{span:c?7:5,children:t?.subtitle?.value&&f(we,{darkMode:g,children:t.subtitle.value})}),f(_e,{span:c?5:7,children:f(Re,{alignItems:"flex-end",justifyContent:"flex-end",children:t?.cta?.text&&f(we,{darkMode:g,fontSize:"standard",children:f(ji,{skin:"cta",href:h.url,"data-section":"Template Lane","data-translation":"CTA",onClick:()=>An({categoryId:l,destinationUrl:h.url,ctaValue:"CTA",pageZone:"Template Lane"}),children:t.cta.text})})})})]}),f(Be,{pb:"7",children:f(_e,{span:12,children:f(vn,{gutter:"tight",children:f(Lm,{swipeToSlide:!0,role:"region",darkMode:g,slidesToShow:v,gridGutters:!0,progressIndicator:"dots",progressIndicatorAlignment:"center",arrows:!p,infinite:!1,accessibleTextForPrevious:x,accessibleTextForDots:J,accessibleTextForNext:P,"aria-roledescription":O,"aria-labelledby":`${W}`,"aria-label":Z,accessibleTextForSlide:k,accessibleTextForVisibleSlides:M,children:h.images.map((B,Q)=>{const R=`${W}-${H}-${Q+1}`;return f(Um,{role:"group","aria-roledescription":H,"aria-label":`${H} ${Q+1} of ${h.images.length}: ${B.comparativeName||""}`,id:R,children:X(mo,{mb:"5",skin:"product",style:{backgroundColor:"rgba(0, 0, 0, 0.05)"},onClick:()=>{An({categoryId:l,destinationUrl:B.galleryUrl,ctaValue:`Tile ${Q}`,pageZone:"Template Lane",index:Q+1})},children:[f(ho,{children:f(Vd,{aspectRatio:1,src:`${typeof window<"u"&&!B.imageUrl?.startsWith("http")?window.location.protocol:""}${B.imageUrl}`,alt:M0e(T,B)})}),f(rs,{children:f(ji,{covering:!0,skin:"unstyled",href:B.galleryUrl,"data-section":"Template Lane","data-position":Q+1,"data-translation":`Tile ${Q}`,children:f(ns,{children:f(jd,{darkMode:g,fontSize:"small",children:B.comparativeName})})})})]})},`template-lane-image-${Q}`)})})})})}),f(xr,{rawSectionData:t,resolvedSectionData:{galleryInfo:h}})]})})},k0e=(e,t,r)=>{const n=r$(e,t,r);return n?.images&&n.images.length>0},M0e=(e,t)=>{let r=t.comparativeName;return e&&(r=`${e.trim()} ${t.comparativeName}`),r},O0e=["product grid","product grid horizontal XL","product grid horizontal","product lane","template collection grid","template collection lane","stock options","design template","bestsellers","new arrivals"],n$="anchor links",A0e=(e,t)=>{const r=e.type,n=t?.type,i=O0e.includes(r);return Xs(r)?8:r===n?i?6:8:i?8:10},$0e=e=>{const t=[...e];return t.find(i=>i.type===n$).items.filter(i=>i.title?.value).forEach(i=>{const a=i.categorySectionSectionId,o=L0e(i.title?.value),s=t.findIndex(c=>c.sectionId===a);s>=0&&(t[s].sectionId=o),i.categorySectionSectionId=o||i.categorySectionSectionId}),t},R0e=e=>e.find(t=>t.type===n$),N0e=e=>{const t=new Map;return e.map(r=>(t.has(r.type)?(t.set(r.type,t.get(r.type)+1),r.sectionTypeCount=t.get(r.type)):(t.set(r.type,1),r.sectionTypeCount=1),r))},D0e=e=>e.replace(/[^\w\s]/g,""),L0e=e=>{if(!e)return"";const t=/[^\x00-\x7F]/g,r=e.normalize("NFD").replace(t,"");return`_${D0e(r).trim().toLowerCase().replace(/\s+/g,"-")}`},U0e=({section:e})=>{const t=Or()==="xs",{sidebarEnabled:r}=et();return X(ue,{children:[f(Be,{children:X(_e,{span:r?7:5,children:[e.title&&f(we,{component:"h2",fontSize:"x2large",marginBottom:"4",children:e.title.value}),e.subtitle&&f(we,{fontSize:"standard",marginBottom:7,children:e.subt
388itle.value})]})}),f(Be,{children:e.items.map((n,i)=>X(_e,{marginBottom:"7",span:3,spanXs:6,children:[n.tileHeader&&f(we,{marginBottom:"2",fontWeight:"bold",fontSize:t?"xsmall":"standard",children:n.tileHeader.value}),n.tileDescription&&f(we,{fontSize:t?"xsmall":"standard",children:n.tileDescription.value})]},`information-tile-${i}`))}),f(xr,{rawSectionData:e})]})},F0e=e=>{const{publicId:t,playerId:r,posterImageFrame:n,sectionName:i,media:a}=e,{merchandisingCategoryId:o,tenant:s}=et(),[c,l]=pe(null);return Ee(()=>{const u=window.setInterval(function(){if(window.cloudinary&&window.cloudinary.Cloudinary){const d=window.cloudinary.Cloudinary.new({cloud_name:s,secure:!0});l(d),window.clearInterval(u)}},100);return function(){window.clearInterval(u)}},[]),Ee(()=>{const u=window.setInterval(function(){if(c&&c?.videoPlayer){const d={fluid:!0,colors:{accent:za.SwanBaseColorBlue700},autoplay:!1,controls:!0,logoOnclickUrl:`https://${document.location.hostname}/`,logoImageUrl:"https://cms.cloudinary.vpsvc.com/image/upload/dpr_auto,q_auto,h_25/v1560966964/logomark.png",playedEventPercents:[25,50,75,100]};n&&(d.transformation={startOffset:n});const p=c.videoPlayer(r,d);p.on("percentsplayed",m=>{YTe({categoryId:o,videoId:a?.video.publicId,videoUrl:a?.video.videoUrl,mobileVideoUrl:a?.video.mobileVideoUrl,name:i,progress:m.eventData.percent})});const g=m=>{XTe({categoryId:o,videoId:a.video.publicId,videoUrl:a.video.videoUrl,mobileVideoUrl:a.video.mobileVideoUrl,name:i,action:m})};p.on("play",()=>{g("play")}),p.on("pause",()=>{g("pause")}),window.clearInterval(u)}},100);return function(){window.clearInterval(u)}},[c]),f(ue,{children:f("video",{id:r,"data-cld-public-id":t,controls:!0,className:"cld-video-player"})})},B0e=e=>{const{section:t,sectionNumber:r}=e;qr(JA);const n=q0e(r,t.name,t.media),i=t.showMediaOnLeft?6:0;return X(ue,{children:[f(Be,{children:f(_e,{span:6,children:f(yn,{fontSize:"x2large",marginBottom:"5",children:t.title?.value})})}),X(Be,{children:[f(_e,{span:6,push:i,children:f(Dd,{className:"remove-p-margin",dangerouslySetInnerHTML:{__html:t.info?.value||""}})}),f(_e,{span:6,pull:i,children:n})]})]})},q0e=(e,t,r)=>{const n=r,i=r;return n?.cloudinaryImage?.fullWidthHeroCloudinaryUrl?f(Bl,{media:n}):i?.video?.videoUrl?f(F0e,{publicId:i.video.publicId,playerId:`information-media-section-${e}`,posterImageFrame:i.posterImageFrame,sectionName:t,media:i}):f(ue,{})},z0e=e=>!!e.title?.value&&(e.hasInfoHtml??!!e.info?.value),V0e=e=>{const t=e.find(n=>n.type==="anchor links");if(!t)return;const r={...t,items:[]};if(e.forEach(n=>{const i=t.items.find(o=>o.categorySectionSectionId===n.sectionId);!Xs(n.type)&&i?.title?.value&&r.items.push(i)}),!(r.items.length<=0))return r};var j0e=".anchor-bar-spacing{margin-bottom:var(--swan-sem-space-7);z-index:100}.anchor-bar-negative-margin{margin-top:calc(var(--swan-sem-space-8)*-1)}";const H0e=()=>window.location.hash.replace("#",""),G0e=e=>{qr(j0e);const[t,r]=y.useState(),{locale:n,spaceId:i}=et(),{sections:a}=e,o=V0e(a),s=o?.items;if(!s)return f(ue,{});Rl(()=>{const l=H0e(),u=document.getElementById(l);let d;const p=g=>{g.preventDefault(),u&&(d=setTimeout(()=>{const{top:m}=u.getBoundingClientRect(),v=document.querySelector(".swan-anchor-bar-list")?.clientHeight||0,h=parseInt(sE.SwanBaseSpace200)||0,P=window.scrollY+m-v-h;window.scrollTo({top:P,behavior:"smooth"}),r(l)},1500))};return document.addEventListener("load",p,{once:!0,capture:!0}),()=>{clearTimeout(d),document.removeEventListener("load",p)}},[]);const c=ll(i,o.backgroundColor?.name);return X(ue,{children:[f(iE,{className:"anchor-bar-spacing anchor-bar-negative-margin",sticky:!0,style:{backgroundColor:c?.code},onActiveAnchorChanged:r,darkMode:c?.mode.dark,children:f(aE,{children:s.map(l=>{const u=l.categorySectionSectionId,d=l.title?.value??"";return f(oE,{children:f("a",{href:`#${u}`,"aria-current":t===u?"true":void 0,onClick:()=>{e0e({destinationUrl:`#${u}`,locale:n,trackingValue:d})},children:l.title?.value})},u)})})}),f(xr,{rawSectionData:o,resolvedSectionData:o})]})};var i$=".ep-tiles-module-category-tile-Y2F0Z{background:none}.ep-tiles-module-category-tile-error-Y2F0Z,.ep-tiles-module-category-tile-wrapper-Y2F0Z{border-radius:var(--swan-sem-border-radius-container);overflow:hidden}",W0e=".ep-tiles-module-category-row-Y2F0Z{background:none}",Rg={exports:{}};Rg.exports,(function(e,t){var r=200,n="__lodash_hash_undefined__",i=1,a=2,o=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",v="[object Map]",h="[object Number]",P="[object Null]",x="[object Object]",T="[object Promise]",k="[object Proxy]",M="[object RegExp]",$="[object Set]",O="[object String]",H="[object Symbol]",J="[object Undef
388ined]",W="[object WeakMap]",me="[object ArrayBuffer]",Z="[object DataView]",B="[object Float32Array]",Q="[object Float64Array]",R="[object Int8Array]",Y="[object Int16Array]",ie="[object Int32Array]",he="[object Uint8Array]",ye="[object Uint8ClampedArray]",le="[object Uint16Array]",te="[object Uint32Array]",Oe=/[\\^$.*+?()[\]{}|]/g,ut=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,Pe={};Pe[B]=Pe[Q]=Pe[R]=Pe[Y]=Pe[ie]=Pe[he]=Pe[ye]=Pe[le]=Pe[te]=!0,Pe[s]=Pe[c]=Pe[me]=Pe[u]=Pe[Z]=Pe[d]=Pe[p]=Pe[g]=Pe[v]=Pe[h]=Pe[x]=Pe[M]=Pe[$]=Pe[O]=Pe[W]=!1;var $t=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Ne=typeof self=="object"&&self&&self.Object===Object&&self,Le=$t||Ne||Function("return this")(),Ve=t&&!t.nodeType&&t,Xe=Ve&&!0&&e&&!e.nodeType&&e,ot=Xe&&Xe.exports===Ve,We=ot&&$t.process,je=(function(){try{return We&&We.binding&&We.binding("util")}catch{}})(),ge=je&&je.isTypedArray;function Ze(D,j){for(var oe=-1,Se=D==null?0:D.length,Xt=0,Je=[];++oe<Se;){var gr=D[oe];j(gr,oe,D)&&(Je[Xt++]=gr)}return Je}function fe(D,j){for(var oe=-1,Se=j.length,Xt=D.length;++oe<Se;)D[Xt+oe]=j[oe];return D}function it(D,j){for(var oe=-1,Se=D==null?0:D.length;++oe<Se;)if(j(D[oe],oe,D))return!0;return!1}function Qe(D,j){for(var oe=-1,Se=Array(D);++oe<D;)Se[oe]=j(oe);return Se}function gt(D){return function(j){return D(j)}}function un(D,j){return D.has(j)}function mt(D,j){return D?.[j]}function Xr(D){var j=-1,oe=Array(D.size);return D.forEach(function(Se,Xt){oe[++j]=[Xt,Se]}),oe}function or(D,j){return function(oe){return D(j(oe))}}function Fe(D){var j=-1,oe=Array(D.size);return D.forEach(function(Se){oe[++j]=Se}),oe}var ke=Array.prototype,Ce=Function.prototype,Ie=Object.prototype,Ke=Le["__core-js_shared__"],St=Ce.toString,qe=Ie.hasOwnProperty,Pt=(function(){var D=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return D?"Symbol(src)_1."+D:""})(),jt=Ie.toString,yt=RegExp("^"+St.call(qe).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sr=ot?Le.Buffer:void 0,br=Le.Symbol,di=Le.Uint8Array,cr=Ie.propertyIsEnumerable,Br=ke.splice,wr=br?br.toStringTag:void 0,Nn=Object.getOwnPropertySymbols,Tr=sr?sr.isBuffer:void 0,dn=or(Object.keys,Object),Ki=Mi(Le,"DataView"),pi=Mi(Le,"Map"),Yi=Mi(Le,"Promise"),Xi=Mi(Le,"Set"),Ji=Mi(Le,"WeakMap"),pn=Mi(Object,"create"),fi=U(Ki),Yt=U(pi),fn=U(Yi),ea=U(Xi),ta=U(Ji),Zo=br?br.prototype:void 0,ra=Zo?Zo.valueOf:void 0;function gn(D){var j=-1,oe=D==null?0:D.length;for(this.clear();++j<oe;){var Se=D[j];this.set(Se[0],Se[1])}}function po(){this.__data__=pn?pn(null):{},this.size=0}function na(D){var j=this.has(D)&&delete this.__data__[D];return this.size-=j?1:0,j}function fc(D){var j=this.__data__;if(pn){var oe=j[D];return oe===n?void 0:oe}return qe.call(j,D)?j[D]:void 0}function Dn(D){var j=this.__data__;return pn?j[D]!==void 0:qe.call(j,D)}function w(D,j){var oe=this.__data__;return this.size+=this.has(D)?0:1,oe[D]=pn&&j===void 0?n:j,this}gn.prototype.clear=po,gn.prototype.delete=na,gn.prototype.get=fc,gn.prototype.has=Dn,gn.prototype.set=w;function S(D){var j=-1,oe=D==null?0:D.length;for(this.clear();++j<oe;){var Se=D[j];this.set(Se[0],Se[1])}}function E(){this.__data__=[],this.size=0}function I(D){var j=this.__data__,oe=Jr(j,D);if(oe<0)return!1;var Se=j.length-1;return oe==Se?j.pop():Br.call(j,oe,1),--this.size,!0}function A(D){var j=this.__data__,oe=Jr(j,D);return oe<0?void 0:j[oe][1]}function C(D){return Jr(this.__data__,D)>-1}function N(D,j){var oe=this.__data__,Se=Jr(oe,D);return Se<0?(++this.size,oe.push([D,j])):oe[Se][1]=j,this}S.prototype.clear=E,S.prototype.delete=I,S.prototype.get=A,S.prototype.has=C,S.prototype.set=N;function F(D){var j=-1,oe=D==null?0:D.length;for(this.clear();++j<oe;){var Se=D[j];this.set(Se[0],Se[1])}}function q(){this.size=0,this.__data__={hash:new gn,map:new(pi||S),string:new gn}}function G(D){var j=Yo(this,D).delete(D);return this.size-=j?1:0,j}function V(D){return Yo(this,D).get(D)}function ee(D){return Yo(this,D).has(D)}function se(D,j){var oe=Yo(this,D),Se=oe.size;return oe.set(D,j),this.size+=oe.size==Se?0:1,this}F.prototype.clear=q,F.prototype.delete=G,F.prototype.get=V,F.prototype.has=ee,F.prototype.set=se;function be(D){var j=-1,oe=D==null?0:D.length;for(this.__data__=new F;++j<oe;)this.add(D[j])}function xe(D){return this.__data__.set(D,n),this}function st(D){return this.__data__.has(D)}be.prototype.add=be.prototype.push=xe,be.prototype.has=st;function He(D){var j=this.__data__=new S(D);this.size=j.size}function In(){this.__data__=new S,this.size=0}function Ht(D){var j=this.__data__,oe=j.delete(D);return this.size=j.size,oe}function Wt(D){return this.__data__.get(D)}function kr(D){return this.__data__.has(D)}function ki(D,j){var oe=this.__data__;if(oe instanceof S){var Se=oe.__data__;
vendor: 1,280 bytes, line 388
388if(!pi||Se.length<r-1)return Se.push([D,j]),this.size=++oe.size,this;oe=this.__data__=new F(Se)}return oe.set(D,j),this.size=oe.size,this}He.prototype.clear=In,He.prototype.delete=Ht,He.prototype.get=Wt,He.prototype.has=kr,He.prototype.set=ki;function xn(D,j){var oe=de(D),Se=!oe&&re(D),Xt=!oe&&!Se&&Ue(D),Je=!oe&&!Se&&!Xt&&GN(D),gr=oe||Se||Xt||Je,en=gr?Qe(D.length,String):[],mn=en.length;for(var lr in D)qe.call(D,lr)&&!(gr&&(lr=="length"||Xt&&(lr=="offset"||lr=="parent")||Je&&(lr=="buffer"||lr=="byteLength"||lr=="byteOffset")||ia(lr,mn)))&&en.push(lr);return en}function Jr(D,j){for(var oe=D.length;oe--;)if(K(D[oe][0],j))return oe;return-1}function Yn(D,j,oe){var Se=j(D);return de(D)?Se:fe(Se,oe(D))}function Er(D){return D==null?D===void 0?J:P:wr&&wr in Object(D)?Pd(D):_(D)}function Mr(D){return Id(D)&&Er(D)==s}function Qt(D,j,oe,Se,Xt){return D===j?!0:D==null||j==null||!Id(D)&&!Id(j)?D!==D&&j!==j:Gt(D,j,oe,Se,Qt,Xt)}function Gt(D,j,oe,Se,Xt,Je){var gr=de(D),en=de(j),mn=gr?c:Xn(D),lr=en?c:Xn(j);mn=mn==s?x:mn,lr=lr==s?x:lr;var gi=mn==x,aa=lr==x,_n=mn==lr;if(_n&&Ue(D)){if(!Ue(j))return!1;gr=!0,gi=!1}if(_n&&!gi)return Je||(Je=new He),gr||GN(D)?ht(D,j,oe,Se,Xt,Je):gc(D,j,mn,oe,Se,Xt,Je);if(!(oe&i)){var Oi=gi&&qe.call(D,"__wrapped__"),Ai=aa&&qe.call(j,"__wrapped__");
388if(Oi||Ai){var Xo=Oi?D.value():D,go=Ai?j.value():j;return Je||(Je=new He),Xt(Xo,go,oe,Se,Je)}}return _n?(Je||(Je=new He),mc(D,j,oe,Se,Xt,Je)):!1}function La(D){if(!bt(D)||z(D))return!1;var j=Ct(D)?yt:ut;return j.test(U(D))}function Ln(D){return Id(D)&&Ua(D.length)&&!!Pe[Er(D)]}function fr(D){if(!b(D))return dn(D);var j=[];for(var oe in Object(D))qe.call(D,oe)&&oe!="constructor"&&j.push(oe);return j}function ht(D,j,oe,Se,Xt,Je){var gr=oe&i,en=D.length,mn=j.length;if(en!=mn&&!(gr&&mn>en))return!1;var lr=Je.get(D);if(lr&&Je.get(j))return lr==j;var gi=-1,aa=!0,_n=oe&a?new be:void 0;for(Je.set(D,j),Je.set(j,D);++gi<en;){var Oi=D[gi],Ai=j[gi];if(Se)var Xo=gr?Se(Ai,Oi,gi,j,D,Je):Se(Oi,Ai,gi,D,j,Je);if(Xo!==void 0){if(Xo)continue;aa=!1;break}if(_n){if(!it(j,function(go,hc){if(!un(_n,hc)&&(Oi===go||Xt(Oi,go,oe,Se,Je)))return _n.push(hc)})){aa=!1;break}}else if(!(Oi===Ai||Xt(Oi,Ai,oe,Se,Je))){aa=!1;break}}return Je.delete(D),Je.delete(j),aa}function gc(D,j,oe,Se,Xt,Je,gr){switch(oe){case Z:if(D.byteLength!=j.byteLength||D.byteOffset!=j.byteOffset)return!1;D=D.buffer,j=j.buffer;case me:return!(D.byteLength!=j.byteLength||!Je(new di(D),new di(j)));case u:case d:case h:return K(+D,+j);case p:return D.name==j.name&&D.message==j.message;case M:case O:return D==j+"";case v:var en=Xr;case $:var mn=Se&i;if(en||(en=Fe),D.size!=j.size&&!mn)return!1;var lr=gr.get(D);if(lr)return lr==j;Se|=a,gr.set(D,j);var gi=ht(en(D),en(j),Se,Xt,Je,gr);return gr.delete(D),gi;case H:if(ra)return ra.call(D)==ra.call(j)}return!1}function mc(D,j,oe,Se,Xt,Je){var gr=oe&i,en=Ko(D),mn=en.length,lr=Ko(j),gi=lr.length;if(mn!=gi&&!gr)return!1;for(var aa=mn;aa--;){var _n=en[aa];if(!(gr?_n in j:qe.call(j,_n)))return!1}var Oi=Je.get(D);if(Oi&&Je.get(j))return Oi==j;var Ai=!0;Je.set(D,j),Je.set(j,D);for(var Xo=gr;++aa<mn;){_n=en[aa];var go=D[_n],hc=j[_n];if(Se)var WN=gr?Se(hc,go,_n,j,D,Je):Se(go,hc,_n,D,j,Je);if(!(WN===void 0?go===hc||Xt(go,hc,oe,Se,Je):WN)){Ai=!1;break}Xo||(Xo=_n=="constructor")}if(Ai&&!Xo){var lm=D.constructor,um=j.constructor;lm!=um&&"constructor"in D&&"constructor"in j&&!(typeof lm=="function"&&lm instanceof lm&&typeof um=="function"&&um instanceof um)&&(Ai=!1)}return Je.delete(D),Je.delete(j),Ai}function Ko(D){return Yn(D,CLe,Cd)}function Yo(D,j){var oe=D.__data__;return fo(j)?oe[typeof j=="string"?"string":"hash"]:oe.map}function Mi(D,j){var oe=mt(D,j);return La(oe)?oe:void 0}function Pd(D){var j=qe.call(D,wr),oe=D[wr];try{D[wr]=void 0;var Se=!0}catch{}var Xt=jt.call(D);return Se&&(j?D[wr]=oe:delete D[wr]),Xt}var Cd=Nn?function(D){return D==null?[]:(D=Object(D),Ze(Nn(D),function(j){return cr.call(D,j)}))}:ILe,Xn=Er;(Ki&&Xn(new Ki(new ArrayBuffer(1)))!=Z||pi&&Xn(new pi)!=v||Yi&&Xn(Yi.resolve())!=T||Xi&&Xn(new Xi)!=$||Ji&&Xn(new Ji)!=W)&&(Xn=function(D){var j=Er(D),oe=j==x?D.constructor:void 0,Se=oe?U(oe):"";if(Se)switch(Se){case fi:return Z;case Yt:return v;case fn:return T;case ea:return $;case ta:return W}return j});function ia(D,j){return j=j??o,!!j&&(typeof D=="number"||ve.test(D))&&D>-1&&D%1==0&&D<j}function fo(D){var j=typeof D;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?D!=="__proto__":D===null}function z(D){return!!Pt&&Pt in D}function b(D){var j=D&&D.constructor,oe=typeof j=="function"&&j.prototype||Ie;return D===oe}function _(D){return jt.call(D)}function U(D){if(D!=null){try{return St.call(D)}catch{}try{return D+""}catch{}}return""}function K(D,j){return D===j||D!==D&&j!==j}var re=Mr((function(){return arguments})())?Mr:function(D){return Id(D)&&qe.call(D,"callee")&&!cr.call(D,"callee")},de=Array.isArray;function Ae(D){return D!=null&&Ua(D.length)&&!Ct(D)}var Ue=Tr||xLe;function Ot(D,j){return Qt(D,j)}function Ct(D){if(!bt(D))return!1;var j=Er(D);return j==g||j==m||j==l||j==k}function Ua(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=o}function bt(D){var j=typeof D;return D!=null&&(j=="object"||j=="function")}function Id(D){return D!=null&&typeof D=="object"}var GN=ge?gt(ge):Ln;function CLe(D){return Ae(D)?xn(D):fr(D)}function ILe(){return[]}function xLe(){return!1}e.exports=Ot})(Rg,Rg.exports);var Q0e=Rg.exports,Z0e=Ec(Q0e);const a$=({galleries:e,actionId:t,actionFilters:r,locale:n})=>{const i=FTe(t,r);
388if(i){const{categories:a,productKey:o}=i,s=e?.find(c=>Z0e(c.categories,a)&&c.locale===n&&c.productKey===o);if(s)return s.url}},o$="middle",s$="c_fill,ar_4:5",K0e=({configuration:e,galleries:t})=>{qr(i$),qr(W0e);const{locale:r,tenant:n,sidebarEnabled:i,merchandisingCategoryId:a}=et(),{title:o,items:s,sectionTypeCount:c}=e,l=s.map(d=>{const p=d.link,{cloudinaryImage:g,text:m,targetUrl:v,actionId:h,actionFilters:P}=p,x=a$({...t&&{galleries:t},...P&&{actionFilters:P},actionId:h,locale:r})||v;if(!g?.cloudinaryUrl||!v)return null;const T=ss.applyImageTransformation(g.cloudinaryUrl,s$);return{categoryId:h,categoryTileTitle:m,categoryTileImage:{src:T,altTextOverride:m},categoryTileUrl:x}}).filter(d=>d!==null);if(!l.length)return null;const u=d=>{const p=l.findIndex(g=>g.categoryTileUrl===d.categoryTileUrl);HA({categoryId:a,destinationUrl:d.categoryTileUrl,pageZone:"Category Row",ctaValue:`Tile ${p+1}`,index:p+1,itemsCount:l.length,sectionTypeCount:c??1})};return X(ue,{children:[f(bl,{xs:!0,children:f(zE,{categoryDestinationLevel:Va.ROOT,title:o?.value,tiles:l,locale:r,tenant:n,trackOnClick:u})}),f(bl,{sm:!0,md:!0,lg:!0,xl:!0,children:f(zE,{categoryDestinationLevel:i?Va.NEXT:Va.ROOT,title:o?.value,tiles:l,locale:r,tenant:n,trackOnClick:u})}),f(xr,{rawSectionData:e,resolvedSectionData:l})]})},Y0e=e=>{const{browseDesign:t,browseDesignCta:r,uploadDesignCta:n,productName:i,productId:a,mpvId:o,version:s,quantity:c,tabIndex:l,disableUploadFlow:u,isOutOfStock:d}=e,p=Or()==="xs",{merchandisingCategoryId:g,locale:m,vatInclusivity:v,tenant:h}=et();return X(Re,{flexWrap:p?"wrap":"unset",gap:"between-actions",flexDirection:"row",marginTop:6,children:[t&&f(Dt,{skin:d?null:"primary",width:"full-width",render:P=>f(It,{to:d?null:t,className:P.className,"aria-disabled":d,onClick:d?void 0:()=>{dd({categoryId:g,pageZone:"stockOptions",destinationUrl:t,tabIndex:l+1,stockOptionsCtaText:"Browse Designs"})},children:P.children}),children:r}),!u&&f(Ow,{vatInc:v,analyticsPageData:{pageSection:"Category Page",pageStage:"Discover",pageName:`${g}:Category Page`,productName:i,coreProductId:a,label:`Options Display:stockOptions:${l+1}`},tenant:h,locale:m,pricingContextString:os.getPricingContext(),mpvId:o,loader:f(Dt,{skin:"secondary",width:"full-width",disabled:!0,children:n}),productKey:a,productName:i,productVersion:s,quantity:c,requestor:e$.requestor,children:f(Dt,{skin:"secondary",width:"full-width",disabled:d,children:n})})]})};var c$=".tabimage-border{border-radius:var(--swan-sem-border-radius-standard)}.hero-image-border{border-radius:var(--swan-sem-border-radius-strong)}";const l$=(e,t)=>{if(!e||typeof e!="string")return e||"";if(!t.width||t.width<=0||!t.aspectRatio||t.aspectRatio<=0)return e;try{const r=e.split("?"),n=r[0],i=r[1]?`?${r[1]}`:"";if(!n||!n.includes("cloudinary")||!n.includes("/images/"))return e;const a=n.indexOf("/images/"),o=n.substring(0,a+8),c=n.substring(a+8).split("/");let l=0;for(let v=0;v<c.length;v++){const h=c[v];if(h&&(!h.includes("_")||h.startsWith("legacy_dam"))){l=v;break}}const u=c.slice(l).join("/"),{width:d,aspectRatio:p}=t,g=`c_fill,g_center,dpr_auto,f_auto,w_${d},ar_${p}`;return`${o}${g}/${u}${i}`}catch{return e}},X0e=(e,t=600)=>l$(e,{width:t,aspectRatio:1.6}),J0e=(e,t=200)=>l$(e,{width:t,aspectRatio:1.6}),eEe=["raisedFoilBusinessCards","raisedFoilSwingTags"],tEe=e=>{const{mpvId:t,item:r,browseDesignCta:n,uploadDesignCta:i,viewDetailsCta:a,browseDesign:o,highlightsSectionTitle:s,tabIndex:c,outOfStockContent:l,currentTabId:u,isActiveTab:d,hasBeenVisited:p}=e,{merchandisingCategoryId:g,dictionaryEntries:m}=et(),v=Or()==="xs";qr(c$);const h=Ye(()=>!r.description||typeof r.description!="string"||r.description.trim()===""?[]:r.description.split(` 389`).map(T=>T.trim()).filter(T=>T.length>0),[r.description]),P=Ye(()=>$g({isOutOfStock:r?.isOutOfStock??!1,outOfStockText:m?.outOfStock||"",callout:r?.callout}),[r?.isOutOfStock,r?.callout,m]),x=T=>eEe.includes(T);return(d||p)&&f(ue,{children:f(qm,{tabId:u,children:X(Be,{children:[r.isOutOfStock&&f(_e,{span:12,marginBottom:6,children:f(es,{skin:"warning","data-testid":"outOfStockAlert",children:l})}),f(_e,{span:6,marginBottom:{xs:7,sm:7,md:8},children:f(ct,{children:f(qa,{src:X0e(r.image.src),alt:"",loading:"lazy","data-testid":"heroImage",className:"hero-image-border"})})}),X(_e,{span:6,children:[f(Be,{children:X(_e,{span:12,marginBottom:6,children:[X(Re,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",flexWrap:v?"wrap":"unset",gap:1,children:[X(we,{fontSkin:"title-section",marginBottom:2,"data-testid":"title",children:[r.name,r.review&&f(Tl,{"data-testid":"ratingsStars",style:{display:v?"unset":"inline-block"}
389,ratingValue:r.review.averageRating,reviews:r.review.reviewsCount,fontSkin:"body-standard",marginLeft:3})]}),f(It,{"data-testid":"viewDetailsLink",marginBottom:{xs:3},href:r.linkUrl,fontSkin:"body-standard",covering:!0,onClick:()=>{dd({categoryId:g,pageZone:"stockOptions",destinationUrl:r.linkUrl,tabIndex:c+1,stockOptionsCtaText:"View full details header"})}})]}),P&&f(Og,{callout:P,mpvId:t,enableCampaignCallouts:!0,styleConfig:{marginBottom:2}}),f(we,{fontSkin:"body-standard","data-testid":"productDescription",children:r.defaultProductDescription})]})}),f(Be,{children:h&&h.length>0?X(_e,{span:12,spanXs:12,children:[f(we,{fontSkin:"title-subsection",marginBottom:3,"data-testid":"highlightsSectionTitle",children:s}),f(Mg,{text:h})]}):null}),r.linkUrl&&f(Be,{marginTop:6,children:f(_e,{span:12,children:f(It,{"data-testid":"viewDetailsLinkFooter",marginBottom:{xs:3},href:r.linkUrl,fontSkin:"body-standard",onClick:()=>{dd({categoryId:g,pageZone:"stockOptions",destinationUrl:r.linkUrl,tabIndex:c+1,stockOptionsCtaText:"View full details"})},children:a})})}),!r.isOutOfStock&&f(Be,{children:X(_e,{span:12,children:[f(we,{textColor:"subtle",children:f(is,{"data-testid":"priceDisplay",mpvId:t,quantity:r.selectedProductVariants.quantity,selections:r.selectedProductVariants.variants})}),f(wc,{mpvId:t,"data-testid":"couponCallout",trackingData:{pageZone:"Stock Options"}})]})}),f(Y0e,{browseDesign:o,browseDesignCta:n,uploadDesignCta:i,productName:r.name,productId:r.productId,mpvId:t,version:r.version,quantity:r.selectedProductVariants.quantity,tabIndex:c,disableUploadFlow:x(t),isOutOfStock:r.isOutOfStock})]})]})},t)})},rEe=e=>{const{stockOptionData:t}=e;qr(c$);const r=vt(null),{merchandisingCategoryId:n,dictionaryEntries:i}=et(),[a,o]=pe("1"),[s,c]=pe(new Set(["1"])),l={highlights:i?.stockOptionsHighlights??"",uploadCta:i?.stockOptionsUploadDesignCTA??"",viewDetails:i?.stockOptionsViewFullDetails??"",browseDesigns:i?.stockOptionsBrowseDesigns??"",outOfStock:i?.stockOptionsOutOfStock??""},u=d=>{d&&(o(d),c(p=>new Set(p).add(d)),sessionStorage.setItem("stockOptionsTabId",d))};return t?X(ue,{children:[X(vn,{paddingX:0,children:[X(cE,{marginBottom:3,children:[f(yn,{"data-testid":"sectionTitle",fontSize:"x2large",children:t.title}),f(we,{"data-testid":"sectionDescription",fontSize:"standard",children:t.subtitle})]}),f(Be,{children:f(_e,{span:12,children:X(zm,{"data-testid":"stockOptionsTabs",selectedTabId:a,onRequestTabChange:d=>{GA({categoryId:n,pageZone:"stockOptions",tabIndex:d}),u(d)},children:[f(Vm,{ref:r,"data-testid":"stockOptionsTabsHeaders",children:t.items?.map((d,p)=>X(jm,{tabId:`${p+1}`,"data-testid":"stockOptionsTabItem",children:[f(lE,{"data-testid":`stockOptionsTabImage-${d.name}`,className:"tabimage-border",src:J0e(d.image.src),height:"64",alt:`${d.name}`}),f("br",{}),f(we,{fontSize:"small","data-testid":"merchandisingName",children:d.name})]},d.mpvId))}),f(Hm,{"data-testid":"stockOptionsTabsContents",children:t.items.map((d,p)=>{const g=`${p+1}`,m=a===g;return f(tEe,{mpvId:d.mpvId,item:d,browseDesign:d.browseDesignsUrl,browseDesignCta:l.browseDesigns,uploadDesignCta:l.uploadCta,viewDetailsCta:l.viewDetails,highlightsSectionTitle:l.highlights,tabIndex:p,outOfStockContent:l.outOfStock,isActiveTab:m,hasBeenVisited:s.has(g),currentTabId:g},d.mpvId)})})]})})})]}),f(xr,{rawSectionData:t??{},resolvedSectionData:t})]}):null},nEe=(e="")=>e.replace(" and "," & "),iEe=()=>{const{designTemplateData:e,dictionaryEntries:t}=et(),r=e?.designTemplates,n=vt(null),{merchandisingCategoryId:i}=et(),[a,o]=y.useState("1");if(!r||!r.length)return f(ue,{});if(r&&r.length>0&&r[0]){const p=t.mostPopularCTA??"";r[0].tabHeader=p}const s=t.designTemplateHeader,c=t.designTemplateDescription,l=t.designTemplateCTA,u=p=>p?`${e.browseAllUrl}?categories=${p}`:`${e.browseAllUrl}`,d=p=>{p&&(o(p),sessionStorage.setItem("designTemplateTabId",p))};return X(vn,{children:[f(Be,{children:f(_e,{span:12,children:f(yn,{fontSize:"x2large",marginBottom:"5",children:s})})}),f(Be,{marginBottom:"4",children:f(_e,{span:12,children:f(we,{children:c})})}),f(Be,{children:f(_e,{span:12,children:X(zm,{selectedTabId:a,onRequestTabChange:p=>{GA({categoryId:i,pageZone:"designTemplate",tabIndex:p}),d(p)},children:[f(Vm,{ref:n,children:r.map((p,g)=>f(jm,{tabId:`${g+1}`,children:nEe(p.tabHeader)},`${g+1}`))}),f(Hm,{children:r.map((p,g)=>{const m=`${g+1}`;return f(qm,{tabId:m,children:a===m&&X(ue,{children:[f(vn,{children:f(Be,{children:p.templates.map((h,P)=>f(_e,{span:3,spanXs:6,children:f(mo,{skin:"product",onClick:()=>{dd({categoryId:i,pageZone:"designTemplate",destinationUrl:h.urlToQuickView,tabIndex:g+1,templateIndex:P+1,designId:h.designId})},children:X(ho,{m:0,children:[f(qa,{src:h.image,style:{verticalAlign:o$},loading:"lazy"}),f(It,{href:h.urlToQuickView,covering:!0,style:{verticalAlign:o$}})]})})},h.designId))})}),f(Be,{children:f(_e,{span:12,children:f(It,{id:"see-all-cta",skin:"cta",href:u(p.categoryKey),onClick:()=>{dd({categoryId:i,pageZone:"designTemplate",destinationUrl:u(p.categoryKey),tabIndex:g+1,isDesignTemplateCTA:!0})},children:l})})})]})},p.tabHeader)})})]})})})]})};function aEe(e,t,r){if(!t)return null;const n=e.sectionId,i=t?.sections?.find(o=>o.sectionId===n);return!i||!Jd(i,r)?null:{title:i.header.title,subtitle:i.header.subtitle,items:i.items,automationEnabled:!0}}function Hi(e,t,r){const n=i=>{if(!(i instanceof CustomEvent))return;const a=i;e===a.detail.page&&r(a.detail.data)};return document.addEventListener(t,n),n}function Gi(e,t){document.removeEventListener(e,t)}function Wi(e,t,r){document.dispatchEvent(oEe(e,t,r))}function oEe(e,t,r){return new CustomEvent(e,{detail:{page:t,data:r}})}var ft;(function(e){e.ProductListViewed="productListViewed",e.ProductAddedToCard="productAddedToCart",e.ProductClicked="productClicked",e.ErrorFetchingProductRecommendations="errorFetchingProductRecommendations",e.DisabledRecommendations="disabledRecommendations",e.QuantityChanged="quantityChanged",e.ColorChanged="colorChanged",e.FlyoutViewed="flyoutVie
389wed",e.FlyoutClosed="flyoutClosed",e.EmptyProductListViewed="emptyProductListViewed"})(ft||(ft={}));class cT extends Error{isPoeError;message;status;correlationId;selector;constructor(t,r,n,i){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,cT),this.name="PoeError",this.isPoeError=!0,this.message=t,this.status=r,this.correlationId=n,this.selector=i}}const lT=e=>e.isPoeError,Ng=e=>lT(e)?e:void 0,sEe="https://placement-offer-engine.personalization.vpsvc.com/api/v7/placements";var u$;(function(e){e.none="none",e.lastModified="lastModified",e.lastOrdered="lastOrdered",e.mostFrequentlyOrdered="mostFrequentlyOrdered",e.highestRevenue="highestRevenue",e.fromCart="fromCart",e.externalAsset="externalAsset",e.externalLogo="externalLogo",e.brandId="brandId",e.brandKitLastModified="brandKitLastModified",e.brandKitPrimary="brandKitPrimary",e.externallyConfigured="externallyConfigured"})(u$||(u$={}));async function cEe(e){const t=uEe(e.pageContext,e.product?.mpvId),r=lEe(t,e.customerContext,e.timeZone,e.requestor,e.product,e.contentSources,e.encodedPricingContext,e.options?.imageWith,e.marketingMessageOverrides,e.polyCategory);return await dEe(r,t,e.correlationId,e.authorizationHeader,e.options?.cacheOptions)}function lEe(e,t,r,n,i,a,o,s,c,l){const u={selector:e,productId:i?.mpvId,productKey:i?.coreProduct?.key,productVersion:i?.coreProduct?.version,productOptions:i?.coreProduct?.options,productQuantity:i?.quantity,documentUrl:a?.documentUrl,albelliDocId:a?.albelliDocId,uploadUrl:a?.imageUrl,brandId:a?.brandId,imageWidth:s||500,pricingContext:o,customerId:t.customerId,userTestId:t.userTestId,customerConsent:t.customerConsent,marketingMessageId:c?.marketingMessageId,offerGroupTitle:c?.offerGroupTitle,designSourceOption:c?.designSourceOption,polyCategory:l,timeZone:r,requestor:n};return`${sEe}?${Ju.stringify(u,{sort:gEe})}`}function uEe(e,t){return t!==void 0?`/${e.tenant}/${e.locale}/${e.page}/${t}`:`/${e.tenant}/${e.locale}/${e.page}`}async function dEe(e,t,r,n,i){const a=r||pEe(),o={"x-correlation-id":a,...i&&{"Cache-Control":i},...n&&{Authorization:n}},s=await fetch(e,{headers:o});if(!s.ok)throw new cT(await fEe(s),s.status,a,t);return{...await s.json(),correlationId:a}}function pEe(){try{return crypto.randomUUID()}catch{return Math.random().toString(36)}}async function fEe(e){if(typeof e.text=="function"){const t=await e.text();if(t)return t}return e.statusText}function gEe(e,t){return e.localeCompare(t)}var d$;(function(e){e.Grid="grid",e.Carousel="carousel"})(d$||(d$={}));var Pn;(function(e){e.AddToCart="AddToCart",e.EditInMiniStudio="EditInMiniStudio",e.EditInStudio="EditInStudio",e.GoToProductPage="GoToProductPage",e.GoToGallery="GoToGallery"})(Pn||(Pn={}));var uT;(function(e){e.Image="Image",e.Title="Title",e.Description="Description",e.Price="Price",e.Ratings="Ratings"})(uT||(uT={}));var p$;(function(e){e.Image="Image",e.DocumentMatching="DocumentMatching",e.NonDesignable="NonDesignable",e.SmartAssets="SmartAssets"})(p$||(p$={}));const dT="MicroAgent should not be used in Node Environment",mEe=(e,t)=>{let r=null,n=[],i=typeof window<"u";const a=async()=>{try{const c=await t();if(c===null){i=!1,n.forEach(({reject:l})=>{l(new Error(dT))}),n=[];return}r=new c.MicroAgent(...e);for(const{method:l,args:u,resolve:d,reject:p}of n)try{const g=r[l](...u);d(g)}catch(g){p(g)}n=[]}catch(c){for(const{reject:l}of n)l(c);n=[]}},o=(c,l)=>new Promise((u,d)=>{n.push({method:c,args:l,resolve:u,reject:d})});i&&a();let s=typeof window>"u";return{proxyMethod(c){return(...l)=>(s&&(console.warn(dT),s=!1),r?Promise.resolve(r[c](...l)):i?o(c,l):Promise.reject(new Error(dT)))}}},hEe=()=>"https://www.vistaprint.com/assets/new-relic-microagent",vEe=e=>`https://www.${e}/assets/new-relic-microagent`,yEe=e=>{const t=e.match(/vistaprint\.[a-z]{2,3}(\.[a-z]{2,3})?/);return t&&t[0]?vEe(t[0]):hEe()},f$="@vp/newrelic-browser-micro-agent/agent",bEe=()=>{if(window._vpMicroAgentModule)return window._vpMicroAgentModule;if(window.System?.resolve(f$))return window._vpMicroAgentModule=window.System.import(f$),window._vpMicroAgentModule;const e=yEe(window.location.hostname);return window._vpMicroAgentModule=wEe(e).catch(t=>{throw console.error("MicroAgent failed to load",{url:e,error:t.message}),window._vpMicroAgentModule=void 0,t}),window._vpMicroAgentModule};function wEe(e){const t=window.__vpMicroAgentRegister;if(t?.module)return Promise.resolve(t.module);if(t?.pending)return t.pending;let r,n;const i=new Promise((o,s)=>{r=o,n=s});window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=i);const a=document.createElement("script");return a.type="module",a.src=e,a.onerror=(o,s)=>{console.error("Error loading module script:",o,s),window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=void 0),n(new Error(`Failed to load module script: ${e}`))},a.onload=()=>{const o=window.__vpMicroAgentRegister;o?.module?(o.pending=void 0,r(o.module)):(o&&(o.pending=void 0),n(new Error(`Module ${e} loaded but did not register itself.`))),a.remove()},document.head.appendChild(a),i}typeof window<"u"&&(!window.__vpMicroAgentRegister||!window.__vpMicroAgentRegister.version||window.__vpMicroAgentRegister.version<1)&&(window.__vpMicroAgentRegister=Object.assign(function(e,t){window.__vpMicroAgentRegister.module=t},{version:1,import:bEe,module:void 0,pending:void 0}));const TEe=(...e)=>{const t=async()=>
389{if(typeof window<"u")try{const n=window.__vpMicroAgentRegister?.import;if(!n)throw new Error("MicroAgent import helper not found on window.__vpMicroAgentRegister");return await n()}catch(n){return console.error("MicroAgent failed to load",n),null}else return null},r=mEe(e,()=>t());return new Proxy({},{get:(n,i)=>{const a=r.proxyMethod(i);if(a)return(...o)=>a(...o).catch(()=>{})}})};class EEe{microAgent;constructor(){typeof window<"u"&&this.loadMicroAgent()}async loadMicroAgent(){try{this.microAgent=TEe({info:{applicationID:1120314841,beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"NRBR-df3f674c9f6d421f00f",sa:1},init:{ajax:{deny_list:["bam.nr-data.net"]},distributed_tracing:{enabled:!0,cors_use_newrelic_header:!0,cors_use_tracecontext_headers:!0,allowed_origins:["https://accessories.personalization.vpsvc.com","https://placement-offer-engine.personalization.vpsvc.com"]},privacy:{cookies_enabled:!0}},loader_config:{accountID:2429158,agentID:1120314841,applicationID:1120314841,licenseKey:"NRBR-df3f674c9f6d421f00f",trustKey:1106546},exposed:!1}),this.microAgent.start(["jserrors","page_action","metrics"]),this.setApplicationVersion("43.4.3"),this.setCustomAttribute("labels.vista.team_tag","VPD-0091"),this.setCustomAttribute("labels.team","recommendations"),this.setCustomAttribute("labels.product","recommendations-stack"),window&&(window.QuantumMetricAPI&&this.setCustomAttribute("QMReplayLink",window.QuantumMetricAPI.getReplay()),window.navigator&&this.setCustomAttribute("normalizedRawUserAgent",window.navigator.userAgent.toLowerCase()))}catch(t){console.log(t)}}setApplicationVersion(t){this.microAgent?.setApplicationVersion(t)}setCustomAttribute(t,r){this.microAgent?.setCustomAttribute(t,r)}noticeError(t,r){this.microAgent?.noticeError(t,r)}addPageAction(t,r){this.microAgent?.addPageAction(t,r)}}const ec=new EEe;function $a(e,t){ec!==void 0&&g$(t).then(r=>{ec?.noticeError(e,{...r,level:"warning"})}).catch(()=>{ec.noticeError(e,{...pT(t?.contextData)})})}function Kr(e,t){ec!==void 0&&g$(t).then(r=>{ec.noticeError(e,{...r,level:"error"})}).catch(()=>{ec.noticeError(e,{...pT(t?.contextData)})})}async function g$(e){if(e)return{...pT(e.contextData),...await IEe(e.error)}}async function SEe(e){if(e instanceof Error)return{errorName:e.name,errorMessage:e.message};if(e instanceof Response)try{const t=await e.text();return{error:{url:e.url,status:e.status,body:t}}}catch{return{error:{url:e.url,status:e.status,errorReadingResponseBody:!0}}}return{error:e}}var pd;(function(e){e[e.LevelWarn=0]="LevelWarn",e[e.LevelError=1]="LevelError"})(pd||(pd={}));function PEe(e,t,r){switch(e){case pd.LevelWarn:$a(t,r);break;case pd.LevelError:Kr(t,r);break;default:$a(`Unsupported log level: ${e}`)}}const CEe=(e,t,r)=>{try{r()}catch(n){PEe(e,t,{error:n})}};function pT(e){const t={};return e&&Dg(t,e,"contextData",1),t}async function IEe(e){const t={},r=await SEe(e);return e&&(Dg(t,r,"error",2),lT(e)&&Dg(t,Ng(e)||{},"error",2)),t}function Dg(e,t,r,n){Object.entries(t).forEach(([i,a])=>{typeof a=="object"&&a!==void 0&&a!==null&&n>0?Dg(e,a,`${r}.${i}`,n-1):e[`${r}.${i}`]=a})}var xEe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,_Ee=typeof self=="object"&&self&&self.Object===Object&&self;xEe||_Ee||Function("return this")();var kEe=typeof window<"u"?Rl:Ee;function m$({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:i=!1,onChange:a}={}){var o;const[s,c]=pe(null),[l,u]=pe(()=>({isIntersecting:i,entry:void 0})),d=vt();d.current=a;const p=((o=l.entry)==null?void 0:o.isIntersecting)&&n;Ee(()=>{if(!s||!("IntersectionObserver"in window)||p)return;const v=new IntersectionObserver(h=>{const P=Array.isArray(v.thresholds)?v.thresholds:[v.thresholds];h.forEach(x=>{const T=x.isIntersecting&&P.some(k=>x.intersectionRatio>=k);u({isIntersecting:T,entry:x}),d.current&&d.current(T,x)})},{threshold:e,root:t,rootMargin:r});return v.observe(s),()=>{v.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);const g=vt(null);Ee(()=>{var v;!s&&((v=l.entry)!=null&&v.target)&&!n&&!p&&g.current!==l.entry.target&&(g.current=l.entry.target,u({isIntersecting:i,entry:void 0}))},[s,l.entry,n,p,i]);const m=[c,!!l.isIntersecting,l.entry];return m.ref=m[0],m.isIntersecting=m[1],m.entry=m[2],m}function MEe(e,t){const r=vt(e);kEe(()=>{r.current=e},[e]),Ee(()=>{if(!t&&t!==0)return;const n=setTimeout(()=>{r.current()},t);return()=>{clearTimeout(n)}},[t])}function OEe(e){const[t,r]=pe(!1);return MEe(()=>{e.condition||r(!0)},e.condition?null:e.timeout),t?f(ue,{children:e.timeoutFallback}):e.condition?f(ue,{children:e.ready()}):f(ue,{children:e.waitingFallback})}const h$=y.createContext(void 0);function AEe(e){const{children:t,...r}=e;return f(h$.Provider,{value:{...r},children:t})}function Ii(){const e=xt(h$);if(e===void 0)throw new Error("usePageContext must be used with PageContextProvider");return e}const $Ee="LOB-PPAGClothingandBags-Clothing-T-shirts",REe="LOB-PPAGClothingandBags-Clothing-Polos",NEe="LOB-PPAGClothingandBags-Clothing-Sweaters",DEe
389="LOB-PPAGClothingandBags-Clothing-Outerwear";class LEe{key;constructor(t){this.key=t}isPPAGClothingCategory(){return this.isPPAGTShirt()||this.isPPAGPolo()||this.isPPAGSweater()||this.isPPAGTOuterwear()}isPPAGTShirt=()=>this.hasCategory($Ee);isPPAGPolo=()=>this.hasCategory(REe);isPPAGSweater=()=>this.hasCategory(NEe);isPPAGTOuterwear=()=>this.hasCategory(DEe);hasCategory=t=>this.key===t}var fT;(function(e){e.Grid="grid",e.Carousel="carousel"})(fT||(fT={}));var $n;(function(e){e.AddToCart="AddToCart",e.EditInStudio="EditInStudio",e.EditUpdateInStudioAddToCart="EditUpdateInStudioAddToCart",e.EditInPage="EditInPage",e.GoToGallery="GoToGallery",e.GoToProductPage="GoToProductPage"})($n||($n={}));var tc;(function(e){e.Title="Title",e.Description="Description",e.Image="Image",e.Price="Price",e.Ratings="Ratings"})(tc||(tc={}));var cn;(function(e){e.Image="Image",e.DocumentMatching="DocumentMatching",e.NonDesignable="NonDesignable",e.SmartAssets="SmartAssets"})(cn||(cn={}));const UEe=e=>e.offersGroups.reduce((t,r)=>t+r.offers.length,0),v$=(e,t)=>t?e.taxed:e.untaxed,y$=y.createContext(void 0);function FEe(e){const t=Or(),r={showTitle:!0,isLargeOrMediumScreen:t==="xl"||t==="lg"||t==="md",imageWidth:e.imageWidth,offerGroupsFields:BEe(e.offerGroups)};return f(y$.Provider,{value:r,children:e.children})}function Lg(){const e=xt(y$);if(e===void 0)throw new Error("useLookAndFeelContext must be used with LookAndFeelContextProvider");return e}function b$(e,t){return Lg().offerGroupsFields?.[e]?.[t]??Object.keys(tc)}function BEe(e){return e.reduce((t,r)=>(t[r.trackingId]=r.fields,t),{})}const w$=y.createContext(void 0),qEe=e=>f(w$.Provider,{value:{parentWorkId:e.parentWorkId},children:e.children}),zEe=()=>{const e=xt(w$);if(e===void 0)throw new Error("useParentWorkIdContext must be used with ParentWorkIdContextProvider");return e},T$=y.createContext(void 0);function VEe(e){return f(T$.Provider,{value:{recommendations:e.recommendations},children:e.children})}function jEe(e,t){const r=xt(T$);if(r===void 0)throw new Error("useOfferPosition must be used with RecommendationsProvider");const n=r.recommendations?.offersGroups.find(a=>a.trackingId===e);if(!n)return;const i=n.offers.findIndex(a=>a.trackingId===t);if(i>=0)return i+1}const E$=(e,t)=>{try{rh(e,t)}catch(r){$a("could not track experiment",{contextData:{experimentKey:e,experimentVariation:t},error:r})}},S$=y.createContext(void 0),HEe=e=>{const[t,r]=pe(!1);return Ee(()=>{eh(),ME(n=>{n&&r(!0)})},[]),f(S$.Provider,{value:{isInitialized:()=>t,getVariation:n=>{const i=OE(n);return i?E$(n,i):$a("Experiment variation was not found",{contextData:{experimentKey:n}}),i},isFeatureFlagEnabled:n=>nh(n)},children:e.children})},P$=()=>{const e=xt(S$);if(e===void 0)throw new Error("useExperimentationContext must be used with ExperimentationContextProvider");return e},GEe=e=>{const t=P$(),r=Ye(()=>t.getVariation(e.experimentKey),[e.experimentKey]);return r===e.variation||r===null&&e.default===!0?f(ue,{children:e.children}):f(ue,{})},WEe=e=>({Experience:t=>f(GEe,{experimentKey:e,variation:t.variation,default:t.default,children:t.children})});function ul(e,t){return wE(()=>th().then(()=>nh(e)?t():new Promise(()=>({default:(r=>f(ue,{}))}))))}function gT(e){const t=P$();return f(OEe,{condition:t.isInitialized(),ready:()=>t.isFeatureFlagEnabled(e.name)?f(Nl,{children:f(e.lazyComponent,{...e.lazyComponentProps,children:e.children})}):e.children,waitingFallback:f(ue,{}),timeoutFallback:e.children,timeout:500})}const C$=yi(null),mT={didCatch:!1,error:null};class dl extends Gd{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=mT}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(mT)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&QEe(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(mT)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const c={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(c);else if(n)s=Wd(n,c);else if(i!==void 0)s=i;else throw o}return Wd(C$.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function QEe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function ZEe(e){if(e==null||typeof e.didCatch!="boolean"||typeof e.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function KEe(){const e=xt(C$);ZEe(e);const[t,r]=pe({error:null,hasError:!1}),n=Ye(()=>({resetBoundary:()=>{e.resetErrorBoundary(),r({error:null,hasError:!1})},showBoundary:i=>r({error:i,hasError:!0})}),[e.resetErrorBoundary]);if(t.hasError)throw t.error;return n}const I$=y.createContext(void 0),YEe=e=>f(I$.Provider,{value:{tenant:e.tenant.toLowerCase(),locale:e.locale.toLowerCase()},children:e.children}),Wn=()=>{const e=xt(I$);if(e===void 0)throw new Error("useSiteContext must be used with SiteContextProvider");return e},XEe=ul("recs_use_campaign_callouts",()=>Jo.import("@vp/campaign-callouts").then(e=>
389({default:e.CampaignProvider})));function JEe(e){const t=Wn();return f(dl,{fallback:e.children,onError:r=>{Kr("Error setting up campaign callouts",{contextData:{tenant:t.tenant,locale:t.locale},error:r})},children:f(gT,{name:"recs_use_campaign_callouts",lazyComponent:XEe,lazyComponentProps:{tenant:t.tenant,locale:t.locale},children:e.children})})}const eSe=ul("recs_use_pot",()=>Jo.import("@vp/coupon-callout").then(e=>({default:e.CouponCalloutProvider})));function tSe(e){const t=Wn();return f(dl,{fallback:e.children,onError:r=>{Kr("Error setting up coupon callouts",{contextData:{tenant:t.tenant,locale:t.locale},error:r})},children:f(gT,{name:"recs_use_pot",lazyComponent:eSe,lazyComponentProps:{baseConfig:{tenant:t.tenant,locale:t.locale,pageId:Ym.Recommendation}},children:e.children})})}class rSe{emitEvent(t,r){Dl()?.track(t,r,{})}}var rc;(function(e){e.ProductListViewed="Product List Viewed",e.ProductAdded="Product Added",e.ProductClicked="Product Clicked",e.InteractionTimed="Interaction Timed",e.FlyoutViewed="Fly-Out Viewed",e.FlyoutClosed="Fly-Out Closed",e.EmptyProductListViewed="Empty Product List Viewed",e.RecommendationsErrorOccurred="Recommendations Error Occurred"})(rc||(rc={}));class x${trackingEmitter;constructor(){this.trackingEmitter=new rSe}emitEvent(t,r){try{this.trackingEmitter.emitEvent(t,r)}catch(n){$a(`Error sending tracking event ${t}`,{contextData:{eventName:t,eventProperties:r},error:n})}}}const Ug=e=>e?`Recommendation Component:${e}`:"Recommendation Component",nc=e=>({origin:e||"recommendations-component",version:"43.4.3",component:"recommendations-component"}),_$=(e,t,r)=>({doc_id:e.sourceDocumentUrl,scene_id:r,documentUrl:e.documentUrl,workId:t}),k$=e=>{const t=e.prices?.availablePrices.find(a=>a.quantity===e.quantity);if(!t)return $a(`Cannot determine price for quantity ${e.quantity}`),{currency:void 0,quantity:1,sales_quantity:e.quantity,price:void 0,list_price:void 0,discount:void 0};const r=v$(t.listPrice,!1),n=v$(t.discountedPrice,!1);return{currency:e.prices?.currency||"",quantity:1,sales_quantity:e.quantity,price:n,list_price:r,discount:r-n}},hT=e=>Object.entries(e).map(t=>`${t[0]}:${t[1]}`).join("_"),jo=e=>CEe(pd.LevelWarn,"Error tracking event",e);function vT(e){return document.querySelector(`meta[name="${e}"]`)?.getAttribute("content")}function nSe(){return vT("pageName")||"unknown"}function iSe(){return vT("pageSection")||"unknown"}function aSe(){return vT("pageStage")||"unknown"}const M$=y.createContext(void 0),oSe=e=>{const{children:t,...r}=e;return f(M$.Provider,{value:{pageName:r.pageName||nSe(),pageSection:r.pageSection||iSe(),pageStage:r.pageStage||aSe()},children:t})},yT=()=>{const e=xt(M$);if(e===void 0)throw new Error("usePageTrackingContext must be used with PageTrackingContextProvider");return e},sSe=ul("recs_use_favorites_hearts",()=>Jo.import("./index.js").then(e=>({default:e.FavoriteHeartProvider})));function cSe(e){const t=Wn(),r=yT();return Ii().page==="accessories"?e.children:f(dl,{fallback:e.children,onError:i=>{Kr("Error setting up favorites",{contextData:{tenant:t.tenant,locale:t.locale},error:i})},children:f(gT,{name:"recs_use_favorites_hearts",lazyComponent:sSe,lazyComponentProps:{pageSection:r.pageSection},children:e.children})})}const lSe=e=>f(YEe,{tenant:e.tenant,locale:e.locale,children:f(FEe,{imageWidth:e.imageWidth,offerGroups:e.recommendations.offersGroups,children:f(AEe,{page:e.page,sourceMpvId:e.mpvId,children:f(qEe,{parentWorkId:e.parentWorkId,children:f(VEe,{recommendations:e.recommendations,children:f(cSe,{children:f(JEe,{children:f(tSe,{children:e.children})})})})})})})}),O$=y.createContext(void 0),uSe=e=>{const t=e?.getProfile?.();return{customerId:t&&t["https://claims.cimpress.io/canonical_id"],authorizationHeader:e?.getAuthorizationHeader?.()}};function dSe(e){const t=new DE.WebAuth,{customerId:r,authorizationHeader:n}=uSe(t);return!r||!n?($a("null identity or profile provided"),f(ue,{})):f(O$.Provider,{value:{customerId:e.customerId||r,authorizationHeader:n,accessToken:t?.accessToken||""},children:e.children})}function bT(){const e=xt(O$);if(e===void 0)throw new Error("useAuthContext must be used with AuthContextProvider");return e}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function A$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function pSe(e){if(Array.isArray(e))return e}function fSe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}
vendor: 6,700 bytes, lines 389-390
389finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 390In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mSe(e,t){return pSe(e)||fSe(e,t)||hSe(e,t)||gSe()}function hSe(e,t){if(e){if(typeof e=="string")return A$(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A$(e,t):void 0}}const $$=Object.entries,R$=Object.setPrototypeOf,vSe=Object.isFrozen,ySe=Object.getPrototypeOf,bSe=Object.getOwnPropertyDescriptor;let Fr=Object.freeze,Yr=Object.seal,pl=Object.create,N$=typeof Reflect<"u"&&Reflect,wT=N$.apply,TT=N$.construct;Fr||(Fr=function(t){return t}),Yr||(Yr=function(t){return t}),wT||(wT=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)}),TT||(TT=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const ic=_r(Array.prototype.forEach),wSe=_r(Array.prototype.lastIndexOf),D$=_r(Array.prototype.pop),fd=_r(Array.prototype.push),TSe=_r(Array.prototype.splice),fl=Array.isArray,gd=_r(String.prototype.toLowerCase),ET=_r(String.prototype.toString),L$=_r(String.prototype.match),md=_r(String.prototype.replace),U$=_r(String.prototype.indexOf),ESe=_r(String.prototype.trim),SSe=_r(Number.prototype.toString),PSe=_r(Boolean.prototype.toString),F$=typeof BigInt>"u"?null:_r(BigInt.prototype.toString),B$=typeof Symbol>"u"?null:_r(Symbol.prototype.toString),Qn=_r(Object.prototype.hasOwnProperty),hd=_r(Object.prototype.toString),Cn=_r(RegExp.prototype.test),ac=CSe(TypeError);function _r(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return wT(e,t,n)}}function CSe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return TT(e,r)}}function Tt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gd;if(R$&&R$(e,null),!fl(t))return e;let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(vSe(t)||(t[n]=a),i=a)}e[i]=!0}return e}function ISe(e){for(let t=0;t<e.length;t++)Qn(e,t)||(e[t]=null);return e}function li(e){const t=pl(null);for(const n of $$(e)){var r=mSe(n,2);const i=r[0],a=r[1];Qn(e,i)&&(fl(a)?t[i]=ISe(a):a&&typeof a=="object"&&a.constructor===Object?t[i]=li(a):t[i]=a)}return t}function xSe(e){switch(typeof e){case"string":return e;case"number":return SSe(e);case"boolean":return PSe(e);case"bigint":return F$?F$(e):"0";case"symbol":return B$?B$(e):"Symbol()";case"undefined":return hd(e);case"function":case"object":{if(e===null)return hd(e);const t=e,r=Qi(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:hd(n)}return hd(e)}default:return hd(e)}}function Qi(e,t){for(;e!==null;){const n=bSe(e,t);if(n){if(n.get)return _r(n.get);if(typeof n.value=="function")return _r(n.value)}e=ySe(e)}function r(){return null}return r}function _Se(e){try{return Cn(e,""),!0}catch{return!1}}const q$=Fr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ST=Fr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),PT=Fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kSe=Fr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),CT=Fr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),MSe=Fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z$=Fr(["#text"]),V$=Fr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
390spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),IT=Fr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j$=Fr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fg=Fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OSe=Yr(/{{[\w\W]*|^[\w\W]*}}/g),ASe=Yr(/<%[\w\W]*|^[\w\W]*%>/g),$Se=Yr(/\${[\w\W]*/g),RSe=Yr(/^data-[\-\w.\u00B7-\uFFFF]+$/),NSe=Yr(/^aria-[\-\w]+$/),H$=Yr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DSe=Yr(/^(?:\w+script|data):/i),LSe=Yr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),USe=Yr(/^html$/i),FSe=Yr(/^[a-z][.\w]*(-[.\w]+)+$/i),G$=Yr(/<[/\w!]/g),W$=Yr(/<[/\w]/g),BSe=Yr(/<\/no(script|embed|frames)/i),qSe=Yr(/\/>/i),ui={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Q$=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],zSe=Fr(Tt({},Q$)),VSe=(function(){const e={};return ic(Q$,t=>{e[t]=Yr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Fr(e)})(),jSe=function(){return typeof window>"u"?null:window},HSe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;
vendor: 19,991 bytes, lines 390-391
390const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Z$=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ho=function(t,r,n,i){return Qn(t,r)&&fl(t[r])?Tt(i.base?li(i.base):{},t[r],i.transform):n},xT=function(t,r,n){const i=Qn(t,r)?t[r]:void 0;return i&&typeof i=="object"?li(i):n()};function K$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jSe();const t=z=>K$(z);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==ui.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const n=r,i=n.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,d=e.trustedTypes,p=s.prototype,g=Qi(p,"cloneNode"),m=Qi(p,"remove"),v=Qi(p,"nextSibling"),h=Qi(p,"childNodes"),P=Qi(p,"parentNode"),x=Qi(p,"shadowRoot"),T=Qi(p,"attributes"),k=o&&o.prototype?Qi(o.prototype,"nodeType"):null,M=o&&o.prototype?Qi(o.prototype,"nodeName"):null,$=o&&o.prototype?Qi(o.prototype,"ownerDocument"):null,O=function(b){return k?k(b):b.nodeType},H=function(b){return M?M(b):b.nodeName};if(typeof a=="function"){const z=r.createElement("template");z.content&&z.content.ownerDocument&&(r=z.content.ownerDocument)}let J,W="",me,Z=!1,B=0;const Q=function(){if(B>0)throw ac('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(b){Q(),B++;try{return J.createHTML(b)}finally{B--}},Y=function(b){Q(),B++;try{return J.createScriptURL(b)}finally{B--}},ie=function(){return Z||(me=HSe(d,i),Z=!0),me},he=r,ye=he.implementation,le=he.createNodeIterator,te=he.createDocumentFragment,Oe=he.getElementsByTagName,ut=n.importNode;let ve=Z$();t.isSupported=typeof $$=="function"&&typeof P=="function"&&ye&&ye.createHTMLDocument!==void 0;const Pe=OSe,$t=ASe,Ne=$Se,Le=RSe,Ve=NSe,Xe=DSe,ot=LSe,We=FSe;let je=H$,ge=null;const Ze=Tt({},[...q$,...ST,...PT,...CT,...z$]);let fe=null;const it=Tt({},[...V$,...IT,...j$,...Fg]);let Qe=Object.seal(pl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),gt=null,un=null;const mt=Object.seal(pl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xr=!0,or=!0,Fe=!1,ke=!0,Ce=!1,Ie=!0,Ke=!1,St=!1,qe=null,Pt=null,jt=!1,yt=!1,sr=!1,br=!1,di=!0,cr=!1;const Br="user-content-";let wr=!0,Nn=!1,Tr={},dn=null;const Ki=Tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let pi=null;const Yi=Tt({},["audio","video","img","source","image","track"]);let Xi=null;const Ji=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",fi="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let fn=Yt,ea=!1,ta=null;const Zo=Tt({},[pn,fi,Yt],ET),ra=Fr(["mi","mo","mn","ms","mtext"]);let gn=Tt({},ra);const po=Fr(["annotation-xml"]);let na=Tt({},po);const fc=Tt({},["title","style","font","a","script"]);let Dn=null;const w=["application/xhtml+xml","text/html"],S="text/html";let E=null,I=null;const A=r.createElement("form"),C=function(b){return b instanceof RegExp||b instanceof Function},N=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(I&&I===b)return;(!b||typeof b!="object")&&(b={}),b=li(b),Dn=w.indexOf(b.PARSER_MEDIA_TYPE)===-1?S:b.PARSER_MEDIA_TYPE,E=Dn==="application/xhtml+xml"?ET:gd,ge=Ho(b,"ALLOWED_TAGS",Ze,{transform:E}),fe=Ho(b,"ALLOWED_ATTR",it,{transform:E}),ta=Ho(b,"ALLOWED_NAMESPACES",Zo,{transform:ET}),Xi=Ho(b,"ADD_URI_SAFE_ATTR",Ji,{transform:E,base:Ji}),pi=Ho(b,"ADD_DATA_URI_TAGS",Yi,{transform:E,base:Yi}),dn=Ho(b,"FORBID_CONTENTS",Ki,{transform:E}),gt=Ho(b,"FORBID_TAGS",li({}),{transform:E}),un=Ho(b,"FORBID_ATTR",li({}),{transform:E}),Tr=Qn(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?li(b.USE_PROFILES):b.USE_PROFILES:!1,Xr=b.ALLOW_ARIA_ATTR!==!1,or=b.ALLOW_DATA_ATTR!==!1,Fe=b.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=b.SAFE_FOR_TEMPLATES||!1,Ie=b.SAFE_FOR_XML!==!1,Ke=b.WHOLE_DOCUMENT||!1,yt=b.RETURN_DOM||!1,sr=b.RETURN_DOM_FRAGMENT||!1,br=b.RETURN_TRUSTED_TYPE||!1,jt=b.FORCE_BODY||!1,di=b.SANITIZE_DOM!==!1,cr=b.SANITIZE_NAMED_PROPS||!1,wr=b.KEEP_CONTENT!==!1,Nn=b.IN_PLACE||!1,je=_Se(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:H$,fn=typeof b.NAMESPACE=="string"?b.NAMESPACE:Yt,gn=xT(b,"MATHML_TEXT_INTEGRATION_POINTS",()=>Tt({},ra)),na=xT(b,"HTML_INTEGRATION_POINTS",()=>Tt({},po));const _=xT(b,"CUSTOM_ELEMENT_HANDLING",()=>pl(null));if(Qe=pl(null),Qn(_,"tagNameCheck")&&C(_.tagNameCheck)&&(Qe.tagNameCheck=_.tagNameCheck),Qn(_,"attributeNameCheck")&&C(_.attributeNameCheck)&&(Qe.attributeNameCheck=_.attributeNameCheck),Qn(_,"allowCustomizedBuiltInElements")&&typeof _.allowCustomizedBuiltInElements=="boolean"&&(Qe.allowCustomizedBuiltInElements=_.allowCustomizedBuiltInElements),Yr(Qe),Ce&&(or=!1),sr&&(yt=!0),Tr&&(ge=Tt({},z$),fe=pl(null),Tr.html===!0&&(Tt(ge,q$),Tt(fe,V$)),Tr.svg===!0&&(Tt(ge,ST),Tt(fe,IT),Tt(fe,Fg)),Tr.svgFilters===!0&&(Tt(ge,PT),Tt(fe,IT),Tt(fe,Fg)),Tr.mathMl===!0&&(Tt(ge,CT),Tt(fe,j$),Tt(fe,Fg))),mt.tagCheck=null,mt.attributeCheck=null,Qn(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?mt.tagCheck=b.ADD_TAGS:fl(b.ADD_TAGS)&&(ge===Ze&&(ge=li(ge)),Tt(ge,b.ADD_TAGS,E))),Qn(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?mt.attributeCheck=b.ADD_ATTR:fl(b.ADD_ATTR)&&(fe===it&&(fe=li(fe)),Tt(fe,b.ADD_ATTR,E))),Qn(b,"ADD_FORBID_CONTENTS")&&fl(b.ADD_FORBID_CONTENTS)&&(dn===Ki&&(dn=li(dn)),Tt(dn,b.ADD_FORBID_CONTENTS,E)),wr&&(ge["#text"]=!0),Ke&&Tt(ge,["html","head","body"]),ge.table&&(Tt(ge,["tbody"]),delete gt.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw ac('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ac('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const U=J;J=b.TRUSTED_TYPES_POLICY;try{W=R("")}catch(K){throw J=U,K}}else b.TRUSTED_TYPES_POLICY===null?(J=void 0,W=""):(J===void 0&&(J=ie()),J&&typeof W=="string"&&(W=R("")));Fr&&Fr(b),I=b},F=Tt({},[...ST,...PT,...kSe]),q=Tt({},[...CT,...MSe]),G=function(b,_,U){return _.namespaceURI===Yt?b==="svg":_.namespaceURI===pn?b==="svg"&&(U==="annotation-xml"||gn[U]):!!F[b]},V=function(b,_,U){return _.namespaceURI===Yt?b==="math":_.namespaceURI===fi?b==="math"&&na[U]:!!q[b]},ee=function(b,_,U){return _.namespaceURI===fi&&!na[U]||_.namespaceURI===pn&&!gn[U]?!1:!q[b]&&(fc[b]||!F[b])},se=function(b){let _=P(b);(!_||!_.tagName)&&(_={namespaceURI:fn,tagName:"template"});const U=gd(b.tagName),K=gd(_.tagName);return ta[b.namespaceURI]?b.namespaceURI===fi?G(U,_,K):b.namespaceURI===pn?V(U,_,K):b.namespaceURI===Yt?ee(U,_,K):!!(Dn==="application/xhtml+xml"&&ta[b.namespaceURI]):!1},be=function(b){fd(t.removed,{element:b});try{P(b).removeChild(b)}catch{if(m(b),!P(b))throw ac("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},xe=function(b,_,U){try{b.removeAttributeNode(_)}catch{try{b.removeAttribute(U)}catch{}}},st=function(b){Ht(b);const _=h(b);if(_){const K=[];ic(_,re=>{fd(K,re)}),ic(K,re=>{try{m(re)}catch{}})}const U=T(b);if(U)for(let K=U.length-1;K>=0;--K){const re=U[K],de=re&&re.name;typeof de=="string"&&xe(b,re,de)}},He=function(b,_,U){if(!U)try{U=_.getAttributeNode(b)}catch{U=null}fd(t.removed,{attribute:U||null,from:_});try{U?_.removeAttributeNode(U):_.removeAttribute(b)}catch{try{_.removeAttribute(b)}catch{}}if(b==="is")if(yt||sr)try{be(_)}catch{}else try{_.setAttribute(b,"")}catch{}},In=function(b){const _=T(b);if(_)for(let U=_.length-1;U>=0;--U){const K=_[U],re=K&&K.name;typeof re!="string"||fe[E(re)]||xe(b,K,re)}},Ht=function(b){const _=[b];for(;_.length>0;){const U=_.pop();O(U)===ui.element&&In(U);const re=h(U);if(re)for(let de=re.length-1;de>=0;--de)_.push(re[de])}},Wt=function(b,_){return Ie?b==="patchsrc"?!0:b==="for"&&_!=="label"&&_!=="output":!1},kr=function(b){if(!Ie)return;const _=[b];for(;_.length>0;){const U=_.pop(),K=O(U);if(K===ui.processingInstruction||K===ui.comment&&Cn(W$,U.data)){try{m(U)}catch{}continue}if(K===ui.element){const de=U,Ae=E(H(U));try{de.hasAttribute&&de.hasAttribute("patchsrc")&&de.removeAttribute("patchsrc"),de.hasAttribute&&de.hasAttribute("for")&&Wt("for",Ae)&&de.removeAttribute("for")}catch{}}const re=h(U);if(re)for(let de=re.length-1;de>=0;--de)_.push(re[de])}},ki=function(b){let _=null,U=null;if(jt)b="<remove></remove>"+b;else{const de=L$(b,/^[\r\n\t ]+/);U=de&&de[0]}Dn==="application/xhtml+xml"&&fn===Yt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const K=J?R(b):b;if(fn===Yt)try{_=new u().parseFromString(K,Dn)}catch{}if(!_||!_.documentElement){_=ye.createDocument(fn,"template",null);try{_.documentElement.innerHTML=ea?W:K}catch{}}const re=_.body||_.documentElement;return b&&U&&re.insertBefore(r.createTextNode(U),re.childNodes[0]||null),fn===Yt?Oe.call(_,Ke?"html":"body")[0]:Ke?_.documentElement:re},xn=function(b){const _=$?$(b):b.ownerDocument;return le.call(_||b,b,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jr=function(b){return b=md(b,Pe," "),b=md(b,$t," "),b=md(b,Ne," "),b},Yn=function(b){var _;b.normalize();const U=$?$(b):b.ownerDocument,K=le.call(U||b,b,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let re=K.nextNode();for(;re;)re.data=Jr(re.data),re=K.nextNode();const de=(_=b.querySelectorAll)===null||_===void 0?void 0:_.call(b,"template");de&&ic(de,Ae=>{Mr(Ae.content)&&Yn(Ae.content)})},Er=function(b){const _=M?M(b):null;return typeof _!="string"||E(_)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==T(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==k(b)||b.childNodes!==h(b)},Mr=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return k(b)===ui.documentFragment}catch{return!1}},Qt=function(b){if(!k||typeof b!="object"||b===null)return!1;try{return typeof k(b)=="number"}catch{return!1}};function Gt(z,b,_){z.length!==0&&ic(z,U=>{U.call(t,b,_,I)})}const La=function(b,_){return!!(Ie&&b.hasChildNodes()&&!Qt(b.firstElementChild)&&Cn(G$,b.textContent)&&Cn(G$,b.innerHTML)||Ie&&b.namespaceURI===Yt&&zSe[_]&&(Qt(b.firstElementChild)||typeof b.textContent=="string"&&Cn(VSe[_],b.textContent))||b.nodeType===ui.processingInstruction||Ie&&b.nodeType===ui.comment&&Cn(W$,b.data))},Ln=function(b,_){if(b instanceof RegExp)return Cn(b,_);if(b instanceof Function){for(var U=arguments.length,K=new Array(U>2?U-2:0),re=2;re<U;re++)K[re-2]=arguments[re];return!!b(_,...K)}return!1},fr=function(b,_,U){if(!gt[_]&&Mi(_)&&Ln(Qe.tagNameCheck,_))return!1;if(wr&&!dn[_]){const K=P(b),re=h(b);if(re&&K){const de=re.length;for(let Ae=de-1;Ae>=0;--Ae){const Ue=b===U?g(re[Ae],!0):re[Ae];K.insertBefore(Ue,v(b))}}}return be(b),!0},ht=function(b,_,U,K){return b.length===0?_:_===U||_===K?li(_):_},gc=function(b,_){return b===_||P(b)!==null?!1:(Nn&&Ht(b),!0)},mc=function(b,_){if(Gt(ve.beforeSanitizeElements,b,null),gc(b,_))return!0;if(Er(b))return be(b),!0;const U=E(H(b));if(ge=ht(ve.uponSanitizeElement,ge,Ze,qe),Gt(ve.uponSanitizeElement,b,{tagName:U,allowedTags:ge}),gc(b,_))return!0;if(La(b,U))return be(b),!0;if(gt[U]||!(mt.tagCheck instanceof Function&&mt.tagCheck(U))&&!ge[U]){const re=fr(b,U,_);return re===!1&&Gt(ve.afterSanitizeElements,b,null),re}if(O(b)===ui.element&&!se(b)||(U==="noscript"||U==="noembed"||U==="noframes")&&Cn(BSe,b.innerHTML))return be(b),!0;if(Ce&&b.nodeType===ui.text){const re=Jr(b.textContent);b.textContent!==re&&(fd(t.removed,{element:b.cloneNode()}),b.textContent=re)}return Gt(ve.afterSanitizeElements,b,null),!1},Ko=function(b,_,U){if(un[_]||Wt(_,b)||di&&(_==="id"||_==="name")&&(U in r||U in A))return!1;const K=fe[_]||mt.attributeCheck instanceof Function&&mt.attributeCheck(_,b);return or&&Cn(Le,_)||Xr&&Cn(Ve,_)?!0:K?Xi[_]||Cn(je,md(U,ot,""))||(_==="src"||_==="xlink:href"||_==="href")&&b!=="script"&&U$(U,"data:")===0&&pi[b]||Fe&&!Cn(Xe,md(U,ot,""))?!0:!U:Mi(b)&&Ln(Qe.tagNameCheck,b)&&Ln(Qe.attributeNameCheck,_,b)||_==="is"&&Qe.allowCustomizedBuiltInElements&&Ln(Qe.tagNameCheck,U)},Yo=Tt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Mi=function(b){return!Yo[gd(b)]&&Cn(We,b)},Pd=function(b,_,U,K){if(J&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!U)switch(d.getAttributeType(b,_)){case"TrustedHTML":return R(K);case"TrustedScriptURL":return Y(K)}return K},Cd=function(b,_,U,K){try{U?b.setAttributeNS(U,_,K):b.setAttribute(_,K),Er(b)?be(b):D$(t.removed)}catch{He(_,b)}},Xn=function(b){Gt(ve.beforeSanitizeAttributes,b,null);const _=b.attributes;if(!_||Er(b))return;fe=ht(ve.uponSanitizeAttribute,fe,it,Pt);const U={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:fe,forceKeepAttr:void 0};let K=_.length;const re=E(b.nodeName);for(;K--;){const de=_[K],Ae=de.name,Ue=de.namespaceURI,Ot=de.value,Ct=E(Ae),Ua=Ot;let bt=Ae==="value"?Ua:ESe(Ua);if(U.attrName=Ct,U.attrValue=bt,U.keepAttr=!0,U.forceKeepAttr=void 0,Gt(ve.uponSanitizeAttribute,b,U),bt=U.attrValue,cr&&(Ct==="id"||Ct==="name")&&U$(bt,Br)!==0&&(He(Ae,b,de),bt=Br+bt),Ie&&Cn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,bt)){He(Ae,b,de);continue}if(Ct==="attributename"&&L$(bt,"href")){He(Ae,b,de);continue}if(!U.forceKeepAttr){if(!U.keepAttr){He(Ae,b,de);continue}if(!ke&&Cn(qSe,bt)){He(Ae,b,de);continue}if(Ce&&(bt=Jr(bt)),!Ko(re,Ct,bt)){He(Ae,b,de);continue}bt=Pd(re,Ct,Ue,bt),bt!==Ua&&Cd(b,Ae,Ue,bt)}}Gt(ve.afterSanitizeAttributes,b,null)},ia=function(b){let _=null;const U=xn(b);for(Gt(ve.beforeSanitizeShadowDOM,b,null);_=U.nextNode();)if(Gt(ve.uponSanitizeShadowNode,_,null),mc(_,b),Xn(_),Mr(_.content)&&ia(_.content),O(_)===ui.element){const K=x(_);Mr(K)&&(fo(K),ia(K))}Gt(ve.afterSanitizeShadowDOM,b,null)},fo=function(b){const _=[{node:b,shadow:null}];for(;_.length>0;){const U=_.pop();if(U.shadow){ia(U.shadow);continue}const K=U.node,de=O(K)===ui.element,Ae=h(K);if(Ae)for(let Ue=Ae.length-1;Ue>=0;--Ue)_.push({node:Ae[Ue],shadow:null});if(de){const Ue=M?M(K):null;if(typeof Ue=="string"&&E(Ue)==="template"){const Ot=K.content;Mr(Ot)&&_.push({node:Ot,shadow:null})}}if(de){const Ue=x(K);Mr(Ue)&&_.push({node:null,shadow:Ue},{node:Ue,shadow:null})}}};return t.sanitize=function(z){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,U=null,K=null,re=null;if(ea=!z,ea&&(z="<!-->"),typeof z!="string"&&!Qt(z)&&(z=xSe(z),typeof z!="string"))throw ac("dirty is not a string, aborting");if(!t.isSupported)return z;St?(ge=qe,fe=Pt):N(b),(ve.uponSanitizeElement.length>0||ve.uponSanitizeAttribute.length>0)&&(ge=li(ge)),ve.uponSanitizeAttribute.length>0&&(fe=li(fe)),t.removed=[];const de=Nn&&typeof z!="string"&&Qt(z);if(de){kr(z);const Ot=H(z);if(typeof Ot=="string"){const Ct=E(Ot);if(!ge[Ct]||gt[Ct])throw st(z),ac("root node is forbidden and cannot be sanitized in-place")}if(Er(z))throw st(z),ac("root node is clobbered and cannot be sanitized in-place");try{fo(z)}catch(Ct){throw st(z),Ct}}else if(Qt(z))_=ki("<!---->"),U=_.ownerDocument.importNode(z,!0),U.nodeType===ui.element&&U.nodeName==="BODY"||U.nodeName==="HTML"?_=U:_.appendChild(U),fo(U);else{if(!yt&&!Ce&&!Ke&&z.indexOf("<")===-1)return J&&br?R(z):z;if(_=ki(z),!_)return yt?null:br?W:""}_&&jt&&be(_.firstChild);const Ae=de?z:_;try{const Ot=xn(Ae);for(;K=Ot.nextNode();)mc(K,Ae),Xn(K),Mr(K.content)&&ia(K.content)}catch(Ot){throw de&&(st(z),ic(t.removed,Ct=>{Ct.element&&Ht(Ct.element)})),Ot}if(de)return ic(t.removed,Ot=>{Ot.element&&Ht(Ot.element)}),Ce&&Yn(z),z;if(yt){if(Ce&&Yn(_),sr)for(re=te.call(_.ownerDocument);_.firstChild;)re.appendChild(_.firstChild);else re=_;return(fe.shadowroot||fe.shadowrootmode)&&(re=ut.call(n,re,!0)),re}let Ue=Ke?_.outerHTML:_.innerHTML;return Ke&&ge["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&Cn(USe,_.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+_.ownerDocument.doctype.name+`> 391`+Ue),Ce&&(Ue=Jr(Ue)),J&&br?R(Ue):Ue},t.setConfig=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};N(z),St=!0,qe=ge,Pt=fe},t.clearConfig=function(){I=null,St=!1,qe=null,Pt=null,J=me,W=""},t.isValidAttribute=function(z,b,_){I||N({});const U=E(z),K=E(b);return Ko(U,K,_)},t.addHook=function(z,b){typeof b=="function"&&Qn(ve,z)&&fd(ve[z],b)},t.removeHook=function(z,b){if(Qn(ve,z)){if(b!==void 0){const _=wSe(ve[z],b);return _===-1?void 0:TSe(ve[z],_,1)[0]}return D$(ve[z])}},t.removeHooks=function(z){Qn(ve,z)&&(ve[z]=[])},t.removeAllHooks=function(){ve=Z$()},t}var GSe=K$(),WSe="Lagt i indk\xF8bsvogn",QSe="L\xE6gges i indk\xF8bsvogn",ZSe="L\xE6g i indk\xF8bsvogn",KSe="Produktet kunne ikke l\xE6gges i indk\xF8bsvognen. Pr\xF8v igen senere.",YSe="Vi kunne ikke l\xE6gge dette produkt i indk\xF8bsvognen. Kontakt os for at bestille det.",XSe="Opdater og l\xE6g i indk\xF8bsvogn",JSe="Rediger",ePe="Rediger og tilf\xF8j",tPe="Der opstod en uventet fejl. Pr\xF8v igen senere.",rPe="Indl\xE6ser",nPe="Antal",iPe="Relateret tilbeh\xF8r",aPe="Begynd at designe",oPe="Opdater og l\xE6g i indk\xF8bsvogn",sPe="Vi tilbyder hvide konvolutter i det antal, der passer til antallet af kort i indk\xF8bsvognen.",cPe="Forrige dias",lPe="N\xE6ste dias",uPe="Farvevalg",dPe="Luk",pPe="Kundeanmeldelser",fPe="Der opstod en fejl under visningen af kundeanmeldelser. Pr\xF8v igen senere.",gPe={AddedToCart:WSe,AddingToCart:QSe,AddToCart:ZSe,AddToCartError:KSe,AddToCartRepeatedError:YSe,CrossSellStudioCta:XSe,Edit:JSe,EditAndAdd:ePe,EditError:tPe,Loading:rPe,Quantity:nPe,RelatedAccessories:iPe,StartDesigning:aPe,NanoStudioCta:oPe,WhiteEnvelopesTooltip:sPe,CarouselPreviousSlide:cPe,CarouselNextSlide:lPe,ColorSelection:uPe,ModalDialogClose:dPe,CustomerReviews:pPe,ReviewsError:fPe},mPe="Zum Warenkorb hinzugef\xFCgt",hPe="Wird dem Warenkorb hinzugef\xFCgt",vPe="Zum Warenkorb hinzuf\xFCgen",yPe="Das Produkt konnte dem Warenkorb nicht hinzugef\xFCgt werden. Bitte versuchen Sie es sp\xE4ter noch einmal.",bPe="Wir konnten dieses Produkt dem Warenkorb nicht hinzuf\xFCgen. Kontaktieren Sie uns, um den Kauf abzuschlie\xDFen.",wPe="Aktualisieren und zum Warenkorb hinzuf\xFCgen",TPe="Bearbeiten",EPe="\xC4ndern und einf\xFCgen",SPe="Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es sp\xE4ter noch einmal.",PPe="Ladevorgang",CPe="Menge",IPe="\xC4hnliches Zubeh\xF6r",xPe="Jetzt gestalten",_Pe="Aktualisieren und zum Warenkorb hinzuf\xFCgen",kPe="F\xFCr die Karten im Warenkorb bieten wir die entsprechende Menge an wei\xDFen Umschl\xE4gen.",MPe="Vorheriges",OPe="N\xE4chstes",APe="Farbauswahl",$Pe="Schlie\xDFen",RPe="Bewertungen",NPe="Be
391im Anzeigen der Bewertungen ist ein Fehler aufgetreten. Bitte versuchen Sie es sp\xE4ter noch einmal.",_T={AddedToCart:mPe,AddingToCart:hPe,AddToCart:vPe,AddToCartError:yPe,AddToCartRepeatedError:bPe,CrossSellStudioCta:wPe,Edit:TPe,EditAndAdd:EPe,EditError:SPe,Loading:PPe,Quantity:CPe,RelatedAccessories:IPe,StartDesigning:xPe,NanoStudioCta:_Pe,WhiteEnvelopesTooltip:kPe,CarouselPreviousSlide:MPe,CarouselNextSlide:OPe,ColorSelection:APe,ModalDialogClose:$Pe,CustomerReviews:RPe,ReviewsError:NPe},DPe="Added to cart",LPe="Is being added to cart",UPe="Add to cart",FPe="Product could not be added to cart. Try again later.",BPe="We couldn\u2019t add this product to your cart. Please contact us to purchase.",qPe="Update & add to cart",zPe="Edit",VPe="There was an unexpected error. Please try again later.",jPe="Loading",HPe="Quantity",GPe="Related Accessories",WPe="Start designing",QPe="Update & add to cart",ZPe="We offer white envelopes in quantities that match the number of cards in your cart.",KPe="Previous Slide",YPe="Next Slide",XPe="Color selection",JPe="Close",eCe="Customer Reviews",tCe="There was an error displaying customer reviews. Try again later.",kT={AddedToCart:DPe,AddingToCart:LPe,AddToCart:UPe,AddToCartError:FPe,AddToCartRepeatedError:BPe,CrossSellStudioCta:qPe,Edit:zPe,EditError:VPe,Loading:jPe,Quantity:HPe,RelatedAccessories:GPe,StartDesigning:WPe,NanoStudioCta:QPe,WhiteEnvelopesTooltip:ZPe,CarouselPreviousSlide:KPe,CarouselNextSlide:YPe,ColorSelection:XPe,ModalDialogClose:JPe,CustomerReviews:eCe,ReviewsError:tCe},rCe="Added to cart",nCe="Is being added to cart",iCe="Add to cart",aCe="Product could not be added to cart. Try again later.",oCe="We couldn\u2019t add this product to your cart. Please contact us to purchase.",sCe="Update & add to cart",cCe="Edit",lCe="Edit & Add",uCe="There was an unexpected error. Please try again later.",dCe="Loading",pCe="Quantity",fCe="Related Accessories",gCe="Start designing",mCe="Update & add to cart",hCe="We offer white envelopes in quantities that match the number of cards in your cart.",vCe="Previous Slide",yCe="Next Slide",bCe="Color selection",wCe="Close",TCe="Customer Reviews",ECe="There was an error displaying customer reviews. Try again later.",Y$={AddedToCart:rCe,AddingToCart:nCe,AddToCart:iCe,AddToCartError:aCe,AddToCartRepeatedError:oCe,CrossSellStudioCta:sCe,Edit:cCe,EditAndAdd:lCe,EditError:uCe,Loading:dCe,Quantity:pCe,RelatedAccessories:fCe,StartDesigning:gCe,NanoStudioCta:mCe,WhiteEnvelopesTooltip:hCe,CarouselPreviousSlide:vCe,CarouselNextSlide:yCe,ColorSelection:bCe,ModalDialogClose:wCe,CustomerReviews:TCe,ReviewsError:ECe},SCe="Added to basket",PCe="Is being added to basket",CCe="Add to basket",ICe="Product could not be added to basket. Try again later.",xCe="We couldn\u2019t add this product to your basket. Please contact us to purchase.",_Ce="Update & add to basket",kCe="Edit",MCe="Edit & add",OCe="There was an unexpected error. Please try again later.",ACe="Loading",$Ce="Quantity",RCe="Related Accessories",NCe="Start designing",DCe="Update & add to basket",LCe="We offer white envelopes in quantities that match the number of cards in your basket.",UCe="Previous Slide",FCe="Next Slide",BCe="Color selection",qCe="Close",zCe="Customer Reviews",VCe="There was an error displaying customer reviews. Try again later.",X$={AddedToCart:SCe,AddingToCart:PCe,AddToCart:CCe,AddToCartError:ICe,AddToCartRepeatedError:xCe,CrossSellStudioCta:_Ce,Edit:kCe,EditAndAdd:MCe,EditError:OCe,Loading:ACe,Quantity:$Ce,RelatedAccessories:RCe,StartDesigning:NCe,NanoStudioCta:DCe,WhiteEnvelopesTooltip:LCe,CarouselPreviousSlide:UCe,CarouselNextSlide:FCe,ColorSelection:BCe,ModalDialogClose:qCe,CustomerReviews:zCe,ReviewsError:VCe},jCe="Added to cart",HCe="Is being added to cart",GCe="Add to cart",WCe="Product could not be added to cart. Try again later.",QCe="We couldn\u2019t add this product to your cart. Please contact us to purchase.",ZCe="Update & add to cart",KCe="Edit",YCe="There was an unexpected error. Please try again later.",XCe="Loading",JCe="Quantity",eIe="Related Accessories",tIe="Start designing",rIe="Update & add to cart",nIe="We offer white envelopes in quantities that match the number of cards in your cart.",iIe="Previous Slide",aIe="Next Slide",oIe="Color selection",sIe="Close",cIe="Customer Reviews",lIe="There was an error displaying customer reviews. Try again later.",uIe={AddedToCart:jCe,AddingToCart:HCe,AddToCart:GCe,AddToCartError:WCe,AddToCartRepeatedError:QCe,CrossSellStudioCta:ZCe,Edit:KCe,EditError:YCe,Loading:XCe,Quantity:JCe,RelatedAccessories:eIe,StartDesigning:tIe,NanoStudioCta:rIe,WhiteEnvelopesTooltip:nIe,CarouselPreviousSlide:iIe,CarouselNextSlide:aIe,ColorSelection:oIe,ModalDialogClose:sIe,CustomerReviews:cIe,ReviewsError:lIe},dIe="A\xF1adido a la cesta",pIe="Se est\xE1 a\xF1adiendo a la cesta",fIe="A\xF1adir a la cesta",gIe="No se ha podido a\xF1adir este producto a tu cesta. Int\xE9ntalo de nuevo m\xE1s tarde.",mIe="No hemos podido a\xF1adir este producto a tu cesta. Contacta con nosotros para adquirirlo.",hIe="Actualizar y a\xF1adir a la cesta",vIe="Editar",yIe="Editar y a\xF1adir",bIe="Se produjo un error inesperado. Vuelve a intentarlo m\xE1s tarde.",wIe="Cargando",TIe="Cantidad",EIe="Accesorios relacionados",SIe="Empezar a dise\xF1ar",PIe="Actualizar y a\xF1adir a la cesta",CIe="Ofrecemos sobres blancos en cantidades que coinciden con el n\xFAmero de tarjetas de tu cesta.",IIe="Diapositiva anterior",xIe="Siguiente diapositiva",_Ie="Selecci\xF3n de color",kIe="Cerrar",MIe="Rese\xF1as de clientes",OIe="Se ha producido un error al intentar mostrar las rese\xF1as de clientes. Int\xE9ntalo de nuevo m\xE1s tarde.",AIe={AddedToCart:dIe,AddingToCart:pIe,AddToCart:fIe,AddToCartError:gIe,AddToCartRepeatedError:mIe,CrossSellStudioCta:hIe,Edit:vIe,EditAndAdd:yIe,EditError:bIe,Loading:wIe,Quantity:TIe,RelatedAccessories:EIe,StartDesigning:SIe,NanoStudioCta:PIe,WhiteEnvelopesTooltip:CIe,CarouselPreviousSlide:IIe,CarouselNextSlide:xIe,ColorSelection:_Ie,ModalDialogClose:kIe,CustomerReviews:MIe,ReviewsError:OIe},$Ie="Se agreg\xF3 al carrito de compras",RIe="Se agregar\xE1 al carrito de compras",NIe="Agregar al carrito de compras",DIe="El producto no pudo agregarse al carrito de compras. Vuelva a intentarlo m\xE1s tarde.",LIe="No pudimos agregar este producto a su carrito de compras. Por favor, cont\xE1ctenos para realizar la compra.",UIe="Actualizar y agregar al carrito de compras",FIe="Editar",BIe="Editar y agregar",qIe="Ha ocurrido un error inesperado. Por favor, vuelva a intentarlo m\xE1s tarde.",zIe="Cargando",VIe="Cantidad",jIe="Accesorios relacionados",HIe="Empezar a dise\xF1ar",GIe="Actualizar y agregar al carrito de compras",WIe="Ofrecemos sobres blancos en cantidades que coinciden con la cantidad de tarjetas en su carrito de compras.",QIe="Diapositiva anterior",ZIe="Siguiente diapositiva",KIe="Selecci\xF3n de color",YIe="Cerrar",XIe="Rese\xF1as de los clientes",JIe="Se produjo un error al mostrar las rese\xF1as de los clientes. Vuelva a intentarlo m\xE1s tarde.",e1e={AddedToCart:$Ie,AddingToCart:RIe,AddToCart:NIe,AddToCartError:DIe,AddToCartRepeatedError:LIe,CrossSellStudioCta:UIe,Edit:FIe,EditAndAdd:BIe,EditError:qIe,Loading:zIe,Quantity:VIe,RelatedAccessories:jIe,StartDesigning:HIe,NanoStudioCta:GIe,WhiteEnvelopesTooltip:WIe,CarouselPreviousSlide:QIe,CarouselNextSlide:ZIe,ColorSelection:KIe,ModalDialogClose:YIe,CustomerReviews:XIe,ReviewsError:JIe},t1e="Lis\xE4tty ostoskoriin",r1e="Lis\xE4t\xE4\xE4n ostoskoriin",n1e="Lis\xE4\xE4 ostoskoriin",i1e="Tuotetta ei voitu lis\xE4t\xE4 ostoskoriin. Yrit\xE4 uudelleen my\x
391F6hemmin.",a1e="T\xE4m\xE4n tuotteen lis\xE4ys ostoskoriisi ep\xE4onnistui. Ota meihin yhteytt\xE4 ostoksen tekemiseksi.",o1e="P\xE4ivit\xE4 ja lis\xE4\xE4 ostoskoriin",s1e="Muokkaa",c1e="Muokkaa ja lis\xE4\xE4",l1e="Tapahtui odottamaton virhe. Yrit\xE4 my\xF6hemmin uudelleen.",u1e="Ladataan",d1e="M\xE4\xE4r\xE4",p1e="T\xE4h\xE4n liittyvi\xE4 lis\xE4tuotteita",f1e="Aloita suunnittelu",g1e="P\xE4ivit\xE4 ja lis\xE4\xE4 ostoskoriin",m1e="Tarjoamme mukaan valkoisia kirjekuoria, joiden lukum\xE4\xE4r\xE4 vastaa ostoskorisi sis\xE4lt\xE4mien korttien m\xE4\xE4r\xE4\xE4.",h1e="Edellinen dia",v1e="Seuraava dia",y1e="V\xE4rin valinta",b1e="Sulje",w1e="Asiakasarvostelut",T1e="Ongelma asiakasarvosteluiden esitt\xE4misess\xE4. Yrit\xE4 uudelleen my\xF6hemmin.",E1e={AddedToCart:t1e,AddingToCart:r1e,AddToCart:n1e,AddToCartError:i1e,AddToCartRepeatedError:a1e,CrossSellStudioCta:o1e,Edit:s1e,EditAndAdd:c1e,EditError:l1e,Loading:u1e,Quantity:d1e,RelatedAccessories:p1e,StartDesigning:f1e,NanoStudioCta:g1e,WhiteEnvelopesTooltip:m1e,CarouselPreviousSlide:h1e,CarouselNextSlide:v1e,ColorSelection:y1e,ModalDialogClose:b1e,CustomerReviews:w1e,ReviewsError:T1e},S1e="Ajout\xE9 au panier",P1e="En cours d\u2019ajout au panier",C1e="Ajouter au panier",I1e="Impossible d\u2019ajouter le produit au panier. Veuillez r\xE9essayer plus tard.",x1e="Nous n\u2019avons pas pu ajouter ce produit \xE0 votre panier. Veuillez nous contacter pour terminer votre achat.",_1e="Mettre \xE0 jour et ajouter au panier",k1e="Modifier",M1e="Modifier et ajouter",O1e="Une erreur inattendue s\u2019est produite. Veuillez r\xE9essayer plus tard.",A1e="Chargement",$1e="Quantit\xE9",R1e="Accessoires associ\xE9s",N1e="J\u2019y vais",D1e="Mettre \xE0 jour et ajouter au panier",L1e="Le nombre d\u2019enveloppes blanches ajout\xE9 \xE0 votre panier correspond au nombre de cartes s\xE9lectionn\xE9 par vos soins.",U1e="Diapositive pr\xE9c\xE9dente",F1e="Diapositive suivante",B1e="S\xE9lection de couleurs",q1e="Fermer",z1e="Avis clients",V1e="Une erreur est survenue lors de l\u2019affichage des avis clients. Veuillez r\xE9essayer plus tard.",MT={AddedToCart:S1e,AddingToCart:P1e,AddToCart:C1e,AddToCartError:I1e,AddToCartRepeatedError:x1e,CrossSellStudioCta:_1e,Edit:k1e,EditAndAdd:M1e,EditError:O1e,Loading:A1e,Quantity:$1e,RelatedAccessories:R1e,StartDesigning:N1e,NanoStudioCta:D1e,WhiteEnvelopesTooltip:L1e,CarouselPreviousSlide:U1e,CarouselNextSlide:F1e,ColorSelection:B1e,ModalDialogClose:q1e,CustomerReviews:z1e,ReviewsError:V1e},j1e="Ajout\xE9 au panier",H1e="Est en cours d\u2019ajout au panier",G1e="Ajouter au panier",W1e="Le produit n\u2019a pas pu \xEAtre ajout\xE9 au panier. Veuillez r\xE9essayer plus tard.",Q1e="Nous n\u2019avons pas pu ajouter ce produit \xE0 votre panier. Veuillez nous contacter pour en faire l\u2019achat.",Z1e="Mettre \xE0 jour et ajouter au panier",K1e="Modifier",Y1e="Modifier et ajouter",X1e="Une erreur inattendue s\u2019est produite. Veuillez r\xE9essayer plus tard.",J1e="Chargement en cours",exe="Quantit\xE9",txe="Accessoires associ\xE9s",rxe="Je cr\xE9e le mien",nxe="Mettre \xE0 jour et ajouter au panier",ixe="Nous proposons des enveloppes blanches dans les m\xEAmes quantit\xE9s que les cartes de votre panier.",axe="Diapositive pr\xE9c\xE9dente",oxe="Prochaine diapositive",sxe="S\xE9lection de couleur",cxe="Fermer",lxe="Avis clients",uxe="Une erreur s\u2019est produite lors de l\u2019affichage des avis clients. Veuillez r\xE9essayer plus tard.",dxe={AddedToCart:j1e,AddingToCart:H1e,AddToCart:G1e,AddToCartError:W1e,AddToCartRepeatedError:Q1e,CrossSellStudioCta:Z1e,Edit:K1e,EditAndAdd:Y1e,EditError:X1e,Loading:J1e,Quantity:exe,RelatedAccessories:txe,StartDesigning:rxe,NanoStudioCta:nxe,WhiteEnvelopesTooltip:ixe,CarouselPreviousSlide:axe,CarouselNextSlide:oxe,ColorSelection:sxe,ModalDialogClose:cxe,CustomerReviews:lxe,ReviewsError:uxe},pxe="Articolo aggiunto al carrello",fxe="L\u2019articolo \xE8 stato aggiunto al carrello",gxe="Aggiungi al carrello",mxe="Impossibile aggiungere il prodotto al carrello. Ti preghiamo di riprovare pi\xF9 tardi.",hxe="Non \xE8 stato possibile aggiungere questo prodotto al carrello. Se desideri acquistarlo, contattaci.",vxe="Aggiorna e aggiungi al carrello",yxe="Modifica",bxe="Modifica e aggiungi",wxe="Si \xE8 verificato un errore inaspettato. Riprova pi\xF9 tardi.",Txe="Caricamento in corso",Exe="Quantit\xE0",Sxe="Accessori correlati",Pxe="Inizia a creare",Cxe="Aggiorna e aggiungi al carrello",Ixe="Offriamo una quantit\xE0 di buste da lettera bianche corrispondente al numero di biglietti presenti nel carrello.",xxe="Diapositiva precedente",_xe="Diapositiva successiva",kxe="Selezione colore",Mxe="Chiudi",Oxe="Recensioni dei clienti",Axe="C\u2019\xE8 stato un errore nella visualizzazione delle recensioni dei clienti. Ti preghiamo di riprovare pi\xF9 tardi.",J$={AddedToCart:pxe,AddingToCart:fxe,AddToCart:gxe,AddToCartError:mxe,AddToCartRepeatedError:hxe,CrossSellStudioCta:vxe,Edit:yxe,EditAndAdd:bxe,EditError:wxe,Loading:Txe,Quantity:Exe,RelatedAccessories:Sxe,StartDesigning:Pxe,NanoStudioCta:Cxe,WhiteEnvelopesTooltip:Ixe,CarouselPreviousSlide:xxe,CarouselNextSlide:_xe,ColorSelection:kxe,ModalDialogClose:Mxe,CustomerReviews:Oxe,ReviewsError:Axe},$xe="\u8CB7\u3044\u7269\u304B\u3054\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",Rxe="\u304C\u8CB7\u3044\u7269\u304B\u3054\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F",Nxe="\u8CB7\u3044\u7269\u304B\u3054\u306B\u8FFD\u52A0",Dxe="\u8CB7\u3044\u7269\u304B\u3054\u306B\u8FFD\u52A0\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",Lxe="\u66F4\u65B0\u3057\u3066\u8CB7\u3044\u7269\u304B\u3054\u306B\u5165\u308C\u308B",Uxe="\u7DE8\u96C6",Fxe="\u7DE8\u96C6\u30FB\u8FFD\u52A0",Bxe="\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",qxe="\u8AAD\u307F\u8FBC\u307F\u4E2D",zxe="\u6570\u91CF",Vxe="\u95A2\u9023\u3059\u308B\u4ED8\u5C5E\u30A2\u30A4\u30C6\u30E0",jxe="\u30C7\u30B6\u30A4\u30F3\u3092\u958B\u59CB",Hxe="\u66F4\u65B0\u3057\u3066\u8CB7\u3044\u7269\u304B\u3054\u306B\u5165\u308C\u308B",Gxe="\u8CB7\u3044\u7269\u304B\u3054\u306B\u3042\u308B\u30AB\u30FC\u30C9\u306E\u6570\u306B\u5408\u308F\u305B\u3066\u5C01\u7B52\u3092\u3054\u7528\u610F\u3057\u307E\u3059\u3002",Wxe={AddedToCart:$xe,AddingToCart:Rxe,AddToCart:Nxe,AddToCartError:Dxe,CrossSellStudioCta:Lxe,Edit:Uxe,EditAndAdd:Fxe,EditError:Bxe,L
391oading:qxe,Quantity:zxe,RelatedAccessories:Vxe,StartDesigning:jxe,NanoStudioCta:Hxe,WhiteEnvelopesTooltip:Gxe},Qxe="Legg i handlevogn",Zxe="Legges i handlevogn",Kxe="Legg i handlevognen",Yxe="Produktet kunne ikke legges i handlevognen. Pr\xF8v igjen senere.",Xxe="Vi kunne ikke legge dette produktet i handlevognen. Ta kontakt med oss for \xE5 kj\xF8pe.",Jxe="Oppdat\xE9r og legg i handlevognen",e_e="Rediger",t_e="Redigere og legge til",r_e="Det oppsto en uventet feil. Pr\xF8v igjen senere.",n_e="Laster inn",i_e="Antall",a_e="Relatert tilbeh\xF8r",o_e="Begynn utformingen",s_e="Oppdat\xE9r og legg i handlevognen",c_e="Vi tilbyr hvite konvolutter i samme antall som kortene du har i handlevognen.",l_e="Forrige lysbilde",u_e="Neste lysbilde",d_e="Fargevalg",p_e="Lukk",f_e="Kundevurderinger",g_e="Det oppstod en feil ved visningen av kundevurderinger. Pr\xF8v igjen senere.",m_e={AddedToCart:Qxe,AddingToCart:Zxe,AddToCart:Kxe,AddToCartError:Yxe,AddToCartRepeatedError:Xxe,CrossSellStudioCta:Jxe,Edit:e_e,EditAndAdd:t_e,EditError:r_e,Loading:n_e,Quantity:i_e,RelatedAccessories:a_e,StartDesigning:o_e,NanoStudioCta:s_e,WhiteEnvelopesTooltip:c_e,CarouselPreviousSlide:l_e,CarouselNextSlide:u_e,ColorSelection:d_e,ModalDialogClose:p_e,CustomerReviews:f_e,ReviewsError:g_e},h_e="Toegevoegd aan winkelwagentje",v_e="Wordt toegevoegd aan winkelwagentje",y_e="Voeg toe aan winkelwagentje",b_e="Product kon niet worden toegevoegd aan winkelwagentje. Probeer het later opnieuw.",w_e="We konden dit product niet toevoegen aan je winkelwagentje. Neem contact met ons op om het te kopen.",T_e="Updaten en toevoegen aan winkelwagentje",E_e="Bewerken",S_e="Bewerken en toevoegen",P_e="Er is een onverwachte fout opgetreden. Probeer het later opnieuw.",C_e="Bezig met laden",I_e="Aantal",x_e="Gerelateerde accessoires",__e="Ontwerpen",k_e="Updaten en toevoegen aan winkelwagentje",M_e="We bieden witte enveloppen in dezelfde hoeveelheid als het aantal kaarten in je winkelwagentje.",O_e="Vorige afbeelding",A_e="Volgende afbeelding",$_e="Kleurselectie",R_e="Sluiten",N_e="Klantbeoordelingen",D_e="Er is een fout opgetreden bij het weergeven van de klantbeoordelingen. Probeer het later opnieuw.",eR={AddedToCart:h_e,AddingToCart:v_e,AddToCart:y_e,AddToCartError:b_e,AddToCartRepeatedError:w_e,CrossSellStudioCta:T_e,Edit:E_e,EditAndAdd:S_e,EditError:P_e,Loading:C_e,Quantity:I_e,RelatedAccessories:x_e,StartDesigning:__e,NanoStudioCta:k_e,WhiteEnvelopesTooltip:M_e,CarouselPreviousSlide:O_e,CarouselNextSlide:A_e,ColorSelection:$_e,ModalDialogClose:R_e,CustomerReviews:N_e,ReviewsError:D_e},L_e="Adicionado ao cesto",U_e="Est\xE1 a ser adicionado ao cesto",F_e="Adicionar ao cesto",B_e="N\xE3o foi poss\xEDvel adicionar o produto ao cesto. Tente novamente mais tarde.",q_e="N\xE3o conseguimos adicionar este produto ao cesto. Contacte-nos para comprar.",z_e="Carregar e adicionar ao cesto",V_e="Editar",j_e="Editar e adicionar",H_e="Ocorreu um erro inesperado. Tente novamente mais tarde.",G_e="A carregar",W_e="Quantidade",Q_e="Acess\xF3rios relacionados",Z_e="Come\xE7ar a criar",K_e="Carregar e adicionar ao cesto",Y_e="Oferecemos envelopes brancos em quantidades iguais ao n\xFAmero de cart\xF5es no seu cesto.",X_e="Diapositivo anterior",J_e="Pr\xF3ximo diapositivo",eke="Sele\xE7\xE3o de cor",tke="Fechar",rke="Opini\xF5es de clientes",nke="Ocorreu um erro ao apresentar as opini\xF5es dos clientes. Tente novamente mais tarde.",ike={AddedToCart:L_e,AddingToCart:U_e,AddToCart:F_e,AddToCartError:B_e,AddToCartRepeatedError:q_e,CrossSellStudioCta:z_e,Edit:V_e,EditAndAdd:j_e,EditError:H_e,Loading:G_e,Quantity:W_e,RelatedAccessories:Q_e,StartDesigning:Z_e,NanoStudioCta:K_e,WhiteEnvelopesTooltip:Y_e,CarouselPreviousSlide:X_e,CarouselNextSlide:J_e,ColorSelection:eke,ModalDialogClose:tke,CustomerReviews:rke,ReviewsError:nke},ake="Lades till i kundvagn",oke="L\xE4ggs till i kundvagn",ske="L\xE4gg till i kundvagn",cke="Produkten kunde inte l\xE4ggas till i kundvagnen. F\xF6rs\xF6k igen senare.",lke="Vi kunde inte l\xE4gga till den h\xE4r produkten i kundvagnen. Kontakta oss f\xF6r att handa.",uke="Uppdatera och l\xE4gg till i kundvagn",dke="Redigera",pke="Redigera och l\xE4gg till",fke="Ett ov\xE4ntat fel har uppst\xE5tt. F\xF6rs\xF6k igen sen
391are.",gke="Laddar",mke="Antal",hke="N\xE4rbesl\xE4ktade tillbeh\xF6r",vke="B\xF6rja designa",yke="Uppdatera och l\xE4gg till i kundvagn",bke="Vi erbjuder vita kuvert i samma antal som antalet kort i din kundvagn.",wke="F\xF6reg\xE5ende bild",Tke="N\xE4sta bild",Eke="F\xE4rgval",Ske="St\xE4ng",Pke="Recensioner fr\xE5n kunder",Cke="Ett fel uppstod n\xE4r kundrecensioner skulle visas. F\xF6rs\xF6k igen senare.",Ike={AddedToCart:ake,AddingToCart:oke,AddToCart:ske,AddToCartError:cke,AddToCartRepeatedError:lke,CrossSellStudioCta:uke,Edit:dke,EditAndAdd:pke,EditError:fke,Loading:gke,Quantity:mke,RelatedAccessories:hke,StartDesigning:vke,NanoStudioCta:yke,WhiteEnvelopesTooltip:bke,CarouselPreviousSlide:wke,CarouselNextSlide:Tke,ColorSelection:Eke,ModalDialogClose:Ske,CustomerReviews:Pke,ReviewsError:Cke},OT={"da-dk":gPe,"de-at":_T,"de-de":_T,"de-ch":_T,"en-au":kT,"en-ca":Y$,"en-gb":X$,"en-ie":X$,"en-in":uIe,"en-nz":kT,"en-sg":kT,"en-us":Y$,"es-es":AIe,"es-us":e1e,"fi-fi":E1e,"fr-be":MT,"fr-ca":dxe,"fr-ch":MT,"fr-fr":MT,"it-ch":J$,"it-it":J$,"ja-jp":Wxe,"nb-no":m_e,"nl-be":eR,"nl-nl":eR,"pt-pt":ike,"sv-se":Ike};const Go=(e,t)=>{try{const r=t.toLowerCase(),n=e in OT[r]?xke(e,OT[r]):_ke(e,OT[r]);return GSe.sanitize(n)}catch(r){return Kr("Error getting localized content",{contextData:{key:e,locale:t},error:r}),""}},xke=(e,t)=>{const r=t[e];return typeof r=="string"?r:""},_ke=(e,t)=>{const r=Object.values(t).filter(n=>typeof n=="object").find(n=>Object.keys(n).includes(e));return r?r[e]:""},vd=e=>{const t=Wn();return f(ue,{children:Go(e.text,t.locale)})},Zn={AddToCart:"AddToCart",AddToCartError:"AddToCartError",AddToCartRepeatedError:"AddToCartRepeatedError",AddedToCart:"AddedToCart",AddingToCart:"AddingToCart",Edit:"Edit",Loading:"Loading",Quantity:"Quantity",CrossSellStudioCta:"CrossSellStudioCta",CarouselPreviousSlide:"CarouselPreviousSlide",CarouselNextSlide:"CarouselNextSlide",ColorSelection:"ColorSelection"};async function kke(e,t,r,n,i,a,o,s,c,l,u,d,p,g,m,v,h){const P=`https://patch.personalization.vpsvc.com/api/v1/addToCart/${e}/${t}/${r}`+Ju.stringify({requestor:"recommendations-stack"},{addQueryPrefix:!0}),x=await fetch(P,{method:"POST",headers:{Authorization:g},body:JSON.stringify({productKey:n,productVersion:i,productOptions:a,mpvId:o,productDisplayName:s,quantity:c,availableQuantities:l,localizedOptions:u,...m&&{imageUrl:m},...v&&{documentUrl:v},...h&&{parentWorkEntityId:h},hasQuantitySelectionPage:d,isAccessory:p})});return x.ok?await x.json():Promise.reject(x)}const Bg=e=>{const t=bT(),r=Wn(),n=zEe(),i=Ii(),[a,o]=pe(!1),[s,c]=pe(0),l=e.offer;return l.prices?f(ue,{children:f(Dt,{skin:"primary",width:"full-width",style:{whiteSpace:"unset"},onClick:async()=>{if(a)return;const u=Date.now();try{o(!0);const d=await kke(r.tenant,r.locale,t.customerId,l.productKey,l.productVersion,l.productOptions,l.mpvId,l.title,l.quantity,l.prices?.availablePrices.map(p=>p.quantity),l.localizedOptions,l.hasQuantitySelectionPage,l.isAccessory,t.authorizationHeader,l.imageUrl,l.documentUrl,n.parentWorkId);Wi(ft.ProductAddedToCard,i.page,{offer:l,workId:d.workId,duration:Date.now()-u}),e.onProductAddedToCart()}catch(d){Kr("Error adding to cart",{contextData:{offer:{product:{key:l.productKey,version:l.productVersion},mpvId:l.mpvId,trackingId:l.trackingId,offerGroupTrackingId:l.offerGroupTrackingId},updatedOfferDetails:l},error:d}),e.onProductAddToCartError&&e.onProductAddToCartError(s<3?Zn.AddToCartError:Zn.AddToCartRepeatedError),s>=3&&e.onProductAddToCartPermanentError&&e.onProductAddToCartPermanentError(),c(p=>p+1)}finally{o(!1)}},children:a?f(Fa,{accessibleText:Go(Zn.AddingToCart,r.locale),size:"standard",darkMode:!0}):f(vd,{text:Zn.AddToCart})})}):f(ue,{})},Mke=e=>X("div",{style:{opacity:1,position:"absolute",bottom:0,background:"rgba(0, 0, 0, 0.7)",width:"100%",height:"100%",textAlign:"center"},children:[f("style",{children:` 392 .added-check-icon::before { 393 height: 40px; 394 width: 40px; 395 background-size: contain; 396 } 397 `}),f(hn,{className:"added-check-icon",iconType:"check","aria-hidden":"true",skin:"white",size:"24p",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),f("span",{style:{position:"relative",top:"58%",color:"white",fontWeight:"bold",lineHeight:"initial"},children:e.text})]}),qg=()=>{const e=Wn();
397return f(Mke,{text:Go(Zn.AddedToCart,e.locale)})},Oke="https://accessories.personalization.vpsvc.com/api/v1";async function Ake(e,t,r,n,i){const a={tenant:e,locale:t,mpvId:r,productOptions:n,imageWidth:i,requestor:"recommendations-stack"},o=`${Oke}/assets`+Ju.stringify(a,{addQueryPrefix:!0,sort:(c,l)=>c.localeCompare(l)}),s=await fetch(o);return s.ok?await s.json():Promise.reject(s)}const $ke=(e,t,r)=>r&&r[e]&&r[e].values[t]||t;function Rke(e){const t=e.offer,r=Ye(()=>t.selectableOptions.find(o=>o.name==="Color"&&o.values.length>1),[JSON.stringify(t.selectableOptions)]),n=Wn(),i=Ii(),a=async o=>{if(!o)return;let s;try{const c=await Ake(n.tenant,n.locale,t.mpvId,{...t.productOptions,Color:o},e.imageWidth);c&&(s=c.imageUrl)}catch(c){Kr(`could not get asset for color ${o}`,{contextData:{tenant:n.tenant,locale:n.locale,product:{mpvId:t.mpvId,options:t.productOptions}},error:c})}Wi(ft.ColorChanged,i.page,{offerGroupTrackingId:t.offerGroupTrackingId,offerTrackingId:t.trackingId,productOptions:{...t.productOptions,Color:o},imageUrl:s})};return r?f($i,{defaultSelectedValue:t.productOptions.Color,"aria-label":Go(Zn.ColorSelection,n.locale),onSelectedValueChange:async o=>await a(o),children:f(Pl,{marginTop:4,marginBottom:4,children:r?.values.map(o=>{const s=$ke("Color",o,t.localizedOptions);return f(hi,{name:o,value:o,children:f(vi,{children:f(Il,{primaryColor:o,title:s,accessibleText:s,"aria-label":s})})},o)})})}):f(ue,{})}const AT=e=>{window.location.href=e},Nke="https://cdn.studio-available-routes-service.design.vpsvc.com";async function Dke(e,t,r,n){const i=new URL(`${Nke}/v1/studioRouting/studio/path`);i.searchParams.append("locale",e),i.searchParams.append("productKey",t),i.searchParams.append("productVersion",r.toString()),i.searchParams.append("selectedOptions",JSON.stringify(n)),i.searchParams.append("requestor","recommendations-stack");const a=await fetch(i.toString());return a.ok?(await a.json()).url.pathWithLocale:Promise.reject(a)}const Lke=async(e,t,r,n,i,a,o,s,c)=>{if(c){const p=c.includes("?")?"&":"?";return`${c}${p}qty=${o.toString()}`}const l=await Dke(e,t,r,n),u=new URLSearchParams;u.append("locale",e),u.append("key",t),u.append("productVersion",r.toString()),u.append("selectedOptions",JSON.stringify(n)),u.append("mpvId",i),u.append("qty",o.toString()),u.append("documentUrl",a),u.append("recommendationsId",s),u.sort();const d=`${l}?${u.toString()}`;return d.length>4e3&&$a(`Long URL built: ${d.length} characters.`),d},yd=e=>{const[t,r]=pe(""),n=Wn(),i=Ii(),{showBoundary:a}=KEe(),o=e.offer,s=e.covering!==void 0?e.covering:!0;Ee(()=>{(async()=>{if(!o.documentUrl){a(new Error("cannot edit in studio if offer does not contain a document url"));return}const p=await Lke(n.locale,o.productKey,o.productVersion,o.productOptions,o.mpvId,o.documentUrl,o.quantity,o.offerGroupTrackingId,o.studioUrl);r(p)})()},[n.locale,o.productKey,o.productVersion,o.productOptions,o.mpvId,o.documentUrl,o.quantity,o.offerGroupTrackingId,a]);const c=d=>{d.preventDefault();try{Wi(ft.ProductClicked,i.page,{offer:o,clickedElement:s?"Tile":"Edit"}),AT(t)}catch(p){a(p)}};function l(d,p){return X(It,{skin:p||"unstyled",href:t,onClick:c,covering:s,children:[d,f(Hd,{children:o.title})]})}function u(d){return f(Dt,{skin:"primary",width:"full-width",render:p=>X(It,{href:t,className:p.className,onClick:c,children:[p.children,f(Hd,{
397children:o.title})]}),children:d})}return t?e.skin==="primary"?u(f(vd,{text:e.localizedText||Zn.Edit})):l(e.children||f(vd,{text:e.localizedText||Zn.Edit}),e.skin):f(ue,{})},Uke=()=>{const e=vt(null);return[e,()=>{setTimeout(()=>{e.current?.focus()},200)}]},Fke=ul("recs_use_pot",()=>Jo.import("@vp/coupon-callout").then(e=>({default:e.CouponCallout}))),oc=e=>{const t=Wn(),r=Ii();return e.offer.prices?X(ue,{children:[f(is,{productId:e.offer.productKey,version:e.offer.productVersion,mpvId:e.offer.mpvId,selections:{...e.offer.productOptions,...e.hasQuantitySelector?{quantity:`${e.offer.quantity}`}:{}},alternateSelections:e.hasQuantitySelector?{quantity:e.offer.prices.availablePrices.map(n=>n.quantity).join(",")}:void 0,isTile:!0,displayVariant:"from"}),f(ei,{children:f(dl,{fallback:f(ue,{}),onError:n=>{Kr("Error showing coupon callout",{contextData:{tenant:t.tenant,locale:t.locale,product:{mpvId:e.offer.mpvId,productKey:e.offer.productKey,productOptions:e.offer.productOptions,productVersion:e.offer.productVersion},offerTrackingId:e.offer.trackingId},error:n})},children:f(Nl,{fallback:f(ue,{}),children:f(Fke,{trackingData:{pageZone:`${r.page}-recommendations`,offerTrackingId:e.offer.trackingId,offerType:e.offer.offerType},mpvId:e.offer.mpvId,productId:e.offer.productKey,version:e.offer.productVersion,selections:e.offer.productOptions,...e.hasQuantitySelector&&{quantity:e.offer.quantity}})})})})]}):null};function zg(e){const t=Wn(),{isLargeOrMediumScreen:r}=Lg();return f(uE,{children:f(ct,{mt:r?4:3,mb:4,children:X(dE,{children:[X(ct,{mb:2,children:[f(Hd,{children:e.offer.title}),f(pE,{children:Go(Zn.Quantity,t.locale)})]}),f(Bke,{offer:e.offer})]})})})}function Bke(e){const t=Ii(),r=e.offer.prices?.availablePrices.map(i=>i.quantity),n=i=>{const a=parseInt(i.target.value);Wi(ft.QuantityChanged,t.page,{offerGroupTrackingId:e.offer.offerGroupTrackingId,offerTrackingId:e.offer.trackingId,quantity:a})};return r?f(wm,{disabled:r.length===1,fullWidth:!0,onChange:n,value:e.offer.quantity.toString(),children:r.map((i,a)=>f(Tm,{value:i.toString(),children:i},a))}):f(ue,{})}var tR={exports:{}},rR={};/** 398 * @license React 399 * use-sync-external-store-shim.production.js 400 * 401 * Copyright (c) Meta Platforms, Inc. and affiliates. 402 * 403 * This source code is licensed under the MIT license found in the 404 * LICENSE file in the root directory of this source tree. 405 */var gl=y;function qke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zke=typeof Object.is=="function"?Object.is:qke,Vke=gl.useState,jke=gl.useEffect,Hke=gl.useLayoutEffect,Gke=gl.useDebugValue;function Wke(e,t){var r=t(),n=Vke({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Hke(function(){i.value=r,i.getSnapshot=t,$T(i)&&a({inst:i})},[e,r,t]),jke(function(){return $T(i)&&a({inst:i}),e(function(){$T(i)&&a({inst:i})})},[e]),Gke(r),r}function $T(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!zke(e,r)}catch{return!0}}function Qke(e,t){return t()}var Zke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Qke:Wke;rR.useSyncExternalStore=gl.useSyncExternalStore!==void 0?gl.useSyncExternalStore:Zke,tR.exports=rR;var nR=tR.exports,iR=Object.prototype.hasOwnProperty;function RT(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&RT(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(iR.call(e,r)&&++n&&!iR.call(t,r)||!(r in t)||!RT(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const aR=0,oR=1,sR=2,cR=3,lR=4,Ra=new WeakMap,so=()=>{},tr=so(),NT=Object,Ge=e=>e===tr,Na=e=>typeof e=="function",co=(e,t)=>({...e,...t}),DT=e=>Na(e.then),LT={},Vg={},UT="undefined",bd=typeof window!=UT,FT=typeof document!=UT,Kke=bd&&"Deno"in window,Yke=()=>bd&&typeof window.requestAnimationFrame!=UT,uR=(e,t)=>{const r=Ra.get(e);return[()=>!Ge(t)&&e.get(t)||LT,n=>{if(!Ge(t)){const i=e.get(t);t in Vg||(Vg[t]=i),r[5](t,co(i,n),i||LT)}},r[6],()=>!Ge(t)&&t in Vg?Vg[t]:!Ge(t)&&e.get(t)||LT]};let BT=!0;const Xke=()=>BT,[qT,zT]=bd&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[so,so],Jke=()=>{const e=FT&&document.visibilityState;return Ge(e)||e!=="hidden"},eMe=e=>(FT&&document.addEventListener("visibilitychange",e),qT("focus",e),()=>{FT&&document.removeEventListener("visibilitychange",e),zT("focus",e)}),tMe=e=>{const t=()=>{BT=!0,e()},r=()=>{BT=!1};
405return qT("online",t),qT("offline",r),()=>{zT("online",t),zT("offline",r)}},rMe={isOnline:Xke,isVisible:Jke},nMe={initFocus:eMe,initReconnect:tMe},dR=!y.useId,sc=!bd||Kke,iMe=e=>Yke()?window.requestAnimationFrame(e):setTimeout(e,1),jg=sc?Ee:Rl,VT=typeof navigator<"u"&&navigator.connection,pR=!sc&&VT&&(["slow-2g","2g"].includes(VT.effectiveType)||VT.saveData),Hg=new WeakMap,aMe=e=>NT.prototype.toString.call(e),jT=(e,t)=>e===`[object ${t}]`;let oMe=0;const HT=e=>{const t=typeof e,r=aMe(e),n=jT(r,"Date"),i=jT(r,"RegExp"),a=jT(r,"Object");let o,s;if(NT(e)===e&&!n&&!i){if(o=Hg.get(e),o)return o;if(o=++oMe+"~",Hg.set(e,o),Array.isArray(e)){for(o="@",s=0;s<e.length;s++)o+=HT(e[s])+",";Hg.set(e,o)}if(a){o="#";const c=NT.keys(e).sort();for(;!Ge(s=c.pop());)Ge(e[s])||(o+=s+":"+HT(e[s])+",");Hg.set(e,o)}}else o=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},GT=e=>{if(Na(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?HT(e):"",[e,t]};let sMe=0;const Gg=()=>++sMe;async function fR(...e){const[t,r,n,i]=e,a=co({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let c=a.optimisticData;const l=p=>typeof s=="function"?s(p):s!==!1,u=a.throwOnError;if(Na(r)){const p=r,g=[],m=t.keys();for(const v of m)!/^\$(inf|sub)\$/.test(v)&&p(t.get(v)._k)&&g.push(v);return Promise.all(g.map(d))}return d(r);async function d(p){const[g]=GT(p);if(!g)return;const[m,v]=uR(t,g),[h,P,x,T]=Ra.get(t),k=()=>{const Q=h[g];return(Na(a.revalidate)?a.revalidate(m().data,p):a.revalidate!==!1)&&(delete x[g],delete T[g],Q&&Q[0])?Q[0](sR).then(()=>m().data):m().data};if(e.length<3)return k();let M=n,$,O=!1;const H=Gg();P[g]=[H,0];const J=!Ge(c),W=m(),me=W.data,Z=W._c,B=Ge(Z)?me:Z;if(J&&(c=Na(c)?c(B,me):c,v({data:c,_c:B})),Na(M))try{M=M(B)}catch(Q){$=Q,O=!0}if(M&&DT(M))if(M=await M.catch(Q=>{$=Q,O=!0}),H!==P[g][0]){if(O)throw $;return M}else O&&J&&l($)&&(o=!0,v({data:B,_c:tr}));if(o&&!O)if(Na(o)){const Q=o(M,B);v({data:Q,error:tr,_c:tr})}else v({data:M,error:tr,_c:tr});if(P[g][1]=Gg(),Promise.resolve(k()).then(()=>{v({_c:tr})}),O){if(u)throw $;return}return M}}const gR=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},cMe=(e,t)=>{if(!Ra.has(e)){const n=co(nMe,t),i=Object.create(null),a=fR.bind(tr,e);let o=so;const s=Object.create(null),c=(p,g)=>{const m=s[p]||[];return s[p]=m,m.push(g),()=>{const v=m.indexOf(g);v>=0&&(m[v]=m[m.length-1],m.pop())}},l=(p,g,m)=>{e.set(p,g);const v=s[p];if(v)for(const h of v)h(g,m)},u=p=>{const g=Ra.get(e),[,m,v,h]=g,P=Gg();g[8]++;for(const k in v)delete v[k];for(const k in h)delete h[k];for(const k in m)m[k]=[P,P];const x={};for(const k of[...e.keys()]){const M=e.get(k);e.delete(k);const $=s[k];if($)for(const O of $)O(x,M)}const T=!p||p.revalidate!==!1;for(const k in i){const M=i[k];for(let $=0;$<M.length;$++)M[$](lR,{revalidate:T&&!$})}},d=()=>{if(!Ra.has(e)&&(Ra.set(e,[i,Object.create(null),Object.create(null),Object.create(null),a,l,c,u,0]),!sc)){const p=n.initFocus(setTimeout.bind(tr,gR.bind(tr,i,aR))),g=n.initReconnect(setTimeout.bind(tr,gR.bind(tr,i,oR)));o=()=>{p&&p(),g&&g(),Ra.delete(e)}}};return d(),[e,a,d,o,u]}const r=Ra.get(e);return[e,r[4],tr,tr,r[7]]},lMe=(e,t,r,n,i)=>{const a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;!Ge(a)&&o>a||setTimeout(n,s,i)},uMe=RT,[mR,dMe,,,pMe]=cMe(new Map),fMe=co({onLoadingSlow:so,onSuccess:so,onError:so,onErrorRetry:lMe,onDiscarded:so,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:pR?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:pR?5e3:3e3,compare:uMe,isPaused:()=>!1,cache:mR,mutate:dMe,unload:pMe,fallback:{}},rMe),gMe=(e,t)=>{const r=co(e,t);if(t){const{use:n,fallback:i,cacheData:a}=e,{use:o,fallback:s,cacheData:c}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=co(i,s)),a&&c&&(r.cacheData=co(a,c))}return r},mMe=yi({}),hMe="$inf$",hR=bd&&window.__SWR_DEVTOOLS_USE__,vMe=hR?window.__SWR_DEVTOOLS_USE__:[],yMe=()=>{hR&&(window.__SWR_DEVTOOLS_REACT__=y)},vR=e=>Na(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],bMe=()=>{const e=xt(mMe);return Ye(()=>co(fMe,e),[e])},wMe=e=>(t,r,n)=>e(t,r&&((...a)=>{const[o]=GT(t),[,,,s]=Ra.get(mR);if(o.startsWith(hMe))return r(...a);const c=s[o];return Ge(c)?r(...a):(delete s[o],c)}),n),TMe=vMe.concat(wMe),EMe=e=>function(...r){const n=bMe(),[i,a,o]=vR(r),s=gMe(n,o);let c=e;const{use:l}=s,u=(l||[]).concat(TMe);for(let d=u.length;d--;)c=u[d](c);return c(i,a||s.fetcher||null,s)},SMe=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const i=n.indexOf(r);i>=0&&(n[i]=n[n.length-1],n.pop())}},PMe=(e,t)=>(...r)=>{const[n,i,a]=vR(r),o=(a.use||[]).concat(t);return e(n,i,{...a,use:o})};yMe();const Wg=y.use||(e=>
405{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),WT={dedupe:!0},Qg=Promise.resolve(tr);Qg.status="fulfilled",Qg.value=tr;const CMe=()=>so,IMe=EMe((e,t,r)=>{var n;const{cache:i,compare:a,suspense:o,fallbackData:s,revalidateOnMount:c,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:g,strictServerPrefetchWarning:m}=r,[v,h,P,x]=Ra.get(i),[T,k]=GT(e),M=vt(!1),$=vt(!1),O=vt(T),H=vt(t),J=vt(r),W=()=>J.current,me=()=>W().isVisible()&&W().isOnline(),[Z,B,Q,R]=uR(i,T),Y=vt({}).current,ie=Ge(s)?Ge(r.fallback)?tr:r.fallback[T]:s,he=T?(n=r.cacheData)==null?void 0:n[T]:tr,ye=T?x[T]:tr,le=Ge(ye)&&!Ge(he),te=le?he:ye,Oe=(Fe,ke)=>{for(const Ce in Y){const Ie=Ce;if(Ie==="data"){if(!a(Fe[Ie],ke[Ie])&&(!Ge(Fe[Ie])||!a(je,ke[Ie])))return!1}else if(ke[Ie]!==Fe[Ie])return!1}return!0},ut=!M.current,ve=Ye(()=>{const Fe=Z(),ke=R(),Ce=qe=>{const Pt=co(qe);return delete Pt._k,(()=>{if(!T||!t||W().isPaused())return!1;if(ut&&!Ge(c))return c;if(o&&le)return!1;const yt=Ge(ie)?Pt.data:ie;return Ge(yt)||l})()?{isValidating:!0,isLoading:!0,...Pt}:Pt},Ie=Ce(Fe),Ke=Fe===ke?Ie:Ce(ke);let St=Ie;return[()=>{const qe=Ce(Z());return Oe(qe,St)?(St.data=qe.data,St.isLoading=qe.isLoading,St.isValidating=qe.isValidating,St.error=qe.error,St):(St=qe,qe)},()=>Ke]},[i,T]),Pe=nR.useSyncExternalStore(Et(Fe=>Q(T,(ke,Ce)=>{Oe(Ce,ke)||Fe()}),[i,T]),ve[0],ve[1]),$t=v[T]&&v[T].length>0,Ne=Pe.data;let Le=Ge(Ne)?ie&&DT(ie)?Wg(ie):ie:Ne;const Ve=Pe.error,Xe=vt(Le),ot=vt(!1),We=vt(null);let je=g?Ge(Ne)?Ge(Xe.current)?Le:Xe.current:Ne:Le;const ge=T&&Ge(Le),Ze=vt(null);!sc&&nR.useSyncExternalStore(CMe,()=>(Ze.current=!1,Ze),()=>(Ze.current=!0,Ze));const fe=Ze.current;m&&fe&&!o&&ge&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const it=!T||!t||W().isPaused()||$t&&!Ge(Ve)?!1:ut&&!Ge(c)?c:o&&le?!1:o?Ge(Le)?!1:l:Ge(Le)||l,Qe=ut&&it,gt=Ge(Pe.isValidating)?Qe:Pe.isValidating,un=Ge(Pe.isLoading)?Qe:Pe.isLoading,mt=Et(async Fe=>{const ke=H.current;if(!T||!ke||$.current||W().isPaused())return!1;let Ce,Ie,Ke=!0;const St=Fe||{},qe=!P[T]||!St.dedupe,Pt=le&&!ot.current&&!Ge(te)&&Ge(Z().data),jt=()=>dR?!$.current&&T===O.current&&M.current:T===O.current,yt={isValidating:!1,isLoading:!1},sr=()=>{B(yt)},br=()=>{const cr=P[T];cr&&cr[1]===Ie&&delete P[T]},di={isValidating:!0};Ge(Z().data)&&(di.isLoading=!0);try{if(qe&&(B(di),r.loadingTimeout&&Ge(Z().data)&&setTimeout(()=>{Ke&&jt()&&W().onLoadingSlow(T,r)},r.loadingTimeout),Pt&&(ot.current=!0),P[T]=[Pt?te:ke(k),Gg()],Pt&&x[T]&&delete x[T]),[Ce,Ie]=P[T],Ce=await Ce,qe&&setTimeout(br,r.dedupingInterval),!P[T]||P[T][1]!==Ie)return qe&&jt()&&W().onDiscarded(T),!1;yt.error=tr;const cr=h[T];if(!Ge(cr)&&(Ie<=cr[0]||Ie<=cr[1]||cr[1]===0))return sr(),qe&&jt()&&W().onDiscarded(T),!1;const Br=Z().data;yt.data=a(Br,Ce)?Br:Ce,qe&&jt()&&W().onSuccess(Ce,T,r)}catch(cr){br();const Br=W(),{shouldRetryOnError:wr}=Br;Br.isPaused()||(yt.error=cr,qe&&jt()&&(Br.onError(cr,T,Br),(wr===!0||Na(wr)&&wr(cr))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||me())&&Br.onErrorRetry(cr,T,Br,Nn=>{const Tr=v[T];Tr&&Tr[0]&&Tr[0](cR,Nn)},{retryCount:(St.retryCount||0)+1,dedupe:!0})))}return Ke=!1,sr(),!0},[T,i]),Xr=Et((...Fe)=>fR(i,O.current,...Fe),[]);if(jg(()=>{const Fe=We.current;Fe&&(We.current=null,Ge(Z().data)&&B({data:Fe.data,error:tr,_k:Fe._k}),x[Fe.key]&&delete x[Fe.key])}),jg(()=>{H.current=t,J.current=r,Ge(Ne)||(Xe.current=Ne)}),jg(()=>{if(!T)return;const Fe=mt.bind(tr,WT);let ke=0;W().revalidateOnFocus&&(ke=Date.now()+W().focusThrottleInterval);const Ie=SMe(T,v,(Ke,St={})=>{if(Ke==aR){const qe=Date.now();W().revalidateOnFocus&&qe>ke&&me()&&(ke=qe+W().focusThrottleInterval,Fe())}else if(Ke==oR)W().revalidateOnReconnect&&me()&&Fe();else{if(Ke==sR)return mt();if(Ke==cR)return mt(St);if(Ke==lR&&(Xe.current=tr,St.revalidate))return mt()}});return $.current=!1,O.current=T,M.current=!0,B({_k:k}),it&&(P[T]||(Ge(Le)||sc?Fe():iMe(Fe))),()=>{$.current=!0,Ie()}},[T]),jg(()=>{let Fe;function ke(){const Ie=Na(u)?u(Z().data):u;Ie&&Fe!==-1&&(Fe=setTimeout(Ce,Ie))}function Ce(){!Z().error&&(d||W().isVisible())&&(p||W().isOnline())?mt(WT).then(ke):ke()}return ke(),()=>{Fe&&(clearTimeout(Fe),Fe=-1)}},[u,d,p,T]),TE(je),o){if(!dR&&sc&&ge&&Ge(te))throw new Error("Fallback data is required when using Suspense in SSR.");ge&&(H.current=t,J.current=r,$.current=!1);const Fe=!Ge(te)&≥let ke=tr;if(Fe&&le)ke=te&&DT(te)?Wg(te):te,Le=ke,je=ke,sc||(ot.current=!0,We.current={data:ke,_k:k,key:T});else{const Ie=Fe?Xr(te):Qg;Wg(Ie)}if(!Ge(Ve)&&ge)throw Ve;const Ce=ge&&Ge(ke)?mt(WT):Qg;!Ge(je)&&ge&&(Ce.status="fulfilled",Ce.value=!0),Wg(Ce)}return{mutate:Xr,get data(){return Y.data=!0,je},get error(){return Y.error=!0,Ve},get isValidating(){return Y.isValidating=!0,gt},get isLoading(){return Y.isLoading=!0,un}}}),yR=PMe(IMe,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,n.refreshInterval=0,e(t,r,n)));var bR;function ne(e,t,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=o.prototype,u=Object.keys(l);for(let d=0;d<u.length;d++){const p=u[d];
405p in s||(s[p]=l[p].bind(s))}}const i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(s){var c;const l=r?.Parent?new a:this;n(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}class ml extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class wR extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(bR=globalThis).__zod_globalConfig??(bR.__zod_globalConfig={});const QT=globalThis.__zod_globalConfig;function cc(e){return QT}function TR(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function ZT(e,t){return typeof t=="bigint"?t.toString():t}function KT(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function YT(e){return e==null}function XT(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function xMe(e,t){const r=e/t,n=Math.round(r),i=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)<i?0:r-n}const ER=Symbol("evaluating");function qt(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==ER)return n===void 0&&(n=ER,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function lc(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Wo(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function SR(e){return JSON.stringify(e)}function _Me(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const PR="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zg(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const kMe=KT(()=>{if(QT.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function wd(e){if(Zg(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Zg(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function CR(e){return wd(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const MMe=new Set(["string","number","symbol"]);function Kg(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qo(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function $e(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OMe(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const AMe={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function $Me(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Wo(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=r.shape[s])}return lc(this,"shape",o),o},checks:[]});return Qo(e,a)}function RMe(e,t){const r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Wo(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return lc(this,"shape",o),o},checks:[]});return Qo(e,a)}function NMe(e,t){if(!wd(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const a=e._zod.def.shape;for(const o in t)if(Object.getOwnPropertyDescriptor(a,o)!==void 0)throw new Error("Cannot over
405write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Wo(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return lc(this,"shape",a),a}});return Qo(e,i)}function DMe(e,t){if(!wd(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Wo(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return lc(this,"shape",n),n}});return Qo(e,r)}function LMe(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=Wo(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return lc(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Qo(e,r)}function UMe(e,t,r){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Wo(t._zod.def,{get shape(){const s=t._zod.def.shape,c={...s};if(r)for(const l in r){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(c[l]=e?new e({type:"optional",innerType:s[l]}):s[l])}else for(const l in s)c[l]=e?new e({type:"optional",innerType:s[l]}):s[l];return lc(this,"shape",c),c},checks:[]});return Qo(t,o)}function FMe(e,t,r){const n=Wo(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(r)for(const o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return lc(this,"shape",a),a}});return Qo(t,n)}function hl(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function BMe(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function IR(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Yg(e){return typeof e=="string"?e:e?.message}function uc(e,t,r){const n=e.message?e.message:Yg(e.inst?._zod.def?.error?.(e))??Yg(t?.error?.(e))??Yg(r.customError?.(e))??Yg(r.localeError?.(e))??"Invalid input",{inst:i,continue:a,input:o,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=o),s}function JT(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Td(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const xR=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ZT,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_R=ne("$ZodError",xR),kR=ne("$ZodError",xR,{Parent:Error});function qMe(e,t=r=>r.message){const r={},n=[];for(const i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function zMe(e,t=r=>r.message){const r={_errors:[]},n=(i,a=[])=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>n({issues:s},[...a,...o.path]));else if(o.code==="invalid_key")n({issues:o.issues},[...a,...o.path]);else if(o.code==="invalid_element")n({issues:o.issues},[...a,...o.path]);else{const s=[...a,...o.path];if(s.length===0)r._errors.push(t(o));else{let c=r,l=0;for(;l<s.length;){const u=s[l];l===s.length-1?(c[u]=c[u]||{_errors:[]},c[u]._errors.push(t(o))):c[u]=c[u]||{_errors:[]},c=c[u],l++}}}};return n(e),r}const e0=e=>(t,r,n,i)=>{const a=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new ml;if(o.issues.length){const s=new(i?.Err??e)(o.issues.map(c=>uc(c,a,cc())));throw PR(s,i?.callee),s}return o.value},t0=e=>async(t,r,n,i)=>{const a=n?{...n,async:!0}:{async:!0};let o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){const s=new(i?.Err??e)(o.issues.map(c=>uc(c,a,cc())));throw PR(s,i?.callee),s}return o.value},Xg=e=>(t,r,n)=>{const i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new ml;return a.issues.length?{success:!1,error:new(e??_R)(a.issues.map(o=>uc(o,i,cc())))}:{success:!0,data:a.value}},VMe=Xg(kR),Jg=e=>async(t,r,n)=>{const i=n?{...n,async:!0}:{async:!0};let a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>uc(o,i,cc())))}:{success:!0,data:a.value}}
405,jMe=Jg(kR),HMe=e=>(t,r,n)=>{const i=n?{...n,direction:"backward"}:{direction:"backward"};return e0(e)(t,r,i)},GMe=e=>(t,r,n)=>e0(e)(t,r,n),WMe=e=>async(t,r,n)=>{const i=n?{...n,direction:"backward"}:{direction:"backward"};return t0(e)(t,r,i)},QMe=e=>async(t,r,n)=>t0(e)(t,r,n),ZMe=e=>(t,r,n)=>{const i=n?{...n,direction:"backward"}:{direction:"backward"};return Xg(e)(t,r,i)},KMe=e=>(t,r,n)=>Xg(e)(t,r,n),YMe=e=>async(t,r,n)=>{const i=n?{...n,direction:"backward"}:{direction:"backward"};return Jg(e)(t,r,i)},XMe=e=>async(t,r,n)=>Jg(e)(t,r,n),JMe=/^[cC][0-9a-z]{6,}$/,eOe=/^[0-9a-z]+$/,tOe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,rOe=/^[0-9a-vA-V]{20}$/,nOe=/^[A-Za-z0-9]{27}$/,iOe=/^[a-zA-Z0-9_-]{21}$/,aOe=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oOe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,MR=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,sOe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cOe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function lOe(){return new RegExp(cOe,"u")}const uOe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dOe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,pOe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,fOe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gOe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,OR=/^[A-Za-z0-9_-]*$/,mOe=/^https?$/,hOe=/^\+[1-9]\d{6,14}$/,AR="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",vOe=new RegExp(`^${AR}$`);function $R(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yOe(e){return new RegExp(`^${$R(e)}$`)}function bOe(e){const t=$R({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${AR}T(?:${n})$`)}const wOe=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},TOe=/^-?\d+$/,EOe=/^-?\d+(?:\.\d+)?$/,SOe=/^(?:true|false)$/i,POe=/^[^A-Z]*$/,COe=/^[^a-z]*$/,Kn=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),RR={number:"number",bigint:"bigint",object:"date"},NR=ne("$ZodCheckLessThan",(e,t)=>{Kn.init(e,t);const r=RR[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),DR=ne("$ZodCheckGreaterThan",(e,t)=>{Kn.init(e,t);const r=RR[typeof t.value];e._zod.onattach.push(n=>{const i=n._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),IOe=ne("$ZodCheckMultipleOf",(e,t)=>{Kn.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):xMe(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),xOe=ne("$ZodCheckNumberFormat",(e,t)=>{Kn.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),n=r?"int":"number",[i,a]=AMe[t.format];e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,s.minimum=i,s.maximum=a,r&&(s.pattern=TOe)}),e._zod.check=o=>{const s=o.value;if(r){if(!Number.isInteger(s)){o.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>
vendor: 7,192 bytes, lines 405-407
4050?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),_Oe=ne("$ZodCheckMaxLength",(e,t)=>{var r;Kn.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!YT(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const o=JT(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),kOe=ne("$ZodCheckMinLength",(e,t)=>{var r;Kn.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!YT(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const o=JT(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),MOe=ne("$ZodCheckLengthEquals",(e,t)=>{var r;Kn.init(e,t),(r=e._zod.def).when??(r.when=n=>{const i=n.value;return!YT(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{const i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{const i=n.value,a=i.length;if(a===t.length)return;const o=JT(i),s=a>t.length;n.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),em=ne("$ZodCheckStringFormat",(e,t)=>{var r,n;Kn.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),OOe=ne("$ZodCheckRegex",(e,t)=>{em.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),AOe=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=POe),em.init(e,t)}),$Oe=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=COe),em.init(e,t)}),ROe=ne("$ZodCheckIncludes",(e,t)=>{Kn.init(e,t);const r=Kg(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),NOe=ne("$ZodCheckStartsWith",(e,t)=>{Kn.init(e,t);const r=new RegExp(`^${Kg(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),DOe=ne("$ZodCheckEndsWith",(e,t)=>{Kn.init(e,t);const r=new RegExp(`.*${Kg(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),LOe=ne("$ZodCheckOverwrite",(e,t)=>{Kn.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class UOe{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` 406`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),a=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of a)this.content.push(o)}compile(){const t=Function,r=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...r,i.join(` 407`))}}const FOe={major:4,minor:4,patch:3},vr=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=FOe;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const i of n)for(const a of i._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(o,s,c)=>{let l=hl(o),u;for(const d of s){if(d._zod.def.when){if(BMe(o)||!d._zod.def.when(o))continue}else if(l)continue;const p=o.issues.length,g=d._zod.check(o);if(g instanceof Promise&&c?.async===!1)throw new ml;if(u||g instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await g,o.issues.length!==p&&(l||(l=hl(o,p)))});else{if(o.issues.length===p)continue;l||(l=hl(o,p))}}return u?u.then(()=>o):o},a=(o,s,c)=>{if(hl(o))return o.aborted=!0,o;const l=i(s,n,c);if(l instanceof Promise){if(c.async===!1)throw new ml;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){const l=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>a(u,o,s)):a(l,o,s)}const c=e._zod.parse(o,s);if(c instanceof Promise){if(s.async===!1)throw new ml;return c.then(l=>i(l,n,s))}return i(c,n,s)}}qt(e,"~standard",()=>({validate:i=>{try{const a=VMe(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return jMe(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),r0=ne("$ZodString",(e,t)=>{vr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wOe(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rr=ne("$ZodStringFormat",(e,t)=>{em.init(e,t),r0.init(e,t)}),BOe=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=oOe),rr.init(e,t)}),qOe=ne("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=MR(n))}else t.pattern??(t.pattern=MR());rr.init(e,t)}),zOe=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=sOe),rr.init(e,t)}),VOe=ne("$ZodURL",(e,t)=>{rr.init(e,t),e._zod.check=r=>{try{const n=r.value.trim();if(!t.normalize&&t.protocol?.source===mOe.source&&!/^https?:\/\//i.test(n)){r.issues.push({code:"invalid_format",format:"url",n
407ote:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),jOe=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=lOe()),rr.init(e,t)}),HOe=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=iOe),rr.init(e,t)}),GOe=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=JMe),rr.init(e,t)}),WOe=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=eOe),rr.init(e,t)}),QOe=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tOe),rr.init(e,t)}),ZOe=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=rOe),rr.init(e,t)}),KOe=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=nOe),rr.init(e,t)}),YOe=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bOe(t)),rr.init(e,t)}),XOe=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vOe),rr.init(e,t)}),JOe=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=yOe(t)),rr.init(e,t)}),eAe=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=aOe),rr.init(e,t)}),tAe=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=uOe),rr.init(e,t),e._zod.bag.format="ipv4"}),rAe=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=dOe),rr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),nAe=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=pOe),rr.init(e,t)}),iAe=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=fOe),rr.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[i,a]=n;if(!a)throw new Error;const o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function LR(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const aAe=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=gOe),rr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{LR(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oAe(e){if(!OR.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return LR(r)}const sAe=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=OR),rr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oAe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),cAe=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=hOe),rr.init(e,t)});function lAe(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const uAe=ne("$ZodJWT",(e,t)=>{rr.init(e,t),e._zod.check=r=>{lAe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),UR=ne("$ZodNumber",(e,t)=>{vr.init(e,t),e._zod.pattern=e._zod.bag.pattern??EOe,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;const a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),dAe=ne("$ZodNumberFormat",(e,t)=>{xOe.init(e,t),UR.init(e,t)}),pAe=ne("$ZodBoolean",(e,t)=>{vr.init(e,t),e._zod.pattern=SOe,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}const i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),fAe=ne("$ZodUnknown",(e,t)=>{vr.init(e,t),e._zod.parse=r=>r}),gAe=ne("$ZodNever",(e,t)=>{vr.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function FR(e,t,r){e.issues.length&&t.issues.push(...IR(r,e.issues)),t.value[r]=e.value}const mAe=ne("$ZodArray",(e,t)=>{vr.init(e,t),e._zod.parse=(r,n)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);const a=[];for(let o=0;o<i.length;o++){const s=i[o],c=t.element._zod.run({value:s,issues:[]},n);c instanceof Promise?a.push(c.then(l=>FR(l,r,o))):FR(c,r,o)}return a.length?Promise.all(a).then(()=>r):r}});function tm(e,t,r,n,i,a){const o=r in n;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...IR(r,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?o&&(t.value[r]=void 0):t.value[r]=e.value}function BR(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=OMe(e.shape);
407return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function qR(e,t,r,n,i,a){const o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin==="optional",d=c.optout==="optional";for(const p in t){if(p==="__proto__"||s.has(p))continue;if(l==="never"){o.push(p);continue}const g=c.run({value:t[p],issues:[]},n);g instanceof Promise?e.push(g.then(m=>tm(m,r,p,t,u,d))):tm(g,r,p,t,u,d)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const hAe=ne("$ZodObject",(e,t)=>{if(vr.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const n=KT(()=>BR(t));qt(e._zod,"propValues",()=>{const s=t.shape,c={};for(const l in s){const u=s[l]._zod;if(u.values){c[l]??(c[l]=new Set);for(const d of u.values)c[l].add(d)}}return c});const i=Zg,a=t.catchall;let o;e._zod.parse=(s,c)=>{o??(o=n.value);const l=s.value;if(!i(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const u=[],d=o.shape;for(const p of o.keys){const g=d[p],m=g._zod.optin==="optional",v=g._zod.optout==="optional",h=g._zod.run({value:l[p],issues:[]},c);h instanceof Promise?u.push(h.then(P=>tm(P,s,p,l,m,v))):tm(h,s,p,l,m,v)}return a?qR(u,l,s,c,n.value,e):u.length?Promise.all(u).then(()=>s):s}}),vAe=ne("$ZodObjectJIT",(e,t)=>{hAe.init(e,t);const r=e._zod.parse,n=KT(()=>BR(t)),i=p=>{const g=new UOe(["shape","payload","ctx"]),m=n.value,v=T=>{const k=SR(T);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};g.write("const input = payload.value;");const h=Object.create(null);let P=0;for(const T of m.keys)h[T]=`key_${P++}`;g.write("const newResult = {};");for(const T of m.keys){const k=h[T],M=SR(T),$=p[T],O=$?._zod?.optin==="optional",H=$?._zod?.optout==="optional";g.write(`const ${k} = ${v(T)};`),O&&H?g.write(` 408 if (${k}.issues.length) { 409 if (${M} in input) { 410 payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ 411 ...iss, 412 path: iss.path ? [${M}, ...iss.path] : [${M}] 413 }))); 414 } 415 } 416 417 if (${k}.value === undefined) { 418 if (${M} in input) { 419 newResult[${M}] = undefined; 420 } 421 } else { 422 newResult[${M}] = ${k}.value; 423 } 424 425 `):O?g.write(` 426 if (${k}.issues.length) { 427 payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ 428 ...iss, 429 path: iss.path ? [${M}, ...iss.path] : [${M}] 430 }))); 431 } 432 433 if (${k}.value === undefined) { 434 if (${M} in input) { 435 newResult[${M}] = undefined; 436 } 437 } else { 438 newResult[${M}] = ${k}.value; 439 } 440 441 `):g.write(` 442 const ${k}_present = ${M} in input; 443 if (${k}.issues.length) { 444 payload.issues = payload.issues.concat(${k}.issues.map(iss => ({ 445 ...iss, 446 path: iss.path ? [${M}, ...iss.path] : [${M}] 447 }))); 448 } 449 if (!${k}_present && !${k}.issues.length) { 450 payload.issues.push({ 451 code: "invalid_type", 452 expected: "nonoptional", 453 input: undefined, 454 path: [${M}] 455 }); 456 } 457 458 if (${k}_present) { 459 if (${k}.value === undefined) { 460 newResult[${M}] = undefined; 461 } else { 462 newResult[${M}] = ${k}.value; 463 } 464 } 465 466 `)}g.write("payload.value = newResult;"),g.write("return payload;");const x=g.compile();return(T,k)=>x(p,T,k)};let a;const o=Zg,s=!QT.jitless,l=s&&kMe.value,u=t.catchall;let d;e._zod.parse=(p,g)=>{d??(d=n.value);const m=p.value;return o(m)?s&&l&&g?.async===!1&&g.jitless!==!0?(a||(a=i(t.shape)),p=a(p,g),u?qR([],m,p,g,d,e):p):r(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function zR(e,t,r,n){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!hl(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>uc(o,n,cc())))}),t)}const yAe=ne("$ZodUnion",(e,t)=>{vr.init(e,t),qt(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),qt(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),qt(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),qt(e._zod,"pattern",()=>{if(t.options.every(n=>
vendor: 11,743 bytes, line 466
466n._zod.pattern)){const n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>XT(i.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let a=!1;const o=[];for(const s of t.options){const c=s._zod.run({value:n.value,issues:[]},i);if(c instanceof Promise)o.push(c),a=!0;else{if(c.issues.length===0)return c;o.push(c)}}return a?Promise.all(o).then(s=>zR(s,n,e,i)):zR(o,n,e,i)}}),bAe=ne("$ZodIntersection",(e,t)=>{vr.init(e,t),e._zod.parse=(r,n)=>{const i=r.value,a=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([c,l])=>VR(r,c,l)):VR(r,a,o)}});function n0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(wd(e)&&wd(t)){const r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(const a of n){const o=n0(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const i=e[n],a=t[n],o=n0(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function VR(e,t,r){const n=new Map;let i;for(const s of t.issues)if(s.code==="unrecognized_keys"){i??(i=s);for(const c of s.keys)n.has(c)||n.set(c,{}),n.get(c).l=!0}else e.issues.push(s);for(const s of r.issues)if(s.code==="unrecognized_keys")for(const c of s.keys)n.has(c)||n.set(c,{}),n.get(c).r=!0;else e.issues.push(s);const a=[...n].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(a.length&&i&&e.issues.push({...i,keys:a}),hl(e))return e;const o=n0(t.value,r.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const wAe=ne("$ZodEnum",(e,t)=>{vr.init(e,t);const r=TR(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>MMe.has(typeof i)).map(i=>typeof i=="string"?Kg(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i}}),TAe=ne("$ZodTransform",(e,t)=>{vr.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new wR(e.constructor.name);const i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r.fallback=!0,r));if(i instanceof Promise)throw new ml;return r.value=i,r.fallback=!0,r}});function jR(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const HR=ne("$ZodOptional",(e,t)=>{vr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),qt(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${XT(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const i=r.value,a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>jR(o,i)):jR(a,i)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),EAe=ne("$ZodExactOptional",(e,t)=>{HR.init(e,t),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),SAe=ne("$ZodNullable",(e,t)=>{vr.init(e,t),qt(e._zod,"optin",()=>t.innerType._zod.optin),qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${XT(r.source)}|null)$`):void 0}),qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),PAe=ne("$ZodDefault",(e,t)=>{vr.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>GR(a,t)):GR(i,t)}});function GR(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const CAe=ne("$ZodPrefault",(e,t)=>{vr.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),IAe=ne("$ZodNonOptional",(e,t)=>{vr.init(e,t),qt(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>WR(a,e)):WR(i,e)}});function WR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const xAe=ne("$ZodCatch",(e,t)=>{vr.init(e,t),e._zod.optin="optional",qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>uc(o,n,cc()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>uc(a,n,cc()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),_Ae=ne("$ZodPipe",(e,t)=>{vr.init(e,t),qt(e._zod,"values",()=>t.in._zod.values),qt(e._zod,"optin",()=>t.in._zod.optin),qt(e._zod,"optout",()=>t.out._zod.optout),qt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const a=t.out._zod.run(r,n);return a instanceof Promise?a.then(o=>rm(o,t.in,n)):rm(a,t.in,n)}const i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>rm(a,t.out,n)):rm(i,t.out,n)}});function rm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const kAe=ne("$ZodReadonly",(e,t)=>{vr.init(e,t),qt(e._zod,"propValues",()=>t.innerType._zod.propValues),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"optin",()=>t.innerType?._zod?.optin),qt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(QR):QR(i)}});function QR(e){return e.value=Object.freeze(e.value),e}const MAe=ne("$ZodCustom",(e,t)=>{Kn.init(e,t),vr.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>ZR(a,r,n,e));ZR(i,r,n,e)}});function ZR(e,t,r,n){if(!e){const i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(Td(i))}}var KR;class OAe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function AAe(){return new OAe}(KR=globalThis).__zod_globalRegistry??(KR.__zod_globalRegistry=AAe());const Ed=globalThis.__zod_globalRegistry;function $Ae(e,t){return new e({type:"string",...$e(t)})}function RAe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function YR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function NAe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function DAe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function LAe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function UAe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function FAe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function BAe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function qAe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function zAe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function VAe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function jAe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function HAe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function GAe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function WAe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function QAe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function ZAe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function KAe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function YAe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function XAe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function JAe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function e$e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}function t$e(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function r$e(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function n$e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function i$e(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function a$e(e,t){return new e({type:"number",checks:[],...$e(t)})}function o$e(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$e(t)})}function s$e(e,t){return new e({type:"boolean",...$e(t)})}function c$e(e){return new e({type:"unknown"})}function l$e(e,t){return new e({type:"never",...$e(t)})}function XR(e,t){return new NR({check:"less_than",...$e(t),value:e,inclusive:!1})}function i0(e,t){return new NR({check:"less_than",...$e(t),value:e,inclusive:!0})}function JR(e,t){return new DR({check:"greater_than",...$e(t),value:e,inclusive:!1})}function a0(e,t){return new DR({check:"greater_than",...$e(t),value:e,inclusive:!0})}function eN(e,t){return new IOe({check:"multiple_of",...$e(t),value:e})}function tN(e,t){return new _Oe({check:"max_length",...$e(t),maximum:e})}function nm(e,t){return new kOe({check:"min_length",...$e(t),minimum:e})}function rN(e,t){return new MOe({check:"length_equals",...$e(t),length:e})}function u$e(e,t){return new OOe({check:"string_format",format:"regex",...$e(t),pattern:e})}function d$e(e){return new AOe({check:"string_format",format:"lowercase",...$e(e)})}function p$e(e){return new $Oe({check:"string_format",format:"up
466percase",...$e(e)})}function f$e(e,t){return new ROe({check:"string_format",format:"includes",...$e(t),includes:e})}function g$e(e,t){return new NOe({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function m$e(e,t){return new DOe({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function vl(e){return new LOe({check:"overwrite",tx:e})}function h$e(e){return vl(t=>t.normalize(e))}function v$e(){return vl(e=>e.trim())}function y$e(){return vl(e=>e.toLowerCase())}function b$e(){return vl(e=>e.toUpperCase())}function w$e(){return vl(e=>_Me(e))}function T$e(e,t,r){return new e({type:"array",element:t,...$e(r)})}function E$e(e,t,r){return new e({type:"custom",check:"custom",fn:t,...$e(r)})}function S$e(e,t){const r=P$e(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Td(i,n.value,r._zod.def));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=r),a.continue??(a.continue=!r._zod.def.abort),n.issues.push(Td(a))}},e(n.value,n)),t);return r}function P$e(e,t){const r=new Kn({check:"custom",...$e(t)});return r._zod.check=e,r}function nN(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ed,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ln(e,t,r={path:[],schemaPath:[]}){var n;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);const s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{const u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,u);else{const p=o.schema,g=t.processors[i.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);g(e,t,p,u)}const d=e._zod.parent;d&&(o.ref||(o.ref=d),ln(d,t,u),t.seen.get(d).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io==="input"&&Rn(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&"_prefault"in o.schema&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function iN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const o of e.seen.entries()){const s=e.metadataRegistry.get(o[0])?.id;if(s){const c=n.get(s);if(c&&c!==o[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,o[0])}}const i=o=>{const s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const d=e.external.registry.get(o[0])?.id,p=e.external.uri??(m=>m);if(d)return{ref:p(d)};const g=o[1].defId??o[1].schema.id??`schema${e.counter++}`;return o[1].defId=g,{defId:g,ref:`${p("__shared")}#/${s}/${g}`}}if(o[1]===r)return{ref:"#"};const l=`#/${s}/`,u=o[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},a=o=>{if(o[1].schema.$ref)return;const s=o[1],{ref:c,defId:l}=i(o);s.def={...s.schema},l&&(s.defId=l);const u=s.schema;for(const d in u)delete u[d];u.$ref=c};if(e.cycles==="throw")for(const o of e.seen.entries()){const s=o[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 467 468Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const o of e.seen.entries()){const s=o[1];if(t===o[0]){a(o);continue}if(e.external){const l=e.external.registry.get(o[0])?.id;if(t!==o[0]&&l){a(o);continue}}if(e.metadataRegistry.get(o[0])?.id){a(o);continue}if(s.cycle){a(o);continue}if(s.count>1&&e.reused==="ref"){a(o);continue}}}function aN(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=s=>{const c=e.seen.get(s);if(c.ref===null)return;const l=c.def??c.schema,u={...l},d=c.ref;if(c.ref=null,d){n(d);const g=e.seen.get(d),m=g.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(m)):Object.assign(l,m),Object.assign(l,u),s._zod.parent===d)for(const h in l)h==="$ref"||h==="allOf"||h in u||delete l[h];if(m.$ref&&g.def)for(const h in l)h==="$ref"||h==="allOf"||h in g.def&&JSON.stringify(l[h])===JSON.stringify(g.def[h])&&delete l[h]}const p=s._zod.parent;
468if(p&&p!==d){n(p);const g=e.seen.get(p);if(g?.schema.$ref&&(l.$ref=g.schema.$ref,g.def))for(const m in l)m==="$ref"||m==="allOf"||m in g.def&&JSON.stringify(l[m])===JSON.stringify(g.def[m])&&delete l[m]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};for(const s of[...e.seen.entries()].reverse())n(s[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);const a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;const o=e.external?.defs??{};for(const s of e.seen.entries()){const c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,o[c.defId]=c.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{const s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:im(t,"input",e.processors),output:im(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Rn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Rn(n.element,r);if(n.type==="set")return Rn(n.valueType,r);if(n.type==="lazy")return Rn(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Rn(n.innerType,r);if(n.type==="intersection")return Rn(n.left,r)||Rn(n.right,r);if(n.type==="record"||n.type==="map")return Rn(n.keyType,r)||Rn(n.valueType,r);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Rn(n.in,r)||Rn(n.out,r);if(n.type==="object"){for(const i in n.shape)if(Rn(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(const i of n.options)if(Rn(i,r))return!0;return!1}if(n.type==="tuple"){for(const i of n.items)if(Rn(i,r))return!0;return!!(n.rest&&Rn(n.rest,r))}return!1}const C$e=(e,t={})=>r=>{const n=nN({...r,processors:t});return ln(e,n),iN(n,e),aN(n,e)},im=(e,t,r={})=>n=>{const{libraryOptions:i,target:a}=n??{},o=nN({...i??{},target:a,io:t,processors:r});return ln(e,o),iN(o,e),aN(o,e)},I$e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},x$e=(e,t,r,n)=>{const i=r;i.type="string";const{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof o=="number"&&(i.maxLength=o),s&&(i.format=I$e[s]??s,i.format===""&&delete i.format,s==="time"&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){const u=[...c];u.length===1?i.pattern=u[0].source:u.length>1&&(i.allOf=[...u.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},_$e=(e,t,r,n)=>{const i=r,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?i.type="integer":i.type="number";const d=typeof u=="number"&&u>=(a??Number.NEGATIVE_INFINITY),p=typeof l=="number"&&l<=(o??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";d?g?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a=="number"&&(i.minimum=a),p?g?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o=="number"&&(i.maximum=o),typeof c=="number"&&(i.multipleOf=c)},k$e=(e,t,r,n)=>{r.type="boolean"},M$e=(e,t,r,n)=>{r.not={}},O$e=(e,t,r,n)=>{},A$e=(e,t,r,n)=>{const i=e._zod.def,a=TR(i.entries);a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),r.enum=a},$$e=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},R$e=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},N$e=(e,t,r,n)=>{const i=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(i.minItems=o),typeof s=="number"&&(i.maxItems=s),i.type="array",i.items=ln(a.element,t,{...n,path:[...n.path,"items"]})},D$e=(e,t,r,n)=>{const i=r,a=e._zod.def;i.type="object",i.properties={};const o=a.shape;for(const l in o)i.properties[l]=ln(o[l],t,{...n,path:[...n.path,"properties",l]});const s=new Set(Object.keys(o)),c=new Set([...s].filter(l=>{const u=a.shape[l]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));c.size>
4680&&(i.required=Array.from(c)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=ln(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},L$e=(e,t,r,n)=>{const i=e._zod.def,a=i.inclusive===!1,o=i.options.map((s,c)=>ln(s,t,{...n,path:[...n.path,a?"oneOf":"anyOf",c]}));a?r.oneOf=o:r.anyOf=o},U$e=(e,t,r,n)=>{const i=e._zod.def,a=ln(i.left,t,{...n,path:[...n.path,"allOf",0]}),o=ln(i.right,t,{...n,path:[...n.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=c},F$e=(e,t,r,n)=>{const i=e._zod.def,a=ln(i.innerType,t,n),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},B$e=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},q$e=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},z$e=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},V$e=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},j$e=(e,t,r,n)=>{const i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?a?i.out:i.in:i.out;ln(o,t,n);const s=t.seen.get(e);s.ref=o},H$e=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType,r.readOnly=!0},oN=(e,t,r,n)=>{const i=e._zod.def;ln(i.innerType,t,n);const a=t.seen.get(e);a.ref=i.innerType},G$e=ne("ZodISODateTime",(e,t)=>{YOe.init(e,t),ar.init(e,t)});function W$e(e){return t$e(G$e,e)}const Q$e=ne("ZodISODate",(e,t)=>{XOe.init(e,t),ar.init(e,t)});function Z$e(e){return r$e(Q$e,e)}const K$e=ne("ZodISOTime",(e,t)=>{JOe.init(e,t),ar.init(e,t)});function Y$e(e){return n$e(K$e,e)}const X$e=ne("ZodISODuration",(e,t)=>{eAe.init(e,t),ar.init(e,t)});function J$e(e){return i$e(X$e,e)}const xi=ne("ZodError",(e,t)=>{_R.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>zMe(e,r)},flatten:{value:r=>qMe(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ZT,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ZT,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),eRe=e0(xi),tRe=t0(xi),rRe=Xg(xi),nRe=Jg(xi),iRe=HMe(xi),aRe=GMe(xi),oRe=WMe(xi),sRe=QMe(xi),cRe=ZMe(xi),lRe=KMe(xi),uRe=YMe(xi),dRe=XMe(xi),sN=new WeakMap;function Sd(e,t,r){const n=Object.getPrototypeOf(e);let i=sN.get(n);if(i||(i=new Set,sN.set(n,i)),!i.has(t)){i.add(t);for(const a in r){const o=r[a];Object.defineProperty(n,a,{configurable:!0,enumerable:!1,get(){const s=o.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}const yr=ne("ZodType",(e,t)=>(vr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:im(e,"input"),output:im(e,"output")}}),e.toJSONSchema=C$e(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,n)=>eRe(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>rRe(e,r,n),e.parseAsync=async(r,n)=>tRe(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>nRe(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>iRe(e,r,n),e.decode=(r,n)=>aRe(e,r,n),e.encodeAsync=async(r,n)=>oRe(e,r,n),e.decodeAsync=async(r,n)=>sRe(e,r,n),e.safeEncode=(r,n)=>cRe(e,r,n),e.safeDecode=(r,n)=>lRe(e,r,n),e.safeEncodeAsync=async(r,n)=>uRe(e,r,n),e.safeDecodeAsync=async(r,n)=>dRe(e,r,n),Sd(e,"ZodType",{check(...r){const n=this.def;return this.clone(Wo(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,n){return Qo(this,r,n)},brand(){return this},register(r,n){return r.add(this,n),this},refine(r,n){return this.check(oNe(r,n))},superRefine(r,n){return this.check(sNe(r,n))},overwrite(r){return this.check(vl(r))},optional(){return gN(this)},exactOptional(){return WRe(this)},nullable(){return mN(this)},nullish(){return gN(mN(this))},nonoptional(r){return JRe(this,r)},array(){return LRe(this)},or(r){return BRe([this,r])},and(r){return zRe(this,r)},transform(r){return vN(this,HRe(r))},default(r){return KRe(this,r)},prefault(r){return XRe(this,r)},catch(r){return tNe(this,r)},pipe(r){return vN(this,r)},readonly(){return iNe(this)},describe(r){const n=this.clone();return Ed.add(n,{description:r}),n},meta(...r){if(r.length===0)return Ed.get(this);const n=this.clone();return Ed.add(n,r[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return Ed.get(e)?.description},configurable:!0}),e)),cN=ne("_ZodString",(e,t)=>{r0.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,i,a)=>x$e(e,n,i);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Sd(e,"_ZodString",{regex(...n){return this.check(u$e(...n))},includes(...n){return this.check(f$e(...n))},startsWith(...n){return this.check(g$e(...n))},endsWith(...n){return this.check(m$e(...n))},min(...n){return this.check(nm(...n))},max(...n){return this.check(tN(...n))},length(...n){return this.check(rN(...n))},nonempty(...n){return this.check(nm(1,...n))},lowercase(n){return this.check(d$e(n))},uppercase(n){return this.check(p$e(n))},trim(){return this.check(v$e())},normalize(...n){return this.check(h$e(...n))},toLowerCase(){return this.check(y$e())},toUpperCase(){return this.check(b$e())},slugify(){return this.check(w$e())}})}),pRe=ne("ZodString",(e,t)=>{r0.init(e,t),cN.init(e,t),e.email=r=>e.check(RAe(fRe,r)),e.url=r=>e.check(FAe(gRe,r)),e.jwt=r=>e.check(e$e(kRe,r)),e.emoji=r=>e.check(BAe(mRe,r)),e.guid=r=>e.check(YR(lN,r)),e.uuid=r=>e.check(NAe(am,r)),e.uuidv4=r=>e.check(DAe(am,r)),e.uuidv6=r=>e.check(LAe(am,r)),e.uuidv7=r=>e.check(UAe(am,r)),e.nanoid=r=>e.check(qAe(hRe,r)),e.guid=r=>e.check(YR(lN,r)),e.cuid=r=>e.check(zAe(vRe,r)),e.cuid2=r=>e.check(VAe(yRe,r)),e.ulid=r=>e.check(jAe(bRe,r)),e.base64=r=>e.check(YAe(IRe,r)),e.base64url=r=>e.check(XAe(xRe,r)),e.xid=r=>e.check(HAe(wRe,r)),e.ksuid=r=>e.check(GAe(TRe,r)),e.ipv4=r=>e.check(WAe(ERe,r)),e.ipv6=r=>e.check(QAe(SRe,r)),e.cidrv4=r=>e.check(ZAe(PRe,r)),e.cidrv6=r=>e.check(KAe(CRe,r)),e.e164=r=>e.check(JAe(_Re,r)),e.datetime=r=>e.check(W$e(r)),e.date=r=>e.check(Z$e(r)),e.time=r=>e.check(Y$e(r)),e.duration=r=>e.check(J$e(r))});function nt(e){return $Ae(pRe,e)}
468const ar=ne("ZodStringFormat",(e,t)=>{rr.init(e,t),cN.init(e,t)}),fRe=ne("ZodEmail",(e,t)=>{zOe.init(e,t),ar.init(e,t)}),lN=ne("ZodGUID",(e,t)=>{BOe.init(e,t),ar.init(e,t)}),am=ne("ZodUUID",(e,t)=>{qOe.init(e,t),ar.init(e,t)}),gRe=ne("ZodURL",(e,t)=>{VOe.init(e,t),ar.init(e,t)}),mRe=ne("ZodEmoji",(e,t)=>{jOe.init(e,t),ar.init(e,t)}),hRe=ne("ZodNanoID",(e,t)=>{HOe.init(e,t),ar.init(e,t)}),vRe=ne("ZodCUID",(e,t)=>{GOe.init(e,t),ar.init(e,t)}),yRe=ne("ZodCUID2",(e,t)=>{WOe.init(e,t),ar.init(e,t)}),bRe=ne("ZodULID",(e,t)=>{QOe.init(e,t),ar.init(e,t)}),wRe=ne("ZodXID",(e,t)=>{ZOe.init(e,t),ar.init(e,t)}),TRe=ne("ZodKSUID",(e,t)=>{KOe.init(e,t),ar.init(e,t)}),ERe=ne("ZodIPv4",(e,t)=>{tAe.init(e,t),ar.init(e,t)}),SRe=ne("ZodIPv6",(e,t)=>{rAe.init(e,t),ar.init(e,t)}),PRe=ne("ZodCIDRv4",(e,t)=>{nAe.init(e,t),ar.init(e,t)}),CRe=ne("ZodCIDRv6",(e,t)=>{iAe.init(e,t),ar.init(e,t)}),IRe=ne("ZodBase64",(e,t)=>{aAe.init(e,t),ar.init(e,t)}),xRe=ne("ZodBase64URL",(e,t)=>{sAe.init(e,t),ar.init(e,t)}),_Re=ne("ZodE164",(e,t)=>{cAe.init(e,t),ar.init(e,t)}),kRe=ne("ZodJWT",(e,t)=>{uAe.init(e,t),ar.init(e,t)}),uN=ne("ZodNumber",(e,t)=>{UR.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,i,a)=>_$e(e,n,i),Sd(e,"ZodNumber",{gt(n,i){return this.check(JR(n,i))},gte(n,i){return this.check(a0(n,i))},min(n,i){return this.check(a0(n,i))},lt(n,i){return this.check(XR(n,i))},lte(n,i){return this.check(i0(n,i))},max(n,i){return this.check(i0(n,i))},int(n){return this.check(dN(n))},safe(n){return this.check(dN(n))},positive(n){return this.check(JR(0,n))},nonnegative(n){return this.check(a0(0,n))},negative(n){return this.check(XR(0,n))},nonpositive(n){return this.check(i0(0,n))},multipleOf(n,i){return this.check(eN(n,i))},step(n,i){return this.check(eN(n,i))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Zi(e){return a$e(uN,e)}const MRe=ne("ZodNumberFormat",(e,t)=>{dAe.init(e,t),uN.init(e,t)});function dN(e){return o$e(MRe,e)}const ORe=ne("ZodBoolean",(e,t)=>{pAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>k$e(e,r,n)});function ARe(e){return s$e(ORe,e)}const $Re=ne("ZodUnknown",(e,t)=>{fAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>O$e()});function pN(){return c$e($Re)}const RRe=ne("ZodNever",(e,t)=>{gAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>M$e(e,r,n)});function NRe(e){return l$e(RRe,e)}const DRe=ne("ZodArray",(e,t)=>{mAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>N$e(e,r,n,i),e.element=t.element,Sd(e,"ZodArray",{min(r,n){return this.check(nm(r,n))},nonempty(r){return this.check(nm(1,r))},max(r,n){return this.check(tN(r,n))},length(r,n){return this.check(rN(r,n))},unwrap(){return this.element}})});function LRe(e,t){return T$e(DRe,e,t)}const URe=ne("ZodObject",(e,t)=>{vAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>D$e(e,r,n,i),qt(e,"shape",()=>t.shape),Sd(e,"ZodObject",{keyof(){return VRe(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:pN()})},loose(){return this.clone({...this._zod.def,catchall:pN()})},strict(){return this.clone({...this._zod.def,catchall:NRe()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return NMe(this,r)},safeExtend(r){return DMe(this,r)},merge(r){return LMe(this,r)},pick(r){return $Me(this,r)},omit(r){return RMe(this,r)},partial(...r){return UMe(fN,this,r[0])},required(...r){return FMe(hN,this,r[0])}})});function lo(e,t){const r={type:"object",shape:e??{},...$e(t)};return new URe(r)}const FRe=ne("ZodUnion",(e,t)=>{yAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>L$e(e,r,n,i),e.options=t.options});function BRe(e,t){return new FRe({type:"union",options:e,...$e(t)})}const qRe=ne("ZodIntersection",(e,t)=>{bAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>U$e(e,r,n,i)});function zRe(e,t){return new qRe({type:"intersection",left:e,right:t})}const o0=ne("ZodEnum",(e,t)=>{wAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(n,i,a)=>A$e(e,n,i),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{const a={};for(const o of n)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);
468return new o0({...t,checks:[],...$e(i),entries:a})},e.exclude=(n,i)=>{const a={...t.entries};for(const o of n)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new o0({...t,checks:[],...$e(i),entries:a})}});function VRe(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new o0({type:"enum",entries:r,...$e(t)})}const jRe=ne("ZodTransform",(e,t)=>{TAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>R$e(e,r),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new wR(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(Td(a,r.value,t));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(Td(o))}};const i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}});function HRe(e){return new jRe({type:"transform",transform:e})}const fN=ne("ZodOptional",(e,t)=>{HR.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>oN(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function gN(e){return new fN({type:"optional",innerType:e})}const GRe=ne("ZodExactOptional",(e,t)=>{EAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>oN(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function WRe(e){return new GRe({type:"optional",innerType:e})}const QRe=ne("ZodNullable",(e,t)=>{SAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>F$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function mN(e){return new QRe({type:"nullable",innerType:e})}const ZRe=ne("ZodDefault",(e,t)=>{PAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>q$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function KRe(e,t){return new ZRe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():CR(t)}})}const YRe=ne("ZodPrefault",(e,t)=>{CAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>z$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function XRe(e,t){return new YRe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():CR(t)}})}const hN=ne("ZodNonOptional",(e,t)=>{IAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>B$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function JRe(e,t){return new hN({type:"nonoptional",innerType:e,...$e(t)})}const eNe=ne("ZodCatch",(e,t)=>{xAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>V$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function tNe(e,t){return new eNe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const rNe=ne("ZodPipe",(e,t)=>{_Ae.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>j$e(e,r,n,i),e.in=t.in,e.out=t.out});function vN(e,t){return new rNe({type:"pipe",in:e,out:t})}const nNe=ne("ZodReadonly",(e,t)=>{kAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>H$e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function iNe(e){return new nNe({type:"readonly",innerType:e})}const aNe=ne("ZodCustom",(e,t)=>{MAe.init(e,t),yr.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$$e(e,r)});function oNe(e,t={}){return E$e(aNe,e,t)}function sNe(e,t){return S$e(e,t)}const cNe="https://rating-reviews.prod.merch.vpsvc.com/v1",yN="reviews-summary",bN=lo({reviewsCount:Zi(),ratedXOutOfYLabel:nt(),averageRating:Zi(),reviewsCountLabel:nt(),reviewedByNCustomersLabel:nt(),stars:Zi().array()}),lNe=lo({currentReviewShowing:nt(),next:nt(),previous:nt(),paginationLabel:nt(),paginationInputLabel:nt(),totalResults:Zi(),pagesTotal:Zi(),pageSize:Zi(),currentPageNumber:Zi()}),uNe=lo({id:Zi(),headline:nt(),src:nt(),caption:nt().optional()}),dNe=lo({id:Zi(),rating:Zi(),ratedXOutOfY:nt(),stars:Zi().array(),header:nt(),authorSubmissionDate:nt(),nickname:nt(),authorLocation:nt(),comments:nt(),merchantResponse:nt(),images:uNe.array(),isVerifiedBuyer:ARe(),disclosureCode:nt()}),pNe=lo({HighestRating:nt(),LowestRating:nt(),Newest:nt(),Oldest:nt(),MediaSort:nt()}),fNe=lo({lessDetails:nt(),moreDetails:nt()}),gNe=lo({verified:nt(),incentivized:nt()}),mNe=lo({snapshotLabel:nt(),byLabel:nt(),authorSubmissionDateLabel:nt(),authorLocationLabel:nt(),merchantResponseLabel:nt(),displayingReviewsLabel:nt(),sortByLabel:nt(),sorting:pNe,detailedRating:fNe,disclosureCodeLabels:gNe});lo({tenant:nt(),locale:nt(),mpvId:nt(),sortBy:nt(),filterByRatingValue:nt().optional(),texts:mNe,summary:bN,pagination:lNe,reviews:dNe.array()});async function hNe(e){try{const t=await fetch(`${cNe}/${yN}/${e.tenant}/${e.locale}/${e.mpvId}`);if(!t.ok)throw new Error(`Unexpected response from server: ${t.status} - ${await t.text()||t.statusText}`);return bN.parse(await t.json())}catch(t){throw Kr("Unable to retrieve reviews-summary due to an error",{contextData:{...e},error:t}),t}}function dc(e){const t=Wn(),r={tenant:t.tenant,locale:t.locale,mpvId:e.offer.mpvId},{data:n,error:i,isLoading:a}=yR([r,yN],o=>hNe(o[0]),{shouldRetryOnError:!1});return a?f(ts,{"data-testid":"skeleton",marginTop:"between-actions",children:f(Al,{width:"narrow"})}):i||!n?(Kr("Error fetching ratings",{contextData:{...r},error:i||"No data retrieved"}),f(ue,{})):f(ct,{marginTop:"between-actions",children:f(vNe,{reviewsSummary:n})})}
468function vNe(e){return f(Tl,{ratingValue:e.reviewsSummary.averageRating,"aria-label":e.reviewsSummary.ratedXOutOfYLabel,reviews:e.reviewsSummary.reviewsCount})}function wN(e){const[t,r]=pe(!1),n=bT();return new URLSearchParams(window?.location.search).get("debug")===null?f(ue,{}):X(ue,{children:[f(Dt,{mt:3,width:"full-width",onClick:()=>r(!0),children:"Show Debug Info"}),f(xl,{isOpen:t,bodyWidth:"grow",onRequestDismiss:()=>r(!1),children:X(_l,{children:[f(kl,{children:X(Ml,{children:["Debug information for ",e.offer.title]})}),f(Ol,{children:X(vn,{children:[f(s0,{children:f(we,{fontSkin:"title-item",children:"Input Data"})}),f(_i,{label:"Customer Id",text:n.customerId}),f(_i,{label:"Source Document Url",text:e.offer.sourceDocumentUrl}),f(s0,{children:f(we,{fontSkin:"title-item",children:"Output Data"})}),f(_i,{label:"Mpv Id",text:e.offer.mpvId}),f(_i,{label:"Product Key",text:e.offer.productKey}),f(_i,{label:"Product Version",text:e.offer.productVersion.toString()}),f(_i,{label:"Product Options",text:JSON.stringify(e.offer.productOptions,null,2),useTextArea:!0}),f(_i,{label:"Offer Tracking Id",text:e.offer.trackingId}),f(_i,{label:"Offer Group Tracking Id",text:e.offer.offerGroupTrackingId}),f(_i,{label:"Offer Type",text:e.offer.offerType}),f(_i,{label:"Image Url",text:e.offer.imageUrl}),f(_i,{label:"Document Url",text:e.offer.documentUrl}),e.offer.configureUrl&&f(_i,{label:"Product Url",text:bNe(e.offer.configureUrl)})]})}),f(Bd,{pinned:!0,children:f(_m,{children:f(Dt,{skin:"secondary",onClick:()=>r(!1),children:"Close"})})})]})})]})}function s0(e){return f(Be,{mb:3,children:f(_e,{span:12,children:e.children})})}function _i(e){return e.text?f(s0,{children:f(yNe,{label:e.label,text:e.text,useTextArea:e.useTextArea})}):f(ue,{})}function yNe(e){const[t,r]=pe(!1),n=e.useTextArea?f(fE,{fullWidth:!0,disabled:!0,value:e.text,rows:6}):f(Cm,{standardMode:!0,disabled:!0,value:e.text});return f(gE,{children:X(ym,{children:[n,f(bm,{children:e.label}),t?f(Gm,{tooltip:"Copied",children:f(hn,{iconType:"check",size:"standard"})}):f(Gm,{tooltip:"Copy to clipboard",children:f(hn,{iconType:"saveAsCopy",size:"standard",onClick:()=>{navigator.clipboard.writeText(e.text),r(!0),setTimeout(()=>{r(!1)},1e3)}})})]})})}function bNe(e){return window.location.hostname==="localhost"||e.startsWith("http")?e:`${window.location.protocol}//${window.location.hostname}${e}`}const wNe=ul("recs_use_campaign_callouts",()=>Jo.import("@vp/campaign-callouts").then(e=>({default:e.CampaignCallout}))),TNe=ul("recs_use_favorites_hearts",()=>Jo.import("./index.js").then(e=>({default:e.ProductFavoriteHeart})));function c0(e,t,r,n){return TN(e,null,null,null,null,t,r,null,null,n)}function om(e,t,r,n,i,a,o,s,c){return TN(e,t,r,n,i,null,o,a,s,c)}function TN(e,t,r,n,i,a,o,s,c,l){const u=d=>{const[p,g]=pe(!1),[m,v]=Uke(),h={offer:d.offer,Cta:t,SecondaryCta:r,ImageCta:n,ImageOverlay:i,Link:a,Colors:s,Price:o,QuantitySelector:c,Ratings:l,ctaSuccess:p,setCtaSuccess:g,onClosed:()=>{v()}};return Ee(()=>{p&&v()},[p,v]),f(ENe,{...h,ref:m})};return u.displayName=e,u}const ENe=y.forwardRef(function(t,r){return X(mo,{style:{height:"100%"},children:[f(SNe,{...t}),f(EN,{...t,ref:r}),f(INe,{...t,usesLink:t.Link!==void 0})]})});function SNe(e){const t=e.ctaSuccess?l0():xNe(e.ImageCta),r=SN(e.ImageOverlay),n=Wn(),i=Ii();return b$(e.offer.offerGroupTrackingId,e.offer.offerType).includes(tc.Image)?X(ue,{children:[f(dl,{fallback:f(ue,{}),onError:o=>{Kr("Error showing campaign callout or favorite heart",{contextData:{tenant:n.tenant,locale:n.locale,product:{mpvId:e.offer.mpvId,productKey:e.offer.productKey,productOptions:e.offer.productOptions,productVersion:e.offer.productVersion},offerTrackingId:e.offer.trackingId},error:o})},children:X($l,{style:{zIndex:"initial"},children:[f(Nl,{fallback:f(ue,{}),children:f(wNe,{product:e.offer.mpvId,style:{zIndex:"var(--swan-sem-z-index-link-covering)"}})}),i.page!=="accessories"&&f(Nl,{fallback:f(ue,{}),children:f(ei,{ml:"auto",children:f(TNe,{productKey:e.offer.productKey,productVersion:e.offer.productVersion,selectedOptions:e.offer.productOptions,productName:e.offer.title,mpvId:e.offer.mpvId,documentUrl:e.offer.documentUrl,pageZone:"Recommendations",productPosition:jEe(e.offer.offerGroupTrackingId,e.offer.trackingId)})})})]})}),f(t,{offer:e.offer,onSuccess:()=>{e.setCtaSuccess(!0)},onClosed:e.onClosed,children:X(ho,{children:[f(Vd,{aspectRatio:1,src:e.offer.imageUrl,alt:""}),!e.ctaSuccess||f(r,{})]})})]}):f(ue,{})}const EN=y.forwardRef((e,t)=>
468{const{SecondaryCta:r,Link:n,Price:i,Colors:a,Ratings:o}=e,s=b$(e.offer.offerGroupTrackingId,e.offer.offerType),c=n&&n.Location=="name"?n.Link:l0(),l=n&&n.Location=="bottom"?n.Link:()=>f(ue,{});return X(rs,{children:[X(Re,{justifyContent:"space-between",children:[f(Ba,{tabIndex:-1,ref:t,children:f(c,{offer:e.offer,children:f(ns,{as:"h4",children:e.offer.title})})}),!e.ctaSuccess&&r&&f(r,{offer:e.offer,onSuccess:()=>{e.setCtaSuccess(!0)}})]}),s.includes(tc.Description)&&f(vo,{children:e.offer.description}),s.includes(tc.Ratings)&&f(PNe,{offer:e.offer,Ratings:o,usesLink:!!n}),s.includes(tc.Price)&&f(bc,{children:f(i,{offer:e.offer,hasQuantitySelector:e.QuantitySelector!==null})}),f(CNe,{offer:e.offer,Colors:a,usesLink:!!n}),f(l,{offer:e.offer})]})});EN.displayName="TileContents";function PNe(e){const t=SN(e.Ratings);return e.usesLink?f(ei,{children:f(t,{offer:e.offer})}):f(t,{offer:e.offer})}function CNe(e){const{Colors:t}=e;return t?e.usesLink?f(ei,{children:f(t,{offer:e.offer})}):f(t,{offer:e.offer}):f(ue,{})}function INe(e){const{QuantitySelector:t,Cta:r}=e,[n,i]=pe(!1),[a,o]=pe(""),[s,c]=pe(!1),l=e.usesLink?f(ei,{children:f(wN,{offer:e.offer})}):f(wN,{offer:e.offer});return e.ctaSuccess||!t||!r?l:X(Wm,{children:[n&&f(ct,{mb:4,children:f(we,{textColor:"error",children:f(vd,{text:a})})}),!s&&X(ue,{children:[f(t,{offer:e.offer}),f(r,{offer:e.offer,onSuccess:()=>{i(!1),e.setCtaSuccess(!0)},onError:u=>{i(!0),o(u)},onPermanentError:()=>{c(!0)}})]}),l]})}function SN(e){return e||(()=>f(ue,{}))}function xNe(e){return e||l0()}function l0(){return e=>f(ue,{children:e.children})}class Da{static experiment={key:"recs_xsell_edit_flow",variations:{control:"control",test:"test"}};static eligibleProducts=["premiumBallpointPens","vistaPrintPrintedBaseballCap","deluxeCottonTote","envelopeSeals"];static eligibleLocales=["en-us","es-us","en-ca","fr-ca"];static eligiblePages=["cross-sell"];static isProductEligible(t){return Da.eligibleProducts.includes(t)}static isLocaleEligible(t){return Da.eligibleLocales.includes(t.toLocaleLowerCase())}static isPageEligible(t){return Da.eligiblePages.includes(t.toLocaleLowerCase())}}function _Ne(e,t,r,n,i){const a=new URL(e,window.location.origin);return Object.entries(t).forEach(([o,s])=>{a.searchParams.append(o,s)}),a.searchParams.append("qty",r.toString()),a.searchParams.append("documentUri",n),a.searchParams.append("recommendationsId",i),a.toString()}function kNe(e){return f(Bg,{offer:e.offer,onProductAddedToCart:e.onSuccess,onProductAddToCartError:e.onError,onProductAddToCartPermanentError:e.onPermanentError})}function PN(e){if(!e.offer.documentUrl||!e.offer.configureUrl)throw new Error("Cannot build a DesignInProductPageLink with neither an URL nor a document to configure the product");return f(ONe,{offer:e.offer,url:_Ne(e.offer.configureUrl,e.offer.productOptions,e.offer.quantity,e.offer.documentUrl,e.offer.trackingId),skin:"unstyled",children:e.children})}const MNe=om("DesignInProductPageOfferTile",kNe,e=>f(PN,{...e,children:f(vd,{text:Zn.Edit})}),PN,qg,null,e=>f(oc,{offer:e.offer}),e=>f(zg,{offer:e.offer}),e=>f(dc,{...e}));function ONe(e){const t=Ii();return f(It,{to:e.url,skin:"standard",onClick:r=>{r.preventDefault(),Wi(ft.ProductClicked,t.page,{offer:e.offer,clickedElement:"Tile"}),AT(e.url)},children:e.children})}function ANe(e){return f(Bg,{offer:e.offer,onProductAddedToCart:e.onSuccess,onProductAddToCartError:e.onError,onProductAddToCartPermanentError:e.onPermanentError})}function $Ne(e){return f(yd,{offer:e.offer,skin:"standard",covering:!1})}const RNe=om("EditInStudioAddToCartOfferTile",ANe,$Ne,e=>f(ue,{children:e.children}),qg,null,e=>f(oc,{...e}),e=>f(zg,{...e}),e=>f(dc,{...e}));function CN(e){return e.usesPlaceholderCopy||e.hasQuantitySelectionPage&&Object.keys(e.productOptions).filter(t=>t==="Size").length>0}function NNe(e){return CN(e.offer)?f(yd,{offer:e.offer,skin:"primary",covering:!1,localizedText:Zn.CrossSellStudioCta}):f(Bg,{offer:e.offer,onProductAddedToCart:e.onSuccess,onProductAddToCartError:e.onError,onProductAddToCartPermanentError:e.onPermanentError})}function DNe(e){return CN(e.offer)?null:f(yd,{offer:e.offer,skin:"standard",covering:!1})}function LNe(e){return f(yd,{offer:e.offer,skin:"standard",covering:!1,children:e.children})}const UNe=om("EditUpdateInStudioAddToCartOfferTile",NNe,DNe,LNe,qg,null,e=>f(oc,{...e}),e=>f(zg,{...e}),e=>f(dc,{...e}));function IN(e){return f(yd,{offer:e.offer,skin:e.skin})}const FNe=c0("MustEditInStudioOfferTile",{Link:e=>f(IN,{...e,skin:"cta"}),Location:"bottom"},e=>f(oc,{...e}),e=>f(dc,{...e}));c0("MustEditInStudioButtonOfferTile",{Link:e=>f(IN,{...e,skin:"primary"}),Location:"bottom"},e=>f(oc,{...e}),e=>f(dc,{...e}));function BNe(e){return f(Bg,{offer:e.offer,onProductAddedToCart:e.onSuccess,onProductAddToCartError:e.onError,onProductAddToCartPermanentError:e.onPermanentError})}function qNe(e){const t=Lg();return f(Rke,{offer:e.offer,imageWidth:t.imageWidth})}const zNe=om("NonDesignableOfferTile",BNe,null,null,qg,qNe,e=>f(oc,{...e}),e=>f(zg,{...e}),e=>f(dc,{...e}));function VNe(e){if(!e.offer.configureUrl)throw new Error("Cannot build a StartDesigningOfferTile without a URL to configure the product");return f(jNe,{offer:e.offer,url:e.offer.configureUrl,skin:"unstyled",children:e.children})}function jNe(e){const t=Ii();return f(It,{to:e.url,skin:e.skin,width:"full-width",onClick:r=>{r.preventDefault(),Wi(ft.ProductClicked,t.page,{offer:e.offer,clickedElement:"Tile"}),AT(e.url)},covering:!0,children:e.children})}const HNe=c0("StartDesigningOfferTile",{Link:VNe,Location:"name"},e=>f(oc,{...e}),e=>f(dc,{...e})),GNe=e=>{const t=e.tileFactory.createTile(e.offer,e.offerGroup);if(!t)throw new Error(`cannot determine offer tile for offer: ${JSON.stringify(e.offer)}`);return t},xN=y.memo(GNe,(e,t)=>JSON.stringify(_N(e))===JSON.stringify(_N(t)));function _N(e){return[e.offer.trackingId,e.offer.quantity,e.offer.productOptions,e.offer.imageUrl]}class kN{createTile(t,r){if(t.offerType===cn.Image||t.offerType===cn.SmartAssets)return f(HNe,{offer:t});if(t.offerType===cn.NonDesignable)return f(zNe,{offer:t});if(t.offerType===cn.DocumentMatching){if(r.actions[t.offerType]===$n.EditInStudio)return f(FNe,{offer:t});if(r.actions[t.offerType]===$n.AddToCart||r.actions[t.offerType]===$n.EditInPage)return f(RNe,{offer:t});if(r.actions[t.offerType]===$n.EditUpdateInStudioAddToCart)return f(UNe,{offer:t})}}}class WNe{createTile(t,r){return t.offerType===cn.DocumentMatching&&Da.isProductEligible(t.mpvId)?f(MNe,{offer:t}):new kN().createTile(t,r)}}
468const MN=y.createContext(void 0),QNe=e=>{const t=Or(),r=()=>t==="xs"?e.displayConfiguration.extraSmallColumnCount:t==="sm"?e.displayConfiguration.smallColumnCount:e.displayConfiguration.columnCount;return f(MN.Provider,{value:r(),children:e.children})},ZNe=()=>{const e=xt(MN);if(e===void 0)throw new Error("ColumnCountContext must be used with ColumnCountContextProvider");return e};function ON(e){const t=Wn(),{offer:r,children:n,...i}=e;return f(dl,{fallback:f(ue,{}),onError:(a,o)=>{Kr("Error rendering tile for offer",{contextData:{tenant:t.tenant,locale:t.locale,offer:{mpvId:r.mpvId,productKey:r.productKey,productVersion:r.productVersion,productOptions:r.productOptions,isEditableInCrossSellStudio:r.isEditableInCrossSellStudio,documentUrl:r.documentUrl,offerGroupTrackingId:r.offerGroupTrackingId},info:o},error:a})},children:y.isValidElement(n)?y.cloneElement(n,{...i}):f(ue,{})})}function KNe(e){const t=Ii();return Ee(()=>{e.isVisible&&Wi(ft.ProductListViewed,t.page,{offerGroupTrackingId:e.offerGroup.trackingId,offers:e.offerGroup.offers,set:1})},[e.isVisible,t.page,e.offerGroup.trackingId]),f("div",{className:"recommendations-group-grid",children:f(vn,{children:f(Be,{as:"ul",children:e.offerGroup.offers.map(r=>f(ON,{offer:r,children:f(_e,{as:"li",span:u0(e.offerGroup.displayConfiguration.columnCount),spanSm:u0(e.offerGroup.displayConfiguration.smallColumnCount),spanXs:u0(e.offerGroup.displayConfiguration.extraSmallColumnCount),marginBottom:6,children:f(xN,{offer:r,offerGroup:e.offerGroup,tileFactory:e.tileFactory})})},r.trackingId))})})})}const YNe="adaptive-carousel-slide-navigation-internal.accessible-text-for-next-button",XNe="adaptive-carousel-slide-navigation-internal.accessible-text-for-previous-button",JNe="adaptive-carousel-slide-picker-internal.accessible-text-for-button";function eDe(e){const[t,r]=pe(0),n=ZNe(),i=Wn(),a=Ii();Ee(()=>{if(!e.isVisible)return;const l=()=>Math.ceil(t/n)+1,u=e.offerGroup.offers.slice(t,t+n);Wi(ft.ProductListViewed,a.page,{offerGroupTrackingId:e.offerGroup.trackingId,offers:u,set:l()})},[e.isVisible,a.page,n,t,e.offerGroup.trackingId]);const o=e.headingId?{"aria-labelledby":e.headingId}:{"aria-label":"recommendations"},s=e.offerGroup.displayConfiguration.title,c={};if(s){const l=Go(Zn.CarouselNextSlide,i.locale),u=Go(Zn.CarouselPreviousSlide,i.locale);c[YNe]=`${s}: ${l}`,c[XNe]=`${s}: ${u}`,c[JNe]=`${s}: {{slideNumber}}`}return f("div",{className:"recommendations-group-carousel",children:f(Qm,{locale:i.locale,translations:c,children:f(yl,{slidesToShow:n,...o,onSlideChange:l=>{r(l-1)},children:e.offerGroup.offers.map(l=>f(ON,{offer:l,children:f(yc,{children:f(xN,{offer:l,offerGroup:e.offerGroup,tileFactory:e.tileFactory})},l.trackingId)},l.trackingId))})})})}function tDe(e){const t=Ii();return Ee(()=>{e.isVisible&&e.offerGroup.offers.length===0&&Wi(ft.EmptyProductListViewed,t.page,{offerGroupTrackingId:e.offerGroup.trackingId,discardedOffers:e.discardedOffers})},[e.isVisible,t.page,e.offerGroup.trackingId]),f(ue,{})}function rDe(e){const[t,r]=pe(void 0),n=Or(),i=mE();function a(){return t?.offers.length===0&&t.offers.length!=e.offerGroup.offers.length}return Ee(()=>{i&&r({...e.offerGroup,offers:aDe(n,e.offerGroup)})},[JSON.stringify(e.offerGroup),n,i]),t?f(nDe,{offerGroup:t,tileFactory:e.tileFactory,discardedOffers:a()}):f(ue,{})}function nDe(e){const{isIntersecting:t,ref:r}=m$({freezeOnceVisible:!0,rootMargin:"-100px"}),n=e.offerGroup.displayConfiguration.title?crypto.randomUUID():void 0;if(e.offerGroup.offers.length===0)return f("div",{ref:r,children:f(tDe,{offerGroup:e.offerGroup,isVisible:t,discardedOffers:e.discardedOffers})});const i=e.offerGroup.displayConfiguration.layout===fT.Carousel;return f("div",{ref:r,children:X("div",{className:"recommendations-group",children:[f(iDe,{title:e.offerGroup.displayConfiguration.title,headingId:n}),i?f(eDe,{offerGroup:e.offerGroup,tileFactory:e.tileFactory,isVisible:t,headingId:n}):f(KNe,{offerGroup:e.offerGroup,tileFactory:e.tileFactory,isVisible:t})]})})}const u0=e=>12/e;function iDe(e){return Lg().showTitle&&e.title?f("div",{className:"recommendations-group-title",children:f(jd,{fontSkin:"title-section",mt:3,id:e.headingId,children:e.title})}):f(ue,{})}function aDe(e,t){return t.offers.length>=oDe(t,e)?t.offers:[]}function oDe(e,t){if(e.displayConfiguration.minOffersToDisplay)switch(t){case"xl":case"lg":case"md":return e.displayConfiguration.minOffersToDisplay.default;case"sm":return e.displayConfiguration.minOffersToDisplay.small;case"xs":return e.displayConfiguration.minOffersToDisplay.extraSmall}return 0}function d0(e){return f(vn,{children:f(Be,{children:f(_e,{span:12,children:e.recommendations.offersGroups.map(t=>f(QNe,{displayConfiguration:t.displayConfiguration,children:f(rDe,{offerGroup:t,tileFactory:e.tileFactory})},t.trackingId))})})})}var AN={};(function(e){e.getEuMembers=function(){return["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE"]},e.isEuMember=function(t){return e.getEuMembers().indexOf(t.toUpperCase())!=-1}})(AN);var sDe=function(){var e=(typeof window<"u"||void 0)&&window.location&&window.location.hostname;if(!e||e.length===0)throw new Error("Hostname could not be determined for the current document.");return e},cDe=function(e){if(!e||e.length===0)throw new Error("Domain must be specified");var t=e.split(".");if(t.length<2)throw new Error("Domain '"+e+"' does hot have the right format.");var r=t.pop();return r},p0="IE",$N=function(){try{var e=sDe(),t=cDe(e);switch(t.toLowerCase()){case"pt":return"PT";case"ie":return"IE";case"es":return"ES";case"in":return"IN";case"jp":return"JP";case"com":return"US";case"fr":return"FR";case"it":return"IT";case"uk":return"GB";case"de":return"DE";
468case"nl":return"NL";case"dk":return"DK";case"se":return"SE";case"at":return"AT";case"no":return"NO";case"fi":return"FI";case"be":return"BE";case"sg":return"SG";case"nz":return"NZ";case"au":return"AU";case"ca":return"CA";case"ch":return"CH";default:return p0}}catch(r){return console.warn(r.message,"Fallback country: "+p0),p0}},uo;(function(e){e[e.None=0]="None",e[e.GDPR=1]="GDPR",e[e.CCPA=2]="CCPA"})(uo||(uo={}));var lDe={functional:!0,advertising:!1,sessionReplay:!1,dataSale:!0},RN={functional:!0,advertising:!0,sessionReplay:!0,dataSale:!0},uDe={ie:{functional:!1},pt:{functional:!1},no:{functional:!1}},sm=function(){return sm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},sm.apply(this,arguments)};function dDe(e){return e?(e=e.toLowerCase(),AN.isEuMember(e)||e==="ch"||e==="no"||e==="gb"):!1}function pDe(){var e;try{e=$N()}catch{return uo.GDPR}return e?(e=e.toLowerCase(),e==="us"?uo.CCPA:dDe(e)?uo.GDPR:uo.None):uo.None}function fDe(){var e=nS.get("tracking-preferences");return e?JSON.parse(e):{}}function NN(e){var t,r;return e.version===4?(r=(t=e.custom)===null||t===void 0?void 0:t.datasale)!==null&&r!==void 0?r:!0:!(e.destinations&&e.destinations.All===!0&&e.destinations["Facebook Pixel"]===!1)}function gDe(e,t){t===void 0&&(t=uDe);var r;try{r=$N()}catch{return e}if(t&&Object.keys(t).includes(r)){var n=Object(e);return Object.keys(t[r]).forEach(function(i){n[i]=Object(t[r])[i]}),n}return e}function mDe(){var e=pDe(),t=fDe();if(e===uo.None)return{hasConsent:!1,categories:RN};if(e===uo.CCPA)return{hasConsent:!1,categories:sm(sm({},RN),{dataSale:NN(t)})};if(t.custom){var r=t.custom,n=r.functional,i=r.advertising,a=r.sessionreplay,o={hasConsent:t.consent!==!1,categories:{functional:n??!0,advertising:i??!1,sessionReplay:a??!1,dataSale:NN(t)}};return o}return{hasConsent:!1,categories:gDe(lDe)}}var DN;(function(e){e.none="none",e.lastModified="lastModified",e.lastOrdered="lastOrdered",e.mostFrequentlyOrdered="mostFrequentlyOrdered",e.highestRevenue="highestRevenue",e.fromCart="fromCart",e.externalAsset="externalAsset",e.externalLogo="externalLogo",e.brandId="brandId",e.brandKitLastModified="brandKitLastModified",e.brandKitPrimary="brandKitPrimary",e.externallyConfigured="externallyConfigured"})(DN||(DN={}));class hDe{async fetchProductRecommendations(t){const r=PDe(),n=CDe(r),i=IDe(r),a=Intl.DateTimeFormat().resolvedOptions().timeZone,o=await cEe({pageContext:{locale:t.locale,tenant:t.tenant,page:t.page},customerContext:{customerId:t.customerId,userTestId:n,customerConsent:i||!1},authorizationHeader:t.authorizationHeader,timeZone:a,correlationId:r,requestor:"recommendations-stack",product:t.product,contentSources:t.contentSources,encodedPricingContext:t.pricingContext,marketingMessageOverrides:t.marketingMessageOverrides,polyCategory:t.polyCategory,options:{cacheOptions:t.options?.cache,imageWith:t.options?.imageWidth}});return{recommendations:LN(o),recommendationsResponse:o}}}function LN(e){const t={offersGroups:[],disabled:e.disabled||!1};return e.offersGroups&&e.offersGroups.forEach(r=>{try{vDe(r),t.offersGroups.push({trackingId:r.trackingId,displayConfiguration:r.displayConfiguration,actions:bDe(r),fields:wDe(r),offers:EDe(r.offers,r.offerTypes,r.trackingId)})}catch(n){Kr("Error processing offer group",{contextData:{offerGroup:r},error:n})}}),t}function vDe(e){if(e.offerTypes.some(t=>t.actions.includes(Pn.GoToProductPage))&&e.offerTypes.some(t=>t.actions.includes(Pn.GoToGallery)))throw new Error("invalid actions: GoToProductPage and GoToGallery are mutually exclusive")}function yDe(e,t){if(t.some(r=>r.actions.includes(Pn.GoToProductPage))||t.some(r=>r.actions.includes(Pn.EditInMiniStudio)||r.actions.includes(Pn.EditInStudio)))return e.productUrl;if(t.some(r=>r.actions.includes(Pn.GoToGallery)))return e.galleryUrl||e.productUrl}function bDe(e){const t={DocumentMatching:void 0,Image:void 0,NonDesignable:void 0,SmartAssets:void 0};return e.offerTypes.some(r=>r.actions.includes(Pn.AddToCart))?e.offerTypes.some(r=>r.actions.includes(Pn.EditInMiniStudio)||r.actions.includes(Pn.EditInStudio)
468)?t[cn.DocumentMatching]=$n.EditUpdateInStudioAddToCart:t[cn.DocumentMatching]=$n.AddToCart:e.offerTypes.some(r=>r.actions.includes(Pn.EditInMiniStudio)||r.actions.includes(Pn.EditInStudio))&&(t[cn.DocumentMatching]=$n.EditInStudio),e.offerTypes.some(r=>r.actions.includes(Pn.GoToGallery))?(t[cn.Image]=$n.GoToGallery,t[cn.SmartAssets]=$n.GoToGallery):e.offerTypes.some(r=>r.actions.includes(Pn.GoToProductPage))&&(t[cn.Image]=$n.GoToProductPage,t[cn.SmartAssets]=$n.GoToProductPage),e.offerTypes.some(r=>r.actions.includes(Pn.AddToCart))?t[cn.NonDesignable]=$n.AddToCart:t[cn.NonDesignable]=$n.GoToProductPage,t}function wDe(e){const t={DocumentMatching:void 0,Image:void 0,NonDesignable:void 0,SmartAssets:void 0};return e.offerTypes.forEach(r=>{t[r.id]=r.fields}),t}function TDe(e){return{currency:e.currency,fractionDigits:e.fractionDigits,availablePrices:e.availableQuantities.some(t=>t.quantity===e.default.quantity)?e.availableQuantities:[e.default]}}function EDe(e,t,r){return e.filter(n=>{try{return SDe(n,t),!0}catch(i){return Kr("Error validating offer",{contextData:{offer:n},error:i}),!1}}).map(n=>({title:n.title,description:n.description,offerType:n.offerType,imageUrl:n.imageUrl,mpvId:n.productId,productKey:n.coreProductId,productVersion:n.coreProductVersion,productOptions:n.selectedAttributes,selectableOptions:n.selectableOptions,localizedOptions:n.localizedOptions,quantity:n.merchandisingQuantity?.default.quantity||1,prices:n.merchandisingQuantity&&TDe(n.merchandisingQuantity),categories:n.categories?.map(a=>new LEe(a.key)),hasQuantitySelectionPage:n.hasQuantitySelectionPage,configureUrl:yDe(n,t),documentUrl:n.documentRealizationUrl,sourceDocumentUrl:n.sourceDocumentUrl,studioUrl:n.studioUrl,trackingId:n.trackingId,offerGroupTrackingId:r,isAccessory:!1,usesPlaceholderCopy:n.usesPlaceholderCopy}))}function SDe(e,t){if(xDe(e,t)&&(!e.merchandisingQuantity?.default.quantity||e.merchandisingQuantity.default.quantity<=0))throw new Error("Invalid quantity");if(e.offerType===cn.DocumentMatching&&!e.documentRealizationUrl)throw new Error("Document matching offer missing document realization url")}function PDe(){return crypto.randomUUID()}function CDe(e){try{return LE()}catch(t){return Kr("There was an error getting user test id",{contextData:{correlationId:e},error:t}),""}}function IDe(e){try{return mDe().categories.functional}catch(t){return Kr("There was an error getting user consent preferences",{contextData:{correlationId:e},error:t}),!1}}function xDe(e,t){return!!t.find(r=>r.id===e.offerType)?.fields.find(r=>r===uT.Price)}function _De(e){const[t,r]=pe(!1),[n,i]=pe(!1),a=Et(()=>{!t&&e.experimentInfo&&(E$(e.experimentInfo.experiment.key,e.experimentInfo.variation.key),r(!0))},[JSON.stringify(e.experimentInfo),t]);return Ee(()=>{const o=Hi(e.page,ft.ProductListViewed,a),s=Hi(e.page,ft.DisabledRecommendations,a),c=Hi(e.page,ft.EmptyProductListViewed,a);return i(!0),()=>{Gi(ft.ProductListViewed,o),Gi(ft.DisabledRecommendations,s),Gi(ft.EmptyProductListViewed,c)}},[a,e.page]),n?e.children:f(ue,{})}class kDe{trackingEmitter;pageTrackingDetails;constructor(t,r){this.trackingEmitter=t,this.pageTrackingDetails=r}trackRecommendationsErrorOccurred(t,r,n){jo(()=>{const i=MDe(this.pageTrackingDetails,t,r,n);this.trackingEmitter.emitEvent(rc.RecommendationsErrorOccurred,i)})}}const MDe=(e,t,r,n)=>({pageStage:e.pageStage,pageSection:e.pageSection,pageName:e.pageName,label:"Recommendation Component",list_id:"Recommendation Component",route:"recommendations",tenant:t,correlationId:Ng(r)?.correlationId,selector:Ng(r)?.selector,error:r.message,screenClass:n,recommendationsMetadata:nc(void 0)});class ODe{recommendationsResponse;defaultRecommendations;pageTrackingDetails;fetchError;marketingMessageTrackingDetails;constructor(t,r,n,i,a){this.recommendationsResponse=t,this.fetchError=a,this.defaultRecommendations=r,this.pageTrackingDetails=n,this.marketingMessageTrackingDetails=i}buildProductListViewedTrackingEvent(t,r,n,i,a,o,s){const c=this.findOfferGroup(r).displayConfiguration;return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:"Recommendation Component",list_id:Ug(this.recommendationsResponse.trackingKey),route:"recommendations",is_default:this.defaultRecommendations,error:this.fetchError?.message,tenant:t,products:this.getProductList(r,n,a),display_configuration:{...c,minOffersToDisplay:c.minOffersToDisplay||void 0}
468,...this.buildOfferGroupDetails(r),...this.buildPlacementDetails(),...this.buildExperimentDetails(),...this.buildMarketingMessageTrackingDetails(),screenClass:i,discardReason:o?"MinOffersToDisplay":void 0,recommendationsMetadata:nc(s)}}buildEmptyProductListViewedTrackingEvent(t,r,n,i,a){const o=this.findOfferGroup(r).displayConfiguration;return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:"Recommendation Component",list_id:Ug(this.recommendationsResponse.trackingKey),route:"recommendations",is_default:this.defaultRecommendations,error:this.fetchError?.message,tenant:t,products:[],display_configuration:{...o,minOffersToDisplay:o.minOffersToDisplay||void 0},...this.buildOfferGroupDetails(r),...this.buildPlacementDetails(),...this.buildExperimentDetails(),...this.buildMarketingMessageTrackingDetails(),screenClass:n,discardReason:i?"MinOffersToDisplay":void 0,recommendationsMetadata:nc(a)}}buildProductAddedTrackingEvent(t,r,n,i){const a=this.findOffer(r.trackingId,r.offerGroupTrackingId);return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:this.getLabel(i),list_id:Ug(this.recommendationsResponse.trackingKey),route:"recommendations",...i&&{category:"Enhanced Ecommerce"},tenant:t,product_id:r.mpvId,name:r.title,core_product_id:r.productKey,core_product_version:r.productVersion,variant:hT(r.productOptions),offersGroups:this.offerGroupImpressions(),offers_group_tracking_id:r.offerGroupTrackingId,eventDetail:`${a.rank}_${r.mpvId}`,...this.buildPlacementDetails(),...this.buildExperimentDetails(),...this.adaptOfferDetails(r),..._$(r,n,a.sceneId),...k$(r),...this.buildMarketingMessageTrackingDetails(),recommendationsMetadata:nc(i)}}buildProductClickedTrackingEvent(t,r,n,i){const a=this.findOfferGroup(r.offerGroupTrackingId),o=this.findOffer(r.trackingId,r.offerGroupTrackingId);return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:this.getLabelFor(n),route:"recommendations",list_id:Ug(this.recommendationsResponse.trackingKey),list_section_id:this.computeListSectionId(a.offerTypes,a.rank),tenant:t,product_id:r.mpvId,name:r.title,core_product_id:r.productKey,core_product_version:r.productVersion,variant:hT(r.productOptions),offersGroups:this.offerGroupImpressions(),offers_group_tracking_id:r.offerGroupTrackingId,eventDetail:`${o.rank}_${r.mpvId}`,...this.buildPlacementDetails(),...this.buildExperimentDetails(),...this.adaptOfferDetails(r),..._$(r,void 0,o.sceneId),...k$(r),...this.buildMarketingMessageTrackingDetails(),recommendationsMetadata:nc(i)}}buildAddToCartInteractionTimeTrackingEvent(t){return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,eventName:"tile add to basket",timing:t}}buildFlyoutViewedTrackingEvent(t,r){return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:"Recommendations Reviews Viewed",product_id:t.mpvId,core_product_id:t.productKey,recommendationsMetadata:nc(r)}}buildFlyoutClosedTrackingEvent(t,r){return{pageStage:this.pageTrackingDetails.pageStage,pageSection:this.pageTrackingDetails.pageSection,pageName:this.pageTrackingDetails.pageName,label:"Recommendations Reviews Viewed",product_id:t.mpvId,core_product_id:t.productKey,recommendationsMetadata:nc(r)}}getProductList(t,r,n){return r.map((i,a)=>{const o=this.findOffer(i.trackingId,t);return{product_id:i.mpvId,name:i.title,core_product_id:i.productKey,core_product_version:i.productVersion,variant:hT(i.productOptions),position:a+1,offer_type:i.offerType,offer_tracking_id:o.trackingId,model_rank:o.modelRank,model_score:o.modelScore,matching_score:o.matchingScore,doc_id:i.sourceDocumentUrl,scene_id:o.sceneId,list_section_id:`set_${n}`}})}offerGroupImpressions(){return this.recommendationsResponse.offersGroups.map(t=>{const r=this.findOfferGroup(t.trackingId);return{tracking_id:r.trackingId,rank:r.rank,impressions:t.offers.map(i=>i.productId)}})}buildPlacementDetails(){return{placement_id:this.recommendationsResponse.id,placement_version:this.recommendationsResponse.version,placement_tracking_id:this.recommendationsResponse.trackingId,selector:this.recommendationsResponse.selector,model_id:this.recommendationsResponse.model?.id,model_version:this.recommendationsResponse.model?.version,correlationId:this.recommendationsResponse.correlationId}}
468buildOfferGroupDetails(t){const r=this.findOfferGroup(t);return{offers_group_tracking_id:r.trackingId,rank:r.rank,offer_type:this.computeOfferTypes(r.offerTypes),product_type:r.itemType}}computeListSectionId(t,r){return`${this.computeOfferTypes(t)}-${r}`}computeOfferTypes=t=>t.map(r=>r.id).join("-");findOfferGroup(t){const r=this.recommendationsResponse.offersGroups.find(n=>n.trackingId===t);if(!r)throw new Error(`cannot find offer group with tracking ID ${t} in POE's response. POE tracking id is ${this.recommendationsResponse.trackingId}.`);return r}findOffer(t,r){const i=this.findOfferGroup(r).offers.find(a=>a.trackingId===t);if(!i)throw new Error(`cannot find offer with tracking ID ${t} in POE's response. POE tracking id is ${this.recommendationsResponse.trackingId}.`);return i}buildExperimentDetails(){return{experiment_key:this.recommendationsResponse.experimentInfo?.experiment.key,experiment_variation_key:this.recommendationsResponse.experimentInfo?.variation.key}}buildMarketingMessageTrackingDetails(){return this.marketingMessageTrackingDetails?.marketingMessageId?{marketingMessageId:this.marketingMessageTrackingDetails?.marketingMessageId,contentfulId:this.marketingMessageTrackingDetails?.contentfulId}:{}}adaptOfferDetails(t){const r=this.findOffer(t.trackingId,t.offerGroupTrackingId);return{offer_tracking_id:r.trackingId,model_rank:r.modelRank,model_score:r.modelScore,matching_score:r.matchingScore,offer_type:t.offerType}}getLabel(t){return t?`Product Added:${t}`:"Recommendations page"}getLabelFor(t){return`Recommendations Product ${t} Clicked`}}function UN(e){if(e)return{currency:e.currency,availablePrices:e.availablePrices.map(t=>({quantity:t.quantity,listPrice:t.listPrice.untaxed,discountedPrice:t.discountedPrice.untaxed}))}}class ADe{trackingEmitter;eventBuilder;adaptedResponse;urlId;page;marketingMessage;constructor(t,r,n,i,a,o,s,c){this.trackingEmitter=t,this.eventBuilder=new ODe(r,n,i,s,c),this.adaptedResponse=$E().adaptResponse(r),this.urlId=a,this.page=o,this.marketingMessage=s}trackProductListViewed(t,r,n,i,a,o,s){jo(()=>{const c=this.adaptedResponse.placement.offersGroups.findIndex(d=>d.trackingId===r),l=new Set(n.map(d=>d.trackingId)),u=this.adaptedResponse.products.map((d,p)=>l.has(d.trackingId)?p:-1).filter(d=>d!==-1);Ll({adaptedResponse:this.adaptedResponse,offerGroupIndex:c!==-1?c:0,visibleProductIndices:u,tenant:t,screenClass:i,set:a,discardedOffers:o,origin:s,urlId:this.urlId,recommendationsPlacement:this.page,marketingMessage:this.marketingMessage})})}trackEmptyProductListViewed(t,r,n,i,a){jo(()=>{const o=this.eventBuilder.buildEmptyProductListViewedTrackingEvent(t,r,n,i,a);this.trackingEmitter.emitEvent(rc.EmptyProductListViewed,o)})}trackAddToCart(t,r,n,i){jo(()=>{const a=this.adaptedResponse.products.find(o=>o.trackingId===r.trackingId);a?RE({adaptedResponse:this.adaptedResponse,tenant:t,product:a,workId:n,origin:i,urlId:this.urlId,recommendationsPlacement:this.page,prices:UN(r.prices),marketingMessage:this.marketingMessage}):$a("Cannot find product in adapted response for offer tracking",{contextData:{offerTrackingId:r.trackingId}})})}trackProductClicked(t,r,n,i){jo(()=>{const a=this.adaptedResponse.products.find(o=>o.trackingId===r.trackingId);a?Kd({adaptedResponse:this.adaptedResponse,tenant:t,product:a,clickedElement:n,origin:i,urlId:this.urlId,recommendationsPlacement:this.page,prices:UN(r.prices),marketingMessage:this.marketingMessage}):$a("Cannot find product in adapted response for offer tracking",{contextData:{offerTrackingId:r.trackingId}})})}trackAddToCartInteractionTimed(t){jo(()=>{const r=this.eventBuilder.buildAddToCartInteractionTimeTrackingEvent(t);this.trackingEmitter.emitEvent(rc.InteractionTimed,r)})}trackFlyoutViewed(t,r){jo(()=>{const n=this.eventBuilder.buildFlyoutViewedTrackingEvent(t,r);this.trackingEmitter.emitEvent(rc.FlyoutViewed,n)})}trackFlyoutClosed(t,r){jo(()=>{const n=this.eventBuilder.buildFlyoutClosedTrackingEvent(t,r);this.trackingEmitter.emitEvent(rc.FlyoutClosed,n)})}}function $De(e,t,r){return function(n){e.trackProductListViewed(t,n.offerGroupTrackingId,n.offers,r,n.set,n.discardedOffers)}}function RDe(e,t,r){return function(n){e.trackEmptyProductListViewed(t,n.offerGroupTrackingId,r,n.discardedOffers)}}function NDe(e,t){return function(r){e.trackAddToCart(t,r.offer,r.workId,r.origin),r.duration!==void 0&&e.trackAddToCartInteractionTimed(r.duration),ec.addPageAction(ft.ProductAddedToCard,{productKey:r.offer.productKey,productVersion:r.offer.productVersion,productOptions:r.offer.productOptions,quantity:r.offer.quantity,mpvId:r.offer.mpvId,workId:r.workId,origin:r.origin,duration:r.duration})}}function DDe(e,t){return function(r){e.trackProductClicked(t,r.offer,r.clickedElement,r.origin)}}function LDe(e){return function(t){e.trackFlyoutViewed(t.offer,t.origin)}}function UDe(e){return function(t){e.trackFlyoutClosed(t.offer,t.origin)}}function FN(e){const[t,r]=pe(),n=yT();return Ee(()=>{const i=new ADe(new x$,e.recommendationsResponse,e.defaultRecommendations||!1,n,e.urlId,e.page,e.marketingMessageTrackingDetails,e.fetchError),a=Hi(e.page,ft.ProductListViewed,$De(i,e.tenant,e.screenClass)),o=Hi(e.page,ft.EmptyProductListViewed,RDe(i,e.tenant,e.screenClass)),s=Hi(e.page,ft.ProductAddedToCard,NDe(i,e.tenant)),c=Hi(e.page,ft.ProductClicked,DDe(i,e.tenant)),l=Hi(e.page,ft.FlyoutViewed,LDe(i)),u=Hi(e.page,ft.FlyoutClosed,UDe(i));return r(i),()=>{Gi(ft.ProductListViewed,a),Gi(ft.EmptyProductListViewed,o),Gi(ft.ProductAddedToCard,s),Gi(ft.ProductClicked,c),Gi(ft.FlyoutViewed,l),Gi(ft.FlyoutClosed,u)}},[e.tenant,JSON.stringify(e.recommendationsResponse),e.defaultRecommendations,e.fetchError?.toString(),e.screenClass,JSON.stringify(n)]),t?e.children:f(ue,{})}function FDe(e,t){return function(r){const i=r.contextData.tenant,a=r.error;e.trackRecommendationsErrorOccurred(i,a,t),Kr(r.errorMessage,{contextData:r.contextData,error:r.error})}}function BDe(e){const[t,r]=pe(),n=yT();return Ee(()=>{const i=new kDe(new x$,n),a=Hi(e.page,ft.ErrorFetchingProductRecommendations,FDe(i,e.screenClass));return r(i),()=>{Gi(ft.ErrorFetchingProductRecommendations,a)}},[e.page,e.screenClass,JSON.stringify(n)]),t?e.children:f(ue,{})}function qDe(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var zDe=`@keyframes slideAndFadeIn { 469 50% { 470 opacity: 0; 471 max-height: max-content; 472 } 473 100% { 474 opacity: 1; 475 max-height: max-content; 476 } 477} 478 479@keyframes fadeIn {
480 100% { 481 opacity: 1; 482 } 483} 484 485.fadeIn { 486 opacity: 0; 487 animation: fadeIn 1s forwards; 488} 489 490.slideAndFadeIn { 491 opacity: 0; 492 max-height: 0px; 493 animation: slideAndFadeIn 1.5s forwards; 494} 495`;qDe(zDe);function BN(e){const{isIntersecting:t,ref:r}=m$({freezeOnceVisible:!0}),[n,i]=pe();function a(o,s,c){i(l=>{if(l)return{...l,offersGroups:l.offersGroups.map(u=>u.trackingId===o?{...u,offers:u.offers.map(d=>d.trackingId===s?c(d):d)}:u)}})}return Ee(()=>{const o=Hi(e.page,ft.QuantityChanged,s=>{a(s.offerGroupTrackingId,s.offerTrackingId,c=>({...c,quantity:s.quantity}))});return()=>{Gi(ft.QuantityChanged,o)}},[e.page]),Ee(()=>{t&&e.recommendations.disabled&&Wi(ft.DisabledRecommendations,e.page,{})},[e.page,e.recommendations.disabled,t]),Ee(()=>{async function o(){if(e.recommendations.disabled){e.errorCallback&&e.errorCallback("Recommendations are disabled");return}const s=e.offerAdaptor?await e.offerAdaptor.adaptOffers(e.recommendations,e.locale):e.recommendations;i(s),UEe(s)>0?e.successCallback&&e.successCallback():e.errorCallback&&e.errorCallback("No offers could be retrieved")}o()},[JSON.stringify(e.recommendations),JSON.stringify(e.recommendationsResponse)]),n?f("div",{className:e.options?.noSpinner?"slideAndFadeIn":"fadeIn",children:f(lSe,{tenant:e.tenant,locale:e.locale,page:e.page,mpvId:e.product?.mpvId,imageWidth:e.options?.imageWidth,parentWorkId:e.parentWorkId,recommendations:n,children:e.render({recommendations:n,tileFactory:e.tileFactory})})}):f("div",{ref:r})}function VDe(e){const[t,r]=pe(!1),n=Or();return Ee(()=>{const i=jDe(e.error,e.fallbackData);i?(Wi(ft.ErrorFetchingProductRecommendations,e.page,{errorMessage:i,error:e.error,contextData:qN(e)}),e.errorCallback&&e.errorCallback(i)):(Kr("POE call failed; using fallback data",{error:e.error,contextData:qN(e)}),r(!0))},[e.error]),e.fallbackData&&t?f(FN,{tenant:e.tenant,page:e.page,urlId:e.urlId,recommendationsResponse:e.fallbackData,defaultRecommendations:!0,fetchError:e.error,screenClass:n,children:f(BN,{...e,recommendations:LN(e.fallbackData),recommendationsResponse:e.fallbackData})}):f(ue,{})}function jDe(e,t){const r=Ng(e);return r?.status===400?`POE returned 400: ${r.message}`:r?.status===404?"POE returned 404":!t||t.offersGroups.length===0?"POE call failed; no fallback data available":null}const qN=e=>({tenant:e.tenant,locale:e.locale,page:e.page,customerId:e.customerId,mpvId:e.product?.mpvId,...lT(e.error)&&HDe(e.error)}),HDe=e=>({errorData:{selector:e.selector,correlationId:e.correlationId,status:e.status}});function GDe(e){return{tenant:e.tenant,locale:e.locale,page:e.page,customerId:e.customerId,product:e.product,contentSources:e.contentSources,pricingContext:e.pricingContext,options:e.options,authorizationHeader:e.authorizationHeader,marketingMessageOverrides:e.marketingMessageOverrides,polyCategory:e.polyCategory}}function WDe(e){const t=bT(),r=Or(),n=GDe({...e,customerId:t.customerId,pricingContext:void 0,authorizationHeader:t.authorizationHeader}),{data:i,error:a,isLoading:o}=yR(n,s=>e.fetcher.fetchProductRecommendations(s),{errorRetryCount:2,shouldRetryOnError:s=>s instanceof TypeError||s.status>=500});return o?f(QDe,{locale:e.locale,noSpinner:e.options?.noSpinner,useSkeleton:e.options?.useSkeleton}):a?f(BDe,{page:e.page,screenClass:r,children:f(VDe,{...e,error:a})}):i&&i.recommendationsResponse&&i.recommendations?f(FN,{tenant:e.tenant,page:e.page,urlId:e.urlId,recommendationsResponse:i.recommendationsResponse,screenClass:r,marketingMessageTrackingDetails:{marketingMessageId:e.marketingMessageOverrides?.marketingMessageId,contentfulId:e.marketingMessageOverrides?.contentfulId,decisionMaker:e.marketingMessageOverrides?.decisionMaker},children:f(_De,{page:e.page,experimentInfo:i.recommendationsResponse.experimentInfo,children:f(BN,{...e,...i})})}):(console.warn("no data available"),f(ue,{}))}function QDe(e){return e.noSpinner?f(ue,{}):e.useSkeleton?f(ZDe,{}):f(Fa,{accessibleText:Go(Zn.Loading,e.locale),marginX:"auto"})}function ZDe(){return X("div",{className:"recommendations-group-title",children:[f(jd,{fontSkin:"title-section",mt:3,children:f(ts,{children:f(Zm,{})})}),f(vn,{children:f(Be,{as:"ul",children:[...Array(6)].map((n,i)=>f(_e,{as:"li",span:12/6,spanSm:12/3,spanXs:12/1,marginBottom:6,children:X(mo,{children:[f(ho,{children:f(Im,{ratio:1,loadingShimmer:!0})}),X(rs,{children:[f(ns,{children:f(ts,{children:f(Zm,{})})}),f(bc,{children:f(ts,{children:f(Al,{})})})]}),f(Wm,{children:f(ts,{children:f(Al,{})})})]})},i))})})]})}function KDe(e){if(!e.tenant||!e.locale||!e.page)throw new Error("Recommendations require a tenant, locale and page.")}function YDe(e){if(KDe(e),!e.product.mpvId)throw new Error("Recommendations for a product requires an MPV id.");if(e.product.coreProduct&&!e.product.coreProduct.key)throw new Error("Recommendations for a product requires a valid produt key if defined.");return f(XDe,{...e,fetcher:new hDe})}function XDe(e){return f(Sm,{children:f(oSe,{pageName:e.pageTracking?.pageName,pageSection:e.pageTracking?.pageSection,pageStage:e.pageTracking?.pageStage,children:f(dSe,{customerId:e.customerId,children:f(WDe,{...e})})})})}const zN={createTile(e,t){return new kN().createTile(e,t)}};function JDe(e){return function(r){const{locale:n,page:i}=r,{Experience:a}=WEe(Da.experiment.key);return Da.isLocaleEligible(n)&&Da.isPageEligible(i)?X(ue,{children:[f(a,{variation:Da.experiment.variations.control,default:!0,children:f(e,{...r,render:
495o=>f(d0,{...o}),tileFactory:zN})}),f(a,{variation:Da.experiment.variations.test,children:f(e,{...r,render:o=>f(d0,{...o}),tileFactory:new WNe})})]}):f(e,{...r,render:o=>f(d0,{...o}),tileFactory:zN})}}function eLe(e){return function(r){return f(HEe,{children:f(e,{...r})})}}const tLe=eLe(JDe(YDe)),cm={"EU-*":{standingbanners:{mainMpv:"retractableBanners",alternativeMpv:"advertisingFlags"},hangingBanners:{mainMpv:"euVinylBanners",alternativeMpv:"portableExhibitionCounters"},wallfloorwindowDecals:{mainMpv:"windowDecals",alternativeMpv:"windowDecals"},carDecalsSigns:{mainMpv:"carDoorMagnets",alternativeMpv:"carDoorMagnets"},exhibitionCounters:{mainMpv:"portableExhibitionCounters",alternativeMpv:"euVinylBanners"},tabledisplayandMenu:{mainMpv:"tabletopSigns",alternativeMpv:"counterDisplays"},tableclothsCovering:{mainMpv:"tablecloths",alternativeMpv:"counterDisplays"},outdoorDisplay:{mainMpv:"printedGazeboTents",alternativeMpv:"printedGazeboTents"},pointofsalesdisplays:{mainMpv:"fourSidedFloorDisplays",alternativeMpv:"posters"},pavementSigns:{mainMpv:"aFrames",alternativeMpv:"aFrames"},tentsDisplays:{mainMpv:"popUps",alternativeMpv:"popUps"},rigidsigns:{mainMpv:"lawnSigns",alternativeMpv:"fourSidedFloorDisplays"},postersEu:{mainMpv:"posters",alternativeMpv:"posters"},signsAccessories:{mainMpv:"easels",alternativeMpv:"lawnSigns"},shippingboxesEnvelopes:{mainMpv:"mailerBoxes",alternativeMpv:"promotionalBoxesEu"},mailingLabelss:{mainMpv:"envelopeSeals",alternativeMpv:"returnAddressLabels"},stampsAndInk:{mainMpv:"selfInkingStamps",alternativeMpv:"coloredEnvelopes"},paperBags:{mainMpv:"paperBag",alternativeMpv:"promotionalBoxesEu"},tags:{mainMpv:"hangTags",alternativeMpv:"paperTogobags"},cardboardBoxes:{mainMpv:"promotionalBoxesEu",alternativeMpv:"plainShippingBoxes"},doypacks:{mainMpv:"flexiblePackagingDoypacks",alternativeMpv:"paperBag"},corrugatedCardboardBoxes:{mainMpv:"mailerBoxes",alternativeMpv:"promotionalBoxesEu"},foldingCartonBoxes:{mainMpv:"promotionalBoxesEu",alternativeMpv:"shippingBoxes"},packagingaccessories:{mainMpv:"newpackagingtape",alternativeMpv:"newpackagingtape"},basicPapersBusinessCards:{mainMpv:"matteBusinessCards",alternativeMpv:"metalBusinessCardHolder"},shapesBusinessCards:{mainMpv:"standardBusinessCards",alternativeMpv:"metalBusinessCardHolder"},naturalPapersBusinessCards:{mainMpv:"recycledMatteBusinessCards",alternativeMpv:"metalBusinessCardHolder"},uniqueTexturesBusinessCards:{mainMpv:"softTouchBusinessCards",alternativeMpv:"metalBusinessCardHolder"},premiumFinisheBusinessCards:{mainMpv:"spotUVBusinessCards",alternativeMpv:"metalBusinessCardHolder"},useCasesBusinessCards:{mainMpv:"loyaltyCards",alternativeMpv:"loyaltyCards"},premiumBusinessCards:{mainMpv:"softTouchBusinessCards",alternativeMpv:"metalBusinessCardHolder"},businessCardHolders:{mainMpv:"standardBusinessCards",alternativeMpv:"standardBusinessCards"},notebooksjournals:{mainMpv:"journals",alternativeMpv:"journals"},notepadsInvoicePadsStickies:{mainMpv:"notepads",alternativeMpv:"customEnvelopes"},envelopesandLetterheads:{mainMpv:"businessEnvelopes",alternativeMpv:"presentationFolders"},notecardsInvitations:{mainMpv:"noteCards",alternativeMpv:"postcards"},flyersandFoldedLeaflets:{mainMpv:"flyersandLeaflets",alternativeMpv:"flyersandLeaflets"},personalizedPostcards:{mainMpv:"postcards",alternativeMpv:"postcards"},bookletsandCatalogs:{mainMpv:"stapledBooklets",alternativeMpv:"stapledBooklets"},folders:{mainMpv:"presentationFolders",alternativeMpv:"presentationFolders"},menusPrinting:{mainMpv:"menus",alternativeMpv:"menus"},flyersPostacardsAndHandouts:{mainMpv:"flyersandLeaflets",alternativeMpv:"posters"},ticketsAndLoyaltyCards:{mainMpv:"customTickets",alternativeMpv:"customTickets"},magnets:{mainMpv:"magneticPostcards",alternativeMpv:"postcards"},leafletDispensers:{mainMpv:"foldedLeaflets",alternativeMpv:"foldedLeaflets"},customstickerSingles:{mainMpv:"stickerSingles",alternativeMpv:"customStickers"},sheetstickers:{mainMpv:"customStickers",alternativeMpv:"stickerSingles"},labelsAndTags:{mainMpv:"rollLabels",alternativeMpv:"stickerSingles"},sheetLabels:{mainMpv:"productLabels",alternativeMpv:"stickerSingles"},fabricDisplays:{mainMpv:"tripleSidedFloorDisplay",alternativeMpv:"tripleSidedFloorDisplay"},promotionalFurniture:{mainMpv:"horecaUmbrellas",alternativeMpv:"printedGazeboTents"}}},rLe={"related products":"category-page","frequently ordered":"category-page-2"},nLe=(e,t)=>{const r=UA(t),n=Vo(t),i=`${r.toUpperCase()}-*`,a=cm[n]||cm[i];return a?e in a:!1}
495,iLe=({merchandisingCategoryId:e,locale:t,type:r})=>{const i=`${UA(t).toUpperCase()}-*`,a=(cm[Vo(t)]||cm[i])?.[e];return r==="frequently ordered"?a?.mainMpv||null:r==="related products"&&a?.alternativeMpv||null},aLe=e=>rLe[e]||null,oLe=({type:e})=>{const{locale:t,tenant:r,debugMode:n,isPricingContextInitialized:i,auth:a,merchandisingCategoryId:o}=et(),s=iLe({merchandisingCategoryId:o,locale:t,type:e}),c=aLe(e);return i&&a&&s&&c?X(jw,{debug:n,children:[f(tLe,{page:c,tenant:r,locale:t,urlId:o,product:{mpvId:s}}),f(xr,{rawSectionData:{recommendationsPageType:c,tenant:r,locale:t,recommendationMpvId:s},resolvedSectionData:{recommendationsPageType:c,tenant:r,locale:t,recommendationMpvId:s}})]}):null},sLe="";var cLe="@media(min-width:768px){.primary-content-test-width-modifier{width:12.5%!important}}";const f0="Template Collection Grid",lLe=e=>{qr(cLe),qr(i$);const{configuration:t,galleries:r,nextSectionTitle:n,nextSectionId:i}=e,{title:a,subtitle:o,cta:s,items:c}=t,{locale:l,sidebarEnabled:u,merchandisingCategoryId:d}=et(),p=s?f(Re,{justifyContent:"flex-end",alignItems:"flex-end",children:f(we,{fontSize:"standard",children:f(ji,{href:s.targetUrl,skin:"cta","data-section":f0,"data-translation":d,onClick:()=>An({categoryId:d,destinationUrl:s.targetUrl,ctaValue:"CTA",pageZone:f0}),children:s.text})})}):void 0,g=c.map((m,v)=>{if(!m||!m.link)return null;const{cloudinaryImage:h,text:P,actionId:x,actionFilters:T,targetUrl:k}=m.link;if(!h?.cloudinaryUrl||!k)return null;const M=ss.applyImageTransformation(h.cloudinaryUrl,s$),$=a$({...r&&{galleries:r},...T&&{actionFilters:T},actionId:x,locale:l})||k,O=v+1;return f(sh,{categoryId:x,categoryTileTitle:P,categoryTileImage:{src:M,altTextOverride:sLe},categoryTileUrl:$,trackOnClick:()=>HA({categoryId:d,destinationUrl:$,pageZone:f0,ctaValue:`Tile ${O}`,index:O,itemsCount:c?.length,sectionTypeCount:t.sectionTypeCount??1})},x)}).filter(m=>!!m);return g.length?X(ue,{children:[a&&a.value&&f(Be,{mb:"5",children:f(_e,{span:10,children:f(yn,{fontSize:"x2large",mb:0,children:a.value})})}),f(oT,{...i&&{nextSectionId:i},...n&&{nextSectionTitle:n}}),(o&&o.value||p)&&X(Be,{children:[f(_e,{span:u?7:5,children:o&&o.value&&f(we,{children:o.value})}),f(_e,{span:u?5:7,children:p})]}),f(Be,{marginTop:7,children:g.map((m,v)=>f(_e,{span:2,spanXs:4,marginBottom:5,children:m},v))}),f(xr,{rawSectionData:t})]}):null};var VN=".ep-tiles-module-product-tile-cHJvZ{position:relative}.ep-tiles-module-product-tile-image-fallback-cHJvZ,.ep-tiles-module-product-tile-image-wrapper-cHJvZ{border-radius:var(--swan-sem-border-radius-container);overflow:hidden}.ep-tiles-module-product-tile-image-out-of-stock-cHJvZ{opacity:.5}";const uLe=({title:e,subtitle:t,products:r,colSpan:n,headerColSpan:i,pageSection:a,calloutsLocalization:o,setTileRef:s,onTileClick:c})=>{qr(VN);const{merchandisingCategoryId:l}=et();if(r.length===0)return null;const u=(d,p)=>{An({categoryId:l,pageZone:a,ctaValue:d.mpvId,destinationUrl:d.productUrl,index:p+1}),c?.(p)};return X(ue,{children:[(e||t)&&f(Be,{mb:4,children:X(_e,{span:i,children:[e&&f(yn,{fontSize:"x2large",children:e}),t&&f(we,{fontSize:"standard",children:t})]})}),f(Be,{verticalGap:"matchGutter",children:r.map((d,p)=>f(_e,{span:n,spanXs:6,ref:s?.(p),children:f(tS,{"data-testid":"recommendations-grid-tile","data-mpv-id":d.mpvId,product:{productKey:d.productKey,mpvId:d.mpvId,productVersion:d.productVersion,name:d.name,description:d.description,productUrl:d.productUrl,image:{src:d.image?.src??"",alt:d.image?.alt??d.name},inStock:!d.isOutOfStock,selectedOptions:d.selectedOptions},...d.callout!==void 0&&{callout:d.callout},ratingSummary:d.ratingSummary,calloutsLocalization:o,favourite:{pageZone:a,productPosition:p},callbacks:{onTileClick:()=>u(d,p)}})},d.mpvId))})]})},jN=12,dLe=({adaptedResponse:e,merchandisingCategoryId:t,tenant:r})=>{const n=Or(),i=vt(new Set),a=vt(null),o=vt(new Map),s=vt(e),c=vt(n),l=vt(t),u=vt(r);s.current=e,c.current=n,l.current=t,u.current=r;const d=vt(0),p=Et(h=>{const P=s.current;if(!P||h.length===0)return;let x=0;for(;x<h.length;){const T=h.slice(x,x+jN);d.current+=1,Ll({adaptedResponse:P,tenant:u.current,visibleProductIndices:T,screenClass:c.current,set:d.current,urlId:l.current,recommendationsPlacement:P.placement?.selector??""}),x+=jN}},[]),g=Et(h=>{const P=[];for(const x of h)i.current.has(x)||(i.current.add(x),P.push(x));return P},[]);Ee(()=>()=>{a.current?.disconnect(),a.current=null,o.current.clear()},[]);const m=Et(h=>P=>
495{!P||!s.current||(a.current||(a.current=new IntersectionObserver(x=>{const T=a.current;if(!T)return;const k=x.filter($=>$.isIntersecting).map($=>o.current.get($.target)).filter($=>$!==void 0).sort(($,O)=>$-O);if(k.length===0)return;const M=g(k);for(const $ of x)$.isIntersecting&&T.unobserve($.target);if(M.length>0)try{p(M)}catch{}},{threshold:.5})),o.current.set(P,h),a.current.observe(P))},[p,g]),v=Et(h=>{if(s.current){const P=s.current.products[h];P&&Kd({adaptedResponse:s.current,tenant:u.current,product:P,clickedElement:"Tile",urlId:l.current,recommendationsPlacement:s.current.placement?.selector??""})}},[]);return{setTileRef:m,onTileClick:v}},pLe=({section:e,productRecommendations:t,adaptedResponse:r,pageLevel:n,sidebarEnabled:i=!1,calloutsLocalization:a})=>{const{merchandisingCategoryId:o,tenant:s}=et(),c=t?.products??[],l="Bestsellers",{setTileRef:u,onTileClick:d}=dLe({adaptedResponse:r,merchandisingCategoryId:o,tenant:s});if(c.length===0)return null;const p=n==="L2",m=aT(c.length,i)===6?2:3,v=i?7:5;return X(ue,{children:[f(uLe,{title:p?e.title?.value:void 0,subtitle:p?e.subtitle?.value:void 0,products:c,colSpan:m,headerColSpan:v,pageSection:l,calloutsLocalization:a,setTileRef:u,onTileClick:d}),f(xr,{rawSectionData:{section:e,productRecommendations:t,calloutsLocalization:a}})]})},fLe=({title:e,subtitle:t,products:r,sidebarEnabled:n,pageSection:i,calloutsLocalization:a,sectionId:o,onProductTileClick:s,onSlideChange:c})=>{if(qr(VN),r.length===0)return null;const l=aT(r.length,n),u={xs:2,sm:l,md:l,lg:l,xl:l},d=o??`recommendations-lane-${i}`;return X(ue,{children:[(e||t)&&f(Be,{mb:4,children:X(_e,{span:n?7:5,children:[e&&f(yn,{fontSize:"x2large",children:e}),t&&f(we,{fontSize:"standard",children:t})]})}),f(yl,{id:d,slidesToShow:u,initialSlide:1,"aria-labelledby":d,"aria-label":e??i,onSlideChange:c,children:r.map((m,v)=>f(yc,{children:f(tS,{"data-testid":"recommendations-lane-tile","data-mpv-id":m.mpvId,product:{productKey:m.productKey,mpvId:m.mpvId,productVersion:m.productVersion,name:m.name,description:m.description,productUrl:m.productUrl,image:{src:m.image?.src??"",alt:m.image?.alt??m.name},inStock:!m.isOutOfStock,selectedOptions:m.selectedOptions},...m.callout!==void 0&&{callout:m.callout},ratingSummary:m.ratingSummary,calloutsLocalization:a,favourite:{pageZone:i,productPosition:v},callbacks:{onTileClick:()=>s?.(m,v)}})},m.mpvId))})]})},gLe=10,mLe=({section:e,sectionNumber:t,productRecommendations:r,adaptedResponse:n,pageLevel:i,sidebarEnabled:a=!1,calloutsLocalization:o})=>{const{merchandisingCategoryId:s,tenant:c}=et(),l=Or();if(!r||r.products.length===0)return null;const u=i==="L2",d=jA(r.products).slice(0,gLe),p=Et((x,T)=>{if(An({categoryId:s,pageZone:"New Arrivals",ctaValue:x.mpvId,destinationUrl:x.productUrl,index:T+1}),!n)return;const k=n.products.find(M=>M.mpvId===x.mpvId);k&&Kd({adaptedResponse:n,tenant:c,product:k,clickedElement:"Tile",urlId:s,recommendationsPlacement:n.placement?.selector??""})},[n,s,c]),g=vt(null),m=vt(new Set),v=vt(0),h=vt(0);Ee(()=>{if(h.current>0||!n||!g.current)return;const x=new IntersectionObserver(([T])=>{if(!T.isIntersecting||h.current>0)return;h.current=1;const k=QTe(aT(d.length,a),l),M=Math.min(k,d.length),$=Array.from({length:M},(O,H)=>H);$.forEach(O=>m.current.add(O)),Ll({adaptedResponse:n,tenant:c,screenClass:l,set:1,urlId:s,recommendationsPlacement:n.placement?.selector??"",visibleProductIndices:$}),x.disconnect()},{threshold:.5});return x.observe(g.current),()=>x.disconnect()},[n,d.length,a,l,c]);const P=Et((x,T)=>{if(!n)return;const k=x-1,M=T-1;if(k<v.current){v.current=k;return}v.current=k;const $=[];for(let O=k;O<=M;O++)m.current.has(O)||($.push(O),m.current.add(O));$.length!==0&&(h.current+=1,Ll({adaptedResponse:n,tenant:c,screenClass:l,set:h.current,urlId:s,recommendationsPlacement:n.placement?.selector??"",visibleProductIndices:$}))},[n,l,c]);return X(ct,{ref:g,children:[f(fLe,{title:u?e.title?.value:void 0,subtitle:u?e.subtitle?.value:void 0,products:d,sidebarEnabled:a,pageSection:`New Arrivals ${t}`,calloutsLocalization:o,sectionId:e.sectionId,onProductTileClick:p,onSlideChange:P}),f(xr,{rawSectionData:{section:e,productRecommendations:r,calloutsLocalization:o}})]})},hLe=e=>"title"in e&&e.title!==void 0,g0=e=>{if(e&&hLe(e))return e.title},vLe=e=>{const{sections:t,pageCategoryPageV3:r,pageDataFromBFF:n,templateConfiguration:i,automatedExperience:a,featureFlags:o,productRecommendations:s,rawProductRecommendations:c,pageLevel:l}=e,{locale:u,merchandisingCategoryId:d,experiments:p,reviewsData:g,enableCampaignCallouts:m,sidebarEnabled:v,calloutsLocalization:h}=et(),P=DA(),x=y.useMemo(()=>N0e(t),[t]),T=y.useMemo(()=>R0e(x)?$0e(x):x,[t]),k=y.useMemo(()=>VA(c?.newArrivals),[c?.newArrivals]),M=y.useMemo(()=>VA(c?.bestsellers),[c?.bestsellers]),$=y.useMemo(()=>T.map((H,J,W)=>{if(!!Xs(H.type))return null;const B=W.filter(le=>H.type===le.type).findIndex(le=>le===W[J])+1,Q=H.sectionId,R=J<W.length-1?W[J+1]:void 0,Y=yLe({sections:W,section:H,pageDataFromBFF:n,merchandisingCategoryId:d,type:H.type,key:J,page
495CategoryPageV3:r,locale:u,sectionNumber:B,...R!==void 0&&{nextSection:R},...g!==void 0&&{reviewsData:g},...m!==void 0&&{enableCampaignCallouts:m},index:J,sidebarEnabled:v,calloutsLocalization:h},i,P,a,o,s,k,M,l),ie=T[J],he=T[J+1],ye=A0e(ie,he);return Y&&f(eT,{type:H.type,marginBottom:ye,children:H.type==="anchor links"?f(ue,{children:Y}):f("div",{id:Q,tabIndex:-1,children:Y})},`section-${H.type}-${J}`)}),[P,a,o,s,k,M,l,v]),O=y.useMemo(()=>qTe({experimentData:P,sections:$,pageCategoryPageV3:r,pageDataFromBFF:n,locale:u,experiments:p,merchandisingCategoryId:d}),[P]);return f(ue,{children:O})},yLe=(e,t,r,n,i,a,o,s,c)=>{const{sections:l,section:u,pageDataFromBFF:d,type:p,key:g,pageCategoryPageV3:m,locale:v,sectionNumber:h,nextSection:P,index:x,reviewsData:T,enableCampaignCallouts:k,sidebarEnabled:M,calloutsLocalization:$}=e,O=BA(r,p);if(O)return f(O,{...e});switch(p){case"anchor links":return f(G0e,{pageCategoryPageV3:m,sections:l});case"promo banner":return f(y0e,{configuration:u,sectionNumber:h},g);case"section header":return f(zA,{configuration:u,pageDataFromBFF:d});case"side by side hero":return zTe(u)&&f(Jn,{paddingX:0,marginBottom:{xs:7,sm:7,md:8},children:f(qA,{section:u})});case"product grid":case"product grid horizontal XL":case"product grid horizontal":return f(a0e,{section:u,pageDataFromBFF:d,sectionNumber:h},g);case"product lane":{const H=Ni.createProductLaneModel(u,h,P,T,k,d,n,i);return f(c0e,{sectionData:H,rawSectionData:u},g)}case"information lane":return f(U0e,{section:u,sectionNumber:h},g);case"good better best":return f(h0e,{section:u,pageDataFromBFF:d});case"information media section":return z0e(u)&&f(B0e,{section:u,sectionNumber:h});case"virtual section":return f(x0e,{data:u.value,mpvs:d?.mpvs||[],designServices:d?.designServices,uploadFlowMpv:d?.uploadFlowMpv,galleries:d?.galleries});case"template lane":return k0e(u,v,d?.galleries)&&f(_0e,{content:u,galleries:d?.galleries,nextSectionId:P?.sectionId,nextSectionTitle:g0(P),sectionNumber:h},g);case"template collection lane":return f(K0e,{configuration:u,galleries:d?.galleries,nextSectionId:P?.sectionId,nextSectionTitle:g0(P),sectionNumber:h});case"template collection grid":{const H=g0(P),J={configuration:u,...d?.galleries&&{galleries:d.galleries},...P?.sectionId&&{nextSectionId:P.sectionId},...H&&{nextSectionTitle:H},index:x};return f(lLe,{...J})}case"seo":return w0e(m.seoSectionTitle,m.seoHTML,m.hasSeoHtml)&&f(b0e,{sectionTitle:m.seoSectionTitle,content:m.seoHTML},g);case"social module":return E0e(m.socialCurations,m.socialCurationsTitle,m.socialCurationsSubtitle)&&f(T0e,{socialCurationsTitle:m.socialCurationsTitle,socialCurationsSubtitle:m.socialCurationsSubtitle,data:m.socialCurations},g);case"stock options":{const H=aEe(u,n,i);return H?f(rEe,{stockOptionData:H}):null}case"design template":return f(iEe,{});case"frequently ordered":case"related products":return f(oLe,{type:p});case"bestsellers":return f(pLe,{section:u,productRecommendations:a?.bestsellers??null,adaptedResponse:s??void 0,pageLevel:c??null,sidebarEnabled:M,calloutsLocalization:$});case"new arrivals":return f(mLe,{section:u,sectionNumber:h,productRecommendations:a?.newArrivals??null,adaptedResponse:o,pageLevel:c??null,sidebarEnabled:M,calloutsLocalization:$});default:return null}},bLe=e=>{const{sections:t,mpvs:r,automatedExperience:n,featureFlags:i,productRecommendations:a}=e,o=()=>{const s=window.tracking;if(s&&s.track){const l=KTe({sections:t,mpvs:r,automatedExperience:n,featureFlags:i,productRecommendations:a});for(let u=0;u<l.length;u+=25)s.track("Product List Viewed",{label:"Category page view",list_id:"Category Page",products:l.slice(u,u+25)})}else setTimeout(()=>o(),1e3)};Ee(()=>{o()},[])},wLe=[dt.core,dt.ratingsStars,dt.progressBar,dt.popover,dt.accordion,dt.pagination,dt.icon,dt.modalDialog,dt.button,dt.accordion,dt.carousel,dt.alertBox,dt.grid,dt.hidden,dt.icon,dt.toggleSwitch,dt.visible,dt.standardTile,dt.progressiveImage,dt.utility,dt.selectionSet,dt.anchorBar,dt.popover,dt.pricing,dt.banner,dt.listbox,dt.spinner,dt.tabs,dt.baseTile,"adaptiveCarousel"],TLe=e=>({culture:e,developmentMode:!1,options:{requireSession:!0,customText:"Sign in to see your account"}});class HN{static generateContentfulEntryLink(t,r,n){return`https://app.contentful.com/spaces/${t}/environments/${n}/entries/${r}`}}const ELe=()=>{const{merchandisingCategoryId:e,spaceId:t,contentfulId:r}=et(),[n,i]=pe(!1),[a,o]=pe(!1),s=HN.generateContentfulEntryLink(t,r,"master"),c=HN.generateContentfulEntryLink(t,r,"development");function l(){setTimeout(()=>{i(!1),o(!0)},2e3)}async function u(){try{await navigator.clipboard.writeText(e),i(!0),l()}catch(d){console.error("Clipboard write failed: ",d.message)}}return X(Re,{flexDirection:"column",mr:"6",children:[f(we,{mb:"2",mr:"4",fontWeight:"bold",children:"Page Information"}),X(Re,{flexDirection:"column",children:[X(we,{mb:"2",mr:"4",fontWeight:"normal",children:["mcId: ",e,f(hn,{ml:"4",iconType:"saveAsCopy",size:"standard",onClick:u})]}
495),n&&X(es,{toast:!0,skin:"positive",dismissed:a,onRequestDismiss:()=>{o(!0)},children:["Copied to clipboard!",f(El,{accessibleText:"Dismiss alert"})]}),f(It,{href:s,target:"_blank",rel:"noreferrer",children:f(we,{fontSize:"small",children:"Contentful"})}),f(It,{href:c,target:"_blank",rel:"noreferrer",children:f(we,{fontSize:"small",children:"Contentful Development (for devs only)"})})]})]})},SLe=()=>{const{debugMode:e}=et();return e?f(Jn,{px:"5",children:f(Re,{flexDirection:"column",children:f(ELe,{})})}):null};var pc=(e=>(e.EXPERIMENT="experiment",e.TREATMENT="treatment",e.CAMPAIGN="campaign",e.FEATURE_FLAG="featureFlag",e))(pc||{});const PLe=e=>{const{experimentKey:t,pageData:r,templateConfiguration:n,locale:i,pageDataFromBFF:a,dictionaryEntries:o,merchandisingCampaign:s,merchandisingCategoryId:c,defaultVatIncl:l,tenant:u,reviewsData:d,treatment:p,variationKey:g,spaceId:m,contentfulId:v,experiments:h,isPartOfDesignTemplateRollout:P,designTemplateData:x,automatedExperience:T,featureFlags:k,isPricingContextInitialized:M,productRecommendations:$,rawProductRecommendations:O,pageLevel:H,calloutsLocalization:J,calloutsData:W,productTileTranslations:me}=e,Z=gm();Z.setContext({name:"category-page-fragment","vista.team_tag":"VPD-0003"}),v0(wLe),y0([Km.Graphik,Km.Tiempos]);const{backgroundColor:B,enableCampaignCallouts:Q,sections:R,sidebar:Y}=n,ie=VTe(n),he={locale:i,environment:tn.env.UBIK_ENVIRONMENT==="prod"?"prod":"dev",enableCampaignCallouts:Q,defaultVatIncl:l,dictionaryEntries:o,merchandisingCategoryId:c,backgroundColor:B?.name,sidebarEnabled:Y?.enabled,tenant:u,mpvIds:a?.mpvs?.map(te=>te?.mpvId)||[],uploadFlowMpv:a?.uploadFlowMpv,reviewsData:d,spaceId:m,contentfulId:v,logger:Z,experiments:h,isPartOfDesignTemplateRollout:P,designTemplateData:x,isPricingContextInitialized:M,calloutsLocalization:J,calloutsData:W,mpvs:a?.mpvs??[],pageLevel:H,rawProductRecommendations:O};bLe({sections:R,mpvs:a?.mpvs,automatedExperience:T,featureFlags:k,productRecommendations:$});const ye=b0(),le=te=>{const Oe=k?.[te];Oe!==void 0&&ye({type:pc.FEATURE_FLAG,name:te,enabled:Oe})};return t&&g&&ye({type:pc.EXPERIMENT,name:t,variation:g}),p&&ye({type:pc.TREATMENT,name:p}),s&&ye({type:pc.CAMPAIGN,name:s}),H!=null&&(le(HTe),le(GTe)),nLe(c,i)&&h[Vw]&&ye({type:pc.EXPERIMENT,name:Vw,variation:h[Vw]}),jwe(c,h,u)&&ye({type:pc.EXPERIMENT,name:bg,variation:h[bg]}),vE({locale:i,tenant:u,pageId:yE.Category,tracking:{pageSection:"Category Page",pageStage:"Discover",pageName:`${c}:Category Page`}}
495),f(w0,{auth:TLe(i),children:f(T0,{tenant:u,locale:i,children:X(TU,{...he,children:[f(SLe,{}),f(LTe,{children:f(Qm,{locale:i,translations:me,children:f(gU,{tenant:u,locale:Vo(i),pageId:Ym.Category,pageSection:"Category Page",children:X(CE,{pageSection:"Category Page",children:[f(zA,{configuration:ie,sidebar:n.sidebar,pageDataFromBFF:a,isPrimaryHeader:!0}),f(vLe,{sections:R,pageCategoryPageV3:r,pageDataFromBFF:a,templateConfiguration:n,featureFlags:k,...T!==void 0&&{automatedExperience:T},...$!==void 0&&{productRecommendations:$},...O!==void 0&&{rawProductRecommendations:O},...H!=null&&{pageLevel:H}})]})})})})]})})})},QLe=pm("mount",async(e,t,r)=>m0(f(PLe,{...t}),e,r))})}})); 496//# sourceMappingURL=fragment-category-page.js.map
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.