function e(e){return t(e).map((e=>e instanceof Error?e:new n(`[${typeof e}] ${function(e){if("string"!=typeof e)try{return JSON.stringify(e)}catch{}return`${e}`}(e).slice(0,10240)}`)))}function t(e,n=0){return n>=20?[e,"Truncated cause stack"]:e instanceof Error&&"cause"in e?[e,...t(e.cause,n+1)]:[e]}var n=class extends Error{name="BugsnagInvalidError"},o=/^\s*at .*(\S+:\d+|\(native\))/m,i=/^(eval@)?(\[native code])?$/;function r(e){return e.stack?e.stack.match(o)?function(e){return e.stack.split("\n").filter((e=>!!e.match(o))).map((e=>{let t=e.replace(/^\s+/,"").replace(/^.*?\s+/,""),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],""):t;let o=s(n?n[1]:t);return{method:n&&t||void 0,file:["eval",""].indexOf(o[0])>-1?void 0:o[0],lineNumber:o[1],columnNumber:o[2]}}))}(e):function(e){return e.stack.split("\n").filter((e=>!e.match(i))).map((e=>{if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{method:e};let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),o=n&&n[1]?n[1]:void 0,i=s(e.replace(t,""));return{method:o,file:i[0],lineNumber:i[1],columnNumber:i[2]}}))}(e):[]}function s(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]?Number(t[2]):void 0,t[3]?Number(t[3]):void 0]}var a,l=class{breadcrumbs=[];apiKey;plugins;appId;appType;appVersion;releaseStage;locale;userAgent;metadata;persistedMetadata;onError;onPostErrorListeners=[];constructor(e){this.apiKey=e.apiKey,this.appType=e.appType,this.appId=e.appId,this.appVersion=e.appVersion,this.releaseStage=e.releaseStage,this.locale=e.locale,this.userAgent=e.userAgent,this.metadata=e.metadata,this.onError=e.onError,this.persistedMetadata={},this.plugins=e.plugins??[],this.plugins.forEach((e=>e.load(this))),this.leaveBreadcrumb("Bugsnag started",void 0,"state")}addMetadata(e){for(let t of Object.keys(e))this.persistedMetadata[t]=e[t]}leaveBreadcrumb(e,t,n="manual"){this.breadcrumbs.push({name:e,metaData:t,type:n,timestamp:(new Date).toISOString()})}notify(t,{errorClass:n,severity:o,severityType:i,handled:r=!0,metadata:s,context:a}={}){let l=e(t),c={...this.metadata,...this.persistedMetadata,...s},d=this.buildBugsnagEvent(l,{errorClass:n,severityType:i,handled:r,severity:o,metadata:c,context:a});if((this.onError?.(d)??1)&&"development"!==this.releaseStage){let e=this.sendToBugsnag(d);return this.onPostErrorListeners.forEach((e=>e(d))),e}return Promise.resolve()}addOnPostError(e){this.onPostErrorListeners.push(e)}buildBugsnagEvent(e,{errorClass:t,severity:n="error",severityType:o="handledException",handled:i,metadata:r={},context:s}){let a=(new Date).toISOString(),{breadcrumbs:l,appId:d,appType:u,appVersion:p,releaseStage:h,locale:f,userAgent:m}=this;return{payloadVersion:"5",exceptions:e.map(((e,n)=>({errorClass:0===n?t??e.name:e.name,stacktrace:c(d,e),message:e.message}))),severity:n,severityReason:{type:o},unhandled:!i,app:{id:d,type:u,version:p,releaseStage:h},device:{time:a,locale:f,userAgent:m},breadcrumbs:l,context:s,metaData:r}}async sendToBugsnag(e){let{apiKey:t}=this,n={apiKey:t,notifier:{name:"Bugsnag JavaScript",version:"7.22.2",url:"https://github.com/bugsnag/bugsnag-js"},events:[e]};try{await fetch("https://notify.bugsnag.com/",{method:"POST",headers:{"Content-Type":"application/json","Bugsnag-Api-Key":t,"Bugsnag-Payload-Version":"5","Bugsnag-Sent-At":e.device.time},body:JSON.stringify(n)})}catch(e){console.warn("[bugsnag-light] failed to send an event"),console.warn(e)}}};function c(e,t){return r(t).map((t=>{let n=t.file?.includes(e);return{method:t.method??"",file:t.file??"",lineNumber:t.lineNumber??0,columnNumber:t.columnNumber,inProject:n}}))}!function(e){e.Default="loginWithShop",e.CheckoutModal="loginWithShopCheckoutModal",e.ClassicCustomerAccounts="loginWithShopClassicCustomerAccounts",e.Prequal="loginWithShopPrequal",e.Web="loginWithShopShopWeb",e.SelfServe="loginWithShopSelfServe",e.CheckoutExtension="loginWithShopCheckoutExtension",e.PaymentRequest="loginWithShopPaymentRequest"}(a||(a={}));const d={[a.Default]:"default",[a.SelfServe]:"self_serve_customer_accounts",[a.ClassicCustomerAccounts]:"classic_customer_accounts",[a.Prequal]:"shop_pay_installments_prequal",[a.PaymentRequest]:"payment_request",[a.CheckoutExtension]:"default",[a.CheckoutModal]:"checkout_modal",[a.Web]:""},u="shop-login-default",p=`${u}-iframe`,h=`${u}-iframe-compact`,f=`${u}-header`,m=`${f}-contents-container`,g=`${f}-title`,y=`${f}-description`,b=`${f}-divider`,v=`${u}-footer`,_=`${v}-content`,w=`${u}-hidden`,C="20px",x=(e="")=>`\n`,E=`\n \n`,S=[a.CheckoutModal,a.ClassicCustomerAccounts,a.Web,a.SelfServe];function T(e){return!!e&&S.includes(e)}var k="e35d7136cee78d344ccffdbd5ca710fa";const A="1.0.31",L="form[data-login-with-shop-sign-in]",O="form[data-login-with-shop-sign-up]",I='input[name="customer[email]"',N='input[name="customer[first_name]"',M='input[name="customer[last_name]"',P=`${L} input[type="email"],${L} ${I}`,R=`${O} input[type="email"],${O} ${I}`,D="2147483647",$="spin",H="production";function U(){return H}function F(e,t){e.metaData=Object.assign(Object.assign({},e.metaData),t)}function B(e){!function(e){F(e,{shopJsUrls:Array.from(document.querySelectorAll('script[src*="/shop-js/"]')).map((e=>e.src))})}(e),function(e){var t,n;const o=null===(n=null===(t=window.Shopify)||void 0===t?void 0:t.featureAssets)||void 0===n?void 0:n["shop-js"];F(e,{shopJsFeatureAssetsExist:Boolean(o&&Object.keys(o).length>0)})}(e),function(e){const t=Array.from(document.querySelectorAll("shop-login-button[compact]"));t.filter((e=>T(e.getAttribute("analytics-context")))),F(e,{compactUX:t.length>0})}(e),function(e){var t;F(e,{domain:null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.hostname})}(e),function(e){const t=`${e.exceptions[0].errorClass}:${e.exceptions[0].message}`;e.groupingHash=t}(e),function(e){e.request={url:window.location.href}}(e),function(e){var t,n;const o=(new Date).toISOString();e.device={locale:navigator.userLanguage||navigator.language,userAgent:navigator.userAgent,orientation:null===(n=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===n?void 0:n.type,time:o}}(e)}function W(e){window&&window.addEventListener("error",(t=>{const{error:n}=t;n&&function(e){var t,n;const o=r(e);return 0!==o.length&&!(null===(t=e.message)||void 0===t?void 0:t.includes("Backpressure applied"))&&!(null===(n=e.message)||void 0===n?void 0:n.includes("A network failure may have prevented the request from completing"))&&o.some((e=>{var t;return null===(t=e.file)||void 0===t?void 0:t.includes("shopifycloud/shop-js")}))}(n)&&e.notify(n)}))}let j;const V={start:({metadata:e})=>{j?console.log("Bugsnag.start() has already been called. Ignoring."):(j=new l(function(e){return{apiKey:k,appId:"shop-js",appVersion:A,metadata:Object.assign({bundleLocale:"es"},e),onError:B,releaseStage:U()}}(e)),W(j))},leaveBreadcrumb:(e,t,n)=>{j?U()!==$?j.leaveBreadcrumb(e,t,n):console.log("[Bugsnag leaveBreadcrumb called]",e,t,n):console.log("Bugsnag.leaveBreadcrumb() called before start().")},notify:(e,t)=>{j?U()!==$?j.notify(e,t):console.log("[Bugsnag notify called]",e):console.log("Bugsnag.notify() called before start().")}};function z(){return Boolean(window.customElements)}function q(e,t){var n;if(!window.customElements)return;customElements.get(e)||(null===(n=Reflect.defineProperty)||void 0===n||n.call(Reflect,t,"componentVersion",{value:"vanilla"}),customElements.define(e,t))}function G(e={}){V.start({metadata:e})}function K(){window.Shopify||(window.Shopify={}),window.Shopify.SignInWithShop||(window.Shopify.SignInWithShop={})}function Z(e,t){K(),window.Shopify.SignInWithShop[e]=t}function Y(e){var t,n;return Boolean(null===(n=null===(t=window.Shopify)||void 0===t?void 0:t.SignInWithShop)||void 0===n?void 0:n[`${e}Called`])}function X(e){K(),window.Shopify.SignInWithShop[`${e}Called`]=!0}function J(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);ie.toString(16))).join("")}function ue(e,t=!0){return e&&Object.keys(e).length&&t?Object.keys(e).map((t=>({[pe(t)]:e[t]}))).reduce(((e,t)=>re(re({},e),t))):e}function pe(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}function he(e){return e.events.map((e=>{let t=!0,n=!0;return e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(t=Boolean(e.options.convertEventCase)),e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertMetaDataCase")&&(n=Boolean(e.options.convertMetaDataCase)),{schema_id:e.schemaId,payload:ue(e.payload,t),metadata:ue(e.metadata,n)}}))}class fe extends Error{constructor(e){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(e)}`),this.response=e,Object.setPrototypeOf(this,fe.prototype)}}class me extends Error{constructor(e){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(e)}`),Object.setPrototypeOf(this,me.prototype),this.response=e}}class ge extends Error{constructor(e){super(`Error completing request. A network failure may have prevented the request from completing. Error: ${e}`),Object.setPrototypeOf(this,ge.prototype)}}class ye{static withEndpoint(e){return new ye(`https://${new URL(e).hostname}`)}constructor(e=se,t=!1){this.edgeDomain=e,this.keepalive=t}async produceBatch(e){const t={events:he(e),metadata:ue(e.metadata)};let n;try{n=await fetch(this.produceBatchEndpoint(),{method:"post",headers:be(e.metadata),body:JSON.stringify(t),keepalive:this.keepalive})}catch(e){throw new ge(e)}if(207===n.status){const e=await n.json();throw new me(e)}if(!n.ok)throw new fe({status:n.status,message:await n.text()});return{status:n.status}}async produce(e){let t,n=!0;e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(n=Boolean(e.options.convertEventCase));try{t=await async function({endpoint:e,event:t,keepalive:n}){return fetch(null!=e?e:ae+le,{method:"post",headers:be(t.metadata),body:JSON.stringify({schema_id:t.schemaId,payload:t.payload}),keepalive:n})}({endpoint:this.produceEndpoint(),keepalive:this.keepalive,event:re(re({},e),{},{payload:ue(e.payload,n)})})}catch(e){throw new ge(e)}if(!t)throw new fe({message:"No response from edge"});if(!t.ok)throw new fe({status:t.status,message:await t.text()});return{status:t.status}}produceBatchEndpoint(){return this.edgeDomain+"/unstable/produce_batch"}produceEndpoint(){return this.edgeDomain+le}}function be(e){const t={"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":(e&&e.eventCreatedAtMs||Date.now()).toString(),"X-Monorail-Edge-Event-Sent-At-Ms":Date.now().toString(),"X-Monorail-Edge-Client-Message-Id":(e&&e.clientMessageId||de()).toString()};return e&&e.userAgent&&(t["User-Agent"]=e.userAgent),e&&e.remoteIp&&(t["X-Forwarded-For"]=e.remoteIp),t}class ve{static printWelcomeMessage(e){console.log(`%c👋 from Monorail%c\n\nWe've noticed that you're${e?"":" not"} running in debug mode. As such, we will ${e?"produce":"not produce"} Monorail events to the console. \n\nIf you want Monorail events to ${e?"stop":"start"} appearing here, %cset debugMode=${(!e).toString()}%c, for the Monorail Log Producer in your code.`,"font-size: large;","font-size: normal;","font-weight: bold;","font-weight: normal;")}constructor(e){this.sendToConsole=e,e&&ve.printWelcomeMessage(e)}produce(e){return this.sendToConsole&&console.log("Monorail event produced",e),new Promise((t=>{t(e)}))}produceBatch(e){return this.sendToConsole&&console.log("Monorail Batch event produced",e),new Promise((t=>{t(e)}))}}class _e{static createLogProducer(e){return new _e(new ve(e.debugMode),e.middleware||[])}static createHttpProducerWithEndpoint(e,t=[]){return new _e(ye.withEndpoint(e),t)}static createHttpProducer(e){const t=e.options&&e.options.keepalive;return new _e(e.production?new ye(ae,t):new ye(se,t),e.middleware||[])}static buildMiddlewareChain(e,t=0){return t===e.length?this.identityFn:n=>e[t].do(n,this.buildMiddlewareChain(e,t+1))}constructor(e,t){this.producer=e,this.middleware=t,this.executeChain=_e.buildMiddlewareChain(this.middleware.concat(new ce(e)))}produce(e){return e.metadata=re({eventCreatedAtMs:Date.now(),clientMessageId:de()},e.metadata),this.executeChain(e)}produceBatch(e){return this.executeChain(e)}}var we,Ce,xe;!function(e){e.Histogram="Histogram",e.Counter="Counter",e.UpDownCounter="UpDownCounter"}(we||(we={})),function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(Ce||(Ce={})),function(e){e.InvalidStorefrontOrigin="shop_js_invalid_storefront_origin",e.RequestShowCalledBeforeIframeLoaded="shop_js_request_show_called_before_iframe_loaded",e.HandleSilentError="shop_js_handle_silent_error",e.MonorailProducerError="shop_js_monorail_producer_error"}(xe||(xe={}));const Ee={serviceName:"shop-js",throttleLimit:1e3,prefixMetric:!1,metrics:{[xe.InvalidStorefrontOrigin]:{type:we.Counter,description:"Number of times the storefront origin is invalid",valueType:Ce.INT},[xe.RequestShowCalledBeforeIframeLoaded]:{type:we.Counter,description:"Number of times requestShow is called before iframe is loaded",valueType:Ce.INT},[xe.HandleSilentError]:{type:we.Counter,description:"Number of times silent errors are handled",valueType:Ce.INT},[xe.MonorailProducerError]:{type:we.Counter,description:"Number of times Monorail Producer failed to send event",valueType:Ce.INT}},env:"production"};let Se,Te=3;const ke=(e=!1)=>(Se&&!e||(Se=new Promise(((e,t)=>{import("./chunk.index_Cszh_0Rj.esm.js").then((t=>{const n=new(0,t.DefaultOtelService)(Ee);e(n)})).catch((e=>{t(e)}))}))),Se),Ae=()=>Q(void 0,void 0,void 0,(function*(){try{return yield ke(!0)}catch(e){if(Te--,Te>0)return Ae();throw e}})),Le=(e,t,n)=>{Ae().then((o=>{o.record(e,t,n)})).catch((e=>{V.notify(e)}))};function Oe(e){try{const t=new RegExp(`(${e})=([^;]+)`).exec(document.cookie);return t?t[2]:null}catch(e){return null}}function Ie(e=window.location.origin,t){const n=`${e}/services/login_with_shop/finalize`;return fetch(n).catch(t)}function Ne(e){const t=e?"sessionStorage":"localStorage";try{const e=window[t],n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(e){return!1}}function Me(e,t,{session:n}={}){if(!Ne(n))return!1;return window[n?"sessionStorage":"localStorage"].setItem(e,t),!0}function Pe(e,{session:t}={}){if(!Ne(t))return null;return window[t?"sessionStorage":"localStorage"].getItem(e)}const Re=[];for(let e=0;e<256;++e)Re.push((e+256).toString(16).slice(1));let De;const $e=new Uint8Array(16);function He(){if(!De){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");De=crypto.getRandomValues.bind(crypto)}return De($e)}var Ue={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fe(e,t,n){if(Ue.randomUUID&&!t&&!e)return Ue.randomUUID();const o=(e=e||{}).random||(e.rng||He)();return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(e,t=0){return(Re[e[t+0]]+Re[e[t+1]]+Re[e[t+2]]+Re[e[t+3]]+"-"+Re[e[t+4]]+Re[e[t+5]]+"-"+Re[e[t+6]]+Re[e[t+7]]+"-"+Re[e[t+8]]+Re[e[t+9]]+"-"+Re[e[t+10]]+Re[e[t+11]]+Re[e[t+12]]+Re[e[t+13]]+Re[e[t+14]]+Re[e[t+15]]).toLowerCase()}(o)}const Be=()=>({width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight});function We({url:e,width:t,height:n,windowName:o,onClose:i}){const r={left:void 0===window.screenLeft?window.screenX:window.screenLeft,top:void 0===window.screenTop?window.screenY:window.screenTop},s=Be(),a=s.width||screen.width,l=s.height||screen.height,c=screen.width&&window.screen.availWidth?screen.width/window.screen.availWidth:1,d=(a-t)/2/c+r.left,u=(l-n)/2/c+r.top,p=window.open(e,o,`scrollbars=yes,width=${t},height=${n},top=${u},left=${d}`);if(!p)return null;if(p.focus(),i){const e=setInterval((()=>{p.closed&&(i(),clearInterval(e))}),1e3)}return p}function je(e,t,n,o){(o||e.getAttribute(t)!==n)&&!0!==e[t]&&e.setAttribute(t,n)}function Ve(e,t,n){const o=n.includes(t);e&&!o?n.push(t):!e&&o&&n.splice(n.indexOf(t),1)}function ze(e,t,n){if(!n&&e.src===t)return;const o=e.parentNode;o&&(o.removeChild(e),e.setAttribute("src",t),o.appendChild(e))}function qe(){return Fe()}function Ge(){return Q(this,arguments,void 0,(function*(e=location.origin){const t=fetch(`${e}/meta.json`);try{const e=yield t;return yield e.json()}catch(e){return null}}))}function Ke(e){try{return new URL(e).hostname}catch(t){return console.error(`[Shop Pay] Store URL (${e}) is not valid`,t),null}}function Ze(e){return new URLSearchParams(window.location.search).get(e)}function Ye(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout((()=>{e(...o)}),t)}}function Xe(e){return"/"===e?e:e.endsWith("/")?e.slice(0,-1):e}function Je(){return Boolean(navigator.userAgent)&&/(android|iphone|ipad|mobile|phone)/i.test(navigator.userAgent)}function Qe(){if(!function(){const e=window.navigator.userAgent,t=Boolean(e.match(/iPad/i))||Boolean(e.match(/iPhone/i)),n=Boolean(e.match(/WebKit/i));return t&&n&&!e.match(/CriOS/i)}())return;const e="shop-pay-safari-unzoom",t=document.getElementById(e);if(t)return t.focus();const n=document.createElement("input");n.id=e,n.style.fontSize="16px",n.style.width="1px",n.style.height="1px",n.style.position="fixed",n.style.bottom="-1000px",n.style.right="-1000px",n.style.transform="translate(1000px, 1000px)",n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n.focus({preventScroll:!0})}function et(e){return null===e||""===e.trim()}function tt(e,t){let n;const o=new Promise((e=>{n=setTimeout((()=>{e()}),t)}));return Promise.race([e,o]).finally((()=>{clearTimeout(n)}))}function nt(){var e;const t=null===(e=document.querySelector("script#shop-js-features"))||void 0===e?void 0:e.innerHTML;return t?JSON.parse(t):{}}function ot(){var e;const t=null===(e=document.querySelector("script#shop-js-analytics"))||void 0===e?void 0:e.innerHTML;return t?JSON.parse(t):{}}const it=/^[^@]+@[^@]+\.[^@]{2,}$/i;function rt(e){return!!e&&RegExp(it).test(e)}function st({selector:e,onElementFound:t}){const n=new WeakSet,o=new MutationObserver((e=>{let t=!1;for(const n of e)if(n.addedNodes.length>0){t=!0;break}t&&i()}));function i(){document.querySelectorAll(e).forEach((e=>{n.has(e)||(t(e),n.add(e))}))}return function(){Q(this,void 0,void 0,(function*(){yield function(){if(document.body)return Promise.resolve();return new Promise((e=>{window.addEventListener("DOMContentLoaded",(()=>e()))}))}(),i(),o.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}))}(),o}function at({onVisible:e,onFallback:t}){const n=new IntersectionObserver((i=>{for(const r of i){const{target:i,isIntersecting:s}=r;s&&(o(i)?e(i):t(i),n.unobserve(i))}}),{threshold:1});function o(e){let t=e;for(;t;){if(!["","1"].includes(getComputedStyle(t).opacity))return!1;t=t.parentElement}return!0}return n}function lt(e,t=!0){const n=Boolean(e);return!n&&t&&V.notify(new Error("HTML Element was not provided")),n}function ct(e,t,n){const o=n.querySelector(`#${t}`),i=null==o?void 0:o.parentElement,r=null!=i?i:document.createElement("div");r.innerHTML=e,r.style.display="none","innerHTML"in n&&(n.innerHTML=""),n.prepend(r);const s=n.querySelector(`#${t}`).content;n.appendChild(s.cloneNode(!0))}const dt=Math.min,ut=Math.max,pt=Math.round,ht=Math.floor,ft=e=>({x:e,y:e}),mt={left:"right",right:"left",bottom:"top",top:"bottom"},gt={start:"end",end:"start"};function yt(e,t,n){return ut(e,dt(t,n))}function bt(e,t){return"function"==typeof e?e(t):e}function vt(e){return e.split("-")[0]}function _t(e){return e.split("-")[1]}function wt(e){return"x"===e?"y":"x"}function Ct(e){return"y"===e?"height":"width"}function xt(e){return["top","bottom"].includes(vt(e))?"y":"x"}function Et(e){return wt(xt(e))}function St(e){return e.replace(/start|end/g,(e=>gt[e]))}function Tt(e){return e.replace(/left|right|bottom|top/g,(e=>mt[e]))}function kt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function At(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function Lt(e,t,n){let{reference:o,floating:i}=e;const r=xt(t),s=Et(t),a=Ct(s),l=vt(t),c="y"===r,d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(_t(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1)}return h}async function Ot(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=bt(t,e),f=kt(h),m=a[p?"floating"===u?"reference":"floating":u],g=At(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),v=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},_=At(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-_.top+f.top)/v.y,bottom:(_.bottom-g.bottom+f.bottom)/v.y,left:(g.left-_.left+f.left)/v.x,right:(_.right-g.right+f.right)/v.x}}function It(){return"undefined"!=typeof window}function Nt(e){return Rt(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pt(e){var t;return null==(t=(Rt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Rt(e){return!!It()&&(e instanceof Node||e instanceof Mt(e).Node)}function Dt(e){return!!It()&&(e instanceof Element||e instanceof Mt(e).Element)}function $t(e){return!!It()&&(e instanceof HTMLElement||e instanceof Mt(e).HTMLElement)}function Ht(e){return!(!It()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot)}function Ut(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Ft(e){return["table","td","th"].includes(Nt(e))}function Bt(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Wt(e){const t=jt(),n=Dt(e)?zt(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function jt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vt(e){return["html","body","#document"].includes(Nt(e))}function zt(e){return Mt(e).getComputedStyle(e)}function qt(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if("html"===Nt(e))return e;const t=e.assignedSlot||e.parentNode||Ht(e)&&e.host||Pt(e);return Ht(t)?t.host:t}function Kt(e){const t=Gt(e);return Vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&Ut(t)?t:Kt(t)}function Zt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Kt(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),s=Mt(i);if(r){const e=Yt(s);return t.concat(s,s.visualViewport||[],Ut(i)?i:[],e&&n?Zt(e):[])}return t.concat(i,Zt(i,[],n))}function Yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xt(e){const t=zt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=$t(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=pt(n)!==r||pt(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Jt(e){return Dt(e)?e:e.contextElement}function Qt(e){const t=Jt(e);if(!$t(t))return ft(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Xt(t);let s=(r?pt(n.width):n.width)/o,a=(r?pt(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const en=ft(0);function tn(e){const t=Mt(e);return jt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function nn(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),r=Jt(e);let s=ft(1);t&&(o?Dt(o)&&(s=Qt(o)):s=Qt(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Mt(e))&&t}(r,n,o)?tn(r):ft(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const e=Mt(r),t=o&&Dt(o)?Mt(o):o;let n=e,i=Yt(n);for(;i&&o&&t!==n;){const e=Qt(i),t=i.getBoundingClientRect(),o=zt(i),r=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=s,n=Mt(i),i=Yt(n)}}return At({width:d,height:u,x:l,y:c})}function on(e,t){const n=qt(e).scrollLeft;return t?t.left+n:nn(Pt(e)).left+n}function rn(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Mt(e),o=Pt(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;const e=jt();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=Pt(e),n=qt(e),o=e.ownerDocument.body,i=ut(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=ut(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+on(e);const a=-n.scrollTop;return"rtl"===zt(o).direction&&(s+=ut(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}(Pt(e));else if(Dt(t))o=function(e,t){const n=nn(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=$t(e)?Qt(e):ft(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:i*r.x,y:o*r.y}}(t,n);else{const n=tn(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return At(o)}function sn(e,t){const n=Gt(e);return!(n===t||!Dt(n)||Vt(n))&&("fixed"===zt(n).position||sn(n,t))}function an(e,t,n){const o=$t(t),i=Pt(t),r="fixed"===n,s=nn(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=ft(0);if(o||!o&&!r)if(("body"!==Nt(t)||Ut(i))&&(a=qt(t)),o){const e=nn(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=on(i));let c=0,d=0;if(i&&!o&&!r){const e=i.getBoundingClientRect();d=e.top+a.scrollTop,c=e.left+a.scrollLeft-on(i,e)}return{x:s.left+a.scrollLeft-l.x-c,y:s.top+a.scrollTop-l.y-d,width:s.width,height:s.height}}function ln(e){return"static"===zt(e).position}function cn(e,t){if(!$t(e)||"fixed"===zt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Pt(e)===n&&(n=n.ownerDocument.body),n}function dn(e,t){const n=Mt(e);if(Bt(e))return n;if(!$t(e)){let t=Gt(e);for(;t&&!Vt(t);){if(Dt(t)&&!ln(t))return t;t=Gt(t)}return n}let o=cn(e,t);for(;o&&Ft(o)&&ln(o);)o=cn(o,t);return o&&Vt(o)&&ln(o)&&!Wt(o)?n:o||function(e){let t=Gt(e);for(;$t(t)&&!Vt(t);){if(Wt(t))return t;if(Bt(t))return null;t=Gt(t)}return null}(e)||n}const un={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r="fixed"===i,s=Pt(o),a=!!t&&Bt(t.floating);if(o===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},c=ft(1);const d=ft(0),u=$t(o);if((u||!u&&!r)&&(("body"!==Nt(o)||Ut(s))&&(l=qt(o)),$t(o))){const e=nn(o);c=Qt(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:Pt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=[..."clippingAncestors"===n?Bt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Zt(e,[],!1).filter((e=>Dt(e)&&"body"!==Nt(e))),i=null;const r="fixed"===zt(e).position;let s=r?Gt(e):e;for(;Dt(s)&&!Vt(s);){const t=zt(s),n=Wt(s);n||"fixed"!==t.position||(i=null),(r?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Ut(s)&&!n&&sn(e,s))?o=o.filter((e=>e!==s)):i=t,s=Gt(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=r[0],a=r.reduce(((e,n)=>{const o=rn(t,n,i);return e.top=ut(o.top,e.top),e.right=dt(o.right,e.right),e.bottom=dt(o.bottom,e.bottom),e.left=ut(o.left,e.left),e}),rn(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:dn,getElementRects:async function(e){const t=this.getOffsetParent||dn,n=this.getDimensions,o=await n(e.floating);return{reference:an(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Xt(e);return{width:t,height:n}},getScale:Qt,isElement:Dt,isRTL:function(e){return"rtl"===zt(e).direction}};function pn(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Jt(e),d=i||r?[...c?Zt(c):[],...Zt(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,o=null;const i=Pt(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:c,top:d,width:u,height:p}=e.getBoundingClientRect();if(a||t(),!u||!p)return;const h={rootMargin:-ht(d)+"px "+-ht(i.clientWidth-(c+u))+"px "+-ht(i.clientHeight-(d+p))+"px "+-ht(c)+"px",threshold:ut(0,dt(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}f=!1}try{o=new IntersectionObserver(m,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(m,h)}o.observe(e)}(!0),r}(c,n):null;let p,h=-1,f=null;s&&(f=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?nn(e):null;return l&&function t(){const o=nn(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n();m=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const hn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:o,elements:i}=e,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),s=vt(n),a=_t(n),l="y"===xt(n),c=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=bt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof f&&(h="end"===a?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},fn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=bt(e,t),c={x:n,y:o},d=await Ot(t,l),u=xt(vt(i)),p=wt(u);let h=c[p],f=c[u];if(r){const e="y"===p?"bottom":"right";h=yt(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===u?"bottom":"right";f=yt(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[p]:h,[u]:f});return{...m,data:{x:m.x-n,y:m.y-o}}}}},mn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=bt(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=vt(i),b=xt(a),v=vt(a)===a,_=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[Tt(a)]:function(e){const t=Tt(e);return[St(e),t,St(t)]}(a)),C="none"!==f;!p&&C&&w.push(...function(e,t,n,o){const i=_t(e);let r=function(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}(vt(e),"start"===n,o);return i&&(r=r.map((e=>e+"-"+i)),t&&(r=r.concat(r.map(St)))),r}(a,m,f,_));const x=[a,...w],E=await Ot(t,g),S=[];let T=(null==(o=r.flip)?void 0:o.overflows)||[];if(d&&S.push(E[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const o=_t(e),i=Et(e),r=Ct(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Tt(s)),[s,Tt(s)]}(i,s,_);S.push(E[e[0]],E[e[1]])}if(T=[...T,{placement:i,overflows:S}],!S.every((e=>e<=0))){var k,A;const e=((null==(k=r.flip)?void 0:k.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(A=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=T.filter((e=>{if(C){const t=xt(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},gn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=bt(e,t)||{};if(null==c)return{};const u=kt(d),p={x:n,y:o},h=Et(i),f=Ct(h),m=await s.getDimensions(c),g="y"===h,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",_=r.reference[f]+r.reference[h]-p[h]-r.floating[f],w=p[h]-r.reference[h],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let x=C?C[v]:0;x&&await(null==s.isElement?void 0:s.isElement(C))||(x=a.floating[v]||r.floating[f]);const E=_/2-w/2,S=x/2-m[f]/2-1,T=dt(u[y],S),k=dt(u[b],S),A=T,L=x-m[f]-k,O=x/2-m[f]/2+E,I=yt(A,O,L),N=!l.arrow&&null!=_t(i)&&O!==I&&r.reference[f]/2-(On&&(h=n)}if(c){var y,b;const e="y"===p?"width":"height",t=["top","left"].includes(vt(i)),n=r.reference[u]-r.floating[e]+(t&&(null==(y=s.offset)?void 0:y[u])||0)+(t?0:g.crossAxis),o=r.reference[u]+r.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[u])||0)-(t?g.crossAxis:0);fo&&(f=o)}return{[p]:h,[u]:f}}}},bn=(e,t,n)=>{const o=new Map,i={platform:un,...n},r={...i.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Lt(c,o,l),p=o,h={},f=0;for(let n=0;n\n.sda-overlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ${D} !important;\n will-change: opacity, transform;\n}\n\n.sda-modal {\n background-color: #fff;\n min-width: 340px;\n border-radius: 20px;\n padding: 0;\n will-change: opacity, transform, overflow;\n}\n\n.sda-modal:focus {\n outline: 0;\n}\n\n.sda-modal.disable-popup {\n ${wn}\n}\n\n.${vn} {\n padding: 16px 16px 8px;\n display: flex;\n align-items: center;\n}\n\n.${vn} shop-logo {\n flex: 1 0 1px;\n display: flex;\n line-height: 18px;\n}\n\n.sda-modal-close-button {\n border: none;\n border-radius: 50%;\n position: relative;\n padding: 0;\n cursor: pointer;\n display: flex;\n}\n\n.sda-modal-close-button:focus,\n.sda-modal-close-button:hover {\n color: #E3E3E3;\n outline: none;\n\n --icon-color: #E3E3E3;\n}\n\n.sda-modal-close-button:before {\n position: absolute;\n content: '';\n top: 1px;\n left: 1px;\n right: 1px;\n bottom: 1px;\n border-radius: 50%;\n background-color: #707070;\n}\n.sda-modal-close-button shop-close-icon {\n pointer-events: none;\n z-index: 1;\n}\n\n.${vn}.${_n} {\n display: block;\n padding: 0;\n height: 0;\n}\n\n.${vn}.${_n} shop-logo {\n display: none;\n}\n\n.${vn}.${_n} .sda-modal-close-button {\n position: absolute;\n top: 26px;\n right: 16px;\n}\n\n.sda-landing {\n width: 340px;\n margin: auto;\n}\n\n.sda-hidden {\n height: 0 !important;\n border: 0;\n padding: 0;\n margin: 0;\n visibility: hidden;\n overflow: hidden;\n}\n\n.focus-trap {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@media (forced-colors: active) {\n .sda-modal {\n border: 1px solid;\n }\n}\n\n.arrow {\n position: absolute;\n background-color: #fff;\n width: 24px;\n height: 24px;\n transform: rotate(45deg);\n z-index: -1;\n}\n\n@media screen and (max-width: 448px) {\n .sda-landing {\n width: 100%;\n }\n\n .sda-modal {\n position: absolute;\n ${wn}\n min-width: 340px;\n max-width: unset;\n box-sizing: border-box;\n }\n\n .arrow {\n display: none;\n }\n}\n\n@media screen and (min-width: 449px) {\n .sda-overlay {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n\n .sda-modal {\n position: absolute;\n bottom: unset !important;\n right: unset !important;\n margin: 0 auto !important;\n max-width: 400px;\n box-sizing: border-box;\n }\n}\n\n\n
\n \n \n \n
\n`;var xn;!function(e){e.Dynamic="DYNAMIC",e.Mobile="MOBILE",e.Center="CENTER"}(xn||(xn={}));const En=new Map([["top","bottom"],["top-end","bottom"],["top-start","bottom"],["right","left"],["right-end","left"],["right-start","left"],["bottom","top"],["bottom-end","top"],["bottom-start","top"],["left","right"],["left-end","right"],["left-start","right"]]),Sn={[xn.Dynamic]:(e,t,n,o)=>{let i=e.querySelector(".arrow");return e.style.position="absolute",null===i&&(i=document.createElement("div"),i.className="arrow",e.appendChild(i)),{config:{placement:null!=o?o:"right",middleware:[hn(22),o?void 0:fn({limiter:yn({offset:64})}),mn({fallbackPlacements:o?[]:["left","top","bottom"]}),gn({element:i,padding:32}),{name:"center",fn(){return Q(this,void 0,void 0,(function*(){return{data:{center:window.matchMedia("screen and (((min-width: 401px) and (max-width: 999px)) or (max-height: 750px))").matches}}}))}}]},fn:({x:t,y:n,placement:o,strategy:r,middlewareData:s})=>{const{center:a}=s;if(a.center)return null!==i&&(i.style.display="none"),Object.assign(e.style,{top:(window.innerHeight-e.offsetHeight)/2+"px",left:(window.innerWidth-e.offsetWidth)/2+"px",bottom:"",right:""}),null;Object.assign(e.style,{left:`${t}px`,top:`${n}px`,right:"",bottom:""});const{arrow:l}=s,c=En.get(o);return null!==i&&Object.assign(i.style,{left:void 0===(null==l?void 0:l.x)?"":`${null==l?void 0:l.x}px`,top:void 0===(null==l?void 0:l.y)?"":`${null==l?void 0:l.y}px`,right:"",bottom:"",display:"",[c]:"-12px"}),{x:t,y:n,strategy:r,placement:o,staticSide:c,middlewareData:s}}}},[xn.Center]:(e,t,n={})=>({config:{},fn:()=>{const o=e.querySelector(".arrow");null!==o&&(o.style.display="none");const i=Object.keys(n).length>0;return i&&Object.assign(e.style,n,{position:"absolute"}),t.classList.toggle("centered",!i),null}}),[xn.Mobile]:e=>({config:{},fn:()=>(Object.assign(e.style,{top:"auto !important",right:"0 !important",bottom:"0 !important",left:"auto"}),null)})},Tn={cleanup:()=>{},updatePosition:()=>Q(void 0,void 0,void 0,(function*(){return Promise.resolve(null)}))};var kn;!function(e){e.UserStatusIdentity="userstatuschange:identity",e.UserStatusScope="userstatuschange:scope",e.UserSessionCreate="usersession:create"}(kn||(kn={}));const An=(()=>{class e{constructor(){this._topics={}}subscribe(e,t,n){this._topics[e]=[...this._topics[e]||[],{publisherId:t,callback:n}]}unsubscribe(e,t){this._topics[e]=(this._topics[e]||[]).filter((e=>e.publisherId!==t))}unsubscribeAll(e){Object.keys(this._topics).forEach((t=>{this.unsubscribe(t,e)}))}publish(e,t,n){var o;null===(o=this._topics[e])||void 0===o||o.forEach((e=>{e.publisherId!==t&&e.callback(n)}))}}let t;return{getInstance:()=>(t||(t=new e),t)}})();class Ln extends Error{constructor(e,t=qe()){super(e),this.analyticsTraceId=t,this.name="MonorailProducerError",this.code="monorail_producer_error"}}class On extends Error{constructor(e,t=qe()){super(e),this.analyticsTraceId=t,this.name="AbortSignalReceivedError",this.code="abort_signal_received_error"}}function In(){var e;null===(e=document.querySelector("com-1password-notification"))||void 0===e||e.remove()}function Nn(...e){return Q(this,void 0,void 0,(function*(){var t;if(!window.ShopifyAnalytics&&!window.analytics)return{};let n;Boolean(null===(t=window.trekkie)||void 0===t?void 0:t.ready)?n=Mn():(window.trekkie=window.trekkie||[],n=new Promise((e=>{window.trekkie.push(["ready",()=>{e(Mn())}])})));const o=yield n;return e.reduce(((e,t)=>{const n=o[t];return void 0!==n&&(e[t]=n),e}),{})}))}function Mn(){let e;const t=Promise.race([new Promise((t=>e=setTimeout((()=>t({})),1e4))),new Promise((e=>{var t,n,o;const i=(null===(n=null===(t=window.ShopifyAnalytics)||void 0===t?void 0:t.lib)||void 0===n?void 0:n.ready)||(null===(o=window.analytics)||void 0===o?void 0:o.ready);null==i||i((()=>{var t,n,o;const i=(null===(n=null===(t=window.ShopifyAnalytics)||void 0===t?void 0:t.lib)||void 0===n?void 0:n.trekkie)||(null===(o=window.analytics)||void 0===o?void 0:o.trekkie);e(i.defaultAttributes)}))}))]);return t.finally((()=>clearTimeout(e)))}var Pn,Rn,Dn,$n;!function(e){e.UiImpression="shop_js_ui_impression/1.1",e.InstallmentsModalOpened="shop_pay_installments_dynamic_modal_impression/1.0",e.InstallmentsModalUserAction="shop_pay_installments_dynamic_modal_user_actions/1.0",e.InstallmentsBannerImpression="shop_pay_installments_banner_ui_impression/3.0",e.InstallmentsPrequalPopupPageImpression="shop_pay_installments_prequal_popup_page_impression/3.0",e.InstallmentsBannerPrequalInteraction="shop_pay_installments_banner_prequal_interaction/3.0",e.InstallmentsInvalidMetadata="shop_pay_installments_banner_invalid_metadata/1.0",e.ShopLoginFirstTimeRender="shop_js_ui_shop_login_first_time_render/1.0",e.ShopifyLoginWithShopSdkDiscountStatus="shopify_pay_login_with_shop_sdk_discount_status/2.0",e.LoginWithShopSdkPageImpression="shopify_pay_login_with_shop_sdk_page_impressions/3.3",e.LoginWithShopSdkUserAction="shopify_pay_login_with_shop_sdk_user_actions/2.2",e.LoginWithShopSdkErrorEvents="shopify_pay_login_with_shop_sdk_error_events/1.0",e.ShopifyPayModalStateChange="shopify_pay_modal_state_change/1.3",e.LoginWithShopModalStateChange="shop_identity_modal_state_change/1.4",e.LoginWithShopFeatureInitialize="shopify_pay_login_with_shop_sdk_feature_initialize/1.0"}(Pn||(Pn={})),function(e){e.AuthorizeModal="AUTHORIZE_MODAL",e.AuthorizeModalInViewport="AUTHORIZE_MODAL_IN_VIEWPORT",e.ClassicCustomerAccount="CLASSIC_CUSTOMER_ACCOUNTS_ACCOUNT_PAGE",e.ClassicCustomerAccountCreateAccount="CLASSIC_CUSTOMER_ACCOUNTS_CREATE_ACCOUNT_PAGE",e.ClassicCustomerAccountLogin="CLASSIC_CUSTOMER_ACCOUNTS_LOGIN_PAGE",e.ComponentLoadedFollowing="COMPONENT_LOADED_FOLLOWING",e.ComponentLoadedNotFollowing="COMPONENT_LOADED_NOT_FOLLOWING",e.ContinueWithShop="CONTINUE_WITH_SHOP_PAGE",e.DiscountSaved="DISCOUNT_SAVE_CONFIRMATION_PAGE",e.DiscountShown="DISCOUNT_SHOWN",e.FollowButtonShownInViewport="FOLLOW_BUTTON_SHOWN_IN_VIEWPORT",e.FollowingGetShopAppCta="FOLLOWING_GET_SHOP_APP_CTA",e.PartnerEmailInputShown="PARTNER_EMAIL_INPUT_SHOWN",e.PhoneConsent="TEXT_MARKETING_SIGN_UP",e.PhoneConsentConfirmed="TEXT_MARKETING_CONFIRMED_PAGE",e.PhoneConsentDeclined="TEXT_MARKETING_DECLINED_PAGE",e.SdkLoaded="SDK_HAS_LOADED_INITIAL_PAGE",e.SignInWithShopButton="SIGN_IN_WITH_SHOP_BUTTON"}(Rn||(Rn={})),function(e){e.CreateAccountLinkClicked="CREATE_ACCOUNT_CLICK",e.EmailEntered="EMAIL_ENTERED",e.FollowOnShopClicked="FOLLOW_ON_SHOP_CLICKED",e.FollowingGetShopAppClick="FOLLOWING_GET_SHOP_APP_CLICK",e.PasswordManagerAutofillDetected="PASSWORD_MANAGER_AUTOFILL_DETECTED",e.PhoneConsentDeclined="DO_NOT_SHARE_PHONE_CLICK",e.PhoneConsentProvided="SHARE_PHONE_CLICK",e.SignInWithShopClicked="SIGN_IN_WITH_SHOP_BUTTON_CLICK",e.ThirdPartyFormSubmission="3RD_PARTY_EMAIL_CAPTURE_FORM_SUBMISSION_CLICK"}(Dn||(Dn={})),function(e){e.Loaded="loaded",e.Shown="shown",e.Hidden="hidden"}($n||($n={}));const Hn={errorParsingCreatedAtMs:"Error parsing: X-Monorail-Edge-Event-Created-At-Ms",emptyeEventCreatedAtMs:"event_created_at_ms metadata field cannot be empty",noPermissionToGetURL:"Your client does not have permission to get URL",noResponseFromEdge:"No response from edge",incorrectContentType:"Incorrect Content-Type. Expected: application/json or text/plain",blockedRequest:"Blocked Request",failedToReadRequestBody:"Failed to read request body",methodNotAllowed:"Method Not Allowed",schemaValidationError:"Schema validation error"};const Un=_e.createHttpProducer({production:!0});let Fn=class{constructor({elementName:e,analyticsTraceId:t,flow:n="",flowVersion:o="unspecified",shopId:i,shopPermanentDomain:r,checkoutVersion:s,checkoutToken:a}){var l;this._shopPermanentDomain="",this._impressionTracked=!1,this._shopLoginFirstTimeRenderTracked={},this._pageImpressionTracked={AUTHORIZE_MODAL:!1,AUTHORIZE_MODAL_IN_VIEWPORT:!1,CLASSIC_CUSTOMER_ACCOUNTS_ACCOUNT_PAGE:!1,CLASSIC_CUSTOMER_ACCOUNTS_CREATE_ACCOUNT_PAGE:!1,CLASSIC_CUSTOMER_ACCOUNTS_LOGIN_PAGE:!1,COMPONENT_LOADED_FOLLOWING:!1,COMPONENT_LOADED_NOT_FOLLOWING:!1,CONTINUE_WITH_SHOP_PAGE:!1,DISCOUNT_SAVE_CONFIRMATION_PAGE:!1,DISCOUNT_SHOWN:!1,FOLLOWING_GET_SHOP_APP_CTA:!1,FOLLOW_BUTTON_SHOWN_IN_VIEWPORT:!1,PARTNER_EMAIL_INPUT_SHOWN:!1,SDK_HAS_LOADED_INITIAL_PAGE:!1,SIGN_IN_WITH_SHOP_BUTTON:!1,TEXT_MARKETING_SIGN_UP:!1,TEXT_MARKETING_CONFIRMED_PAGE:!1,TEXT_MARKETING_DECLINED_PAGE:!1},this._elementName=e,this._flow=n,this._analyticsTraceId=t,this._initTimestamp=(new Date).getTime(),this._flowVersion=o,this._checkoutVersion=s,this._checkoutToken=a,this._shopId=i,this._shopPermanentDomain=r||(null===(l=window.Shopify)||void 0===l?void 0:l.shop)||"",this._shopModalPreviousState=void 0}get analyticsTraceId(){return this._analyticsTraceId}trackElementImpression(e){return Q(this,void 0,void 0,(function*(){if(this._impressionTracked)return;this._impressionTracked=!0;const t=yield Nn("uniqToken","visitToken","microSessionId","microSessionCount","shopId","themeId","themeCityHash","contentLanguage","referer"),n=Object.assign(Object.assign({},t),{elementType:e,elementName:this._elementName,shopJsVersion:A});Bn({schemaId:Pn.UiImpression,payload:n},t,(()=>{this._impressionTracked=!1}))}))}trackPageImpression(e){return Q(this,arguments,void 0,(function*({shopAccountUuid:e,apiKey:t,page:n,allowDuplicates:o=!1}){var i;if(!o&&this._pageImpressionTracked[n])return;this._pageImpressionTracked[n]=!0;const r=yield Nn("uniqToken","visitToken","isPersistentCookie","path","customerId"),s=ot(),a=null!==(i=null==s?void 0:s.pageType)&&void 0!==i?i:"",l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),{analyticsTraceId:this._analyticsTraceId,flow:this._flow,flowVersion:this._flowVersion,pageName:n,sdkVersion:A,shopPermanentDomain:this._shopPermanentDomain,storefrontPageType:a}),t&&{apiKey:t}),e&&{shopAccountUuid:e}),this._checkoutToken&&{checkoutToken:this._checkoutToken});Bn({schemaId:Pn.LoginWithShopSdkPageImpression,payload:l},r,(()=>{this._pageImpressionTracked[n]=!1}))}))}trackShopLoginFirstTimeRender(){return Q(this,arguments,void 0,(function*(e=this._flowVersion,t=this._initTimestamp){if(this._shopLoginFirstTimeRenderTracked[e])return;this._shopLoginFirstTimeRenderTracked[e]=!0;const n=(new Date).getTime()-t,o=yield Nn("shopId"),i=Object.assign(Object.assign({analyticsTraceId:this._analyticsTraceId,duration:n},o),{shopLoginVersion:e,url:window.location.href,userAgent:navigator.userAgent});Bn({schemaId:Pn.ShopLoginFirstTimeRender,payload:i},o,(()=>{this._shopLoginFirstTimeRenderTracked[e]=!1}))}))}trackShopPayLoginWithShopSdkUserAction({apiKey:e,userAction:t}){const n=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e&&{apiKey:e}),{flow:this._flow,flowVersion:this._flowVersion,sdkVersion:A,analyticsTraceId:this._analyticsTraceId}),this._checkoutVersion&&{checkoutVersion:this._checkoutVersion}),this._shopId&&{shopId:this._shopId}),{shopPermanentDomain:this._shopPermanentDomain,userAction:t});Bn({schemaId:Pn.LoginWithShopSdkUserAction,payload:n})}trackShopPayLoginWithSdkErrorEvents({apiKey:e,errorCode:t,errorMessage:n}){const o={apiKey:e,flow:this._flow,flowVersion:this._flowVersion,sdkVersion:A,analyticsTraceId:this._analyticsTraceId,shopPermanentDomain:this._shopPermanentDomain,errorCode:t,errorMessage:n};Bn({schemaId:Pn.LoginWithShopSdkErrorEvents,payload:o})}trackShopPayModalStateChange({currentState:e,reason:t,dismissMethod:n}){var o,i;if(this._checkoutToken){const t={checkoutToken:this._checkoutToken,checkoutVersion:this._checkoutVersion,shopId:this._shopId,shopifyDomain:this._shopPermanentDomain,previousState:"",currentState:e,analyticsTraceId:this._analyticsTraceId,clientTimestampMs:(new Date).getTime(),zoom:`${null===(o=window.visualViewport)||void 0===o?void 0:o.scale}`};Bn({schemaId:Pn.ShopifyPayModalStateChange,payload:t})}this._flow&&this._flowVersion&&(Bn({schemaId:Pn.LoginWithShopModalStateChange,payload:{currentState:e,previousState:this._shopModalPreviousState,reason:t,dismissMethod:n,flow:this._flow,flowVersion:this._flowVersion,analyticsTraceId:this._analyticsTraceId,zoom:`${null===(i=window.visualViewport)||void 0===i?void 0:i.scale}`}}),this._shopModalPreviousState=e)}trackFeatureInitialization(e){return Q(this,arguments,void 0,(function*({apiKey:e,source:t}){var n;const o=yield Nn("uniqToken","visitToken","isPersistentCookie","path","customerId"),i=ot(),r=null!==(n=null==i?void 0:i.pageType)&&void 0!==n?n:"",s=Object.assign(Object.assign(Object.assign(Object.assign({},o),{analyticsTraceId:this._analyticsTraceId,flow:this._flow,flowVersion:this._flowVersion,sdkVersion:A,shopPermanentDomain:this._shopPermanentDomain,source:t,storefrontPageType:r}),e&&{apiKey:e}),this._checkoutToken&&{checkoutToken:this._checkoutToken});Bn({schemaId:Pn.LoginWithShopFeatureInitialize,payload:s},o)}))}};function Bn(e,t,n){!t||Object.keys(t).length?(e.payload=Object.assign(e.payload,t),Un.produce(e).catch((e=>{if(null==n||n(e),function(e){var t;return!(e instanceof ge||(null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.includes("Invalid agent:")))}(e)){const t=e instanceof Error?e:new Ln(String(e)),n=function(e){const t=Object.entries(Hn).find((([t,n])=>e.message.includes(n)));return(null==t?void 0:t[0])||"otherErrors"}(t);V.notify(t),Le(xe.MonorailProducerError,1,{error:n})}}))):null==n||n({message:"trekkie attributes are empty"})}var Wn,jn;class Vn{constructor(e,t){Wn.set(this,void 0),jn.set(this,void 0),e&&(te(this,Wn,e,"f"),te(this,jn,(e=>{t(e.target.value)}),"f"),ee(this,Wn,"f").addEventListener("input",ee(this,jn,"f")))}destroy(){ee(this,Wn,"f")&&ee(this,jn,"f")&&ee(this,Wn,"f").removeEventListener("input",ee(this,jn,"f"))}}function zn(e){console.error(`[shop-js] ${e}`),V.notify(new Error(e))}function qn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}Wn=new WeakMap,jn=new WeakMap;class Gn{constructor(e){this._source=e}isSourceOf(e){return e.source===this._source.contentWindow}}class Kn{constructor(e){this._source=e}isSourceOf(e){return e.source===this._source}}class Zn{constructor(e,t,n,o=window){this._subscribers=new Set,this._eventSource=e,this._subscribers.add(n),this._eventListener=e=>{this._eventSource&&this._eventSource.isSourceOf(e)&&(t.some((t=>function(e,t){try{const n=new URL(e).host.split(".").reverse(),o=new URL(t).host.split(".").reverse();for(let e=0;e{const r=()=>{i(new On("Abort signal received"))};(null==t?void 0:t.aborted)&&r(),n=n=>{n.type===e&&(null==t||t.removeEventListener("abort",r),o(n))},this._subscribers.add(n),null==t||t.addEventListener("abort",r)})).finally((()=>{this._subscribers.delete(n)}))}_notify(e){this._subscribers.forEach((t=>t(e)))}}const Yn="https://shop.app",Xn="https://pay.shopify.com",Jn="https://shop.app";var Qn,eo,to,no,oo,io,ro,so,ao,lo,co,uo,po,ho,fo;function mo(e){let t;try{const n=new URL(e);"localhost"!==n.hostname&&"127.0.0.1"!==n.hostname||"https:"===n.protocol?"https:"!==n.protocol?t=Qn.NotUsingHttps:"/"!==n.pathname?t=Qn.HasPath:n.hash?t=Qn.HasHash:n.search&&(t=Qn.HasSearch):t=Qn.UsingLocalhost}catch(e){t=Qn.InvalidUrl}finally{t&&(console.error(`[shop-js] Invalid storefront origin: ${e}`),Le(xe.InvalidStorefrontOrigin,1,{error:t}))}return void 0===t}!function(e){e.UsingLocalhost="using_localhost",e.NotUsingHttps="not_using_https",e.HasPath="has_path",e.HasHash="has_hash",e.HasSearch="has_search",e.InvalidUrl="invalid_url"}(Qn||(Qn={}));class go{static getDefaultLanguage(){return"es"}constructor(e){eo.add(this),no.set(this,void 0),oo.set(this,"es"),te(this,no,e,"f")}get locale(){return ee(this,oo,"f")}set locale(e){to.allowedLocales.includes(e)&&te(this,oo,e,"f")}translate(e,t={}){const n=e.split(".");let o=ee(this,no,"f")[ee(this,oo,"f")];try{for(const e of n)switch(typeof o){case"object":o=o[e];break;case"string":case"undefined":throw new ReferenceError}if(void 0===o)throw new ReferenceError;return ee(this,eo,"m",io).call(this,o,t)&&(o=o[ee(this,eo,"m",ro).call(this,o,t.count)]),ee(this,eo,"m",so).call(this,o,t)}catch(n){return t.defaultValue?t.defaultValue:e}}isEnglish(){return"en"===ee(this,oo,"f")}}to=go,no=new WeakMap,oo=new WeakMap,eo=new WeakSet,io=function(e,t={}){return"string"!=typeof e&&"undefined"!==t.count},ro=function(e,t){let n=1===t?"one":"other";return 0===t&&"string"!=typeof e&&"undefined"!==e.zero&&(n="zero"),n},so=function(e,t={}){const n=e.match(/\{.+?\}/g);return n?n.reduce(((n,o)=>{const i=o.replace(/\{(.*)\}/,"$1");return t[i]?n.replace(o,t[i]):(V.notify(new Error(`i18n: Missing translation key '${i}' for '${e}'`)),n)}),e):e},go.allowedLocales=["en","bg-BG","cs","da","de","el","es","fi","fr","hi","hr-HR","hu","id","it","ja","ko","lt-LT","ms","nb","nl","pl","pt-BR","pt-PT","ro-RO","ru","sk-SK","sl-SI","sv","th","tr","vi","zh-CN","zh-TW"],function(e){e.Source="src",e.Initial="initial"}(ao||(ao={})),function(e){e.Email="email",e.Phone="phone",e.PhoneOwnershipVerified="phone_ownership_verified"}(lo||(lo={})),function(e){e.Follow="follow",e.Default="default",e.Custom="custom",e.Prequal="prequal",e.PopUp="pop_up"}(co||(co={})),function(e){e.Start="start",e.SignUp="signup",e.Verify="verify",e.Captcha="captcha",e.OneClick="one-click"}(uo||(uo={})),function(e){e.ApiUnavailable="api_unavailable",e.InvalidApiKey="invalid_api_key",e.ServerError="server_error",e.UserBlocked="user_blocked",e.NoDiscountReceived="no_discount_received",e.InvalidAnalyticsContext="invalid_analytics_context",e.InstallmentsIneligible="installments_ineligible",e.CaptchaChallenge="captcha_challenge",e.RetriableServerError="retriable_server_error"}(po||(po={})),function(e){e.Init="init",e.Restart="restart",e.UserMatched="user_matched",e.UserNotMatched="user_not_matched",e.VerificationStepChanged="verification_step_changed",e.CustomizationValidityChanged="customization_validity_changed",e.PopUpOpened="pop_up_opened"}(ho||(ho={})),function(e){e.Start="start",e.SignUp="signup",e.EmailVerification="email_verification",e.PhoneVerification="phone_verification",e.WebAuthnVerification="webauthn_verification",e.PopUpOpened="pop_up_opened",e.OneClick="one_click",e.PersonalizeConsent="personalize_consent"}(fo||(fo={}));const yo="setheight";var bo,vo,_o,wo,Co,xo,Eo,So,To;!function(e){e.Interest="interest",e.SplitPay="split_pay",e.ZeroPercent="zero_percent"}(bo||(bo={})),function(e){e.Cart="cart",e.Product="product",e.Checkout="checkout"}(vo||(vo={})),function(e){e.IntroPageLoaded="prequal_intro_page_loaded",e.AuthorizeLoaded="prequal_authorize_loaded",e.BuyerFormOverlayLoaded="prequal_buyer_form_overlay_loaded",e.ResultsPageLoading="prequal_results_page_loading",e.ResultsPageLoaded="prequal_results_page_loaded",e.ContinueToCheckoutClicked="prequal_continue_to_checkout_clicked"}(_o||(_o={})),function(e){e.PayInFour="pay_in_4",e.AsLowAs="as_low_as",e.PayInFourAsLowAs="pay_in_4_or_as_low_as"}(wo||(wo={})),function(e){e.Standard="standard",e.CustomizedByMerchant="customized_by_merchant"}(Co||(Co={})),function(e){e.SplitPay="split_pay",e.ZeroInterest="zero_interest",e.InterestOnly="interest_only",e.ZeroInterestOnly="zero_interest_only",e.Adaptive="adaptive",e.Ineligible="ineligible"}(xo||(xo={})),function(e){e.Close="close",e.ContinueToCheckout="continue_to_checkout",e.CloseAuth="close_auth_modal"}(Eo||(Eo={})),function(e){e.SplitPay="split_pay",e.Monthly="monthly"}(So||(So={})),function(e){e.SignIn="sign_in",e.SignUp="sign_up"}(To||(To={}));class ko extends HTMLElement{constructor(){super()}updateAttribute(e,t){this.getAttribute(e)!==t&&(t?this.setAttribute(e,t):this.removeAttribute(e))}getBooleanAttribute(e){const t=this.getAttribute(e);return null!=t}dispatchCustomEvent(e,t){const n=new CustomEvent(e,{bubbles:"error"!==e,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(n)}}class Ao extends ko{constructor(){super(...arguments),this._shopHub=An.getInstance(),this._publisherId=Fe()}subscribeToHub(e,t){this._shopHub.subscribe(e,this._publisherId,t)}unsubscribeAllFromHub(){this._shopHub.unsubscribeAll(this._publisherId)}unsubscribeFromHub(e){this._shopHub.unsubscribe(e,this._publisherId)}publishToHub(e,t){this._shopHub.publish(e,this._publisherId,t),e===kn.UserSessionCreate&&(this.dispatchCustomEvent(kn.UserSessionCreate,t),this._dispatchStorefrontSignInCompleted(t))}_dispatchStorefrontSignInCompleted(e){const{avatar:t,initial:n}=e,o=document.createElement("shop-user-avatar");o.setAttribute(ao.Source,t||""),o.setAttribute(ao.Initial,n),this.dispatchCustomEvent("storefront:signincompleted",{avatar:o})}}class Lo{constructor(e,t){this._eventDestination=e,this._eventOrigins=t}postMessage(e){const t=this._eventDestination instanceof HTMLIFrameElement?this._eventDestination.contentWindow:this._eventDestination;this._eventOrigins.forEach((n=>{null==t||t.postMessage(e,n)}))}set eventDestination(e){e&&this._eventDestination!==e&&(this._eventDestination=e)}}class Oo extends Lo{constructor(e){super(e,[Yn,Xn])}}const Io=1e4,No=200,Mo={temporarilyUnavailable:{code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"}},Po="client-id",Ro="version",Do="action",$o="storefront-origin",Ho="keep-modal-open",Uo="hide-button",Fo="disable-sign-up",Bo="redirect-uri",Wo="ux-mode",jo="redirect-type",Vo="auto-open",zo="analytics-context",qo="analytics-trace-id",Go="compact",Ko="response-type",Zo="response-mode",Yo="code-challenge",Xo="code-challenge-method",Jo="state",Qo="scope",ei="avoid-pay-alt-domain",ti="avoid-sdk-session",ni="flow",oi="flow-version",ii="email",ri="anchor-to",si="dev-mode",ai="modal-title",li="modal-description",ci="modal-logo-src",di="api-key",ui="pop-up-name",pi="pop-up-features",hi="modal-brand",fi="consent-challenge",mi="checkout-redirect-url",gi="checkout-version",yi="shop-id",bi="require-verification",vi="first-name",_i="last-name",wi="checkout-token",Ci="transaction-params",xi="shop-permanent-domain",Ei="source",Si=448,Ti="\n bottom: 0;\n top: auto !important;\n left: 0 !important;\n right: 0 !important;\n border-radius: 32px 32px 0 0;\n",ki=`\n\n\n
\n \n \n \n
\n`,Ai="follow",Li="",Oi=(e,t)=>`${t}`,Ii=(e,t,n)=>`\n\n
\n
\n
${e}
\n
\n ${n}\n
\n \n
\n`;function Ni(e,t){return void 0===t?null:{[e]:t?"true":"false"}}const Mi={brand:"#5a31f4",white:"#fff",black:"#000",warning:"#d02e11",close:"#707070",foregroundSecondary:"#3F454D",backgroundSubdued:"#F2F3F5",backgroundError:"#FFECE9",backgroundFaint:"#F2F4F5",error:"#D02E11"};function Pi(e){let t=0,n=0,o=0;return 4===e.length?(t=Number(`0x${e[1]}${e[1]}`),n=Number(`0x${e[2]}${e[2]}`),o=Number(`0x${e[3]}${e[3]}`)):7===e.length&&(t=Number(`0x${e[1]}${e[2]}`),n=Number(`0x${e[3]}${e[4]}`),o=Number(`0x${e[5]}${e[6]}`)),[t,n,o]}function Ri(e){const t=e.match(/\d+/g)||[],[n=0,o=0,i=0]=t.map((e=>Number(e)));return[n,o,i]}function Di(e){const t=[90,49,244],n=[255,255,255];let o=[255,255,255];return e.startsWith("#")?o=Pi(e):e.startsWith("rgb(")&&(o=Ri(e)),Ui(o,t)>Ui(o,n)?t:n}function $i(e,t){return Ui(e.startsWith("#")?Pi(e):Ri(e),t.startsWith("#")?Pi(t):Ri(t))}function Hi(e,t,n){const o=[e,t,n].map((function(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}));return.2126*o[0]+.7152*o[1]+.0722*o[2]}function Ui(e,t){const n=Hi(e[0],e[1],e[2]),o=Hi(t[0],t[1],t[2]);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Fi(e){var t;const n=null===(t=window.getComputedStyle(e).getPropertyValue("--color-background"))||void 0===t?void 0:t.trim();if(n)return n;for(const t of function*(e){let t=e;for(;t;){if(t.parentElement)t=t.parentElement;else if(t instanceof ShadowRoot)t=t.host;else{if(!(t instanceof Element))break;{const e=t.getRootNode();if(!(e instanceof ShadowRoot))break;t=e.host}}if(yield t,t===document.body)break}}(e)){const e=window.getComputedStyle(t).getPropertyValue("background-color");if(e&&"rgba(0, 0, 0, 0)"!==e)return e}return"#ffffff"}class Bi extends HTMLElement{constructor(){super();const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("background-color")||"#FFF";e.innerHTML=function(e,t){const n="large"===e?"shop-pay-logo-large":"shop-pay-logo",[o,i,r]=Di(t),s=`rgb(${o}, ${i}, ${r})`;return`\n \n \n `}(t,n),this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}}var Wi,ji,Vi,zi;class qi extends HTMLElement{constructor(){super(),Wi.set(this,void 0),te(this,Wi,this.attachShadow({mode:"open"}),"f")}connectedCallback(){const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("color")||"",o=this.getAttribute("label")||"";e.innerHTML=function(e,t="brand",n){return`\n \n \n ${n}\n