(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[396],{4797:function(e,t,i){"use strict";let n;i.d(t,{Z:function(){return re}});var a,o,r,l,s,c,d,u,p,h,g,f,m,y,v,b,x,w,S,k,C,T,I,Z,B,P,F,H,R,L,M,E,N,A,D,_,O,z,U,q,j,X=i(5944),V=i(7294);let W=V.createContext({activePage:{},updateActivePage:()=>{}}),G=e=>{let{initialPage:t,children:i}=e,[n,a]=(0,V.useState)(null);return(0,X.tZ)(W.Provider,{value:{activePage:n||t,updateActivePage:e=>{a(e)}},children:i})};var Y=i(5203);let J=V.createContext({isOn:!1,content:[],updateModalContent:()=>{},toggleModal:()=>{},shouldSnapToBottom:!1}),$=e=>{let{children:t}=e,[i,n]=(0,V.useState)(!1),[a,o]=(0,V.useState)(!1),[r,l]=(0,V.useState)(null),s=e=>{l(e)};return(0,X.tZ)(J.Provider,{value:{isOn:i,content:r,updateModalContent:s,toggleModal:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i?(n(!1),o(!1),s(null)):(l(e),o(!!t.snapToBottom),n(!0))},shouldSnapToBottom:a},children:t})};(o=(a=Z||(Z={})).Favicon||(a.Favicon={})).universelogo="universelogo",o.universetablet="universetablet",o.universetumble="universetumble",o.universe3dlogo="universe3dlogo",o.briefcase="briefcase",o.brush="brush",o.bullseye="bullseye",o.camera="camera",o.cart="cart",o.circle="circle",o.cloud="cloud",o.clover="clover",o.dollarsign="dollarsign",o.eye="eye",o.flower="flower",o.globe="globe",o.heart="heart",o.home="home",o.hourglass="hourglass",o.lips="lips",o.music="music",o.pencil="pencil",o.pilowlava="pilowlava",o.profile="profile",o.ribes="ribes",o.scribble="scribble",o.shapes="shapes",o.shirt="shirt",o.shop="shop",o.smiley="smiley",o.square="square",o.star="star",o.starburst="starburst",o.triangle="triangle",o.trickster="trickster",o.wave="wave",o.write="write",(r=a.MarketingIntegrationType||(a.MarketingIntegrationType={})).GoogleAnalytics="ga4_measurement_id",r.MetaPixel="meta_pixel_id",(l=a.Sticker||(a.Sticker={})).Standard="standard",l.Tablet="tablet",l.Technical="technical",l.Tumble="tumble",l.Wavy="wavy",l.Wheel="wheel",l.Follow="follow",(s=B||(B={})).AddToCart="addtocart",s.InitiateCheckout="iniatecheckout",s.PageView="pageview",s.Purchase="purchase";let Q="googleAnalyticsTagScript",K={dataLayerName:"ga4DataLayer",gtagName:"gtag",debugMode:!1};var ee=e=>{let t={...K,...e},i=e=>{let{gtagName:i}=t;if(!window[i])return;let{payload:n}=e,a={page_title:(null==n?void 0:n.title)||document.title,page_location:(null==n?void 0:n.location)||document.location.href,page_path:(null==n?void 0:n.path)||document.location.pathname,page_hash:(null==n?void 0:n.hash)||document.location.hash,page_referrer:(null==n?void 0:n.referrer)||document.referrer};window[i]("event","page_view",a)},n=e=>{let{gtagName:i}=t;if(!window[i])return;let n={transaction_id:e.payload.transactionId,value:e.payload.value/100,currency:e.payload.currency,...e.payload.discountCode&&{coupon:e.payload.discountCode},items:e.payload.items.map(e=>({item_id:e.sku,item_name:e.name,currency:e.currency,price:e.price/100,quantity:e.quantity}))};window[i]("event","purchase",n)},a=e=>{let{gtagName:i}=t;if(!window[i])return;let n={value:e.payload.value/100,currency:e.payload.currency,...e.payload.discountCode&&{coupon:e.payload.discountCode},items:e.payload.items.map(e=>({item_id:e.sku,item_name:e.name,currency:e.currency,price:e.price/100,quantity:e.quantity}))};window[i]("event","begin_checkout",n)},o=e=>{let{gtagName:i}=t;if(!window[i])return;let n={value:e.payload.value/100,currency:e.payload.currency,items:e.payload.items.map(e=>({item_id:e.sku,item_name:e.name,currency:e.currency,price:e.price/100,quantity:e.quantity}))};window[i]("event","add_to_cart",n)};return{initialize:()=>new Promise((e,i)=>{let n=Array.isArray(t.measurementIds)?t.measurementIds:[t.measurementIds],{dataLayerName:a}=t,o=et();if(!o){var r;let t=document.createElement("script");t.async=!0,t.src="".concat("https://www.googletagmanager.com/gtag/js","?id=").concat(n[0],"&l=").concat(a),t.id=Q,t.onload=()=>e(),t.onerror=()=>i();let o=document.getElementsByTagName("script")[0];null===(r=o.parentNode)||void 0===r||r.insertBefore(t,o)}let{gtagName:l}=t;window[a]||(window[a]=window[a]||[],window[l]=function(){window[a].push(arguments)},window[l]("js",new Date));let s={send_page_view:!1,...!0===t.debugMode&&{debug_mode:t.debugMode},...void 0!==t.cookieDomain&&{cookie_domain:t.cookieDomain}};n.forEach(e=>{window[l]("config",e,s)}),o&&e()}),track:e=>{switch(e.type){case B.AddToCart:o(e);break;case B.InitiateCheckout:a(e);break;case B.PageView:i(e);break;case B.Purchase:n(e)}}}};let et=()=>!!document.getElementById(Q),ei="https://connect.facebook.net/en_US/fbevents.js",en={autoConfig:!1};var ea=e=>{let t={...en,...e},i=Array.isArray(t.pixelIds)?t.pixelIds:[t.pixelIds],n=()=>{window.fbq&&window.fbq("track","PageView")},a=e=>{if(!window.fbq)return;let{payload:t}=e,i={currency:t.currency,value:t.value/100,contents:t.items.map(e=>({id:e.sku,content_name:e.name,currency:e.currency,value:e.price/100,quantity:e.quantity}))};window.fbq("track","Purchase",i)},o=e=>{if(!window.fbq)return;let{payload:t}=e,i={currency:t.currency,value:t.value/100,contents:t.items.map(e=>({id:e.sku,content_name:e.name,currency:e.currency,value:e.price/100,quantity:e.quantity}))};window.fbq("track","InitiateCheckout",i)},r=e=>{if(!window.fbq)return;let{payload:t}=e,i={currency:t.currency,value:t.value/100,contents:t.items.map(e=>({id:e.sku,content_name:e.name,currency:e.currency,value:e.price/100,quantity:e.quantity}))};window.fbq("track","AddToCart",i)};return{initialize:()=>new Promise((e,n)=>{let a=eo();if(!a){var o;if(window.fbq)return;let t=window.fbq=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];t.callMethod?t.callMethod(...i):t.queue.push(i)};window._fbq||(window._fbq=t),t.push=t,t.loaded=!0,t.version="2.0",t.queue=[];let i=document.createElement("script");i.async=!0,i.src=ei,i.onload=()=>e(),i.onerror=()=>n();let a=document.getElementsByTagName("script")[0];null===(o=a.parentNode)||void 0===o||o.insertBefore(i,a)}!1===t.autoConfig&&i.forEach(e=>window.fbq("set","autoConfig",!1,e)),i.forEach(e=>window.fbq("init",e)),a&&e()}),track:e=>{switch(e.type){case B.AddToCart:r(e);break;case B.InitiateCheckout:o(e);break;case B.PageView:n();break;case B.Purchase:a(e)}}}};let eo=()=>{let e=Object.values(document.querySelector("script[src]")).filter(e=>e.src),t=new RegExp("^".concat(ei));return!!e.filter(e=>t.test(e)).length};class er{constructor(){this.isLoaded=!1,this.queue=[],this.plugins=[],this.initialize=e=>(this.loadingPromise||(this.loadingPromise=this.load(e)),this.loadingPromise),this.load=async e=>{await Promise.all(e.map(async e=>{try{await e.initialize(),this.plugins.push(e),this.queue.forEach(t=>{e.track(t)})}catch(e){console.log(e)}})),this.isLoaded=!0},this.track=e=>{this.isLoaded||this.queue.push(e),this.plugins.forEach(t=>{t.track(e)})}}}let el=(0,V.createContext)(null);var es=e=>{let{children:t,integrations:i}=e,n=(0,V.useRef)(new er);return(0,V.useEffect)(()=>{let e=i.filter(e=>e.type===Z.MarketingIntegrationType.GoogleAnalytics),t=i.filter(e=>e.type===Z.MarketingIntegrationType.MetaPixel),a=[];e&&e.length>0&&a.push(ee({measurementIds:e.map(e=>e.value)})),t&&t.length>0&&a.push(ea({pixelIds:t.map(e=>e.value)})),n.current.initialize(a)},[i]),(0,X.tZ)(el.Provider,{value:{track:n.current.track},children:t})};let ec=()=>(0,V.useContext)(el);var ed=i(5152),eu=i.n(ed);(c=P||(P={})).Document="document",c.MenuFullscreen="menuFullscreen",c.MenuMinimal="menuMinimal",c.MenuSidebar="menuSidebar",c.MenuTabs="menuTabs",c.MenuPagingIndicator="menuPagingIndicator",c.TimelineHorizontal="timelineHorizontal",c.TimelineVertical="timelineVertical",c.Block="block",c.FlexGrid="flexGrid",c.Grid="grid",c.Section="section",c.Code="code",c.Image="image",c.LongVideo="longVideo",c.Map="map",c.Payment="payment",c.PhotoGallery="photoGallery",c.Shape="shape",c.Soundcloud="soundcloud",c.Subscribe="subscribe",c.Text="text",c.Video="video",c.Vimeo="vimeo",c.Youtube="youtube";var ep=i(917),eh=i(6524);i(9409);var eg=i(7e3),ef=e=>{var t,i,n;let{ariaHidden:a,className:o,lazyload:r,onClick:l,picture:s,unscaledWidth:c}=e,[d,u]=(0,V.useState)(!1),p=(0,V.useRef)(null),h=e=>{if(e)return e.map(e=>"".concat(e.url," ").concat(e.width||1,"w")).join(",")},g=h(null===(t=s.variations)||void 0===t?void 0:t.default),f=(null===(n=s.variations)||void 0===n?void 0:null===(i=n.priorityTypes)||void 0===i?void 0:i.map(e=>({type:e.type,srcSet:h(e.images)})))||[],m=s.altText||"";return d?(0,X.tZ)("div",{style:{height:"100%",width:"100%",backgroundColor:"#EEEEEE",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,X.tZ)("img",{src:"non-existent.jpg"})}):(0,X.BX)("picture",{onClick:l,children:[f.map((e,t)=>(0,X.tZ)("source",{type:e.type,srcSet:e.srcSet},t)),(0,X.tZ)("img",{ref:p,alt:m,title:s.title,src:s.imageUrl,srcSet:g,sizes:"calc(min(100vw, 750px) * ".concat(c," / 375)"),className:o,loading:r?"lazy":"eager","aria-hidden":"true"===a,onError:()=>{u(!0)},onKeyDown:l,role:s.decorative?"presentation":void 0,style:s.decorative?{pointerEvents:"none"}:void 0})]})},em=i(9101),ey=i(5814),ev=i(3409);function eb(e){switch(e.type){case em.lm.Color:return(0,ey.a)(e.color);case em.lm.Gradient:return(0,ev.n)(e.gradient)}}let ex=e=>{if(!e)return[{},{}];let t={},i={};if(e.backgroundLayer&&(t.background=eb(e.backgroundLayer.fill),e.backgroundLayer.mode&&(i.mixBlendMode=ew(e.backgroundLayer.mode))),e.foregroundLayer&&(t[":before"]={background:eb(e.foregroundLayer.fill),content:"''",inset:"0",mixBlendMode:e.foregroundLayer.mode&&ew(e.foregroundLayer.mode),position:"absolute",zIndex:"1"}),e.filterFunctions){let t=e.filterFunctions.find(e=>e.type===em._T.Blur);i.filter=e.filterFunctions.map(e=>eS(e)).join(" "),t&&(i.inset="-".concat(t.value,"px"),i.borderWidth="".concat(t.value,"px"),i.borderStyle="solid")}return[t,i]},ew=e=>{switch(e){case em.bt.Normal:return"normal";case em.bt.Multiply:return"multiply";case em.bt.Screen:return"screen";case em.bt.Overlay:return"overlay";case em.bt.Darken:return"darken";case em.bt.Lighten:return"lighten";case em.bt.ColorDodge:return"color-dodge";case em.bt.ColorBurn:return"color-burn";case em.bt.HardLight:return"hard-light";case em.bt.SoftLight:return"soft-light";case em.bt.Difference:return"difference";case em.bt.Exclusion:return"exclusion";case em.bt.Hue:return"hue";case em.bt.Saturation:return"saturation";case em.bt.Color:return"color";case em.bt.Luminosity:return"luminosity"}},eS=e=>{switch(e.type){case em._T.Blur:return"blur(".concat(e.value,"px)");case em._T.Brightness:return"brightness(".concat(e.value,"%)");case em._T.Contrast:return"contrast(".concat(e.value,"%)");case em._T.Grayscale:return"grayscale(".concat(e.value,"%)");case em._T.HueRotate:return"hue-rotate(".concat(e.value,"deg)");case em._T.Invert:return"invert(".concat(e.value,"%)");case em._T.Opacity:return"opacity(".concat(e.value,"%)");case em._T.Saturate:return"saturate(".concat(e.value,"%)");case em._T.Sepia:return"sepia(".concat(e.value,"%)")}};var ek=i(8855),eC=i(5903),eT=e=>{let t,{data:i,context:n}=e,{contentHeight:a,contentMode:o,filter:r,imageAspectRatio:l,isLightboxEnabled:s,originalSize:c,picture:d,position:u,unscaledBlockSize:p}=i,{isAboveTheFold:h}=n,{enable:g,disable:f}=(0,V.useContext)(Y.Z),[m,y]=(0,V.useState)(!1),[v,b]=ex(r),x={cursor:s?"zoom-in":"inherit",position:"relative",...v},w={cursor:s?"zoom-in":"inherit",display:"block",width:"100%",...b},S=!1,k=p.width||1e3,C=k/(p.height||1e3),T=l?l/C:null,I=(0,ek.K)(a);switch(o){case"aspectFill":w.objectFit="cover",a.type===eC.gO.ContentHeightType.AspectRatio&&(w.height="100%"),r&&(S=!0,x.width="100%",x.height="100%",w.height="100%",x.maskSize="cover",x.maskImage="url(".concat(d.imageUrl,")"),x.maskRepeat="no-repeat",u?x.maskPosition="".concat(u.x,"% ").concat(u.y,"%"):x.maskPosition="center"),u&&(w.objectPosition="".concat(u.x,"% ").concat(u.y,"%")),T&&(t=T>1?T*k:k);break;case"aspectFit":w.objectFit="contain",r&&(S=!0,x.width="100%",w.height="100%",x.maskImage="url(".concat(d.imageUrl,")"),x.maskRepeat="no-repeat",x.maskSize="contain",u?x.maskPosition="".concat(u.x,"% ").concat(u.y,"%"):x.maskPosition="center"),u&&(w.objectPosition="".concat(u.x,"% ").concat(u.y,"%")),T&&(t=T<1?T*k:k)}t=t||2*k;let Z=(0,ep.iv)(S?{...x,...I}:{}),B=(0,ep.iv)(S?{...w}:{...I,...w}),P=s?()=>{y(!0),f()}:void 0,F=(0,X.tZ)(ef,{ariaHidden:d.altText||s?void 0:"true",css:B,lazyload:!h,onClick:P,picture:d,unscaledWidth:t}),H=s&&(0,X.tZ)(eh.ZP,{open:m,close:()=>{y(!1),g()},carousel:{finite:!0},slides:[{src:(0,eg.$)(d)}],render:{slide:e=>{if(r)return(0,X.tZ)("div",{css:(0,ep.iv)({...v,maxHeight:"100%",maxWidth:"100%",position:"relative"}),children:(0,X.tZ)("img",{src:e.slide.src,css:(0,ep.iv)({...b,maxHeight:"100%",maxWidth:"100%",display:"block"})})})}}});return S?(0,X.BX)("div",{css:Z,onClick:P,children:[F,H]}):(0,X.BX)(X.HY,{children:[F,H]})},eI=i(1163);function eZ(e,t){let i={};switch(e){case"aspectFill":i.objectFit="cover";break;case"aspectFit":i.objectFit="contain"}return t&&(i.objectPosition="".concat(t.x,"% ").concat(t.y,"%")),i}i(9984);var eB=e=>{let t,{data:n,context:a}=e,{autoplay:o,contentHeight:r,contentMode:l,placeholderSize:s,position:c,videoId:d}=n,u=(0,eI.useRouter)(),p=(0,V.useRef)(null),[h,g]=(0,V.useState)(!1),[f,m]=(0,V.useState)(!1),[y,v]=(0,V.useState)(!1),{query:{snapshot:b}}=u,x=async()=>{t=(await i.e(27).then(i.t.bind(i,7631,23))).default},w=async()=>fetch("/_api/v1/videos/".concat(d,"/status")).then(e=>e.status>=400?Promise.reject():e.json()).then(e=>{!0===e.stream_ready?S():m(!0)}).catch(()=>{g(!0)});(0,V.useEffect)(()=>{!b&&p.current&&x().then(()=>{w()})},[p]);let S=()=>{var e;if(t.isSupported()&&p.current){let e=new t;e.loadSource("/_api/v1/videos/".concat(d,"/stream")),e.attachMedia(p.current)}else(null==p?void 0:null===(e=p.current)||void 0===e?void 0:e.canPlayType("application/vnd.apple.mpegurl"))&&p.current.setAttribute("src","/_api/v1/videos/".concat(d,"/stream"))},k=(0,ek.K)(r),C=eZ(l,c);return b?(0,X.tZ)("div",{className:"longvideo-block",style:k,children:(0,X.tZ)("img",{className:"longvideo-block-video",src:"/_api/v1/videos/".concat(d,"/thumbnail?time=1&width=").concat(s.width,"&height=").concat(s.height,"&fit_mode=crop")})}):(0,X.BX)("div",{onMouseDown:e=>{e.preventDefault},className:"longvideo-block",style:k,children:[(0,X.tZ)("video",{className:"longvideo-block-video",style:C,onMouseEnter:()=>{v(!0)},poster:"/_api/v1/videos/".concat(d,"/thumbnail?time=1&width=").concat(s.width,"&height=").concat(s.height,"&fit_mode=crop"),autoPlay:!!o,muted:!!o,playsInline:!0,controls:!o||y,ref:p}),h&&(0,X.tZ)("div",{className:"longvideo-block-message-container",children:(0,X.tZ)("span",{className:"longvideo-block-message-content",children:"Video Load Error"})}),f&&(0,X.tZ)("div",{className:"longvideo-block-message-container",children:(0,X.tZ)("span",{className:"longvideo-block-message-content",children:"Video Being Processed"})})]})},eP=i(6113),eF=i(380);(d=F||(F={})).Band="band",d.Card="card",d.Tile="tile";let eH=e=>1===e.height?e.width<3?"tile":"band":e.width<2?"tile":"card";class eR extends V.Component{componentDidMount(){window.addEventListener("resize",this.updatePriceLabelSize),setTimeout(this.updatePriceLabelSize,300)}componentWillUnmount(){window.removeEventListener("resize",this.updatePriceLabelSize)}render(){let e=this.state.paymentAmount?this.state.paymentAmount.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):0;return(0,X.tZ)("div",{style:this.setFillBackgroundStyles(),children:(0,X.BX)("div",{className:this.setBlockStyles(),onClick:"card"!==this.state.visualType&&this.state.paymentLink?this.handleLinkOut:void 0,children:[(0,X.tZ)("div",{className:this.setPriceLabelStyles(),children:(0,X.tZ)("span",{className:"priceLabelInner",ref:this.amountSpan,children:"$".concat(e)})}),"card"===this.state.visualType?this.slideToPayLabel():this.tapToPayLabel()]})})}constructor(e){super(e),this.setFillBackgroundStyles=()=>{let e={};return e.background=eb(this.state.fill),e.color=(0,ey.a)((0,em.VL)((0,eF.QH)(this.state.fill))),e.height="100%",e.width="100%",e.borderRadius="14px",e.aspectRatio=(0,ek.W)(this.state.aspectRatio),e},this.setBlockStyles=()=>{let e={width:"100%",height:"100%",borderRadius:"14px",display:"flex",flexDirection:"column",fontFamily:"-apple-system, SFTextRegular, Helvetica, Arial, sans-serif"};return this.state.fill.type!==eF.lm.Gradient&&(e.background="linear-gradient(135deg, rgba(255,255,255,0.3) 0%,rgba(0,0,0,0.2) 100%)"),"band"==this.state.visualType&&(e.flexDirection="row",e.alignItems="center",e.justifyContent="space-around"),"card"!=this.state.visualType&&(e.cursor="pointer"),(0,eP.iv)(e).toString()},this.setPriceLabelStyles=()=>{let e={fontFamily:"-apple-system, SFDisplayHeavy, Helvetica, Arial, sans-serif",fontWeight:800,textAlign:"center",margin:"auto",transition:"opacity .25s ease, transform .25s cubic-bezier(0.165, 0.84, 0.44, 1)","& .priceLabelInner":{fontSize:"".concat(this.state.amountTextSize,"px")}};return this.state.amountIsScaled||(e.opacity=0,e.transform="translateY(15%) scale(.9)"),(0,eP.iv)(e).toString()},this.updatePriceLabelSize=()=>{this.amountSpan.current&&this.setState({amountTextSize:function(e,t){let i=e.offsetWidth,n=e.offsetHeight,a=e.parentNode,o=a.offsetWidth+2*parseInt(getComputedStyle(a).marginLeft,10),r=a.parentNode.offsetWidth,l=a.offsetHeight+2*parseInt(getComputedStyle(a).marginTop,10),s=(r<o?r:o)/i*.8*t,c=l/n*.8*t;return c<s?c:s}(this.amountSpan.current,this.state.amountTextSize),amountIsScaled:!0})},this.setProviderBannerStyles=()=>{let e={width:"100%",backgroundColor:"white",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",alignSelf:"flex-end"};return"band"==this.state.visualType&&(e.alignSelf="auto",e.width="auto",e.marginRight="0",e.marginLeft="auto",e.borderRadius="14px 0 0 14px",e.flexGrow="0",e.paddingLeft="16px"),(0,eP.iv)(e).toString()},this.setProviderLabelStyles=()=>{let e={color:"black",lineHeight:1};return"tile"==this.state.visualType&&(e.fontSize="10px",e.textAlign="center"),(0,eP.iv)(e).toString()},this.setProviderLogoStyles=()=>{let e={padding:"8px 10px"};return("tile"==this.state.visualType||"band"==this.state.visualType)&&(e.width="20px",e.height="20px"),this.state.gridDensity>1.6&&1==this.state.size.width&&(e.padding="4px 5px"),(0,eP.iv)(e).toString()},this.setSliderBaseStyles=()=>{let e=eP.iv.keyframes({"0%":{backgroundPosition:"100% 0"},"100%":{backgroundPosition:"-100% 0"}}),t={width:"calc(100% - 28px - 16px)",borderRadius:"14px",margin:"0 14px 16px 14px",backgroundColor:"white",padding:"8px",position:"relative",pointerEvents:"none",overflow:"hidden","& .sliderLabel":{position:"absolute",width:"200%",height:"100%",margin:0,top:"calc(50% - .6em)",left:"calc(-50% + 15px)",fontSize:"18px",textAlign:"center",background:"-webkit-gradient(linear,left top,right top,color-stop(0, #808080),color-stop(0.4, #808080),color-stop(0.5, black),color-stop(0.6, #808080),color-stop(1, #808080))",backgroundSize:"200% 200%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitAnimation:"".concat(e," 5s infinite")},"& .sliderArrow":{position:"absolute",right:"12px",top:"calc(50% - 5px)"}};return this.state.gridDensity>1.3&&this.state.size.width<=2&&(t["& .sliderLabel"].display="none"),(0,eP.iv)(t).toString()},this.setSliderInputStyles=()=>{let e="/static/payment-provider-icon_".concat(this.state.paymentPlatform,".svg"),t={background:"transparent",color:"transparent",border:0,WebkitAppearance:"none"},i={WebkitAppearance:"none",display:"block",width:"49px",height:"49px",background:"url(".concat(e,")"),cursor:"pointer",pointerEvents:"all",border:"none"};return(0,eP.iv)({pointerEvents:"none",appearance:"none",width:"100%",height:"49px",backgroundColor:"transparent",margin:0,display:"block",":focus":{outline:"none"},"::-webkit-slider-runnable-track":t,"::-moz-range-track":t,"::-moz-focus-outer":t,"::-ms-track":t,"::-ms-fill-lower":t,"::-ms-fill-upper":t,"::-ms-tooltip":{display:"none"},"::-webkit-slider-thumb":i,"::-moz-range-thumb":i,"::-ms-thumb":i})},this.tapToPayLabel=()=>{let e="paypal"===this.state.paymentPlatform?"PayPal":"Cash",t="/static/payment-provider-icon_".concat(this.state.paymentPlatform,".svg");return(0,X.BX)("div",{className:this.setProviderBannerStyles(),children:[(0,X.tZ)("p",{className:this.setProviderLabelStyles(),children:"Pay via ".concat(e)}),(0,X.tZ)("img",{className:this.setProviderLogoStyles(),src:t})]})},this.slideToPayLabel=()=>{let e=function(e,t,i,n,a){let o=!(arguments.length>5)||void 0===arguments[5]||arguments[5];return o?e<t?n:e>i?a:n+(a-n)*(e-t)/(i-t):n+(a-n)*(e-t)/(i-t)}(this.state.sliderValue,0,.3*this.state.sliderMax,1,0);return(0,X.BX)("div",{className:this.setSliderBaseStyles(),children:[(0,X.tZ)("input",{type:"range",value:this.state.sliderValue,min:this.state.sliderMin,max:this.state.sliderMax,onChange:this.handleSliderChange,onMouseDown:this.unlockStartHandler,onTouchStart:this.unlockStartHandler,onMouseUp:this.unlockEndHandler,onTouchEnd:this.unlockEndHandler,className:"".concat(this.setSliderInputStyles()," swiper-no-swiping")}),(0,X.tZ)("p",{className:"sliderLabel",style:{opacity:e},children:"Slide to pay"}),(0,X.tZ)("img",{className:"sliderArrow",src:"/static/payments-slide-arrow.svg",style:{opacity:e}})]})},this.handleSliderChange=e=>{this.setState({sliderValue:e.target.value})},this.unlockStartHandler=()=>{window.cancelAnimationFrame(n)},this.unlockEndHandler=()=>{this.state.sliderValue>=this.state.sliderMax?this.successHandler():n=window.requestAnimationFrame(this.animateHandler)},this.animateHandler=()=>{let e=this.state.sliderValue;e>-1&&window.requestAnimationFrame(this.animateHandler),this.setState({sliderValue:e-12})},this.successHandler=()=>{this.setState({value:0}),this.handleLinkOut()},this.handleLinkOut=()=>{window.location.href=this.state.paymentLink||""};let{data:t,context:i}=e,a=eH(i.size);this.state={amountTextSize:30,amountIsScaled:!1,aspectRatio:t.aspectRatio,fill:t.fill,gridDensity:i.gridDensity||1,paymentLink:t.destination,paymentPlatform:t.paymentPlatform,paymentAmount:t.paymentPrice,size:i.size,sliderValue:0,sliderMin:0,sliderMax:150,visualType:a},this.amountSpan=V.createRef()}}var eL=i(9058);function eM(e,t,i){let n="center";t.position&&(n="".concat(t.position.x,"% ").concat(t.position.y,"%"));let a=i?"fixed":"";switch(t.type){case em.Aq.Asset.ContentModes.ContentModeType.Fill:return"".concat(n," / cover ").concat(e," ").concat(a);case em.Aq.Asset.ContentModes.ContentModeType.Fit:return"".concat(n," / contain ").concat(e," ").concat(a);case em.Aq.Asset.ContentModes.ContentModeType.Repeat:let o="".concat(e,"  ").concat(t.x||"no-repeat","  ").concat(t.y||"no-repeat"," ").concat(a);return t.size&&(o=o.concat(" ".concat(n,"/").concat(t.size.width,"px ").concat(t.size.height,"px"))),o}}function eE(e,t,i){return{background:e,content:"''",inset:"0",mixBlendMode:i?ew(i):void 0,opacity:t,position:"absolute",zIndex:"1"}}function eN(e,t){if(!e)return{css:{}};let i={},n=[],a=null,o=null;if(e.asset)switch(e.asset.data.type){case em.Aq.Asset.Data.DataType.Fill:{let o=eM(function(e){switch(e.type){case em.lm.Color:return(0,ey.i)(e.color);case em.lm.Gradient:return(0,ev.n)(e.gradient)}}(e.asset.data.fill),e.asset.contentMode,t);e.asset.opacity&&e.asset.opacity<1?(a=eE(o,e.asset.opacity,e.asset.blendMode),t&&(a.backgroundAttachment="fixed")):(n.push(o),i.mixBlendMode=e.asset.blendMode?ew(e.asset.blendMode):void 0,t&&(i.backgroundAttachment="fixed"));break}case em.Aq.Asset.Data.DataType.Image:{let o=eM("url(".concat(e.asset.data.url,")"),e.asset.contentMode,t);e.asset.opacity&&e.asset.opacity<1?(a=eE(o,e.asset.opacity,e.asset.blendMode),t&&(a.backgroundAttachment="fixed")):(n.push(o),i.mixBlendMode=e.asset.blendMode?ew(e.asset.blendMode):void 0,t&&(i.backgroundAttachment="fixed"));break}case em.Aq.Asset.Data.DataType.Video:{let i="center";e.asset.contentMode.position&&(i="".concat(e.asset.contentMode.position.x,"% ").concat(e.asset.contentMode.position.y,"%"));let n={height:"100%",mixBlendMode:e.asset.blendMode?ew(e.asset.blendMode):void 0,objectFit:e.asset.contentMode.type===em.Aq.Asset.ContentModes.ContentModeType.Fit?"contain":"cover",objectPosition:i,position:t?"fixed":"absolute",width:"100%"};o=(0,X.tZ)("div",{style:{position:"absolute",height:"100%",width:"100%",inset:0},children:(0,X.tZ)("video",{muted:!0,playsInline:!0,autoPlay:!0,loop:!0,width:"100%",style:n,poster:e.asset.data.loadingImageUrl,children:(0,X.tZ)("source",{src:e.asset.data.url,type:"video/mp4"})})})}}return n.push(eb(e.fill)),i.background=n.join(", "),a&&(i[":before"]=a),{css:i,element:o}}var eA=i(4008),eD=i(7268),e_=i(1106);function eO(e){let t=function(e){switch(e){case em.v2.Horizontal.Left:return"flex-start";case em.v2.Horizontal.Center:return"center";case em.v2.Horizontal.Right:return"flex-end";case em.v2.Horizontal.Fill:return null}}(e.horizontal),i=function(e){switch(e){case em.v2.Vertical.Top:return"flex-start";case em.v2.Vertical.Center:return"center";case em.v2.Vertical.Bottom:return"flex-end";case em.v2.Vertical.Fill:return null}}(e.vertical);return t||i?{display:"flex",flexDirection:"column",alignItems:t||"center",justifyContent:i||"center"}:{}}function ez(e){let t={};return e.horizontal===em.v2.Horizontal.Fill?t.width="100%":t.maxWidth="100%",e.vertical===em.v2.Vertical.Fill?t.height="100%":t.maxHeight="100%",t}i(3563);let eU={horizontal:em.v2.Horizontal.Center,vertical:em.v2.Vertical.Center},eq=e=>e?{...ez(eU),height:"100%",width:"100%",maxHeight:"".concat(e.height,"px"),maxWidth:"".concat(e.width,"px")}:{height:"100%",width:"100%"};var ej=e=>{let{data:t,context:i}=e,{altText:n,contentHeight:a,fill:o,mask:r,maxSize:l,shadow:s}=t,{style:c}=i,d=(0,eA.$c)(o,null==c?void 0:c.contentBackground),u=(0,eA.$c)(r,null==c?void 0:c.contentMask),p=(0,eA.$c)(s,null==c?void 0:c.contentShadow),h=(0,V.useRef)((0,eL.Z)()),{css:g,element:f}=eN(d),m=(0,ek.K)(a),{css:y,svg:v}=(0,eD.L)(u,h.current),b=(0,e_.h)(p),x=eq(l),w={width:"100%",inset:"0",...l?eO(eU):{},...m},S={inset:"0",...g,...y,...b,...x},k=(0,X.tZ)("span",{className:"screenReaderText",children:n});return(0,X.BX)("div",{style:w,children:[(0,X.tZ)("div",{style:S,children:f}),v,n&&k]})};i(736);var eX=e=>{let{data:t}=e,{contentHeight:i,contentUrl:n}=t,a=(e=>{let t=[];for(let i in e)e.hasOwnProperty(i)&&t.push("".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(e[i])));return t.join("&")})({sharing:!1,progress:!1,hide_related:!0,color:"000000",inverse:!0,auto_play:!1,show_user:!0,show_artwork:!0,visual:!0,show_teaser:!1,show_comments:!1}),o="https://w.soundcloud.com/player/?url=".concat(n,"&").concat(a),r=(0,ek.K)(i);return n?(0,X.tZ)("div",{className:"soundcloud-block",style:r,children:(0,X.tZ)("iframe",{title:"Soundcloud Iframe",width:"100%",height:"100%",scrolling:"no",frameBorder:"no",src:o})}):(0,X.tZ)("div",{className:"soundcloud-block",style:r})},eV=i(6505),eW=i.n(eV);let eG=(e,t)=>fetch(e,{method:"POST",mode:"same-origin",cache:"no-cache",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({email_address:t})}),eY=async(e,t)=>(await eG("/_api/v4/sites/".concat(e,"/subscribers"),t)).json();var eJ=i(3302);let e$=(0,ep.iv)("\r\n  position:relative;display:flex;flex-direction:column;flex:1;width:100%;");var eQ=e=>{let{customData:t,siteId:i}=e,[n,a]=(0,V.useState)({isEmailValid:!0,isLoading:!1,email:""}),o=(0,V.useRef)(null),[r,l]=(0,V.useState)(""),[s,c]=(0,V.useState)(!0),{buttonFill:d,buttonTextColor:u,buttonText:p,placeholderText:h}=t,g=(0,V.useContext)(J);(0,V.useEffect)(()=>{o.current&&o&&o.current.focus()},[o.current]);let f=(0,ep.iv)("\r\n    width:100%;display:flex;flex-direction:column;padding:16px;box-sizing:border-box;"),m=(0,ep.iv)("\r\n    height:54px;font-size:18px;outline:none;background-color:#fff;border:1px solid rgba(0,0,0,0.3);border-radius:54px;padding:0 16px;margin:0 0 16px 0;&:required{box-shadow:none;}&:focus{border-color:rgba(0,0,0,1);}&.invalid{border-color:#f63939;}&:placeholder-shown{text-overflow:ellipsis;}"),y=(0,ep.iv)("\r\n    color:#f63939;font-size:13px;margin:4px 16px;text-align:center;"),v=(0,ep.iv)("\r\n    height:54px;position:relative;color:",(0,ey.a)(u),";background:",eb(d),";border-radius:54px;border:none;outline:none;font-family:SFUIText-Bold;font-size:18px;padding:12px 16px;cursor:pointer;"),b=()=>!o.current||!1!==o.current.checkValidity(),x=async e=>{n.isLoading=!1,"error"===e.status?g.updateModalContent((0,X.BX)("div",{className:"subscribe-block-modal",children:[(0,X.tZ)("h3",{children:"Something went wrong"}),(0,X.tZ)("p",{children:e.message})]})):(n.email="",g.updateModalContent((0,X.tZ)("div",{className:"subscribe-block-modal",children:(0,X.tZ)("h3",{style:{margin:0},children:"You're all set!"})})))},w=async()=>{if(o&&i){n.isLoading=!0;try{let e=await eY(i,o.current.value);x(e)}catch(e){n.isLoading=!1,console.log(e)}}};return(0,X.tZ)("div",{css:e$,children:(0,X.BX)("form",{css:f,children:[(0,X.tZ)("input",{ref:o,css:m,className:s?"":"invalid",type:"email",value:r,placeholder:h,required:!0,onChange:e=>{l(e.target.value),c(!0)}}),n.isEmailValid?null:(0,X.tZ)("p",{css:y,children:"Please enter a valid email address."}),(0,X.BX)("button",{css:v,type:"submit",onClick:e=>{e.preventDefault(),n.isLoading||(b()?(a({...n,isEmailValid:!0}),w()):n.isEmailValid=!1)},children:[n.isLoading?(0,X.tZ)("span",{css:(0,ep.iv)("\r\n                position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;"),children:(0,X.tZ)(eW(),{css:!0,color:"#B3B3B3"})}):null,(0,X.tZ)("span",{css:(0,ep.iv)("\r\n              opacity:",n.isLoading?0:1,";"),children:p})]})]})})};i(9691);var eK=e=>{let{data:t,context:i}=e,[n,a]=(0,V.useState)({isEmailValid:!0,buttonTextSize:13,isEmailFocused:!1,isLoading:!1,email:""}),{size:o,siteId:r}=i,{buttonFill:l,buttonTextColor:s,buttonText:c,contentHeight:d,placeholderText:u}=t,p=(0,V.useRef)(null),h=(0,V.useRef)(null),g=(0,V.useContext)(J),f=o.width<=2,m={border:"1px solid ".concat(n.isEmailFocused?"rgba(0, 0, 0, 1)":"rgba(0, 0, 0, 0.3)")},y={background:eb(l),color:(0,ey.a)(s),fontSize:f?(0,eJ.TC)(10):"13px"},v=()=>{a(e=>({...e,isEmailFocused:!0}))},b=()=>{a(e=>({...e,isEmailFocused:!1}))},x=()=>!h.current||!1!==h.current.checkValidity(),w=e=>{e.preventDefault(),n.isLoading||(x()?(a(e=>({...e,isEmailValid:!0})),k()):a(e=>({...e,isEmailValid:!1})))},S=async e=>{a(e=>({...e,isLoading:!0})),"error"===e.status?g.toggleModal((0,X.BX)("div",{className:"subscribe-block-modal",children:[(0,X.tZ)("h3",{children:"Something went wrong"}),(0,X.tZ)("p",{children:e.message})]}),{snapToBottom:!0}):(a(e=>({...e,isLoading:!1,email:""})),g.toggleModal((0,X.tZ)("div",{className:"subscribe-block-modal",children:(0,X.tZ)("h3",{style:{margin:0},children:"You're all set!"})}),{snapToBottom:!0}))},k=async()=>{if(!h.current||!r)return;a({...n,isLoading:!0});let e=h.current.value;try{let t=await eY(r,e);S(t)}catch(e){a({...n,isLoading:!1})}},C=e=>{let t=e.target.value;a(e=>({...e,email:t,isEmailValid:!0}))},T=f?(0,X.tZ)("div",{className:"subscribe-block-form-wrapper",children:(0,X.tZ)("button",{ref:p,className:"subscribe-block-button",style:y,onClick:()=>{let e=(0,X.tZ)(eQ,{customData:t,siteId:r||0});g.toggleModal(e,{snapToBottom:!0})},children:c})}):(()=>{let e=["subscribe-block-form"];return n.isEmailValid||e.push("invalid"),(0,X.tZ)("div",{className:"subscribe-block-form-wrapper",children:(0,X.BX)("form",{className:e.join(" "),style:m,children:[(0,X.tZ)("input",{ref:e=>h.current=e,className:"subscribe-email-input",type:"email",placeholder:u,required:!0,value:n.email,onFocus:v,onBlur:b,onChange:C}),(0,X.tZ)("button",{className:"subscribe-block-button",style:y,onClick:w,"aria-label":"Subscribe",children:n.isLoading?(0,X.tZ)("span",{className:"subscribe-block-loading-container",children:(0,X.tZ)(eW(),{css:!0,color:"#B3B3B3"})}):(0,X.tZ)("span",{children:c})})]})})})();if(!d)return T;{let e=(0,ek.K)(d);return(0,X.tZ)("div",{className:"subscribe-block-alignment-wrapper",children:(0,X.tZ)("div",{className:"subscribe-block",style:e,children:T})})}},e0=i(8814),e1=i(1474),e2=i(6504);function e5(e,t){let i=(null==e?void 0:e.font)||t.font,n=(null==e?void 0:e.weight)||t.fontWeight,a=(0,e2.XC)(i,n);return{font:i,fontSize:(null==e?void 0:e.fontSize)||t.fontSize,fontWeight:n,foregroundFill:(null==e?void 0:e.foregroundFill)||t.foregroundFill,backgroundFill:(null==e?void 0:e.backgroundFill)||t.backgroundFill,characterSpacing:(null==e?void 0:e.characterSpacing)!=null?e.characterSpacing:t.characterSpacing,lineSpacing:(null==e?void 0:e.lineSpacing)!=null?e.lineSpacing:t.lineSpacing,paragraphSpacing:(null==e?void 0:e.paragraphSpacing)!=null?e.paragraphSpacing:t.paragraphSpacing,bulletStyle:(null==e?void 0:e.bulletStyle)||t.bulletStyle,italics:(null==e?void 0:e.italics)!=null?e.italics:a.italics,strikethrough:(null==e?void 0:e.strikethrough)||t.strikethrough,textShadow:(null==e?void 0:e.textShadow)==="none"?null:(null==e?void 0:e.textShadow)||t.textShadow,underline:(null==e?void 0:e.underline)||t.underline}}function e3(e,t){if(!e)return;let i={};if(e.font&&e.font!==t.font&&(i.font=e.font),e.fontSize&&e.fontSize!==t.fontSize&&(i.fontSize=e.fontSize),e.weight&&e.weight!==t.fontWeight&&(i.weight=e.weight),null!=e.italics&&e.italics!==t.italics&&(i.italics=e.italics),e.underline&&e.underline!==t.underline&&(i.underline=e.underline),e.strikethrough&&e.strikethrough!==t.strikethrough&&(i.strikethrough=e.strikethrough),e.foregroundFill&&!(0,em.Pt)(e.foregroundFill,t.foregroundFill)&&(i.foregroundFill=e.foregroundFill),!e.backgroundFill||t.backgroundFill&&(0,em.Pt)(e.backgroundFill,t.backgroundFill)||(i.backgroundFill=e.backgroundFill),null!=e.paragraphSpacing&&e.paragraphSpacing!==t.paragraphSpacing&&(i.paragraphSpacing=e.paragraphSpacing),null!=e.lineSpacing&&e.lineSpacing!==t.lineSpacing&&(i.lineSpacing=e.lineSpacing),null!=e.characterSpacing&&e.characterSpacing!==t.characterSpacing&&(i.characterSpacing=e.characterSpacing),e.bulletStyle&&e.bulletStyle!==t.bulletStyle&&(i.bulletStyle=e.bulletStyle),!e.textShadow||"none"===e.textShadow||t.textShadow&&(0,em.ET)(e.textShadow,t.textShadow)||(i.textShadow=e.textShadow),0!==Object.keys(i).length)return i}let e4=new Set(["backgroundFill","bulletStyle","strikethrough","underline"]);function e7(e){if("text"===e.content.type&&""===e.content.value)return!0;if("children"===e.content.type){if(0===e.content.value.length)return!0;if(1===e.content.value.length)return e7(e.content.value[0])}return!1}let e6=e=>{let{children:t,utf:i}=e;return i.attachment?(0,X.tZ)("a",{href:i.attachment.value,children:t}):(0,X.tZ)(X.HY,{children:t})},e8=e=>{let{attachment:t,style:i,text:n}=e;return t?(0,X.tZ)("a",{href:t.value,className:"utf-range",style:i||{},children:n}):i?(0,X.tZ)("span",{className:"utf-range",style:i,children:n}):n},e9=e=>{let{inline:t,isFirstLine:i,isLastLine:n,parentStyle:a,purpose:o,utf:r,context:l,preventWrap:s}=e,c=t?"span":(0,e0.Ot)(o),d="".concat(c),u=t?null:function(e,t){let i=function e(t,i){if("text"===t.content.type)return function(e,t){let i=(null==e?void 0:e.font)||t.font,n=(null==e?void 0:e.fontSize)||t.fontSize,a=(null==e?void 0:e.lineSpacing)!=null?e.lineSpacing:t.lineSpacing,o=(0,e2.jG)(i,n);return{height:a*n,adjustedHeight:o}}(t.style,i);{let n=e5(t.style,i),a=t.content.value.map(t=>e(t,n));return{height:Math.max(0,...a.map(e=>e.height)),adjustedHeight:Math.max(0,...a.map(e=>e.adjustedHeight))}}}(e,t),n=(0,e1.Z)((i.adjustedHeight-i.height)/2,2);return{offset:n,isLineHeightGreaterThanLineSpacing:n>0}}(r,a);switch(r.content.type){case"text":{var p;let e=""===r.content.value,o=e?(0,X.tZ)("br",{}):r.content.value,c=null,h=null;u&&(u.isLineHeightGreaterThanLineSpacing?(!e||i)&&(c=u.offset,h=u.offset):(i&&(h=u.offset),n&&(c=u.offset)));let g=t&&(null==(p=r.style)||0===Object.keys(p).length)?null:(0,e0.G)(r.style,a,!!t,c,h,l.style,s);if(t)return(0,X.tZ)(e8,{attachment:r.attachment,style:g,text:r.content.value});return(0,X.tZ)(e6,{utf:r,children:(0,X.tZ)(d,{className:t?"utf-range":"utf-paragraph",style:g||{},children:o})})}case"children":{let e=r.content.value,n=(null==u?void 0:u.isLineHeightGreaterThanLineSpacing)?u.offset:null,o=(null==u?void 0:u.isLineHeightGreaterThanLineSpacing)||i?null==u?void 0:u.offset:null,s=(0,e0.G)(r.style,a,!!t,n,o),c=e5(r.style,a);return(0,X.tZ)(d,{className:"utf-paragraph",style:s,children:e.map((e,t)=>(0,X.tZ)(e9,{inline:!0,isFirstLine:!1,parentStyle:c,utf:e,context:l},"child-".concat(t)))})}}};i(4403);var te=e=>{let{data:t,context:i}=e,{horizontalAlignment:n,isLegacyButton:a,preventSelection:o,preventWrap:r,purpose:l,utf:s}=t,{style:c}=i,d=(0,V.useMemo)(()=>{var e;return n||(null==c?void 0:null===(e=c.textAlignment)||void 0===e?void 0:e.horizontal)||em.H.Horizontal.Left},[n,c]),u=(0,V.useMemo)(()=>a?{paddingLeft:"6px",paddingRight:"6px"}:{},[a]),p=(0,V.useMemo)(()=>(0,eA.j_)(c),[c]),h=(0,V.useMemo)(()=>(function e(t){if("text"===t.content.type){let e=t.content.value.split("\n");if(e.length>1&&""===e.join("")&&e.shift(),!(e.length<2))return e.map((e,i)=>{let n={...t};return n.content={type:"text",value:e},n});{let i={...t};return i.content={type:"text",value:e[0]},[i]}}{let i=t.content.value;if(0===i.length){let e={...t};return e.content={type:"text",value:""},[e]}if(1===i.length){let n={...t},a=i[0];return n.content={...a.content},n.style={...t.style,...a.style},e(n)}{let n=[],a=[],o=!0,r=()=>{let e={...t};if(0===a.length)e.content={type:"text",value:""};else if(1===a.length){let t=a[0];e.content={...t.content},e.style={...e.style,...t.style},e.attachment=t.attachment}else e.content={type:"children",value:a};n.push(e),a=[]};return i.forEach(t=>{let i=e(t);1===i.length?!e7(i[0])||o?(a.push(i[0]),o=!1):(o=!0,r()):i.length>1&&i.forEach((e,t)=>{t<i.length-1?(e7(e)?o=!o:(a.push(e),o=!1),r()):!e7(e)||o?(a.push(e),o=!1):o=!0})}),(a.length>0||o)&&r(),n}}})(function e(t){switch(t.content.type){case"text":return t;case"children":let i=t.content.value.reduce((t,i)=>{let n=e(i);switch(n.content.type){case"text":t.push(n);break;case"children":n.content.value.forEach(e=>{let i={...e};i.style={...n.style,...e.style},t.push(i)})}return t},[]),n={...t};return n.content.value=i,n}}(s)).map(e=>(function(e,t){switch(e.content.type){case"text":return e;case"children":let i={...e},n=e.content.value.map(e=>({...e})),a={font:t.font,fontSize:t.fontSize,weight:t.fontWeight||void 0,italics:t.italics,underline:t.underline||void 0,strikethrough:t.strikethrough||void 0,foregroundFill:t.foregroundFill,backgroundFill:t.backgroundFill||void 0,paragraphSpacing:t.paragraphSpacing,lineSpacing:t.lineSpacing,characterSpacing:t.characterSpacing,bulletStyle:t.bulletStyle||void 0,textShadow:t.textShadow||void 0},o=e.style,r=n.reduce((e,t)=>{let i=Object.entries({...a,...o,...t.style}).filter(e=>{let[t,i]=e;return void 0!==i}).reduce((e,t)=>{let[i,n]=t;return e[i]=n,e},{});return t.style=i,Object.entries(function(e){let t={...e};return(t.font||t.fontSize||t.italics||t.weight)&&(t.fontInfo={font:t.font,fontSize:t.fontSize,italics:t.italics,weight:t.weight},delete t.font,delete t.fontSize,delete t.italics,delete t.weight),t}(i)).forEach(t=>{let[i,n]=t;if(e4.has(i))return;let a=JSON.stringify(n);e[i]?e[i][a]?e[i][a]=e[i][a]+1:e[i][a]=1:e[i]={[JSON.stringify(n)]:1}}),e},{}),l=Object.keys(r).reduce((e,t)=>{let i=Object.entries(r[t]).sort((e,t)=>{let[i,n]=e,[a,o]=t;return o-n})[0][0];return e[t]=JSON.parse(i),e},{});return i.content={type:"children",value:n},i.style={...l,...l.fontInfo,fontInfo:void 0},i}})(e,p)).map(e=>(function e(t,i){let n={...t};if("text"===t.content.type)n.style=e3(t.style,i);else{n.style=e3(t.style,i);let a=e5(n.style,i);n.content={type:"children",value:t.content.value.map(t=>e(t,a))}}return n})(e,p)),[s,p]),g=(0,V.useMemo)(()=>{var e;if(h.length<2)return{};let t=(null===(e=s.style)||void 0===e?void 0:e.paragraphSpacing)!=null?s.style.paragraphSpacing:null==c?void 0:c.paragraphSpacing;return t?{display:"flex",flexDirection:"column",rowGap:(0,eJ.wN)(t)}:{}},[h,s,c]),f=(0,V.useMemo)(()=>{let e=function(e,t){let i=function e(t){var i,n,a,o;if("text"===t.content.type)return{font:(null===(i=t.style)||void 0===i?void 0:i.font)||null,fontSize:(null===(n=t.style)||void 0===n?void 0:n.fontSize)||null};{let i=t.content.value[0],n=i?e(i):{font:null,fontSize:null};return{font:n.font||(null===(a=t.style)||void 0===a?void 0:a.font)||null,fontSize:n.fontSize||(null===(o=t.style)||void 0===o?void 0:o.fontSize)||null}}}(e),n=(null==i?void 0:i.font)||(null==t?void 0:t.font),a=(null==i?void 0:i.fontSize)||(null==t?void 0:t.fontSize);return n&&a?{font:n,fontSize:a}:null}(s,c);if(!e)return{};let t=(0,e2._1)(e.font,e.fontSize);return t?t>0?{paddingTop:(0,eJ.wN)(t)}:{paddingBottom:(0,eJ.wN)(-1*t)}:{}},[s,c,d]),m={textAlign:function(e){switch(e){case em.H.Horizontal.Center:return"center";case em.H.Horizontal.Justified:return"justified";case em.H.Horizontal.Left:return"left";case em.H.Horizontal.Right:return"right"}}(d),textOverflow:r?"ellipsis":void 0,userSelect:o?"none":void 0,whiteSpace:r?"pre":void 0,...u,...g,...f};return(0,X.tZ)("div",{className:"text-block",style:m,children:h.map((e,t)=>(0,X.tZ)(e9,{isFirstLine:0===t,isLastLine:t===h.length-1,parentStyle:p,purpose:l,utf:e,context:i,preventWrap:r},"paragraph=".concat(t)))})};i(7983);var tt=e=>{let{data:t}=e,{contentHeight:i,contentMode:n,placeholderUrl:a,position:o,videoUrl:r}=t,{query:{snapshot:l}}=(0,eI.useRouter)(),s=(0,ek.K)(i),c=eZ(n,o),d={...s,...c};return l?(0,X.tZ)("img",{className:"video-block",style:d,src:a}):(0,X.tZ)("video",{className:"video-block",style:d,muted:!0,playsInline:!0,autoPlay:!0,loop:!0,children:(0,X.tZ)("source",{type:"video/mp4",src:r,placeholder:a})})},ti=i(8333);i(878);var tn=e=>{let{data:t}=e,{artworkUrl:i,contentHeight:n,contentUrl:a,creatorName:o,title:r}=t,[l,s]=(0,V.useState)(),[c,d]=(0,V.useState)(!1),u=(0,V.useRef)(null),p=(0,ek.K)(n),h=()=>{let e=new ti.Z(u.current,{url:a});e.on("error",e=>{console.log("Vimeo Error:",e)}),s(e)};return(0,V.useEffect)(()=>{u.current&&a&&requestAnimationFrame(()=>h())},[u.current]),(0,X.BX)("div",{className:"vimeo-block",style:p,children:[(0,X.tZ)("div",{className:"vimeo-video",style:{display:c?"inherit":"none"},ref:u}),(0,X.tZ)("div",{className:"vimeo-overlay-container",style:{backgroundImage:"url(".concat(i,")"),display:c?"none":"block"},onClick:()=>{l&&(l.play(),d(!0))},children:(0,X.BX)("div",{className:"vimeo-overlay",children:[(0,X.tZ)("svg",{className:"vimeo-play-button",width:"229",height:"229",viewBox:"0 0 229 229",xmlns:"http://www.w3.org/2000/svg",children:(0,X.tZ)("path",{d:"M20 0l188.2 114.5L20 229",fill:"#FFF",fillRule:"evenodd"})}),(0,X.BX)("div",{className:"vimeo-label",children:[(0,X.tZ)("div",{className:"vimeo-title",children:r}),(0,X.tZ)("div",{children:o})]})]})})]})};function ta(e){return(null==e?void 0:e.value)?(0,eJ.TC)(e.value):"0"}function to(e){let t=eO((0,em.JR)(e));return t.padding=function(e){if(!e)return"0";let t=ta(e.bottom),i=ta(e.left),n=ta(e.right);return[ta(e.top),n,t,i].join(" ")}(e),t}function tr(e){return e?"rounded"===e?"100vmax":(0,eJ.TC)(e):"0"}function tl(e,t){if(t)return"".concat((0,eJ.TC)(e)," ").concat(t.style," ").concat((0,ey.a)(t.color))}function ts(e){let t=tr(null==e?void 0:e.topLeft),i=tr(null==e?void 0:e.topRight),n=tr(null==e?void 0:e.bottomLeft),a=tr(null==e?void 0:e.bottomRight);return[i,n,a].every(e=>e===t)?t:"".concat(t," ").concat(i," ").concat(a," ").concat(n)}var tc=e=>{let t=document.getSelection(),i=document.createElement("textarea");i.textContent=e,document.body.appendChild(i),null==t||t.removeAllRanges(),i.select(),document.execCommand("copy"),null==t||t.removeAllRanges(),document.body.removeChild(i)};function td(e,t){return{backgroundSize:null!=t.backgroundSize?t.backgroundSize:e.backgroundSize,filter:[e.filter,t.filter].filter(Boolean).join(" ")||void 0,opacity:null!=t.opacity?t.opacity:e.opacity,transform:[e.transform,t.transform].filter(Boolean).join(" ")||void 0}}function tu(e){return e?[e]:void 0}function tp(e){let t=[];return e.backgroundSize&&t.push("background-size: ".concat(e.backgroundSize,";")),e.filter&&t.push("filter: ".concat(e.filter,";")),e.opacity&&t.push("opacity: ".concat(e.opacity,";")),e.transform&&t.push("transform: ".concat(e.transform,";")),t.join("\n")}function th(e,t){return"animate-".concat(e,"-").concat(t)}function tg(e){return e.length<1?()=>Promise.resolve():1===e.length?e[0]:async(t,i)=>{for(let n of e)await n(t,i)}}function tf(e,t){if(!e||e.length<1)return;let i=e.map((e,i)=>(function(e,t,i){switch(e.type){case em.aU.Effect.EffectType.AddToCart:return{start:async t=>{t.addProductToCart(e.id)}};case em.aU.Effect.EffectType.Animate:return{start:async(n,a)=>{let o=th(t,i);await n.startAnimation(o),(0,em.O$)(e.animation,em.ru.Confetti)&&a&&((0,eL.Z)(),n.startConfetti(e.animation.duration,{x:a.clientX,y:a.clientY})),await new Promise(t=>setTimeout(t,e.animation.duration)),await n.endAnimation(o)},end:async e=>{let n=th(t,i);e.endAnimation(n)}};case em.aU.Effect.EffectType.CheckoutPaypal:return{start:async t=>{t.checkoutPayPal(e.price)}};case em.aU.Effect.EffectType.Download:return{start:async t=>{t.startDownload(e.id)}};case em.aU.Effect.EffectType.Lightbox:return{start:async e=>{e.openLightbox()}};case em.aU.Effect.EffectType.LinkToEmail:return{start:async()=>{var t;null===(t=window)||void 0===t||t.open(e.destination,"_self")}};case em.aU.Effect.EffectType.LinkToPhone:return{start:async()=>{var t;null===(t=window)||void 0===t||t.open(e.destination,"_self")}};case em.aU.Effect.EffectType.LinkToSMS:return{start:async()=>{var t,i;(null===(i=window)||void 0===i?void 0:null===(t=i.matchMedia("(min-width: 1200pt)"))||void 0===t?void 0:t.matches)&&(tc(e.destination),alert("Phone number: ".concat(e.destination," copied to clipboard"))),window.open(e.destination,"_blank")}};case em.aU.Effect.EffectType.LinkToWeb:return{start:async()=>{window&&(e.openNew?window.open(e.destination,"_blank"):window.location.href=e.destination)}};case em.aU.Effect.EffectType.PreloadDownload:return{start:async t=>{t.loadDownload(e.id)},end:async t=>{t.unloadDownload(e.id)}};case em.aU.Effect.EffectType.PreloadPayPal:return{start:async e=>{e.loadPayPal()}};case em.aU.Effect.EffectType.PreloadProduct:return{start:async t=>{t.loadProduct(e.id)},end:async t=>{t.unloadProduct(e.id)}}}})(e,t,i)),n=i.map(e=>e.start),a=i.map(e=>e.end).filter(Boolean);return{start:tg(n),end:a.length>0?tg(a):void 0}}let tm=(0,V.forwardRef)((e,t)=>{let{children:i,onAppear:n,onDisappear:a}=e,o=(0,V.useRef)(null),r=(0,V.useRef)(!1);return(0,V.useEffect)(()=>{o.current=new IntersectionObserver(e=>{let[t]=e,i=t.isIntersecting;i!==r.current&&(i&&n?n():!i&&a&&a()),r.current=i})},[]),(0,V.useEffect)(()=>{if(t){var e;return null==o||null===(e=o.current)||void 0===e||e.observe(t.current),()=>{var e;null==o||null===(e=o.current)||void 0===e||e.disconnect()}}},[t,o]),i});var ty=i(2399);let tv=(0,V.createContext)({openPaymentPopup:()=>Promise.resolve(null),closePaymentPopup:()=>{},checkout:()=>{}}),tb=e=>{let{children:t,closePaymentPopup:i,openPaymentPopup:n,initiateCheckout:a}=e,o=(0,ty.g1)();return(0,X.tZ)(tv.Provider,{value:{checkout:e=>{let{lineItems:t}=null==o?void 0:o.fetchCart();a(e,t)},closePaymentPopup:i,openPaymentPopup:n},children:t})},tx=()=>(0,V.useContext)(tv);var tw=i(1998);let tS=(0,tw.Z)("div",{target:"e1w4jtm0"})("min-height:400px;font-size:24;padding:20px;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;");var tk=()=>(0,X.BX)(tS,{children:[(0,X.tZ)("h1",{children:"This site is not accepting orders"}),(0,X.tZ)("p",{children:"This merchant has not finished setting up their account. If this is your site, return to the commerce screen in the Universe app to finish configuration."})]});let tC=async(e,t)=>{let i=await fetch("/_api/v1/sites/".concat(e,"/downloads/").concat(t),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}}),n=await i.json();return{id:n.id,name:n.name,productID:n.product_id,fileSizeBytes:n.file_size_bytes}};var tT=i(2244);let tI=!1,tZ=(e,t)=>new Promise((i,n)=>{let a=window;if((null==a?void 0:a.paypal)&&i(a.paypal),!tI){let{clientId:i,bnCode:o}=tT.environment.paypal,r=document.createElement("script");r.id="paypal-sdk",r.async=!0,r.src="https://www.paypal.com/sdk/js?enable-funding=paylater&client-id=".concat(i,"&merchant-id=").concat(t,"&currency=").concat(e.toUpperCase()),r.dataset.partnerAttributionId=o,r.onload=()=>(null==a?void 0:a.onPayPalReady)&&a.onPayPalReady(),r.onerror=()=>n(),tI=!0,document.body.appendChild(r)}let o=a.onPayPalReady;a.onPayPalReady=()=>{o&&o(),a.paypal?i(a.paypal):n(Error("Something went wrong loading PayPal"))}}),tB=async e=>{let t=await fetch("/_api/v1/sites/".concat(e,"/payment-integrations?type=paypal"),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}}),i=await t.json();if(!t.ok){let e="".concat(t.status);throw i.message&&(e=e.concat(": ".concat(i.message))),Error(e)}let n=i[0];if(!n)throw Error("No paypal integration found for site");return{id:n.id,siteId:n.site_id,status:n.status,merchantId:n.integration_merchant_id,merchantEmail:n.integration_merchant_email,primaryCurrency:n.primary_currency}};function tP(e){var t;return t=e/100,new Intl.NumberFormat(void 0,{style:"currency",currency:"USD"}).format(t)}let tF=(0,tw.Z)("div",{target:"e11ffivs0"})(e=>e.styles,"  svg{transform:rotate(0deg);animation:",e=>e.rotate," 500ms infinite linear;}"),tH=(0,tw.Z)("svg",{target:"e11ffivs1"})("width:100%;height:100%;"),tR=(0,ep.F4)("0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"),tL=e=>{let{color:t="#fff"}=e;return(0,X.tZ)(tF,{rotate:tR,...e,children:(0,X.tZ)(tH,{x:"0px",y:"0px",viewBox:"0 0 100 100",children:(0,X.tZ)("path",{fill:t,d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"})})})};var tM=i(2257);let tE=(0,tw.Z)("div",{target:"e1y7cn9e0"})("transition:opacity 500ms;opacity:",e=>{let{isVisible:t}=e;return t?1:0},";"),tN=(0,tw.Z)("div",{target:"e1y7cn9e1"})("display:flex;flex-direction:column;"),tA=(0,tw.Z)("span",{target:"e1y7cn9e2"})("margin:0 0 8px;font-size:28px;line-height:28px;text-align:center;font-family:SFUIText-Bold;"),tD=(0,tw.Z)("span",{target:"e1y7cn9e3"})("color:#5c5c5c;font-family:SFUIText-Regular;font-style:normal;font-weight:400;font-size:17px;line-height:24px;max-width:100%;overflow:hidden;white-space:nowrap;text-align:center;text-overflow:ellipsis;"),t_=(0,tw.Z)("div",{target:"e1y7cn9e4"})("overflow:auto;padding:16px;height:100%;max-height:",e=>e.maxHeightString,";@media (max-width:",tM.$d.MAX_WIDTH_MOBILE,"px){max-height:calc(",e=>e.maxHeightString," - 100px);}"),tO=(0,tw.Z)("div",{target:"e1y7cn9e5"})("display:flex;flex-direction:column;pointer-events:auto;justify-content:center;align-items:center;padding:0 16px 16px;"),tz=(0,tw.Z)("div",{target:"e1y7cn9e6"})("font-size:32px;line-height:38px;width:250px;text-align:center;font-family:SFUIText-Bold;color:rgba(0,0,0,0.8);padding-top:24px;padding-bottom:8px;"),tU=(0,tw.Z)("div",{target:"e1y7cn9e7"})("font-size:32px;line-height:38px;margin-top:10px;width:250px;text-align:center;font-family:SFUIText-Bold;color:rgba(255,0,0,0.8);"),tq=(0,tw.Z)("div",{target:"e1y7cn9e8"})("font-size:17px;line-height:22px;margin-top:14px;width:250px;text-align:center;font-family:SFTextRegular;color:rgba(255,0,0,0.8);"),tj=(0,tw.Z)(tL,{target:"e1y7cn9e9"})("margin:0 auto;max-width:132px;overflow:hidden;"),tX=(0,tw.Z)("div",{target:"e1y7cn9e10"})("font-family:SFTextRegular;font-size:15px;width:299px;color:rgba(0,0,0,0.8);line-height:20px;margin-bottom:8px;"),tV=(0,tw.Z)("div",{target:"e1y7cn9e11"})('text-align:center;height:14px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:11px;font-weight:normal;font-style:italic;font-stretch:normal;color:#7b8388;'),tW=(0,tw.Z)("span",{target:"e1y7cn9e12"})("vertical-align:middle;height:16px;line-height:16px;font-size:11px;"),tG=(0,tw.Z)("img",{target:"e1y7cn9e13"})("display:inline-block;vertical-align:middle;height:16px;line-height:16px;font-size:11px;"),tY=(0,tw.Z)("div",{target:"e1y7cn9e14"})("padding-bottom:56px;");var tJ=e=>{let{error:t}=e;return(0,X.tZ)(tE,{isVisible:!0,children:(0,X.BX)(tO,{children:[(0,X.tZ)(tU,{children:"Something went wrong"}),t&&(0,X.tZ)(tq,{children:t})]})})},t$=e=>{let{orderDetails:t}=e;return(0,X.tZ)(tE,{isVisible:!0,children:(0,X.BX)(tO,{children:[(0,X.tZ)("svg",{style:{width:"40px",height:"40px"},viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,X.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 22c0 12.128 10.011 22 22.31 22 10.262 0 19.164-6.84 21.631-16.641.25-.952-.322-1.904-1.287-2.15a1.782 1.782 0 00-2.18 1.269C38.4 34.692 30.926 40.439 22.31 40.439c-10.332 0-18.735-8.285-18.735-18.474 0-10.19 8.402-18.475 18.735-18.475 6.48 0 12.477 3.302 15.884 8.7L21.595 28.558a.567.567 0 01-.786 0l-7.83-7.721a1.788 1.788 0 00-2.539 0 1.729 1.729 0 000 2.503l7.794 7.72a4.113 4.113 0 002.932 1.2c1.073 0 2.11-.423 2.968-1.2L41.58 13.857a1.735 1.735 0 00.5-1.607 1.729 1.729 0 00-.213-.861C37.935 4.372 30.426 0 22.31 0 10.011 0 0 9.872 0 22z",fill:"#00EC34"})}),(0,X.tZ)(tz,{children:"Payment successful"}),(0,X.tZ)(tY,{children:t.payer.email_address&&(0,X.BX)(tX,{children:["A confirmation email has been sent to ",t.payer.email_address]})}),(0,X.BX)(tV,{children:[(0,X.tZ)(tW,{children:"Powered by "}),(0,X.tZ)(tG,{src:"/static/paypal-logo.svg"})]})]})})};function tQ(e){let{paypalMerchantId:t,paymentIntegrationId:i,onError:n,onCardOpen:a,onCardClose:o,onSuccess:r,price:l,sdk:s}=e,c=(0,V.useRef)(null),d=(0,V.useRef)(!1),u="paypal-buttons-container";return(0,V.useEffect)(()=>{c.current&&i&&!d.current&&(d.current=!0,s.Buttons({style:{layout:"vertical",size:"responsive"},onCancel:()=>{o()},onClick:e=>{"card"===e.fundingSource&&a()},createOrder:async(e,n)=>{let a="Payment on ".concat(window.location.host),o="".concat(a.substring(0,124),"..."),r=await fetch("/_api/v1/payment-integrations/paypal/orders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({purchase_units:[{amount:{currency_code:l.currency.toUpperCase(),value:"".concat(l.amount)},custom_id:i.toString(),description:o,payee:{merchant_id:t},reference_id:i.toString()}]})});return(await r.json()).id},onApprove:(e,t)=>fetch("/_api/v1/payment-integrations/paypal/orders/".concat(e.orderID,"/capture"),{method:"POST"}).then(async e=>{let i=await e.json();if(!e.ok){let{message:n}=i;if(422===e.status&&"INSTRUMENT_DECLINED"===n)return t.restart();if(n)throw Error("Sorry, your transaction could not be processed. ".concat(n))}r(i)}),onError:e=>{n(e)}}).render("#".concat(u)))},[i,c]),(0,X.tZ)("div",{id:u,ref:c})}var tK=()=>{let e=(0,V.useRef)(null),[t,i]=(0,V.useState)({height:0,width:0}),n=(0,V.useCallback)(()=>{if(!e.current)return;let n=e.current.offsetHeight,a=e.current.offsetWidth;(n!==t.height||a!==t.width)&&i({height:n,width:a})},[t.height,t.width]);return(0,V.useEffect)(()=>{if(!e||!e.current)return;let t=new ResizeObserver(n);return t.observe(e.current),()=>t.disconnect()},[e,n]),{ref:e,...t}};(u=H||(H={}))[u.buttons=0]="buttons",u[u.card=1]="card",u[u.closing=2]="closing";let t0=(0,V.forwardRef)((e,t)=>{var i;let{loadInfo:n,price:a}=e,[o,r]=(0,V.useState)(0),[l,s]=(0,V.useState)(null),[c,d]=(0,V.useState)(null),[u,p]=(0,V.useState)(),[h,g]=(0,V.useState)(null),{ref:f,height:m}=tK(),{displayString:y,amount:v}=function(e){let t=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currency||"USD",currencyDisplay:"narrowSymbol"}),i=t.resolvedOptions().minimumFractionDigits,n=e.amount/10**i;return{displayString:t.format(n),amount:n}}(a);(0,V.useEffect)(()=>{n.then(e=>s(e)).catch(e=>d(e))},[n]);let b="calc(100vh - ".concat(m||76,"px - ").concat(60,"px - ").concat(20,"px)"),x=!l&&!c&&!h&&!u,w=l&&!h&&!u;return(0,X.BX)(X.HY,{children:[x&&(0,X.BX)(X.HY,{children:[(0,X.BX)(tN,{children:[(0,X.tZ)(tA,{children:y}),(0,X.tZ)(tD,{children:a.currency.toUpperCase()})]}),(0,X.tZ)(t_,{maxHeightString:b,children:(0,X.tZ)(tj,{})})]}),w&&(0,X.BX)(tE,{isVisible:0===o||1===o,children:[(0,X.BX)(tN,{ref:f,children:[(0,X.tZ)(tA,{children:y}),(0,X.tZ)(tD,{children:a.currency.toUpperCase()})]}),(0,X.tZ)(t_,{maxHeightString:b,children:(0,X.tZ)(tQ,{paypalMerchantId:l.payPalMerchantId,paymentIntegrationId:l.integrationId,price:{amount:v,currency:a.currency},sdk:l.sdk,onCardOpen:()=>r(1),onCardClose:()=>r(0),onSuccess:function(e){r(2),setTimeout(()=>p(e),500)},onError:function(e){setTimeout(()=>g(e),500)}})})]}),u&&(0,X.tZ)(X.HY,{children:(0,X.tZ)(t$,{orderDetails:u})}),(c||h)&&(0,X.tZ)(X.HY,{children:(0,X.tZ)(tJ,{error:null===(i=c||h)||void 0===i?void 0:i.message})})]})});var t1=i(745),t2=i(9844);let t5={angle:167,spread:360,startVelocity:10,elementCount:40,dragFriction:.05,stagger:0,width:"15px",height:"15px",colors:["#FF3A3A","#FFE400","#2C5AFF"]};var t3=e=>{let{position:t}=e,[i,n]=(0,V.useState)(!1);(0,V.useEffect)(()=>{n(!0)},[]);let a={position:"absolute",display:"block",top:t.y,left:t.x};return(0,X.tZ)("span",{style:a,children:(0,X.tZ)(t2.Z,{config:t5,active:!!i})})};let t4=V.createContext({addProductToCart:()=>{},checkoutPayPal:()=>{},loadDownload:()=>Promise.reject(Error("Something went wrong")),loadPayPal:()=>Promise.resolve(),loadProduct:()=>Promise.resolve(null),startConfetti:()=>{},startDownload:()=>Promise.reject(Error("Something went wrong")),unloadDownload:()=>{},unloadProduct:()=>{}}),t7=e=>{let{siteId:t,children:i}=e,n=(0,ty.g1)(),a=(0,V.useContext)(J),o=tx(),r=(0,V.useRef)(new Map),l=(0,V.useRef)(null),s=(0,V.useRef)(new Map),c=e=>{let i=r.current.get(e);if(i)return i;let n=tC(t,e).then(e=>(e.productID&&u(e.productID).catch(()=>{}),e));return r.current.set(e,n),n},d=()=>{if(l.current)return l.current;let e=tB(t).then(async e=>{let t=await tZ(e.primaryCurrency,e.merchantId);return{integrationId:e.id,payPalMerchantId:e.merchantId,sdk:t}});return l.current=e,e},u=e=>{let t=s.current.get(e);if(t)return t;if(!n)return Promise.reject(Error("This site is not accepting orders"));let i=n.getProductInfo(e);return s.current.set(e,i),i},p=e=>{},h=e=>{},g=(e,t,i)=>{if(!n){a.toggleModal((0,X.tZ)(tk,{}));return}o.openPaymentPopup(u(e),h(e),t,i)};return(0,X.tZ)(t4.Provider,{value:{addProductToCart:e=>{g(e,!1)},checkoutPayPal:e=>{let t=(0,X.tZ)(t0,{price:e,loadInfo:d()});a.toggleModal(t,{snapToBottom:!0})},loadDownload:e=>c(e),loadPayPal:()=>d().then(()=>{}),loadProduct:e=>u(e).catch(()=>null),startConfetti:(e,t)=>{let i=document.createElement("div");document.body.appendChild(i),(0,t1.createRoot)(i).render((0,X.tZ)(t3,{position:t})),setTimeout(()=>{null==i||i.remove()},e)},startDownload:async e=>{let i=await c(e);if(!i.fileSizeBytes){alert("No files associated with download");return}let{productID:n}=i;if(n)g(n,!0,"We've sent a confirmation email and a download link to");else{let i=document.createElement("a");i.href="/_api/v1/sites/".concat(t,"/downloads/").concat(e,"/data"),i.click()}},unloadDownload:e=>{p(e)},unloadProduct:e=>{h(e)}},children:i})};var t6=e=>{var t;let i,n,a,o,r,l,{actions:s,children:c,className:d,containerStyles:u,id:p}=e,[h,g]=(0,V.useState)([]),f=(0,V.useRef)(null),m=(0,V.useContext)(t4),y={addProductToCart:e=>m.addProductToCart(e),checkoutPayPal:e=>m.checkoutPayPal(e),endAnimation:async e=>{await g(t=>t.includes(e)?t.filter(t=>t!==e):t)},loadDownload:e=>m.loadDownload(e),loadPayPal:()=>m.loadPayPal(),loadProduct:e=>m.loadProduct(e),openLightbox:()=>{},startAnimation:async e=>{await g(t=>t.includes(e)?t:[...t,e])},startConfetti:(e,t)=>m.startConfetti(e,t),startDownload:e=>m.startDownload(e),unloadDownload:e=>m.unloadDownload(e),unloadProduct:e=>m.unloadProduct(e)},v=(t=s)?{appear:tf(t[em.aU.Trigger.Appear],em.aU.Trigger.Appear),hover:tf(t[em.aU.Trigger.Hover],em.aU.Trigger.Hover),tap:tf(t[em.aU.Trigger.Tap],em.aU.Trigger.Tap)}:{},b=function(e){var t;if(e)return null==(t=e[em.aU.Trigger.Tap])?void 0:t.map(e=>(function(e){switch(e.type){case em.aU.Effect.EffectType.LinkToEmail:case em.aU.Effect.EffectType.LinkToPhone:case em.aU.Effect.EffectType.LinkToSMS:return{destination:e.destination};case em.aU.Effect.EffectType.LinkToWeb:return{destination:e.destination,target:e.openNew?"_blank":void 0,rel:e.openNew?"noopener noreferrer":void 0};default:return}})(e)).find(e=>!!e)}(s),x=null;v.tap&&(i=e=>{var t;return e.preventDefault(),null===(t=v.tap)||void 0===t||t.start(y,e),!1}),v.hover&&(n=e=>{var t;null===(t=v.hover)||void 0===t||t.start(y,e)},v.hover.end&&(a=e=>{var t;(null===(t=v.hover)||void 0===t?void 0:t.end)&&v.hover.end(y,e)})),v.appear&&(o=()=>{var e;null===(e=v.appear)||void 0===e||e.start(y)},v.appear.end&&(r=()=>{var e;(null===(e=v.appear)||void 0===e?void 0:e.end)&&v.appear.end(y)}),x=f);let w=function(e){if(!e)return;let t=[];if([em.aU.Trigger.Appear,em.aU.Trigger.Hover,em.aU.Trigger.Tap].forEach(i=>{let n=e[i];n&&!(n.length<1)&&n.forEach((e,n)=>{e.type==em.aU.Effect.EffectType.Animate&&t.push([e.animation,th(i,n)])})}),!(t.length<1))return t.flatMap(e=>{let[t,i]=e;return function(e,t){let i=function e(t){switch(t.type){case em.ru.Color:return tu(function(e){let t=(0,em.jn)(e)?"brightness(50%)":"brightness(110%)",i="brightness(100%)";return{base:{filter:i},frames:[{percent:0,styling:{filter:i}},{percent:10,styling:{filter:t}},{percent:30,styling:{filter:t}},{percent:40,styling:{filter:i}}]}}(t.options.color));case em.ru.Confetti:return tu(void 0);case em.ru.Group:return function(t){let i=t.flatMap(t=>e(t)).filter(Boolean);return i.length>0?i:void 0}(t.options);case em.ru.Move:switch(t.options){case em.M$.Bounce:return tu({base:{transform:"translateY(0px)"},frames:[{percent:0,styling:{transform:"translateY(0px)"}},{percent:20,styling:{transform:"translateY(10px)"}},{percent:50,styling:{transform:"translateY(0px)"}}]});case em.M$.Jump:return tu({base:{transform:"translateY(0px)"},frames:[{percent:0,styling:{transform:"translateY(0px)"}},{percent:20,styling:{transform:"translateY(-10px)"}},{percent:50,styling:{transform:"translateY(0px)"}}]});case em.M$.Shake:return tu({base:{transform:"translateX(0px)"},frames:[{percent:0,styling:{transform:"translateX(0px)"}},{percent:10,styling:{transform:"translateX(-8px)"}},{percent:15,styling:{transform:"translateX(8px)"}},{percent:30,styling:{transform:"translateX(-5px)"}},{percent:40,styling:{transform:"translateX(0px)"}},{percent:100,styling:{transform:"translateX(0px)"}}]})}case em.ru.Ripple:return tu(function(e){let t=(0,em.jn)(e)?"#000":"#FFF";return{additionalClassName:"::after",additionalCss:'\n    position: absolute;\n    display: block;\n    top: 0;\n    left: 0;\n    content: "";\n    height: 100%;\n    width: 100%;\n    background-image: radial-gradient(circle at center, '.concat(t," 0%, ").concat(t," 10%, transparent 10.1%, transparent 100%);\n    background-position: center center;\n    background-repeat: no-repeat;\n    background-color: transparent;"),base:{backgroundSize:"0% 0%"},frames:[{percent:0,styling:{backgroundSize:"1% 1%",opacity:"0.5"}},{percent:70,styling:{backgroundSize:"1000% 1000%",opacity:"0.2"}},{percent:100,styling:{backgroundSize:"1000% 1000%",opacity:"0"}}]}}(t.options.color));case em.ru.Rotate:switch(t.options){case em.MO.Flip:return tu({base:{transform:"rotateX(0deg)"},frames:[{percent:0,styling:{transform:"rotateX(0deg)"}},{percent:100,styling:{transform:"rotateX(360deg)"}}]});case em.MO.Spin:return tu({base:{transform:"rotate(0deg)"},frames:[{percent:0,styling:{transform:"rotate(0deg)"}},{percent:100,styling:{transform:"rotate(360deg)"}}]});case em.MO.Wiggle:return tu({base:{transform:"rotate(0deg)"},frames:[{percent:0,styling:{transform:"rotate(0deg)"}},{percent:10,styling:{transform:"rotate(-10deg)"}},{percent:25,styling:{transform:"rotate(10deg)"}},{percent:50,styling:{transform:"rotate(0deg)"}},{percent:100,styling:{transform:"rotate(0deg)"}}]})}case em.ru.Scale:switch(t.options){case em.N3.Grow:return tu({base:{transform:"scale(1)"},frames:[{percent:0,styling:{transform:"scale(1)"}},{percent:20,styling:{transform:"scale(1.1)"}},{percent:50,styling:{transform:"scale(1)"}},{percent:100,styling:{transform:"scale(1)"}}]});case em.N3.Shrink:return tu({base:{transform:"scale(1)"},frames:[{percent:0,styling:{transform:"scale(1)"}},{percent:20,styling:{transform:"scale(.9)"}},{percent:50,styling:{transform:"scale(1)"}},{percent:100,styling:{transform:"scale(1)"}}]})}}}(e);if(i)return(function(e){let t=new Map;return e.forEach(e=>{var i,n;let a=null!==(i=e.additionalClassName)&&void 0!==i?i:"",o=t.get(a);o?t.set(a,{additionalClassName:null!==(n=o.additionalClassName)&&void 0!==n?n:e.additionalClassName,additionalCss:[o.additionalCss,e.additionalCss].filter(Boolean).join("\n")||void 0,base:td(o.base,e.base),frames:function(e,t){let i=new Map;return e.forEach(e=>i.set(e.percent,e.styling)),t.forEach(e=>{let t=i.get(e.percent);t?i.set(e.percent,td(t,e.styling)):i.set(e.percent,e.styling)}),Array.from(i.keys()).sort().map(e=>({percent:e,styling:i.get(e)}))}(o.frames,e.frames)}):t.set(a,e)}),Array.from(t.keys()).sort().map(e=>{let i=t.get(e);if(i)return{additionalClassName:e||void 0,additionalCss:i.additionalCss,base:i.base,frames:i.frames}}).filter(Boolean)})(i).map(i=>(function(e,t,i){let n=[],a=e.additionalClassName;a&&n.push("".concat(a," {")),e.additionalCss&&n.push(e.additionalCss),n.push(tp(e.base)),a&&n.push("}"),n.push("&.".concat(t," {")),a&&n.push("".concat(a," {"));let o=[];a&&o.push("}"),o.push("}");let r=(0,ep.F4)(e.frames.map(e=>"\n    ".concat(e.percent,"% {\n      ").concat(tp(e.styling),"\n    }\n  ")).join("\n"));return(0,ep.iv)(n.join("\n"),"    animation:",r," ",i,"ms ease 1;",o.join("\n"))})(i,t,e.duration))}(t,i)}).filter(Boolean)}(s),S=d?[d,...h].join(" "):h.join(" ");return(l=b?(0,X.tZ)("a",{target:b.target,rel:b.rel,href:b.destination,className:S,css:w,id:p,ref:x,onClick:i,onMouseOut:a,onMouseOver:n,style:{...u,cursor:"pointer"},children:c}):v.tap?(0,X.tZ)("button",{className:S,css:w,id:p,ref:x,onClick:i,onMouseOut:a,onMouseOver:n,style:{...u,cursor:"pointer"},children:c}):(0,X.tZ)("div",{className:S,css:w,id:p,ref:x,onClick:i,onMouseOut:a,onMouseOver:n,style:u,children:c}),x)?(0,X.tZ)(tm,{ref:x,onAppear:o,onDisappear:r,children:l}):l};i(1990);let t8=(e,t,i,n)=>{if(!e)return;if(e.type===em.HW.CornerDataType.Point)return e.value;if(e.type===em.HW.CornerDataType.Rounded)return"rounded";let a=100;if((null==t?void 0:t.font)&&(null==t?void 0:t.fontSize)&&n){var o,r,l,s;let e=(null===(o=n.style)||void 0===o?void 0:o.font)||t.font,c=(null===(r=n.style)||void 0===r?void 0:r.fontSize)||t.fontSize;a=(0,e2.jG)(e,c)+((null==i?void 0:null===(l=i.bottom)||void 0===l?void 0:l.value)||0)+((null==i?void 0:null===(s=i.top)||void 0===s?void 0:s.value)||0)}return Math.round(e.value/100*a)},t9=(e,t,i,n)=>e?{bottomLeft:t8(e.bottomLeft,t,i,n),bottomRight:t8(e.bottomRight,t,i,n),topLeft:t8(e.topLeft,t,i,n),topRight:t8(e.topRight,t,i,n)}:null;var ie=e=>{var t,i,n;let{data:a,context:o}=e,{themeCategory:r,themeStyle:l,actions:s,background:c,border:d,corners:u,mask:p,margins:h,padding:g,shadow:f}=a,{ignoresContentHeight:m,responsive:y,theme:v}=o,b="block-".concat(a.id),x=(null===(t=a.content)||void 0===t?void 0:t.contentType)=="grid",w=r&&l&&(null==v?void 0:null===(i=v.attributes[r])||void 0===i?void 0:i[l]),S=(0,eA.a7)(s,null==w?void 0:w.animations),k=(0,eA.$c)(c,null==w?void 0:w.background),C=(0,eA.$c)(d,null==w?void 0:w.border),T=t9((0,eA.$c)(u,null==w?void 0:w.corners),w,g,a.content.utf),I=(0,eA.$c)(p,null==w?void 0:w.mask),Z=(0,eA.Ao)(g,null==w?void 0:null===(n=w.textAlignment)||void 0===n?void 0:n.vertical),B=y?Z:function(e,t){var i,n,a,o;if(!t||!e)return e;let r={bottom:e.bottom?{...e.bottom}:e.bottom,left:e.left?{...e.left}:e.left,right:e.right?{...e.right}:e.right,top:e.top?{...e.top}:e.top};return(null===(i=r.bottom)||void 0===i?void 0:i.value)&&(r.bottom.value=Math.max(r.bottom.value-t,0)),(null===(n=r.left)||void 0===n?void 0:n.value)&&(r.left.value=Math.max(r.left.value-t,0)),(null===(a=r.right)||void 0===a?void 0:a.value)&&(r.right.value=Math.max(r.right.value-t,0)),(null===(o=r.top)||void 0===o?void 0:o.value)&&(r.top.value=Math.max(r.top.value-t,0)),r}(Z,null==C?void 0:C.width),{css:P,element:F}=eN(k),H=function(e,t){let i=function(e){if(!e)return{border:"none"};switch(e.data.type){case em.OC.BorderType.Color:let t=tl(e.width,e.data.top);if([tl(e.width,e.data.bottom),tl(e.width,e.data.left),tl(e.width,e.data.right)].every(e=>e===t))return{border:t};return{borderTop:tl(e.width,e.data.top),borderBottom:tl(e.width,e.data.bottom),borderLeft:tl(e.width,e.data.left),borderRight:tl(e.width,e.data.right)};case em.OC.BorderType.Gradient:var i,n,a,o,r,l,s,c,d,u,p,h;let g={borderTop:(null===(i=e.data.hiddenSides)||void 0===i?void 0:i.top)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderBottom:(null===(n=e.data.hiddenSides)||void 0===n?void 0:n.bottom)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderLeft:(null===(a=e.data.hiddenSides)||void 0===a?void 0:a.left)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderRight:(null===(o=e.data.hiddenSides)||void 0===o?void 0:o.right)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),backgroundClip:"padding-box"};return g[":before"]={content:'""',position:"absolute",height:"100%",width:"100%",top:(null===(r=e.data.hiddenSides)||void 0===r?void 0:r.top)?"0px":"".concat((0,eJ.TC)(-1*e.width)),bottom:(null===(l=e.data.hiddenSides)||void 0===l?void 0:l.bottom)?"0px":"".concat((0,eJ.TC)(-1*e.width)),left:(null===(s=e.data.hiddenSides)||void 0===s?void 0:s.left)?"0px":"".concat((0,eJ.TC)(-1*e.width)),right:(null===(c=e.data.hiddenSides)||void 0===c?void 0:c.right)?"0px":"".concat((0,eJ.TC)(-1*e.width)),borderTop:(null===(d=e.data.hiddenSides)||void 0===d?void 0:d.top)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderBottom:(null===(u=e.data.hiddenSides)||void 0===u?void 0:u.bottom)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderLeft:(null===(p=e.data.hiddenSides)||void 0===p?void 0:p.left)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),borderRight:(null===(h=e.data.hiddenSides)||void 0===h?void 0:h.right)?"0px":"".concat((0,eJ.TC)(e.width)," solid transparent"),background:"".concat((0,ev.n)(e.data.gradient)," border-box"),WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"destination-out",maskComposite:"exclude"},g;case em.OC.BorderType.Image:return{border:"".concat((0,eJ.TC)(e.width)," solid transparent"),borderImage:"url(".concat(e.data.url,") 33% 33% ").concat(e.data.style)}}}(e);return i.borderRadius=ts(t),(null==e?void 0:e.data.type)===em.OC.BorderType.Gradient&&(i[":before"].borderRadius=ts(t)),i}(C,T),{css:R,svg:L}=(0,eD.L)(I,a.id),M=(0,e_.h)(f),E={...ez((0,em.JR)(h)),...to(B)},N=(0,V.useMemo)(()=>o.responsive?m?{position:"absolute",inset:"0",height:"inherit"}:{height:E.height}:{height:x?"auto":E.height},[m,E]),A={...o.responsive?{...E,height:void 0}:E,...N,...P,...H,...R,...M},D=nz(a.content,{...o,style:w}),_=v&&r&&l?"block theme-".concat(r,"-").concat(l):"block";return(0,X.tZ)(X.HY,{children:(0,X.BX)(t6,{actions:S,className:_,containerStyles:A,id:b,css:(0,ep.iv)({...H}),children:[F,D,L]},b)})},it=i(1031);class ii extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker follow",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner"})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}class ia extends V.Component{render(){let e="brand-sticker standard ";return this.state.open&&(e+="open "),this.state.down&&(e+="touch-down "),(0,X.tZ)("div",{className:e,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:e=>this.button=e})}constructor(e){super(e),this.outsideTapHandler=e=>{if(this.button){let t=this.button;e.target!==t&&this.setState({open:!1})}},this.componentDidMount=()=>{window.addEventListener("touchstart",this.outsideTapHandler,!1)},this.onUnload=()=>{window.removeEventListener("touchstart",this.outsideTapHandler,!1)},this.onTouchStart=()=>{this.button&&(this.button.classList.add("touch-down"),this.setState({down:!0}))},this.onTouchEnd=e=>{e.preventDefault(),this.state.open?window.location=this.props.destination:this.setState({open:!0}),this.setState({down:!1})},this.onMouseEnter=()=>{this.setState({open:!0})},this.onMouseLeave=()=>{this.setState({open:!1})},this.onMouseDown=()=>{this.setState({down:!0})},this.onMouseUp=()=>{this.state.down&&(window.location=this.props.destination),this.state.open||this.setState({open:!0}),this.setState({down:!1})},this.state={open:!1,down:!1},this.button=null}}class io extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker tablet",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner"})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}class ir extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker technical",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner"})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}class il extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker tumble",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner"})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}class is extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker wavy",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner"})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}class ic extends V.Component{onClick(){window.location.assign(this.props.destination)}render(){return(0,X.tZ)("div",{className:"brand-sticker wheel",onClick:this.onClick,children:(0,X.tZ)("div",{className:"inner",children:(0,X.tZ)("div",{className:"shape"})})})}constructor(e){super(e),this.onClick=this.onClick.bind(this)}}let id=tT.environment.getUniverseUrls.sticker;var iu=e=>{let{sticker:t}=e;switch(t){case Z.Sticker.Standard:return(0,X.tZ)(ia,{destination:id});case Z.Sticker.Follow:return(0,X.tZ)(ii,{destination:id});case Z.Sticker.Wheel:return(0,X.tZ)(ic,{destination:id});case Z.Sticker.Wavy:return(0,X.tZ)(is,{destination:id});case Z.Sticker.Technical:return(0,X.tZ)(ir,{destination:id});case Z.Sticker.Tumble:return(0,X.tZ)(il,{destination:id});case Z.Sticker.Tablet:return(0,X.tZ)(io,{destination:id});default:return(0,X.tZ)(ia,{destination:id})}};let ip=(0,tw.Z)("div",{target:"e1iq8y6o0"})("text-align:center;@media (max-width:799px){display:none;}"),ih=(0,tw.Z)("div",{target:"e1iq8y6o1"})("width:100%;display:flex;justify-content:center;align-items:center;padding-bottom:40px;@media (min-width:800px){display:none;}");var ig=e=>{let{data:t,context:i}=e,{block:n,ignoresContentHeight:a,position:o,size:r}=t,l=o.x+r.width+1,s=o.y+r.height+1,c=(n.rotation,{}),d=to(n.margins),u={gridRowStart:"".concat(o.y+1),gridRowEnd:"".concat(s),gridColumnStart:"".concat(o.x+1),gridColumnEnd:"".concat(l),zIndex:"".concat(15+o.z),overflow:i.responsive?"visible":"hidden",position:"relative",...c,...d};return(0,X.tZ)("div",{style:u,children:(0,X.tZ)(ie,{data:n,context:{...i,ignoresContentHeight:a,size:r}})})};i(2698);var im=e=>{let{data:t,context:i}=e,{children:n,gutters:a,gridSize:o,isRoot:r}=t,{isAboveTheFold:l,style:s}=i,c=null==l,d=r&&(a||(null==s?void 0:s.gutters))||it.J.noGutters,u=e=>{let t=e.value||0;return e.flexible?"minmax(".concat(t,"px, 1fr)"):"".concat(t,"px")},p=(0,V.useMemo)(()=>{let e=Math.max(o.width-2,1);switch(d.type){case it.J.GutterType.MaxWidth:if(!d.maxWidth||!d.left.flexible&&!d.right.flexible)return[u({value:d.left.value}),"repeat(".concat(e,", 1fr)"),u({value:d.right.value})].join(" ");return[u(d.left),"repeat(".concat(e,", minmax(0, ").concat((0,e1.Z)(d.maxWidth/e,2),"px))"),u(d.right)].join(" ");case it.J.GutterType.Percent:return"".concat(d.left,"% repeat(").concat(e,", 1fr) ").concat(d.right,"%")}},[d,o]),h=(0,V.useMemo)(()=>{if(d.type==it.J.GutterType.MaxWidth&&d.maxWidth)return"".concat(d.maxWidth,"px");if(d.type!=it.J.GutterType.Percent)return"100vw";{let e=100-d.left-d.right;return"".concat(e,"vw")}},[d]),g="repeat(".concat(o.height,", minmax(40px, auto))"),f={};return r&&(f["--max-grid-width"]=h),(0,X.BX)("div",{className:"flex-grid-component",style:f,children:[(0,X.tZ)("div",{className:"flex-grid",style:{gridTemplateColumns:p,gridTemplateRows:g},children:n.map((e,t)=>(0,X.tZ)(ig,{data:e,gridSize:o,context:{...i,gridDensity:i.gridDensity||o.width/3,isAboveTheFold:c?(0,eg.r)({position:e.position,gridHeight:o.height,gridWidth:o.width}):l,responsive:!0}},"bog-".concat(t)))}),r&&i.sticker&&(0,X.tZ)(ih,{children:(0,X.tZ)(iu,{sticker:i.sticker})},"sticker")]})},iy=e=>{let{data:t,context:i}=e,{children:n,gridSize:a,unscaledBlockSize:o}=t,{isAboveTheFold:r}=i,l=null==r,s=(null==o?void 0:o.width)||eJ.Ls,c=a.width/a.height,d=(0,eJ.TC)(1/c*s),u=(0,eJ.TC)(s),p={position:"relative",display:"grid",gridTemplateColumns:"repeat(".concat(a.width,", 1fr)"),gridTemplateRows:"repeat(".concat(a.height,", 1fr)"),height:d,width:u,margin:"0 auto"};return(0,X.BX)("div",{id:"grid-component",style:{position:"relative"},children:[(0,X.tZ)("div",{style:p,children:n.map((e,t)=>(0,X.tZ)(ig,{data:e,gridSize:a,context:{...i,gridDensity:i.gridDensity||a.width/3,isAboveTheFold:l?(0,eg.r)({position:e.position,gridHeight:a.height,gridWidth:a.width}):r}},"bog-".concat(t)))}),i.sticker&&(0,X.tZ)(ih,{children:(0,X.tZ)(iu,{sticker:i.sticker})},"sticker")]})};let iv=e=>void 0!==e.content,ib=(0,tw.Z)("div",{target:"e7v1y2p0"})("width:100vw;height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:54px;@media (min-width:950px){padding-bottom:0;}"),ix=(0,tw.Z)("img",{target:"e7v1y2p1"})("width:60px;height:60px;padding:0;margin:0 0 8px;"),iw=(0,tw.Z)("p",{target:"e7v1y2p2"})("font-family:SFUIText-Regular;text-transform:none;font-size:12px;opacity:1;margin:0;");var iS=()=>(0,X.BX)(ib,{children:[(0,X.tZ)(ix,{alt:"loading-indicator",src:"/static/pageLoadingIndicator.gif"}),(0,X.tZ)(iw,{children:"LOADING"})]}),ik=e=>{var t,i,n,a;let{data:o,context:r}=e,l=(0,V.useRef)(null),s=(0,eI.useRouter)();if(!iv(o))return(0,X.tZ)(iS,{});let{content:c,background:d}=o,u=(0,eA.$c)(d,null===(a=r.theme)||void 0===a?void 0:null===(n=a.attributes)||void 0===n?void 0:null===(i=n.grid)||void 0===i?void 0:null===(t=i.primary)||void 0===t?void 0:t.background),p=nz(c,r),{css:h,element:g}=eN(u,r.isFullScreen),f={width:"100%",height:"100%",position:"relative",overflow:"scroll",boxSizing:"border-box",...h};return r.contentTopOffset&&(f.paddingTop=r.contentTopOffset),(0,V.useEffect)(()=>{let e=()=>{l.current&&l.current.scrollTo(0,0)};return s.events.on("routeChangeComplete",e),()=>{s.events.off("routeChangeComplete",e)}},[s.events]),(0,X.BX)("div",{style:f,ref:l,children:[g,p]})},iC=e=>{let t=(0,eI.useRouter)();return function(i){var n,a;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null===(a=window.location)||void 0===a?void 0:null===(n=a.href)||void 0===n?void 0:n.startsWith("http://localhost:");t.push({pathname:i,query:r?{host:e}:{}},void 0,o)}};let iT=async e=>{let t=await fetch("/_api/v1/pages/".concat(e),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}}),i=await t.json();if(t.status>=400)throw Error(i.message||"Something went wrong");return i};function iI(e){return e.startsWith("/")||"/"===e?e:"/".concat(e)}var iZ=i(8554),iB=function(e){let t=(0,V.useRef)(null);return[(0,V.useCallback)(i=>{t.current=i,e&&e(i)},[e]),t]},iP=function(e){return document.activeElement&&"BODY"!==document.activeElement.tagName&&document.activeElement!==e},iF=i(1038);let iH=(0,ep.iv)("position:absolute;top:0;bottom:0;min-width:30px;width:60px;@media (max-width:880px){display:none;}"),iR=(0,ep.iv)("left:0;"),iL=(0,ep.iv)("right:0;"),iM=(0,ep.iv)(iH,'  cursor:url("/static/cursor-left-black.svg"),auto;'),iE=(0,ep.iv)(iH,'  cursor:url("/static/cursor-right-black.svg"),auto;');var iN=e=>{let{enabled:t,handleAction:i,position:n,parentRef:a}=e,o={right:"ArrowRight",left:"ArrowLeft"};return(0,X.BX)(X.HY,{children:[(0,X.tZ)("div",{css:{right:t?[iL,iE]:[iL,iH],left:t?[iR,iM]:[iR,iH]}[n],onClick:e=>{e.stopPropagation(),e.preventDefault(),t&&i()}}),t&&(0,X.tZ)(iF.Z,{filter:e=>{if(a&&t&&e.key===o[n])return a.current.style.overflowY="hidden",e.key===o[n]},fn:i})]})};let iA={position:"relative",minWidth:"100%",height:"100vh",overflow:"hidden",overflowY:"auto",outline:"none"},iD=(0,V.forwardRef)((e,t)=>{let{component:i,navOptions:n,parentRef:a}=e,o=(0,V.useRef)(null);return(0,V.useEffect)(()=>{t&&a.current?(a.current.focus({preventScroll:!0}),a.current.style.overflowY="auto"):o.current&&!t&&(o.current.scrollTop=0,o.current.style.overflowY="hidden")},[t,!!o.current]),(0,X.BX)("div",{style:iA,ref:t||o,tabIndex:-1,children:[i,!!n&&(0,X.tZ)(iN,{position:"left",enabled:n.left.enabled,handleAction:n.left.action,parentRef:a}),!!n&&(0,X.tZ)(iN,{position:"right",enabled:n.right.enabled,handleAction:n.right.action,parentRef:a})]})}),i_={overflow:"hidden"},iO={position:"relative",display:"flex",flexDirection:"row",height:"100%",width:"100%"};var iz=e=>{let{settings:t,data:i,onSwipe:n}=e,{isEnabled:a}=(0,V.useContext)(Y.Z),{minIndex:o,maxIndex:r,startIndex:l,width:s}=t,c=0===l,d=l===i.length-1,u=c?0:-s,p=(0,V.useRef)(!1),h=(0,V.useRef)(null),g=(0,V.useRef)(null),f=(0,V.useRef)(null),m=(0,V.useRef)(0),y=(0,V.useRef)(!1),v=(0,V.useRef)(null),[b,x]=iB((0,V.useCallback)(e=>{if(!g.current)return;f.current=e,f.current&&(f.current.style.overflowY="auto"),m.current=u;let t=!(null==p?void 0:p.current)&&e;t&&!c?(m.current=u,g.current.style.transition="",g.current.style.transform="translateX(".concat(m.current,"px)")):t||h.current?t||"next"!==h.current?t||"previous"!==h.current||(g.current.style.transition="",g.current.style.transform="translateX(".concat(m.current,")"),h.current=null):(g.current.style.transition="",g.current.style.transform="translateX(".concat(m.current,"px)"),h.current=null):(g.current.style.transition="transform ".concat(300,"ms ease-in"),g.current.style.transform="translateX(".concat(m.current,"px)"),g.current.style.transition=""),p.current=!0},[p,c,h,u])),w=()=>{h.current="previous",m.current=0,g.current.style.transition="transform ".concat(300,"ms ease-in"),g.current.style.transform="translateX(".concat(m.current,"px)"),setTimeout(()=>{n&&n(i[l-1])},300)},S=()=>{h.current="next",m.current=u-s,g.current.style.transition="transform ".concat(300,"ms ease-in"),g.current.style.transform="translateX(".concat(m.current,"px)"),setTimeout(()=>{n&&n(i[l+1])},300)},k=()=>{m.current=u,g.current.style.transition="transform ".concat(300,"ms ease-in"),g.current.style.transform="translateX(-".concat(m.current,"px)"),f.current&&setTimeout(()=>f.current.style.overflowY="auto",300)},C=()=>{if(!y.current)return;y.current=!1;let e=m.current-u;e<-(.3*s)&&!d?S():e>.3*s&&!c?w():k()},T=()=>{var e;let t=m.current-u;return((!c&&t>=0||!d&&t<=0)&&(null==g?void 0:null===(e=g.current)||void 0===e?void 0:e.style)&&(f.current&&(f.current.style.overflowY="hidden"),g.current.style.transform="translateX(".concat(m.current,"px)")),y.current)?requestAnimationFrame(T):requestAnimationFrame(C)},I=i.reduce((e,t,i)=>(i>=o&&i<=r&&(l===i?e.push((0,X.tZ)(iD,{ref:b,parentRef:x,component:t.component,navOptions:{left:{enabled:!c&&a,action:w},right:{enabled:!d&&a,action:S}}},t.id)):e.push((0,X.tZ)(iD,{component:t.component},t.id))),e),[]);return(0,X.tZ)("div",{style:i_,children:(0,X.tZ)("div",{style:iO,ref:g,onMouseUp:C,onMouseDown:e=>{iP(x.current||f.current)||(y.current=!0,v.current=e.clientX)},onTouchStart:e=>{iP(x.current||f.current)||(y.current=!0,v.current=e.targetTouches[0].clientX)},onTouchEnd:C,onMouseMove:e=>{y.current&&(m.current=u+e.clientX-v.current,Math.abs(e.clientX-v.current)>60&&requestAnimationFrame(T))},onTouchMove:e=>{let t=e.targetTouches[0];m.current=u+t.clientX-v.current,Math.abs(t.clientX-v.current)>60&&requestAnimationFrame(T)},onMouseLeave:C,children:I})})};let iU={position:"relative",width:"100%",height:"100vh"};var iq=e=>{var t;let{data:i,context:n}=e,{pages:a}=i,o=iC(n.host),r=(0,eI.useRouter)().asPath.split("?")[0],l=r.split("/").slice(-1),{updateActivePage:s}=(0,V.useContext)(W),[c,d]=(0,V.useState)({}),u=0;l&&-1===(u=a.findIndex(e=>e.route.endsWith("/".concat(l))))&&(u=0);let p=u-1>=0?u-1:0,h=u+1<=a.length-1?u+1:a.length-1,[g,f]=(0,V.useState)(!1),m=(0,V.useMemo)(()=>(g||f(!0),a.map((e,t)=>{let i=Object.prototype.hasOwnProperty.call(e,"content");return i&&(c[e.id]=e,d(c)),{id:e.id,route:e.route,isLoaded:i,component:t===u?x(e):null}})),[]),[y,v]=(0,V.useState)(m),[b]=(0,V.useState)(r);function x(e){return Object.prototype.hasOwnProperty.call(e,"content")?nz(e,{...n}):null}let w=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[];for(let n of e)try{let e=await iT(n);c[n]=e,d(c);let a=function(e,t){let i=(t||[]).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return e.map(e=>{var t,n;return{id:e.id,route:e.route,isLoaded:Object.prototype.hasOwnProperty.call(e,"content"),component:(null===(t=i[e.id])||void 0===t?void 0:t.isLoaded)?null===(n=i[e.id])||void 0===n?void 0:n.component:x(e)}})}([e],t)[0];i.push(a)}catch(t){let e={id:0,route:"",...a.find(e=>e.id===n),isLoaded:!0,component:(0,X.tZ)(iZ.Z,{statusCode:500,isInnerContent:!0})};i.push(e)}let n=i.reduce((e,t)=>Object.assign(e,{[t.id]:{...t,route:iI(t.route)}}),{});v(t.map(e=>n[e.id]?n[e.id]:e))};function S(e){if(null==e?void 0:e.length)return w(e.filter((e,t)=>{let i=t>=p&&t<=h;return!e.isLoaded&&i}).map(e=>e.id),e)}(0,V.useEffect)(()=>{g&&r!==b&&S(y)},[r]),(0,V.useEffect)(()=>{g&&S(y)},[g]);let{ref:k,width:C}=tK();return(0,X.tZ)("div",{style:iU,ref:k,children:(0,X.tZ)(iz,{onSwipe:function(e){let t=c[e.id];t&&s({title:t.title,description:t.description,snapshotUUID:t.snapshotUUID,customPreviewUUID:t.customPreviewUUID,background:t.background}),(null==e?void 0:e.route)&&o(e.route,{shallow:!0})},data:y,settings:{minIndex:p,maxIndex:h,startIndex:u,width:C||(null==k?void 0:null===(t=k.current)||void 0===t?void 0:t.getBoundingClientRect().width)}})})},ij=e=>{let t=(0,eI.useRouter)();return function(i){var n,a;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null===(a=window.location)||void 0===a?void 0:null===(n=a.href)||void 0===n?void 0:n.startsWith("http://localhost:");t.replace({pathname:i,query:r?{host:e}:{}},void 0,o)}},iX=i(5703),iV=i.n(iX),iW=i(3493),iG=i.n(iW),iY=i(8913),iJ=i.n(iY);let i$=(0,tw.Z)("div",{target:"e1e4mrql0"})("position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch;&.momentum-disabled:{overflow:hidden;-webkit-overflow-scrolling:auto;}");class iQ extends V.Component{componentDidMount(){let{timelineIndex:e}=this.props,t=e-this.startOffset>0?e-this.startOffset:0,i=e+this.endOffset;this.loadPages(t,i).then(()=>{var t,i;null===(i=this.pageEls[e])||void 0===i||null===(t=i.current)||void 0===t||t.getBoundingClientRect().top,this.setState({initialFetchFinished:!0})})}getSnapshotBeforeUpdate(e,t){let i=this.firstLoadedIndex(t.pages),n=this.firstLoadedIndex();if(i>n){var a;return{currentFirstPageIndex:n,previousFirstPageIndex:i,scrollTop:null===(a=this.scrollEl.current)||void 0===a?void 0:a.scrollTop}}return null}componentDidUpdate(e,t,i){if(this.scrollEl.current&&i){this.scrollEl.current.classList.add("momentum-disabled");let{previousFirstPageIndex:e,scrollTop:t}=i,n=this.pageEls.slice(0,e).reduce((e,t)=>{let{current:i}=t;return i?e+(null==i?void 0:i.getBoundingClientRect().height):e},0);this.scrollEl.current.scrollTop=n+t,this.scrollEl.current.classList.remove("momentum-disabled")}this.scrollEl.current&&"function"==typeof this.scrollEl.current.focus&&!this.state.isFocused&&(this.scrollEl.current.focus(),this.setState({isFocused:!0})),this.loadMorePagesToFillScrollIfNeeded()}loadMorePagesToFillScrollIfNeeded(){let{initialFetchFinished:e}=this.state;if(e&&!this.pagesLoading&&this.shouldLoadMoreInitialPages){let e=this.pageEls.filter(e=>{let{current:t}=e;return null!==t}).reduce((e,t)=>{let{current:i}=t;return e+i.getBoundingClientRect().height},0);this.scrollEl.current&&e<=this.scrollEl.current.getBoundingClientRect().height?this.hasNextPage()?this.loadNextPage():this.hasPreviousPage()?this.loadPreviousPage():this.shouldLoadMoreInitialPages=!1:this.shouldLoadMoreInitialPages=!1}}render(){let{pages:e}=this.state;return(0,X.tZ)(i$,{ref:this.scrollEl,onScroll:this.handleScroll,tabIndex:-1,children:(0,X.BX)("div",{ref:this.scrollInnerEl,children:[e.map((t,i)=>t&&(0,X.tZ)("div",{ref:this.pageEls[i],children:nz(t,{...this.props.context,sticker:i+1===e.length?this.props.context.sticker:void 0,contentTopOffset:this.props.context.contentTopOffset&&0==i?this.props.context.contentTopOffset:void 0,isFullScreen:!1})},i)),this.hasNextPage()&&this.state.isLoading&&(0,X.tZ)(iS,{})]})})}constructor(e){super(e),this.arrayIndexOffset=1,this.endOffset=2,this.scrollEl=V.createRef(),this.scrollInnerEl=V.createRef(),this.startOffset=4,this.topPageLoadingEl=V.createRef(),this.firstLoadedIndex=e=>(e||this.state.pages).findIndex(e=>e),this.lastLoadedIndex=()=>{let{pages:e}=this.state,t=this.firstLoadedIndex(),i=e.slice(t).findIndex(e=>null===e);return i>0?i-1+t:e.length-1},this.hasPreviousPage=()=>this.firstLoadedIndex()>0,this.hasNextPage=()=>this.lastLoadedIndex()<this.lastPageIndex,this.pagesLoading=!1,this.loadPages=async(e,t,i)=>!this.state.isLoading&&!this.pagesLoading&&(this.pagesLoading=!0,this.setState({isLoading:!0}),Promise.all(this.pageStackWithIndices.slice(e,t+this.arrayIndexOffset).map(e=>this.state.pages[e.index]?this.state.pages[e.index]:iT(e.id))).then(n=>{let a=this.state.pages.slice(0,e),o=this.state.pages.slice(t+1);this.setState({pages:[...a,...n,...o],isLoading:!1,...i}),this.pagesLoading=!1})),this.loadPreviousPage=()=>{let e=this.firstLoadedIndex(),t=e-this.startOffset>0?e-this.startOffset:0;this.loadPages(t,e)},this.loadNextPage=()=>{let e=this.lastLoadedIndex();this.loadPages(e+this.arrayIndexOffset,e+3)},this.handleScroll=iG()(()=>{if(!this.scrollEl.current||!this.scrollInnerEl.current)return;let e=this.scrollEl.current.getBoundingClientRect().height,t=this.scrollInnerEl.current.getBoundingClientRect().height,{scrollTop:i}=this.scrollEl.current,n=t-i-e,a=2*e,{timelineIndex:o,updateTimelineIndex:r,pageStack:l}=this.props,s=l.length,c=this.pageEls[s-this.arrayIndexOffset].current;this.scrollEl.current.scrollTop<this.previousScrollTop&&(()=>{if(this.scrollEl.current&&this.scrollEl.current.scrollTop<20&&this.pageEls[0].current)0!==o&&r(0);else{let t=o>0&&this.pageEls[o-1].current?this.pageEls[o-1].current.getBoundingClientRect():null;t&&t.top+t.height>e/2&&r(o-1)}})(),this.scrollEl.current.scrollTop>this.previousScrollTop&&(()=>{if(n<20&&c)o!==s-1&&r(s-1);else{let t=o<s-1&&this.pageEls[o+1].current?this.pageEls[o+1].current.getBoundingClientRect():null;t&&t.top<e/2&&r(o+1)}})(),this.previousScrollTop=this.scrollEl.current.scrollTop,n<a&&!this.pagesLoading&&this.hasNextPage()&&this.loadNextPage(),i<a&&!this.pagesLoading&&this.hasPreviousPage()&&this.loadPreviousPage()},100),this.pageCount=e.pageStack.length,this.lastPageIndex=this.pageCount-this.arrayIndexOffset;let t=iJ()(this.pageCount,iV()(null));t[e.timelineIndex]=e.initialPage,this.state={pages:t,isLoading:!1,initialFetchFinished:!1,isFocused:!1},this.shouldLoadMoreInitialPages=!0,this.pageStackWithIndices=e.pageStack.map((e,t)=>({...e,index:t})),this.pageEls=e.pageStack.map(()=>V.createRef())}}var iK=e=>{let{data:t,context:i}=e,[n]=(0,V.useState)(t.pages.map(e=>({...e,contentType:e.contentType||P.Section,route:iI(e.route)}))),a=(0,eI.useRouter)().asPath.split("?")[0],o=a.split("/").slice(-1),r=0;o&&-1===(r=n.findIndex(e=>iI(e.route)===a))&&(r=0);let l=ij(i.host),[s]=(0,V.useState)(n[r]);return(0,X.tZ)(iQ,{initialPage:s,timelineIndex:r,pageStack:n,context:i,updateTimelineIndex:e=>{l(iI(n[e].route),{shallow:!0})},host:i.host})},i0=i(9342);(h=(p=R||(R={})).Alignment||(p.Alignment={})).Center="center",h.Left="left",h.Right="right",(g=p.ButtonStyle||(p.ButtonStyle={})).TwoLines="2-lines",g.ThreeLines="3-lines",g.TextMenu="text-menu";let i1={minimal:1,tabs:1,sidebar:1.5,fullscreen:2.25},i2={"Inter-Regular":16,"Inter-SemiBold":16,Lunchtype:16,"Lunchtype-ExpandedRegular":16,"AUTHENTICSans-Regular":17,"HelveticaNeueLTStd-Hv":17,"HelveticaNeueLTStd-Roman":17,"Poppins-Bold":17,"Poppins-Medium":17,"Poppins-Regular":17,"HelveticaNeueLTStd-HvEx":17,IBMPlexMono:18,"IBMPlexSerif-Light":18,"Rubik-Regular":18,"TiemposText-Regular":18,"SFMono-Regular":18,"ApexMk2-BoldExtended":18,"YoungSerif-Regular":18,"Aeonik-Light":18,"Aeonik-Regular":18,"Aeonik-Medium":18,"HelveticaNeueLTStd-BdCn":18,"HelveticaNeueLTStd-Th":19,Optima:19,Bagnard:19,"KumarOne-Regular":19,"KumarOneOutline-Regular":19,"AlfaSlabOne-Regular":19,"Nunito-ExtraBold":19,"Courgette-Regular":19,"CooperHewitt-Bold":19,"Jost-Light":20,"ZillaSlab-Regular":20,"Junicode-Regular":20,"Respira-Black":20,"Monoton-Regular":20,"Shrikhand-Regular":20,Wremena:20,"Butler-Light":20,"RoslindaleDisplayCondensed-Medium":20,"Junicode-BoldCondensed":22,PermanentMarker:22,"Macondo-Regular":22,"RozhaOne-Regular":22,"YatraOne-Regular":22,IndieFlower:22,"HelveticaNeueLTStd-BdOu":22,"HouseSlant-Regular":24,"LeagueGothic-Regular":24,"LeagueGothic-CondensedRegular":24,"BungeeShade-Regular":24,"AmaticSC-Bold":25,"VT323-Regular":25,"FREEFATFONT-Regular":25},i5=(e,t)=>{let i=Math.floor(i2[t])||20;return"".concat(Math.floor(i*i1[e]),"px")},i3=(e,t)=>Math.floor((Math.floor(i2[t])||20)*i1[e]),i4=e=>e.reduce((e,t)=>{let i={title:t.title,destination:"".concat(t.destination),isCurrent:t.isSelected};return e.push(i),e},[]);var i7=i(1664),i6=i.n(i7),i8=e=>{let{href:t,query:i={},children:n,...a}=e,o=(0,eI.useRouter)(),r=o.query.host?{host:o.query.host,...i}:i;return(0,X.tZ)(i6(),{href:{pathname:t,query:r},...a,children:n})},i9=e=>{let{options:t,isOpen:i=!1,onClick:n}=e,{fontFamily:a="mono",textTransform:o="lowercase",openColor:r,closedColor:l="white",alignment:s="left"}=t,c={color:i&&r||l,fontFamily:a,textTransform:o,fontSize:i5("hamburger",a),transitionTimingFunction:"ease",transitionDuration:".2s",margin:"0",flex:"0 0 auto",display:"flex",cursor:"pointer",justifyContent:"right"===s?"flex-end":"flex-start"};return(0,X.BX)("div",{style:c,onClick:n,children:[(0,X.tZ)("div",{style:{position:"absolute",opacity:i?"0":"1",pointerEvents:i?"none":"auto",transition:i?"opacity .3s":"opacity .3s ease .3s"},children:"Menu"}),(0,X.tZ)("div",{style:{opacity:i?"1":"0",pointerEvents:i?"auto":"none",transition:i?"opacity .3s ease .3s":"opacity .3s"},children:"Close"})]})},ne=e=>{let{isOpen:t=!1,onClick:i,options:n}=e,{closedColor:a="white",openColor:o}=n,r=(e,t,i)=>"translate3d(0,".concat(e?8:t,"px ,0) rotate(").concat(e?"".concat(i,"deg"):"0",")"),l={container:{width:"".concat(24,"px"),height:"20px",transform:"rotate(0 deg)",flexShrink:0,position:"relative",zIndex:500},lineBase:{display:"block",height:"".concat(3,"px"),width:"100%",background:t&&o||a,transitionTimingFunction:"ease",transitionDuration:"".concat("0.2","s"),transformOrigin:"center",position:"absolute"},firstLine:{transform:r(t,0,45)},secondLine:{transform:r(t,8,45)},thirdLine:{transform:r(t,16,-45)}};return(0,X.BX)("div",{style:l.container,onClick:i,children:[(0,X.tZ)("span",{style:{...l.lineBase,...l.firstLine}}),(0,X.tZ)("span",{style:{...l.lineBase,...l.secondLine}}),(0,X.tZ)("span",{style:{...l.lineBase,...l.thirdLine}})]})},nt=e=>{let{isOpen:t=!1,onClick:i,options:n}=e,{openColor:a,closedColor:o="white",showShadow:r=!1}=n,l=(e,t,i)=>"translate3d(0, ".concat(e?6:t,"px, 0) rotate(").concat(e?"".concat(i,"deg"):"0",")"),s={container:{width:"".concat(24,"px"),height:"".concat(12,"px"),transform:"rotate(0deg)",flexShrink:0,position:"relative",zIndex:500},lineBase:{display:"block",height:"".concat(4,"px"),width:"100%",background:t&&a||o,boxShadow:r?"0px 1px 2px rgba(0,0,0,0.15)":"none",transitionTimingFunction:"ease",transitionDuration:"".concat("0.2","s"),borderRadius:"100px",transformOrigin:"center",position:"absolute"},firstLine:{transform:l(t,0,45),marginTop:"-".concat(2,"px")},thirdLine:{transform:l(t,12,-45),marginTop:"-".concat(2,"px")}};return(0,X.BX)("div",{style:s.container,onClick:i,children:[(0,X.tZ)("span",{style:{...s.lineBase,...s.firstLine}}),(0,X.tZ)("span",{style:{...s.lineBase,...s.thirdLine}})]})},ni=(e,t,i)=>{switch(e.buttonStyle){case R.ButtonStyle.TextMenu:return(0,X.tZ)(i9,{isOpen:t,onClick:i,options:e});case R.ButtonStyle.ThreeLines:return(0,X.tZ)(ne,{isOpen:t,onClick:i,options:e});case R.ButtonStyle.TwoLines:default:return(0,X.tZ)(nt,{isOpen:t,onClick:i,options:e})}};let nn=(0,ep.iv)({opacity:1,transition:"opacity .2s ease .45s","&.hidden":{opacity:0,transition:"opacity .1s ease",pointerEvents:"none"}}),na=(0,ep.iv)({position:"absolute",left:"50%",transform:"translateX(-50%)",paddingTop:"2px",transition:"opacity 250ms linear"}),no=e=>(0,ep.iv)("opacity:",e?"0":"1",";visibility:",e?"hidden":"visible",";"),nr={menuTabs:(e,t)=>(0,ep.iv)({display:"flex",position:"relative",marginTop:e?"22px":"0px",marginBottom:e?"20px":"16px",paddingRight:"16px",paddingLeft:"16px",justifyContent:tM.MF[t]}),menuPagingIndicator:(0,ep.iv)({position:"fixed",zIndex:500,left:0,height:0,display:"flex",width:"100%",justifyContent:"center",alignItems:"center"}),menuFullScreen:na,menuSidebar:na,menuMinimal:e=>(0,ep.iv)(na,";",no(e),";")},nl=e=>{let{textColor:t,showShadow:i}=e,n=0!==t.red,a=0!==t.blue,o=0!==t.green;return(0,ep.iv)({width:"8px",height:"8px",borderRadius:"100%",backgroundColor:t?(0,ey.a)(t):"black",boxShadow:i?"0px 1px 2px rgba(0,0,0,0.15)":"none",opacity:n&&a&&o?".45":".2",margin:"0 4px",mixBlendMode:"difference",transition:"all .3s ease","&.active":{opacity:1},flexShrink:0,cursor:"pointer"})},ns=(e,t,i,n,a,o)=>(0,ep.iv)({width:"".concat(e?"".concat(16*t,"px"):"auto"),overflow:"hidden",paddingBottom:"2px",maskImage:"linear-gradient(to right, transparent 0%, black ".concat(e&&i>=n?a:0,"px, black calc(100% - ").concat(a,"px), ").concat(e&&i<=o-6?"transparent":"black"," 100%)")}),nc=(0,ep.iv)({transition:"transform .3s ease",display:"flex"}),nd=e=>e&&"bottom"===e?(0,ep.iv)({bottom:"32px"}):(0,ep.iv)({top:"34px"}),nu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?(0,ep.iv)(e,nn):(0,ep.iv)(nr.menuPagingIndicator,nd(t),nn)},np=e=>(0,ep.iv)({position:"fixed",alignItems:"center",justifyContent:"flex-start",height:"60px",top:"0",left:"0",width:["100%","calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))"],padding:"16px",boxSizing:"border-box",zIndex:500,display:"flex",fontSize:i5("minimal",e)});var nh=e=>{let{menuColor:t,menuItems:i,children:n}=e,a=(0,eI.useRouter)(),o=i.length>7,r=a.asPath.split("?")[0].split("/").slice(-1),l=0;r&&-1===(l=i.findIndex(e=>e.destination.endsWith("/".concat(r))))&&(l=0);let s=ns(o,7,l,5,40,i.length);return(0,X.tZ)("div",{style:{position:"relative"},children:(0,X.BX)("div",{css:s,children:[(0,X.tZ)("div",{css:nc,style:{transform:"translateX(-".concat(l>=5?l>=i.length-4?16+16*(i.length-4-5+1):16+16*(l-5+1):0,"px)")},children:(()=>{let e=nl({textColor:t,showShadow:!1});return i.map((t,i)=>(0,X.tZ)(i8,{href:t.destination,shallow:!0,legacyBehavior:!0,children:(0,X.tZ)("a",{css:e,className:i===l?"active":""})},i))})()}),n]})})};class ng extends V.Component{componentDidMount(){this.createStyles()}componentDidUpdate(e,t){t.showRightFade!==this.state.showRightFade&&this.createStyles(),e.router.asPath.split("?")[0]!==this.props.router.asPath.split("?")[0]&&(this.setState(e=>({...e,navManifest:i4(this.props.data.items)})),this.state.isMenuOpen&&this.toggleMenuVisibility())}toggleMenuVisibility(){let{isMenuOpen:e}=this.state;if(e){var t;null===(t=this.scrollMaskRef.current)||void 0===t||t.scrollTo(0,0)}this.setState(t=>({...t,isMenuOpen:!e}))}textStylePropsFromOptions(){let{textColor:e,font:t}=this.props.data;return{textColor:(0,ey.a)(e),fontFamily:t,showShadow:!1}}renderMenuButton(){let e=this.textStylePropsFromOptions(),{isMenuOpen:t}=this.state,{data:i}=this.props,{buttonStyle:n,menuColor:a,textColor:o,alignment:r}=i,l=(0,ey.a)(a);return ni({openColor:(0,ey.a)(o),closedColor:l,alignment:r===R.Alignment.Right?"right":"left",buttonStyle:n,fontFamily:e.fontFamily},t||!1,this.toggleMenuVisibility.bind(this))}renderNavBar(){let{navStyles:e}=this.state;return e?(0,X.BX)("nav",{className:e,children:[this.renderMenuButton(),this.props.data.nestedItems&&(0,X.tZ)("div",{css:nr.menuFullScreen,children:(0,X.tZ)(nh,{menuColor:this.props.data.menuColor,menuItems:this.props.data.nestedItems})})]}):null}renderNav(){let{font:e,menuColor:t,textColor:i}=this.props.data,n=(0,eP.iv)({maskImage:"linear-gradient(transparent, transparent 50px, black 70px, black calc(100% - 100px), transparent calc(100% - 60px))"}),a="right"===this.props.data.alignment,o={transition:"transform 500ms",zIndex:500,position:"fixed",background:(0,ey.a)(t),color:(0,ey.a)(i),fontFamily:e,fontSize:i5("fullscreen",e),width:"100%",[a?"right":"left"]:0,top:0,bottom:0,transform:"translate(0, 0)",overflowX:"hidden"},r={entering:{transform:"translate(0, 0)"},entered:{transform:"translate(0, 0)"},exiting:{transform:"translate(0, -100%)",transition:"transform .3s ease .5s"},exited:{transform:"translate(0, -100%)"}},l={left:"flex-start",center:"center",right:"flex-end"},s=(e,t)=>{let i={transition:"all .3s ease ".concat(.4+.05*t,"s")};switch(e){case"entering":return{...i,opacity:1,transform:"translateY(0)",transition:"all .3s ease ".concat(.4+.05*t,"s")};case"entered":return{...i,opacity:1,transform:"translateY(0)"};case"exiting":return{...i,opacity:0,transform:"translateY(-30px)",transition:"all .2s ease ".concat(.05*t,"s")};case"exited":return{...i,opacity:0,transform:"translateY(-30px)",transition:"none"}}},c={top:55,bottom:100},{navListRef:d,scrollMaskRef:u}=this,p=null!==d.current&&null!==u.current,h=!1;if(p){var g,f;h=((null===(g=this.navListRef.current)||void 0===g?void 0:g.getBoundingClientRect().height)||0)>((null===(f=this.scrollMaskRef.current)||void 0===f?void 0:f.getBoundingClientRect().height)||0)-c.top-c.bottom-30}return(0,X.BX)(X.HY,{children:[(0,X.tZ)(i0.ZP,{nodeRef:this.transitionNodeRef,in:this.state.isMenuOpen,timeout:500,children:e=>(0,X.tZ)("div",{style:{...o,...r[e]},children:(0,X.tZ)("div",{ref:this.scrollMaskRef,className:h?n:{},style:{padding:"".concat(c.top,"px 0 ").concat(c.bottom,"px 0"),position:"absolute",overflow:"auto",marginRight:-20,top:0,right:0,bottom:0,left:0,display:h?void 0:"flex",justifyContent:!h&&"center"||"normal",flexDirection:!h&&"column"||"row"},children:(0,X.tZ)("ul",{ref:this.navListRef,style:{listStyle:"none",padding:"0",margin:"center"===this.props.data.alignment?"0 20px 0 0":"0 18px",display:"flex",flexDirection:"column",alignItems:l[this.props.data.alignment]},children:this.state.navManifest.map((t,i)=>(0,X.tZ)("li",{style:{margin:"16px 0",flex:"0 0 auto",maxWidth:"90%",display:"flex",justifyContent:a?"flex-end":"flex-start",marginRight:a?20:0,...s(e,i)},children:(0,X.tZ)(i8,{href:t.destination,legacyBehavior:!0,children:(0,X.tZ)("a",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",textDecoration:t.isCurrent?"underline":"none"},onClick:this.toggleMenuVisibility,children:"".concat(t.title)})})},i))})})})}),this.renderNavBar()]})}render(){return(0,X.BX)(X.HY,{children:[this.renderNav(),nz(this.props.data.content,{...this.props.context,contentTopOffset:60})]})}constructor(e){super(e),this.createStyles=()=>{let e=(0,eP.iv)({position:"fixed",alignItems:"center",justifyContent:this.props.data.alignment===R.Alignment.Right?"flex-end":"flex-start",height:"60px",top:"0",left:"0",width:["100%","calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))"],padding:"16px",boxSizing:"border-box",zIndex:500,display:"flex"});this.setState(t=>({...t,navStyles:e}))},this.navListRef=V.createRef(),this.scrollMaskRef=V.createRef(),this.transitionNodeRef=V.createRef(),this.state={navStyles:null,isMenuOpen:!1,showRightFade:!1,pageStack:[],navManifest:i4(e.data.items)},this.toggleMenuVisibility=this.toggleMenuVisibility.bind(this)}}var nf=(0,eI.withRouter)(ng),nm=e=>{let{itemData:t,itemIndex:i,textColor:n,fontFamily:a,textCase:o,lastItemStyles:r={paddingRight:"16px"},toggleMenu:l}=e,s={textDecoration:t.isCurrent?"underline":"none"};return(0,X.tZ)("li",{style:{color:n,margin:"0 16px",fontFamily:a,textTransform:o,flexShrink:0,"&:lastChild":r,display:"flex",alignItems:"center",transition:"all .2s ease ".concat(.1+.05*i,"s"),cursor:"pointer"},children:(0,X.tZ)(i8,{href:t.destination,legacyBehavior:!0,children:(0,X.tZ)("a",{onClick:()=>{l&&l()},style:s,children:t.title})})})};class ny extends V.Component{componentDidMount(){this.createStyles()}componentDidUpdate(e,t){t.showRightFade!==this.state.showRightFade&&this.createStyles(),e.router.asPath.split("?")[0]!==this.props.router.asPath.split("?")[0]&&(this.setState(e=>({...e,navManifest:i4(this.props.data.items)})),this.state.isMenuOpen&&this.toggleMenuVisibility())}toggleMenuVisibility(){let{isMenuOpen:e}=this.state;this.setState(t=>({...t,isMenuOpen:!e}))}textStylePropsFromOptions(){let{textColor:e,font:t,showIndicatorShadow:i}=this.props.data;return{textColor:e?(0,ey.a)(e):"rgba(0, 0, 0)",fontFamily:t,showShadow:i}}renderMenuButton(){let e=this.textStylePropsFromOptions(),{isMenuOpen:t}=this.state,{data:{buttonStyle:i,textColor:n}}=this.props;return ni({closedColor:n?(0,ey.a)(n):"rgba(0, 0, 0)",buttonStyle:i,fontFamily:e.fontFamily},t,this.toggleMenuVisibility.bind(this))}renderTabs(){let{navStyles:e,tabListStyles:t}=this.state;if(!e||!t)return null;let i=this.textStylePropsFromOptions();return(0,X.tZ)("ul",{className:this.state.isMenuOpen?"visible":"",css:t,onScroll:this.scrollHandler,ref:e=>{this.bar=e,this.scrollHandler()},children:this.state.navManifest.map((e,t)=>{let{textColor:n,fontFamily:a}=i,o={itemData:e,itemIndex:t,textColor:n,fontFamily:a,toggleMenu:this.toggleMenuVisibility.bind(this)};return(0,X.tZ)(nm,{...o},t)})})}render(){let{navStyles:e,isMenuOpen:t}=this.state;if(!e)return null;let i={...this.props.context};return i.contentTopOffset=60,(0,X.BX)(X.HY,{children:[(0,X.BX)("nav",{css:e,children:[this.renderMenuButton(),this.renderTabs(),this.props.data.nestedItems&&(0,X.tZ)("div",{css:nr.menuMinimal(t),children:(0,X.tZ)(nh,{menuColor:this.props.data.textColor,menuItems:this.props.data.nestedItems})})]}),nz(this.props.data.content,i)]})}constructor(e){super(e),this.createStyles=()=>{let e=(0,ep.iv)({position:"fixed",alignItems:"center",justifyContent:"flex-start",height:"60px",top:"0",left:"0",width:["100%","calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))"],padding:"16px",boxSizing:"border-box",zIndex:500,display:"flex",fontSize:i5("minimal",this.props.data.font)}),t=(0,ep.iv)({listStyle:"none",display:"flex",overflowX:"scroll",margin:0,padding:"0 16px 0 16px",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","::-webkit-scrollbar":{display:"none",width:0},"::-webkit-scrollbar-thumb":{display:"none",width:0},scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0%, transparent 10px, black ".concat(30,"px, black calc(100% - ").concat(35,"px), ").concat(this.state.showRightFade?"transparent":"black"," 100%)"),pointerEvents:"none",opacity:0,transition:"opacity 0s .2s","& > *":{opacity:0,transform:"translateX(-10px)"},"&.visible":{pointerEvents:"all",opacity:1,transition:"none","& > *":{opacity:1,transform:"translateX(0)"}}});this.setState(i=>({...i,navStyles:e,tabListStyles:t}))},this.scrollHandler=()=>{this.bar&&(this.bar.scrollLeft+this.bar.offsetWidth>this.bar.scrollWidth-6?this.state.showRightFade&&this.setState(e=>({...e,showRightFade:!1})):this.state.showRightFade||this.setState(e=>({...e,showRightFade:!0})))},this.state={showRightFade:!0,navStyles:null,tabListStyles:null,isMenuOpen:!1,navManifest:i4(e.data.items)},this.bar=null}}var nv=(0,eI.withRouter)(ny),nb=e=>{var t;let{data:i,context:n}=e,a=nz(i.content,n);return(0,X.BX)(X.HY,{children:[(0,X.tZ)("nav",{css:np,children:(0,X.tZ)("div",{css:nr.menuMinimal(!(null===(t=i.nestedItems)||void 0===t?void 0:t.length)),children:(0,X.tZ)(nh,{menuColor:i.menuColor,menuItems:i.nestedItems})})}),(0,X.tZ)("div",{style:{position:"relative"},children:a})]})};let nx=(0,tw.Z)("div",{target:"e1vvqxx40"})("@media (",tM.z$.MEDIA_QUERY,"){margin-left:",e=>{let{alignment:t}=e;return t===R.Alignment.Left?"".concat(tM.z$.WIDTH,"px"):"auto"},";margin-right:",e=>{let{alignment:t}=e;return t===R.Alignment.Right?"".concat(tM.z$.WIDTH,"px"):"auto"},";}");var nw=e=>{let{children:t,alignment:i}=e;return(0,X.tZ)(nx,{alignment:i,children:t})};let nS={transition:"opacity ".concat(500,"ms"),opacity:0,zIndex:500,position:"fixed",background:"rgba(0,0,0,.2)",top:0,right:0,bottom:0,left:0},nk={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0,pointerEvents:"none"},exited:{opacity:0,pointerEvents:"none"}},nC=function(e){e.preventDefault()},nT=function(e){e.stopPropagation()};class nI extends V.Component{componentDidUpdate(e){var t,i;let n=document.getElementById("sidebar");!e.show&&this.props.show&&(null===(t=document.getElementById("__next"))||void 0===t||t.addEventListener("touchmove",nC),null==n||n.addEventListener("touchmove",nT)),e.show&&!this.props.show&&(null===(i=document.getElementById("__next"))||void 0===i||i.removeEventListener("touchmove",nC),null==n||n.removeEventListener("touchmove",nT))}render(){let{show:e,onClick:t}=this.props;return(0,X.tZ)(i0.ZP,{in:e,timeout:500,nodeRef:this.transitionNodeRef,children:e=>(0,X.tZ)("div",{onClick:t,style:{...nS,...nk[e]}})})}constructor(...e){super(...e),this.transitionNodeRef=(0,V.createRef)()}}let nZ=(0,tw.Z)("span",{target:"eet0qcm0"})("@media (",tM.z$.MEDIA_QUERY,"){display:none;}"),nB=(0,tw.Z)("nav",{target:"eet0qcm1"})("position:fixed;align-items:center;justify-content:",e=>{let{alignment:t}=e;return t===R.Alignment.Left?"flex-start":"flex-end"},";height:60px;top:0;left:0;width:100%;width:calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));padding:16px;box-sizing:border-box;z-index:500;display:flex;@media (",tM.z$.MEDIA_QUERY,"){",e=>{let{alignment:t}=e;return{[t]:tM.z$.WIDTH}},"    width:calc(100% - ",tM.z$.WIDTH,"px);width:calc(\n      100% - env(safe-area-inset-left) - env(safe-area-inset-right) - ",tM.z$.WIDTH,"px\n    );}"),nP=(0,tw.Z)("div",{target:"eet0qcm2"})("padding:60px 0 100px 0;position:absolute;overflow:auto;margin-right:-20px;top:0;right:0;bottom:0;left:0;mask-image:linear-gradient(\n    transparent,transparent 45px,black 80px,black calc(100% - 100px),transparent calc(100% - 60px)\n  );@media (",tM.z$.MEDIA_QUERY,"){padding:20px 0 100px 0 !important;mask-image:linear-gradient(\n      transparent,transparent 10px,black 35px,black calc(100% - 100px),transparent calc(100% - 60px)\n    );}"),nF=(0,tw.Z)("ul",{target:"eet0qcm3"})("margin:0;list-style:none;padding:0 18px;display:flex;flex-direction:column;"),nH=(0,tw.Z)("li",{target:"eet0qcm4"})("margin:14px 0;display:flex;padding-right:",e=>{let{alignment:t}=e;return t===R.Alignment.Right?"0":"16px"},";justify-content:",e=>{let{alignment:t}=e;return t===R.Alignment.Right?"flex-end":"flex-start"},";margin-right:",e=>{let{alignment:t}=e;return t===R.Alignment.Right?"20px":"0"},";"),nR=(0,tw.Z)("a",{target:"eet0qcm5"})("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;text-decoration:",e=>{let{selected:t}=e;return t?"underline":"none"},";cursor:pointer;");class nL extends V.Component{componentDidUpdate(e){e.router.asPath.split("?")[0]!==this.props.router.asPath.split("?")[0]&&this.setState({navManifest:i4(this.props.data.items)})}toggleMenuVisibility(){this.setState(e=>({isMenuOpen:!e.isMenuOpen}))}textStylePropsFromOptions(){let{textColor:e,font:t}=this.props.data;return{textColor:(0,ey.a)(e),fontFamily:t,showShadow:!1}}renderMenuButton(){let e=this.textStylePropsFromOptions(),{isMenuOpen:t}=this.state,{buttonStyle:i,menuColor:n,textColor:a,alignment:o}=this.props.data,r=(0,ey.a)(n),l={openColor:(0,ey.a)(a),closedColor:r,alignment:o,buttonStyle:i,fontFamily:e.fontFamily};return(0,X.tZ)(nZ,{children:ni(l,t,this.toggleMenuVisibility.bind(this))})}renderNavBar(){let{alignment:e,menuColor:t,nestedItems:i}=this.props.data;return(0,X.BX)(nB,{alignment:e,children:[this.renderMenuButton()," ",i&&(0,X.tZ)("div",{css:nr.menuSidebar,children:(0,X.tZ)(nh,{menuColor:t,menuItems:i})})]})}clickSidebarItem(){this.setState(e=>({...e,isMenuOpen:!1}))}renderNav(){let{font:e,menuColor:t,textColor:i}=this.props.data,n=(0,ep.iv)({transition:"transform 250ms",zIndex:500,position:"fixed",background:(0,ey.a)(t),color:(0,ey.a)(i),fontFamily:e,fontSize:i5("sidebar",e),width:260,[this.props.data.alignment]:0,top:0,bottom:0,transform:"translate(0, 0)",overflowX:"hidden",["@media(".concat(tM.z$.MEDIA_QUERY,")")]:{transform:"translate(0, 0) !important",zIndex:501,width:"".concat(tM.z$.WIDTH,"px !important")}}),a=this.props.data.alignment===R.Alignment.Right?"100%":"-100%",o={entering:{transform:"translate(0, 0)"},entered:{transform:"translate(0, 0)"},exiting:{transform:"translate(".concat(a,", 0)")},exited:{transform:"translate(".concat(a,", 0)")}},{isMenuOpen:r}=this.state;return(0,X.BX)(X.HY,{children:[(0,X.BX)(X.HY,{children:[(0,X.tZ)(nI,{show:r,onClick:this.toggleMenuVisibility.bind(this)}),(0,X.tZ)(i0.ZP,{in:r,timeout:500,nodeRef:this.transitionNodeRef,children:e=>(0,X.tZ)("div",{css:n,style:{...o[e]},children:(0,X.tZ)(nP,{id:"sidebar",children:(0,X.tZ)(nF,{children:this.state.navManifest.map((e,t)=>(0,X.tZ)(nH,{alignment:this.props.data.alignment,onClick:this.clickSidebarItem.bind(this),children:(0,X.tZ)(i8,{href:e.destination,passHref:!0,legacyBehavior:!0,children:(0,X.tZ)(nR,{selected:e.isCurrent,children:"".concat(e.title)})})},t))})})})})]}),(0,X.tZ)("div",{style:{position:"relative"},children:this.renderNavBar()})]})}render(){let e={...this.props.context,contentTopOffset:60},t=nz(this.props.data.content,e);return(0,X.BX)(nw,{alignment:this.props.data.alignment,children:[this.renderNav(),t]})}constructor(...e){super(...e),this.state={navManifest:i4(this.props.data.items),isMenuOpen:!1},this.transitionNodeRef=(0,V.createRef)()}}var nM=(0,eI.withRouter)(nL);class nE extends V.Component{componentDidMount(){this.createStyles()}componentDidUpdate(e,t){if(t.showRightFade!==this.state.showRightFade&&this.createStyles(),this.bar){let e=[].slice.apply(this.bar.children).reduce((e,t)=>e+t.getBoundingClientRect().width+32,0);e>window.innerWidth-16&&!1===this.state.navIsScrollable?this.setState({navIsScrollable:!0}):e<=window.innerWidth-16&&!0===this.state.navIsScrollable&&this.setState({navIsScrollable:!1})}}textStylePropsFromOptions(){let{textColor:e,font:t}=this.props.data;return{textColor:(0,ey.a)(e),fontFamily:t,showShadow:!1}}lastItemStyles(){return this.state.navIsScrollable?{paddingRight:"16px"}:{}}renderHamburgerAndTabs(){let e=i4(this.props.data.items),{navStyles:t,tabWrapperStyles:i,tabListStyles:n}=this.state;if(!t||!i||!n)return null;let a=this.textStylePropsFromOptions();return(0,X.tZ)("nav",{css:t,children:(0,X.tZ)("div",{css:i,children:(0,X.tZ)("ul",{css:n,onScroll:this.scrollHandler,ref:e=>{this.bar=e,this.scrollHandler()},children:e.map((e,t)=>{let{textColor:i,fontFamily:n}=a,o={itemData:e,itemIndex:t,textColor:i,fontFamily:n,lastItemStyles:this.lastItemStyles()};return(0,X.tZ)(nm,{...o},t)})})})})}render(){let e=i3("tabs",this.props.data.font)+28,t=nz(this.props.data.content,{...this.props.context,contentTopOffset:this.props.data.nestedItems?e+20:e}),{textColor:i,fontFamily:n}=this.textStylePropsFromOptions(),{menuColor:a,alignment:o}=this.props.data,r=(0,ey.a)(a),l=(0,ep.iv)({backgroundColor:r,textColor:i,fontFamily:n,position:"fixed",top:0,left:0,right:0,zIndex:500}),s=nr.menuTabs(!this.state.isMenuOpen,o);return(0,X.BX)(X.HY,{children:[(0,X.BX)("div",{css:l,children:[this.renderHamburgerAndTabs(),this.props.data.nestedItems&&(0,X.tZ)("div",{style:{position:"relative"},children:(0,X.tZ)("div",{css:nu(s),children:(0,X.tZ)(nh,{menuColor:this.props.data.textColor,menuItems:this.props.data.nestedItems})})})]}),t]})}constructor(e){super(e),this.createStyles=()=>{let{alignment:e}=this.props.data,t=(0,ep.iv)({fontSize:i5("tabs",this.props.data.font),width:["100%","calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))"],lineHeight:"calc(".concat(i5("tabs",this.props.data.font)," + ").concat(28,"px)"),display:"flex",alignItems:"baseline",paddingLeft:"env(safe-area-inset-left)",justifyContent:tM.MF[e],height:"100%",position:"relative"}),i=(0,ep.iv)({overflowY:"hidden",display:"flex",justifyContent:"center",alignItems:"center"}),n=(0,ep.iv)({listStyle:"none",display:"flex",overflowX:"scroll",margin:0,padding:0,boxSizing:"border-box",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","::-webkit-scrollbar":{display:"none",width:0},"::-webkit-scrollbar-thumb":{display:"none",width:0},maskImage:"linear-gradient(to right, transparent 0%, black ".concat(13,"pt, black calc(100% - ").concat(56,"pt), ").concat(this.state.showRightFade?"transparent":"black"," calc(100% - 16px) ,").concat(this.state.showRightFade?"transparent":"black"," 100%)")});this.setState({navStyles:t,tabWrapperStyles:i,tabListStyles:n})},this.scrollHandler=()=>{this.bar&&(this.bar.scrollLeft+this.bar.offsetWidth>this.bar.scrollWidth-6?this.state.showRightFade&&this.setState({showRightFade:!1}):this.state.showRightFade||this.setState({showRightFade:!0}))},this.state={showRightFade:!0,navStyles:null,tabWrapperStyles:null,tabListStyles:null,navIsScrollable:!1,isMenuOpen:!0},this.bar=null}}var nN=(0,eI.withRouter)(nE);let nA=eu()(()=>Promise.all([i.e(299),i.e(634),i.e(908)]).then(i.bind(i,2908)),{loadableGenerated:{webpack:()=>[2908]},ssr:!1}),nD=eu()(()=>Promise.all([i.e(351),i.e(361),i.e(17),i.e(824)]).then(i.bind(i,4824)),{loadableGenerated:{webpack:()=>[4824]}}),n_=eu()(()=>Promise.all([i.e(546),i.e(13)]).then(i.bind(i,2013)),{loadableGenerated:{webpack:()=>[2013]},ssr:!1}),nO=eu()(()=>Promise.all([i.e(893),i.e(590)]).then(i.bind(i,9650)),{loadableGenerated:{webpack:()=>[9650]},ssr:!1});var nz=(e,t)=>{if(!e)return null;switch(e.contentType){case P.Document:return(0,X.tZ)(re,{data:e,context:t});case P.MenuFullscreen:return(0,X.tZ)(nf,{data:e,context:t});case P.MenuMinimal:return(0,X.tZ)(nv,{data:e,context:t});case P.MenuSidebar:return(0,X.tZ)(nM,{data:e,context:t});case P.MenuTabs:return(0,X.tZ)(nN,{data:e,context:t});case P.MenuPagingIndicator:return(0,X.tZ)(nb,{data:e,context:t});case P.TimelineHorizontal:{let i=e.pages[0].route.split("?")[0].split("/")[1];return(0,X.tZ)(iq,{data:e,context:t},"htimeline-".concat(i))}case P.TimelineVertical:{let i=e.pages[0].route.split("?")[0].split("/")[1];return(0,X.tZ)(iK,{data:e,context:t},i)}case P.Block:return(0,X.tZ)(ie,{data:e,context:t});case P.FlexGrid:return(0,X.tZ)(im,{data:e,context:t});case P.Grid:return(0,X.tZ)(iy,{data:e,context:t});case P.Section:return(0,X.tZ)(ik,{data:e,context:t});case P.Code:return(0,X.tZ)(n_,{data:e,context:t});case P.Image:return(0,X.tZ)(eT,{data:e,context:t});case P.LongVideo:return(0,X.tZ)(eB,{data:e,context:t});case P.Map:return(0,X.tZ)(nA,{data:e,context:t});case P.Payment:return(0,X.tZ)(eR,{data:e,context:t});case P.PhotoGallery:return(0,X.tZ)(nD,{data:e,context:t});case P.Shape:return(0,X.tZ)(ej,{data:e,context:t});case P.Soundcloud:return(0,X.tZ)(eX,{data:e,context:t});case P.Subscribe:return(0,X.tZ)(eK,{data:e,context:t});case P.Text:return(0,X.tZ)(te,{data:e,context:t});case P.Video:return(0,X.tZ)(tt,{data:e,context:t});case P.Vimeo:return(0,X.tZ)(tn,{data:e,context:t});case P.Youtube:return(0,X.tZ)(nO,{data:e,context:t})}};let nU=(0,tw.Z)("div",{target:"e1umsoe0"})("@keyframes fadein{0%{opacity:0;}100%{opacity:1;}}position:fixed;bottom:0;left:0;position:fixed;display:flex;align-items:center;height:100%;width:100%;backdrop-filter:blur(20px);background-color:rgba(0,0,0,0.25);animation:fadein 0.5s;z-index:9999;"),nq=(0,tw.Z)("div",{target:"e1umsoe1"})("width:100%;height:100%;font-family:-apple-system,SFTextRegular,Helvetica,Arial,sans-serif;-webkit-overflow-scrolling:touch;"),nj=(0,tw.Z)("div",{target:"e1umsoe2"})("position:absolute;top:50%;left:50%;width:100%;max-width:350px;max-height:calc(100% - 20px);border-radius:24px;transition:max-width 0.25s linear,border-radius 0.25s linear,top 0.25s linear,bottom 0.25s linear,transform 0.25s linear;transform:translate(-50%,-50%);-webkit-transition-delay:1ms;@media (max-width:",tM.$d.MAX_WIDTH_MOBILE,"px){",e=>e.shouldSnapToBottom&&"\n        max-width: 100%;\n        border-radius: 24px 24px 0 0;\n        top: auto;\n        bottom: 0;\n        transform: translate(-50%, 0);\n      ",";}background-color:#f6f6fa;overflow:hidden;box-sizing:border-box;animation:entranceAnimation 0.3s 0.3s;animation-fill-mode:forwards;@keyframes entranceAnimation{0%:{opacity:0;transform:scale(0.8);}100%:{opacity:1;transform:scale(1);}}"),nX=(0,tw.Z)("img",{target:"e1umsoe3"})("display:block;position:relative;cursor:pointer;background-color:rgba(0,0,0,0.4);padding:6px;margin:16px 16px 0 auto;border-radius:100px;transition:background-color 0.2s ease;&:hover{background-color:rgba(0,0,0,0.7);}");class nV extends V.Component{componentDidMount(){document.addEventListener("keydown",this.handleEscKeyPress,!1)}componentWillUnmount(){document.removeEventListener("keydown",this.handleEscKeyPress,!1)}handleClickOutsideModal(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&this.props.modalControllers.toggleModal()}handleEscKeyPress(e){27===e.keyCode&&this.props.isModalVisible&&this.props.modalControllers.toggleModal()}render(){return this.props.isModalVisible?(0,X.tZ)(nU,{onClick:this.handleClickOutsideModal.bind(this),children:(0,X.tZ)(nq,{onClick:this.handleClickOutsideModal.bind(this),children:(0,X.BX)(nj,{shouldSnapToBottom:this.props.shouldSnapToBottom,children:[(0,X.tZ)(nX,{src:"/static/modal-close-icon.svg",onClick:this.props.modalControllers.toggleModal}),this.props.modalContents]})})}):null}constructor(e){super(e),this.state={},this.componentDidMount=this.componentDidMount.bind(this),this.handleEscKeyPress=this.handleEscKeyPress.bind(this)}}var nW=()=>{let e=(0,V.useContext)(J);return(0,X.tZ)(nV,{isModalVisible:e.isOn,modalControllers:{toggleModal:e.toggleModal},modalContents:e.content,shouldSnapToBottom:e.shouldSnapToBottom})};let nG=(e,t)=>{let[i,n]=(0,V.useState)(()=>{try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(e){return t}});return[i,t=>{let a=t instanceof Function?t(i):t;n(a),null!==a?window.localStorage.setItem(e,JSON.stringify(a)):window.localStorage.getItem(e)&&window.localStorage.removeItem(e)}]},nY=async(e,t)=>{let i=await fetch("/_api/v1/sites/".concat(e,"/discounts/code/").concat(t),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}}),n=await i.json();return{id:n.id,siteId:n.site_id,code:n.code,isEnabled:n.is_active,discountType:n.discount_type,amount:n.amount,percentage:n.percentage,requirements:n.requirements}};(f=L||(L={})).AMOUNT="amount",f.PERCENTAGE="percentage",(m=M||(M={})).MIN_ITEM_QUANTITY="minimum-item-quantity",m.MIN_ORDER_SUBTOTAL="minimum-order-subtotal",(y=E||(E={}))[y.SOLD_OUT_SINGLE_PRODUCT=0]="SOLD_OUT_SINGLE_PRODUCT",y[y.ADDRESS=1]="ADDRESS",y[y.PAYMENT_METHOD=2]="PAYMENT_METHOD",y[y.CARD=3]="CARD",y[y.ADDED_TO_CART=4]="ADDED_TO_CART",y[y.UPDATED_CART=5]="UPDATED_CART",(v=N||(N={}))[v.CARD=0]="CARD",v[v.APPLE_PAY=1]="APPLE_PAY",(b=A||(A={})).pending="pending",b.succeeded="succeeded",b.failed="failed",b.canceled="canceled",(x=D||(D={})).pending="pending",x.succeeded="succeeded",x.failed="failed",x.requiresPaymentMethod="requires_payment_method",x.unknown="unknown",(w=_||(_={})).bank="bank",w.merchant="merchant",(S=O||(O={}))[S.usd=0]="usd",(k=z||(z={})).INVALID_INPUT="INVALID_INPUT",k.MAX_LENGTH="MAX_LENGTH",k.NOT_FOUND="NOT_FOUND",k.EXPIRED="EXPIRED",k.MIN_QUANTITY="MIN_QUANTITY",k.MIN_TOTAL="MIN_TOTAL",(C=U||(U={})).INVALID_INPUT="INVALID_INPUT",C.MAX_LENGTH="MAX_LENGTH";let nJ=(0,V.createContext)(null),n$=e=>{let{siteId:t,children:i,product:n}=e,{quantity:a,selections:o,itemQuantity:r,cartIsOpen:l,fetchCart:s}=(0,ty.g1)(),[c,d]=(0,V.useState)(!1),[u,p]=nG("universe-discount-code-".concat(t),null),[h,g]=(0,V.useState)(null);(0,V.useEffect)(()=>{f()},[u,n,a,o,r,l]);let f=()=>{g(null),u&&u.requirements&&u.requirements.length&&u.requirements.forEach(e=>{if(e.type===M.MIN_ITEM_QUANTITY){var t,i;((l?a:r)<e.value||!l&&o.length<(null!==(i=null==n?void 0:null===(t=n.variants)||void 0===t?void 0:t.variations.length)&&void 0!==i?i:0))&&g({type:"MIN_QUANTITY",message:"Please add ".concat(e.value," or more items to your cart for the discount to apply.")})}else if(l&&e.type===M.MIN_ORDER_SUBTOTAL)s().lineItems.reduce((e,t)=>e+t.unitPrice*t.quantity,0)<e.value&&g({type:"MIN_TOTAL",message:"Spend ".concat(tP(e.value)," or more for the discount to apply")});else if(!l&&n&&e.type===M.MIN_ORDER_SUBTOTAL){let t=null;((t=0===n.variants.variations.length?n.variants.units[0]:n.variants.units.find(e=>e.options.every(e=>o.find(t=>t.option_id===e.id&&t.variation_id===e.variation_id))))?t.price.amount*r:n.price*r)<e.value&&g({type:"MIN_TOTAL",message:"Spend ".concat(tP(e.value)," or more for the discount to apply")})}})};return(0,X.tZ)(nJ.Provider,{value:{isLoading:c,discount:u,discountError:h,clear:()=>{d(!1),p(null),g(null)},fetch:e=>(d(!0),nY(t,e).then(e=>{if(void 0===e.discountType)throw"NOT_FOUND";if(!e.isEnabled)throw"EXPIRED";return p(e),e}).catch(e=>{let t=null;throw g(t="EXPIRED"===e?{type:"EXPIRED",message:"This discount code is no longer valid"}:{type:"NOT_FOUND",message:"Discount does not exist"}),t}).finally(()=>{d(!1)})),reset:()=>{d(!1)}},children:i})},nQ=()=>(0,V.useContext)(nJ),nK=(e,t)=>{let i=0;e&&(i=e.discountType===L.AMOUNT?e.amount:Math.round(t*e.percentage));let n=t-i;return n<50&&(i=t-50,n=50),[i,n]};class n0 extends Error{constructor(e,t){super(t),this.status=e}}let n1=async e=>{let{siteID:t,buyerName:i,buyerEmail:n,shippingInfo:a,phoneNumber:o,lineItems:r,discounts:l,shippingRates:s}=e,c=r.map(e=>({sku:e.sku,quantity:e.quantity,notes:e.notes})),d=await fetch("/_api/v3/orders",{method:"POST",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({site_id:t,buyer_name:i,buyer_email:n,shipping_info:a,phone_number:o,line_items:c,discounts:l,shipping_rates:null==s?void 0:s.map(e=>({id:e.id,amount:e.price.amount}))})}),u=await d.json();if(d.status>=400)throw new n0(d.status,u.message||"Something went wrong");return u},n2=(0,tw.Z)("div",{target:"ezq2eiy0"})("display:flex;margin-top:8px;transition:opacity 200ms;input{box-sizing:border-box;background-color:white;border:1px solid ",e=>e.error?"red":"white",";padding:17px 16px;border-radius:8px;outline:none;-webkit-appearance:none;font-size:17px;:focus{border:1px solid rgba(0,0,0,0.3);}::placeholder{color:",e=>e.error?"red":"#b3b3b3",";}}");var n5=e=>{let{error:t,children:i,cssStyles:n}=e;return(0,X.tZ)(n2,{error:t,css:(0,ep.iv)(n||null),...e,children:i})};let n3=(0,tw.Z)("div",{target:"e1nrth0"})("justify-content:space-between;padding:16px 0;border-top:0.5px solid rgba(1,1,1,0.2);border-bottom:0.5px solid rgba(1,1,1,0.2);"),n4=(0,tw.Z)("div",{target:"e1nrth1"})("display:inline-block;font-family:SFUIText-Regular;font-size:17px;line-height:22px;letter-spacing:-0.0241176em;color:",e=>e.isActive?"#191919":"#616161",";"),n7=(0,tw.Z)("div",{target:"e1nrth2"})("display:flex;justify-content:space-between;align-items:center;"),n6=(0,tw.Z)("button",{target:"e1nrth3"})('border:0;padding:0;color:#616161;cursor:pointer;width:18px;height:18px;background-color:transparent;background-image:url("/static/plus-bordered.svg");background-position:center;background-repeat:no-repeat;'),n8=(0,tw.Z)("button",{target:"e1nrth4"})('border:0;padding:0;color:#616161;cursor:pointer;width:18px;height:17px;background-color:transparent;background-image:url("/static/minus-bordered.svg");background-position:center;background-repeat:no-repeat;'),n9=(0,tw.Z)(n5,{target:"e1nrth5"})("position:relative;form{width:100%;}"),ae=(0,tw.Z)("input",{target:"e1nrth6"})("width:100%;"),at=(0,tw.Z)("button",{target:"e1nrth7"})("position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;padding:0;margin:0;border:0;outline:0;cursor:",e=>e.valid?"pointer":"default",";background-color:",e=>e.valid?"#191919":"#b3b3b3",';&::after{content:"";position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:14px;height:14px;background-image:',e=>e.valid?'url("/static/check-mark-light.svg")':'url("/static/check-mark-dark.svg")',";background-position:center;background-repeat:no-repeat;}"),ai=(0,tw.Z)("span",{target:"e1nrth8"})("display:flex;justify-content:flex-start;align-items:center;font-family:SFUIText-Regular;font-size:13px;color:#616161;margin-top:8px;"),an=(0,tw.Z)(ai,{target:"e1nrth9"})("font-size:15px;color:#ff3a3a;margin-left:16px;"),aa=(0,tw.Z)(tL,{target:"e1nrth10"})("height:72px;margin-top:8px;svg path{fill:#b3b3b3;}"),ao=(0,tw.Z)("div",{target:"e1nrth11"})('width:14px;height:13px;margin-right:6px;background-image:url("/static/info-bordered.svg");background-repeat:no-repeat;'),ar=(0,tw.Z)("div",{target:"e1nrth12"})('width:21px;height:17px;margin-top:2px;margin-right:8px;background-image:url("/static/alert.svg");background-repeat:no-repeat;'),al=(0,tw.Z)("div",{target:"e1nrth13"})("display:flex;padding:12px 18px 12px 12px;margin-top:8px;background-color:#fff;border-radius:12px;box-shadow:0px 0px 1px 0px #0000000a,0px 0px 2px 0px #0000000f,0px 2px 8px 0px #0000000a;"),as=(0,tw.Z)("div",{target:"e1nrth14"})("width:100%;"),ac=(0,tw.Z)("span",{target:"e1nrth15"})("display:block;font-family:SFUIText-Regular;padding-bottom:4px;text-transform:uppercase;font-size:17px;line-height:22px;letter-spacing:-0.0241em;"),ad=(0,tw.Z)("span",{target:"e1nrth16"})("display:block;font-family:SFUIText-Regular;color:#616161;font-size:17px;line-height:22px;letter-spacing:-0.0241em;"),au=(0,tw.Z)("div",{target:"e1nrth17"})('cursor:pointer;color:transparent;width:14px;height:14px;margin-left:8px;background-image:url("/static/close.svg");background-position:top;background-repeat:no-repeat;');(T=q||(q={}))[T.CLOSED=0]="CLOSED",T[T.OPEN=1]="OPEN",T[T.INVALID=2]="INVALID",T[T.LOADING=3]="LOADING",T[T.APPLIED=4]="APPLIED";var ap=e=>{let{footerMessage:t,onDiscountCodeHeightChange:i}=e,n=(0,V.useRef)(null),{isLoading:a,discount:o,discountError:r,clear:l,fetch:s}=nQ(),[c,d]=(0,V.useState)(0),[u,p]=(0,V.useState)(r),[h,g]=(0,V.useState)("");(0,V.useEffect)(()=>{o&&s(o.code).then(()=>{d(4)}).catch(()=>{d(2)})},[]),(0,V.useEffect)(()=>{if(i){let e=n.current.clientHeight;i(0===e?56:e+2)}},[c,u,t]),(0,V.useEffect)(()=>{p(r)},[r]);let f=()=>{l(),d(0)},m=o?o.discountType===L.AMOUNT?"$".concat(.01*o.amount):"".concat(Math.round(100*o.percentage),"%"):"";return(0,X.BX)(n3,{ref:n,children:[(0,X.BX)(n7,{children:[(0,X.tZ)(n4,{isActive:0!==c,children:"Discount Code"}),0===c&&(0,X.tZ)(n6,{onClick:()=>d(1)}),(1===c||2===c)&&(0,X.tZ)(n8,{onClick:()=>d(0)})]}),(1===c||2===c)&&!a&&(0,X.BX)(X.HY,{children:[(0,X.tZ)(n9,{children:(0,X.BX)("form",{onSubmit:e=>{e.preventDefault(),s(h).then(()=>{d(4)}).catch(()=>{d(2)})},children:[(0,X.tZ)(ae,{type:"text",required:!0,value:h,disabled:a,onChange:e=>{let t=e.target.value.toUpperCase();p(null),g(t),d(1);let i=/^[a-z0-9]+$/i.test(t.trim());t.length&&!i?(d(2),p({type:U.INVALID_INPUT,message:"Please enter a valid discount code"})):t.length>20&&(d(2),p({type:U.MAX_LENGTH,message:"Max length exceeded"}))},autoFocus:!0}),(0,X.tZ)(at,{valid:!u&&!!h,disabled:!!u||a,type:"submit"})]})}),u&&(0,X.tZ)(an,{children:u.message})]}),a&&(0,X.tZ)(aa,{}),4===c&&o&&!u&&(0,X.tZ)(ah,{code:o.code,message:"".concat(m," off total"),onClose:f}),4===c&&o&&!!u&&(0,X.tZ)(ah,{type:"alert",code:o.code,message:null==u?void 0:u.message,onClose:f}),t&&(0,X.tZ)(ag,{children:t})]})};let ah=e=>{let{code:t,message:i,onClose:n,type:a}=e;return(0,X.BX)(al,{children:["alert"===a&&(0,X.tZ)(ar,{}),(0,X.BX)(as,{children:[(0,X.tZ)(ac,{children:t}),(0,X.tZ)(ad,{children:i})]}),(0,X.tZ)(au,{onClick:n})]})},ag=e=>{let{children:t}=e;return(0,X.BX)(ai,{children:[(0,X.tZ)(ao,{}),t]})};var af=i(6664);let am=e=>{let t=(0,af.useElements)(),i={...e,elements:t};return(0,X.tZ)(ay,{...i})};class ay extends V.Component{allValid(){return this.isValid.email()&&this.isValid.card()&&this.isValid.name()}componentDidUpdate(e){!this.props.succeeded&&e.succeeded&&this.setState({submitAttempted:!1})}renderForm(){let e="#b3b3b3",t="rgba(0,0,0,.3)",i=!this.isValid.email()&&this.state.submitAttempted,n=!this.isValid.card()&&this.state.submitAttempted,a=this.isValid.name()&&this.state.submitAttempted,o=(0,ep.iv)({base:{color:"#32325d",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, Helvetica, sans-serif",fontSmoothing:"antialiased",fontSize:"17px","::placeholder":{color:n?"red":e}},invalid:{color:"red",iconColor:"red"}});return(0,X.tZ)("div",{css:(0,ep.iv)("opacity:",this.props.step===E.CARD?1:0,";visibility:",this.props.step===E.CARD?"visible":"hidden",";transition:opacity 500ms ease 500ms,",this.props.step===E.CARD?"visibility 0ms ease 0ms":"visibility 0ms ease 500ms",";height:100%;position:absolute;top:0;bottom:0;left:0;right:0;overflow:scroll;::-webkit-scrollbar{display:none;}"),children:(0,X.BX)("form",{css:(0,ep.iv)("transition:opacity 200ms;opacity:",this.props.succeeded?0:1,";font-family:system-ui,-apple-system,BlinkMacSystemFont,Helvetica,sans-serif;margin-top:14px;"),onSubmit:this.handleSubmit,children:[(0,X.tZ)("div",{css:(0,ep.iv)("display:flex;margin-bottom:8px;opacity:",this.state.processing?".6":"1",";transition:opacity 200ms;input{box-sizing:border-box;background-color:white;border:1px solid ",a?"red":"white",";padding:17px 16px;border-radius:8px;width:100%;outline:none;-webkit-appearance:none;font-size:17px;:focus{border:1px solid ",t,";}::placeholder{color:",a?"red":e,";}}"),children:(0,X.tZ)("input",{css:(0,ep.iv)("display:block;margin:0;border:none;"),disabled:this.state.processing,value:this.state.name,onChange:e=>{this.setState({name:e.target.value})},type:"name",id:"name",placeholder:"Name",autoComplete:"name"})}),(0,X.tZ)("div",{css:(0,ep.iv)("display:flex;opacity:",this.state.processing?".6":"1",";transition:opacity 200ms;input{box-sizing:border-box;background-color:white;border:1px solid ",i?"red":"white",";padding:17px 16px;border-radius:8px;width:100%;outline:none;-webkit-appearance:none;font-size:17px;:focus{border:1px solid ",t,";}::placeholder{color:",i?"red":e,";}}"),children:(0,X.tZ)("input",{css:(0,ep.iv)("display:block;margin:0;border:none;"),disabled:this.state.processing,value:this.state.email,onChange:e=>{this.setState({email:e.target.value})},type:"email",id:"email",placeholder:"Email",autoComplete:"email"})}),(0,X.tZ)("div",{css:(0,ep.iv)("border:1px solid\n                ",this.state.stripeCardElementFocused?t:n?"red":"white",";background-color:white;border-radius:8px;margin-top:8px;padding:17px 16px;opacity:",this.state.processing?".6":"1",";transition:opacity 200ms;"),children:(0,X.tZ)(af.CardElement,{onChange:e=>this.setState(t=>({...t,stripeCardElementComplete:e.complete})),onFocus:()=>this.setState(e=>({...e,stripeCardElementFocused:!0})),onBlur:()=>this.setState(e=>({...e,stripeCardElementFocused:!1})),css:o})}),(0,X.BX)("button",{disabled:!this.allValid()||this.state.processing,css:(0,ep.iv)("margin-top:16px;padding:0 16px;width:100%;-webkit-appearance:none;font-family:SFDisplaySemibold;letter-spacing:-0.01em;border-radius:8px;height:56px;font-size:17px;border:1px solid rgba(0,0,0,0);outline:none;position:relative;color:",this.state.processing?"rgba(255,255,255,0)":"rgba(255,255,255,1)",";background-color:",this.state.processing?"rgba(0,0,0,.8)":"rgba(0,0,0,1)",";transition:color 200ms,background 200ms,opacity 200ms;opacity:",this.allValid()?1:.2,";cursor:",this.allValid()?"pointer":"auto",";:focus{border:1px solid ",t,";}max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"),children:["Pay ".concat(this.props.price),(0,X.tZ)(tL,{color:"black",styles:{opacity:this.state.processing?"1":"0",transition:"opacity 200ms ease 400ms",width:"50px",height:"50px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})]})]})})}render(){return this.renderForm()}constructor(...e){super(...e),this.state={processing:!1,submitAttempted:!1,email:"",name:"",stripeCardElementComplete:!1,stripeCardElementFocused:!1},this.isValid={email:()=>/^[^\s@]+@[^\s@]+\./.test(this.state.email),card:()=>this.state.stripeCardElementComplete,name:()=>this.state.name},this.handleValidSubmit=async()=>{try{let{shippingInfo:e,requiresShipping:t,requiresPhoneNumber:i,phoneNumber:n,siteID:a,lineItems:o,discount:r,discountError:l,shippingRate:s}=this.props;this.setState({processing:!0});let c=o.map(e=>{let t={sku:e.sku,quantity:e.quantity};return e.notes&&(t.notes=e.notes),t}),d=o.some(e=>e.requiresShipping),u={siteID:a,buyerName:this.state.name,buyerEmail:this.state.email,lineItems:c,discounts:r&&!l?[{code:r.code}]:null,shippingRates:d?[s]:null};t&&(u.shippingInfo=e),i&&(u.phoneNumber=n);let p=await n1(u),{transaction:h}=p;if(!h.client_secret)throw Error("Error creating order");let g=await this.props.stripe.confirmCardPayment(h.client_secret,{payment_method:{card:this.props.elements.getElement("card")}});if(g.error)throw Error(g.error.message);this.props.onSucceed(p),this.setState({processing:!1})}catch(e){this.props.onError(e)}},this.handleSubmit=e=>{e.preventDefault(),this.allValid()?this.handleValidSubmit():this.setState({submitAttempted:!0})}}}var av=e=>(0,X.tZ)(af.Elements,{stripe:e.stripe,children:(0,X.tZ)(am,{...e})}),ab=i(6261);let ax=(0,tw.Z)("div",{target:"e37wl9n0"})("visibility:",e=>e.invalid?"visible":"hidden",";color:#ff3a3a;line-height:16px;font-size:12px;font-weight:normal;font-family:SFTextRegular;margin-top:4px;"),aw=(0,tw.Z)("div",{target:"edd332z0"})("display:",e=>e.hidden?"none":"flex",";padding:8px 0 0;flex-direction:row;justify-content:space-between;align-items:center;width:100%;"),aS=(0,tw.Z)("div",{target:"edd332z1"})("display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,0.1);height:38px;width:118px;border-radius:8px;"),ak=(0,tw.Z)("div",{target:"edd332z2"})("border:none;cursor:",e=>e.disabled?"default":"pointer",";opacity:",e=>e.disabled?.2:1,";transition:opacity 200ms;height:100%;width:25%;display:flex;-webkit-user-select:none;-ms-user-select:none;user-select:none;justify-content:flex-start;"),aC=(0,tw.Z)("div",{target:"edd332z3"})("border:none;cursor:",e=>e.disabled?"default":"pointer",";opacity:",e=>e.disabled?.2:1,";transition:opacity 200ms;height:100%;width:25%;display:flex;-webkit-user-select:none;-ms-user-select:none;user-select:none;justify-content:flex-end;"),aT=(0,tw.Z)("div",{target:"edd332z4"})("display:flex;flex-direction:row;width:80%;align-items:center;justify-content:space-between;"),aI=(0,tw.Z)("input",{target:"edd332z5"})("font-size:17px;text-align:center;outline:none;border:none;font-family:inherit;background-color:inherit;width:33%;display:flex;::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}-moz-appearance:textfield;"),aZ=e=>{let[t,i]=(0,V.useState)(e.quantity||1),{maxQuantity:n,hidden:a,updateQuantity:o}=e,r=e=>{let t=e>0?e:"";i(t),o(t)},l=e=>{13==e.keyCode&&e.target.blur()},s=1===t,c=n&&t>=n;return(0,X.BX)(aw,{hidden:a,children:[(0,X.tZ)("p",{children:"Quantity"}),(0,X.tZ)(aS,{children:(0,X.BX)(aT,{children:[(0,X.tZ)(ak,{onClick:()=>{let e;i(e=n&&t>n?n:t>1?t-1:t),o(e)},disabled:!t||s,children:"-"}),(0,X.tZ)(aI,{value:t,type:"number",inputMode:"numeric",min:1,max:n,onChange:e=>r(Number(e.target.value)),onKeyDown:e=>l(e)}),(0,X.tZ)(aC,{onClick:()=>{let e;i(e=t?n?t<n?t+1:t:t+1:1),o(e)},disabled:c,children:"+"})]})})]})},aB=(0,tw.Z)("div",{target:"ewkkova0"})("position:absolute;top:0;right:0;left:0;margin:0;font-size:17px;line-height:22px;height:100%;overflow:auto;::-webkit-scrollbar{display:none;}font-family:SFDisplaySemibold;letter-spacing:-0.01em;opacity:",e=>e.step===E.PAYMENT_METHOD?1:0,";visibility:",e=>e.step===E.PAYMENT_METHOD?"visible":"hidden",";transition:opacity 500ms ease 0ms,",e=>e.step===E.PAYMENT_METHOD?"visibility 0ms ease 0ms":"visibility 0ms ease 500ms",";"),aP=(0,tw.Z)("div",{target:"ewkkova1"})("margin:14px 0 0 0;font-size:17px;line-height:22px;display:flex;flex-direction:column;font-family:SFDisplaySemibold;letter-spacing:-0.01em;"),aF=(0,tw.Z)("div",{target:"ewkkova2"})("margin-bottom:6px;"),aH=(0,tw.Z)("div",{target:"ewkkova3"})("display:flex;flex-direction:row;overflow:auto;::-webkit-scrollbar{display:none;}"),aR=(0,tw.Z)("div",{target:"ewkkova4"})("padding:8px;margin-right:16px;border-radius:8px;user-select:none;cursor:pointer;color:",e=>e.isSelected?"white":"black",";background-color:",e=>e.isSelected?"rgba(0,0,0,1)":"rgba(0,0,0,.1)",";white-space:nowrap;"),aL=(0,tw.Z)("div",{target:"ewkkova5"})("box-sizing:border-box;display:flex;width:100%;justify-content:center;align-items:center;color:",e=>e.messageColor?e.messageColor:"rgba(0, 0, 0, 0.5)",";margin:0;height:",e=>e.messageVisible?"54px":"15px",";opacity:",e=>e.messageVisible?1:0,";transition:height 500ms,opacity 300ms;"),aM=(0,tw.Z)("div",{target:"ewkkova6"})("margin-top:13px;display:",e=>e.canUseApplePay?"block":"none",";"),aE=(0,tw.Z)("button",{target:"ewkkova8"})(":disabled{pointer-events:none;}border-radius:8px;width:100%;height:54px;cursor:pointer;background-image:-webkit-named-image(apple-pay-logo-white);background-color:black;padding:0px;box-sizing:border-box;display:inline-block;background-size:100% 45%;background-position:50% 50%;background-repeat:no-repeat;-webkit-appearance:none;border:none;opacity:",e=>e.disabled||e.invalidNotes?.5:1,";"),aN=(0,tw.Z)("button",{target:"ewkkova10"})(":disabled{pointer-events:none;}height:54px;border-radius:8px;background-color:#ffffff;color:",e=>e.disabled||e.invalidNotes?"#565656":"#000",";font-size:17px;margin-top:8px;width:100%;outline:none;border:none;inset:none;font-family:SFDisplaySemibold;letter-spacing:-0.01em;cursor:pointer;opacity:",e=>e.disabled||e.invalidNotes?.5:1,";-webkit-appearance:none;"),aA=(0,tw.Z)("div",{target:"ewkkova11"})("display:",e=>e.allowNotes?"block":"none",";margin:10px 0 20px;"),aD=(0,tw.Z)("span",{target:"ewkkova12"})("display:block;font-size:17px;line-height:22px;text-align:left;font-family:SFDisplaySemibold;"),a_=(0,tw.Z)(n5,{target:"ewkkova13"})("width:100%;"),aO=(0,tw.Z)("input",{target:"ewkkova14"})("display:block;margin:0;border:none;width:100%;");var az=e=>{var t;let{currentLineItem:i,step:n,variants:a,selectedUnit:o,selections:r,selectionIsAvailable:l,messageVisible:s,canUseApplePay:c,handleSelectApplePay:d,handleAddToCart:u,handleUpdateCart:p,handleCheckCartForLineItem:h,updateSelections:g,updateNotes:f,updateQuantity:m,hideQuantityPicker:y,notes:v,notesPrompt:b,allowsNotes:x,selectedQuantityUnavailable:w,quantitySelected:S,isDownload:k,discountIsLoading:C,displayMinDiscountMessage:T,onDiscountCodeHeightChange:I,shippingRateIsLoading:Z}=e,{cartIsOpen:B}=(0,ty.g1)(),P=(e=>{let t=(0,V.useRef)();return(0,V.useEffect)(()=>{t.current=e}),t.current})({notes:v,selections:r,selectedUnit:o})||null,[F,H]=(0,V.useState)(!1),R=o&&o.quantity||null,L=0===v.length;(0,V.useEffect)(()=>{if(r instanceof Array&&r.length>(null==P?void 0:P.selections.length)){let t=a.variations.findIndex(e=>!e.options.some(t=>M(e,t))),i=a.variations.map((e,t)=>({...e,index:t})).reverse().find(e=>e.options.some(t=>M(e,t)));i&&i.index<t&&ab.OK.scrollTo("variation-".concat(t),{duration:500,smooth:!0,containerId:"payment-modal-scroll-container"}),o&&!e.selectedUnit&&i&&i.index<t&&ab.OK.scrollTo("bottom",{duration:500,smooth:!0,containerId:"payment-modal-scroll-container"})}},[r]);let M=(e,t)=>r.some(i=>i.variation_id===e.id&&i.option_id===t.id),E=e=>{if(x&&L){H(!0);return}return e()},N=e=>{let t=r.findIndex(t=>t.option_id===e.id);return[...r.slice(0,t),...r.slice(t+1)]},A=e=>{let t=r.findIndex(t=>t.variation_id===e.variation_id);return t>-1?[...r.slice(0,t),{variation_id:e.variation_id,option_id:e.id},...r.slice(t+1)]:[...r,{variation_id:e.variation_id,option_id:e.id}]},D=(e,t)=>{let i=null;return(i=e?N(t):A(t))&&g(i)},_=a.units.every(e=>e&&1===e.quantity),O=w?"#ff3a3a":null,z=x&&0===v.length,U=k&&h();return(0,X.BX)(aB,{step:n,id:"payment-modal-scroll-container",children:[a&&(null===(t=a.variations)||void 0===t?void 0:t.map((e,t)=>(0,X.tZ)(ab.W_,{name:"variation-".concat(t),children:(0,X.BX)(aP,{children:[(0,X.tZ)(aF,{children:e.name}),(0,X.tZ)(aH,{children:e.options.map(t=>{let i=M(e,t);return(0,X.tZ)(aR,{isSelected:i,onClick:()=>D(i,t),children:t.name},t.id)})},e.id)]})},"variation-".concat(t)))),(0,X.tZ)(aZ,{hidden:y||!o||0===R||_||k,maxQuantity:R,updateQuantity:m,quantity:S}),(0,X.tZ)(aL,{messageVisible:s,messageColor:O,children:o?l&&0!==R?null!==R&&R<S?"Only ".concat(R," of this item available."):null:"Selected options sold out.":"Make a selection above to continue"}),(0,X.BX)(aA,{allowNotes:x,children:[(0,X.tZ)(aD,{children:b||"Order Notes"}),(0,X.tZ)(a_,{children:(0,X.tZ)(aO,{value:v,onChange:e=>{H(!1),f(e.target.value)},type:"text",id:"notes",placeholder:b||"Order Notes",autoComplete:"notes"})}),(0,X.tZ)(ax,{invalid:F,children:"This field is required"})]}),!B&&(0,X.BX)(X.HY,{children:[(0,X.tZ)(ap,{footerMessage:T?"The minimum transaction amount is $0.50":null,onDiscountCodeHeightChange:I}),(0,X.tZ)(aM,{canUseApplePay:c,children:(0,X.tZ)(aE,{invalidNotes:z,disabled:!l||w||Z,onClick:()=>E(d)})})]}),(0,X.tZ)("div",{children:(0,X.tZ)(aN,{invalidNotes:z,disabled:!l||w||U||C,onClick:()=>i?E(p):E(u),children:i?"Update cart":U?"Already in cart":"Add to cart"})})]})};let aU=(0,tw.Z)("div",{target:"e1lyh8qy0"})("display:flex;justify-content:center;flex-direction:column;align-items:center;position:absolute;top:16px;bottom:16px;left:65px;right:65px;transition:opacity 200ms ease 200ms;opacity:",e=>{let{show:t}=e;return t?1:0},";pointer-events:",e=>{let{show:t}=e;return t?"auto":"none"},";"),aq=(0,tw.Z)("svg",{target:"e1lyh8qy1"})("width:26px;height:26px;left:0px;bottom:50%;position:absolute;animation:checkSlideRight 500ms ease 0ms forwards,slideUp 300ms ease 500ms forwards;@keyframes checkSlideRight{100%{left:45%;}}@keyframes slideUp{100%{bottom:65%;}}"),aj=(0,tw.Z)("img",{target:"e1lyh8qy2"})("width:69px;left:0px;position:absolute;animation:slideRight 500ms ease 0ms forwards;@keyframes slideRight{100%{left:33%;}}"),aX=(0,tw.Z)("div",{target:"e1lyh8qy3"})("font-size:30px;line-height:41px;margin-top:20px;width:244px;text-align:center;font-family:SFUIText-Bold;color:rgba(0,0,0,0.8);position:absolute;top:60%;");var aV=e=>{let{show:t,step:i}=e;return(0,X.BX)(aU,{show:t,children:[t&&(0,X.BX)(X.HY,{children:[(0,X.tZ)(aq,{viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,X.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 22c0 12.128 10.011 22 22.31 22 10.262 0 19.164-6.84 21.631-16.641.25-.952-.322-1.904-1.287-2.15a1.782 1.782 0 00-2.18 1.269C38.4 34.692 30.926 40.439 22.31 40.439c-10.332 0-18.735-8.285-18.735-18.474 0-10.19 8.402-18.475 18.735-18.475 6.48 0 12.477 3.302 15.884 8.7L21.595 28.558a.567.567 0 01-.786 0l-7.83-7.721a1.788 1.788 0 00-2.539 0 1.729 1.729 0 000 2.503l7.794 7.72a4.113 4.113 0 002.932 1.2c1.073 0 2.11-.423 2.968-1.2L41.58 13.857a1.735 1.735 0 00.5-1.607 1.729 1.729 0 00-.213-.861C37.935 4.372 30.426 0 22.31 0 10.011 0 0 9.872 0 22z",fill:"#00EC34"})}),(0,X.tZ)(aj,{src:"/static/shopping-cart.png",alt:"Shopping Cart Icon"})]}),(0,X.tZ)(aX,{children:i===E.ADDED_TO_CART?"Added to Cart!":"Updated!"})]})};class aW extends V.Component{render(){return(0,X.tZ)("button",{disabled:!this.props.isOpen,css:(0,ep.iv)("padding:0;width:32px;height:",32,"px;position:relative;margin-left:auto;z-index:1;border-radius:50%;background-color:white;border:none;outline:none;display:flex;justify-content:center;align-items:center;border:1px solid rgba(0,0,0,0);cursor:pointer;:focus{border:1px solid ","rgba(0,0,0,.3)",";}"),onClick:this.props.handleClick,children:(0,X.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:(0,X.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.01 6l3.78-3.78a.713.713 0 10-1.01-1.01L6 4.99 2.22 1.21a.713.713 0 10-1.01 1.01L4.99 6 1.21 9.78a.713.713 0 101.01 1.01L6 7.01l3.78 3.78a.712.712 0 001.01 0c.28-.279.28-.73 0-1.01L7.01 6z",fill:"#616161",stroke:"#616161",strokeWidth:".5"})})})}}class aG extends V.Component{render(){return(0,X.BX)("div",{css:(0,ep.iv)("display:flex;justify-content:center;flex-direction:column;align-items:center;position:absolute;top:16px;right:16px;left:16px;bottom:16px;transition:",this.props.error?"opacity 500ms ease 800ms":"",";opacity:",this.props.error?1:0,";pointer-events:",this.props.error?"auto":"none",";"),children:[(0,X.tZ)("div",{css:(0,ep.iv)("font-size:32px;line-height:38px;margin-top:10px;width:250px;text-align:center;font-family:SFUIText-Bold;color:rgba(255,0,0,0.8);"),children:412===this.props.error.status?"This site is not accepting orders":"Something went wrong"}),(0,X.tZ)("div",{css:(0,ep.iv)("font-size:17px;line-height:22px;margin-top:14px;width:250px;text-align:center;font-family:SFTextRegular;color:rgba(255,0,0,0.8);"),children:this.props.error.message})]})}}var aY=e=>{let{paymentSuccessMessageBeforeEmail:t,show:i,order:n}=e,{buyer_email:a}=n,o=t?"".concat(t," ").concat(a):"We sent a confirmation email to ".concat(a),{clear:r}=nQ(),{track:l}=ec();return(0,V.useEffect)(()=>{var e;l({type:B.Purchase,payload:{transactionId:n.order_number,value:n.price.amount,currency:n.price.currency.toString().toUpperCase(),...(null===(e=n.discounts)||void 0===e?void 0:e.length)>0&&{discountCode:n.discounts[0].code},items:n.line_items.map(e=>({sku:e.sku,name:e.product_name,currency:e.price.currency.toString().toUpperCase(),price:e.price.amount,quantity:e.quantity}))}}),setTimeout(()=>{r()},1e3)},[]),(0,X.BX)("div",{css:(0,ep.iv)("display:flex;justify-content:center;flex-direction:column;align-items:center;position:absolute;top:16px;right:16px;left:16px;bottom:16px;transition:",i?"opacity 500ms ease 800ms":"",";opacity:",i?1:0,";pointer-events:",i?"auto":"none",";"),children:[(0,X.tZ)("svg",{css:(0,ep.iv)("width:40px;height:40px;"),viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,X.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 22c0 12.128 10.011 22 22.31 22 10.262 0 19.164-6.84 21.631-16.641.25-.952-.322-1.904-1.287-2.15a1.782 1.782 0 00-2.18 1.269C38.4 34.692 30.926 40.439 22.31 40.439c-10.332 0-18.735-8.285-18.735-18.474 0-10.19 8.402-18.475 18.735-18.475 6.48 0 12.477 3.302 15.884 8.7L21.595 28.558a.567.567 0 01-.786 0l-7.83-7.721a1.788 1.788 0 00-2.539 0 1.729 1.729 0 000 2.503l7.794 7.72a4.113 4.113 0 002.932 1.2c1.073 0 2.11-.423 2.968-1.2L41.58 13.857a1.735 1.735 0 00.5-1.607 1.729 1.729 0 00-.213-.861C37.935 4.372 30.426 0 22.31 0 10.011 0 0 9.872 0 22z",fill:"#00EC34"})}),(0,X.tZ)("div",{css:(0,ep.iv)("font-size:32px;line-height:38px;margin-top:10px;width:250px;text-align:center;font-family:SFUIText-Bold;color:rgba(0,0,0,0.8);"),children:"Payment successful"}),(0,X.tZ)("div",{css:(0,ep.iv)("font-size:17px;line-height:22px;margin-top:14px;width:250px;text-align:center;font-family:SFTextRegular;color:rgba(0,0,0,0.8);"),children:o}),(0,X.tZ)("a",{css:(0,ep.iv)("line-height:54px;text-align:center;margin-top:22px;max-width:155px;border-radius:8px;background-color:rgba(0,0,0,0.1);color:#565656;font-size:17px;width:100%;outline:none;border:none;inset:none;font-family:SFDisplaySemibold;letter-spacing:-0.01em;cursor:pointer;-webkit-appearance:none;z-index:100;"),href:"mailto:".concat(n.merchant_email,"?subject=Follow up on payment for Order #").concat(n.order_number," at ").concat(window.location.hostname),children:"Contact Seller"})]})};let aJ=(0,tw.Z)("div",{target:"e1sk077r0"})("position:absolute;flex-wrap:wrap;top:0;right:0;left:0;opacity:",e=>e.step===E.ADDRESS?1:0,";visibility:",e=>e.step===E.ADDRESS?"visible":"hidden",";transition:",e=>e.step===E.ADDRESS?"opacity 500ms ease 500ms":"opacity 500ms ease 0ms",",",e=>e.step===E.ADDRESS?"visibility 0ms ease 0ms":"visibility 0ms ease 500ms",";height:100%;overflow:auto;::-webkit-scrollbar{display:none;}"),a$=(0,tw.Z)("div",{target:"e1sk077r1"})("font-size:17px;line-height:22px;text-align:left;font-family:SFDisplaySemibold;width:100%;margin-top:14px;"),aQ=(0,tw.Z)("div",{target:"e1sk077r2"})("display:",e=>e.requiresShipping?"flex":"none",";flex-flow:row wrap;justify-content:space-between;"),aK=(0,tw.Z)("div",{target:"e1sk077r3"})("display:",e=>e.requiresPhoneNumber?"flex":"none",";flex-flow:row wrap;justify-content:space-between;"),a0=(0,tw.Z)(n5,{target:"e1sk077r4"})("width:100%;"),a1=(0,tw.Z)("input",{target:"e1sk077r5"})("display:block;margin:0;border:none;width:100%;"),a2=(0,tw.Z)(n5,{target:"e1sk077r6"})("width:calc(100% - ",188,"px);"),a5=(0,tw.Z)("input",{target:"e1sk077r7"})("display:block;margin:0;border:none;width:78px;"),a3=(0,tw.Z)(n5,{target:"e1sk077r8"})("width:78px;"),a4=(0,tw.Z)("input",{target:"e1sk077r9"})("display:block;margin:0;border:none;width:94px;"),a7=(0,tw.Z)(n5,{target:"e1sk077r10"})("width:94px;"),a6=(0,tw.Z)("button",{target:"e1sk077r11"})("margin-top:16px;width:100%;-webkit-appearance:none;font-family:SFDisplaySemibold;letter-spacing:-0.01em;border-radius:8px;height:56px;font-size:17px;border:1px solid rgba(0,0,0,0);outline:none;position:relative;opacity:",e=>e.allFieldsCompleted?1:.2,";cursor:",e=>e.allFieldsCompleted?"pointer":"auto",";color:rgba(255,255,255,1);background-color:rgba(0,0,0,1);transition:color 200ms,background 200ms,opacity 200ms;:focus{border:1px solid ","rgba(0,0,0,.3)",";}:disabled{pointer-events:none;}");class a8 extends V.Component{allFieldsCompleted(){return["name","address","zip","city","state","phoneNumber"].every(e=>this.addressValidation[e](this.state[e]))}render(){let e=this.allFieldsCompleted(),{requiresShipping:t,requiresPhoneNumber:i,step:n}=this.props,{name:a,address:o,address2:r,city:l,state:s,zip:c,phoneNumber:d,isPhoneNumberValid:u}=this.state;return(0,X.BX)(aJ,{step:n,children:[(0,X.tZ)(a$,{children:t?"Shipping Address":"Phone Number"}),(0,X.BX)(aQ,{requiresShipping:t,children:[(0,X.tZ)(a0,{children:(0,X.tZ)(a1,{value:a,onChange:e=>{this.setState({name:e.target.value})},type:"text",id:"name",placeholder:"Name",autoComplete:"name"})}),(0,X.tZ)(a0,{children:(0,X.tZ)(a1,{value:o,onChange:e=>{this.setState({address:e.target.value})},type:"text",id:"address",placeholder:"Address Line 1",autoComplete:"address-line1"})}),(0,X.tZ)(a0,{children:(0,X.tZ)(a1,{value:r,onChange:e=>{this.setState({address2:e.target.value})},type:"text",id:"address2",placeholder:"Address Line 2",autoComplete:"address-line2"})}),(0,X.tZ)(a2,{children:(0,X.tZ)(a1,{value:l,onChange:e=>{this.setState({city:e.target.value})},type:"text",id:"city",placeholder:"City",autoComplete:"address-level2"})}),(0,X.tZ)(a3,{children:(0,X.tZ)(a5,{value:s,onChange:e=>{this.setState({state:e.target.value})},type:"text",id:"state",placeholder:"State",autoComplete:"address-level1"})}),(0,X.tZ)(a7,{children:(0,X.tZ)(a4,{value:c,onChange:e=>{this.setState({zip:e.target.value})},type:"text",id:"zip",placeholder:"Zip",autoComplete:"postal-code"})})]}),(0,X.BX)(aK,{requiresPhoneNumber:i,children:[(0,X.tZ)(a0,{children:(0,X.tZ)(a1,{value:d,onChange:e=>{this.setState({phoneNumber:e.target.value,isPhoneNumberValid:!0})},type:"tel",id:"phone-number",placeholder:"(555) 555-5555",autoComplete:"phone-number"})}),(0,X.tZ)(ax,{invalid:!u,children:"Enter a valid phone number"})]}),(0,X.tZ)(a6,{allFieldsCompleted:e,disabled:!e,onClick:()=>this.handleSubmit(),children:"Next: Payment Details"})]})}constructor(...e){super(...e),this.state={name:"",address:"",address2:"",zip:"",city:"",state:"",phoneNumber:"",isPhoneNumberValid:!0},this.phoneNumberValidation=new RegExp(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/),this.addressValidation={name:e=>!this.props.requiresShipping||e.length>0,address:e=>!this.props.requiresShipping||e.length>0,zip:e=>!this.props.requiresShipping||e.length>0,city:e=>!this.props.requiresShipping||e.length>0,state:e=>!this.props.requiresShipping||e.length>0,phoneNumber:e=>!this.props.requiresPhoneNumber||e.length>0},this.phoneNumberIsValid=()=>!!this.state.phoneNumber.match(this.phoneNumberValidation),this.handleSubmit=()=>{let{name:e,address:t,address2:i,city:n,state:a,zip:o,phoneNumber:r}=this.state,{requiresPhoneNumber:l}=this.props;if(l){let e=this.phoneNumberIsValid();if(this.setState({isPhoneNumberValid:e}),!e)return}return this.props.handleSuccess({name:e,address:t,address2:i||null,city:n,state:a,zip:o},l?r:void 0)}}}let a9=(0,tw.Z)("div",{target:"e1p9h6ud0"})("height:",e=>e.bannerHeight,"px;box-sizing:border-box;width:100%;position:absolute;z-index:9999;background-color:rgba(255,255,255,0.85);box-shadow:rgba(0,0,0,0.1) 0px 0px 8px;transition:top 400ms,bottom 400ms,height 400ms;overflow-y:hidden;border-radius:16px 16px 0 0;padding:16px;top:",e=>{let t=e.isOpen?"100%":e.height+"px";return e.useWindowInnerHeight?t:"unset"},";bottom:",e=>e.isOpen?0:-1*e.bannerHeight,"px;@media (min-width:",tM.$d.MAX_WIDTH_MOBILE+1,"px){left:50%;transform:translate(-50%,50%);width:",tM.$d.MAX_WIDTH_MOBILE-40,"px;border-radius:16px 16px 16px 16px;bottom:",e=>e.isOpen?"50%":"".concat(-1*e.bannerHeight,"px"),";}"),oe=(0,tw.Z)("div",{target:"e1p9h6ud1"})("position:absolute;top:0;left:0;height:100vh;width:100%;z-index:9999;background-color:rgba(0,0,0,0.5);opacity:",e=>e.isOpen?1:0,";visibility:",e=>e.isOpen?"visible":"hidden",";transition:opacity 500ms ease 0ms,",e=>e.isOpen?"visibility 0ms ease 0ms":"visibility 0ms ease 500ms",";backdrop-filter:blur(20px);"),ot=(0,tw.Z)("div",{target:"e1p9h6ud2"})("display:flex;flex-direction:column;transition:opacity 500ms;opacity:",e=>e.succeeded||e.error?0:1,";pointer-events:",e=>e.succeeded||e.error?"none":"auto",";"),oi=(0,tw.Z)("div",{target:"e1p9h6ud3"})("position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;transition:opacity 500ms;opacity:",e=>e.hidden?0:1,";pointer-events:",e=>e.hidden?"none":"auto",";"),on=(0,tw.Z)("div",{target:"e1p9h6ud4"})("height:27px;display:flex;justify-content:center;align-items:flex-end;max-width:100%;overflow:hidden;"),oa=(0,tw.Z)("span",{target:"e1p9h6ud5"})("margin:0;font-size:22px;line-height:27px;text-align:center;font-family:SFUIText-Bold;letter-spacing:-0.05em;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"),oo=(0,tw.Z)("span",{target:"e1p9h6ud6"})("color:#616161;margin-left:8px;margin-bottom:1px;font-size:17px;line-height:22px;text-align:center;text-decoration:line-through;font-family:SFUIText-Regular;letter-spacing:-0.05em;max-width:50%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"),or=(0,tw.Z)("span",{target:"e1p9h6ud7"})("color:rgba(0,0,0,0.6);font-family:SFUIText-Bold;text-align:center;margin-top:8px;letter-spacing:0px;"),ol=(0,tw.Z)("span",{target:"e1p9h6ud8"})("margin:0 0 8px;font-size:28px;line-height:28px;text-align:center;font-family:SFUIText-Bold;"),os=(0,tw.Z)(tL,{target:"e1p9h6ud9"})("opacity:",e=>e.hidden?"0":"1",";transition:opacity 200ms ease 400ms;width:100px;height:100px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"),oc=(0,tw.Z)("div",{target:"e1p9h6ud10"})("height:80px;display:flex;justify-content:center;align-items:center;font-family:SFDisplaySemibold;font-size:17px;opacity:0.6;"),od=(0,tw.Z)("div",{target:"e1p9h6ud11"})("position:relative;height:",e=>e.height,"px;"),ou=(0,tw.Z)("div",{target:"e1p9h6ud12"})("margin:0;font-size:24px;line-height:41px;text-align:center;font-family:SFUIText-Bold;letter-spacing:-0.05em;"),op={padding:16,price:27,addToCartButton:62,applePayButton:72,orderNotesInput:114,variation:80,visibleMessage:54,invisibleMessage:15,quantityPicker:64,shippingOrPhoneHeader:20,shippingTopMargin:18,shippingAddress:256,phoneNumber:84,nextPaymentDetailsButton:70,cardPaymentForm:198,makePaymentButton:72,singleSoldOutProductMessage:80,shipsFreeMessage:27};class oh extends V.Component{checkIfDownloadable(){var e,t,i;return!!(null===(i=this.props.product)||void 0===i?void 0:null===(t=i.variants)||void 0===t?void 0:null===(e=t.units[0])||void 0===e?void 0:e.download_id)}selectionIsAvailable(){let{variations:e}=this.props.product.variants,t=this.selectedUnit(),i=t&&t.quantity;return 0===e.length||!!t&&(null===i||i>0)}messageVisible(){let e=this.context.itemQuantity,t=this.selectedUnit(),i=t&&t.quantity;return!t||!this.selectionIsAvailable()||i<e&&null!==i}quantityPickerVisible(){let{hideQuantityPicker:e}=this.props,t=this.checkIfDownloadable();if(e||t)return!1;let i=this.selectedUnit(),n=i&&i.quantity,{variants:a}=this.props.product,o=a.units.every(e=>1===e.quantity);return i&&!o&&0!==n}getTitleHeight(e){let t="title-span-for-height-measurement",i=document.getElementById(t);(!this.titleSpan||this.titleSpan&&this.titleSpan.textContent!==e)&&(i&&i.remove(),this.titleSpan=document.createElement("span"),this.titleSpan.id=t,this.titleSpan.textContent=e,this.titleSpan.style.cssText="font-size: 28px; line-height: 28px; font-family: SFUIText-Bold; visibility: hidden; position: absolute; left: -999px;",document.body.appendChild(this.titleSpan));let n=window.innerWidth,a=tM.$d.MAX_WIDTH_MOBILE-72,o=n>tM.$d.MAX_WIDTH_MOBILE?a:n-32;return this.titleSpan.style.width="".concat(o,"px"),this.titleSpan.clientHeight+8}getOrderNotesPromptHeight(e){let t="order-notes-prompt-span-for-height-measurement",i=document.getElementById(t);this.orderNotesPromptSpan||(i&&i.remove(),this.orderNotesPromptSpan=document.createElement("span"),this.orderNotesPromptSpan.id=t,this.orderNotesPromptSpan.textContent=e.notesPrompt||"Order Notes",this.orderNotesPromptSpan.style.cssText="font-size: 17px; line-height: 22px; text-align: left; font-family: SFDisplaySemibold; visibility: hidden; position: absolute; left: -999px;",document.body.appendChild(this.orderNotesPromptSpan));let n=window.innerWidth,a=n>tM.$d.MAX_WIDTH_MOBILE?343:n-32;return this.orderNotesPromptSpan.style.width="".concat(a,"px"),this.orderNotesPromptSpan.clientHeight}bannerHeight(){let e;let{product:t,canUseApplePay:i,shippingRate:n}=this.props,{height:a,discountCodeHeight:o}=this.state,{cartIsOpen:r}=this.context,l=this.props.lineItems||this.state.lineItems;if(!t&&!l)return 180;let s=this.getDisplayTitle(),c=this.getTitleHeight(s),d=op.price+c+32+op.padding+op.padding;switch(this.state.step){case E.SOLD_OUT_SINGLE_PRODUCT:e=d+op.singleSoldOutProductMessage;break;case E.PAYMENT_METHOD:case E.ADDED_TO_CART:case E.UPDATED_CART:{if(this.state.succeeded||!t){e=320;break}let{allowsNotes:a}=t,{variations:l}=this.props.product.variants||{variations:[]},s=(null==t?void 0:t.requiresShipping)&&(null==n?void 0:n.price.amount)===0;e=d+op.addToCartButton,r||(i&&(e+=op.applePayButton),e+=o),a&&(e+=op.orderNotesInput+this.getOrderNotesPromptHeight(t)),l.length>0&&(e+=l.length*op.variation),s&&(e+=op.shipsFreeMessage),e+=this.messageVisible()?op.visibleMessage:op.invisibleMessage,this.quantityPickerVisible()&&(e+=op.quantityPicker);break}case E.ADDRESS:{let{addressRequired:t,phoneNumberRequired:i}=this.getCheckoutRequirements();e=d+op.nextPaymentDetailsButton,(t||i)&&(e+=op.shippingOrPhoneHeader+op.shippingTopMargin),t&&(e+=op.shippingAddress),i&&(e+=op.phoneNumber);break}case E.CARD:e=d+op.cardPaymentForm+op.makePaymentButton}return Math.min(600,a-20,e)}selectedUnit(){let{product:e}=this.props;return e&&this.context.selections?0===e.variants.variations.length?e.variants.units[0]:e.variants.units.find(e=>e.options.every(e=>this.context.selections.find(t=>t.option_id===e.id&&t.variation_id===e.variation_id))):null}shippingInfo(){return this.shipping?{name:this.shipping.name,address:{state:this.shipping.state,country:"US",line1:this.shipping.address,line2:this.shipping.address2,city:this.shipping.city,postal_code:this.shipping.zip}}:null}showApplePayCheckoutForLineItems(e){let{discount:t,siteTitle:i,stripe:n,shippingRate:a}=this.props,{price:o,requiresAddress:r,requiresShipping:l,requiresPhoneNumber:s}=e.reduce((e,t)=>{let i=t.unitPrice*t.quantity;return{price:e.price+=i,requiresAddress:e.requiresAddress||t.requiresAddress,requiresShipping:e.requiresShipping||t.requiresShipping,requiresPhoneNumber:e.requiresPhoneNumber||t.requiresPhoneNumber}},{price:0,requiresAddress:!1,requiresShipping:!1,requiresPhoneNumber:!1}),c=[{label:"Subtotal",amount:o}],[d,u]=nK(t,o);t&&c.push({label:t.code,amount:-d}),l&&(u+=a.price.amount);let p={country:"US",currency:"usd",displayItems:c,total:{label:i||window.location.host,amount:u},requestPayerName:!0,requestShipping:r||l,requestPayerEmail:!0,requestPayerPhone:s,shippingOptions:void 0};l?p.shippingOptions=[{id:a.id.toString(),label:a.name+" Shipping",detail:"",amount:a.price.amount}]:r&&(p.shippingOptions=[{id:"no-charge",label:"No Shipping Charge",detail:"",amount:0}]);let h=n.paymentRequest(p);this.paymentRequest=h,h.on("paymentmethod",this.handleApplePayEvent),h.on("cancel",()=>{this.cancelCurrentTransaction=!0,this.close()}),h.canMakePayment().then(()=>{h.show(),this.cancelCurrentTransaction=!1}).catch(e=>console.log(e))}componentDidMount(){let e={width:window.innerWidth,height:window.innerHeight,useWindowInnerHeight:document.documentElement.clientHeight>window.innerHeight};this.setState(e),window.addEventListener("resize",this.handleResize)}chooseInitialStepFor(e){return 1===e.length&&0===e[0].quantity?E.SOLD_OUT_SINGLE_PRODUCT:E.PAYMENT_METHOD}updateVariants(){if(this.props.product){let e=this.props.product.variants.units.sort((e,t)=>e.price.amount-t.price.amount)[0].price.amount,t=this.chooseInitialStepFor(this.props.product.variants.units);this.setState({step:t,lowestPrice:e,selections:[],notes:null})}}initiateCheckout(e,t){let{discount:i,track:n}=this.props,a=t.reduce((e,t)=>e+t.unitPrice*t.quantity,0);n({type:B.InitiateCheckout,payload:{currency:"USD",value:a,...!!i&&{discountCode:i.code},items:t.map(e=>({sku:e.sku,name:e.itemName,currency:"USD",price:e.unitPrice,quantity:e.quantity}))}}),e===N.APPLE_PAY?this.showApplePayCheckoutForLineItems(t):e===N.CARD&&this.setState({step:t.some(e=>e.requiresAddress||e.requiresShipping||e.requiresPhoneNumber)?E.ADDRESS:E.CARD})}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}async componentDidUpdate(e){let{lineItems:t}=this.props||this.state,{hasShownCheckout:i,currentlyClearing:n}=this.state,{paymentMethod:a}=this.props;if(t&&t.length>0&&!i&&!n)this.setState({hasShownCheckout:!0}),this.initiateCheckout(a,t);else{let t=e.product&&e.product.productID;(this.props.product&&this.props.product.productID)!==t&&this.updateVariants()}}getDisplayTitle(){let{product:e}=this.props,t=this.props.lineItems||this.state.lineItems;return t?t.length>1?"".concat(t.reduce((e,t)=>e+=t.quantity,0)," Items"):t[0].itemName:e?e.itemName:void 0}getCheckoutRequirements(){let e=this.props.lineItems||this.state.lineItems;return{addressRequired:e&&e.some(e=>e.requiresShipping||e.requiresAddress),phoneNumberRequired:e&&e.some(e=>e.requiresPhoneNumber)}}render(){let e;let{lowestPrice:t,height:i,order:n,succeeded:a,error:o,step:r,useWindowInnerHeight:l,phoneNumber:s}=this.state;if(!i)return null;let{currentLineItem:c,hideQuantityPicker:d,isOpen:u,siteId:p,productLoading:h,product:g,paymentSuccessMessageBeforeEmail:f,canUseApplePay:m,stripe:y,discount:v,discountError:b,discountIsLoading:x,shippingRate:w,shippingRateIsLoading:S}=this.props,k=!!y,C=this.props.lineItems||this.state.lineItems,{addressRequired:T,phoneNumberRequired:I}=this.getCheckoutRequirements(),Z=this.selectedUnit(),B=Z&&Z.quantity,P=null!==B&&0!==B&&B<this.context.itemQuantity||!this.context.itemQuantity;e=C?C.reduce((e,t)=>e+t.unitPrice*t.quantity,0):Z?Z.price.amount*this.context.itemQuantity:t;let F=!!v&&!b,[H,R]=nK(v,e),L=(null==g?void 0:g.requiresShipping)&&(null==w?void 0:w.price.amount)===0,M=(r===E.ADDRESS||r===E.CARD)&&C.some(e=>e.requiresShipping),N=M&&(null==w?void 0:w.price.amount)||0,A=tP(e+N),D=tP(F?R+N:e+N),_=this.bannerHeight(),O=F&&r===E.PAYMENT_METHOD&&R<=50&&!!v&&!x,z=this.getDisplayTitle(),U=this.getTitleHeight(z),q=op.price,j=2*op.padding,V=this.checkIfDownloadable();return u?(0,X.BX)(X.HY,{children:[(0,X.tZ)(oe,{...this.props,onClick:this.close}),(0,X.BX)(a9,{...this.props,bannerHeight:_,useWindowInnerHeight:l,height:i,children:[(0,X.tZ)(aW,{isOpen:u,handleClick:this.close}),n&&(0,X.tZ)(aY,{order:n,show:a,paymentSuccessMessageBeforeEmail:f}),o&&(0,X.tZ)(aG,{error:o}),(0,X.BX)(ot,{succeeded:a,error:o,children:[(0,X.BX)(oi,{hidden:!!g&&k,children:[(g||h||!k||x)&&(0,X.tZ)(os,{styles:null,color:"rgba(0,0,0,.3)",hidden:!!g&&k&&!x||!g&&!h&&!x}),!g&&!h&&!C&&(0,X.tZ)(ou,{children:"No Product Connected"})]}),(0,X.tZ)(aV,{show:r===E.ADDED_TO_CART||r===E.UPDATED_CART,step:r}),(g||C)&&r!==E.ADDED_TO_CART&&r!==E.UPDATED_CART&&(0,X.BX)(X.HY,{children:[(0,X.tZ)(ol,{className:"variants-data-text",children:"".concat(z)}),(0,X.BX)(on,{children:[(0,X.tZ)(oa,{children:"".concat(D)}),F&&(0,X.tZ)(oo,{children:"".concat(A)})]}),L&&!M&&(0,X.tZ)(or,{children:"Free Shipping"}),r===E.SOLD_OUT_SINGLE_PRODUCT&&(0,X.tZ)(oc,{children:"This item is sold out"}),k&&r!==E.SOLD_OUT_SINGLE_PRODUCT&&(0,X.BX)(od,{hidden:!u,height:_-U-q-j-32,children:[g&&(0,X.tZ)(az,{allowsNotes:g.allowsNotes,notesPrompt:g.notesPrompt,messageVisible:this.messageVisible(),selectionIsAvailable:this.selectionIsAvailable(),variants:g.variants,selections:this.context.selections,updateSelections:this.context.updateSelections,updateNotes:this.context.updateItemNotes,updateQuantity:this.context.updateItemQuantity,hideQuantityPicker:d,isDownload:V,quantitySelected:this.context.itemQuantity,selectedQuantityUnavailable:P,notes:this.context.itemNotes,selectedUnit:Z,step:r,canUseApplePay:m,handleSelectApplePay:this.handleSelectApplePayForItem,handleAddToCart:this.handleAddToCart,handleUpdateCart:this.handleUpdateCart,handleCheckCartForLineItem:this.handleCheckCartForLineItem,currentLineItem:c,discountIsLoading:x,displayMinDiscountMessage:O,onDiscountCodeHeightChange:this.handleDiscountCodeHeightChange,shippingRateIsLoading:S}),(0,X.tZ)(a8,{step:r,requiresPhoneNumber:I,requiresShipping:T,handleSuccess:this.handleShippingSuccess}),(0,X.tZ)(av,{succeeded:a,stripe:y,lineItems:C,step:r,onSucceed:e=>{this.handleSuccess(e,0)},onError:e=>{this.setState({error:e})},siteID:p,price:D,requiresShipping:T,shippingInfo:this.shippingInfo(),requiresPhoneNumber:I,phoneNumber:s,discount:v,discountError:b,shippingRate:w})]})]})]})]})]}):null}constructor(...e){super(...e),this.titleSpan=null,this.orderNotesPromptSpan=null,this.cancelCurrentTransaction=!1,this.shipping=null,this.state={useWindowInnerHeight:!1,height:0,step:E.PAYMENT_METHOD,succeeded:!1,error:null,order:null,phoneNumber:null,lowestPrice:0,lineItems:null,hasShownCheckout:!1,currentlyClearing:!1,discountCodeHeight:0},this.handleShippingSuccess=(e,t)=>{this.shipping=e,this.setState({phoneNumber:t,step:E.CARD})},this.handleApplePayEvent=async e=>{let t=this.props.lineItems||this.state.lineItems,{addressRequired:i,phoneNumberRequired:n}=this.getCheckoutRequirements(),{stripe:a,discount:o,shippingRate:r}=this.props,l=t.some(e=>e.requiresShipping),s=t.map(e=>{let t={sku:e.sku,quantity:e.quantity};return e.notes&&(t.notes=e.notes),t});try{let t={siteID:this.props.siteId,buyerEmail:e.payerEmail,buyerName:e.payerName,lineItems:s,discounts:o?[{code:o.code}]:null,shippingRates:l?[r]:null};if(n&&(t.phoneNumber=e.shippingAddress.phone),i&&(t.shippingInfo={name:e.shippingAddress.recipient,address:{state:e.shippingAddress.region,country:"US",line1:e.shippingAddress.addressLine[0],line2:e.shippingAddress.addressLine[1],city:e.shippingAddress.city,postal_code:e.shippingAddress.postalCode}}),this.cancelCurrentTransaction)throw this.cancelCurrentTransaction=!1,Error("Payment cancelled before it was sent.");let c=await n1(t),{transaction:d}=c;if(!d.client_secret)throw Error("Error creating order");let u=await a.confirmCardPayment(d.client_secret,{payment_method:e.paymentMethod.id});if(!u.paymentIntent)throw Error(u.error.message);e.complete("success"),this.handleSuccess(c,2e3)}catch(e){console.log(e)}},this.resetMeasuredHeights=()=>{this.titleSpan&&(this.titleSpan.remove(),this.titleSpan=null),this.orderNotesPromptSpan&&(this.orderNotesPromptSpan.remove(),this.orderNotesPromptSpan=null)},this.resetState=()=>this.setState({currentlyClearing:!0,succeeded:!1,error:null,order:null,lineItems:null,hasShownCheckout:!1,step:E.PAYMENT_METHOD,discountFormState:q.CLOSED}),this.close=()=>{this.resetMeasuredHeights(),this.context.resetLineItemFields(),this.resetState(),this.paymentRequest=null,this.props.closePaymentPopup(),this.setState({currentlyClearing:!1,discountAmount:0})},this.handleResize=iG()(()=>{this.setState({height:window.innerHeight})},250),this.handleSuccess=(e,t)=>{let{handlePaymentCompletion:i}=this.props,{clearCart:n}=this.context;this.setState({order:e}),setTimeout(()=>{this.setState({succeeded:!0}),n&&n()},t),i&&i()},this.getSelectedLineItem=()=>{let{product:e}=this.props,t=this.selectedUnit(),i=this.checkIfDownloadable();if(!t)return null;let n={productID:t.product_id,sku:t.sku,itemName:e.itemName,quantity:this.context.itemQuantity,unitPrice:t.price.amount,requiresAddress:e.requiresAddress,requiresShipping:e.requiresShipping,requiresPhoneNumber:e.requiresPhoneNumber,isEditable:!i};return e.allowsNotes&&(n.notesPrompt=e.notesPrompt||"Order Notes",n.notes=this.context.itemNotes),t.options&&t.options.length>0&&(n.variantDescription=t.options.map(e=>e.name).join(", ")),n},this.handleCheckCartForLineItem=()=>{let e=this.getSelectedLineItem();return!!e&&this.context.checkCartForLineItem(e)},this.handleSelectApplePayForItem=()=>{let e=this.getSelectedLineItem();this.setState({lineItems:[e],hasShownCheckout:!0}),this.initiateCheckout(N.APPLE_PAY,[e])},this.handleAddToCart=()=>{let e=this.getSelectedLineItem();this.context.addToCart(e),this.setState({step:E.ADDED_TO_CART});let{track:t}=this.props;t({type:B.AddToCart,payload:{currency:"USD",value:e.unitPrice*e.quantity,items:[{sku:e.sku,name:e.itemName,currency:"USD",price:e.unitPrice,quantity:e.quantity}]}}),setTimeout(this.close,1e3)},this.handleUpdateCart=()=>{let e=this.getSelectedLineItem();this.context.updateLineItem(e,this.props.currentLineItem.UUID),this.setState({step:E.UPDATED_CART}),setTimeout(this.close,1e3)},this.handleDiscountCodeHeightChange=e=>{this.setState({discountCodeHeight:e})}}}oh.contextType=ty.JD;let og=(0,tw.Z)("div",{target:"e16f1v3w0"})("position:absolute;top:0px;background:linear-gradient(0deg,rgba(255,255,255,0.67),rgba(255,255,255,0.67)),rgba(255,255,255,0.67);backdrop-filter:blur(20px);max-width:",tM.$d.MAX_WIDTH_MOBILE,"px;height:100vh;height:-webkit-fill-available;z-index:9999;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:column;padding:0px 16px 0px 16px;right:",e=>e.shouldOpen?"0":"-446px",";transition:right 600ms;@media (max-width:",tM.$d.MAX_WIDTH_MOBILE,"px){right:0px;top:",e=>e.shouldOpen?"0":"-100%",";transition:top 600ms;}"),of=(0,tw.Z)("div",{target:"e16f1v3w1"})("padding:19px 0px 24px 2px;border-bottom:solid;border-width:1px;border-bottom-color:#c4c4c4;"),om=(0,tw.Z)("div",{target:"e16f1v3w2"})("display:flex;flex-direction:column;overflow-y:auto;::-webkit-scrollbar{display:none;}flex:1;"),oy=(0,tw.Z)("div",{target:"e16f1v3w3"})("display:block;padding:16px 0;border-bottom:0.5px solid rgba(1,1,1,0.2);"),ov=(0,tw.Z)("div",{target:"e16f1v3w5"})("align-items:center;width:100%;justify-content:space-between;display:flex;padding-top:16px;&:first-of-type{padding-top:0;}&:last-of-type{padding-bottom:0;}"),ob=(0,tw.Z)("span",{target:"e16f1v3w6"})("font-family:SFUIText-Regular;color:#616161;font-size:17px;line-height:22px;letter-spacing:-2.41%;"),ox=(0,tw.Z)("div",{target:"e16f1v3w7"})("display:flex;justify-content:space-between;align-items:center;width:100%;margin:24px 0px 24px 0px;"),ow=(0,tw.Z)("div",{target:"e16f1v3w8"})("display:flex;flex-direction:column;margin-bottom:17px;"),oS=(0,tw.Z)("div",{target:"e16f1v3w9"})("height:34px;left:18px;top:19px;font-family:SFDisplaySemibold;font-style:normal;font-size:28px;line-height:34px;letter-spacing:0.0128571em;color:#000000;"),ok=(0,tw.Z)("button",{target:"e16f1v3w10"})("position:absolute;right:16px;top:21px;width:30px;height:30px;border-radius:50%;background-color:white;border:1px solid #f1f1f1;padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;:focus{border:1px solid rgba(0,0,0,0.3);}"),oC=(0,tw.Z)("button",{target:"e16f1v3w11"})(":disabled{pointer-events:none;}border-radius:8px;width:100%;height:54px;cursor:pointer;background-image:-webkit-named-image(apple-pay-logo-white);background-color:black;padding:0px;box-sizing:border-box;display:inline-block;background-size:100% 45%;background-position:50% 50%;background-repeat:no-repeat;-webkit-appearance:none;border:none;opacity:1;margin-bottom:8px;"),oT=(0,tw.Z)("button",{target:"e16f1v3w12"})(":disabled{pointer-events:none;}height:54px;border-radius:8px;background-color:white;color:black;font-size:17px;width:100%;outline:none;font-family:SFDisplaySemibold;letter-spacing:-0.01em;cursor:pointer;-webkit-appearance:none;border:1px solid #f1f1f1;"),oI=(0,tw.Z)("div",{target:"e16f1v3w13"})("display:flex;flex-direction:column;border-bottom:solid;border-width:1px;border-bottom-color:#c4c4c4;padding:16px 0px;justify-content:space-evenly;"),oZ=(0,tw.Z)("div",{target:"e16f1v3w14"})("display:flex;justify-content:space-between;"),oB=(0,tw.Z)("span",{target:"e16f1v3w15"})("font-family:SFDisplaySemibold;font-style:normal;font-size:17px;line-height:22px;letter-spacing:-0.0241176em;color:#000000;width:243px;"),oP=(0,tw.Z)("span",{target:"e16f1v3w16"})("font-family:SFDisplaySemibold;font-style:normal;font-size:22px;line-height:22px;text-align:right;letter-spacing:-0.0241176em;color:#000000;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"),oF=(0,tw.Z)("span",{target:"e16f1v3w17"})("font-family:SFDisplaySemibold;font-style:normal;font-size:17px;line-height:22px;letter-spacing:-0.0241176em;color:#000000;"),oH=(0,tw.Z)("span",{target:"e16f1v3w18"})("font-family:SFDisplaySemibold;font-style:normal;font-size:28px;line-height:34px;text-align:right;letter-spacing:0.0128571em;color:#000000;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:10px;"),oR=(0,tw.Z)("span",{target:"e16f1v3w19"})("font-family:SFUIText-Regular;font-style:normal;font-size:17px;line-height:22px;text-align:right;letter-spacing:0.0128571em;color:#616161;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:10px;"),oL=(0,tw.Z)("span",{target:"e16f1v3w20"})("font-family:SFDisplaySemibold;font-style:normal;font-size:17px;line-height:22px;letter-spacing:-0.0241176em;color:#000000;opacity:0.5;"),oM=(0,tw.Z)("span",{target:"e16f1v3w21"})("font-family:SFTextRegular;font-style:normal;font-size:15px;line-height:22px;letter-spacing:-0.0241176em;color:#000000;opacity:0.5;width:calc(100% - 100px);word-break:break-all;margin:0 auto 0 0;padding-left:7px;border-left:solid;border-width:3px;border-left-color:#c4c4c4;"),oE=(0,tw.Z)("span",{target:"e16f1v3w22"})("margin:10px 0 0;display:flex;align-items:flex-end;justify-content:space-between;"),oN=(0,tw.Z)("a",{target:"e16f1v3w23"})(":disabled{pointer-events:none;}font-family:SFTextRegular;font-style:normal;font-size:13px;line-height:18px;letter-spacing:-0.00615385em;text-decoration-line:underline;color:#000000;opacity:0.5;margin-left:18px;cursor:pointer;-webkit-appearance:none;"),oA=(0,tw.Z)("div",{target:"e16f1v3w24"})("position:absolute;top:0;left:0;height:100%;width:100%;z-index:9999;background-color:black;pointer-events:",e=>e.isOpen?"auto":"none",";opacity:",e=>e.isOpen?.2:0,";transition:opacity 500ms ease 0s;"),oD=(0,tw.Z)("div",{target:"e16f1v3w25"})("font-family:SFDisplaySemibold;font-style:normal;font-size:17px;line-height:22px;letter-spacing:-0.0241176em;color:#000000;opacity:0.5;margin-top:24px;"),o_=(0,tw.Z)("button",{target:"e16f1v3w26"})(":disabled{pointer-events:none;}bottom:0px;margin:auto auto 22px auto;font-family:SFDisplaySemibold;font-size:17px;color:black;height:54px;width:343px;background-color:white;border:1px solid #f1f1f1;border-radius:8px;letter-spacing:-0.01em;cursor:pointer;-webkit-appearance:none;");var oO=e=>{let{handleClick:t}=e;return(0,X.tZ)(ok,{onClick:t,children:(0,X.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:(0,X.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.01 6l3.78-3.78a.713.713 0 10-1.01-1.01L6 4.99 2.22 1.21a.713.713 0 10-1.01 1.01L4.99 6 1.21 9.78a.713.713 0 101.01 1.01L6 7.01l3.78 3.78a.712.712 0 001.01 0c.28-.279.28-.73 0-1.01L7.01 6z",fill:"#616161",stroke:"#616161",strokeWidth:".5"})})})},oz=e=>{let t,{canUseApplePay:i,shippingRate:n,shippingRateIsLoading:a}=e,{discount:o,discountError:r,isLoading:l}=nQ(),s=tx(),{cartIsOpen:c,cartShouldOpen:d,closeCart:u,fetchCart:p,getProductInfo:h,quantity:g,recallLineItem:f,removeLineItem:m}=(0,ty.g1)(),y=p(),v=e=>{m(e)},b=(e,t)=>{let i=h(e.productID);s.openPaymentPopup(i,()=>null,!1,void 0,e,!0,f,t)};if(!c)return null;if(0===g)t=(0,X.BX)(X.HY,{children:[(0,X.tZ)(oD,{children:"Add items to see them in the cart"}),(0,X.tZ)(o_,{onClick:u,children:"Close Cart"})]});else{let e=y.lineItems.reduce((e,t)=>e+t.unitPrice*t.quantity,0),c=!r,[d,u]=nK(o,e),p=!!n&&!a&&y.lineItems.some(e=>e.requiresShipping),h=tP(e),g=tP(d),f=c?u:e,m=tP(f+=p?n.price.amount:0);t=(0,X.BX)(X.HY,{children:[(0,X.tZ)(om,{children:y.lineItems.map((e,t)=>{let i;let{UUID:n}=e,a=e.quantity>1?"".concat(e.itemName," x").concat(e.quantity):e.itemName,o=tP(e.unitPrice*e.quantity);return e.notesPrompt&&(i="".concat(e.notesPrompt,": ").concat(e.notes||"")),(0,X.BX)(oI,{children:[(0,X.BX)(oZ,{children:[(0,X.tZ)(oB,{children:a}),(0,X.tZ)(oP,{children:o})]}),(0,X.tZ)(oL,{children:e.variantDescription}),(0,X.BX)(oE,{children:[(0,X.tZ)(oM,{children:i}),(0,X.tZ)(oN,{onClick:()=>v(n),children:"Remove"}),e.isEditable&&(0,X.tZ)(oN,{onClick:()=>b(e,t),children:"Edit"})]})]},n)})}),(0,X.tZ)(ap,{footerMessage:u<=50&&c&&!l?"The minimum transaction amount is $0.50":null}),(0,X.BX)(oy,{children:[(0,X.BX)(ov,{children:[(0,X.tZ)(ob,{children:"Subtotal"}),(0,X.tZ)(oR,{children:h})]}),c&&d>0&&(0,X.BX)(ov,{children:[(0,X.tZ)(ob,{children:"Discount"}),(0,X.BX)(oR,{children:["-",g]})]}),p&&(0,X.BX)(ov,{children:[(0,X.tZ)(ob,{children:"".concat(n.name," Shipping")}),(0,X.tZ)(ob,{children:tP(n.price.amount)})]})]}),(0,X.BX)(ox,{children:[(0,X.tZ)(oF,{children:"Total"}),(0,X.tZ)(oH,{children:m})]}),(0,X.BX)(ow,{children:[i&&(0,X.tZ)(oC,{disabled:l||a,onClick:()=>{s.checkout(N.APPLE_PAY)}}),(0,X.tZ)(oT,{disabled:l||a,onClick:()=>{s.checkout(N.CARD)},children:"Pay With Card"})]})]})}return(0,X.BX)(X.HY,{children:[(0,X.tZ)(oA,{isOpen:d,onClick:u}),(0,X.BX)(og,{shouldOpen:d,children:[(0,X.BX)(of,{children:[(0,X.tZ)(oS,{children:"Shopping Cart"}),(0,X.tZ)(oO,{handleClick:u})]}),t]})]})};let oU=eu()(()=>i.e(636).then(i.bind(i,5971)),{loadableGenerated:{webpack:()=>[5971]},ssr:!1});var oq=e=>{let{canUseApplePay:t,shippingRate:i,shippingRateIsLoading:n}=e;return(0,X.BX)(X.HY,{children:[(0,X.tZ)(oU,{}),(0,X.tZ)(oz,{canUseApplePay:t,shippingRate:i,shippingRateIsLoading:n})]})};let oj=async e=>(await fetch("/_api/v3/merchants/".concat(e,"/validate"),{method:"POST",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}})).json();var oX=i(7894);let oV=async e=>{let t=await fetch("/_api/v1/sites/".concat(e,"/shipping-rates"),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json",Accept:"application/json"}}),i=(await t.json()).find(e=>!!e.activated_at);if(!i)throw Error("Unable to find active shipping rate");return{id:i.id,activatedAt:i.activated_at,price:{amount:i.price.amount,currency:i.price.currency},name:i.name}};var oW=e=>{let t=(0,V.useContext)(J),[i,n]=(0,V.useState)(!1),[a,o]=(0,V.useState)(null),[r,l]=(0,V.useState)(null),[s,c]=(0,V.useState)(!1),[d,u]=(0,V.useState)(null),[p,h]=(0,V.useState)(!1),[g,f]=(0,V.useState)(null),[m,y]=(0,V.useState)(!1),[v,b]=(0,V.useState)(null),[x,w]=(0,V.useState)(null),[S,k]=(0,V.useState)(!1),[C,T]=(0,V.useState)(null),[I,Z]=(0,V.useState)(null),[B,P]=(0,V.useState)(null),[F,H]=(0,V.useState)(null),{track:R}=ec();(0,V.useEffect)(()=>{i&&(a||o(M()),(0,oX.loadStripe)(tT.environment.stripe.publicKey).then(async e=>{l(e),await L(e)}).catch(e=>console.log("Error setting up stripe",e)),E().catch(e=>console.log("Error loading shipping rates",e)))},[i]);let L=e=>e.paymentRequest({country:"US",currency:"usd",total:{label:"some title",amount:100}}).canMakePayment().then(e=>{c(e&&e.applePay)}),M=()=>oj(e.merchantId).then(e=>e.can_accept_payments).catch(e=>(console.error("Error loading merchant validation check"),!0)),E=async()=>{u(await oV(U.id))},A=async function(e,t,i,n,o){let r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;if(!await (a||M())){_();return}setTimeout(()=>{h(!0)},50),e&&y(!0);let s=await e;r&&l(o.UUID,s),f({itemName:s.name,price:s.price.amount,variants:s.variants,productID:s.id,requiresAddress:s.requiresAddress,requiresShipping:s.requiresShipping,requiresPhoneNumber:s.requiresPhoneNumber,allowsNotes:s.allowsNotes,notesPrompt:s.notesPrompt}),y(!1),k(i),b(t),w(n),H(o||null)},D=async(e,t)=>{if(!await (a||M())){_();return}let i=e===N.CARD;T(t),h(i),Z(e),P(()=>null)},_=()=>{t.toggleModal((0,X.tZ)(tk,{}))},O=()=>{v&&v(),h(!1),f(null),w(null),y(!1),b(null),k(!1),T(null),Z(null)},{children:z,site:U}=e,q=!d;return(0,X.tZ)(ty.FP,{siteID:U.id,onInitialize:()=>{setTimeout(()=>{n(!0)})},children:(0,X.tZ)(n$,{siteId:U.id,product:g,children:(0,X.BX)(tb,{openPaymentPopup:A,closePaymentPopup:O,initiateCheckout:D,children:[(0,X.tZ)(oq,{canUseApplePay:s,shippingRate:d,shippingRateIsLoading:q}),z,(0,X.tZ)(nJ.Consumer,{children:e=>(0,X.tZ)(oh,{siteId:U.id,siteTitle:U.title,isOpen:p,productLoading:m,product:g,hideQuantityPicker:S,closePaymentPopup:O,paymentSuccessMessageBeforeEmail:x,canUseApplePay:s,stripe:r,lineItems:C,paymentMethod:I,handlePaymentCompletion:B,currentLineItem:F,discount:e.discount,discountError:e.discountError,discountIsLoading:e.isLoading,track:R,shippingRate:d,shippingRateIsLoading:q})})]})})})};let oG={id:null,values:{bannerCopy:"Create a site like this",bannerCopyPosition:"right",bannerLeftImage:{url:"/static/banner/universe.svg",alt:"Universe Logo"},bannerRightImage:{url:"/static/banner/arrow.svg",alt:"Arrow Icon"},backgroundColor:"white",textColor:"black",bannerNavigationUrl:tT.environment.getUniverseUrls.banner}},oY=e=>{switch(e){case"none":return null;case"universe-logo":return"/static/banner/universe.svg";case"arrow-icon":return"/static/banner/arrow.svg";default:return e}},oJ=e=>{let{sites_banner_copy:t,sites_banner_copy_position:i,sites_banner_left_image_url:n,sites_banner_left_image_alt_text:a,sites_banner_right_image_url:o,sites_banner_right_image_alt_text:r,sites_banner_background_color:l,sites_banner_text_color:s,sites_banner_navigation_url:c}=e.values;return{id:e.id,values:{bannerCopy:t,bannerCopyPosition:i,bannerLeftImage:{url:oY(n),alt:a},bannerRightImage:{url:oY(o),alt:r},backgroundColor:l,textColor:s,bannerNavigationUrl:c}}},o$=()=>fetch("/_api/v1/values/anonymous",{method:"POST",mode:"same-origin",cache:"no-cache",headers:{Accept:"application/json","Content-Type":"application/json"}}),oQ=e=>fetch("/_api/v1/values/anonymous-user/".concat(e),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{Accept:"application/json","Content-Type":"application/json"}}),oK=async e=>{let t=await oQ(e);return 200!==t.status?oG:oJ(await t.json())},o0=async()=>{let e=await o$();return 200!==e.status?oG:oJ(await e.json())};(I=j||(j={})).Center="center",I.Justified="justified",I.Left="left",I.Right="right";let o1="anonymous-user-id",o2=(0,ep.iv)("width:100%;position:fixed;z-index:1000;box-shadow:rgba(0,0,0,0.1) 0px 0px 8px;height:54px;bottom:0;box-sizing:border-box;padding:0 17px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-family:SFDisplaySemibold,-apple-system,BlinkMacSystemFont,sans-serif;font-size:17px;@media (min-width:",tM.$d.MAX_WIDTH_MOBILE+1,"px){border-radius:16px 16px 0 0;left:40px;width:375px;}");var o5=()=>{let[e,t]=(0,V.useState)(null);return(0,V.useEffect)(()=>{(async()=>{let e=null;if(e=sessionStorage.getItem(o1))return t(await oK(e));let i=await o0();return i.id&&sessionStorage.setItem(o1,i.id),t(i)})()},[]),e&&(0,X.BX)("a",{className:"universe-banner",href:e.values.bannerNavigationUrl,target:"_blank",rel:"noopener noreferrer",css:(0,ep.iv)("background-color:",e.values.backgroundColor,";",o2),onClick:()=>{var t;return t={name:"sites_banner_click",sites_banner_copy:e.values.bannerCopy,sites_banner_background_color:e.values.backgroundColor,sites_banner_text_color:e.values.textColor},window.gtag&&window.gtag("event",t.name,{...t})},children:[e.values.bannerLeftImage.url&&(0,X.tZ)("img",{css:(0,ep.iv)("width:28px;height:28px;"),src:e.values.bannerLeftImage.url,alt:e.values.bannerLeftImage.alt}),(0,X.tZ)("span",{css:(0,ep.iv)("color:",e.values.textColor,";margin-left:","left"!==e.values.bannerCopyPosition?"auto":"8px",";margin-right:","right"!==e.values.bannerCopyPosition?"auto":"8px",";"),children:e.values.bannerCopy}),e.values.bannerRightImage.url&&(0,X.tZ)("img",{css:(0,ep.iv)("width:10px;height:10px;"),src:e.values.bannerRightImage.url,alt:e.values.bannerRightImage.alt})]})},o3=i(9008),o4=i.n(o3);let o7=(e,t,i,n)=>t||i?n&&t?t:[i,t].filter(Boolean).join(" - "):e;var o6=e=>{var t,i;let n,a,o,r,l,{assetBaseUrl:s,host:c,favicon:d,faviconAssetId:u,metaTags:p,siteTitle:h,pageSlug:g,siteDescription:f,isHomepage:m,theme:y,canonicalHost:v}=e,{track:b}=ec(),{activePage:x}=(0,V.useContext)(W);(0,V.useEffect)(()=>{b({type:B.PageView})},[]);let w=(null==x?void 0:x.customPreviewUUID)||(null==x?void 0:x.snapshotUUID),S=o7(c,h,null==x?void 0:x.title,m),k="".concat(s,"/").concat(w,".jpg?w=1200&h=630&crop=top&fit=crop"),C="".concat(s,"/").concat(w,".jpg?w=600&h=300&q=40&dpr=2&crop=top&fit=crop"),T="/static/favicons/".concat(d),I=(null==x?void 0:x.description)||f||S,Z="/"===g?"":g,P=x.background||(null===(i=y.attributes.grid)||void 0===i?void 0:null===(t=i.primary)||void 0===t?void 0:t.background),F=P?(0,ey.a)((0,em.QH)(P.fill)):"black";u?(n="".concat(s,"/").concat(u,".png?fm=png&w=180&h=180&crop=top&fit=crop"),a="".concat(s,"/").concat(u,".png?fm=png&w=32&h=32&crop=top&fit=crop"),o="".concat(s,"/").concat(u,".png?fm=png&w=16&h=16&crop=top&fit=crop"),l="/_favicons/".concat(u,"/site.webmanifest"),r="".concat(s,"/").concat(u,".ico")):(n="".concat(T,"/apple-touch-icon.png"),a="".concat(T,"/favicon-32x32.png"),o="".concat(T,"/favicon-16x16.png"),l="".concat(T,"/favicon.ico"),r="".concat(T,"/site.webmanifest"));let H=null==p?void 0:p.map(e=>(0,X.tZ)("meta",{name:e.name,content:e.content}));return(0,X.BX)(o4(),{children:[(0,X.tZ)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,X.tZ)("title",{children:S}),(0,X.tZ)("meta",{property:"og:type",content:"website"}),(0,X.tZ)("meta",{property:"og:url",content:"https://".concat(c).concat(Z)}),(0,X.tZ)("meta",{property:"og:title",content:S}),(0,X.tZ)("meta",{property:"og:description",content:I}),(0,X.tZ)("meta",{property:"og:image",content:k}),(0,X.tZ)("meta",{property:"og:image:width",content:"375"}),(0,X.tZ)("meta",{property:"og:image:height",content:"667"}),(0,X.tZ)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,X.tZ)("meta",{name:"twitter:title",content:S}),(0,X.tZ)("meta",{name:"twitter:description",content:I}),(0,X.tZ)("meta",{name:"twitter:image",content:C}),(0,X.tZ)("meta",{name:"description",content:I}),(0,X.tZ)("link",{rel:"preconnect",href:s}),(0,X.tZ)("link",{rel:"apple-touch-icon",sizes:"180x180",href:n}),(0,X.tZ)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:a}),(0,X.tZ)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:o}),(0,X.tZ)("link",{rel:"manifest",href:l}),(0,X.tZ)("link",{rel:"shortcut icon",href:r}),(0,X.tZ)("link",{rel:"canonical",href:"https://".concat(v).concat(Z)}),(0,X.tZ)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,X.tZ)("meta",{name:"msapplication-config",content:"".concat(T,"/browserconfig.xml")}),(0,X.tZ)("meta",{name:"theme-color",content:F}),H]})};let o8={height:"100%",position:"fixed",width:"100%"},o9={inset:"0",outline:"none",overflowY:"auto",position:"absolute"};var re=e=>{let{data:t,context:i}=e,{theme:n,content:a,assetBaseUrl:o,siteId:r,merchantId:l,siteTitle:s,pageTitle:c,favicon:d,siteDescription:u,pageDescription:p,pageBackground:h,sticker:g,isHomepage:f,marketingIntegrations:m,metaTags:y,route:v,snapshotUuid:b,customPreviewUUID:x,faviconAssetId:w,shouldShowBanner:S}=t,{host:k,canonicalHost:C}=i,T=(0,V.useRef)(null),[I,B]=(0,V.useState)(v),P=(0,V.useMemo)(()=>(0,eA.Co)(n),[i.theme]);(0,V.useEffect)(()=>{T.current&&v!==I&&(T.current.scrollTo(0,0),T.current.focus(),B(v))},[v]);let F={type:Z.MarketingIntegrationType.GoogleAnalytics,value:"G-CX6QWFXGS9"},H=nz(a,{...i,theme:n,isFullScreen:!0,siteId:r,sticker:g}),R=(0,X.BX)(t7,{siteId:r,children:[(0,X.tZ)(o6,{assetBaseUrl:o,host:k,favicon:d,faviconAssetId:w,metaTags:y,siteTitle:s,siteDescription:u,pageSlug:v,isHomepage:f,theme:n,canonicalHost:C}),(0,X.BX)("div",{css:P,style:o9,ref:T,tabIndex:-1,children:[H,g&&(0,X.tZ)(ip,{children:(0,X.tZ)(iu,{sticker:g})}),S&&(0,X.tZ)(o5,{bannerHeight:540,host:k}),(0,X.tZ)(nW,{})]})]});return l&&(R=(0,X.tZ)("div",{style:o8,children:(0,X.tZ)(oW,{site:{id:r,title:s||k},merchantId:l,children:R})})),(0,X.tZ)(G,{initialPage:{title:c,description:p,snapshotUUID:b,customPreviewUUID:x,background:h},children:(0,X.tZ)(Y.i,{children:(0,X.tZ)(es,{integrations:[...m,F],children:(0,X.tZ)($,{children:R})})})})}},8554:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var n=i(5944),a=i(9008),o=i.n(a),r=i(7294);let l={400:"Bad Request",402:"Payment Required",404:"This page could not be found",405:"Method Not Allowed",410:"Page Deleted",451:"Unavailable for Legal Reasons",500:"Something Went Wrong"};class s extends r.Component{render(){let{statusCode:e,isInnerContent:t}=this.props,i=this.props.title||l[e]||"An unexpected error has occurred",a="".concat(e,": ").concat(i);return(0,n.BX)("div",{style:c.error,children:[!t&&(0,n.tZ)(o(),{children:(0,n.tZ)("title",{children:a})}),(0,n.BX)("div",{children:[(0,n.tZ)("style",{dangerouslySetInnerHTML:{__html:"body { margin: 0 }"}}),e?(0,n.tZ)("h1",{style:c.h1,children:e}):null,(0,n.tZ)("div",{style:c.desc,children:(0,n.tZ)("h2",{style:c.h2,children:i})})]})]})}}s.displayName="ErrorPage";let c={error:{color:"#000",background:"#fff",fontFamily:'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block",textAlign:"left",lineHeight:"49px",height:"49px",verticalAlign:"middle"},h1:{display:"inline-block",borderRight:"1px solid rgba(0, 0, 0,.3)",margin:0,marginRight:"20px",padding:"10px 23px 10px 0",fontSize:"24px",fontWeight:500,verticalAlign:"top"},h2:{fontSize:"14px",fontWeight:"normal",lineHeight:"inherit",margin:0,padding:0}}},3018:function(e,t,i){"use strict";i.d(t,{o:function(){return l}});var n=i(5944),a=i(7294),o=i(8554);class r extends a.Component{static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?(0,n.tZ)(o.Z,{statusCode:500,title:"Something went wrong",isInnerContent:!0}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}function l(e){return t=>{if(!t)return(0,n.tZ)(o.Z,{statusCode:500,title:"Something went wrong"});try{if((null==t?void 0:t.type)==="error")throw t.error;return(0,n.tZ)(r,{children:e(t.value)})}catch(i){let e=i.status||500,t=i.message||"Something went wrong";return(0,n.tZ)(o.Z,{statusCode:e,title:t})}}}},5814:function(e,t,i){"use strict";function n(e){return"rgba(".concat(e.red,",").concat(e.green,",").concat(e.blue,",").concat(e.alpha,")")}function a(e){let t=n(e);return"linear-gradient(to right, ".concat(t,", ").concat(t,")")}i.d(t,{a:function(){return n},i:function(){return a}})},8855:function(e,t,i){"use strict";i.d(t,{K:function(){return o},W:function(){return a}});var n=i(5903);function a(e){return"".concat(e.width," / ").concat(e.height)}function o(e){switch(e.type){case n.gO.ContentHeightType.AspectRatio:return{aspectRatio:a(e.value)};case n.gO.ContentHeightType.Auto:return{position:"absolute",inset:"0",height:"100%"};case n.gO.ContentHeightType.Constant:var t;return{height:(t=e.value,"".concat(t,"px"))}}}},3409:function(e,t,i){"use strict";i.d(t,{n:function(){return a}});var n=i(5814);function a(e){let t=-1*Math.atan2(e.startPoint.x-e.endPoint.x,e.startPoint.y-e.endPoint.y)*(180/Math.PI),i=e.colors.map(e=>"".concat((0,n.a)(e.color)," ").concat(100*e.location,"%"));return"linear-gradient(".concat(t,"deg, ").concat(i.join(", "),")")}},7268:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var n=i(9101),a=i(5944);i(5912);var o=i(3302);function r(e,t){if(!e)return{css:{},svg:null};let i="clipPath-".concat(t);switch(e.type){case n.zd.MaskType.Circle:return{css:{clipPath:"circle(closest-side)"},svg:null};case n.zd.MaskType.Path:var r;return{css:{clipPath:"url(#".concat(i,")")},svg:(r=e.path,(0,a.tZ)("svg",{className:"mask-svg",viewBox:"0 0 100 100",children:(0,a.tZ)("defs",{children:(0,a.tZ)("clipPath",{id:i,clipPathUnits:"objectBoundingBox",transform:"scale(0.01 0.01)",children:(0,a.tZ)("path",{fillRule:r.useEvenOdd?"evenodd":"nonzero",d:r.data})})})}))};case n.zd.MaskType.Pill:return{css:{clipPath:"inset(25% 0 round 100vmax)"},svg:null};case n.zd.MaskType.RoundedRect:return{css:{clipPath:"inset(0 round ".concat((0,o.TC)(e.radius),")")},svg:null};case n.zd.MaskType.Url:return{css:{WebkitMask:"url(".concat(e.url,") no-repeat center"),WebkitMaskSize:"contain"},svg:null}}}},1106:function(e,t,i){"use strict";i.d(t,{I:function(){return a},h:function(){return o}});var n=i(5814);function a(e){if(e)return"".concat(e.offset.x,"px ").concat(e.offset.y,"px ").concat(e.radius,"px ").concat((0,n.a)(e.color))}function o(e){return e?{filter:"drop-shadow(".concat(a(e),")")}:{}}},4008:function(e,t,i){"use strict";i.d(t,{Co:function(){return S},j_:function(){return x},a7:function(){return v},Ao:function(){return b},$c:function(){return y}});var n,a,o,r,l,s,c,d,u=i(917),p=i(9101);(a=(n=d||(d={})).Category||(n.Category={})).Button="button",a.Grid="grid",a.IconButton="iconButton",a.Map="map",a.Text="text",(r=(o=n.Style||(n.Style={})).Name||(o.Name={})).Primary="primary",r.Secondary="secondary",r.PrimaryTitle="primaryTitle",r.SecondaryTitle="secondaryTitle",r.Subtitle="subtitle",r.Paragraph="paragraph",r.Caption="caption",(o.Background||(o.Background={})).primary="primary",(l=o.Button||(o.Button={})).primary="primary",l.secondary="secondary",(s=o.IconButton||(o.IconButton={})).primary="primary",s.secondary="secondary",(o.Image||(o.Image={})).primary="primary",(o.Map||(o.Map={})).primary="primary",(c=o.Text||(o.Text={})).primaryTitle="primaryTitle",c.secondaryTitle="secondaryTitle",c.subtitle="subtitle",c.paragraph="paragraph",c.caption="caption",o.allButtonStyles=["primary","secondary"],o.allTextStyles=["primaryTitle","secondaryTitle","subtitle","paragraph","caption"];var h=i(3302),g=i(5814),f=i(8814),m=i(6504);function y(e,t){return null==e?t||null:"none"===e?null:e}function v(e,t){var i;if((null===(i=e.tap)||void 0===i?void 0:i.some(e=>e.type===p.aU.Effect.EffectType.Animate))||!t||!t.length)return e;let n=t.map(e=>({type:p.aU.Effect.EffectType.Animate,animation:e})),a=[...e.tap||[]];return a.unshift(...n),{...e,tap:a}}function b(e,t){return!t||(0,p.uM)(e)?e||void 0:(0,p.Uu)(e,t)}function x(e){let t=(null==e?void 0:e.font)||f.DG.font,i=(0,m.XC)(t);return{font:t,fontSize:(null==e?void 0:e.fontSize)||f.DG.fontSize,foregroundFill:(null==e?void 0:e.textFill)||f.DG.foregroundFill,backgroundFill:null==e?void 0:e.textBackgroundFill,characterSpacing:(null==e?void 0:e.characterSpacing)!=null?e.characterSpacing:f.DG.characterSpacing,lineSpacing:(null==e?void 0:e.lineSpacing)!=null?e.lineSpacing:f.DG.lineSpacing,paragraphSpacing:(null==e?void 0:e.paragraphSpacing)!=null?e.paragraphSpacing:f.DG.paragraphSpacing,italics:i.italics}}function w(e,t,i,n){let a=[];if(a.push("letter-spacing: ".concat((0,f.cb)(n.characterSpacing),";")),n.font){let e=(0,m.XC)(n.font);a.push("font-family: ".concat(e.fontFamily,";")),a.push("font-weight: ".concat(e.weight,";")),a.push("font-style: ".concat((0,f.B9)(e.italics),";"))}return n.fontSize&&a.push("font-size: ".concat((0,h.wN)(n.fontSize),";")),n.textBackgroundFill&&a.push("background-color: ".concat((0,g.a)((0,p.QH)(n.textBackgroundFill)),";")),n.textFill&&a.push("color: ".concat((0,g.a)((0,p.QH)(n.textFill)),";")),"\n    .theme-".concat(t,"-").concat(i," {\n      ").concat(a.join("\n"),"\n    }\n  ")}function S(e){let t=d.Style.allButtonStyles.map(t=>w(e,d.Category.Button,t,e.attributes[d.Category.Button][t])),i=d.Style.allTextStyles.map(t=>w(e,d.Category.Text,t,e.attributes[d.Category.Text][t]));return(0,u.iv)([...t,...i].join("\n\n"))}},6504:function(e,t,i){"use strict";i.d(t,{XC:function(){return u},jG:function(){return l},_1:function(){return r}});var n,a,o=JSON.parse('{"AUTHENTICSans-Regular":{"lineHeight":1,"offset":0.094},"Aeonik-Bold":{"lineHeight":1.2,"offset":-0.143},"Aeonik-BoldItalic":{"lineHeight":1.2,"offset":-0.143},"Aeonik-Light":{"lineHeight":1.2,"offset":-0.1465},"Aeonik-LightItalic":{"lineHeight":1.2,"offset":-0.1465},"Aeonik-Medium":{"lineHeight":1.2,"offset":-0.144},"Aeonik-MediumItalic":{"lineHeight":1.2,"offset":-0.144},"Aeonik-Regular":{"lineHeight":1.2,"offset":-0.145},"Aeonik-RegularItalic":{"lineHeight":1.2,"offset":-0.145},"AlfaSlabOne-Regular":{"lineHeight":1.369,"offset":-0.0735},"AmaticSC-Bold":{"lineHeight":1.261,"offset":-0.052},"AmaticSC-Regular":{"lineHeight":1.261,"offset":-0.056},"ApexMk2-BoldExtended":{"lineHeight":1.2,"offset":-0.15},"Bagnard":{"lineHeight":1,"offset":-0.0105},"BungeeShade-Regular":{"lineHeight":1,"offset":-0.01},"Butler":{"lineHeight":1,"offset":0.075},"Butler-Black":{"lineHeight":1,"offset":0.075},"Butler-Bold":{"lineHeight":1,"offset":0.075},"Butler-Light":{"lineHeight":1,"offset":0.075},"Butler-Medium":{"lineHeight":1,"offset":0.075},"CooperHewitt-Bold":{"lineHeight":1.043,"offset":0.1435},"CooperHewitt-BoldItalic":{"lineHeight":1.043,"offset":0.1435},"CooperHewitt-Book":{"lineHeight":1.041,"offset":0.1445},"CooperHewitt-BookItalic":{"lineHeight":1.041,"offset":0.1445},"CooperHewitt-Heavy":{"lineHeight":1.044,"offset":0.143},"CooperHewitt-HeavyItalic":{"lineHeight":1.044,"offset":0.143},"CooperHewitt-Light":{"lineHeight":1.04,"offset":0.145},"CooperHewitt-LightItalic":{"lineHeight":1.04,"offset":0.145},"Courgette-Regular":{"lineHeight":1.25,"offset":-0.1079},"FREEFATFONT-Regular":{"lineHeight":1.2,"offset":-0.15},"GTAmerica-Rg":{"lineHeight":1.258,"offset":-0.121},"GTAmerica-RgIt":{"lineHeight":1.258,"offset":-0.121},"HelveticaNeueLTStd-Bd":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-BdCn":{"lineHeight":1.014,"offset":0.1375},"HelveticaNeueLTStd-BdCnO":{"lineHeight":1.014,"offset":0.1375},"HelveticaNeueLTStd-BdEx":{"lineHeight":1.02,"offset":0.1345},"HelveticaNeueLTStd-BdExO":{"lineHeight":1.02,"offset":0.1345},"HelveticaNeueLTStd-BdIt":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-BdOu":{"lineHeight":1.016,"offset":0.1365},"HelveticaNeueLTStd-Blk":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-BlkIt":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-Hv":{"lineHeight":1.015,"offset":0.137},"HelveticaNeueLTStd-HvCn":{"lineHeight":1.014,"offset":0.1375},"HelveticaNeueLTStd-HvCnO":{"lineHeight":1.014,"offset":0.1375},"HelveticaNeueLTStd-HvEx":{"lineHeight":1.022,"offset":0.1335},"HelveticaNeueLTStd-HvExO":{"lineHeight":1.022,"offset":0.1335},"HelveticaNeueLTStd-HvIt":{"lineHeight":1.015,"offset":0.137},"HelveticaNeueLTStd-It":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-Md":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-MdIt":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-Roman":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-Th":{"lineHeight":1.017,"offset":0.136},"HelveticaNeueLTStd-ThIt":{"lineHeight":1.017,"offset":0.136},"HouseSlant-Regular":{"lineHeight":1.222,"offset":-0.063},"IBMPlexMono":{"lineHeight":1.3,"offset":-0.117},"IBMPlexMono-Bold":{"lineHeight":1.3,"offset":-0.117},"IBMPlexMono-BoldItalic":{"lineHeight":1.3,"offset":-0.117},"IBMPlexMono-Italic":{"lineHeight":1.3,"offset":-0.117},"IBMPlexSerif":{"lineHeight":1.3,"offset":-0.117},"IBMPlexSerif-Bold":{"lineHeight":1.3,"offset":-0.1125},"IBMPlexSerif-BoldItalic":{"lineHeight":1.3,"offset":-0.1125},"IBMPlexSerif-Italic":{"lineHeight":1.3,"offset":-0.117},"IBMPlexSerif-Light":{"lineHeight":1.3,"offset":-0.119},"IBMPlexSerif-LightItalic":{"lineHeight":1.3,"offset":-0.119},"IndieFlower":{"lineHeight":1.459,"offset":-0.0586},"Inter-Bold":{"lineHeight":1.2102,"offset":-0.0909},"Inter-BoldItalic":{"lineHeight":1.2102,"offset":-0.0909},"Inter-Italic":{"lineHeight":1.2102,"offset":-0.0909},"Inter-Regular":{"lineHeight":1.2102,"offset":-0.0909},"Inter-SemiBold":{"lineHeight":1.2102,"offset":-0.0909},"Inter-SemiBoldItalic":{"lineHeight":1.2102,"offset":-0.0909},"Jost-Bold":{"lineHeight":1.38,"offset":-0.06},"Jost-BoldItalic":{"lineHeight":1.38,"offset":-0.06},"Jost-Book":{"lineHeight":1.38,"offset":-0.06},"Jost-BookItalic":{"lineHeight":1.38,"offset":-0.06},"Jost-Light":{"lineHeight":1.38,"offset":-0.06},"Jost-LightItalic":{"lineHeight":1.38,"offset":-0.06},"Junicode-Bold":{"lineHeight":1,"offset":0.0359},"Junicode-BoldCondensed":{"lineHeight":1,"offset":0.0359},"Junicode-BoldItalic":{"lineHeight":1,"offset":0.0332},"Junicode-BoldItalicCondensed":{"lineHeight":1,"offset":0.0332},"Junicode-Italic":{"lineHeight":1,"offset":0.0332},"Junicode-ItalicCondensed":{"lineHeight":1,"offset":0.0332},"Junicode-Regular":{"lineHeight":1,"offset":0.0359},"Junicode-RegularCondensed":{"lineHeight":1,"offset":0.0359},"KumarOne-Regular":{"lineHeight":1.779,"offset":0.0525},"KumarOneOutline-Regular":{"lineHeight":1.779,"offset":0.0525},"LeagueGothic-CondensedItalic":{"lineHeight":1.2,"offset":-0.0615},"LeagueGothic-CondensedRegular":{"lineHeight":1.2,"offset":-0.0615},"LeagueGothic-Italic":{"lineHeight":1.2,"offset":-0.0615},"LeagueGothic-Regular":{"lineHeight":1.2,"offset":-0.0615},"Lunchtype":{"lineHeight":1,"offset":-0.0045},"Lunchtype-ExpandedLight":{"lineHeight":1,"offset":-0.0045},"Lunchtype-ExpandedMedium":{"lineHeight":1,"offset":-0.0045},"Lunchtype-ExpandedRegular":{"lineHeight":1,"offset":-0.0045},"Lunchtype-Light":{"lineHeight":1,"offset":-0.0045},"Lunchtype-Medium":{"lineHeight":1,"offset":-0.0045},"Macondo-Regular":{"lineHeight":1.18,"offset":-0.0635},"Monoton-Regular":{"lineHeight":1.5566,"offset":-0.0254},"Nunito-ExtraBold":{"lineHeight":1.364,"offset":-0.0835},"OptimaLTStd":{"lineHeight":1,"offset":0.101},"OptimaLTStd-Bold":{"lineHeight":1,"offset":0.101},"OptimaLTStd-BoldItalic":{"lineHeight":1,"offset":0.101},"OptimaLTStd-ExtraBlack":{"lineHeight":1,"offset":0.101},"OptimaLTStd-Italic":{"lineHeight":1,"offset":0.101},"OptimaLTStd-XBlackItalic":{"lineHeight":1,"offset":0.101},"Optima-Regular":{"lineHeight":1,"offset":0.101},"PermanentMarker":{"lineHeight":1.4268,"offset":-0.0757},"Poppins-Bold":{"lineHeight":1.4,"offset":-0.021},"Poppins-BoldItalic":{"lineHeight":1.4,"offset":-0.021},"Poppins-Italic":{"lineHeight":1.4,"offset":-0.026},"Poppins-Medium":{"lineHeight":1.4,"offset":-0.0245},"Poppins-MediumItalic":{"lineHeight":1.4,"offset":-0.0245},"Poppins-Regular":{"lineHeight":1.4,"offset":-0.026},"Respira-Black":{"lineHeight":1.5325,"offset":-0.0537},"RoslindaleDisplayCondensed-Bold":{"lineHeight":1.2,"offset":-0.0845},"RoslindaleDisplayCondensed-Light":{"lineHeight":1.2,"offset":-0.0925},"RoslindaleDisplayCondensed-Medium":{"lineHeight":1.2,"offset":-0.0875},"RoslindaleDisplayCondensed-Regular":{"lineHeight":1.2,"offset":-0.0905},"RozhaOne-Regular":{"lineHeight":1.42,"offset":-0.058},"Rubik-Black":{"lineHeight":1.185,"offset":-0.0825},"Rubik-BlackItalic":{"lineHeight":1.185,"offset":-0.0825},"Rubik-Bold":{"lineHeight":1.185,"offset":-0.0825},"Rubik-BoldItalic":{"lineHeight":1.185,"offset":-0.0825},"Rubik-Italic":{"lineHeight":1.185,"offset":-0.0825},"Rubik-Light":{"lineHeight":1.185,"offset":-0.0825},"Rubik-LightItalic":{"lineHeight":1.185,"offset":-0.0825},"Rubik-Medium":{"lineHeight":1.185,"offset":-0.0825},"Rubik-MediumItalic":{"lineHeight":1.185,"offset":-0.0825},"Rubik-Regular":{"lineHeight":1.185,"offset":-0.0825},"SFMono-Regular":{"lineHeight":1.1934,"offset":-0.0906},"ShantellSansBouncy-Bold":{"lineHeight":1.34,"offset":-0.0955},"ShantellSansBouncy-BoldItalic":{"lineHeight":1.34,"offset":-0.0955},"ShantellSansBouncy-ExtraBold":{"lineHeight":1.34,"offset":-0.0925},"ShantellSansBouncy-ExtraBoldItalic":{"lineHeight":1.34,"offset":-0.0925},"ShantellSansBouncy-Italic":{"lineHeight":1.34,"offset":-0.1045},"ShantellSansBouncy-Light":{"lineHeight":1.34,"offset":-0.1075},"ShantellSansBouncy-LightItalic":{"lineHeight":1.34,"offset":-0.1075},"ShantellSansBouncy-Medium":{"lineHeight":1.34,"offset":-0.1015},"ShantellSansBouncy-MediumItalic":{"lineHeight":1.34,"offset":-0.1015},"ShantellSansBouncy-Regular":{"lineHeight":1.34,"offset":-0.1045},"ShantellSansBouncy-SemiBold":{"lineHeight":1.34,"offset":-0.0985},"ShantellSansBouncy-SemiBoldItalic":{"lineHeight":1.34,"offset":-0.0985},"ShantellSansNormal-Bold":{"lineHeight":1.34,"offset":-0.0955},"ShantellSansNormal-BoldItalic":{"lineHeight":1.34,"offset":-0.0955},"ShantellSansNormal-ExtraBold":{"lineHeight":1.34,"offset":-0.0925},"ShantellSansNormal-ExtraBoldItalic":{"lineHeight":1.34,"offset":-0.0925},"ShantellSansNormal-Italic":{"lineHeight":1.34,"offset":-0.1045},"ShantellSansNormal-Light":{"lineHeight":1.34,"offset":-0.1075},"ShantellSansNormal-LightItalic":{"lineHeight":1.34,"offset":-0.1075},"ShantellSansNormal-Medium":{"lineHeight":1.34,"offset":-0.1015},"ShantellSansNormal-MediumItalic":{"lineHeight":1.34,"offset":-0.1015},"ShantellSansNormal-Regular":{"lineHeight":1.34,"offset":-0.1045},"ShantellSansNormal-SemiBold":{"lineHeight":1.34,"offset":-0.0985},"ShantellSansNormal-SemiBoldItalic":{"lineHeight":1.34,"offset":-0.0985},"Shrikhand-Regular":{"lineHeight":1.458,"offset":-0.037},"Sneak-Bold":{"lineHeight":1.2,"offset":-0.09},"Sneak-BoldItalic":{"lineHeight":1.2,"offset":-0.09},"Sneak-Regular":{"lineHeight":1.2,"offset":-0.09},"Sneak-RegularItalic":{"lineHeight":1.2,"offset":-0.09},"TiemposText-Regular":{"lineHeight":1.311,"offset":-0.1405},"TiemposText-RegularItalic":{"lineHeight":1.311,"offset":-0.1405},"VT323-Regular":{"lineHeight":1,"offset":-0.1},"Wremena":{"lineHeight":1,"offset":-0.0205},"Wremena-Bold":{"lineHeight":1,"offset":-0.0205},"Wremena-Light":{"lineHeight":1,"offset":-0.0205},"YatraOne-Regular":{"lineHeight":1.478,"offset":-0.022},"YoungSerif-Regular":{"lineHeight":1.2,"offset":-0.15},"ZillaSlab-Bold":{"lineHeight":1.2,"offset":-0.1185},"ZillaSlab-BoldItalic":{"lineHeight":1.2,"offset":-0.1235},"ZillaSlab-Italic":{"lineHeight":1.2,"offset":-0.1235},"ZillaSlab-Light":{"lineHeight":1.2,"offset":-0.122},"ZillaSlab-LightItalic":{"lineHeight":1.2,"offset":-0.1235},"ZillaSlab-Medium":{"lineHeight":1.2,"offset":-0.1205},"ZillaSlab-MediumItalic":{"lineHeight":1.2,"offset":-0.1235},"ZillaSlab-Regular":{"lineHeight":1.2,"offset":-0.1215},"ZillaSlab-SemiBold":{"lineHeight":1.2,"offset":-0.1195},"ZillaSlab-SemiBoldItalic":{"lineHeight":1.2,"offset":-0.1235}}');function r(e,t){var i;let n=null===(i=o[e])||void 0===i?void 0:i.offset;return n?n*t:0}function l(e,t){var i;let n=null===(i=o[e])||void 0===i?void 0:i.lineHeight;return n?n*(t||1):t||1}(n=a||(a={}))[n.Thin=100]="Thin",n[n.UltraLight=200]="UltraLight",n[n.Light=300]="Light",n[n.Regular=400]="Regular",n[n.Medium=500]="Medium",n[n.SemiBold=600]="SemiBold",n[n.Bold=700]="Bold",n[n.Heavy=800]="Heavy",n[n.Black=900]="Black";let s={thin:100,ultraLight:200,light:300,regular:400,medium:500,semibold:600,bold:700,heavy:800,black:900},c={fontFamily:"Papyrus, fantasy",weight:400,italics:!1},d={"AUTHENTICSans-Regular":{fontFamily:"AuthenticSans",weight:400,italics:!1},"Jost-Light":{fontFamily:"Future",weight:300,italics:!1},"Jost-LightItalic":{fontFamily:"Future",weight:300,italics:!0},"Jost-Book":{fontFamily:"Future",weight:400,italics:!1},"Jost-BookItalic":{fontFamily:"Future",weight:400,italics:!0},"Jost-Bold":{fontFamily:"Future",weight:700,italics:!1},"Jost-BoldItalic":{fontFamily:"Future",weight:700,italics:!0},"HelveticaNeueLTStd-Th":{fontFamily:"HelveticaNeue",weight:100,italics:!1},"HelveticaNeueLTStd-ThIt":{fontFamily:"HelveticaNeue",weight:100,italics:!0},"HelveticaNeueLTStd-Roman":{fontFamily:"HelveticaNeue",weight:400,italics:!1},"HelveticaNeueLTStd-It":{fontFamily:"HelveticaNeue",weight:400,italics:!0},"HelveticaNeueLTStd-Md":{fontFamily:"HelveticaNeue",weight:500,italics:!1},"HelveticaNeueLTStd-MdIt":{fontFamily:"HelveticaNeue",weight:500,italics:!0},"HelveticaNeueLTStd-Bd":{fontFamily:"HelveticaNeue",weight:700,italics:!1},"HelveticaNeueLTStd-BdIt":{fontFamily:"HelveticaNeue",weight:700,italics:!0},"HelveticaNeueLTStd-Hv":{fontFamily:"HelveticaNeue",weight:800,italics:!1},"HelveticaNeueLTStd-HvIt":{fontFamily:"HelveticaNeue",weight:800,italics:!0},"HelveticaNeueLTStd-Blk":{fontFamily:"HelveticaNeue",weight:900,italics:!1},"HelveticaNeueLTStd-BlkIt":{fontFamily:"HelveticaNeue",weight:900,italics:!0},"HelveticaNeueLTStd-BdCn":{fontFamily:"Headline",weight:700,italics:!1},"HelveticaNeueLTStd-BdCnO":{fontFamily:"Headline",weight:700,italics:!0},"HelveticaNeueLTStd-HvCn":{fontFamily:"Headline",weight:800,italics:!1},"HelveticaNeueLTStd-HvCnO":{fontFamily:"Headline",weight:800,italics:!0},"HelveticaNeueLTStd-BdEx":{fontFamily:"Widespace",weight:700,italics:!1},"HelveticaNeueLTStd-BdExO":{fontFamily:"Widespace",weight:700,italics:!0},"HelveticaNeueLTStd-HvEx":{fontFamily:"Widespace",weight:800,italics:!1},"HelveticaNeueLTStd-HvExO":{fontFamily:"Widespace",weight:800,italics:!0},"HelveticaNeueLTStd-BdOu":{fontFamily:"Outline",weight:700,italics:!1},IBMPlexMono:{fontFamily:"PlexMono",weight:400,italics:!1},"IBMPlexMono-Italic":{fontFamily:"PlexMono",weight:400,italics:!0},"IBMPlexMono-Bold":{fontFamily:"PlexMono",weight:700,italics:!1},"IBMPlexMono-BoldItalic":{fontFamily:"PlexMono",weight:700,italics:!0},"Rubik-Light":{fontFamily:"Friendly",weight:300,italics:!1},"Rubik-LightItalic":{fontFamily:"Friendly",weight:300,italics:!0},"Rubik-Regular":{fontFamily:"Friendly",weight:400,italics:!1},"Rubik-Italic":{fontFamily:"Friendly",weight:400,italics:!0},"Rubik-Medium":{fontFamily:"Friendly",weight:500,italics:!1},"Rubik-MediumItalic":{fontFamily:"Friendly",weight:500,italics:!0},"Rubik-Bold":{fontFamily:"Friendly",weight:700,italics:!1},"Rubik-BoldItalic":{fontFamily:"Friendly",weight:700,italics:!0},"Rubik-Black":{fontFamily:"Friendly",weight:900,italics:!1},"Rubik-BlackItalic":{fontFamily:"Friendly",weight:900,italics:!0},OptimaLTStd:{fontFamily:"Elegant",weight:400,italics:!1},"Optima-Regular":{fontFamily:"Elegant",weight:400,italics:!1},"OptimaLTStd-Italic":{fontFamily:"Elegant",weight:400,italics:!0},"OptimaLTStd-Bold":{fontFamily:"Elegant",weight:700,italics:!1},"OptimaLTStd-BoldItalic":{fontFamily:"Elegant",weight:700,italics:!0},"OptimaLTStd-ExtraBlack":{fontFamily:"Elegant",weight:900,italics:!1},"OptimaLTStd-XBlackItalic":{fontFamily:"Elegant",weight:900,italics:!0},"TiemposText-Regular":{fontFamily:"Tiempos",weight:400,italics:!1},"TiemposText-RegularItalic":{fontFamily:"Tiempos",weight:400,italics:!0},"ZillaSlab-Light":{fontFamily:"SlabSerif",weight:300,italics:!1},"ZillaSlab-LightItalic":{fontFamily:"SlabSerif",weight:300,italics:!0},"ZillaSlab-Regular":{fontFamily:"SlabSerif",weight:400,italics:!1},"ZillaSlab-Italic":{fontFamily:"SlabSerif",weight:400,italics:!0},"ZillaSlab-Medium":{fontFamily:"SlabSerif",weight:500,italics:!1},"ZillaSlab-MediumItalic":{fontFamily:"SlabSerif",weight:500,italics:!0},"ZillaSlab-SemiBold":{fontFamily:"SlabSerif",weight:600,italics:!1},"ZillaSlab-SemiBoldItalic":{fontFamily:"SlabSerif",weight:600,italics:!0},"ZillaSlab-Bold":{fontFamily:"SlabSerif",weight:700,italics:!1},"ZillaSlab-BoldItalic":{fontFamily:"SlabSerif",weight:700,italics:!0},"RoslindaleDisplayCondensed-Light":{fontFamily:"Roslindale",weight:300,italics:!1},"RoslindaleDisplayCondensed-Regular":{fontFamily:"Roslindale",weight:400,italics:!1},"RoslindaleDisplayCondensed-Medium":{fontFamily:"Roslindale",weight:500,italics:!1},"RoslindaleDisplayCondensed-Bold":{fontFamily:"Roslindale",weight:700,italics:!1},"Poppins-Regular":{fontFamily:"Poppins",weight:400,italics:!1},"Poppins-Italic":{fontFamily:"Poppins",weight:400,italics:!0},"Poppins-Medium":{fontFamily:"Poppins",weight:500,italics:!1},"Poppins-MediumItalic":{fontFamily:"Poppins",weight:500,italics:!0},"Poppins-Bold":{fontFamily:"Poppins",weight:700,italics:!1},"Poppins-BoldItalic":{fontFamily:"Poppins",weight:700,italics:!0},"AmaticSC-Regular":{fontFamily:"Amatic",weight:400,italics:!1},"AmaticSC-Bold":{fontFamily:"Amatic",weight:700,italics:!1},"Lunchtype-Light":{fontFamily:"Lunchtype",weight:300,italics:!1},Lunchtype:{fontFamily:"Lunchtype",weight:400,italics:!1},"Lunchtype-Medium":{fontFamily:"Lunchtype",weight:500,italics:!1},"Lunchtype-ExpandedLight":{fontFamily:"LunchtypeExpanded",weight:300,italics:!1},"Lunchtype-ExpandedRegular":{fontFamily:"LunchtypeExpanded",weight:400,italics:!1},"Lunchtype-ExpandedMedium":{fontFamily:"LunchtypeExpanded",weight:500,italics:!1},"Junicode-Regular":{fontFamily:"Junicode",weight:400,italics:!1},"Junicode-Italic":{fontFamily:"Junicode",weight:400,italics:!0},"Junicode-Bold":{fontFamily:"Junicode",weight:700,italics:!1},"Junicode-BoldItalic":{fontFamily:"Junicode",weight:700,italics:!0},"Junicode-RegularCondensed":{fontFamily:"JunicodeCondensed",weight:400,italics:!1},"Junicode-ItalicCondensed":{fontFamily:"JunicodeCondensed",weight:400,italics:!0},"Junicode-BoldCondensed":{fontFamily:"JunicodeCondensed",weight:700,italics:!1},"Junicode-BoldItalicCondensed":{fontFamily:"JunicodeCondensed",weight:700,italics:!0},"HouseSlant-Regular":{fontFamily:"houseSlant",weight:400,italics:!1},"LeagueGothic-Regular":{fontFamily:"leagueGothic",weight:400,italics:!1},"LeagueGothic-Italic":{fontFamily:"leagueGothic",weight:400,italics:!0},"LeagueGothic-CondensedRegular":{fontFamily:"leagueGothicCondensed",weight:400,italics:!1},"LeagueGothic-CondensedItalic":{fontFamily:"leagueGothicCondensed",weight:400,italics:!0},"Butler-Light":{fontFamily:"Butler",weight:300,italics:!1},Butler:{fontFamily:"Butler",weight:400,italics:!1},"Butler-Medium":{fontFamily:"Butler",weight:500,italics:!1},"Butler-Bold":{fontFamily:"Butler",weight:700,italics:!1},"Butler-Black":{fontFamily:"Butler",weight:900,italics:!1},"Respira-Black":{fontFamily:"Blackletter",weight:900,italics:!1},PermanentMarker:{fontFamily:"FatMarker",weight:400,italics:!1},"BungeeShade-Regular":{fontFamily:"BigBlock",weight:400,italics:!1},Bagnard:{fontFamily:"Bagnard",weight:400,italics:!1},"VT323-Regular":{fontFamily:"Computer",weight:400,italics:!1},"SFMono-Regular":{fontFamily:"Code",weight:400,italics:!0},"Inter-Regular":{fontFamily:"Inter",weight:400,italics:!1},"Inter-Italic":{fontFamily:"Inter",weight:400,italics:!0},"Inter-SemiBold":{fontFamily:"Inter",weight:600,italics:!1},"Inter-SemiBoldItalic":{fontFamily:"Inter",weight:600,italics:!0},"Inter-Bold":{fontFamily:"Inter",weight:700,italics:!1},"Inter-BoldItalic":{fontFamily:"Inter",weight:700,italics:!0},"FREEFATFONT-Regular":{fontFamily:"Phat",weight:400,italics:!1},"KumarOne-Regular":{fontFamily:"Angular",weight:400,italics:!1},"KumarOneOutline-Regular":{fontFamily:"AngularOutline",weight:400,italics:!1},"Macondo-Regular":{fontFamily:"ArtNouveau",weight:400,italics:!1},"IBMPlexSerif-Light":{fontFamily:"PlexSerif",weight:300,italics:!1},"IBMPlexSerif-LightItalic":{fontFamily:"PlexSerif",weight:300,italics:!0},IBMPlexSerif:{fontFamily:"PlexSerif",weight:400,italics:!1},"IBMPlexSerif-Italic":{fontFamily:"PlexSerif",weight:400,italics:!0},"IBMPlexSerif-Bold":{fontFamily:"PlexSerif",weight:700,italics:!1},"IBMPlexSerif-BoldItalic":{fontFamily:"PlexSerif",weight:700,italics:!0},"ApexMk2-BoldExtended":{fontFamily:"Apex",weight:700,italics:!1},"AlfaSlabOne-Regular":{fontFamily:"Chunky",weight:400,italics:!1},"RozhaOne-Regular":{fontFamily:"Espresso",weight:400,italics:!1},"YatraOne-Regular":{fontFamily:"Gesture",weight:400,italics:!1},"Monoton-Regular":{fontFamily:"Lines",weight:400,italics:!1},"Shrikhand-Regular":{fontFamily:"Morning",weight:400,italics:!0},IndieFlower:{fontFamily:"IndieFlower",weight:400,italics:!1},"Nunito-ExtraBold":{fontFamily:"Rounded",weight:700,italics:!1},"Courgette-Regular":{fontFamily:"Courgette",weight:400,italics:!1},"CooperHewitt-Light":{fontFamily:"CooperHewitt",weight:300,italics:!1},"CooperHewitt-LightItalic":{fontFamily:"CooperHewitt",weight:300,italics:!0},"CooperHewitt-Book":{fontFamily:"CooperHewitt",weight:400,italics:!1},"CooperHewitt-BookItalic":{fontFamily:"CooperHewitt",weight:400,italics:!0},"CooperHewitt-Bold":{fontFamily:"CooperHewitt",weight:700,italics:!1},"CooperHewitt-BoldItalic":{fontFamily:"CooperHewitt",weight:700,italics:!0},"CooperHewitt-Heavy":{fontFamily:"CooperHewitt",weight:800,italics:!1},"CooperHewitt-HeavyItalic":{fontFamily:"CooperHewitt",weight:800,italics:!0},"YoungSerif-Regular":{fontFamily:"YoungSerif",weight:400,italics:!1},"Wremena-Light":{fontFamily:"Wremena",weight:300,italics:!1},Wremena:{fontFamily:"Wremena",weight:400,italics:!1},"Wremena-Bold":{fontFamily:"Wremena",weight:700,italics:!1},AppleColorEmoji:{fontFamily:"AppleEmojiFont",weight:400,italics:!1},"Aeonik-Light":{fontFamily:"Aeonik",weight:300,italics:!1},"Aeonik-LightItalic":{fontFamily:"Aeonik",weight:300,italics:!0},"Aeonik-Regular":{fontFamily:"Aeonik",weight:400,italics:!1},"Aeonik-RegularItalic":{fontFamily:"Aeonik",weight:400,italics:!0},"Aeonik-Medium":{fontFamily:"Aeonik",weight:500,italics:!1},"Aeonik-MediumItalic":{fontFamily:"Aeonik",weight:500,italics:!0},"Aeonik-Bold":{fontFamily:"Aeonik",weight:700,italics:!1},"Aeonik-BoldItalic":{fontFamily:"Aeonik",weight:700,italics:!0},"Sneak-Regular":{fontFamily:"Sneak",weight:400,italics:!1},"Sneak-RegularItalic":{fontFamily:"Sneak",weight:400,italics:!0},"Sneak-Bold":{fontFamily:"Sneak",weight:700,italics:!1},"Sneak-BoldItalic":{fontFamily:"Sneak",weight:700,italics:!0},"GTAmerica-Rg":{fontFamily:"GtAmerica",weight:400,italics:!1},"GTAmerica-RgIt":{fontFamily:"GtAmerica",weight:400,italics:!0},"TiemposWebHeadline-Light":{fontFamily:"TiemposHeadlineLightLegacy",weight:300,italics:!1},"Respira Black Legacy":{fontFamily:"RespiraBlackLegacy",weight:900,italics:!1},"Tiempos Regular Legacy":{fontFamily:"TiemposRegularLegacy",weight:400,italics:!1},"Syncopate Legacy":{fontFamily:"SyncopateLegacy",weight:700,italics:!1},"ShantellSansBouncy-Light":{fontFamily:"ShantellSansBouncy",weight:300,italics:!1},"ShantellSansBouncy-LightItalic":{fontFamily:"ShantellSansBouncy",weight:300,italics:!0},"ShantellSansBouncy-Italic":{fontFamily:"ShantellSansBouncy",weight:400,italics:!0},"ShantellSansBouncy-Regular":{fontFamily:"ShantellSansBouncy",weight:400,italics:!1},"ShantellSansBouncy-Medium":{fontFamily:"ShantellSansBouncy",weight:500,italics:!1},"ShantellSansBouncy-MediumItalic":{fontFamily:"ShantellSansBouncy",weight:500,italics:!0},"ShantellSansBouncy-SemiBold":{fontFamily:"ShantellSansBouncy",weight:600,italics:!1},"ShantellSansBouncy-SemiBoldItalic":{fontFamily:"ShantellSansBouncy",weight:600,italics:!0},"ShantellSansBouncy-Bold":{fontFamily:"ShantellSansBouncy",weight:700,italics:!1},"ShantellSansBouncy-BoldItalic":{fontFamily:"ShantellSansBouncy",weight:700,italics:!0},"ShantellSansBouncy-ExtraBoldItalic":{fontFamily:"ShantellSansBouncy",weight:800,italics:!0},"ShantellSansBouncy-ExtraBold":{fontFamily:"ShantellSansBouncy",weight:800,italics:!1},"ShantellSansNormal-SemiBold":{fontFamily:"ShantellSansNormal",weight:600,italics:!1},"ShantellSansNormal-SemiBoldItalic":{fontFamily:"ShantellSansNormal",weight:600,italics:!0},"ShantellSansNormal-Bold":{fontFamily:"ShantellSansNormal",weight:700,italics:!1},"ShantellSansNormal-BoldItalic":{fontFamily:"ShantellSansNormal",weight:700,italics:!0},"ShantellSansNormal-MediumItalic":{fontFamily:"ShantellSansNormal",weight:500,italics:!0},"ShantellSansNormal-Medium":{fontFamily:"ShantellSansNormal",weight:500,italics:!1},"ShantellSansNormal-Italic":{fontFamily:"ShantellSansNormal",weight:400,italics:!0},"ShantellSansNormal-Regular":{fontFamily:"ShantellSansNormal",weight:400,italics:!1},"ShantellSansNormal-ExtraBoldItalic":{fontFamily:"ShantellSansNormal",weight:800,italics:!0},"ShantellSansNormal-ExtraBold":{fontFamily:"ShantellSansNormal",weight:800,italics:!1},"ShantellSansNormal-Light":{fontFamily:"ShantellSansNormal",weight:300,italics:!1},"ShantellSansNormal-LightItalic":{fontFamily:"ShantellSansNormal",weight:300,italics:!0},Papyrus:{fontFamily:"Papyrus, fantasy",weight:400,italics:!1}};function u(e,t){let i=d[e]||c;return t?{...i,weight:s[t]}:{...i}}},8814:function(e,t,i){"use strict";i.d(t,{B9:function(){return p},DG:function(){return d},G:function(){return h},Ot:function(){return g},cb:function(){return u}});var n=i(9101),a=i(9731),o=i(3302),r=i(5814),l=i(3409),s=i(1106),c=i(6504);let d={font:"papyrus",fontSize:23,foregroundFill:{type:n.lm.Color,color:{red:255,green:0,blue:0,alpha:1}},characterSpacing:0,lineSpacing:1.2,paragraphSpacing:0};function u(e){return e?"".concat(e,"em"):"inherit"}function p(e){return e?"italic":"normal"}function h(e,t,i,a,d,h,g){let f,m,y,v,b,x;let w={},{font:S,fontSize:k,weight:C,foregroundFill:T,backgroundFill:I,characterSpacing:Z,lineSpacing:B,bulletStyle:P,italics:F,strikethrough:H,textShadow:R,underline:L}=e||{},M=(0,c.XC)(t.font,t.fontWeight),E=(0,c.XC)(S||t.font,C||t.fontWeight);if((S||C)&&(E.fontFamily!==M.fontFamily&&(w.fontFamily=E.fontFamily),E.weight!==M.weight&&(w.fontWeight=E.weight)),k&&(w.fontSize=(0,o.wN)(k)),g&&(w.width="100%",w.textOverflow="ellipsis",w.overflow="hidden"),I){if(I.type===n.lm.Color)m=(0,r.a)(I.color);else if(I.type===n.lm.Gradient){v=(0,l.n)(I.gradient);let e=Math.round(I.gradient.colors.length/2);m=(0,r.a)(I.gradient.colors[e].color)}}if(T){if(T.type===n.lm.Color)y=(0,r.a)(T.color);else if(T.type===n.lm.Gradient){v=(0,l.n)(T.gradient);let e=Math.round(T.gradient.colors.length/2);m=(0,r.a)(T.gradient.colors[e].color),b="text",x="transparent"}}if(b&&(w.backgroundClip=b),m&&(w.backgroundColor=m),v&&(w.backgroundImage=v),y&&(w.color=y),x&&(w.WebkitTextFillColor=x),null!=F&&(w.fontStyle=p(F)),void 0!==(f=void 0!==Z?Z:void 0!==t.characterSpacing?t.characterSpacing:null==h?void 0:h.characterSpacing)&&(w.letterSpacing=u(f)),!i){let e;e=void 0!==B?B:void 0!==t.lineSpacing?t.lineSpacing:null==h?void 0:h.lineSpacing,w.lineHeight="".concat(e,"em")}return a&&(w.marginBottom=(0,o.wN)(a)),d&&(w.marginTop=(0,o.wN)(d)),P&&(w.listStyleType=function(e){if(!e)return"none";switch(e){case n.ku.BulletStyle.number:return"decimal";case n.ku.BulletStyle.round:return"disc";case n.ku.BulletStyle.square:return"square"}}(P)),(L||H)&&(w.textDecorationLine=function(e,t){let i=[];return e&&"none"!==e&&i.push("underline"),t&&"none"!==t&&i.push("line-through"),i.join(" ")||"none"}(L||t.underline,H||t.strikethrough)),null!=R&&(w.textShadow="none"===R?"none":(0,s.I)(R)),w}function g(e){switch(e){case a.xv.Purpose.PrimaryTitle:return"h1";case a.xv.Purpose.SecondaryTitle:return"h2";case a.xv.Purpose.Subtitle:return"h3";case a.xv.Purpose.Paragraph:case a.xv.Purpose.Caption:return"p";default:return"div"}}},5203:function(e,t,i){"use strict";i.d(t,{i:function(){return s},Z:function(){return l}});var n=i(5944),a=i(7294),o=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,i]=(0,a.useState)(e);return{isOn:t,toggle:()=>{i(e=>!e)},turnOn:()=>{i(!0)},turnOff:()=>{i(!1)}}};let r=a.createContext({isEnabled:!1,toggle:()=>{},enable:()=>{},disable:()=>{}});var l=r;let s=e=>{let{children:t}=e,{isOn:i,turnOn:a,turnOff:l,toggle:s}=o(!0);return(0,n.tZ)(r.Provider,{value:{isEnabled:i,toggle:s,enable:a,disable:l},children:t})}},2244:function(e,t,i){"use strict";let{required:n}=i(6809);e.exports={environment:{isProduction:!0,api:{baseUrl:n("https://api.onuniverse.com","NEXT_PUBLIC_UNIVERSE_API_URL")},stripe:{publicKey:n("pk_live_KVHZxoq67yTF12UNfGH35RDm00ZJovO6nz","NEXT_PUBLIC_STRIPE_PUBLIC_KEY")},paypal:{clientId:n("ARvmfaLc38fTvScKobR8rh4zqANqUcuGtCOPlVPQb-2hs4nmCCZEiGulxOpSMY83yWdubxZBYcynM4fn","NEXT_PUBLIC_PAYPAL_CLIENT_ID"),bnCode:n("UNIVERSE_SP_PPCP","NEXT_PUBLIC_PAYPAL_BN_CODE")},getUniverseUrls:{banner:n("https://get.onuniverse.com/UnpQ/e1cbe6e2","NEXT_PUBLIC_GET_UNIVERSE_URL_BANNER"),sticker:n("https://get.onuniverse.com/UnpQ/cd790571","NEXT_PUBLIC_GET_UNIVERSE_URL_STICKER")},mapbox:{accessToken:n("pk.eyJ1IjoicnBvb2xvcyIsImEiOiJjajl5bmEzeTIxYTg4MnFtZDdpcDV2Ymx6In0.5sT_KPvorl3tBr4RIT0j2w","NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN")}}}},2399:function(e,t,i){"use strict";i.d(t,{JD:function(){return s},FP:function(){return c},g1:function(){return d}});var n=i(5944),a=i(7294),o=i(9058);let r=(e,t)=>{if(!t||!e)return[];let i=t.units.find(t=>t.sku===e);return(null==i?void 0:i.options.map(e=>({option_id:e.id,variation_id:e.variation_id})))||[]},l=()=>({lineItems:[]}),s=(0,a.createContext)(null),c=e=>{let{children:t,onInitialize:i,siteID:c}=e,d="universe-cart-site-".concat(c),[u,p]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1),[y,v]=(0,a.useState)([]),[b,x]=(0,a.useState)(1),[w,S]=(0,a.useState)(""),k=e=>v(e),C=e=>x(e),T=e=>S(e),I=()=>{i&&i()},Z=()=>{m(!0),g(!1),setTimeout(()=>{p(!1),m(!1)},600)};!u||h||f||setTimeout(()=>{g(!0)},50);let B=e=>(localStorage.setItem(d,JSON.stringify(e)),e),P=()=>{try{var e;let t=JSON.parse(localStorage.getItem(d)||"");return t&&(null===(e=t.lineItems)||void 0===e?void 0:e.length)&&I(),t||l()}catch(e){return localStorage.removeItem(d),l()}},F=async e=>{I();let t=await fetch("/_api/v4/products/".concat(e,"/details"),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"}}),i=await t.json(),n={id:i.id,requiresAddress:i.requires_address,requiresShipping:i.requires_shipping,requiresPhoneNumber:i.requires_phone_number,allowsNotes:i.allows_notes,notesPrompt:i.notes_prompt,siteId:i.site_id,price:i.price,name:i.name,variants:i.variants};return i.notes_prompt&&(n.notesPrompt=i.notes_prompt),n},H=async e=>{I();let{skus:t}=e;return(await fetch("/_api/v3/product-units/availability",{method:"POST",mode:"same-origin",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({skus:t})})).json()},R=()=>P().lineItems.reduce((e,t)=>e+t.quantity,0),[L,M]=(0,a.useState)(R()),E=()=>{M(R())},N=()=>M(null),A=(e,t)=>{let i=e.lineItems.findIndex(e=>e.UUID===t);if(-1===i)throw Error("Item not found in cart");return i},D=e=>{let t=P(),i=A(t,e);return t.lineItems[i]};return(0,n.tZ)(s.Provider,{value:{addToCart:e=>{let t=P(),i=t.lineItems.find(t=>t.sku===e.sku&&t.notes===e.notes);i?i.quantity+=e.quantity:t.lineItems.push({UUID:(0,o.Z)(),...e});let n=B(t);return E(),n},checkCartForLineItem:e=>!!P().lineItems.find(t=>t.sku===e.sku&&t.notes===e.notes),fetchCart:P,getLineItem:D,updateLineItem:(e,t)=>{let i=P(),n=e.quantity,a=A(i,t),o=a,r=i.lineItems[a],l=i.lineItems.findIndex(t=>t.sku===e.sku&&t.notes===e.notes);l>-1&&l!==a&&(n+=i.lineItems[l].quantity,o=Math.min(a,l),i.lineItems.splice(Math.max(a,l),1));let s={...r,...e,notes:e.notes,quantity:n};i.lineItems[o]=s;let c=B(i);return E(),c},removeLineItem:e=>{let t=P(),i=A(t,e);t.lineItems.splice(i,1);let n=B(t);return E(),n},quantity:L,clearCart:()=>{localStorage.removeItem(d),N(),Z()},openCart:()=>{I(),p(!0)},closeCart:Z,selections:y,updateSelections:k,itemNotes:w,updateItemNotes:T,itemQuantity:b,updateItemQuantity:C,resetLineItemFields:()=>{k([]),C(1),T("")},recallLineItem:(e,t)=>{let i=D(e);C(i.quantity),T(i.notes||""),k(r(i.sku,t.variants))},cartIsOpen:u,cartShouldOpen:h,cartIsClosing:f,getProductInfo:F,checkProductUnitAvailability:H},children:t})},d=()=>(0,a.useContext)(s)},380:function(e,t,i){"use strict";i.d(t,{Pt:function(){return r},QH:function(){return l},lm:function(){return a}});var n,a,o=i(9101);function r(e,t){if("color"===e.type&&"color"===t.type)return(0,o.L5)(e.color,t.color);if("gradient"===e.type&&"gradient"===t.type){var i,n;return i=e.gradient,n=t.gradient,!!((0,o.uA)(i.startPoint,n.startPoint)&&(0,o.uA)(i.endPoint,n.endPoint))&&i.colors.length===n.colors.length&&i.colors.every((e,t)=>{let i=n.colors[t];return(0,o.L5)(e.color,i.color)&&e.location===i.location})}return!1}(n=a||(a={})).Color="color",n.Gradient="gradient";let l=e=>{switch(e.type){case"color":return e.color;case"gradient":return e.gradient.colors[0].color}}},9101:function(e,t,i){"use strict";let n;function a(e){return{horizontal:function(e){var t,i;let n=(null==e?void 0:null===(t=e.left)||void 0===t?void 0:t.flexible)||!1,a=(null==e?void 0:null===(i=e.right)||void 0===i?void 0:i.flexible)||!1;return n&&a?G.Horizontal.Center:n?G.Horizontal.Right:a?G.Horizontal.Left:G.Horizontal.Fill}(e),vertical:function(e){var t,i;let n=(null==e?void 0:null===(t=e.bottom)||void 0===t?void 0:t.flexible)||!1,a=(null==e?void 0:null===(i=e.top)||void 0===i?void 0:i.flexible)||!1;return n&&a?G.Vertical.Center:n?G.Vertical.Top:a?G.Vertical.Bottom:G.Vertical.Fill}(e)}}i.d(t,{aU:function(){return W},v2:function(){return G},ru:function(){return J},Aq:function(){return ee},bt:function(){return eo},OC:function(){return et},lm:function(){return ec.lm},_T:function(){return er},HW:function(){return ea},zd:function(){return el},M$:function(){return $},MO:function(){return Q},N3:function(){return K},H:function(){return Y},ku:function(){return es},JR:function(){return a},O$:function(){return function e(t,i){return t.type===i||"group"===t.type&&t.options.some(t=>e(t,i))}},L5:function(){return l},VL:function(){return c},Pt:function(){return ec.Pt},jn:function(){return s},Uu:function(){return eh},uM:function(){return ep},uA:function(){return ed},QH:function(){return ec.QH},ET:function(){return eu}}),(b=(v=W||(W={})).Trigger||(v.Trigger={})).Appear="appear",b.Hover="hover",b.Tap="tap",(w=(x=v.Effect||(v.Effect={})).EffectType||(x.EffectType={})).AddToCart="addToCart",w.Animate="animate",w.CheckoutPaypal="checkoutPaypal",w.Download="download",w.Lightbox="lightbox",w.LinkToEmail="linkToEmail",w.LinkToPhone="linkToPhone",w.LinkToWeb="linkToWeb",w.LinkToSMS="linkToSMS",w.PreloadDownload="preloadDownload",w.PreloadPayPal="preloadPayPal",w.PreloadProduct="preloadProduct",(k=(S=G||(G={})).Horizontal||(S.Horizontal={})).Center="center",k.Fill="fill",k.Left="left",k.Right="right",(C=S.Vertical||(S.Vertical={})).Bottom="bottom",C.Center="center",C.Fill="fill",C.Top="top",(I=(T=Y||(Y={})).Horizontal||(T.Horizontal={})).Center="center",I.Justified="justified",I.Left="left",I.Right="right",(Z=T.Vertical||(T.Vertical={})).Bottom="bottom",Z.Center="center",Z.Top="top",(B=J||(J={})).Color="color",B.Confetti="confetti",B.Group="group",B.Move="move",B.Ripple="ripple",B.Rotate="rotate",B.Scale="scale",(P=$||($={})).Bounce="bounce",P.Jump="jump",P.Shake="shake",(F=Q||(Q={})).Flip="flip",F.Spin="spin",F.Wiggle="wiggle",(H=K||(K={})).Grow="grow",H.Shrink="shrink",(E=(M=(L=(R=ee||(ee={})).Asset||(R.Asset={})).Data||(L.Data={})).DataType||(M.DataType={})).Fill="fill",E.Image="image",E.Video="video",(A=(N=L.ContentModes||(L.ContentModes={})).ContentModeType||(N.ContentModeType={})).Fill="fill",A.Fit="fit",A.Repeat="repeat",(D=N.RepeatType||(N.RepeatType={})).Repeat="repeat",D.Round="round",D.Space="space",(O=(_=et||(et={})).BorderType||(_.BorderType={})).Color="color",O.Gradient="gradient",O.Image="image",(z=_.ColorStyleType||(_.ColorStyleType={})).Solid="solid",z.Dashed="dashed",(U=_.ImageStyleType||(_.ImageStyleType={})).Round="round",U.Space="space",U.Stretch="stretch",(q=ei||(ei={})).black=Object.freeze({red:0,green:0,blue:0,alpha:1}),q.white=Object.freeze({red:255,green:255,blue:255,alpha:1}),q.lightPurple=Object.freeze({red:205,green:173,blue:252,alpha:1}),q.lightGreen=Object.freeze({red:179,green:245,blue:135,alpha:1}),q.lightPink=Object.freeze({red:255,green:198,blue:220,alpha:1}),q.babyBlue=Object.freeze({red:196,green:251,blue:255,alpha:1}),q.lightBlue=Object.freeze({red:97,green:210,blue:254,alpha:1}),q.lighterGray=Object.freeze({red:213,green:218,blue:222,alpha:1}),q.yellow=Object.freeze({red:253,green:227,blue:5,alpha:1}),q.purpleBlack=Object.freeze({red:37,green:13,blue:71,alpha:1}),q.greenBlack=Object.freeze({red:8,green:58,blue:42,alpha:1}),q.pinkBlack=Object.freeze({red:58,green:13,blue:68,alpha:1}),q.blueGreenBlack=Object.freeze({red:10,green:54,blue:78,alpha:1}),q.grayBlack=Object.freeze({red:87,green:89,blue:92,alpha:1}),q.yellowBlack=Object.freeze({red:42,green:35,blue:3,alpha:1});let o={[r(ei.lightPurple)]:ei.purpleBlack,[r(ei.lightGreen)]:ei.greenBlack,[r(ei.lightPink)]:ei.pinkBlack,[r(ei.lightBlue)]:ei.blueGreenBlack,[r(ei.babyBlue)]:ei.blueGreenBlack,[r(ei.lighterGray)]:ei.grayBlack,[r(ei.yellow)]:ei.yellowBlack};function r(e){let t=Math.round(255*e.alpha);return[e.red,e.green,e.blue,t].map(e=>e.toString(16).padStart(2,"0")).join("")}function l(e,t){return r(e)===r(t)}function s(e){let t=e.red/255*299;return(t+e.green/255*587+e.blue/255*114)/1e3<.8}function c(e){return!e||l(e,ei.white)?ei.black:0===e.alpha||l(e,ei.black)?ei.white:o[r(e)]||(s(e)?ei.white:ei.black)}(j=en||(en={})).AspectFill="aspectFill",j.AspectFit="aspectFit",(V=(X=ea||(ea={})).CornerDataType||(X.CornerDataType={})).Percent="percent",V.Point="point",V.Rounded="rounded";var d,u,p,h,g,f,m,y,v,b,x,w,S,k,C,T,I,Z,B,P,F,H,R,L,M,E,N,A,D,_,O,z,U,q,j,X,V,W,G,Y,J,$,Q,K,ee,et,ei,en,ea,eo,er,el,es,ec=i(380);function ed(e,t){return e.x===t.x&&e.y===t.y}function eu(e,t){return l(e.color,t.color)&&ed(e.offset,t.offset)&&e.radius===t.radius}function ep(e){var t,i;if(!e)return null;let n=(null===(t=e.top)||void 0===t?void 0:t.flexible)==!0,a=(null===(i=e.bottom)||void 0===i?void 0:i.flexible)==!0;return n&&a?Y.Vertical.Center:n?Y.Vertical.Bottom:a?Y.Vertical.Top:null}function eh(e,t){var i,n,a,o,r,l,s,c,d,u,p,h,g,f,m,y,v,b;switch(t){case Y.Vertical.Bottom:return{bottom:{value:null==e?void 0:null===(i=e.bottom)||void 0===i?void 0:i.value},left:{value:null==e?void 0:null===(n=e.left)||void 0===n?void 0:n.value,flexible:null==e?void 0:null===(a=e.left)||void 0===a?void 0:a.flexible},right:{value:null==e?void 0:null===(o=e.right)||void 0===o?void 0:o.value,flexible:null==e?void 0:null===(r=e.right)||void 0===r?void 0:r.flexible},top:{value:null==e?void 0:null===(l=e.top)||void 0===l?void 0:l.value,flexible:!0}};case Y.Vertical.Center:return{bottom:{value:null==e?void 0:null===(s=e.bottom)||void 0===s?void 0:s.value,flexible:!0},left:{value:null==e?void 0:null===(c=e.left)||void 0===c?void 0:c.value,flexible:null==e?void 0:null===(d=e.left)||void 0===d?void 0:d.flexible},right:{value:null==e?void 0:null===(u=e.right)||void 0===u?void 0:u.value,flexible:null==e?void 0:null===(p=e.right)||void 0===p?void 0:p.flexible},top:{value:null==e?void 0:null===(h=e.top)||void 0===h?void 0:h.value,flexible:!0}};case Y.Vertical.Top:return{bottom:{value:null==e?void 0:null===(g=e.bottom)||void 0===g?void 0:g.value,flexible:!0},left:{value:null==e?void 0:null===(f=e.left)||void 0===f?void 0:f.value,flexible:null==e?void 0:null===(m=e.left)||void 0===m?void 0:m.flexible},right:{value:null==e?void 0:null===(y=e.right)||void 0===y?void 0:y.value,flexible:null==e?void 0:null===(v=e.right)||void 0===v?void 0:v.flexible},top:{value:null==e?void 0:null===(b=e.top)||void 0===b?void 0:b.value}}}}(d=eo||(eo={})).Normal="normal",d.Multiply="multiply",d.Screen="screen",d.Overlay="overlay",d.Darken="darken",d.Lighten="lighten",d.ColorDodge="colorDodge",d.ColorBurn="colorBurn",d.HardLight="hardLight",d.SoftLight="softLight",d.Difference="difference",d.Exclusion="exclusion",d.Hue="hue",d.Saturation="saturation",d.Color="color",d.Luminosity="luminosity",(u=er||(er={})).Blur="blur",u.Brightness="brightness",u.Contrast="contrast",u.Grayscale="grayscale",u.HueRotate="hueRotate",u.Invert="invert",u.Opacity="opacity",u.Saturate="saturate",u.Sepia="sepia",(h=(p=el||(el={})).MaskType||(p.MaskType={})).Circle="circle",h.Path="path",h.Pill="pill",h.RoundedRect="roundedRect",h.Url="url",g=es||(es={}),(n||(n={})).href="href",(f=g.FontWeight||(g.FontWeight={})).ultraLight="ultraLight",f.thin="thin",f.light="light",f.regular="regular",f.medium="medium",f.semibold="semibold",f.bold="bold",f.heavy="heavy",f.black="black",(m=g.LineType||(g.LineType={})).none="none",m.single="single",m.double="double",(y=g.BulletStyle||(g.BulletStyle={})).square="square",y.round="round",y.number="number"},9731:function(e,t,i){"use strict";var n,a,o,r,l,s,c,d,u,p,h,g;i.d(t,{D5:function(){return n},xv:function(){return r}}),(s=(l=n||(n={})).MapType||(l.MapType={})).alphaDark="alphaDark",s.alphaLight="alphaLight",s.blue="blue",s.chalk="chalk",s.dayglo="dayglo",s.dusty="dusty",s.green="green",s.neon="neon",s.orange="orange",s.purple="purple",s.red="red",s.rgb="rgb",s.roy="roy",s.satellite="satellite",s.system="system",s.tactical="tactical",s.yellow="yellow",(d=(c=a||(a={})).PaymentPlatform||(c.PaymentPlatform={})).paypal="paypal",d.squareCash="squareCash",(p=(u=o||(o={})).LayoutName||(u.LayoutName={})).grid="grid",p.columns="columns",p.rows="rows",p.carousel="carousel",p.thumbnails="thumbnails",p.stacks="stacks",(g=(h=r||(r={})).Purpose||(h.Purpose={})).PrimaryTitle="primaryTitle",g.SecondaryTitle="secondaryTitle",g.Subtitle="subtitle",g.Paragraph="paragraph",g.Caption="caption"},1031:function(e,t,i){"use strict";var n,a,o,r;i.d(t,{J:function(){return n}}),(o=(a=n||(n={})).GutterType||(a.GutterType={})).MaxWidth="maxWidth",o.Percent="percent",a.noGutters={type:"percent",left:0,right:0},(r=a.OverflowType||(a.OverflowType={})).Crop="crop",r.Scroll="scroll"},5903:function(e,t,i){"use strict";var n,a,o,r,l,s;i.d(t,{gO:function(){return n}}),(r=(o=n||(n={})).ContentHeightType||(o.ContentHeightType={})).AspectRatio="aspectRatio",r.Auto="auto",r.Constant="constant",i(1031),(s=(l=a||(a={})).ScaleAspect||(l.ScaleAspect={})).fill="fill",s.fit="fit",s.scroll="scroll"},7e3:function(e,t,i){"use strict";function n(e){let{position:t,gridHeight:i,gridWidth:n}=e,a=t.y/i*100;return i/n*100*a/100<=200}function a(e){if(e.fullSizeImageUrl)return e.fullSizeImageUrl;if(e.variations){let t=e.variations.default.reduce((e,t)=>e&&e.width>t.width?e:t,null);if(t)return t.url}return e.imageUrl}i.d(t,{$:function(){return a},r:function(){return n}})},6809:function(e){"use strict";let t=[],i=[];e.exports={required:(e,i)=>e||(t.push(i),""),requiredNumber:(e,n)=>{if(!e)return t.push(n),-1;let a=Number(e);return isNaN(a)?(i.push('Value "'.concat(e," for key ").concat(n,' is not a valid number"')),-1):a},assertValidConfiguration:()=>{if(t.length>0){let e=Array.from(new Set(t).values());i.push("Missing ENVS: ".concat(e.join(", ")))}if(i.length>0)throw Error(i.join("\n"))}}},1474:function(e,t,i){"use strict";function n(e,t){return Number(e.toFixed(t))}i.d(t,{Z:function(){return n}})},2257:function(e,t,i){"use strict";i.d(t,{$d:function(){return o},MF:function(){return n},z$:function(){return a}});let n={left:"flex-start",center:"center",right:"flex-end"},a={WIDTH:220,MEDIA_QUERY:"min-width: 1100px"},o={MAX_WIDTH_MOBILE:428,GRID_MAX_WIDTH:750}},3302:function(e,t,i){"use strict";i.d(t,{Ls:function(){return a},TC:function(){return r},Zo:function(){return o},wN:function(){return l}});var n=i(1474);let a=375,o=750,r=e=>"calc(var(--scale-factor) * ".concat((0,n.Z)(e,2),")"),l=e=>"calc(var(--text-scale-factor) * ".concat((0,n.Z)(e,2),")")},9984:function(){},3563:function(){},736:function(){},9691:function(){},4403:function(){},7983:function(){},878:function(){},1990:function(){},2698:function(){},5912:function(){}}]);