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