(()=>{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 o;t.g.importScripts&&(o=t.g.location+"");var r=t.g.document;if(!o&&r&&(r.currentScript&&(o=r.currentScript.src),!o)){var e=r.getElementsByTagName("script");e.length&&(o=e[e.length-1].src)}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=o})(),t.p=window.wcpayAssets.url,(()=>{"use strict";const t=window.wp.data,o=window.wp.element,r=window.wp.plugins,e=window.wp.url,n=window.wp.i18n,{pluginScope:i}=window.wcpaySubscriptionProductOnboardingToast;(0,r.registerPlugin)("wcpay-subscription-product-onboarding-toast",{icon:null,render:()=>{const{createInfoNotice:r}=(0,t.useDispatch)("core/notices");return(0,o.useEffect)((()=>{window?.history&&window.history.replaceState(null,null,(0,e.removeQueryArgs)(window.location.href,"wcpay-subscriptions-onboarded")),r((0,n.__)("Thank you for setting up WooCommerce Payments! We’ve published your first subscription product.","woocommerce-payments"))}),[r]),null},scope:i})})()})();