(()=>{var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var r=t.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var n=r.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})(),t.p=window.wcpayAssets.url,(()=>{"use strict";!function(){const{price:t,currency:e,country:r,publishableKey:n,paymentMethods:c}=window.wcpayStripeSiteMessaging,i=Stripe(n),o={amount:parseInt(t,10)||0,currency:e||"USD",paymentMethodTypes:c||[],countryCode:r},a=i.elements().create("paymentMethodMessaging",o);a.mount("#payment-method-message"),document.querySelector(".quantity input").addEventListener("change",(e=>{const r=e.target.value;a.update({amount:parseInt(t,10)*r})}))}()})()})();