/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={7138:(e,t)=>{"use strict";const n={setOnLoadError:e=>{},setOnLoaderStart:e=>{}},o={"account-onboarding":{setFullTermsOfServiceUrl:e=>{},setRecipientTermsOfServiceUrl:e=>{},setPrivacyPolicyUrl:e=>{},setSkipTermsOfServiceCollection:e=>{},setCollectionOptions:e=>{},setOnExit:e=>{},setOnStepChange:e=>{}},"account-management":{setCollectionOptions:e=>{}},"notification-banner":{setCollectionOptions:e=>{},setOnNotificationsChange:e=>{}},payments:{setDefaultFilters:e=>{}},"payment-details":{setPayment:e=>{},setOnClose:e=>{}},"tax-settings":{setHideProductTaxCodeSelector:e=>{},setDisplayHeadOfficeCountries:e=>{},setOnTaxSettingsUpdated:e=>{}},"tax-registrations":{setOnAfterTaxRegistrationAdded:e=>{},setDisplayCountries:e=>{}}},r={"account-onboarding":"stripe-connect-account-onboarding",payments:"stripe-connect-payments","payment-details":"stripe-connect-payment-details",payouts:"stripe-connect-payouts","payouts-list":"stripe-connect-payouts-list",balances:"stripe-connect-balances","account-management":"stripe-connect-account-management","notification-banner":"stripe-connect-notification-banner",documents:"stripe-connect-documents","tax-registrations":"stripe-connect-tax-registrations","tax-settings":"stripe-connect-tax-settings"},a="loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used",i="https://connect-js.stripe.com/v1.0/connect.js";let s=null;const c=(e,t)=>{var a;const i=(()=>{try{return t.fetchClientSecret()}catch(e){return Promise.reject(e)}})(),s=null!==(a=t.metaOptions)&&void 0!==a?a:{},c=e.then((e=>e.initialize(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},s),{eagerClientSecretPromise:i})}))));return{create:e=>{let t=r[e];t||(t=e);const a=document.createElement(t),i=(e=>e in o)(e)?o[e]:{},s=Object.assign(Object.assign({},i),n);for(const e in s)a[e]=function(t){c.then((()=>{this[`${e}InternalOnly`](t)}))};return c.then((t=>{if(!a.isConnected&&!a.setConnector){const e=a.style.display;a.style.display="none",document.body.appendChild(a),document.body.removeChild(a),a.style.display=e}if(!a||!a.setConnector)throw new Error(`Element ${e} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);a.setConnector(t.connect)})),a},update:e=>{c.then((t=>{t.update(e)}))},debugInstance:()=>c,logout:()=>c.then((e=>e.logout()))}},d=e=>(window.StripeConnect=window.StripeConnect||{},window.StripeConnect.optimizedLoading=!0,{initialize:t=>{var n;const o=null!==(n=t.metaOptions)&&void 0!==n?n:{};return e.init(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},o),{sdk:!0,sdkOptions:{sdkVersion:"3.3.15"}})}))}});t.loadConnectAndInitialize=e=>{const t=(null!==s||(s=new Promise(((e,t)=>{if("undefined"!=typeof window)if(window.StripeConnect&&console.warn(a),window.StripeConnect){const t=d(window.StripeConnect);e(t)}else try{let n=document.querySelectorAll(`script[src="${i}"]`)[0]||document.querySelectorAll('script[src="https://connect-js.stripe.com/v0.1/connect.js"]')[0]||null;n?console.warn(a):n||(n=(()=>{const e=document.createElement("script");if(e.src=i,!document.head)throw new Error("Expected document.head not to be null. Connect.js requires a element.");return document.head.appendChild(e),e})()),n.addEventListener("load",(()=>{if(window.StripeConnect){const t=d(window.StripeConnect);e(t)}else t(new Error("Connect.js did not load the necessary objects"))})),n.addEventListener("error",(()=>{t(new Error("Failed to load Connect.js"))}))}catch(e){t(e)}else t("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.")}))),s);if(null==e)throw new Error("You must provide required parameters to initialize Connect");return c(t,e)}},4759:(e,t,n)=>{e.exports=n(7138)},2485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?n-1:0),r=1;r/gm),H=u(/\${[\w\W]*}/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]/),G=u(/^aria-[\-\w]+$/),q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.5.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,i=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,d=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,y=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,_=n.DOMParser,N=n.trustedTypes,ee=u.prototype,te=O(ee,"cloneNode"),ne=O(ee,"nextSibling"),oe=O(ee,"childNodes"),re=O(ee,"parentNode");if("function"==typeof c){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(N,a),se=ie?ie.createHTML(""):"",ce=i,de=ce.implementation,le=ce.createNodeIterator,ue=ce.createDocumentFragment,me=ce.getElementsByTagName,pe=a.importNode,ye={};try{ye=A(i).documentMode?i.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof re&&de&&void 0!==de.createHTMLDocument&&9!==ye;var _e,fe,ge=V,ve=W,we=H,be=Y,Ee=G,$e=K,Se=Q,xe=J,ke=q,Ce=null,Ne=T({},[].concat(o(I),o(L),o(R),o(M),o(j))),Te=null,Ae=T({},[].concat(o(F),o(B),o(z),o(U))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,Le=null,Re=!0,De=!0,Me=!1,Pe=!0,je=!1,Fe=!0,Be=!1,ze=!1,Ue=!1,Ve=!1,We=!1,He=!1,Ye=!0,Ge=!1,qe=!0,Ke=!1,Qe={},Ze=null,Je=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,et=T({},["audio","video","img","source","image","track"]),tt=null,nt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",it=at,st=!1,ct=null,dt=T({},[ot,rt,at],b),lt=["application/xhtml+xml","text/html"],ut=null,mt=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=A(t),_e=_e=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===_e?b:w,Ce="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,fe):Ne,Te="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,fe):Ae,ct="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,b):dt,tt="ADD_URI_SAFE_ATTR"in t?T(A(nt),t.ADD_URI_SAFE_ATTR,fe):nt,Xe="ADD_DATA_URI_TAGS"in t?T(A(et),t.ADD_DATA_URI_TAGS,fe):et,Ze="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,fe):Je,Ie="FORBID_TAGS"in t?T({},t.FORBID_TAGS,fe):{},Le="FORBID_ATTR"in t?T({},t.FORBID_ATTR,fe):{},Qe="USE_PROFILES"in t&&t.USE_PROFILES,Re=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,je=t.SAFE_FOR_TEMPLATES||!1,Fe=!1!==t.SAFE_FOR_XML,Be=t.WHOLE_DOCUMENT||!1,Ve=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,Ue=t.FORCE_BODY||!1,Ye=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,qe=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,it=t.NAMESPACE||at,Oe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(De=!1),We&&(Ve=!0),Qe&&(Ce=T({},o(j)),Te=[],!0===Qe.html&&(T(Ce,I),T(Te,F)),!0===Qe.svg&&(T(Ce,L),T(Te,B),T(Te,U)),!0===Qe.svgFilters&&(T(Ce,R),T(Te,B),T(Te,U)),!0===Qe.mathMl&&(T(Ce,M),T(Te,z),T(Te,U))),t.ADD_TAGS&&(Ce===Ne&&(Ce=A(Ce)),T(Ce,t.ADD_TAGS,fe)),t.ADD_ATTR&&(Te===Ae&&(Te=A(Te)),T(Te,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&T(tt,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(Ze===Je&&(Ze=A(Ze)),T(Ze,t.FORBID_CONTENTS,fe)),qe&&(Ce["#text"]=!0),Be&&T(Ce,["html","head","body"]),Ce.table&&(T(Ce,["tbody"]),delete Ie.tbody),l&&l(t),ut=t)},ht=T({},["mi","mo","mn","ms","mtext"]),_t=T({},["foreignobject","annotation-xml"]),ft=T({},["title","style","font","a","script"]),gt=T({},L);T(gt,R),T(gt,D);var vt=T({},M);T(vt,P);var wt=function(e){v(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},bt=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Ve||We)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,n;if(Ue)e=""+e;else{var o=E(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===_e&&it===at&&(e=''+e+"");var r=ie?ie.createHTML(e):e;if(it===at)try{t=(new _).parseFromString(r,_e)}catch(e){}if(!t||!t.documentElement){t=de.createDocument(it,"template",null);try{t.documentElement.innerHTML=st?se:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),it===at?me.call(t,Be?"html":"body")[0]:Be?t.documentElement:a},$t=function(e){return le.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},St=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof y)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(t){return"object"===e(d)?t instanceof d:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,n){he[e]&&f(he[e],(function(e){e.call(r,t,n,ut)}))},Ct=function(e){var t;if(kt("beforeSanitizeElements",e,null),St(e))return wt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=fe(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!xt(e.firstElementChild)&&(!xt(e.content)||!xt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&k(/