var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); !function(){function e(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={exports:{}};return r[t](i,i.exports,e),i.exports}var t,n,r={723:function(e,t,n){"use strict";function r(e){l.length||(a(),!0),l[l.length]=e}function o(){for(;p1024){for(var t=0,n=l.length-p;tq.length&&q.push(e)}function p(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case b:case w:a=!0}}if(a)return n(o,e,""===t?"."+m(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=e.layout;if(!r||"string"==typeof r)return[];var i=(0,s.mC)({layout:t?a.Ee:a.xl}),c=(0,s.Gu)(i,{layout:r},n),u=c.warnings,l=r,p=l.type;return"accordion"!==p&&(r.hasOwnProperty("spacedAccordionItems")&&(u=[].concat((0,o.Z)(u),["options.layout.spacedAccordionItems is only supported with the 'accordion' layout type."])),r.hasOwnProperty("radios")&&(u=[].concat((0,o.Z)(u),["options.layout.radios is only supported with the 'accordion' layout type."]))),u},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.wallets;if(!n||"string"==typeof n)return[];var r=(0,s.mC)({wallets:a.n4}),o=(0,s.Gu)(r,{wallets:n},t),i=o.warnings;return i},k=function(e,t){return e.length<=t?e:"".concat(e.slice(0,t).trim(),"...")},S=function(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=o.savePaymentMethod;if(!i)return{savePaymentMethodTruncated:{},warnings:[]};if(null==i||!i.messages)return{savePaymentMethodTruncated:i,warnings:[]};var a=[],c=null==i||null===(e=i.messages)||void 0===e?void 0:e.saveLabel;c&&c.length>100&&(a.push("savePaymentMethod.messages.saveLabel is over 100 characters and will be truncated."),c=k(c,100));var s=null==i||null===(t=i.messages)||void 0===t?void 0:t.setAsDefaultLabel;s&&s.length>100&&(a.push("savePaymentMethod.messages.setAsDefaultLabel is over 100 characters and will be truncated."),s=k(s,100));var u=null==i||null===(n=i.messages)||void 0===n?void 0:n.removeSavedDialogBody;return u&&u.length>500&&(a.push("savePaymentMethod.messages.removeSavedDialogBody is over 500 characters and will be truncated"),u=k(u,500)),null==c&&null==s&&null==u?{savePaymentMethodTruncated:i,warnings:[]}:{savePaymentMethodTruncated:(0,r.Z)((0,r.Z)({},i),{},{messages:(0,r.Z)((0,r.Z)((0,r.Z)({},null!=c?{saveLabel:c}:{}),null!=s?{setAsDefaultLabel:s}:{}),null!=u?{removeSavedDialogBody:u}:{})}),warnings:a}},E=function(e){var t=e.fields,n=e.validation;if(n)for(var r in n)if(!t||!t[r]||"always"!==t[r])throw new u.No("You cannot specify validation.".concat(r," without setting fields.").concat(r," to always."))},C=function(e){var t,n;if(null!==(t=e.defaultValues)&&void 0!==t&&t.phone&&"always"!==(null===(n=e.fields)||void 0===n?void 0:n.phone))throw new u.No("You cannot specify defaultValues.phone without setting fields.phone to always.")},P=function(e){var t,n,r,o,i;if((null!==(t=e.defaultValues)&&void 0!==t&&t.firstName||null!==(n=e.defaultValues)&&void 0!==n&&n.lastName)&&(null===(r=e.display)||void 0===r?void 0:r.name)!==p.ZV)throw new u.No("You cannot specify defaultValues.firstName or defaultValues.lastName without setting display.name to split.");if((null===(o=e.display)||void 0===o?void 0:o.name)===p.ZV&&null!==(i=e.defaultValues)&&void 0!==i&&i.name)throw new u.No("You cannot specify defaultValues.name when you have display.name set to split.")},A=function(e){var t=e.contacts,n=e.fields,r=e.validation;if(t){var o,i=(0,l.cx)(t,(function(e){return e.hasOwnProperty("phone")}));if(-1!==i)if("always"!==(null==n?void 0:n.phone)||"always"!==(null==r||null===(o=r.phone)||void 0===o?void 0:o.required))throw new u.No("You cannot specify contacts[".concat(i,"].phone without\n setting fields.phone to 'always' and validation.phone.required to 'always'.\n Phone options should only be 'always' when absolutely necessary."))}},I=function(e){if(!e)return{allowedCountries:null,warnings:[]};var t=[],n=[];return e.forEach((function(e){if("string"==typeof e){var r=m[e.toUpperCase()]||null;null!==r?t.push(r):n.push('invalid country code "'.concat(e,'"; "').concat(e,'" is not a valid 2-letter country code'))}else n.push('invalid value provided for country code "'.concat(e,'"; expected "string" but received "').concat(typeof e,'"'))})),{allowedCountries:t,warnings:n}}},3852:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var r=n(3324),o=function(){var e=[];return{addEventListener:function(t,n,r,o){t.addEventListener(n,r,o),e.push([t,n,r,o])},removeEventListener:function(t,n,o,i){t.removeEventListener(n,o,i),e=e.filter((function(e){return function(e,t){var n=(0,r.Z)(e,4),o=n[0],i=n[1],a=n[2],c=n[3],s=(0,r.Z)(t,4),u=s[0],l=s[1],p=s[2],d=s[3];return u!==o||l!==i||p!==a||!0===("object"==typeof c&&c?c.capture:c)!=(!0===("object"==typeof d&&d?d.capture:d))}([t,n,o,i],e)}))}}}},1849:function(e,t,n){"use strict";n.d(t,{U:function(){return o},d:function(){return i}});var r=n(6589),o=function(e){return new r.J((function(t){var n=setTimeout((function(){t({type:"error",error:{code:"redirect_error",message:"Failed to redirect to ".concat(e)},locale:"en"})}),6e4);window.addEventListener("pagehide",(function(){clearTimeout(n)})),window.top.location.href=e}))},i=function(e,t,n){e.report("redirect_error",{initiator:t,error:n.error})}},6010:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(1873),o=n(6992),i=n(1384),a=n(8425),c=(n(3637),n(3407),n(8037),function(e){return"data:image/svg+xml,".concat(encodeURIComponent(e.replace(/\n/g,"").replace(/\s+/g," ")))}),s=function(e){switch(e){case"visa":return c(o);case"amex":return c(i);case"mastercard":return c(a);case"unionpay":case"discover":case"jcb":case"diners":case"unknown":case"elo":return c('');default:return(0,r.Rz)(e)}}},6977:function(e,t,n){"use strict";n.d(t,{G2:function(){return p},O3:function(){return u},PA:function(){return a},QS:function(){return i},RY:function(){return s},e3:function(){return c},mD:function(){return l}});var r=n(1413),o=n(1873),i=(n(73),"spc"),a=function(e,t){switch(e.type){case"object":return{paymentIntent:e.object};case"error":var n=t?{payment_intent:t}:{};return{error:(0,r.Z)((0,r.Z)({},n),e.error)};default:return(0,o.Rz)(e)}},c=function(e,t){switch(e.type){case"error":return{error:(0,r.Z)((0,r.Z)({},t?{setup_intent:t}:{}),e.error)};case"object":return{setupIntent:e.object};default:return(0,o.Rz)(e)}},s=function(e){var t=e.trim().match(/^((seti|pi)_[^_]+)_secret_[^-]+$/);return t?"pi"===t[2]?{id:t[1],clientSecret:t[0],type:"PAYMENT_INTENT"}:{id:t[1],clientSecret:t[0],type:"SETUP_INTENT"}:null},u=function(e){return"payment_intent"===e.object?{id:e.id,clientSecret:e.client_secret,type:"PAYMENT_INTENT"}:{id:e.id,clientSecret:e.client_secret,type:"SETUP_INTENT"}},l=function(e){return"requires_source_action"===e||"requires_action"===e},p=function(e){return"requires_source_action"===e.status||"requires_action"===e.status?e.next_action:null}},6580:function(e,t,n){"use strict";n.d(t,{NY:function(){return r},YR:function(){return s},Z4:function(){return c},_N:function(){return o},jo:function(){return i},no:function(){return u}});var r={webauthn:"W",spc:"S",spcEnrollmentWebauthnAuthentication:"SE/WA"},o=function(e){var t=e.webauthnEligible,n=e.configurationType;return t&&(n===r.webauthn||n===r.spcEnrollmentWebauthnAuthentication)},i=function(e){var t=e.spcEligible,n=e.configurationType;return t&&n===r.spc},a=function(e){return btoa(String.fromCharCode.apply(null,new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},c=function(e){return atob(e.replace(/-/g,"+").replace(/_/g,"/"))},s=function(e){var t=c(e);return Uint8Array.from(t,(function(e){return e.charCodeAt(0)}))},u=function(e){return{type:"public-key",id:e.id,raw_id:e.id,response:{authenticator_data:a(e.response.authenticatorData),client_data_json:a(e.response.clientDataJSON),signature:a(e.response.signature)}}}},2141:function(e,t,n){"use strict";n.d(t,{J$:function(){return r.J}});var r=n(4832)},4832:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r={AE:"AE",AT:"AT",AU:"AU",BE:"BE",BG:"BG",BR:"BR",CA:"CA",CH:"CH",CI:"CI",CR:"CR",CY:"CY",CZ:"CZ",DE:"DE",DK:"DK",DO:"DO",EE:"EE",ES:"ES",FI:"FI",FR:"FR",GB:"GB",GI:"GI",GR:"GR",GT:"GT",HK:"HK",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IN:"IN",IT:"IT",JP:"JP",LI:"LI",LT:"LT",LU:"LU",LV:"LV",MT:"MT",MX:"MX",MY:"MY",NL:"NL",NO:"NO",NZ:"NZ",PE:"PE",PH:"PH",PL:"PL",PT:"PT",RO:"RO",SE:"SE",SG:"SG",SI:"SI",SK:"SK",SN:"SN",TH:"TH",TT:"TT",US:"US",UY:"UY"},o=Object.keys(r)},3930:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r="stripe-js-one-click-authn"},4659:function(e,t,n){"use strict";n.d(t,{Lv:function(){return i},M4:function(){return r},MJ:function(){return o},uN:function(){return a}});var r={checkout_beta_2:"checkout_beta_2",checkout_beta_3:"checkout_beta_3",checkout_beta_4:"checkout_beta_4",checkout_beta_testcards:"checkout_beta_testcards",payment_intent_beta_1:"payment_intent_beta_1",payment_intent_beta_2:"payment_intent_beta_2",payment_intent_beta_3:"payment_intent_beta_3",google_pay_beta_1:"google_pay_beta_1",acss_debit_beta_1:"acss_debit_beta_1",acss_debit_beta_2:"acss_debit_beta_2",afterpay_clearpay_setup_intents_beta:"afterpay_clearpay_setup_intents_beta",bacs_debit_beta:"bacs_debit_beta",fpx_bank_beta_1:"fpx_bank_beta_1",ideal_pm_beta_1:"ideal_pm_beta_1",line_items_beta_1:"line_items_beta_1",meta_pay_beta_1:"meta_pay_beta_1",mobilepay_pm_beta_1:"mobilepay_pm_beta_1",oxxo_pm_beta_1:"oxxo_pm_beta_1",revolut_pay_pm_beta_1:"revolut_pay_pm_beta_1",sepa_pm_beta_1:"sepa_pm_beta_1",klarna_pm_beta_1:"klarna_pm_beta_1",tax_product_beta_1:"tax_product_beta_1",wechat_pay_pm_beta_1:"wechat_pay_pm_beta_1",wechat_pay_pm_beta_2:"wechat_pay_pm_beta_2",checkout_beta_locales:"checkout_beta_locales",stripe_js_beta_locales:"stripe_js_beta_locales",upi_beta_1:"upi_beta_1",issuing_elements_1:"issuing_elements_1",issuing_elements_2:"issuing_elements_2",return_intents_beta_1:"return_intents_beta_1",netbanking_beta_1:"netbanking_beta_1",netbanking_bank_beta_1:"netbanking_bank_beta_1",instant_debits_beta_1:"instant_debits_beta_1",link_beta_1:"link_beta_1",link_beta_2:"link_beta_2",link_beta_3:"link_beta_3",link_default_integration_beta_1:"link_default_integration_beta_1",link_default_integration_beta_2:"link_default_integration_beta_2",payment_element_beta_1:"payment_element_beta_1",elements_customers_beta_1:"elements_customers_beta_1",elements_saved_payment_methods_beta_1:"elements_saved_payment_methods_beta_1",card_country_event_beta_1:"card_country_event_beta_1",id_bank_transfer_beta_1:"id_bank_transfer_beta_1",id_bank_transfer_beta_2:"id_bank_transfer_beta_2",us_bank_account_beta_2:"us_bank_account_beta_2",cup_apple_pay_beta_1:"cup_apple_pay_beta_1",nz_bank_account_beta_1:"nz_bank_account_beta_1",payment_element_apple_pay_beta_1:"payment_element_apple_pay_beta_1",link_autofill_modal_beta_1:"link_autofill_modal_beta_1",shipping_address_element_beta_1:"shipping_address_element_beta_1",process_order_beta_1:"process_order_beta_1",server_side_confirmation_beta_1:"server_side_confirmation_beta_1",cart_beta_1:"cart_beta_1",pay_by_bank_beta_1:"pay_by_bank_beta_1",blocked_card_brands_beta_1:"blocked_card_brands_beta_1",blocked_card_brands_beta_2:"blocked_card_brands_beta_2",payment_element_disable_card_country_zip_validations_beta_1:"payment_element_disable_card_country_zip_validations_beta_1",ume_beta_1:"ume_beta_1",ume_beta_2:"ume_beta_2",ume_beta_3:"ume_beta_3",payment_method_messaging_autopm_beta_1:"payment_method_messaging_autopm_beta_1",networks_change_1:"networks_change_1",express_checkout_element_beta_1:"express_checkout_element_beta_1",pay_button_element_beta_1:"pay_button_element_beta_1",link_in_card_element_beta_1:"link_in_card_element_beta_1",link_in_card_element_returning_user_beta_1:"link_in_card_element_returning_user_beta_1",payment_element_vertical_layout_beta_1:"payment_element_vertical_layout_beta_1",elements_enable_deferred_intent_beta_1:"elements_enable_deferred_intent_beta_1",elements_enable_deferred_intent_beta_2:"elements_enable_deferred_intent_beta_2",enable_stripe_update_api_key_beta_0:"enable_stripe_update_api_key_beta_0",cartes_bancaires_apple_pay_beta_1:"cartes_bancaires_apple_pay_beta_1",payment_request_button_two_button_beta_1:"payment_request_button_two_button_beta_1",enable_wallet_domain_registration_beta_1:"enable_wallet_domain_registration_beta_1",embedded_checkout_beta_1:"embedded_checkout_beta_1",custom_checkout_beta_1:"custom_checkout_beta_1"},o=Object.freeze({netbankingBank:"netbanking_bank_beta_1",shippingAddress:["shipping_address_element_beta_1","link_beta_1","link_beta_2","link_beta_3"],cart:"cart_beta_1",unifiedMessage:["ume_beta_1","ume_beta_2"]}),i=Object.keys(r),a=function(e,t){return Array.isArray(t)?t.some((function(t){return e.indexOf(t)>-1})):(null==e?void 0:e.indexOf(t))>-1}},8846:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(9062),o=n(6617),i=n(1873),a=n(4659),c=window.location.hash.substring(1).split("?")[0],s=(0,i.ld)((0,i.mC)({betas:(0,i.Wc)((0,i.CT)(i.kw.apply(void 0,(0,r.Z)(a.Lv))),(function(){return[]}))}),(0,o.vB)(c),"internal"),u="valid"===s.type?s.value.betas:[]},7792:function(e,t,n){"use strict";n.d(t,{Lv:function(){return o.Lv},M4:function(){return o.M4},MJ:function(){return o.MJ},P3:function(){return a.P3},dZ:function(){return i.d},jk:function(){return a.jk},uN:function(){return o.uN},ub:function(){return r.u}});var r=n(8846),o=n(4659),i=n(7450),a=n(6608)},7450:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(4659),o=function(e){var t=[],n=[];if(e){if(-1!==e.indexOf(r.M4.blocked_card_brands_beta_1)&&-1!==e.indexOf(r.M4.blocked_card_brands_beta_2))return{validBetas:t,betaError:"The following betas are incompatible for Stripe() parameter:\n\n- ".concat(r.M4.blocked_card_brands_beta_1,"\n- ").concat(r.M4.blocked_card_brands_beta_2,"\n\n Please remove ").concat(r.M4.blocked_card_brands_beta_1,".")};e.forEach((function(e){r.Lv.indexOf(e)>-1?t.push(r.M4[e]):n.push(e)}))}if(n.length>0){var o="The following betas are unrecognized for Stripe() parameter:\n\n- ".concat(n.join("\n- "),"\n\n They are either invalid or expired betas, please remove these beta flags to prevent future integration issues.");return{validBetas:t,betaWarning:o}}return{validBetas:t}}},6608:function(e,t,n){"use strict";n.d(t,{P3:function(){return i},jk:function(){return a}});var r,o=n(4659),i=["fr-CA"],a=(r=i,function(e,t){return(0,o.uN)(t,o.M4.stripe_js_beta_locales)||-1===r.indexOf(e)?e:"auto"})},9776:function(e,t,n){"use strict";n.d(t,{sV:function(){return b},j3:function(){return P},fL:function(){return j},G9:function(){return E},Bh:function(){return _},P0:function(){return h},PB:function(){return A},D$:function(){return I},D1:function(){return k},JW:function(){return y},JC:function(){return T},NK:function(){return R},ZR:function(){return M},q$:function(){return g},Ah:function(){return v},cE:function(){return N},s$:function(){return w},Gx:function(){return O},xz:function(){return S},Wt:function(){return C},x5:function(){return x},gG:function(){return L},UT:function(){return B}});var r=function(e){return/Edge\//i.test(e)},o=function(e){return/Edg\//i.test(e)},i=function(e){return/(MSIE ([0-9]{1,}[.0-9]{0,})|Trident\/)/i.test(e)},a=function(e){return/SamsungBrowser/.test(e)},c=function(e,t){return(/iPhone/i.test(e)||s(e,t))&&!i(e)},s=function(e,t){return(/iPad/i.test(e)||/Macintosh/i.test(e)&&(t>0||"ontouchstart"in window))&&!i(e)},u=function(e){return/Opera Mini/i.test(e)},l=function(e){return/^((?!chrome|android).)*safari/i.test(e)&&!a(e)},p=function(e){return/Android/i.test(e)&&!i(e)},d="undefined"!=typeof window,m=d?window.navigator.maxTouchPoints:0,f=d?window.navigator.userAgent:"",h=(d&&window.navigator.platform,r(f)),_=o(f),y=(/Edge\/((1[0-6]\.)|0\.)/i.test(f),i(f)),v=(function(e){/MSIE ([0-9]{1,}[.0-9]{0,})/i.test(e)}(f),c(f,m)),g=(s(f,m),function(e,t){return c(e,t)||p(e)}(f,m)),b=p(f),w=(function(e){/Android 4\./i.test(e)&&!/Chrome/i.test(e)&&p(e)}(f),l(f)),k=(function(e,t){l(e)&&c(e,t)}(f,m),function(e){return/Firefox\//i.test(e)}(f)),S=(function(e){/Firefox\/(50|51|[0-4]?\d)([^\d]|$)/i.test(e)}(f),a(f)),E=function(e){return/Chrome\//i.test(e)}(f),C=(function(e){/Chrome\/(6[6-9]|[7-9]\d+|[1-9]\d{2,})/i.test(e)}(f),function(e){/Chrome\/(7[4-9]|[8-9]\d+|[1-9]\d{2,})/i.test(e)}(f),function(e){return/AppleWebKit/i.test(e)&&!/Chrome/i.test(e)&&!r(e)&&!i(e)}(f)),P=function(e){return/Chrome/i.test(e)&&!r(e)}(f),A=(function(e){/CriOS/i.test(e)}(f),function(e){/FxiOS/i.test(e)}(f),function(e){return/EdgiOS/i.test(e)}(f)),I=function(e){return/\belectron\b/i.test(e)}(f),N=u(f),M=function(e){return/Macintosh.*AppleWebKit(?!.*Safari)/i.test(e)}(f),T=function(e){return/Safari Line/i.test(e)}(f),R=function(e){return/Pinterest\/iOS/i.test(e)}(f),O=w&&"download"in document.createElement("a"),j=d&&!!window.navigator.brave&&"function"==typeof window.navigator.brave.isBrave,Z=d&&window.navigator&&"standalone"in window.navigator&&window.navigator.standalone,x=function(e,t){return/(iPhone|iPod|iPad).*AppleWebKit((?!.*Safari)|(.*\([^)]*like[^)]*Safari[^)]*\)))/i.test(e)||/(Macintosh).*AppleWebKit((?!.*Safari)|(.*\([^)]*like[^)]*Safari[^)]*\)))/i.test(e)&&s(e,t)}(f,m)||function(e){return p(e)&&/wv|Version\/\d+\.\d+/.test(e)&&!u(e)}(f)||function(e){return/FBAN/.test(e)||/FBAV/.test(e)}(f)||Z,L=(E&&function(e){/\bWindows\b/i.test(e)||(/\bAndroid\b/i.test(e)||(/\biPhone|iPad\b/i.test(e)||(/\bMac OS\b/i.test(e)||(/\bCrOS\b/i.test(e)||/\bLinux\b/i.test(e)))))}(f),function(){return!(x||I||M||j||R||T||A||N||window.crossOriginIsolated)}),B=function(){return(window.navigator.languages||[])[0]||window.navigator.userLanguage||window.navigator.language||""}},2024:function(e,t,n){"use strict";n.d(t,{CE:function(){return _},G:function(){return i},PM:function(){return w},Q8:function(){return m},TS:function(){return b},VO:function(){return l},Xy:function(){return u},cx:function(){return c},dq:function(){return p},ei:function(){return h},l2:function(){return f},qk:function(){return d},sE:function(){return a}});var r=n(7462),o=n(6589),i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n@]+@[^\s<>@.]+(\.[^\s<>@.]+)+$/,k="stripe.js/".concat(c),S="".concat(k,"; stripe-js-v3/").concat(c),E=("".concat(S,"; raw-card"),"".concat(S,"; raw-stripe-js-api"),"".concat(S,"; create-source-card-data"),"checkout"),C=("".concat(S,"; ").concat(E),"".concat(S,"; ").concat("payment-link","; ").concat(E),"".concat(S,"; hip"),"".concat(S,"; payment-element")),P=("".concat(C,"; deferred-intent"),"".concat(S,"; express-checkout-element"),"dashboard"),A="hip",I={elements_session:"elements_session",elements_assignment:"elements_assignment"}},4020:function(e,t,n){"use strict";n.d(t,{Fe:function(){return i},mo:function(){return o}});var r={bif:1,clp:1,djf:1,gnf:1,jpy:1,kmf:1,krw:1,mga:1,pyg:1,rwf:1,vnd:1,vuv:1,xaf:1,xof:1,xpf:1,bhd:1e3,jod:1e3,kwd:1e3,omr:1e3,tnd:1e3},o=function(e){var t=r[e.toLowerCase()]||100;return{unitSize:1/t,fractionDigits:Math.ceil(Math.log(t)/Math.log(10))}},i=function(e,t){var n=o(t),r=n.unitSize,i=n.fractionDigits;return(e*r).toFixed(i)}},6241:function(e,t,n){"use strict";n.d(t,{Fe:function(){return r.Fe},QT:function(){return o.Q},mo:function(){return r.mo}});var r=n(4020),o=n(462)},462:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=["aed","afn","all","amd","ang","aoa","ars","aud","awg","azn","bam","bbd","bdt","bgn","bhd","bif","bmd","bnd","bob","brl","bsd","btn","bwp","byn","byr","bzd","cad","cdf","chf","clf","clp","cny","cop","crc","cuc","cup","cve","czk","djf","dkk","dop","dzd","egp","ern","etb","eur","fjd","fkp","gbp","gel","ghs","gip","gmd","gnf","gtq","gyd","hkd","hnl","htg","huf","idr","ils","inr","iqd","irr","isk","jmd","jod","jpy","kes","kgs","khr","kmf","kpw","krw","kwd","kyd","kzt","lak","lbp","lkr","lrd","lsl","ltl","lvl","lyd","mad","mdl","mga","mkd","mmk","mnt","mop","mro","mur","mvr","mwk","mxn","myr","mzn","nad","ngn","nio","nok","npr","nzd","omr","pab","pen","pgk","php","pkr","pln","pyg","qar","ron","rsd","rub","rwf","sar","sbd","scr","sdg","sek","sgd","shp","skk","sll","sos","srd","ssp","std","svc","syp","szl","thb","tjs","tmt","tnd","top","try","ttd","twd","tzs","uah","ugx","usd","uyu","uzs","vef","vnd","vuv","wst","xaf","xag","xau","xcd","xdr","xof","xpf","yer","zar","zmk","zmw","btc","jep","eek","ghc","mtl","tmm","yen","zwd","zwl","zwn","zwr"]},9608:function(e,t,n){"use strict";n.d(t,{Tf:function(){return a}});var r="1.2em",o="14px",i=function(e){var t=e.split(" ").map((function(e){return parseInt(e.trim(),10)}));return 1===t.length||2===t.length?2*t[0]:3===t.length||4===t.length?t[0]+t[2]:0},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",a=i(n);if("string"==typeof e&&/^[0-9.]+px$/.test(e)){var c=parseFloat(e.toString().replace(/[^0-9.]/g,""));return"".concat(c+a,"px")}var s,u=parseFloat(e.toString().replace(/[^0-9.]/g,"")),l=parseFloat(o.replace(/[^0-9.]/g,"")),p=parseFloat(t.toString().replace(/[^0-9.]/g,""));if("string"==typeof t&&/^(\d+|\d*\.\d+)px$/.test(t))s=p;else if("string"==typeof t&&/^(\d+|\d*\.\d+)em$/.test(t))s=p*l;else if("string"==typeof t&&/^(\d+|\d*\.\d+)%$/.test(t))s=p/100*l;else{if("string"!=typeof t||!/^[\d.]+$/.test(t)&&!/^\d*\.(px|em|%)$/.test(t))return"100%";s=l}var d=u*s+a,m="".concat(d,"px");return/^[0-9.]+px$/.test(m)?m:"100%"}},133:function(e,t,n){"use strict";n.d(t,{W3:function(){return u},dh:function(){return c},gl:function(){return s}});var r=n(274),o=n(2024),i=n(8357),a=function(){return Array.prototype.slice.call(document.querySelectorAll("a[href], area[href], input:not([disabled]),\n select:not([disabled]), textarea:not([disabled]), button:not([disabled]),\n object, embed, *[tabindex], *[contenteditable]")).filter((function(e){var t=e.getAttribute("tabindex"),n=!t||parseInt(t,10)>=0,r=e.getBoundingClientRect(),o=(0,i.D)(e),a=r.width>0&&r.height>0&&o&&"hidden"!==o.getPropertyValue("visibility");return n&&a}))},c=function(e,t){var n=a();return n[(0,o.cx)(n,(function(t){return t===e||e.contains(t)}))+("previous"===t?-1:1)]},s=function(e,t){return e.then((function(){return(0,o.qk)(t,(function(e){var t=e.element,n=e.tabIndex;""===n?t.removeAttribute("tabindex"):t.setAttribute("tabindex",n)}))}))},u=function(e){var t=[],n=(0,o.qk)(document.querySelectorAll("*"),(function(n){var r=n.getAttribute("tabindex")||"";e!==n&&(n.tabIndex=-1),t.push({element:n,tabIndex:r})})),i=(0,r.$M)((function(){s(n,t)}));return{lockedPromise:n,lockedElements:t,restoreFocus:i}}},7855:function(e,t,n){"use strict";n(6617),n(3534)},8357:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r=function(e,t){return e?window.getComputedStyle(e,t):null}},3534:function(e,t,n){"use strict";n.d(t,{Hb:function(){return l},Ql:function(){return d},SV:function(){return u},Xq:function(){return p},d3:function(){return _},mb:function(){return a},qW:function(){return h},yq:function(){return c}});var r=n(3324),o=n(8812),i=n(274),a=function(e,t){var n={},o={};e.className.split(/\s+/).forEach((function(e){e&&(n[e]=!0)})),t.forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],a=t[1];i.split(/\s+/).forEach((function(e){e&&(o[e]=o[e]||a,n[e]=o[e])}))})),e.className=Object.keys(n).filter((function(e){return n[e]})).join(" ")},c=function(e,t){e.style.cssText=Object.keys(t).map((function(e){return"".concat(e,": ").concat(t[e]," !important;")})).join(" ")},s={border:"none",margin:"0",padding:"0",width:"1px","min-width":"100%",overflow:"hidden",display:"block",visibility:"hidden",position:"fixed",height:"1px","pointer-events":"none","user-select":"none"},u=function(e){c(e,s)},l=function(e){try{return window.parent.frames[e]}catch(e){return null}},p=function(){if(!document.body)throw new o.No("Stripe.js requires that your page has a element.");return document.body},d=function(e){return setTimeout(e,16)},m=function(e,t){return!!e.documentElement&&e.documentElement.contains(t)},f="isConnected"in window.Node.prototype?function(e,t){return t.isConnected&&t.ownerDocument===e}:m,h=function(e,t){return!m(e,t)&&f(e,t)},_=function(e,t){if(window.IntersectionObserver)if(0===e.clientHeight){var n=(0,i.$M)(t);if(window.ResizeObserver){var r=new ResizeObserver((function(t){t.forEach((function(t){0!==t.contentRect.height&&(r.unobserve(e),n())}))}));r.observe(e)}else{var o=new IntersectionObserver((function(t){t.forEach((function(t){t.intersectionRatio>0&&(o.unobserve(e),n())}))}),{root:document.documentElement});o.observe(e)}}else t()}},2583:function(e,t,n){"use strict";n.d(t,{BO:function(){return u.BO},Dx:function(){return i.D},Hb:function(){return a.Hb},MV:function(){return s.M},Ql:function(){return a.Ql},SV:function(){return a.SV},Tf:function(){return r.Tf},W3:function(){return o.W3},Xq:function(){return a.Xq},a0:function(){return c.a},d3:function(){return a.d3},dh:function(){return o.dh},gl:function(){return o.gl},mb:function(){return a.mb},qW:function(){return a.qW},w3:function(){return l.x},xc:function(){return u.xc},xz:function(){return u.xz},yq:function(){return a.yq}});var r=n(9608),o=n(133),i=(n(7855),n(8357)),a=n(3534),c=n(877),s=n(3765),u=n(5784),l=n(2723);n(4544)},877:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=["button","checkbox","file","hidden","image","submit","radio","reset"],o=function(e){var t=e.tagName;if(e.isContentEditable||"TEXTAREA"===t)return!0;if("INPUT"!==t)return!1;var n=e.getAttribute("type");return-1===r.indexOf(n)}},4544:function(){"use strict"},3765:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(274),o=n(3534),i=function(){var e=(0,o.Xq)(),t=e.style.overflow;e.style.overflow="hidden";var n={passive:!1},i=function(e){return e.preventDefault()},a=function(){};return window.addEventListener("touchmove",a,n),e.addEventListener("touchstart",a,n),e.addEventListener("touchmove",i,n),(0,r.$M)((function(){e.style.overflow=t||"",window.removeEventListener("touchmove",a,n),e.removeEventListener("touchstart",a,n),e.removeEventListener("touchmove",i,n)}))}},5784:function(e,t,n){"use strict";n.d(t,{BO:function(){return i},xc:function(){return a},xz:function(){return r}});var r=function(){var e=document.querySelectorAll("meta[name=viewport][content]"),t=e[e.length-1];return t&&t instanceof HTMLMetaElement?t.content:""},o=function(e){return r().match(e)},i=function(e){o("width=device-width")||e('Elements requires "width=device-width" be set in your page\'s viewport meta tag.\n For more information: https://stripe.com/docs/js/appendix/viewport_meta_requirements')},a=function(e){o("minimum-scale=1")||e('The Financial Connections authentication flow requires "minimum-scale=1" to be set in your page\'s viewport meta tag.')}},2723:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(6589),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requiredStableFrames,o=void 0===n?3:n,a=t.timeout,c=void 0===a?5e3:a,s=t.isStable,u=void 0===s?i:s;return new r.J((function(t){var n=setTimeout(t,c),r=0,i=e.getBoundingClientRect();!function a(){requestAnimationFrame((function(){var c=e.getBoundingClientRect();u(i,c)?r++:r=0,r===o?(clearTimeout(n),t(e)):(i=c,a())}))}()}))},i=function(e,t){return e.height===t.height&&e.width===t.width}},4086:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(5671),o=n(136),i=n(9388),a=function(e){function t(e,o){var i;return(0,r.Z)(this,t),(i=n.call(this)).name="FetchError",i.type="fetch_error",i.message="Error fetching ".concat(o),i.requestUrl=o,"string"==typeof e?i.message+=": ".concat(e):(i.originalError=e,i.message+=": ".concat(e.message)),i}(0,o.Z)(t,e);var n=(0,i.Z)(t);return t}((0,n(7112).Z)(Error))},3973:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var r=n(5671),o=n(7326),i=n(136),a=n(9388),c=function(e){function t(e){var i;return(0,r.Z)(this,t),i=n.call(this,e),window.__stripeElementsController&&window.__stripeElementsController.reportIntegrationError(e),i.name="IntegrationError",Object.defineProperty((0,o.Z)(i),"message",{value:i.message,enumerable:!0}),i}(0,i.Z)(t,e);var n=(0,a.Z)(t);return t}((0,n(7112).Z)(Error))},8102:function(e,t,n){"use strict";var r=n(5671),o=n(136),i=n(9388);Error},51:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(5671),o=n(136),i=n(9388),a=function(e){function t(e){var o;return(0,r.Z)(this,t),(o=n.call(this,e)).name="NetworkError",o.type="network_error",o.requestUrl=e,o}(0,o.Z)(t,e);var n=(0,i.Z)(t);return t}((0,n(7112).Z)(Error))},8812:function(e,t,n){"use strict";n.d(t,{F7:function(){return i.F},No:function(){return o.N},kp:function(){return r.k}});var r=n(4086),o=n(3973),i=(n(8102),n(51))},5005:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(1413),o=n(6617),i=n(6589),a=n(8812),c=function(e){var t=e.data,n=e.contentType,r=void 0===n?"application/x-www-form-urlencoded":n,i=e.method,a=e.url,c="";return t&&"application/x-www-form-urlencoded"===r?c=(0,o.qC)(t):t&&"application/json"===r&&(c=JSON.stringify(t)),{requestUrl:"GET"===i&&c?"".concat(a,"?").concat(c):a,requestData:"GET"===i?"":c,contentType:r}},s=function(e){return new i.J((function(t,n){var o=e.method,s=e.headers,u=e.withCredentials,p=c(e),d=p.requestUrl,m=p.requestData,f=p.contentType,h=new XMLHttpRequest;u&&(h.withCredentials=u),h.open(o,d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Content-Type",f),h.json=function(){return new i.J((function(e,t){try{e(JSON.parse(h.responseText))}catch(e){t(new a.kp(e,d))}}))},s&&Object.keys(s).forEach((function(e){var t=s[e];"string"==typeof t&&h.setRequestHeader(e,t)})),h.onreadystatechange=function(){4===h.readyState&&(h.onreadystatechange=function(){},0===h.status?u?n(new a.F7(d)):l((0,r.Z)((0,r.Z)({},e),{},{withCredentials:!0})).then(t,n):t(h))};try{h.send(m)}catch(e){n(new a.kp(e,d))}}))},u=function e(t){return new i.J((function(n,o){var s=t.method,u=t.headers,l=void 0===u?{}:u,p=t.keepalive,d=t.withCredentials,m=t.priority,f=void 0===m?"auto":m,h=c(t),_=h.requestUrl,y=h.requestData,v={Accept:"application/json","Content-Type":h.contentType};l&&Object.keys(l).forEach((function(e){var t=l[e];"string"==typeof t&&(v[e]=t)})),window.fetch(_,{method:s,keepalive:p,headers:v,body:y||void 0,mode:"cors",credentials:d?"include":"omit",priority:f}).then((function(c){if(0===c.status){if(!d)return e((0,r.Z)((0,r.Z)({},t),{},{withCredentials:!0})).then(n,o);o(new a.F7(_))}return c.text().then((function(e){n({responseURL:c.url,status:c.status,json:function(){return i.J.resolve(JSON.parse(e))},getResponseHeader:function(e){return c.headers.get(e)||""},responseText:e})}))})).catch((function(e){o(new a.kp(e,_))}))}))},l=function(e){return"function"==typeof window.fetch?u(e):s(e)}},4217:function(e,t,n){"use strict";n.d(t,{h:function(){return r.h}});var r=n(5005)},2445:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r={CARD_ELEMENT:"CARD_ELEMENT",CONTROLLER:"CONTROLLER",METRICS_CONTROLLER:"METRICS_CONTROLLER",PAYMENT_REQUEST_ELEMENT:"PAYMENT_REQUEST_ELEMENT",PAYMENT_REQUEST_BROWSER:"PAYMENT_REQUEST_BROWSER",PAYMENT_REQUEST_GOOGLE_PAY:"PAYMENT_REQUEST_GOOGLE_PAY",IBAN_ELEMENT:"IBAN_ELEMENT",IDEAL_BANK_ELEMENT:"IDEAL_BANK_ELEMENT",P24_BANK_ELEMENT:"P24_BANK_ELEMENT",AUTHORIZE_WITH_URL:"AUTHORIZE_WITH_URL",STRIPE_3DS2_CHALLENGE:"STRIPE_3DS2_CHALLENGE",STRIPE_3DS2_FINGERPRINT:"STRIPE_3DS2_FINGERPRINT",AU_BANK_ACCOUNT_ELEMENT:"AU_BANK_ACCOUNT_ELEMENT",FPX_BANK_ELEMENT:"FPX_BANK_ELEMENT",LIGHTBOX_APP:"LIGHTBOX_APP",ISSUING_CARD_NUMBER_DISPLAY_ELEMENT:"ISSUING_CARD_NUMBER_DISPLAY_ELEMENT",ISSUING_CARD_COPY_BUTTON_ELEMENT:"ISSUING_CARD_COPY_BUTTON_ELEMENT",ISSUING_CARD_CVC_DISPLAY_ELEMENT:"ISSUING_CARD_CVC_DISPLAY_ELEMENT",ISSUING_CARD_EXPIRY_DISPLAY_ELEMENT:"ISSUING_CARD_EXPIRY_DISPLAY_ELEMENT",ISSUING_CARD_PIN_DISPLAY_ELEMENT:"ISSUING_CARD_PIN_DISPLAY_ELEMENT",EPS_BANK_ELEMENT:"EPS_BANK_ELEMENT",HCAPTCHA_APP:"HCAPTCHA_APP",NETBANKING_BANK_ELEMENT:"NETBANKING_BANK_ELEMENT",AFFIRM_MESSAGE_ELEMENT:"AFFIRM_MESSAGE_ELEMENT",AFFIRM_MESSAGE_MODAL_ELEMENT:"AFFIRM_MESSAGE_MODAL_ELEMENT",AFTERPAY_MESSAGE_MODAL_ELEMENT:"AFTERPAY_MESSAGE_MODAL_ELEMENT",PAYMENT_METHOD_MESSAGING_LEGACY_MODAL_ELEMENT:"PAYMENT_METHOD_MESSAGING_LEGACY_MODAL_ELEMENT",PAYMENT_METHOD_MESSAGING_MODAL_ELEMENT:"PAYMENT_METHOD_MESSAGING_MODAL_ELEMENT",AUTOCOMPLETE_SUGGESTIONS_ELEMENT:"AUTOCOMPLETE_SUGGESTIONS_ELEMENT",ACH_BANK_SEARCH_RESULTS_ELEMENT:"ACH_BANK_SEARCH_RESULTS_ELEMENT",INSTANT_DEBITS_APP:"INSTANT_DEBITS_APP",LINK_AUTHENTICATION_ELEMENT:"LINK_AUTHENTICATION_ELEMENT",PAYMENT_ELEMENT:"PAYMENT_ELEMENT",LINKED_ACCOUNTS_INNER:"LINKED_ACCOUNTS_INNER",WECHAT_PAY_INNER:"WECHAT_PAY_INNER",PAYNOW_INNER:"PAYNOW_INNER",BLIK_INNER:"BLIK_INNER",PIX_INNER:"PIX_INNER",PROMPTPAY_INNER:"PROMPTPAY_INNER",ADDRESS_ELEMENT:"ADDRESS_ELEMENT",LINK_AUTOFILL_MODAL:"LINK_AUTOFILL_MODAL",LINK_INFO_MODAL:"LINK_INFO_MODAL",GOOGLE_MAPS_APP:"GOOGLE_MAPS_APP",LOADER_UI_APP:"LOADER_UI_APP",CART_ELEMENT:"CART_ELEMENT",BACS_MANDATE_CONFIRMATION_APP:"BACS_MANDATE_CONFIRMATION_APP",BACS_CONFIRMATION_INNER:"BACS_CONFIRMATION_INNER",META_PAY_INNER:"META_PAY_INNER",EXPRESS_CHECKOUT_ELEMENT:"EXPRESS_CHECKOUT_ELEMENT",BUY_BUTTON_APP:"BUY_BUTTON_APP",LINK_BUTTON_FOR_CARD_ELEMENT:"LINK_BUTTON_FOR_CARD_ELEMENT",PAYMENT_METHOD_MESSAGING_ELEMENT:"PAYMENT_METHOD_MESSAGING_ELEMENT"}},262:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(9776),o=n(97),i=function(e){var t={frameborder:"0",allowTransparency:"true",scrolling:"no",role:"presentation"},n=!r.D1;if(n&&(t.allow="payment *"),"STRIPE_3DS2_CHALLENGE"===e){var i="publickey-credentials-get ".concat((0,o.x)());t.allow=n?"payment *; ".concat(i):i}if("PAYMENT_REQUEST_GOOGLE_PAY"===e){t.sandbox=["allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin"].join(" "),t.referrerpolicy="origin"}return t}},4044:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(1873),o=n(97),i=function(e){switch(e){case"CARD_ELEMENT":return(0,o.x)("elements-inner-card-27b81f53ea4eb72b73b8b2a5ccb38bf7.html");case"CONTROLLER":return(0,o.x)("controller-7790f4577a9ba310464977f9a987178b.html");case"METRICS_CONTROLLER":return(0,o.x)("m-outer-93afeeb17bc37e711759584dbfc50d47.html");case"PAYMENT_REQUEST_ELEMENT":return(0,o.x)("elements-inner-payment-request-204f23ac7924cf1b2bc4e1ad083c777e.html");case"PAYMENT_REQUEST_BROWSER":return(0,o.x)("payment-request-inner-browser-bbbfe109cd1902c58ffcc435174faf55.html");case"PAYMENT_REQUEST_GOOGLE_PAY":return(0,o.x)("payment-request-inner-google-pay-b0d15d5c0d57b7680e1e1f9bbad5cbdd.html");case"IBAN_ELEMENT":return(0,o.x)("elements-inner-iban-3a5f65c3d8d46a2d6500bb9eb85cc58a.html");case"IDEAL_BANK_ELEMENT":return(0,o.x)("elements-inner-ideal-bank-6ec5e1e05d0c81c51ec8214ce93725d0.html");case"P24_BANK_ELEMENT":return(0,o.x)("elements-inner-p24-bank-da1ecd40ec3016097d10f15d46e4fdce.html");case"AUTHORIZE_WITH_URL":return(0,o.x)("authorize-with-url-inner-ac656b70ec22d50ce23cb96a2e8bb774.html");case"STRIPE_3DS2_CHALLENGE":return(0,o.x)("three-ds-2-challenge-edbbaaf5a3f609abf82a369e77be017d.html");case"STRIPE_3DS2_FINGERPRINT":return(0,o.x)("three-ds-2-fingerprint-706ddc75142154f27b0ee68b4aaab1c1.html");case"AU_BANK_ACCOUNT_ELEMENT":return(0,o.x)("elements-inner-au-bank-account-b359972fa5e0d95669b92da16dc25e2a.html");case"FPX_BANK_ELEMENT":return(0,o.x)("elements-inner-fpx-bank-3f4e144bd2566fd0edcea3717f6cc0ae.html");case"LIGHTBOX_APP":return(0,o.x)("lightbox-inner-388c60a7cc65521321476cbddd65315b.html");case"ISSUING_CARD_NUMBER_DISPLAY_ELEMENT":return(0,o.x)("elements-inner-issuing-card-number-display-d37ffabb33cefb56919ca580649e3519.html");case"ISSUING_CARD_COPY_BUTTON_ELEMENT":return(0,o.x)("elements-inner-issuing-card-copy-button-e1e4f7e2a8def70bc5f0eae1cf102f0e.html");case"ISSUING_CARD_CVC_DISPLAY_ELEMENT":return(0,o.x)("elements-inner-issuing-card-cvc-display-50a9e09abdb8ad020738ac4295c9dd18.html");case"ISSUING_CARD_EXPIRY_DISPLAY_ELEMENT":return(0,o.x)("elements-inner-issuing-card-expiry-display-b403d716544370c3b13641c1e548f061.html");case"ISSUING_CARD_PIN_DISPLAY_ELEMENT":return(0,o.x)("elements-inner-issuing-card-pin-display-4e63522935a99096107403cda1600753.html");case"EPS_BANK_ELEMENT":return(0,o.x)("elements-inner-eps-bank-0ddb150061f05f65532f7f91d4098120.html");case"HCAPTCHA_APP":return(0,o.x)("hcaptcha-inner-339f57a73441240c4b59f2c93bf050b2.html");case"NETBANKING_BANK_ELEMENT":return(0,o.x)("elements-inner-netbanking-bank-ecf8c31a647977d73e82f4cda87656fc.html");case"AFFIRM_MESSAGE_ELEMENT":return(0,o.x)("elements-inner-affirm-message-c85d84ded313edf73d27ac2a5d45cd2d.html");case"AFFIRM_MESSAGE_MODAL_ELEMENT":return(0,o.x)("elements-inner-affirm-message-modal-e8860bc24315fb291a640065b7c7ece0.html");case"AFTERPAY_MESSAGE_MODAL_ELEMENT":return(0,o.x)("elements-inner-afterpay-message-modal-1f0393109e8e2247449e7da4474f095e.html");case"PAYMENT_METHOD_MESSAGING_LEGACY_MODAL_ELEMENT":return(0,o.x)("elements-inner-payment-method-messaging-legacy-modal-55a0958c9a636926b5c991620a503968.html");case"PAYMENT_METHOD_MESSAGING_MODAL_ELEMENT":return(0,o.x)("elements-inner-payment-method-messaging-modal-1d52ab73e7a711938fddb08dd508f3e7.html");case"META_PAY_INNER":return(0,o.x)("meta-pay-inner-cca7c329d4b4afebc6b7c86cfdba9ae8.html");case"INSTANT_DEBITS_APP":return(0,o.x)("instant-debits-app-8a81874f2d98daa8f6b629f98babfa61.html");case"LINK_AUTHENTICATION_ELEMENT":return(0,o.x)("elements-inner-authentication-141118954bf60b146d3aafd15972b069.html");case"PAYMENT_ELEMENT":return(0,o.x)("elements-inner-payment-04562ab443ec65b1c986c8bd436dd2b6.html");case"LINKED_ACCOUNTS_INNER":return(0,o.x)("linked-accounts-inner-436ed447aa275bf9d4b6a4498ea99eea.html");case"WECHAT_PAY_INNER":case"PAYNOW_INNER":case"PIX_INNER":case"PROMPTPAY_INNER":case"BACS_CONFIRMATION_INNER":return(0,o.x)("");case"BLIK_INNER":return(0,o.x)("blik-inner-c54190cc9a634f7bc799418a37ea791a.html");case"ADDRESS_ELEMENT":return(0,o.x)("elements-inner-address-5d5199c5f793c1cfd513e4e3c2115893.html");case"LINK_AUTOFILL_MODAL":return(0,o.x)("link-autofill-modal-inner-6f94686124a21ff0a92759750a63c67a.html");case"GOOGLE_MAPS_APP":return(0,o.x)("google-maps-inner-9a2fd1e7fb11b07b92ce9b9d405a6f74.html");case"AUTOCOMPLETE_SUGGESTIONS_ELEMENT":return(0,o.x)("elements-inner-autocomplete-suggestions-4a01cdd1dfd88dbd52658e3f71c2b072.html");case"ACH_BANK_SEARCH_RESULTS_ELEMENT":return(0,o.x)("elements-inner-ach-bank-search-results-2847f429fb4cb8ab118ffe867b3f247a.html");case"LINK_INFO_MODAL":return(0,o.x)("elements-inner-link-info-modal-14942722073221c93f4fd25c14cce14a.html");case"LOADER_UI_APP":return(0,o.x)("elements-inner-loader-ui-c47c746f313ca083e6e289eba2e3fa4c.html");case"CART_ELEMENT":return(0,o.x)("elements-inner-cart-dc69c0df09ebe1848ffb1a08d09b69bf.html");case"BACS_MANDATE_CONFIRMATION_APP":return(0,o.x)("bacs-mandate-confirmation-inner-8a67738d4e88525a6328c9cff843035c.html");case"EXPRESS_CHECKOUT_ELEMENT":return(0,o.x)("elements-inner-express-checkout-80574aafb2f7efb4fa59de6b3f084881.html");case"BUY_BUTTON_APP":return(0,o.x)("buy-button-app.html");case"LINK_BUTTON_FOR_CARD_ELEMENT":return(0,o.x)("elements-inner-link-button-for-card-a9a32b65f4a2d2219a08ebe64aa6293b.html");case"PAYMENT_METHOD_MESSAGING_ELEMENT":return(0,o.x)("elements-inner-payment-method-messaging-61aeca758cab69b38fdd7e9f9347fefd.html");default:return(0,r.Rz)(e)}}},97:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var r=function(e){return"".concat("https://web.archive.org/web/20230604193106/https://js.stripe.com/v3/").concat(e||"")}},755:function(e,t,n){"use strict";n.d(t,{$G:function(){return a.$},NC:function(){return o.N},i7:function(){return r.i},jr:function(){return c.j},oi:function(){return a.o},xS:function(){return i.x}});var r=n(262),o=n(2445),i=n(97),a=n(5311),c=n(6810)},5311:function(e,t,n){"use strict";n.d(t,{$:function(){return c},o:function(){return a}});var r=n(1413),o=(n(1873),n(73)),i=n(2583),a=(n(9543),function(e){var t,n=e.controllerId,a=e.frameId,c=e.targetOrigin,s=e.type,u=c;if("controller"===s?t=(0,i.Hb)(a):"group"===s?t=(0,i.Hb)(n):"outer"===s||"hosted"===s?t=window.frames[a]:"inner"===s&&(u=u||"*",t=window.parent),u=u||o.jQ,t&&"function"==typeof t.postMessage){var l=e.message.delegate?{targetOrigin:u,delegate:e.message.delegate}:u;t.postMessage(JSON.stringify((0,r.Z)((0,r.Z)({},e),{},{__stripeJsV3:!0})),l)}}),c=function(e){try{var t="string"==typeof e?JSON.parse(e):e;return t.__stripeJsV3?t:null}catch(e){return null}}},6810:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});n(73);var r=function(e){return e}},8148:function(e,t,n){"use strict";n.d(t,{i3:function(){return r},pM:function(){return o}});var r=function(e){return e.replace(/_./g,(function(e){return e[1].toUpperCase()}))},o=function(e){var t=e.trim().toLowerCase();return t?"".concat(t[0].toUpperCase()).concat(t.substring(1).replace(/ +./g,(function(e){return" ".concat(e.slice(-1).toUpperCase())}))):""}},274:function(e,t,n){"use strict";n.d(t,{AO:function(){return a},HP:function(){return i},tN:function(){return s},$M:function(){return c},_v:function(){return u},i3:function(){return l.i3},pM:function(){return l.pM}});var r=n(8812),o=n(6589),i=function(e){var t={},n={};return function(r){var o="_".concat(r);if("string"==typeof r&&void 0!==t[o])return t[o];if("number"==typeof r&&void 0!==n[o])return n[o];var i=e(r);return"string"==typeof r&&(t[o]=i),"number"==typeof r&&(n[o]=i),i}},a=function(e,t){var n=!1;return function(){if(n)throw new r.No(t);n=!0;try{return e.apply(void 0,arguments).then((function(e){return n=!1,e}),(function(e){throw n=!1,e}))}catch(e){throw n=!1,e}}},c=function(e){var t=e;return function(){t&&(t.apply(void 0,arguments),t=null)}},s=function(e,t){return e.reduce((function(e,n){return e.then((function(e){return"SATISFIED"===e.type?e:n().then((function(e){return t(e)?{type:"SATISFIED",value:e}:{type:"UNSATISFIED"}}))}))}),o.J.resolve({type:"UNSATISFIED"}))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new o.J((function(t){return setTimeout(t,e)}))},l=n(8148);n(9776)},5558:function(e,t,n){"use strict";n.d(t,{To:function(){return i},Vj:function(){return a}});var r="00".concat(Math.floor(1e3*Math.random())).slice(-3),o=0,i=function(e){return"".concat(e).concat(r).concat(o++)},a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"00000000-0000-4000-8000-000000000000".replace(/[08]/g,e)}},9620:function(e,t,n){"use strict";n.d(t,{Kl:function(){return r.Kl},Tj:function(){return o.T},lO:function(){return r.lO},pF:function(){return r.pF}});var r=n(1834),o=n(7049)},1834:function(e,t,n){"use strict";n.d(t,{Kl:function(){return o},lO:function(){return i},pF:function(){return a}});var r=n(8812),o={live:"live",test:"test",unknown:"unknown"},i=function(e){return e?/^pk_test_/.test(e)?o.test:/^pk_live_/.test(e)?o.live:o.unknown:o.unknown},a=function(e){if(e===o.unknown)throw new r.No("It looks like you're using an older Stripe key. In order to use this API, you'll need to use a modern API key, which is prefixed with 'pk_live_' or 'pk_test_'.\n You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys")}},7049:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(8812),o="publishable",i="secret",a="ephemeral",c="restricted",s="unknown",u=function(e){switch(e.split("_",1)[0]){case"pk":return o;case"sk":return i;case"ek":return a;case"rk":return c;default:return s}},l=function(e){if(""===e)throw new r.No("Please call Stripe() with your publishable key. You used an empty string.");switch(u(e)){case i:throw new r.No("You should not use your secret key with Stripe.js.\n Please pass a publishable key instead.");case a:throw new r.No("You should not use an ephemeral key with Stripe.js.\n Please pass a publishable key instead.");case c:throw new r.No("You should not use a restricted key with Stripe.js.\n Please pass a publishable key instead.")}}},758:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r=function(e){var t=e.split("-"),n=t[0],r=null,o=null,i=null;if(t.length>1&&(4===t[1].length?o=t[1]:2===t[1].length||3===t[1].length?r=t[1]:i=t[1]),t.length>2&&(2===t[2].length||3===t[2].length?r=t[2]:i=t[2]),t.length>3&&(i=t[3]),2!==n.length&&3!==n.length)throw new Error("invalid locale ".concat(e));var a=n.toLowerCase(),c=r?r.toUpperCase():null,s=o?"".concat(o[0].toUpperCase()).concat(o.substring(1).toLowerCase()):null;return{locale:a+(s?"-".concat(s):"")+(c?"-".concat(c):"")+(i?"-".concat(i):""),language:a,region:c,script:s,variant:i}}},6232:function(){"use strict"},9543:function(e,t,n){"use strict";n(6232)},3840:function(e,t,n){"use strict";n.d(t,{GS:function(){return r.GS},ZX:function(){return r.ZX},_b:function(){return r._b},ke:function(){return r.ke}});var r=n(4123)},4123:function(e,t,n){"use strict";n.d(t,{GS:function(){return a},ZX:function(){return u},_b:function(){return c},ke:function(){return s}});var r,o=n(4942),i=n(73),a={alipay:"alipay",affirm:"affirm",afterpay_clearpay:"afterpay_clearpay",au_becs_debit:"au_becs_debit",acss_debit:"acss_debit",bacs_debit:"bacs_debit",bancontact:"bancontact",blik:"blik",boleto:"boleto",card:"card",cashapp:"cashapp",customer_balance:"customer_balance",eps:"eps",fpx:"fpx",giropay:"giropay",grabpay:"grabpay",ideal:"ideal",klarna:"klarna",konbini:"konbini",mobilepay:"mobilepay",nz_bank_account:"nz_bank_account",oxxo:"oxxo",p24:"p24",pay_by_bank:"pay_by_bank",paypal:"paypal",sepa_debit:"sepa_debit",sofort:"sofort",three_d_secure:"three_d_secure",upi:"upi",us_bank_account:"us_bank_account",wechat_pay:"wechat_pay",paynow:"paynow",pix:"pix",promptpay:"promptpay",revolut_pay:"revolut_pay",netbanking:"netbanking",id_bank_transfer:"id_bank_transfer",link:"link",apple_pay:"apple_pay",google_pay:"google_pay",meta_pay:"meta_pay",demo_pay:"demo_pay",zip:"zip"},c=(r={},(0,o.Z)(r,i.Yj.auBankAccount,a.au_becs_debit),(0,o.Z)(r,i.Yj.card,a.card),(0,o.Z)(r,i.Yj.cardNumber,a.card),(0,o.Z)(r,i.Yj.cardExpiry,a.card),(0,o.Z)(r,i.Yj.cardCvc,a.card),(0,o.Z)(r,i.Yj.postalCode,a.card),(0,o.Z)(r,i.Yj.iban,a.sepa_debit),(0,o.Z)(r,i.Yj.idealBank,a.ideal),(0,o.Z)(r,i.Yj.fpxBank,a.fpx),(0,o.Z)(r,i.Yj.p24Bank,a.p24),(0,o.Z)(r,i.Yj.netbankingBank,a.netbanking),(0,o.Z)(r,i.Yj.epsBank,a.eps),r),s=function(e){return-1===i.sL.indexOf(e)},u=function(e,t){return null!=t?t:s(e)?null:c[e]||null}},6589:function(e,t,n){"use strict";n.d(t,{J:function(){return r.J}});var r=n(7802)},7802:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(1803),o=n.n(r),i=(n(8029),window.Promise?Promise:o())},3110:function(e){e.exports=function(e){var t=e.split("").map((function(e){return e.charCodeAt(0)})).reduce((function(e,t){return(e<<5)-e+t&(e<<5)-e+t}),0).toString();return"_".concat(t.replace(/[-.]/g,"_"))}},5268:function(e,t,n){"use strict";n.d(t,{Am:function(){return i}});var r=n(1413),o=n(4942),i=function(e){if(!e||"object"!=typeof e||!e.type&&!e.code)return e;var t=function(t){return e[t]&&"string"==typeof e[t]?(0,o.Z)({},"".concat(t,"_id"),e[t]):e[t]&&"object"==typeof e[t]&&"string"==typeof e[t].id?(0,o.Z)({},"".concat(t,"_id"),e[t].id):null};return(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({type:e.type,code:e.code,param:e.param},t("payment_intent")),t("setup_intent")),t("payment_method")),t("source"))}},9792:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var r=n(5671),o=n(3144),i=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},a=i(),c=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return i()-a},s=function(){function e(t){(0,r.Z)(this,e),this.timestampValue=null!=t?t:c()}return(0,o.Z)(e,[{key:"getAsPosixTime",value:function(){return i()-this.getElapsedTime()}},{key:"getElapsedTime",value:function(e){return Math.round((e?e.timestampValue:c())-this.timestampValue)}},{key:"valueOf",value:function(){return Math.round(this.timestampValue)}}],[{key:"fromPosixTime",value:function(t){return new e(t-i()+c())}}]),e}()},1216:function(e,t,n){"use strict";var r=(0,n(6617).Ds)("https://web.archive.org/web/20230604193106/https://payments.stripe.com");r&&r.origin},7600:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o=function(e){var t={};return e.replace(/\+/g," ").split("&").forEach((function(e){var n,o=e.split("="),i=decodeURIComponent(o[0]),a=t,c=0,s=i.split("]["),u=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[u])?(s[u]=s[u].replace(/\]$/,""),u=(s=s.shift().split("[").concat(s)).length-1):u=0,!(s.indexOf("__proto__")>=0))if(2===o.length)if(n=decodeURIComponent(o[1]),u)for(;c<=u;c++){if(i=""===s[c]?a.length:s[c],!r(a,i)&&a[i])return;a[i]=c1&&void 0!==arguments[1]?arguments[1]:"absurd";throw new Error(e)}},4693:function(e,t,n){"use strict";n.d(t,{Sl:function(){return o}});var r=new RegExp("^(?:4[0-9]{15}|(?:5[1-5]|2[2-7])[0-9]{14}|3[47][0-9]{13}|6[045][0-9]{14}|3[089][0-9]{14}|36[0-9]{12}|35[0-9]{14}|(?:62|81)[0-9]{11,}|(?:50|63)[0-9]{14})$"),o=function(e){if("string"!=typeof e)return!1;var t=e.replace(/[\s-]+/g,"").match(/\d{13,}/g);return!!t&&t.some((function(e){return r.test(e)&&function(e){for(var t="0".charCodeAt(0),n=e.length%2,r=0,o=e.length-1;o>=0;--o){var i=o%2===n,a=e.charCodeAt(o)-t;i&&(a*=2),a>9&&(a-=9),r+=a}return r%10==0}(e)}))}},9605:function(e,t,n){"use strict";n.d(t,{IN:function(){return i},MO:function(){return p},oQ:function(){return l},rX:function(){return a}});var r=n(7974),o={_componentName:r.Z_,_implementation:(0,r.mC)({_frame:(0,r.mC)({id:r.Z_})})},i=(0,r.mC)(o),a=function(e){var t=(0,r.ld)(i,e,"");return"error"===t.type?null:t.value},c={paymentMethodCreation:(0,r.jt)((0,r.kw)("manual")),payment_method_types:(0,r.jt)((0,r.AG)((0,r.CT)(r.Z_))),paymentMethodTypes:(0,r.jt)((0,r.AG)((0,r.CT)(r.Z_))),clientSecret:(0,r.jt)((0,r.AG)((0,r.mC)({id:r.Z_,clientSecret:r.Z_,type:r.Z_}))),mode:(0,r.jt)((0,r.AG)(r.Z_))},s=(0,r.mC)(c),u={_elements:(0,r.CT)(i),_id:r.Z_,_isSubmitting:r.Xg,_commonOptions:s},l=(0,r.mC)(u),p=function(e){var t=(0,r.ld)(l,e,"");return"error"===t.type?null:t.value}},1873:function(e,t,n){"use strict";n.d(t,{$3:function(){return a.$3},AG:function(){return a.AG},Ao:function(){return a.Ao},Bi:function(){return a.Bi},CT:function(){return a.CT},Ec:function(){return a.Ec},Fy:function(){return a.Fy},Gu:function(){return a.Gu},HM:function(){return a.HM},IN:function(){return o.IN},Kr:function(){return a.Kr},M2:function(){return a.M2},M4:function(){return a.M4},MO:function(){return o.MO},MZ:function(){return a.MZ},NM:function(){return a.NM},NQ:function(){return a.NQ},O:function(){return a.O},RH:function(){return a.RH},Rx:function(){return a.Rx},Ry:function(){return a.Ry},Rz:function(){return r.R},Sl:function(){return c.Sl},Wc:function(){return a.Wc},Xg:function(){return a.Xg},Z_:function(){return a.Z_},cV:function(){return a.cV},ci:function(){return a.ci},gy:function(){return a.gy},hN:function(){return a.hN},ig:function(){return a.ig},jt:function(){return a.jt},kG:function(){return i.k},kw:function(){return a.kw},ld:function(){return a.ld},mC:function(){return a.mC},n2:function(){return a.n2},oQ:function(){return o.oQ},or:function(){return a.or},p3:function(){return a.p3},rS:function(){return a.rS},rX:function(){return o.rX},ui:function(){return a.ui},uw:function(){return a.uw},x4:function(){return a.x4},xe:function(){return a.xe},yv:function(){return a.yv},z$:function(){return a.z$},zS:function(){return a.zS}});var r=n(2580),o=n(9605),i=n(9096),a=n(7974),c=n(4693)},9096:function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:[];return{type:"valid",value:e,warnings:t}},f=function(e){return{error:e,errorType:"full",type:"error"}},h=function(e,t,n){var r=new a.No(d(e,t,n));return f(r)},_=function(e,t,n){return{expected:e,actual:String(t),options:n,errorType:"mismatch",type:"error"}},y=function(e,t){return(0,i.Z)((0,i.Z)({},e),{},{path:[].concat((0,o.Z)(e.path),[t])})},v=function(e){return function(t,n){return void 0===t?m(t):e(t,n)}},g=function(e){return function(t,n){return null===t?m(t):e(t,n)}},b=function(e,t){return function(n,r){var o=function(e){var t=e.options.path.join(".")||"value";return{error:"".concat(t," should be ").concat(e.expected),actual:"".concat(t," as ").concat(e.actual)}},i=function(e,t,n){return f(new a.No("Invalid value for ".concat(e,": ").concat(t,". You specified ").concat(n,".")))},c=e(n,r),s=t(n,r);if("error"===c.type&&"error"===s.type){if("mismatch"===c.errorType&&"mismatch"===s.errorType){var u=o(c),l=u.error,p=u.actual,d=o(s),m=d.error,h=d.actual;return i(r.label,l===m?l:"".concat(l," or ").concat(m),p===h?p:"".concat(p," and ").concat(h))}if("mismatch"===c.errorType){var _=o(c),y=_.error,v=_.actual;return i(r.label,y,v)}if("mismatch"===s.errorType){var g=o(s),b=g.error,w=g.actual;return i(r.label,b,w)}return f(c.error)}return"valid"===c.type?c:s}},w=function(e,t){return function(n,r){return n instanceof e?m(n):_("a ".concat(t," instance"),n,r)}},k=function(e,t){return function(n,r){var o=(0,c.sE)(e,(function(e){return e===n}));if(void 0===o){var i=t?"a recognized string":"one of the following strings: ".concat(e.join(", "));return _(i,n,r)}return m(o)}},S=function(e){return function(t,n){return"string"==typeof t&&0===t.indexOf(e)?m(t):_("a string starting with ".concat(e),t,n)}},E=function(e,t){return function(n,r){return"string"==typeof n&&n.length>=e&&n.length<=t?m(n):_(e===t?"a string of ".concat(e," characters"):"a string with ".concat(e," to ").concat(t," characters"),n,r)}},C=function(){for(var e=arguments.length,t=new Array(e),n=0;n=e&&i<=t?m(i):_("a number from ".concat(e," to ").concat(t),n,r)}},x=function(e){return function(t,n){var r=M(t,n);if("error"===r.type)return r;var o=Number(r.value);return"string"==typeof t&&o>e?m(o):_("a number greater than ".concat(e),t,n)}},L=function(e){return function(t,n){var r=M(t,n);if("error"===r.type)return r;var o=Number(r.value);return"string"==typeof t&&o>=e?m(o):_("a number greater than or equal to ".concat(e),t,n)}},B=function(e,t){return function(n,r){return"number"==typeof n&&n>=e&&n<=t?m(n):_("a number from ".concat(e," to ").concat(t),n,r)}},D=function(e){return function(t,n){return"number"==typeof t&&t>e?m(t):_("a number greater than ".concat(e),t,n)}},q=function(e){return function(t,n){return"number"==typeof t&&t>=e?m(t):_("a number greater than or equal to ".concat(e),t,n)}},F=function(e,t){return function(n,r){return n===e?m(e):_(t||String(e),n,r)}},U=function(e){return function(t,n){return"number"==typeof t&&t===parseInt(t,10)&&(!e||t>=0)?m(t):_(e?"a positive amount in the currency's subunit":"an amount in the currency's subunit",t,n)}},G=function(e,t){return U(!1)(e,t)},Y=function(e,t){return U(!0)(e,t)},H=function(e,t){if(e&&"object"==typeof e){var n=e;if("function"==typeof n.getTime&&n.getTime()>=Date.now()-1e3)return m(n)}return _("a future Date",e,t)},z=function(e,t){return e&&"object"==typeof e?m(e):_("an object",e,t)},K=function(e){return function(t,n){return Array.isArray(t)?t.map((function(t,r){return e(t,y(n,String(r)))})).reduce((function(e,t){return"error"===e.type?e:"error"===t.type?t:m([].concat((0,o.Z)(e.value),[t.value]),[].concat((0,o.Z)(e.warnings),(0,o.Z)(t.warnings)))}),m([])):_("array",t,n)}},J=function(e,t){return function(n,r){var o=K(e)(n,r);return"error"===o.type?o:o.value.length=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function o(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,ln.Z)(e)););return e}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=o(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},i.apply(this,arguments)}var a,c,s,u,l,p=n(1413),d=n(9062),m=n(5671),f=n(3144),h=n(4942),_=n(7462),y=n(2963),v=n(7326),g=n(136),b=n(9388),w=n(5987),k=n(1873),S=n(5558),E=n(2583),C=n(9776),P=n(6617),A=n(3840),I=n(7792),N=n(2024),M=n(8812),T=n(4217),R=n(73),O=function(e,t){var n=e.reduce((function(e,n){var r=function(e,t){var n=e.indexOf(":");if(-1===n)throw new M.No("Invalid css declaration in file from ".concat(t,': "').concat(e,'"'));var r=e.slice(0,n).trim(),o=R.Pp[r];if(!o)throw new M.No("Unsupported css property in file from ".concat(t,': "').concat(r,'"'));return{property:o,value:e.slice(n+1).trim()}}(n,t),o=r.property,i=r.value;return(0,p.Z)((0,p.Z)({},e),{},(0,h.Z)({},o,i))}),{});return["family","src"].forEach((function(e){if(!n[e])throw new M.No("Missing css property in file from ".concat(t,': "').concat(R.QL[e],'"'))})),n},j=function(e){return(0,T.h)({url:e,method:"GET"}).then((function(e){return e.responseText})).then((function(t){var n=function(e,t){var n=e.match(/@font-face[ ]?{[^}]*}/g);if(!n)throw new M.No("No @font-face rules found in file from ".concat(t));return n}(t,e);return n.map((function(t){var n,r=function(e,t){var n=e.replace(/\/\*.*\*\//g,"").trim(),r=(n.length&&/;$/.test(n)?n:"".concat(n,";")).match(/((([^;(]*\([^()]*\)[^;)]*)|[^;]+)+)(?=;)/g);if(!r)throw new M.No("Found @font-face rule containing no valid font-properties in file from ".concat(t));return r}((n=t.match(/@font-face[ ]?{([^}]*)}/))?n[1]:"",e);return O(r,e)}))}))},Z=/https?:\/\/([^/]*)\/[^:]*/g,x=function(e){var t,n,r,o;if(function(e){return e._isUserError||"IntegrationError"===e.name||"Page already has an active payment session."===e.message}(e))return null;var i="string"==typeof e.fileName?(0,P.w0)(e.fileName):null,a="string"==typeof e.stack?function(e){var t=e,n=e.match(Z);return n&&n.forEach((function(e){-1===e.indexOf("https://web.archive.org/web/20230604193106/https://js.stripe.com")&&(t=t.replace(e,""))})),t.substring(0,1e3)}(e.stack):null,c=!!i&&-1!==i.indexOf("https://web.archive.org/web/20230604193106/https://js.stripe.com/v3/"),s=function(e){return"Script error."===e.message||"string"==typeof e.fileName&&(0===e.fileName.indexOf("chrome://")||0===e.fileName.indexOf("chrome-extension://"))}(e)?"uncaught_third_party_error":"fatal.uncaught_error";return{eventName:s,eventData:{name:"string"==typeof e.name?e.name:null,message:"string"==typeof e.message?e.message:null,fileName:i,lineNumber:"number"==typeof e.lineNumber?e.lineNumber:null,columnNumber:"number"==typeof e.columnNumber?e.columnNumber:null,stack:a,iframe:e.iframe,inPromise:null!==(t=e.inPromise)&&void 0!==t?t:null,element:null!==(n=e.element)&&void 0!==n?n:null,elementHasLoaded:null!==(r=e.elementHasLoaded)&&void 0!==r?r:null,apiMethodName:null!==(o=e.apiMethodName)&&void 0!==o?o:null,isStripeOrigin:c}}},L=function(e,t,n,r){var o=x({_isUserError:e._isUserError,name:e.name,message:e.message,description:e.description,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,stack:e.stack,iframe:!1,element:"outer",apiMethodName:r,inPromise:n});throw t&&o&&t.report(o.eventName,o.eventData),e},B=function(e,t,n){return function(r){try{return e.call(this,r)}catch(e){return L(e,t||this&&this._controller,!1,n)}}},D=function(e,t,n){return function(r,o){try{return e.call(this,r,o)}catch(e){return L(e,t||this&&this._controller,!1,n)}}},q=function(e,t,n){return function(){var r=this;try{return e.call(this).catch((function(e){return L(e,t||r&&r._controller,!0,n)}))}catch(e){return L(e,t||this&&this._controller,!1,n)}}},F=function(e,t,n){return function(r){var o=this;try{return e.call(this,r).catch((function(e){return L(e,t||o&&o._controller,!0,n)}))}catch(e){return L(e,t||this&&this._controller,!1,n)}}},U=function(e,t,n){return function(r,o){var i=this;try{return e.call(this,r,o).catch((function(e){return L(e,t||i&&i._controller,!0,n)}))}catch(e){return L(e,t||this&&this._controller,!1,n)}}},G=function(e,t,n){return function(r,o,i){var a=this;try{return e.call(this,r,o,i).catch((function(e){return L(e,t||a&&a._controller,!0,n)}))}catch(e){return L(e,t||this&&this._controller,!1,n)}}},Y=n(9083),H=function(e,t){var n,r="string"==typeof(n=e)&&(0,N.sE)(Object.keys(Y.YA),(function(e){return e===n}))||null;if(!r||!function(e,t){var n=I.MJ[e];return!n||(0,I.uN)(t,n)}(r,t)){var o="string"==typeof e?e:typeof e;throw new M.No("A valid Element name must be provided. Valid Elements are:\n ".concat(Object.keys(Y.YA).filter((function(e){return!Y.YA[e].beta})).join(", "),"; you passed: ").concat(o,"."))}},z=function e(){var t=this;(0,m.Z)(this,e),this._emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0);n&&n(i,i?null===(r=t._callbacks[e][0])||void 0===r||null===(o=r.fn)||void 0===o?void 0:o.toString():"");return i},this._off=function(e,n){if(n){for(var r,o=t._callbacks[e],i=0;i=0},$=function(){return Object.keys(V)},Q="40px",ee={invalid_coupon_code:"invalid_coupon_code",expired_coupon_code:"expired_coupon_code",invalid_payer_zip:"invalid_payer_zip"},te=(0,p.Z)({success:"success",fail:"fail",invalid_shipping_address:"invalid_shipping_address"},ee),ne=(0,p.Z)({fail:"fail",invalid_payer_name:"invalid_payer_name",invalid_payer_email:"invalid_payer_email",invalid_payer_phone:"invalid_payer_phone",invalid_shipping_address:"invalid_shipping_address"},ee),re={shipping:"shipping",delivery:"delivery",pickup:"pickup"},oe=(0,p.Z)({success:"success"},ne),ie={merchantCapabilities:["supports3DS"],displayItems:[]},ae=(0,k.mC)({amount:k.MZ,label:k.Z_,pending:(0,k.jt)(k.Xg)}),ce=(0,k.mC)({amount:k.Bi,label:k.Z_,pending:(0,k.jt)(k.Xg)}),se=(0,k.mC)({amount:k.Bi,label:k.Z_,pending:(0,k.jt)(k.Xg),id:(0,k.Wc)(k.Z_,(function(){return(0,S.To)("shippingOption")})),detail:(0,k.Wc)(k.Z_,(function(){return""}))}),ue=(0,k.mC)({major:k.Rx,minor:k.Rx}),le=k.kw.apply(void 0,(0,d.Z)(Object.keys(re))),pe=(0,k.mC)({origin:k.Z_,name:k.Z_,accountId:(0,k.jt)(k.Z_),applePayIdentifierAccount:(0,k.jt)(k.Z_)}),de=(0,k.ci)({__merchantDetails:(0,k.jt)(pe),__supportsCouponCode:(0,k.jt)(k.Xg),__couponCode:(0,k.jt)(k.Z_),country:(0,k.jt)(k.hN),currency:(0,k.jt)(k.cV),displayItems:(0,k.jt)((0,k.CT)(ce)),shippingOptions:(0,k.jt)((0,k.uw)("id")((0,k.CT)(se))),total:(0,k.jt)(ae),blockedCardBrands:(0,k.jt)((0,k.CT)(k.kw.apply(void 0,(0,d.Z)(R.iw))))}),me=Object.keys(ee),fe=(0,k.mC)({displayItems:(0,k.jt)((0,k.CT)(ce)),shippingOptions:(0,k.jt)((0,k.uw)("id")((0,k.CT)(se))),total:(0,k.jt)(ae),status:function(e,t){if(-1!==me.indexOf(e))return k.kw.apply(void 0,(0,d.Z)(me))(e,t);var n=Object.keys(te).filter((function(e){return-1===me.indexOf(e)}));return k.kw.apply(void 0,(0,d.Z)(n))(-1!==["invalid_payer_name","invalid_payer_email","invalid_payer_phone"].indexOf(e)?"fail":e,t)},errorMessage:(0,k.jt)(k.Z_)}),he=function(e,t){if(-1!==me.indexOf(e))return k.kw.apply(void 0,(0,d.Z)(me))(e,t);var n=Object.keys(oe).filter((function(e){return-1===me.indexOf(e)}));return k.kw.apply(void 0,(0,d.Z)(n))(e,t)},_e=function(e){var t=[];return window.ApplePaySession?(X(e,V.applePay)&&t.push("APPLE_PAY"),X(e,V.link)&&t.push("LINK"),t):(X(e,V.link)&&t.push("LINK"),X(e,V.googlePay)&&(t.push("GOOGLE_PAY"),C.sV&&t.push("BROWSER")),X(e,V.browserCard)&&-1===t.indexOf("BROWSER")&&t.push("BROWSER"),t)},ye=function(){try{return window.location.origin===window.top.location.origin}catch(e){return!1}},ve=(0,W.HP)((function(e){return window.ApplePaySession.canMakePaymentsWithActiveCard(e)})),ge=function(e){if(!window.ApplePaySession)return!1;try{return window.ApplePaySession.supportsVersion(e)}catch(e){return!1}},be=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,i=arguments.length>5?arguments[5]:void 0;if("https:"!==window.location.protocol)return J.J.resolve(!1);var a=Math.max(2,o);if(window.ApplePaySession){if(ye()){if(window.ApplePaySession.supportsVersion(a)){var c=t?[e,t]:[e],s="merchant.".concat(c.join("."),".stripe");if(i)return ve(s).then((function(o){if(r("pr.apple_pay.can_make_payment_native_response",{available:o,identifier:s}),n&&!o&&window.console){var i=t?"or stripeAccount parameter (".concat(t,") "):"";window.console.warn("Either you do not have a card saved to your Wallet or the current domain (".concat(e,") ").concat(i,"is not registered for Apple Pay. Visit https://dashboard.stripe.com/account/apple_pay to register this domain."))}return o}));var u=window.ApplePaySession.canMakePayments();if(n&&!u&&window.console){var l=t?"or stripeAccount parameter (".concat(t,") "):"";window.console.warn("The current domain (".concat(e,") ").concat(l,"is not registered for Apple Pay. Visit https://dashboard.stripe.com/account/apple_pay to register this domain."))}return J.J.resolve(u)}return n&&window.console&&window.console.warn("This version of Safari does not support ApplePay JS version ".concat(a,".")),J.J.resolve(!1)}return J.J.resolve(!1)}return J.J.resolve(!1)},we=(a={},(0,h.Z)(a,R.rM.VISA,"visa"),(0,h.Z)(a,R.rM.MASTERCARD,"masterCard"),(0,h.Z)(a,R.rM.AMEX,"amex"),(0,h.Z)(a,R.rM.DISCOVER,"discover"),(0,h.Z)(a,R.rM.JCB,"jcb"),(0,h.Z)(a,R.rM.UNIONPAY,"chinaUnionPay"),(0,h.Z)(a,R.rM.DINERS,null),(0,h.Z)(a,"MAESTRO","maestro"),(0,h.Z)(a,"CARTES_BANCAIRES","cartesBancaires"),a),ke=(c={},(0,h.Z)(c,R.rM.VISA,"VISA"),(0,h.Z)(c,R.rM.MASTERCARD,"MASTERCARD"),(0,h.Z)(c,R.rM.AMEX,"AMEX"),(0,h.Z)(c,R.rM.DISCOVER,"DISCOVER"),(0,h.Z)(c,R.rM.JCB,"JCB"),(0,h.Z)(c,R.rM.DINERS,null),["AT","AU","BE","CA","CH","DE","DK","EE","ES","FI","FR","GB","GR","HK","IE","IT","JP","LT","LU","LV","MX","NL","NO","NZ","PL","PT","SE","SG","US"]),Se=function(e,t,n){var r=[];return-1!==ke.indexOf(e)&&r.push(R.rM.AMEX),"US"===e||t?r.push.apply(r,[R.rM.DISCOVER,R.rM.DINERS,R.rM.JCB]):"GB"!==e&&"CA"!==e&&"JP"!==e||r.push.apply(r,[R.rM.DISCOVER,R.rM.DINERS]),r.push.apply(r,[R.rM.MASTERCARD,R.rM.VISA]),r.filter((function(e){return-1===n.indexOf(e)}))},Ee=function(e,t,n){return Se(e,t,n).reduce((function(e,t){var n=we[t];return n&&e.push(n),e}),[])},Ce=n(6241),Pe=function(e,t){return{amount:(0,Ce.Fe)(e.amount,t.currency),label:e.label,type:e.pending?"pending":"final"}},Ae=function(e,t,n){return new window.ApplePayError(e,t,n)},Ie=function(e){return function(t){return t[e]&&"string"==typeof t[e]?t[e].toUpperCase():null}},Ne=(s={},(0,h.Z)(s,oe.success,0),(0,h.Z)(s,oe.fail,1),(0,h.Z)(s,oe.invalid_payer_name,2),(0,h.Z)(s,oe.invalid_shipping_address,3),(0,h.Z)(s,oe.invalid_payer_phone,4),(0,h.Z)(s,oe.invalid_payer_email,4),(0,h.Z)(s,oe.invalid_coupon_code,1),(0,h.Z)(s,oe.expired_coupon_code,1),(0,h.Z)(s,oe.invalid_payer_zip,2),s),Me=(u={},(0,h.Z)(u,oe.success,(function(){return null})),(0,h.Z)(u,oe.fail,(function(){return null})),(0,h.Z)(u,oe.invalid_payer_name,(function(){return Ae("billingContactInvalid","name")})),(0,h.Z)(u,oe.invalid_shipping_address,(function(){return Ae("shippingContactInvalid","postalAddress")})),(0,h.Z)(u,oe.invalid_payer_phone,(function(){return Ae("shippingContactInvalid","phoneNumber")})),(0,h.Z)(u,oe.invalid_payer_email,(function(e){return Ae("shippingContactInvalid","emailAddress",e)})),(0,h.Z)(u,oe.invalid_payer_zip,(function(e){return Ae("billingContactInvalid","postalCode",e)})),(0,h.Z)(u,oe.invalid_coupon_code,(function(e){return Ae(ge(12)?"couponCodeInvalid":"unknown",void 0,e)})),(0,h.Z)(u,oe.expired_coupon_code,(function(e){return Ae(ge(12)?"couponCodeInvalid":"unknown",void 0,e)})),u),Te=(l={},(0,h.Z)(l,re.pickup,"storePickup"),(0,h.Z)(l,re.shipping,"shipping"),(0,h.Z)(l,re.delivery,"delivery"),l),Re={total:function(e){return Pe(e.total,e)},lineItems:function(e){return e.displayItems?e.displayItems.map((function(t){return Pe(t,e)})):[]},shippingMethods:function(e){return e.shippingOptions?e.shippingOptions.map((function(t){return function(e,t){return{amount:(0,Ce.Fe)(e.amount,t.currency),label:e.label,detail:e.detail,identifier:e.id}}(t,e)})):[]},applicationData:function(e){return e.applicationData||null},supportsCouponCode:function(e){return e.__supportsCouponCode||!1},couponCode:function(e){return e.__supportsCouponCode?e.__couponCode:""}},Oe={shippingType:function(e){var t=e.shippingType;if(!t)return null;var n=Te[t];if(void 0!==n)return n;throw new M.No("Invalid value for shippingType: ".concat(t))},requiredBillingContactFields:function(e){return e.requestPayerName?["postalAddress"]:null},requiredShippingContactFields:function(e){var t=[];return e.requestShipping&&t.push("postalAddress"),e.requestPayerEmail&&t.push("email"),e.requestPayerPhone&&t.push("phone"),t.length?t:null},countryCode:Ie("country"),currencyCode:Ie("currency"),merchantCapabilities:function(e){var t=e.merchantCapabilities||ie.merchantCapabilities;return e.__betas&&(0,I.uN)(e.__betas,"cup_apple_pay_beta_1")&&t.push("supportsEMV"),t},supportedNetworks:function(e){var t=Ee(e.country,e.jcbEnabled||!1,e.blockedCardBrands||[]);return ge(4)&&-1===(e.blockedCardBrands||[]).indexOf("mastercard")&&t.push("maestro"),e.__betas&&(0,I.uN)(e.__betas,"cup_apple_pay_beta_1")&&-1===(e.blockedCardBrands||[]).indexOf("unionpay")&&t.push("chinaUnionPay"),ge(4)&&e.__betas&&(0,I.uN)(e.__betas,"cartes_bancaires_apple_pay_beta_1")&&"eur"===e.currency&&t.unshift("cartesBancaires"),t}},je={status:function(e){var t=Ne[e.status];return ge(3)&&t>1?1:t},error:function(e){return ge(3)?Me[e.status](e.errorMessage):null}},Ze=(0,p.Z)((0,p.Z)({},Re),Oe),xe=(0,p.Z)((0,p.Z)({},Re),je),Le=function(e){return Object.keys(xe).reduce((function(t,n){var r=(0,xe[n])(e);return null!==r?(0,p.Z)((0,p.Z)({},t),{},(0,h.Z)({},n,r)):t}),{})},Be=function(e){return"string"==typeof e?e:null},De=function(e){return e?Be(e.phoneNumber):null},qe=function(e){return e?Be(e.emailAddress):null},Fe=function(e){return e?[e.givenName,e.familyName].filter((function(e){return e&&"string"==typeof e})).join(" "):null},Ue=function(e){var t=e.addressLines,n=e.countryCode,r=e.postalCode,o=e.administrativeArea,i=e.locality,a=e.phoneNumber,c=Be(n);return{addressLine:Array.isArray(t)?t.reduce((function(e,t){return"string"==typeof t?[].concat((0,d.Z)(e),[t]):e}),[]):[],country:c?c.toUpperCase():"",postalCode:Be(r)||"",recipient:Fe(e)||"",region:Be(o)||"",city:Be(i)||"",phone:Be(a)||"",sortingCode:"",dependentLocality:"",organization:""}},Ge=function(e,t){var n=e.identifier,r=e.label;return t.filter((function(e){return e.id===n&&e.label===r}))[0]},Ye=function(e,t){var n=e.shippingContact,r=e.shippingMethod,o=e.billingContact;return{shippingOption:r&&t.shippingOptions&&t.shippingOptions.length?Ge(r,t.shippingOptions):null,shippingAddress:n?Ue(n):null,payerEmail:qe(n),payerPhone:De(n),payerName:Fe(o),walletName:"applePay",methodName:"apple-pay"}},He=n(9620),ze={austria:"AT",sterreich:"AT",csterreich:"AT",au:"AU",australia:"AU",belgium:"BE",br:"BR",brasil:"BR",brazil:"BR",ca:"CA",canada:"CA",ch:"CH",schweiz:"CH",switzerland:"CH",china:"CN",cn:"CN",czechrepublic:"CZ",eskrepublika:"CZ",cz:"CZ",de:"DE",deu:"DE",deutschland:"DE",dk:"DK",germany:"DE",danmark:"DK",denmark:"DK",egypt:"EG",es:"ES",espaa:"ES",espanya:"ES",spain:"ES",finland:"FI",suomi:"FI",fi:"FI",fr:"FR",hk:"HK",hongkong:"HK",hungary:"HU",hu:"HU",england:"GB",gb:"GB",gbr:"GB",uk:"GB",unitedkingdom:"GB",greatbritain:"GB",scotland:"GB",wales:"GB",in:"IN",ire:"IE",israel:"IL",it:"IT",italy:"IT",italia:"IT",italie:"IT",japan:"JP",jp:"JP",lv:"LV",latvia:"LV",latvija:"LV",lietuva:"LT",lt:"LT",luxembourg:"LU",mexico:"MX",mx:"MX",my:"MY",netherlands:"NL",thenetherlands:"NL",nederland:"NL",nederlands:"NL",nl:"NL",norway:"NO",no:"NO",nz:"NZ",pl:"PL",poland:"PL",polska:"PL",pr:"PR",pt:"PT",ro:"RO",russia:"RU",saintpierreandmiquelon:"PM",saudiarabia:"SA",se:"SE",sg:"SG",slovakia:"SK",svk:"SK",southafrica:"ZA",sweden:"SE",sverige:"SE",singapore:"SG",taiwan:"TW",turkey:"TR",uae:"AE",ukraine:"UA",us:"US",usa:"US",unitedstatesofamerica:"US",unitedstates:"US",estadosunidos:"US"},Ke=function(e,t){if(e.country&&"string"==typeof e.country){var n,r=e.country.toLowerCase().replace(/[^a-z]+/g,"");return e.countryCode?"string"==typeof e.countryCode&&(n=e.countryCode.toUpperCase()):(n=ze[r])||t(),(0,p.Z)((0,p.Z)({},e),{},{countryCode:n})}return e},Je=function(e){var t=e.recurringPaymentRequest,n=e.currency,r=e.pending,o=e.defaultBillingAgreement,i=void 0===o?"":o,a=e.warn;if(t){var c=t.paymentDescription,s=t.managementURL,u=t.regularBilling,l=t.billingAgreement;return function(){var e=window.navigator.userAgent,t=/iPad|iPhone/i.test(e),n=/^((?!chrome|android).)*safari/i.test(e)&&!/SamsungBrowser/.test(e);if(t){var r=window.navigator.userAgent.match(/OS (\d+)_(\d+)(_\d+)? like Mac OS X/)||[],o=parseInt(r[1],10),i=parseInt(r[2],10);return 16===o&&i<2}if(n){var a=e.match(/Version\/(\d+)\.(\d+)(\.\d+)?/)||[],c=parseInt(a[1],10),s=parseInt(a[2],10);return 16===c&&s<2}return!1}()&&!l&&(a("You did not specify a `billingAgreement` as part of your `applePay.recurringPaymentRequest`, and you are on Safari 16.0 or 16.1. Due to a bug in Safari 16.0-16.1, we autofilled a default billing agreement for you. This will not cause problems with your Stripe integration, but you may wish to customize this text by specifying your own `billingAgreement` text."),l=i),{paymentDescription:c,regularBilling:(0,p.Z)((0,p.Z)({},u),{},{paymentTiming:"recurring",type:r?"pending":"final",amount:(0,Ce.Fe)(u.amount,n)}),billingAgreement:l,managementURL:s}}},We=function(e,t){return e&&"object"==typeof e?t(e):null},Ve=function(){function e(t){var n=this;(0,m.Z)(this,e),this._wasCompleted=!1,this._onEvent=function(){},this.setEventHandler=function(e){n._onEvent=e},this.canMakePayment=function(){var e,t=n._controller.action.retrieveWalletConfigAvailability({wallet:"apple_pay",isHostedSurface:!(!n._initialPaymentRequest.__isCheckout&&!n._initialPaymentRequest.__isHostedInvoicePage),isPaymentElement:!!n._initialPaymentRequest.__isPaymentElement}),r=be(window.location.hostname,n._authentication.accountId||(null===(e=n._initialPaymentRequest.__merchantDetails)||void 0===e?void 0:e.applePayIdentifierAccount)||null,(0,He.lO)(n._authentication.apiKey)===He.Kl.test,n._report,n._minimumVersion,!0);return J.J.all([t,r]).then((function(e){var t=(0,K.Z)(e,2),n=t[0],r=t[1];return{available:n&&r}}))},this.update=function(e){n._initialPaymentRequest=(0,N.PM)(n._paymentRequestOptions,e),n._initializeSessionState()},this.show=function(){var e;n._wasCompleted&&n._report("pr.show_called_after_completion"),n._initializeSessionState();try{e=new window.ApplePaySession(n._minimumVersion,function(e){var t=(0,p.Z)((0,p.Z)({},ie),e);return Object.keys(Ze).reduce((function(e,n){var r=(0,Ze[n])(t);return null!==r?(0,p.Z)((0,p.Z)({},e),{},(0,h.Z)({},n,r)):e}),{})}(n._paymentRequestOptions))}catch(e){throw"Must create a new ApplePaySession from a user gesture handler."===e.message?new M.No("show() must be called from a user gesture handler (such as a click handler, after the user clicks a button)."):e}n._privateSession=e,n._setupSession(e,n._usesButtonElement()),e.begin(),n._isShowing=!0},this.abort=function(){n._privateSession&&n._privateSession.abort()},this._warn=function(){},this._report=function(e,t){n._controller.report(e,(0,p.Z)((0,p.Z)({},t),{},{backingLibrary:"APPLE_PAY",usesButtonElement:n._usesButtonElement()}))},this._validateMerchant=function(e,t){return function(r){n._controller.action.createApplePaySession({data:{validation_url:r.validationURL,domain_name:window.location.hostname,display_name:n._paymentRequestOptions.total.label},usesButtonElement:t}).then((function(t){if(n._isShowing)switch(t.type){case"object":e.completeMerchantValidation(JSON.parse(t.object.session));break;case"error":n._handleValidationError(e)(t.error);break;default:(0,k.Rz)(t)}}),n._handleValidationError(e))}},this._handleValidationError=function(e){return function(t){n._report("error.pr.apple_pay.session_creation_failed",{error:t}),e.abort();var r=t.message;"string"==typeof r&&n._controller.warn(r)}},this._paymentAuthorized=function(e){return function(t){var r=t.payment,o=n._usesButtonElement()?R.Yj.paymentRequestButton:null;n._controller.action.tokenizeWithData({type:"apple_pay",elementName:o,tokenData:(0,p.Z)((0,p.Z)({},r),{},{billingContact:We(r.billingContact,n._normalizeContact)}),mids:n._mids}).then((function(t){if("error"===t.type)ge(14)?e.abort():e.completePayment(window.ApplePaySession.STATUS_FAILURE),n._report("error.pr.create_token_failed",{error:t.error}),n._onEvent({type:"__private_do_not_use_error",payload:{error:t.error}});else{var o=We(r.shippingContact,n._normalizeContact),i=We(r.billingContact,n._normalizeContact);o&&n._paymentRequestOptions.requestShipping&&!o.countryCode&&e.completePayment(window.ApplePaySession.STATUS_INVALID_SHIPPING_POSTAL_ADDRESS);var a=Ye({shippingContact:o,billingContact:i},n._paymentRequestOptions);n._onToken(e)((0,p.Z)((0,p.Z)({},a),{},{shippingOption:n._privateShippingOption,token:t.object}))}}))}},this._normalizeContact=function(e){return Ke(e,(function(){n._report("warn.pr.apple_pay.missing_country_code",{country:e.country})}))},this._onToken=function(e){return function(t){n._onEvent({type:"paymentresponse",payload:(0,p.Z)((0,p.Z)({},t),{},{complete:B(n._completePayment(e))})})}},this._completePayment=function(e){return function(t,r){"success"===t&&(n._wasCompleted=!0),n._paymentRequestOptions=(0,N.PM)(n._paymentRequestOptions,{status:t,errorMessage:r});var o=Le(n._paymentRequestOptions),i=o.status,a=o.error;n._isShowing&&(a?e.completePayment({status:i,errors:[a]}):i!==window.ApplePaySession.STATUS_FAILURE?e.completePayment(i):ge(14)?e.abort():e.completePayment(i)),(0===i||1===i&&null==a)&&(n._isShowing=!1,n._onEvent&&n._onEvent({type:"close"}))}},this._paymentMethodSelected=function(e){return function(t){n._onEvent({type:"__private_do_not_use_billingaddresschange",payload:{billingAddress:t.paymentMethod.billingContact?Ue(n._normalizeContact(t.paymentMethod.billingContact)):{addressLine:[],country:"",postalCode:"",recipient:"",region:"",city:"",phone:"",sortingCode:"",dependentLocality:"",organization:""},updateWith:B(n._completePaymentMethodSelection(e))}})}},this._shippingContactSelected=function(e){return function(t){n._onEvent({type:"shippingaddresschange",payload:{shippingAddress:Ue(n._normalizeContact(t.shippingContact)),updateWith:B(n._completeShippingContactSelection(e))}})}},this._completePaymentMethodSelection=function(e){return function(t){n._paymentRequestOptions=(0,N.PM)(n._paymentRequestOptions,t);var r=Le(n._paymentRequestOptions),o=r.total,i={newLineItems:r.lineItems,newTotal:o};e.completePaymentMethodSelection(i)}},this._completeShippingContactSelection=function(e){return function(t){var r;n._paymentRequestOptions=(0,N.PM)(n._paymentRequestOptions,t),null!==(r=n._paymentRequestOptions.shippingOptions)&&void 0!==r&&r.length&&(n._privateShippingOption=n._paymentRequestOptions.shippingOptions[0]);var o=Le(n._paymentRequestOptions),i=o.status,a=o.shippingMethods,c=o.total,s=o.lineItems,u=o.error;if(u)e.completeShippingContactSelection({newTotal:c,newLineItems:s,newShippingMethods:a,errors:[u]});else if(ge(14)&&1===i){var l=Ae("shippingContactInvalid","postalAddress");e.completeShippingContactSelection({newTotal:c,newLineItems:s,newShippingMethods:a,errors:[l]})}else e.completeShippingContactSelection(i,a,c,s)}},this._shippingMethodSelected=function(e){return function(t){if(n._paymentRequestOptions.shippingOptions){var r=Ge(t.shippingMethod,n._paymentRequestOptions.shippingOptions);n._privateShippingOption=r,n._onEvent({type:"shippingoptionchange",payload:{shippingOption:r,updateWith:B(n._completeShippingMethodSelection(e))}})}}},this._completeShippingMethodSelection=function(e){return function(t){n._paymentRequestOptions=(0,N.PM)(n._paymentRequestOptions,t);var r=Le(n._paymentRequestOptions),o=r.status,i=r.total,a=r.lineItems;e.completeShippingMethodSelection(o,i,a)}},this._couponCodeChanged=function(e){return function(t){var r=t.couponCode;n._onEvent({type:"__private_do_not_use_couponcodechange",payload:{couponCode:r,updateWith:B(n._completeCouponCodeChange(e))}})}},this._completeCouponCodeChange=function(e){return function(t){n._paymentRequestOptions=(0,N.PM)(n._paymentRequestOptions,t);var r=Le(n._paymentRequestOptions),o=r.total,i=r.lineItems,a=r.error;e.completeCouponCodeChange({newTotal:o,newLineItems:i,errors:a?[a]:void 0})}};var r=t.controller,o=t.authentication,i=t.mids,a=t.options,c=t.usesButtonElement,s=t.listenerRegistry;this._controller=r,this._authentication=o,this._mids=i,this._minimumVersion=a.__minApplePayVersion||2,this._usesButtonElement=c,this._listenerRegistry=s,this._initialPaymentRequest=a,this._isShowing=!1,this._initializeSessionState(),this._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){n._authentication={apiKey:e.publishableKey,accountId:e.stripeAccount},n._initializeSessionState()}))}return(0,f.Z)(e,[{key:"_initializeSessionState",value:function(){var e=btoa(this._authentication.accountId?"".concat(this._authentication.apiKey,":").concat(this._authentication.accountId):this._authentication.apiKey);this._paymentRequestOptions=(0,p.Z)((0,p.Z)((0,p.Z)({},ie),this._initialPaymentRequest),{},{status:oe.success,applicationData:e}),this._privateSession=null,this._privateShippingOption=null;var t=this._paymentRequestOptions.shippingOptions;null!=t&&t.length&&(this._privateShippingOption=t[0])}},{key:"_setupSession",value:function(e,t){var n=this;this._listenerRegistry.addEventListener(e,"validatemerchant",B(this._validateMerchant(e,t))),this._listenerRegistry.addEventListener(e,"paymentauthorized",B(this._paymentAuthorized(e))),this._listenerRegistry.addEventListener(e,"cancel",B((function(){n._isShowing=!1,n._onEvent({type:"cancel"}),n._onEvent({type:"close"})}))),this._listenerRegistry.addEventListener(e,"paymentmethodselected",B(this._paymentMethodSelected(e))),this._listenerRegistry.addEventListener(e,"shippingcontactselected",B(this._shippingContactSelected(e))),this._listenerRegistry.addEventListener(e,"shippingmethodselected",B(this._shippingMethodSelected(e))),this._listenerRegistry.addEventListener(e,"couponcodechanged",B(this._couponCodeChanged(e)))}}]),e}(),Xe=Ve,$e=n(755),Qe={display:"block",position:"fixed","z-index":"2147483647",background:"rgba(40,40,40,0)",transition:"background 400ms ease","will-change":"background",top:"0",left:"0",right:"0",bottom:"0",margin:"0",padding:"0"},et=(0,p.Z)((0,p.Z)({},Qe),{},{background:"rgba(40,40,40,0.75)"}),tt=function e(t){var n=this,r=t.lockScrolling,o=t.lockFocus,i=t.lockFocusOn,a=t.listenerRegistry;(0,m.Z)(this,e),this.domElement=document.createElement("div"),this._runOnHide=[],this.mount=function(){var e=(0,E.Xq)();n.domElement.style.display="none",e.contains(n.domElement)||e.insertBefore(n.domElement,e.firstChild)},this.show=function(){if((0,E.yq)(n.domElement,Qe),n._lockScrolling){var e=(0,E.MV)();n._runOnHide.push(e)}if(n._lockFocus){var t=(0,E.W3)(n._lockFocusOn).restoreFocus;n._runOnHide.push(t)}},this.fadeIn=function(){setTimeout((function(){(0,E.yq)(n.domElement,et)}))},this.fadeOut=function(){return new J.J((function(e){(0,E.yq)(n.domElement,Qe),setTimeout(e,500),n._listenerRegistry.addEventListener(n.domElement,"transitionend",e)})).then((function(){for(n.domElement.style.display="none";n._runOnHide.length;){var e;null===(e=n._runOnHide.pop())||void 0===e||e()}}))},this.unmount=function(){var e=(0,E.Xq)();e.contains(n.domElement)&&e.removeChild(n.domElement)},this._lockScrolling=!!r,this._lockFocus=!!o,this._lockFocusOn=i||null,this._listenerRegistry=a},nt=null;var rt,ot,it=function(e){return"https:"===window.location.protocol&&(!(!C.Wt&&!C.j3)&&(!C.Bh&&(!(!e.isCheckout&&!window.PaymentRequest)&&!(!e.isCheckout&&C.sV))))},at=function e(t){var n=this;(0,m.Z)(this,e),this._mids=null,this._frame=null,this._initFrame=function(e){var t=n._controller.createHiddenFrame($e.NC.PAYMENT_REQUEST_GOOGLE_PAY,{authentication:n._authentication,mids:n._mids,origin:n._origin});t.send({action:"stripe-pr-initialize",payload:{data:e}}),n._initFrameEventHandlers(t),n._frame=t},this._initFrameEventHandlers=function(e){e._on("pr-cancel",(function(){n._onEvent({type:"cancel"})})),e._on("pr-close",(function(){n._backdrop.fadeOut().then((function(){n._backdrop.unmount()})),n._onEvent({type:"close"})})),e._on("pr-error",(function(e){n._onEvent({type:"error",payload:{errorMessage:e.errorMessage,errorCode:e.errorCode}})})),e._on("pr-callback",(function(t){var r=t.event,o=t.options,i=t.nonce;switch(r){case"paymentresponse":n._handlePaymentResponse(e,o,i);break;case"shippingaddresschange":n._handleShippingAddressChange(e,o,i);break;case"shippingoptionchange":n._handleShippingOptionChange(e,o,i);break;default:throw new Error("Unexpected event name: ".concat(r))}}))},this._handlePaymentResponse=function(e,t,r){n._onEvent({type:"paymentresponse",payload:(0,p.Z)((0,p.Z)({},t),{},{complete:function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:{status:t}}})}})})},this._handleShippingAddressChange=function(e,t,r){n._onEvent({type:"shippingaddresschange",payload:(0,p.Z)((0,p.Z)({},t),{},{updateWith:function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:t}})}})})},this._handleShippingOptionChange=function(e,t,r){n._onEvent({type:"shippingoptionchange",payload:(0,p.Z)((0,p.Z)({},t),{},{updateWith:function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:t}})}})})},this._destroy=function(){n._frame&&(n._frame.destroy(),n._frame=null)},this.setEventHandler=function(e){n._onEvent=e},this.canMakePayment=function(){if(!it({isCheckout:n._isCheckout}))return J.J.resolve({available:!1});if(!n._frame)throw new Error("Frame not initialized.");var e,t=n._frame;return(e=function(){return t.action.checkCanMakePayment().then((function(e){return!0===e.available}))},null!==nt?J.J.resolve(nt):e().then((function(e){return nt=e}))).then((function(e){return{available:e}}))},this.show=function(){n._frame&&(n._frame.send({delegate:"payment",action:"stripe-pr-show",payload:{data:{usesButtonElement:n._usesButtonElement(),stripeJsId:n._controller._stripeJsId,mids:n._controller.mids()}}}),n._backdrop.mount(),n._backdrop.show(),n._backdrop.fadeIn())},this.update=function(e){n._frame&&n._frame.send({action:"stripe-pr-update",payload:{data:e}})},this.abort=function(){n._frame&&n._frame.send({action:"stripe-pr-abort",payload:{}})},this._controller=t.controller,this._authentication=t.authentication,this._mids=t.mids,this._origin=t.origin,this._usesButtonElement=t.usesButtonElement,this._backdrop=new tt({lockScrolling:!1,lockFocus:!0,lockFocusOn:null,listenerRegistry:t.listenerRegistry}),this._isCheckout=!!t.options.__isCheckout,it({isCheckout:this._isCheckout})&&this._controller&&(this._controller.action.fetchLocale({locale:"auto"}),this._initFrame(t.options)),this._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){n._authentication={apiKey:e.publishableKey,accountId:e.stripeAccount},n._frame&&n._frame.send({action:"stripe-pr-update",payload:{data:{__stripeUserCredentials:(0,p.Z)({},n._authentication)}}})}))},ct=function(){if(!window.PaymentRequest)return null;if(/CriOS\/59/.test(navigator.userAgent))return null;if(/.*\(.*; wv\).*Chrome\/(?:53|54)\.\d.*/g.test(navigator.userAgent))return null;if(C.xz)return null;var e=window.PaymentRequest;return e.prototype.canMakePayment||(e.prototype.canMakePayment=function(){return J.J.resolve(!1)}),e}(),st=null,ut=function e(t){var n=this;(0,m.Z)(this,e),this._onEvent=function(){},this.setEventHandler=function(e){n._onEvent=e},this.canMakePayment=function(){return(e=n._prFrame,(0,He.lO)(n._authentication.apiKey),He.Kl.test,"https:"!==window.location.protocol?J.J.resolve(!1):null!==st?J.J.resolve(st):ct&&e?e.action.checkCanMakePayment().then((function(e){var t=e.available;return st=!0===t})):J.J.resolve(!1)).then((function(e){return{available:e}}));var e},this.update=function(e){var t=n._prFrame;t&&t.send({action:"stripe-pr-update",payload:{data:e}})},this.show=function(){if(!n._prFrame)throw new M.No("Payment Request is not available in this browser.");n._prFrame.send({delegate:"payment",action:"stripe-pr-show",payload:{data:{usesButtonElement:n._usesButtonElement(),stripeJsId:n._controller._stripeJsId,mids:n._controller.mids()}}})},this.abort=function(){n._prFrame&&n._prFrame.send({action:"stripe-pr-abort",payload:{}})},this._setupPrFrame=function(e,t){e.send({action:"stripe-pr-initialize",payload:{data:t}}),e._on("pr-cancel",(function(){n._onEvent({type:"cancel"})})),e._on("pr-close",(function(){n._onEvent({type:"close"})})),e._on("pr-error",(function(e){n._onEvent({type:"error",payload:{errorMessage:e.message||"",errorCode:e.code||""}})})),e._on("pr-callback",(function(t){var r=t.event,o=t.nonce,i=t.options;switch(r){case"token":n._onEvent({type:"paymentresponse",payload:(0,p.Z)((0,p.Z)({},i),{},{complete:function(t){e.send({action:"stripe-pr-callback-complete",payload:{data:{status:t},nonce:o}})}})});break;case"shippingaddresschange":n._onEvent({type:"shippingaddresschange",payload:{shippingAddress:i.shippingAddress,updateWith:function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:o,data:t}})}}});break;case"shippingoptionchange":n._onEvent({type:"shippingoptionchange",payload:{shippingOption:i.shippingOption,updateWith:function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:o,data:t}})}}});break;default:throw new Error("Unexpected event from PaymentRequest inner: ".concat(r))}}))};var r=t.authentication,o=t.controller,i=t.mids,a=t.origin,c=t.usesButtonElement,s=t.options;if(this._authentication=r,this._controller=o,this._usesButtonElement=c,ct&&"https:"===window.location.protocol){this._controller.action.fetchLocale({locale:"auto"});var u=this._controller.createHiddenFrame($e.NC.PAYMENT_REQUEST_BROWSER,{authentication:r,mids:i,origin:a});this._setupPrFrame(u,s),this._prFrame=u}else this._prFrame=null;this._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){n._authentication={apiKey:e.publishableKey,accountId:e.stripeAccount},n._prFrame&&n._prFrame.send({action:"stripe-pr-update",payload:{data:{__stripeUserCredentials:(0,p.Z)({},n._authentication)}}})}))},lt=n(7490),pt=function(e){for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:{skipEnrollmentCheck:!1,useCheckoutAvailabilityCheck:!1},n=r._backingLibraries[e];if(!n){var o="Unexpectedly calling canMakePayment on uninitialized backing library ".concat(e);throw new Error(o)}return J.J.race([new J.J((function(e){return setTimeout(e,1e4)})).then((function(){return{available:!1}})),n.canMakePayment({skipEnrollmentCheck:t.skipEnrollmentCheck,useCheckoutAvailabilityCheck:t.useCheckoutAvailabilityCheck,locale:r._locale})]).then((function(t){var n=t.available,o="LINK"===e&&t.linkExperimentAssignments?t.linkExperimentAssignments:null;return r._canMakePaymentAvailability=(0,p.Z)((0,p.Z)({},r._canMakePaymentAvailability),{},(0,h.Z)({},e,n)),{backingLibraryName:e,available:n,linkExperimentAssignments:o}}))},r._isGooglePayOnAndroid=function(){var e=r._initialOptions.wallets,t=e&&-1===e.indexOf("googlePay"),n=!!r._canMakePaymentAvailability.BROWSER;return C.sV&&!t&&n},r._constructCanMakePaymentResponse=function(){var e=r._isGooglePayOnAndroid();return{applePay:!!r._canMakePaymentAvailability.APPLE_PAY,googlePay:!!r._canMakePaymentAvailability.GOOGLE_PAY||e,link:!!r._canMakePaymentAvailability.LINK}},r.canMakePayment=B((function(){r._report("pr.can_make_payment"),r._controller.action.cmpStatusChange({cmpTriggered:!0});var e=!r._initialOptions.__isCheckout;if(r._canMakePaymentResolved){var t,n=null!==r._activeBackingLibrary?r._constructCanMakePaymentResponse():null;return r._report("pr.can_make_payment_response",{response:n,cached:!0,activeBackingLibrary:r._activeBackingLibrary,amount:null===(t=r._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:r._reportOnlyCurrency}),J.J.resolve(n)}if("https:"!==window.location.protocol)return Lt||(r._controller.warn("If you are testing Apple Pay or Google Pay, you must serve this page over HTTPS as it will not work over HTTP. Please read https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-prerequisites for more details."),Lt=!0),r._canMakePaymentResolved=!0,r._controller.deferredCanMakePaymentResponse.resolve(null),J.J.resolve(null);var o=r._queryStrategy.map((function(e){return function(){return r._canMakePaymentForBackingLibrary(e)}})),i=[];if(-1!==r._queryStrategy.indexOf("LINK"))if(r._initialOptions.__linkOnly&&r._initialOptions.__isCheckout){o=[function(){return r._canMakePaymentForBackingLibrary("LINK",{skipEnrollmentCheck:!0,useCheckoutAvailabilityCheck:!0})}]}else[o,i].forEach((function(e){return e.push((function(){return r._canMakePaymentForBackingLibrary("LINK",{skipEnrollmentCheck:!0,useCheckoutAvailabilityCheck:!1})}))}));var a=new xt.E,c=(0,W.tN)(o,(function(e){var t=e.backingLibraryName,n=e.available;return n&&(r._activeBackingLibraryName=t,r._activeBackingLibrary=r._backingLibraries[t],r._buttonTypeName=r._activeBackingLibraryName,r._isGooglePayOnAndroid()&&(r._buttonTypeName="GOOGLE_PAY")),n})),s=e?(0,W.tN)(i,(function(e){e.backingLibraryName;return e.available})):null;return e?J.J.all([c,s]).then((function(e){var t,n=new xt.E,o=e[0],i=e[1];r._canMakePaymentResolved=!0,"SATISFIED"===o.type&&-1!==["APPLE_PAY","GOOGLE_PAY","BROWSER"].indexOf(o.value.backingLibraryName)&&"SATISFIED"===(null==i?void 0:i.type)&&(r._secondaryActiveBackingLibraryName=i.value.backingLibraryName,r._secondaryActiveBackingLibrary=r._backingLibraries[i.value.backingLibraryName],r._secondaryButtonTypeName=r._secondaryActiveBackingLibraryName);var c=null;return"SATISFIED"===o.type&&(c=r._constructCanMakePaymentResponse()),r._report("pr.can_make_payment_response",{response:c,cached:!1,duration:a.getElapsedTime(n),activeBackingLibrary:r._activeBackingLibrary,amount:null===(t=r._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:r._reportOnlyCurrency}),r._controller.deferredCanMakePaymentResponse.resolve(c),c})):c.then((function(e){var t,n=new xt.E;r._canMakePaymentResolved=!0;var o=null;return"SATISFIED"===e.type&&(o=r._constructCanMakePaymentResponse()),r._report("pr.can_make_payment_response",{response:o,cached:!1,duration:a.getElapsedTime(n),activeBackingLibrary:r._activeBackingLibrary,amount:null===(t=r._reportOnlyTotal)||void 0===t?void 0:t.amount,currency:r._reportOnlyCurrency}),r._controller.deferredCanMakePaymentResponse.resolve(o),o}))})),r.update=B((function(e){if(r._isShowing)throw r._report("pr.update_called_while_showing"),new M.No("You cannot update Payment Request options while the payment sheet is showing.");r._privateForcedUpdate(e)})),r._privateForcedUpdate=function(e){var t,n=(0,k.Gu)(de,e,"PaymentRequest update()"),o=n.value,i=n.warnings;r._report("pr.update"),i.forEach((function(e){return r._warn(e)})),!o.shippingOptions||null!==(t=r._initialOptions)&&void 0!==t&&t.requestShipping||r._report("pr.update_shipping_options_without_shipping"),o.total&&(r._reportOnlyTotal=o.total),o.currency&&(r._reportOnlyCurrency=o.currency),(0,N.VO)(r._backingLibraries).forEach((function(e){e&&e.update(o)}))},r.show=B((function(){var e;if(r._usedByButtonElement&&!r._showCalledByButtonElement&&(r._report("pr.show_called_with_button"),r._warn("Do not call show() yourself if you are using the paymentRequestButton Element. The Element handles showing the payment sheet.")),!r._canMakePaymentResolved)throw r._report("pr.show_called_before_can_make_payment"),new M.No("You must first check the Payment Request API's availability using paymentRequest.canMakePayment() before calling show().");if(!r._activeBackingLibrary)throw r._report("pr.show_called_with_can_make_payment_false"),new M.No("Payment Request is not available in this browser.");"LINK"!==r._activeBackingLibraryName||r._initialOptions.__linkOnly||(r._usedByButtonElement||r._report("pr.show_called_with_link_custom_button"),!r._showCalledByButtonElement&&r._usedByButtonElement&&r._report("pr.show_called_with_link_hybrid_button"));var t=null;if("secondary"===r._lastClickedButtonPosition){if(!r._secondaryActiveBackingLibrary)throw Error('The relevant backing library for position "'.concat(r._lastClickedButtonPosition,'" was unavailable.'));t=r._secondaryActiveBackingLibrary}else t=r._activeBackingLibrary;var n=r._showCalledByButtonElement?"pr.show_from_element":"pr.show_from_custom";r._report(n),r._report("pr.show",{amount:null===(e=r._reportOnlyTotal)||void 0===e?void 0:e.amount,currency:r._reportOnlyCurrency,listeners:Object.keys(r._callbacks).sort()}),r._isShowing=!0,t.show({locale:r._locale})})),r.abort=B((function(){if(r._activeBackingLibrary){var e=r._activeBackingLibrary;r._report("pr.abort"),e.abort()}})),r.isShowing=function(){return r._isShowing},r._controller=e.controller,r._authentication=e.authentication,r._mids=e.mids,r._listenerRegistry=e.listenerRegistry;var o=(0,k.Gu)((e.betas,(0,k.mC)({displayItems:(0,k.jt)((0,k.CT)(ce)),shippingOptions:(0,k.jt)((0,k.uw)("id")((0,k.CT)(se))),wallets:(0,k.jt)((0,k.CT)(k.kw.apply(void 0,(0,d.Z)($())))),disableWallets:(0,k.jt)((0,k.CT)(k.kw.apply(void 0,(0,d.Z)($())))),blockedCardBrands:(0,k.jt)((0,k.CT)(k.kw.apply(void 0,(0,d.Z)(R.iw)))),total:ae,requestShipping:(0,k.jt)(k.Xg),requestPayerName:(0,k.jt)(k.Xg),requestPayerEmail:(0,k.jt)(k.Xg),requestPayerPhone:(0,k.jt)(k.Xg),shippingType:(0,k.jt)(le),currency:k.cV,country:k.hN,jcbEnabled:(0,k.jt)(k.Xg),__billingDetailsEmailOverride:(0,k.jt)(k.Z_),__minApplePayVersion:(0,k.jt)(k.Rx),__minGooglePayVersion:(0,k.jt)(ue),__merchantDetails:(0,k.jt)(pe),__linkOnly:(0,k.jt)(k.Xg),__isCheckout:(0,k.jt)(k.Xg),__isHostedInvoicePage:(0,k.jt)(k.Xg),__checkoutSessionId:(0,k.jt)(k.Z_),__isPaymentElement:(0,k.jt)(k.Xg),__isExpressCheckoutElement:(0,k.jt)(k.Xg),__betas:(0,k.jt)((0,k.CT)(k.z$.apply(void 0,(0,d.Z)(I.Lv)))),__supportsCouponCode:(0,k.jt)(k.Xg),__couponCode:(0,k.jt)(k.Z_)})),e.rawOptions||{},"paymentRequest()"),i=o.value,a=o.warnings;if(r._report("pr.options",{options:(0,N.ei)(i,["country","currency","jcbEnabled","requestPayerEmail","requestPayerName","requestPayerPhone","requestShipping","disableWallets","wallets","blockedCardBrands"])}),a.forEach((function(e){return r._warn(e)})),i.__billingDetailsEmailOverride&&i.requestPayerEmail)throw new M.No("When providing `__billingDetailsEmailOverride`, `requestPayerEmail` has to be `false` so that the customer is not prompted for their email in the payment sheet.");var c=$(),s=i.disableWallets,u=s?c.filter((function(e){return-1===s.indexOf(e)})):i.wallets;return e.queryStrategyOverride?r._queryStrategy=e.queryStrategyOverride:i.__linkOnly?r._queryStrategy=["LINK"]:r._queryStrategy=_e(u||c),r._report("pr.query_strategy",{queryStrategy:r._queryStrategy}),r._initialOptions=(0,p.Z)((0,p.Z)({},i),{},{__betas:e.betas,wallets:u}),r._reportOnlyCurrency=i.currency,r._reportOnlyTotal=i.total,r._initBackingLibraries(r._initialOptions),r._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){r._authentication={apiKey:e.publishableKey,accountId:e.stripeAccount},r._canMakePaymentResolved&&(r._canMakePaymentResolved=!1,r._controller.deferredCanMakePaymentResponse.resolve(null),r.canMakePayment())})),r}(0,g.Z)(t,e);var n=(0,b.Z)(t);return t}(z),Dt=Bt,qt={base:(0,k.jt)(k.Ry),complete:(0,k.jt)(k.Ry),empty:(0,k.jt)(k.Ry),invalid:(0,k.jt)(k.Ry),paymentRequestButton:(0,k.jt)(k.Ry)},Ft={classes:(0,k.jt)((0,k.mC)({base:(0,k.jt)(k.Z_),complete:(0,k.jt)(k.Z_),empty:(0,k.jt)(k.Z_),focus:(0,k.jt)(k.Z_),invalid:(0,k.jt)(k.Z_),webkitAutofill:(0,k.jt)(k.Z_)})),hidePostalCode:(0,k.jt)(k.Xg),hideIcon:(0,k.jt)(k.Xg),disableLink:(0,k.jt)(k.Xg),showIcon:(0,k.jt)(k.Xg),disableMultipleButtons:(0,k.jt)(k.Xg),style:(0,k.jt)((0,k.mC)(qt)),iconStyle:(0,k.jt)((0,k.kw)("solid","default")),value:(0,k.jt)((0,k.or)(k.Z_,k.Ry)),__privateCvcOptional:(0,k.jt)(k.Xg),__privateValue:(0,k.jt)((0,k.or)(k.Z_,k.Ry)),__privateEmitIbanValue:(0,k.jt)(k.Xg),error:(0,k.jt)((0,k.mC)({type:k.Z_,code:(0,k.jt)(k.Z_),decline_code:(0,k.jt)(k.Z_),param:(0,k.jt)(k.Z_)})),locale:(0,k.yv)("elements()"),fonts:(0,k.yv)("elements()"),placeholder:(0,k.jt)(k.Z_),disabled:(0,k.jt)(k.Xg),placeholderCountry:(0,k.jt)(k.Z_),paymentRequest:(0,k.jt)((0,k.n2)(Dt,"stripe.paymentRequest(...)")),supportedCountries:(0,k.jt)((0,k.CT)(k.Z_)),accountHolderType:(0,k.jt)((0,k.kw)("individual","company")),issuingCard:(0,k.jt)(k.Z_),ephemeralKeySecret:(0,k.jt)(k.Z_),nonce:(0,k.jt)(k.Z_),toCopy:(0,k.jt)((0,k.kw)("number","cvc","expiry","pin"))},Ut=(0,k.mC)(Ft),Gt=(rt={},(0,h.Z)(rt,R.Yj.card,$e.NC.CARD_ELEMENT),(0,h.Z)(rt,R.Yj.cardNumber,$e.NC.CARD_ELEMENT),(0,h.Z)(rt,R.Yj.cardExpiry,$e.NC.CARD_ELEMENT),(0,h.Z)(rt,R.Yj.cardCvc,$e.NC.CARD_ELEMENT),(0,h.Z)(rt,R.Yj.postalCode,$e.NC.CARD_ELEMENT),(0,h.Z)(rt,R.Yj.paymentRequestButton,$e.NC.PAYMENT_REQUEST_ELEMENT),(0,h.Z)(rt,R.Yj.iban,$e.NC.IBAN_ELEMENT),(0,h.Z)(rt,R.Yj.idealBank,$e.NC.IDEAL_BANK_ELEMENT),(0,h.Z)(rt,R.Yj.p24Bank,$e.NC.P24_BANK_ELEMENT),(0,h.Z)(rt,R.Yj.auBankAccount,$e.NC.AU_BANK_ACCOUNT_ELEMENT),(0,h.Z)(rt,R.Yj.fpxBank,$e.NC.FPX_BANK_ELEMENT),(0,h.Z)(rt,R.Yj.issuingCardNumberDisplay,$e.NC.ISSUING_CARD_NUMBER_DISPLAY_ELEMENT),(0,h.Z)(rt,R.Yj.issuingCardCopyButton,$e.NC.ISSUING_CARD_COPY_BUTTON_ELEMENT),(0,h.Z)(rt,R.Yj.issuingCardCvcDisplay,$e.NC.ISSUING_CARD_CVC_DISPLAY_ELEMENT),(0,h.Z)(rt,R.Yj.issuingCardExpiryDisplay,$e.NC.ISSUING_CARD_EXPIRY_DISPLAY_ELEMENT),(0,h.Z)(rt,R.Yj.issuingCardPinDisplay,$e.NC.ISSUING_CARD_PIN_DISPLAY_ELEMENT),(0,h.Z)(rt,R.Yj.epsBank,$e.NC.EPS_BANK_ELEMENT),(0,h.Z)(rt,R.Yj.netbankingBank,$e.NC.NETBANKING_BANK_ELEMENT),(0,h.Z)(rt,R.Yj.afterpayClearpayMessageModal,$e.NC.AFTERPAY_MESSAGE_MODAL_ELEMENT),(0,h.Z)(rt,R.Yj.autocompleteSuggestions,$e.NC.AUTOCOMPLETE_SUGGESTIONS_ELEMENT),(0,h.Z)(rt,R.Yj.achBankSearchResults,$e.NC.ACH_BANK_SEARCH_RESULTS_ELEMENT),rt),Yt=n(9144),Ht=function(e){var t=(0,E.Dx)(e,null);return!!t&&"rtl"===t.getPropertyValue("direction")},zt=function(){document.activeElement&&document.activeElement.blur&&document.activeElement.blur()},Kt=n(7030),Jt=function(e){var t=document.createElement("input");return t.className=e,t.setAttribute("aria-hidden","true"),t.setAttribute("aria-label"," "),t.setAttribute("autocomplete","false"),t.maxLength=1,t.disabled=!0,(0,E.yq)(t,Yt.ZS),t},Wt=function(e){var t=getComputedStyle(e);return"0px"!==t.borderBottomWidth||"none"!==t.boxShadow||"rgba(0, 0, 0, 0)"!==t.backgroundColor||"none"!==t.backgroundImage},Vt=function(e){var t=getComputedStyle(e);return"0px"!==t.borderRadius&&"hidden"===t.overflow},Xt={margin:"0",padding:"0",border:"none",display:"block",background:"transparent",position:"relative",opacity:"1"},$t=function(e){var t=e.name,n=e.value,r=e.expiresIn,o=e.path,i=e.domain,a=e.protocol,c=e.sameSite,s=void 0===c?"Lax":c,u=new Date,l=r||31536e6;u.setTime(u.getTime()+l);var p=o||"/",d=(n||"").replace(/[^!#-+\--:<-[\]-~]/g,encodeURIComponent),m="".concat(encodeURIComponent(t),"=").concat(d,";expires=").concat(u.toGMTString(),";path=").concat(p,";SameSite=").concat(s);return i&&(m+=";domain=".concat(i)),"https:"===a&&(m+=";secure"),document.cookie=m,m},Qt=function(e){var t=(0,N.sE)(document.cookie.split("; "),(function(t){var n=t.indexOf("=");try{return decodeURIComponent(t.substr(0,n))===e}catch(e){return!1}}));if(!t)return null;var n=t.indexOf("=");try{return decodeURIComponent(t.substr(n+1))}catch(e){return null}},en=n(3110),tn=n.n(en),nn=R.Xk.replace(/\/$/,""),rn="_1776170249",on="__1104211103",an=function(e){var t,n=(t={},(0,h.Z)(t,rn,!0),(0,h.Z)(t,on,!1),t);try{var r=(0,P.vB)(e.slice(e.indexOf("?")+1));Object.keys(r).forEach((function(e){var t=tn()(e),o=r[e];switch(t){case rn:"false"===o&&(n[t]=!1);break;case on:"true"===o&&(n[t]=!0)}}))}catch(e){}return n}(function(e){try{if(e.currentScript)return e.currentScript.src;var t=e.querySelectorAll('script[src^="'.concat(nn,'"]')),n=(0,N.sE)(t,(function(e){var t=(e.getAttribute("src")||"").split("?")[0];return new RegExp("^".concat(nn,"/?$")).test(t)}));return n&&n.getAttribute("src")||""}catch(e){return""}}(document)),cn=an[rn],sn=an[on],un=n(3852),ln=n(1120),pn=n(4044),dn=function(e){function t(e){var r,o=e.type,i=e.controllerId,a=e.listenerRegistry,c=e.betas,s=e.appParams;return(0,m.Z)(this,t),(r=n.call(this))._sendFAReq=function(e){var t=(0,S.To)(e.tag);return new J.J((function(n,o){r._requests[t]={resolve:n,reject:o},r._send({message:{action:"stripe-frame-action",payload:{nonce:t,faReq:e}},type:"outer",frameId:r.id,controllerId:r._controllerId})}))},r.action={perform3DS2Challenge:function(e){return r._sendFAReq({tag:"PERFORM_3DS2_CHALLENGE",value:e})},perform3DS2Fingerprint:function(e){return r._sendFAReq({tag:"PERFORM_3DS2_FINGERPRINT",value:e})},performOneClickWebauthnAuthentication:function(e){return r._sendFAReq({tag:"PERFORM_ONE_CLICK_WEBAUTHN_AUTHENTICATION",value:e})},show3DS2Spinner:function(e){return r._sendFAReq({tag:"SHOW_3DS2_SPINNER",value:e})},checkCanMakePayment:function(e){return r._sendFAReq({tag:"CHECK_CAN_MAKE_PAYMENT",value:e})},closeLightboxFrame:function(e){return r._sendFAReq({tag:"CLOSE_LIGHTBOX_FRAME",value:e})},openLightboxFrame:function(e){return r._sendFAReq({tag:"OPEN_LIGHTBOX_FRAME",value:e})},setFocusTarget:function(e){return r._sendFAReq({tag:"SET_FOCUS_TARGET",value:e})}},r.type=o,r.loaded=!1,r._controllerId=i,r._persistentMessages=[],r._queuedMessages=[],r._requests={},r._listenerRegistry=a,r.id=r._generateId(),r._iframe=r._createIFrame(o,c,s),r._on("load",(function(){r.loaded=!0,r._ensureMounted(),r.loaded&&(r._persistentMessages.forEach((function(e){return r._send(e)})),r._queuedMessages.forEach((function(e){return r._send(e)})),r._queuedMessages=[])})),r._on("title",(function(e){var t=e.title;r._iframe.setAttribute("title",t)})),r}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"_generateId",value:function(){return(0,S.To)("__privateStripeFrame")}},{key:"send",value:function(e){this._send({message:e,type:"outer",frameId:this.id,controllerId:this._controllerId})}},{key:"sendPersistent",value:function(e){this._ensureMounted();var t={message:e,type:"outer",frameId:this.id,controllerId:this._controllerId};this._persistentMessages=[].concat((0,d.Z)(this._persistentMessages),[t]),this.loaded&&(0,$e.oi)(t)}},{key:"resolve",value:function(e,t){this._requests[e]&&this._requests[e].resolve(t)}},{key:"reject",value:function(e,t){this._requests[e]&&this._requests[e].reject(t)}},{key:"_send",value:function(e){this._ensureMounted(),this.loaded?(0,$e.oi)(e):this._queuedMessages=[].concat((0,d.Z)(this._queuedMessages),[e])}},{key:"appendTo",value:function(e){this._emit("mount",{anchor:e}),e.appendChild(this._iframe)}},{key:"prependTo",value:function(e,t){this._emit("mount",{anchor:e,parent:t}),t.insertBefore(this._iframe,e)}},{key:"unmount",value:function(){this.loaded=!1,this._emit("unload")}},{key:"destroy",value:function(){this.unmount();var e=this._iframe.parentElement;e&&e.removeChild(this._iframe),this._emit("destroy")}},{key:"_ensureMounted",value:function(){this._isMounted()||this.unmount()}},{key:"_isMounted",value:function(){return!!document.body&&document.body.contains(this._iframe)}},{key:"_createIFrame",value:function(e,t,n){var r=window.location.href.toString(),o="string"==typeof n?n:(0,P.qC)((0,p.Z)((0,p.Z)({},n||{}),{},{referrer:r,controllerId:this._controllerId})),i=document.createElement("iframe");i.setAttribute("name",this.id);var a=(0,$e.i7)(e);return Object.keys(a).forEach((function(e){i.setAttribute(e,a[e])})),null!=n&&n.allowCamera&&i.setAttribute("allow","camera"),i.src="".concat((0,pn.D)(e)).concat(o?"#":"").concat(o),i}}]),t}(z),mn=dn,fn=function(e){function t(e){var r;if((0,m.Z)(this,t),(r=n.call(this,e)).autoload=e.autoload||!1,"complete"===document.readyState)r._ensureMounted();else{var o=r._ensureMounted.bind((0,v.Z)(r));r._listenerRegistry.addEventListener(document,"DOMContentLoaded",o),r._listenerRegistry.addEventListener(window,"load",o),setTimeout(o,5e3)}return r}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"_ensureMounted",value:function(){i((0,ln.Z)(t.prototype),"_ensureMounted",this).call(this),this._isMounted()||this._autoMount()}},{key:"_autoMount",value:function(){var e=document.body;if(e){var t=document.querySelector("#stripe-hidden-frames-container")||e;this.appendTo(t)}else if("complete"===document.readyState||"interactive"===document.readyState)throw new M.No("Stripe.js requires that your page has a element.");this.autoload&&(this.loaded=!0)}},{key:"_createIFrame",value:function(e,n,r){var o=i((0,ln.Z)(t.prototype),"_createIFrame",this).call(this,e,n,r);return o.setAttribute("aria-hidden","true"),o.setAttribute("tabIndex","-1"),(0,E.SV)(o),o}}]),t}(mn),hn=fn,_n=function(e){function t(){return(0,m.Z)(this,t),n.apply(this,arguments)}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"_generateId",value:function(){return this._controllerId}}]),t}(hn),yn=_n,vn="__privateStripeMetricsController",gn="merchant",bn="session",wn="NA",kn=function(e){return 42===e.length},Sn=function(e,t,n){return n?!e||!kn(e)&&kn(t)?t:e:(0,S.Vj)()},En=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,m.Z)(this,e),this._controllerFrame=null,this._latencies=[],this._handleMessage=function(e){return function(n){var r=n.data,o=n.origin;if((0,P.Qg)(o)&&"string"==typeof r)try{var i=JSON.parse(r),a=i.originatingScript,c=i.payload;if("m2"===a){var s=c.guid,u=c.muid,l=c.sid;t._guid=s,t._muid=t._getID(gn,u),t._sid=t._getID(bn,l),e()}}catch(e){}}},n.checkoutIds){var r=n.checkoutIds,o=r.muid,i=r.sid;this._guid=wn,this._muid=o,this._sid=i,this._doNotPersist="NA"!==o&&"NA"!==i}else this._guid=wn,this._muid=this._getID(gn),this._sid=this._getID(bn),this._doNotPersist=!1;this._listenerRegistry=(0,un.E)(),this._idsPromise=new J.J((function(e){t._establishMessageChannel(e)})),this._id=(0,S.To)(vn),cn&&(this._controllerFrame=new yn({type:$e.NC.METRICS_CONTROLLER,controllerId:this._id,listenerRegistry:this._listenerRegistry,autoload:!0,appParams:this._buildFrameQueryString()}),this._startIntervalCheck(),setTimeout(this._testLatency.bind(this),2e3+500*Math.random()))}return(0,f.Z)(e,[{key:"ids",value:function(){return{guid:this._guid,muid:this._muid,sid:this._sid}}},{key:"idsPromise",value:function(){var e=this;return this._idsPromise.then((function(){return e.ids()}))}},{key:"_establishMessageChannel",value:function(e){if(!cn)return this._guid=(0,S.Vj)(),void e();this._listenerRegistry.addEventListener(window,"message",this._handleMessage(e))}},{key:"_startIntervalCheck",value:function(){var e=this,t=window.location.href;setInterval((function(){var n=window.location.href;n!==t&&(e.send((function(e){return{action:"ping",payload:{sid:e.sid,muid:e.muid,title:document.title,referrer:document.referrer,url:document.location.href,version:6}}})),t=n)}),5e3)}},{key:"report",value:function(e,t){this.send((function(n){return{action:"track",payload:{sid:n.sid,muid:n.muid,url:document.location.href,source:e,data:t,version:6}}}))}},{key:"send",value:function(e){var t=this;this._idsPromise.then((function(){try{t._controllerFrame&&t._controllerFrame.send(e(t.ids()))}catch(e){}}))}},{key:"_testLatency",value:function(){var e=this,t=new Date;this._listenerRegistry.addEventListener(document,"mousemove",(function n(){try{var r=new Date;e._latencies.push(r-t),e._latencies.length>=10&&(e.report("mouse-timings-10",e._latencies),e._listenerRegistry.removeEventListener(document,"mousemove",n)),t=r}catch(e){}}))}},{key:"_extractMetaReferrerPolicy",value:function(){var e=document.querySelector("meta[name=referrer]");return null!=e&&e instanceof HTMLMetaElement?e.content.toLowerCase():null}},{key:"_extractUrl",value:function(e){var t=document.location.href;switch(e){case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":return document.location.origin;case"unsafe-url":return t.split("#")[0];default:return t}}},{key:"_buildFrameQueryString",value:function(){var e=this._extractMetaReferrerPolicy(),t=this._extractUrl(e),n={url:t,title:document.title,referrer:document.referrer,muid:this._muid,sid:this._sid,version:6,preview:(0,P.Qg)(t)};return null!=e&&(n.metaReferrerPolicy=e),Object.keys(n).map((function(e){return null!=n[e]?"".concat(e,"=").concat(encodeURIComponent(n[e].toString())):null})).join("&")}},{key:"_getID",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;switch(e){case gn:if(this._doNotPersist)return Sn(this._muid,t,cn);try{var n="__stripe_mid",r=Sn(Qt(n),t,cn);return kn(r)&&$t({name:n,value:r,domain:".".concat(document.location.hostname),protocol:document.location.protocol,sameSite:"Strict"}),r}catch(e){return wn}case bn:if(this._doNotPersist)return Sn(this._sid,t,cn);try{var o="__stripe_sid",i=Sn(Qt(o),t,cn);return kn(i)&&$t({name:o,value:i,domain:".".concat(document.location.hostname),protocol:document.location.protocol,sameSite:"Strict",expiresIn:18e5}),i}catch(e){return wn}default:throw new Error("Invalid ID type specified: ".concat(e))}}}]),e}(),Cn=null,Pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Cn=new En(e)},An=!1,In=function(){var e=Cn;e&&(An||(An=!0,e.send((function(e){return{action:"ping",payload:{v2:2,sid:e.sid,muid:e.muid,title:document.title,referrer:document.referrer,url:document.location.href,version:6}}})),e.send((function(t){return{action:"track",payload:{sid:t.sid,muid:t.muid,url:document.location.href,source:"mouse-timings-10-v2",data:e._latencies,version:6}}}))))},Nn=["test_id"],Mn=function(e){switch(e.type){case"object":return Nn.push(e.object.id),{issuingCard:e.object};case"error":return{error:e.error};default:return(0,k.Rz)(e)}},Tn=function(e){switch(e.type){case"object":return{nonce:e.object.public_nonce};case"error":return{error:e.error};default:return(0,k.Rz)(e)}},Rn=function(e){return Math.round(parseFloat(e.replace("px","")))||0},On=function(e,t){if(!e)return{source:"frame",outerHeight:Math.max(28,t.clientHeight),innerHeight:t.clientHeight,outerBorderRadius:0,outerPadding:null,hasInputBoxStyles:!1};var n,r,o,i,a,c,s,u,l,p,d,m=(r=t,o=(n=e).getBoundingClientRect(),i=r.getBoundingClientRect(),a=getComputedStyle(n),c=a.borderTopWidth,s=a.borderBottomWidth,u=a.borderLeftWidth,l=a.borderRightWidth,{top:i.top-o.top-Rn(c),bottom:o.bottom-i.bottom-Rn(s),left:i.left-o.left-Rn(u),right:o.right-i.right-Rn(l)}),f=t.clientHeight,h=2*Math.min(m.top,m.bottom)+f;return{source:"wrapper",outerHeight:Math.min(h,e.clientHeight),innerHeight:t.clientHeight,outerBorderRadius:(p=e,d=getComputedStyle(p),-1!==d.borderRadius.indexOf(" ")?0:Rn(d.borderRadius)),outerPadding:m,hasInputBoxStyles:Wt(e)}},jn=function(e,t){return new J.J((function(n){(0,E.d3)(e,(function(){(0,E.w3)(e).then((function(){var r;try{r=function(e,t){for(var n={card:Wt,paymentRequestButton:Vt}[t],r=e.parentElement,o=0,i=null,a=e.clientHeight,c=e.clientWidth,s="card"===t?3*a:a,u="card"===t?1.5*c:c;o<4&&null!==r;){var l=r,p=l.clientHeight,d=l.clientWidth;if(p>s||d>u)return 0===o?r:i;if(n(r))return r;p>a&&(i=r,s=p),d>c&&(i=r,u=d),o+=1,r=r.parentElement}return i}(e,t)}catch(e){r=null}n(On(r,e))}))}))}))},Zn={margin:"0","user-select":"none",transform:"translate(0)","color-scheme":"only light",display:"block",position:"absolute",top:"0",right:"0",height:"0",width:"var(--stripeElementWidth)",padding:"0",border:"0",overflow:"hidden",opacity:"1",visibility:"visible"},xn={display:"block",position:"absolute",top:"50%",right:"0",width:"0",margin:"0",padding:"0",border:"0",background:"none",opacity:"1",overflow:"hidden",visibility:"visible"},Ln=function(e){var t,n=e.isOverride,r=e.betas,o=e.parent,i=e.frame,a=e.locale,c=void 0===a?"auto":a,s=e.controller,u=e.style,l=e.iconStyle,d=e.disabled,m=e.onSubmit,f=e.onLoad,h=e.onError,_=Ct(),y=null,v=(0,lt.Nj)(c),g=!1,b="",w=(0,pn.D)("LINK_BUTTON_FOR_CARD_ELEMENT"),k=document.createElement("iframe");k.setAttribute("frameborder","0"),k.setAttribute("allowTransparency","true"),k.setAttribute("scrolling","no"),(0,E.yq)(k,Zn),k.src="".concat(w,"#").concat((0,P.qC)({locale:v,style:u,iconStyle:l,disabled:d,betas:r}));var S,C=document.createElement("div");C.appendChild(k),(0,E.yq)(C,xn),n&&!document.getElementById("test-mode-banner")&&((S=document.createElement("marquee")).id="test-mode-banner",S.innerText="Link in Card Test Mode",(0,E.yq)(S,{position:"fixed",left:"0",right:"0",top:"0",color:"#fff","background-color":"#33ddb3","z-index":"9999999"}),document.body.appendChild(S));var A=function(e){var t,n,r=e.data,o=e.origin;if(e.source===k.contentWindow&&o===R.jQ&&-1!==(null===(t=r.action)||void 0===t?void 0:t.indexOf("card-element-link")))switch(r.action){case"card-element-link-load":g=!0,y&&(M(y),y=null),T(),f();break;case"card-element-link-measurements":i.send({action:"stripe-link-in-card-measurements",payload:r.payload});break;case"card-element-link-clear":i.send({action:"stripe-internal-link-clear",payload:{}});break;case"card-element-link-focus":i.send({action:"stripe-user-link-in-card-focus",payload:{isFocused:r.payload.isFocused}});break;case"card-element-link-click":var a={name:null,email:null,phoneCountry:null,phoneNumber:null};if("link-pay"===r.payload.type||"link-save"===r.payload.type)try{a=_()}catch(e){s.report("prefill_data_collection_error",{message:null==e?void 0:e.message,stack:null==e?void 0:e.stack,name:null==e?void 0:e.name})}0,i.send({action:"stripe-user-link-in-card-click",payload:{locale:v||"en",prefill:a,type:r.payload.type,isVisible:r.payload.isVisible,isSecureClick:r.payload.isSecureClick,publishableKey:s._apiKey,stripeAccount:null!==(n=s._stripeAccount)&&void 0!==n?n:null,stripeJsId:s._stripeJsId,mids:s.mids()}});break;case"card-element-link-update-styles":var c=r.payload,u=c.wrapperStyles,l=c.frameStyles;(0,E.yq)(C,(0,p.Z)((0,p.Z)({},xn),u)),(0,E.yq)(k,(0,p.Z)((0,p.Z)({},Zn),l));break;case"card-element-link-error":h(r.payload.reason||"");break;case"card-element-link-report":s.report(r.payload.event,(0,p.Z)({},r.payload.data));break;case"card-element-link-submit":m()}},I=function(e){var t;null==k||null===(t=k.contentWindow)||void 0===t||t.postMessage(e,R.jQ)},N=function(e){var t=e.isOpen;I({action:"card-element-link-popup-toggled",payload:{isOpen:t}})},M=function(e){g?(I({action:"card-element-link-user-update",payload:e}),e.locale&&(v=(0,lt.Nj)(e.locale))):y=(0,p.Z)((0,p.Z)({},y),e)},T=(0,W.$M)((function(){jn(o,"card").then((function(e){"frame"===e.source&&s.report("link_in_card.outer_wrapper_not_found");var n=function(){o.style.setProperty("--stripeElementWidth","".concat(o.getBoundingClientRect().width,"px"))};n(),window.ResizeObserver&&(t=new ResizeObserver(n)).observe(o),I({action:"card-element-link-outer-measurements",payload:e})}))})),O=function(){I({action:"card-element-link-payment-error"})},j=function(){I({action:"card-element-link-focus-button"})};return i._on("outer-link-card-popup-toggled",N),i._on("outer-link-card-user-update",M),i._on("outer-link-card-payment-error",O),k.addEventListener("focus",j,!1),window.addEventListener("message",A,!1),null==o||o.appendChild(C),s.report("link_in_card.mount_link_frame"),{unmount:function(){var e;I({action:"card-element-link-unmount",payload:{}}),i._off("outer-link-card-popup-toggled",N),i._off("outer-link-card-user-update",M),i._off("outer-link-card-payment-error",O),k.removeEventListener("focus",j,!1),window.removeEventListener("message",A,!1),null===(e=t)||void 0===e||e.disconnect(),null==o||o.removeChild(C),s.report("link_in_card.unmount_link_frame")},updateButton:function(e){b=e,I({action:"card-element-link-state-change",payload:{nextLinkState:e}})},hasLoaded:function(){return g},getActiveButton:function(){return b},setLinkToken:function(e){I({action:"card-element-link-token-received",payload:{token:e}})},setFocusable:function(e){k.setAttribute("tabIndex",e?"0":"-1")},updateUserOptions:M,updateCardPaymentError:O}},Bn={base:"StripeElement",focus:"StripeElement--focus",invalid:"StripeElement--invalid",complete:"StripeElement--complete",empty:"StripeElement--empty",webkitAutofill:"StripeElement--webkit-autofill"},Dn="#faffbd",qn=function(e){return parseFloat(e.toFixed(1))},Fn=function(e){return/^\d+(\.\d*)?px$/.test(e)},Un=function(){function e(t){var n,r,o=this;(0,m.Z)(this,e),this.focus=function(){if(o._isIssuingDisplayElement())throw new M.No("Cannot call focus() on an ".concat(o._componentName," Element."));document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),o._fakeInput.focus()},this._formSubmit=function(){for(var e=o._component.parentElement;e&&"FORM"!==e.nodeName;)e=e.parentElement;if(e){var t=document.createEvent("Event");t.initEvent("submit",!0,!0),e.dispatchEvent(t)}},this._unmountLinkButtonFrame=function(){o._linkButtonFrame&&((0,E.yq)(o._fakeInput,Yt.ZS),o._restrictFocusToCardOnly(),o._linkButtonFrame.unmount(),o._linkButtonFrame=void 0)},this._isActiveLinkButton=function(e){var t;return(null===(t=o._linkButtonFrame)||void 0===t?void 0:t.getActiveButton())===e},this._restrictFocusToLinkFrameOnly=function(){var e;o._fakeInput.setAttribute("tabIndex","-1"),null===(e=o._linkButtonFrame)||void 0===e||e.setFocusable(!0)},this._restrictFocusToCardOnly=function(){var e;o._fakeInput.removeAttribute("tabIndex"),null===(e=o._linkButtonFrame)||void 0===e||e.setFocusable(!1)},this._allowFrameAndCardFocus=function(){var e;o._fakeInput.removeAttribute("tabIndex"),null===(e=o._linkButtonFrame)||void 0===e||e.setFocusable(!0)},this._handleLinkStateChangeFocusBehavior=function(e){switch(o._frame._iframe.removeAttribute("tabIndex"),e?(0,E.yq)(o._fakeInput,(0,p.Z)((0,p.Z)({},Yt.ZS),{},{"z-index":"-1"})):(0,E.yq)(o._fakeInput,Yt.ZS),e){case"link-manage":o._frame._iframe.setAttribute("tabIndex","-1"),o._restrictFocusToLinkFrameOnly();break;case"link-pay":o._focused?o._restrictFocusToLinkFrameOnly():o._restrictFocusToCardOnly();break;case"link-save":case"link-use":o._focused?o._restrictFocusToLinkFrameOnly():o._allowFrameAndCardFocus();break;default:o._restrictFocusToCardOnly()}};var i=t.options,a=t.component,c=t.listenerRegistry,s=t.elementTimings,u=t.emitEvent,l=t.getParent,d=t.hasRegisteredListener,f=(0,N.CE)(i,["loader","appearance","clientSecret"]),h=f.controller,_=f.componentName,y=f.publicOptions,v=f.betas;this._betas=v,this._componentName=_,this._component=a,this._controller=h,this._listenerRegistry=c,this._emitEvent=u,this._getParent=l,this._hasRegisteredListener=d;var g=(0,k.Gu)(Ut,y||{},"create()"),b=g.value;g.warnings.forEach((function(e){return o._controller.warn(e)}));var w=b.paymentRequest,S=b.classes,C=b.issuingCard,P=null===(n=b.style)||void 0===n||null===(r=n.paymentRequestButton)||void 0===r?void 0:r.height;this._cachedOptions={style:{paymentRequestButton:{height:"string"==typeof P?P:void 0}}};var A,I="paymentRequestButton"===this._componentName;if(I){if(!w)throw new M.No("You must pass in a stripe.paymentRequest object in order to use this Element.");this._paymentRequest=w;var T=f.locale;this._paymentRequest._registerElement(),this._paymentRequest._updateLocale(T)}if(this._isIssuingDisplayElement()){var R=0===(v||[]).length;if(!C)throw new Error("You must pass in an ID to the issuingCard option in order to use this Element.");if(R){if(!("nonce"in b)||!("ephemeralKeySecret"in b))throw new Error("You must set the nonce and ephemeralKeySecret options to use this Element.")}else if(A=C,-1===Nn.indexOf(A))throw new Error("Issuing card ".concat(C," has not been retrieved."))}this._createElement(f,b,s),this._classes=Bn,this._computeCustomClasses(S||{}),this._lastBackgroundColor="",this._focused=!1,this._empty=!I,this._invalid=!1,this._complete=!1,this._autofilled=!1,this._hasUnmounted=!1,this._lastSubmittedAt=null}return(0,f.Z)(e,[{key:"update",value:function(e){var t=this,n=(0,k.Gu)(Ut,e||{},"element.update()"),r=n.value;if(n.warnings.forEach((function(e){return t._controller.warn(e)})),r){var o,i,a={style:r.style,iconStyle:r.iconStyle,disabled:r.disabled},c=null===(o=r.style)||void 0===o||null===(i=o.paymentRequestButton)||void 0===i?void 0:i.height,s={style:{paymentRequestButton:{height:"string"==typeof c?c:void 0}}};this._cachedOptions=(0,N.PM)(this._cachedOptions,s),this._linkButtonFrame?this._linkButtonFrame.updateUserOptions(a):this._queuedLinkButtonFrameUpdates=(0,p.Z)((0,p.Z)({},this._queuedLinkButtonFrameUpdates),a);var u=r.classes,l=(0,w.Z)(r,["classes"]);u&&(this._removeClasses(),this._computeCustomClasses(u),this._updateClasses()),this._updateFrameHeight(r),Object.keys(l).length&&(this._frame.update(l),this._secondaryFrame&&this._secondaryFrame.update(l))}}},{key:"blur",value:function(){if(this._isIssuingDisplayElement())throw new M.No("Cannot call blur() on an ".concat(this._componentName," Element."));this._frame.blur(),this._fakeInput.blur()}},{key:"clear",value:function(){this._frame.clear()}},{key:"unmount",value:function(){this._hasUnmounted=!0;var e=this._getParent(),t=this._label;e&&(this._listenerRegistry.removeEventListener(e,"click",this.focus),this._removeClasses()),t&&(this._listenerRegistry.removeEventListener(t,"click",this.focus),this._label=null),this._secondaryFrame&&(this._secondaryFrame.unmount(),this._listenerRegistry.removeEventListener(window,"click",this._handleOutsideClick)),this._unmountLinkButtonFrame(),this._fakeInput.disabled=!0,this._frame.unmount()}},{key:"mount",value:function(){if((0,E.qW)(document,this._component)){this._controller.report("user_error.shadow_dom_mount",{element:this._componentName});var e=function(){throw new M.No("Elements cannot be mounted in a ShadowRoot. Please mount in the Light DOM.")};"test"===this._controller.keyMode()?e():setTimeout(e,0)}if(this._paymentRequest){if(!this._paymentRequest._canMakePaymentResolved)throw new M.No("For the paymentRequestButton Element, you must first check availability using paymentRequest.canMakePayment() before mounting the Element.");if(!this._paymentRequest._activeBackingLibraryName)throw new M.No("The paymentRequestButton Element is not available in the current environment.")}this._mountTimestamp=new xt.E,this._findPossibleLabel(),this._updateClasses(),this._hasUnmounted&&"paymentRequestButton"===this._componentName&&this._frame.send({action:"stripe-cached-options-remount",payload:this._cachedOptions})}},{key:"_isIssuingDisplayElement",value:function(){return"issuingCardNumberDisplay"===this._componentName||"issuingCardCvcDisplay"===this._componentName||"issuingCardExpiryDisplay"===this._componentName||"issuingCardPinDisplay"===this._componentName}},{key:"_updateClasses",value:function(){var e=this._getParent();e&&(0,E.mb)(e,[[this._classes.base,!0],[this._classes.empty,this._empty],[this._classes.focus,this._focused],[this._classes.invalid,this._invalid],[this._classes.complete,this._complete],[this._classes.webkitAutofill,this._autofilled]])}},{key:"_removeClasses",value:function(){var e=this._getParent();e&&(0,E.mb)(e,[[this._classes.base,!1],[this._classes.empty,!1],[this._classes.focus,!1],[this._classes.invalid,!1],[this._classes.complete,!1],[this._classes.webkitAutofill,!1]])}},{key:"_findPossibleLabel",value:function(){var e=this._getParent();if(e){var t,n=e.getAttribute("id");if(n&&(t=document.querySelector("label[for='".concat(n,"']"))),t)this._listenerRegistry.addEventListener(e,"click",this.focus);else for(t=t||e.parentElement;t&&"LABEL"!==t.nodeName;)t=t.parentElement;t?(this._label=t,this._listenerRegistry.addEventListener(t,"click",this.focus)):this._listenerRegistry.addEventListener(e,"click",this.focus)}}},{key:"_computeCustomClasses",value:function(e){var t={};return Object.keys(e).forEach((function(n){if(!Bn[n])throw new M.No("".concat(n," is not a customizable class name.\nYou can customize: ").concat(Object.keys(Bn).join(", ")));var r=e[n]||Bn[n];t[n]=r.replace(/\./g," ")})),this._classes=(0,p.Z)((0,p.Z)({},this._classes),t),this}},{key:"_setupEvents",value:function(e,t,n){var r,o=this,i=e.stripeJsLoadTimestamp,a=(e.stripeCreateTimestamp,e.groupCreateTimestamp),c=e.createTimestamp,s=null,u=!1,l=!1,m=function(e,t){if("card"===o._componentName&&!l){l=!0;try{var n=null==t?void 0:t.replace(/\s/g,""),r=!!n&&["function(){}","functionqn(){}","functionnoop(){}","functionnoop(){//Nooperationperformed.}"].indexOf(n)>-1;o._controller.report("networks_change_listener",{hasRegisteredListener:e,hasNoopListener:r})}catch(e){}}},f={stripeJsLoad:i.getAsPosixTime(),stripeCreate:c.getAsPosixTime(),groupCreate:a.getAsPosixTime(),create:c.getAsPosixTime()};if(this._controller.deferredCanMakePaymentResponse.promise.then((function(e){o._frame.send({action:"stripe-can-make-payment-response",payload:e})})),this._frame._on("outer-link-card-user-update",(function(e){var t=e.locale;!o._linkButtonFrame&&t&&(o._queuedLinkButtonFrameUpdates=(0,p.Z)((0,p.Z)({},o._queuedLinkButtonFrameUpdates),{},{locale:t}))})),this._frame._on("outer-link-card-token",(function(e){var t,n=e.token;null!==(t=o._linkButtonFrame)&&void 0!==t&&t.hasLoaded()?o._linkButtonFrame.setLinkToken(n):s=n})),this._frame._on("outer-link-card-payment-error",(function(){var e;null!==(e=o._linkButtonFrame)&&void 0!==e&&e.hasLoaded()?o._linkButtonFrame.updateCardPaymentError():u=!0})),this._frame._on("outer-link-card-button",(function(e){var t,n=e.nextLinkState;null!==(t=o._linkButtonFrame)&&void 0!==t&&t.hasLoaded()?(o._linkButtonFrame.updateButton(n),o._handleLinkStateChangeFocusBehavior(n)):r=n})),this._frame._on("outer-link-card-mount",(function(e){var i,a,c,l,p,d=e.isOverride;o._linkButtonFrame=Ln({isOverride:d,betas:o._betas,frame:o._frame,parent:o._component,locale:(null===(i=o._queuedLinkButtonFrameUpdates)||void 0===i?void 0:i.locale)||t.locale,controller:o._controller,style:(null===(a=o._queuedLinkButtonFrameUpdates)||void 0===a?void 0:a.style)||(null==n?void 0:n.style),iconStyle:(null===(c=o._queuedLinkButtonFrameUpdates)||void 0===c?void 0:c.iconStyle)||(null==n?void 0:n.iconStyle),disabled:null!=(null===(l=o._queuedLinkButtonFrameUpdates)||void 0===l?void 0:l.disabled)?null===(p=o._queuedLinkButtonFrameUpdates)||void 0===p?void 0:p.disabled:null==n?void 0:n.disabled,onSubmit:function(){o._frame._emit("submit")},onLoad:function(){var e,t,n;r&&(null===(e=o._linkButtonFrame)||void 0===e||e.updateButton(r),o._handleLinkStateChangeFocusBehavior(r),r="");s&&(null===(t=o._linkButtonFrame)||void 0===t||t.setLinkToken(s),s=null);u&&(null===(n=o._linkButtonFrame)||void 0===n||n.updateCardPaymentError(),u=!1)},onError:function(e){o._frame.send({action:"stripe-link-in-card-eject",payload:{reason:e}}),o._unmountLinkButtonFrame()}})})),this._frame._on("outer-link-card-unmount",(function(){return o._unmountLinkButtonFrame()})),this._frame._on("load",(function(e){var t=e.source,n=o._getParent(),r=Ht(n),i=o._paymentRequest?o._paymentRequest._buttonTypeName:null,a=o._paymentRequest?o._paymentRequest._secondaryButtonTypeName:null;o._mountTimestamp&&(f.mount=o._mountTimestamp.getAsPosixTime());var c={timestamps:f,matchFrame:t===o._frame._iframe.contentWindow,rtl:r,paymentRequestButtonType:i,secondaryPaymentRequestButtonType:a},s=function(e,t,n){o._frame.send({action:"stripe-user-mount",payload:(0,p.Z)((0,p.Z)({},c),{},{linkExperimentAssignments:e,arb_id:t,outerBorderRadius:n})})};if(-1!==[i,a].indexOf("LINK")){var u=o._controller.action.retrieveLinkConfig(),l=n?jn(n,"paymentRequestButton"):J.J.resolve();J.J.all([u,l]).then((function(e){var t,n,r,o,i=(0,K.Z)(e,2),a=i[0],c=i[1];"object"===a.type&&(t=null===(r=a.object.experiments)||void 0===r?void 0:r.experiment_assignments,n=null===(o=a.object.experiments)||void 0===o?void 0:o.arb_id);s(t,n,null==c?void 0:c.outerBorderRadius)}))}else s()})),this._secondaryFrame){var h=this._secondaryFrame;h._on("load",(function(e){var t=e.source;o._mountTimestamp&&(f.mount=o._mountTimestamp.getAsPosixTime()),h.send({action:"stripe-user-mount",payload:{timestamps:f,matchFrame:t===h._iframe.contentWindow,rtl:!1,paymentRequestButtonType:null}})}))}this._frame._on("redirectfocus",(function(e){var t=e.focusDirection,n=(0,E.dh)(o._component,t);n&&n.focus()})),this._frame._on("focus",(function(){(o._isActiveLinkButton("link-pay")||o._isActiveLinkButton("link-save")||o._isActiveLinkButton("link-use"))&&o._restrictFocusToLinkFrameOnly(),o._focused=!0,o._updateClasses()})),this._frame._on("blur",(function(){o._isActiveLinkButton("link-pay")?o._restrictFocusToCardOnly():(o._isActiveLinkButton("link-save")||o._isActiveLinkButton("link-use"))&&o._allowFrameAndCardFocus(),o._focused=!1,o._updateClasses(),o._lastSubmittedAt&&"paymentRequestButton"===o._componentName&&(o._controller.report("payment_request_button.sheet_visible",{latency:o._lastSubmittedAt.getElapsedTime()}),o._lastSubmittedAt=null)})),this._frame._on("submit",(function(e){if("paymentRequestButton"===o._componentName){o._lastSubmittedAt=new xt.E;var t=!1,n=!1;In(),o._emitEvent("click",{preventDefault:function(){o._controller.report("payment_request_button.default_prevented"),t&&o._controller.warn("event.preventDefault() was called after the payment sheet was shown. Make sure to call it synchronously when handling the `click` event."),n=!0}}),!n&&o._paymentRequest&&(o._paymentRequest._updateLastClickedButtonPosition(null==e?void 0:e.buttonPosition),o._paymentRequest._elementShow(),t=!0)}else o._emitEvent("submit"),o._formSubmit()})),["ready","focus","blur","escape","click"].forEach((function(e){o._frame._on(e,(function(){o._emitEvent(e)}))})),this._frame._on("change",(function(e){In();var t={},n=Y._0[o._componentName]||[];["error","value","empty","complete"].concat((0,d.Z)(n)).forEach((function(n){return t[n]=e[n]})),o._emitEvent("change",t),o._empty=t.empty,o._invalid=!!t.error,o._complete=t.complete,o._updateClasses()})),this._frame._on("__privateIntegrationError",(function(e){var t=e.message;o._emitEvent("__privateIntegrationError",{message:t})})),this._frame._on("networkschange-start",(function(){o._hasRegisteredListener("networkschange",m)&&o._controller.action.isCardMetadataRequired({groupId:t.groupId}).then((function(e){return e&&o._emitNetworksChangeEvent(null,!0),o._controller.action.retrieveCardNetworks({groupId:t.groupId})})).then((function(e){e&&o._emitNetworksChangeEvent(e,!1)}))})),this._frame._on("dimensions",(function(e){if("paymentRequestButton"!==o._componentName){var t=o._getParent();if(t){var n=(0,E.Dx)(t,null);if(n){var r=parseFloat(n.getPropertyValue("height")),i=e.height;if("border-box"===n.getPropertyValue("box-sizing")){var a=parseFloat(n.getPropertyValue("padding-top")),c=parseFloat(n.getPropertyValue("padding-bottom"));r=r-parseFloat(n.getPropertyValue("border-top"))-parseFloat(n.getPropertyValue("border-bottom"))-a-c}var s=qn(r),u=qn(i);0!==r&&s1&&void 0!==arguments[1]&&arguments[1],n=e.style;if("paymentRequestButton"===this._componentName){var r=n&&n.paymentRequestButton||{},o=r.height,i="string"==typeof o?o:void 0;(t||i)&&(this._frame.updateStyle({height:i||this._lastHeight||Q,minHeight:"auto"}),this._lastHeight=i||this._lastHeight)}else{var a=n&&n.base||{},c=a.lineHeight,s=a.fontSize,u=a.padding,l="string"!=typeof c||isNaN(parseFloat(c))?void 0:c,p="string"==typeof s?s:void 0,d="string"==typeof u?u:void 0;if(p&&!Fn(p)&&this._controller.warn("The fontSize style you specified (".concat(p,") is not in px. We do not recommend using relative css units, as they will be calculated relative to our iframe's styles rather than your site's.")),t||l||p){var m=-1===R.T2.indexOf(this._componentName)?void 0:d||this._lastPadding,f=(0,E.Tf)(l||this._lastHeight,p||this._lastFontSize,m);this._frame.updateStyle({height:f}),this._lastFontSize=p||this._lastFontSize,this._lastHeight=l||this._lastHeight,this._lastPadding=m}}}},{key:"_createElement",value:function(e,t,n){var r=this,o=(e.controller,e.publicOptions,e.componentName),i=e.groupId,a=(0,w.Z)(e,["controller","publicOptions","componentName","groupId"]),c=(t.classes,t.paymentRequest,(0,w.Z)(t,["classes","paymentRequest"])),s=this._component,u=Jt(Kt.Kb);(0,E.yq)(s,Xt);var l=Ht(document.body),d=Gt[o],m=(0,p.Z)((0,p.Z)((0,p.Z)({},a),c),{},{rtl:l}),f=this._controller.createElementFrame(d,o,i,m);if(f._on("load",(function(){u.disabled=!1})),this._listenerRegistry.addEventListener(u,"focus",(function(){f.focus()})),f.appendTo(s),Y._y[o]){var h=Y._y[o].secondary,_=this._controller.createSecondaryElementFrame(d,h,o,i,m);_&&_.on&&_.on("height-change",(function(e){_.updateStyle({height:"".concat(e.height,"px")})})),this._secondaryFrame=_,_.appendTo(s),this._listenerRegistry.addEventListener(window,"click",(function(){return r._handleOutsideClick()}))}if(s.appendChild(u),C.Ah&&o!==R.Yj.paymentRequestButton){var y=function(){var e=Jt(Kt.tk);return e.setAttribute("tabindex","-1"),e}();s.appendChild(y)}this._frame=f,this._fakeInput=u,this._setupEvents(n,e,t),this._updateFrameHeight(t,!0)}}]),e}(),Gn=Un,Yn={amount:k.Rx,currency:(0,k.kw)("USD","CAD"),logoColor:(0,k.jt)((0,k.kw)("primary","black","white")),fontColor:(0,k.jt)(k.Z_),fontSize:(0,k.jt)(k.Z_),textAlign:(0,k.jt)(k.Z_),stripeMerchantId:(0,k.jt)(k.Z_)},Hn=(0,k.mC)(Yn),zn=function(){return Et((function(){return n.e(1).then(n.bind(n,6167))}))},Kn=function(e){var t,r=e.options,o=(0,w.Z)(e,["options"]),i=e.emitEvent,a=e.listenerRegistry,c=r.controller,s=r.componentName,u=r.publicOptions,l=r.groupId,m=r.locale,f=new xt.E,h=function(e){var t=(0,k.Gu)(Hn,e||{},"create()"),n=t.value,r=t.warnings;if(!Math.floor(n.amount)===n.amount)throw new M.No("'Amount' must be a whole integer number that represents the lowest denomination (cents).");return r.forEach((function(e){return c.warn(e)})),n},_=h(u),y=function(e,n){return e.apply(void 0,[t].concat((0,d.Z)(n)))},v=[],g=function(e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o-1&&r.keyMode()===He.Kl.unknown)throw new M.No("It looks like you're using an older Stripe key. The Address Element is only available for use with a modern API key, which is prefixed with 'pk_live_' or 'pk_test_'.\n You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys");var s=Cr(c,i||{},"elements.create('".concat(c,"')"),!1,t.betas);s.warnings.forEach((function(e){return r.warn(e)}));var u=["payment","linkAuthentication"].indexOf(o)>-1,l="payment"===t.componentName&&(s.value.parsedIntentSecret||null);if(u&&!t.clientSecret&&!t.deferredIntent&&!l)throw new M.No("In order to create a ".concat(t.componentName,' element, you must pass a clientSecret or mode when creating the Elements group.\n\n e.g. stripe.elements({clientSecret: "{{CLIENT_SECRET}}"})'));var d=ro((0,p.Z)((0,p.Z)({},n),{},{options:(0,p.Z)((0,p.Z)({},a),{},{controller:r,componentName:c,publicOptions:s.value})})),m=d.update,f=(0,w.Z)(d,["update"]);return(0,p.Z)({update:function(e){var n=Cr(c,e||{},"".concat(c,".update()"),!0,t.betas);n.warnings.forEach((function(e){return r.warn(e)})),m(n.value)}},f)},io=function(e){var t,r=e.emitEvent,o=e.options,i=o.controller,a=o.locale,c=o.publicOptions,s=a?(0,lt.jR)(a):"en",u=new xt.E,l=function(e){var t=(0,k.Gu)(Qn,e||{},"create()"),n=t.value;return t.warnings.forEach((function(e){return i.warn(e)})),n},m=l(c),f=function(e,n){return e.apply(void 0,[t].concat((0,d.Z)(n)))},h=[],_=function(e){return function(){for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=n.reason,i=void 0===o?"fail":o,a="invalid_shipping_address"===i?new window.ApplePayError("shippingContactInvalid"):new window.ApplePayError("unknown");e.completePayment({status:Vo,errors:[a]}),t.action.expressCheckoutConfirmEnd({groupId:r})},billingDetails:f,shippingAddress:p?{name:null!==(a=Xo(u))&&void 0!==a?a:"",address:p}:void 0,shippingRate:h};t.action.setExpressCheckoutConfirmData({groupId:r,shippingContact:{name:Xo(u),address:l,phone:null},paymentMethodData:{type:A.GS.card,card:{token:o.object.id},billing_details:{email:null==u?void 0:u.emailAddress,phone:null==u?void 0:u.phoneNumber}}}).then((function(){return n.confirm(_)}))}))})))};return{shouldShowButton:function(e){return t.action.shouldShowEceButton({groupId:r,shouldShowButton:e,button:"applePay"})},clickHandler:function(e,n){var o,s,l,m=window.ApplePaySession;if(!m)return t.warn("User clicked on the Apple Pay button, but window.ApplePaySession does not exist."),void t.report("ece.apple_pay.missing_window_session");var f=(null===(o=n.business)||void 0===o?void 0:o.name)||e.businessName,h=e.currency,_=e.pending;c.total=e.amount,c.businessName=f,c.currency=h,c.pending=_,c.shippingRates=n.shippingRates,c.selectedShippingRate=null===(s=n.shippingRates)||void 0===s?void 0:s[0].id,c.allowedShippingCountries=n.allowedShippingCountries,c.lineItems=null===(l=n.lineItems)||void 0===l?void 0:l.map((function(e){var t=e.amount,n=e.name;return ei(t,n,h,_)})),function(e){var t=e.amount,n=e.billingAddressRequired,r=e.businessName,o=e.merchantCountry,i=e.currency,a=e.emailRequired,c=e.lineItems,s=e.pending,u=e.phoneNumberRequired,l=e.shippingAddressRequired,p=e.shippingRates,m=e.applePay,f=e.defaultBillingAgreement,h=e.warn,_=e.localizeString,y=e.betas,v=e.blockedCardBrands,g=[].concat((0,d.Z)(a?["email"]:[]),(0,d.Z)(u?["phone"]:[]),(0,d.Z)(l?["postalAddress"]:[])),b=n?["postalAddress"]:[],w=null==p?void 0:p.map((function(e){return ni(_,e,i)}));return J.J.all(null!=w?w:[]).then((function(e){var n=null==c?void 0:c.map((function(e){var t=e.amount,n=e.name;return ei(t,n,i,s)})),a=(m||{recurringPaymentRequest:void 0}).recurringPaymentRequest,u=["supports3DS"];return(0,I.uN)(y,"cup_apple_pay_beta_1")&&u.push("supportsEMV"),{countryCode:o,currencyCode:i.toUpperCase(),lineItems:n,merchantCapabilities:u,requiredBillingContactFields:b,requiredShippingContactFields:g,shippingMethods:e.length?e:void 0,supportedNetworks:ti(o,y,i,v),total:ei(t,r,i,s),recurringPaymentRequest:Je({recurringPaymentRequest:a,currency:i,pending:s,defaultBillingAgreement:f,warn:h})}}))}((0,p.Z)((0,p.Z)((0,p.Z)({},e),n),{},{businessName:f,warn:t.warn,localizeString:function(e,n){return t.action.unsafeLocalizeString({message:e,data:n})},betas:i,blockedCardBrands:a})).then((function(e){var n;c.isUsingRecurringPaymentRequest=!!e.recurringPaymentRequest,c.recurringPaymentRequestBillingAgreement=null===(n=e.recurringPaymentRequest)||void 0===n?void 0:n.billingAgreement;var o=new m(4,e);c.privateSession=o,u(o,f),o.begin(),c.isPaymentSheetShowing=!0,t.action.expressCheckoutSheetOpened({groupId:r,paymentMethodType:"apple_pay"}),t.report("ece.sheet_visible",{payment_method:"apple_pay"})}))},canMakePayments:function(e){var n=window.location.hostname,r=t.getCredentials().stripeAccount,o=t.keyMode()===He.Kl.test;return be(n,r,o,t.report,4,e)},completePayment:function(e){if(e){var n,o=new window.ApplePayError("unknown");null===(n=c.privateSession)||void 0===n||n.completePayment({status:Vo,errors:[o]}),t.action.expressCheckoutConfirmEnd({groupId:r})}else{var i;null===(i=c.privateSession)||void 0===i||i.completePayment({status:Wo}),s()}}}},ai=function(e){return e.map((function(e){return{label:e.name,amount:e.amount}}))},ci=function(e,t){return e.map((function(e){return Jo(e.deliveryEstimate||{},t).then((function(t){return{amount:e.amount,label:e.displayName,detail:t||"",id:e.id}}))}))},si=function(e){var t=e.controller,n=e.eventHandlers,r=e.groupId,o={shippingRates:void 0,allowedShippingCountries:void 0,pending:!1,confirmResolve:null},i=function(e){return(null==e?void 0:e.toUpperCase())||""},a=function(e){var a=e.token,c=e.payerName,s=e.payerEmail,u=e.payerPhone,l=e.shippingAddress,p=e.shippingOption,d=e.paymentDetailsId,m=e.clientSecret,f=i(null==l?void 0:l.country)||void 0,h={name:(null==l?void 0:l.recipient)||void 0,address:{line1:(null==l?void 0:l.addressLine[0])||void 0,line2:(null==l?void 0:l.addressLine[1])||void 0,city:(null==l?void 0:l.city)||void 0,state:(null==l?void 0:l.region)||void 0,postal_code:(null==l?void 0:l.postalCode)||void 0,country:f},phone:(null==l?void 0:l.phone)||void 0},_=i(a.card.address_country),y={line1:a.card.address_line1||void 0,line2:a.card.address_line2||void 0,city:a.card.address_city||void 0,state:a.card.address_state||void 0,postal_code:a.card.address_zip||void 0,country:_||void 0},v=y||s||u?{name:c||void 0,email:s||void 0,phone:u||void 0,address:y}:void 0,g=(0,N.sE)(o.shippingRates||[],(function(e){return e.id===(null==p?void 0:p.id)}));return new J.J((function(e){var i,a={paymentMethodType:"link",paymentFailed:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.reason,i=void 0===o?"fail":o;t.action.expressCheckoutConfirmEnd({groupId:r}),e({status:i})},billingDetails:v,shippingAddress:l?{name:null!==(i=l.recipient)&&void 0!==i?i:void 0,address:{line1:l.addressLine[0],line2:l.addressLine[1],city:l.city,state:l.region,postal_code:l.postalCode,country:f}}:void 0,shippingRate:g};t.action.expressCheckoutConfirmStart({groupId:r,paymentMethodType:"link"}).then((function(){return t.action.setExpressCheckoutLinkPaymentMethodData({groupId:r,clientSecret:m,paymentDetailsId:d})})).then((function(){return t.action.setExpressCheckoutConfirmData({groupId:r,shippingContact:h,paymentMethodData:{type:A.GS.link,billing_details:v}})})).then((function(){return n.confirm(a)})),o.confirmResolve=e}))},c=function(e,n){var r=e.amount&&{total:{amount:e.amount,label:"Total"}},i=e.lineItems&&{displayItems:e.lineItems&&ai(e.lineItems)};e.shippingRates?J.J.all(ci(e.shippingRates,(function(e,n){return t.action.unsafeLocalizeString({message:e,data:n})}))).then((function(t){o.shippingRates=e.shippingRates,n((0,p.Z)((0,p.Z)((0,p.Z)({},r),i),{},{shippingOptions:t,status:"success"}))})):n((0,p.Z)((0,p.Z)((0,p.Z)({},r),i),{},{status:"success"}))},s=function(e){var t=e.shippingAddress;return new J.J((function(e){var r=i(null==t?void 0:t.country),a={city:t.city,state:t.region,postal_code:t.postalCode,country:r};if(o.allowedShippingCountries&&o.allowedShippingCountries.length&&-1===o.allowedShippingCountries.indexOf(a.country))e({status:"invalid_shipping_address"});else{var s={paymentMethodType:"link",name:t.recipient,address:a,resolve:function(t){return c(t,e)},reject:function(){e({status:"invalid_shipping_address"})}};n.shippingAddressChange(s)}}))},u=function(e){var r=e.shippingOption;return new J.J((function(e){var i=(0,N.sE)(o.shippingRates||[],(function(e){return e.id===r.id}));if(!i)return(0,k.Rz)(r,"User selected a new shipping method within the Link popup, but it was not one of the shipping rates the merchant passed in."),void t.report("ece.link.errors.unexpected_shipping_rate");var a={paymentMethodType:"link",shippingRate:i,resolve:function(t){return c(t,e)},reject:function(){e({status:"fail"})}};n.shippingRateChange(a)}))},l=function(){o.pending=!1,t.action.expressCheckoutSheetClosed({groupId:r}),t.action.expressCheckoutConfirmEnd({groupId:r})};return{clickHandler:function(e,i){var c=wt({stripeJsId:t._stripeJsId,publishableKey:t._apiKey,path:"/pay",height:708,width:500,onClose:function(){t.action.consumerPreloadedDataStale(),o.pending&&(l(),n.cancel({paymentMethodType:"link"}))}});c?(t.action.expressCheckoutSheetOpened({groupId:r,paymentMethodType:"link"}),t.report("ece.sheet_visible",{payment_method:"link"}),o.pending=!0,c.messenger.on("get_initial_state",function(e,n){return function(){var r,i={publishableKey:t._apiKey,stripeAccount:t._stripeAccount,merchantInfo:{businessName:(null===(r=n.business)||void 0===r?void 0:r.name)||e.businessName,country:e.merchantCountry},customerInfo:{country:e.customerCountry},elementComponentName:"expressCheckout",locale:e.locale,integrationType:"express_checkout",stripeJsId:t._stripeJsId,mids:t.mids(),referrer:window.location.href.toString(),elementsSessionId:null,elementsAssignmentId:null,setupFutureUsage:e.setupFutureUsage,paymentRequestOptions:{__isExpressCheckoutElement:!0,country:e.merchantCountry,currency:e.currency,requestPayerEmail:n.emailRequired,requestPayerName:n.billingAddressRequired,requestPayerPhone:n.phoneNumberRequired,requestShipping:n.shippingAddressRequired,displayItems:n.lineItems&&ai(n.lineItems),total:{amount:e.amount,label:"Total"}},prefill:null};return o.shippingRates=n.shippingRates,o.allowedShippingCountries=n.allowedShippingCountries,o.shippingRates?J.J.all(ci(o.shippingRates,(function(e,n){return t.action.unsafeLocalizeString({message:e,data:n})}))).then((function(e){return i.paymentRequestOptions.shippingOptions=e,i})):i}}(e,i)),c.messenger.on("link_pbe_payment_data",a),c.messenger.on("link_prb_shipping_address_change",s),c.messenger.on("link_prb_shipping_option_change",u)):t.report("ece.link.errors.popup_blocked")},completePayment:function(e){e?(o.confirmResolve({status:"fail"}),t.action.expressCheckoutConfirmEnd({groupId:r})):(o.confirmResolve({status:"success"}),l())}}},ui=function(e){return e.reduce((function(e,t){return e.push.apply(e,(0,d.Z)(tr.L$[t])),e}),[])},li=function(e,t){if(null!=e&&e.length){var n=ui(e);return(0,d.Z)(R.iw).filter((function(e){return-1===n.indexOf(e)}))}return null!=t&&t.length?ui(t):[]},pi=function(e){var t=e.component,n=e.elementTimings,r=e.getParent,o=e.emitEvent,i=e.options,a=e.selfDestruct,c=e.hasRegisteredListener,s=e.listenerRegistry,u=i.controller,l=i.groupId,d=i.publicOptions,m=i.betas,f=i.allowedCardBrands,h=i.disallowedCardBrands,_=null,y={runOnUnmount:[],updateRequest:{isCalled:!1,inMerchantEventHandler:!1}},v=function(e){var t=e.controller,n=e.componentName,r=e.groupId,o=e.fonts,i=e.wait,a=e.publicOptions,c=e.controllingElement,s={fonts:o,wait:i,rtl:Ht(document.body),publicOptions:a,controllingElement:c};return t.createElementFrame($e.NC.EXPRESS_CHECKOUT_ELEMENT,n,r,s)}(i);(0,E.yq)(t,(0,p.Z)((0,p.Z)({},Fo),{},{margin:"-4px 0",transition:"height .35s ease"})),v.appendTo(t),v.updateStyle(Uo),v._on("set_styles",(function(e){v.updateStyle(e)})),v._on("redirectfocus",(function(e){var n,r=e.focusDirection;null===(n=(0,E.dh)(t,r))||void 0===n||n.focus()})),v._on("load",(function(){if(!i.deferredIntent)throw new M.No("In order to use the Express Checkout Element, you must specify a `mode` on stripe.elements() instead of `clientSecret`.");v.send({action:"stripe-user-mount",payload:{timestamps:{stripeJsLoad:n.stripeJsLoadTimestamp.getAsPosixTime(),stripeCreate:n.stripeCreateTimestamp.getAsPosixTime(),groupCreate:n.groupCreateTimestamp.getAsPosixTime(),create:n.createTimestamp.getAsPosixTime(),mount:_?_.getAsPosixTime():0},rtl:Ht(r())}})})),v._on("update-start",(function(){y.updateRequest.inMerchantEventHandler&&(y.updateRequest.isCalled=!0)})),v._on("update-end",(function(){var e,t;null===(e=(t=y.updateRequest).resolve)||void 0===e||e.call(t),y.updateRequest.isCalled=!1}));var g=function(e){new J.J((function(e){y.updateRequest.isCalled?y.updateRequest.resolve=e:e()})).then((function(){return i.controller.action.getElementsSessionAmountModeCurrency({groupId:l})})).then((function(t){var n=t.amount,r=t.mode,o=t.currency;y.amount=n,e(n,o,r)}))},b=function(e,t){var n=t.paymentMethodType,r=!("nonce"in t),i="ece.".concat("shippingaddresschange"===e?"shipping_address_change":"shipping_rate_change");if(u.report(i,{payment_method:n}),c(e)){var a;a=r?function(){t.reject(),y.updateRequest.inMerchantEventHandler=!1}:function(){v.send({action:"stripe-ece-change-event",payload:{nonce:t.nonce}}),y.updateRequest.inMerchantEventHandler=!1};var s=Ho({controller:u,eventName:e,time:19900,timeLabel:"20 seconds",reject:function(){u.report("".concat(i,".reject"),{payment_method:n}),a()},resolve:function(o){g((function(a,c,s){y.lastCurrency&&c!==y.lastCurrency&&zo();var l=function(e,t,n){var r=(0,k.Gu)((0,k.jt)((0,k.mC)(jo)),e,"".concat(t," event resolve callback")),o=r.value,i=r.warnings,a=null!=o?o:{};if(n){var c=Bo(a);a=c.value,c.warnings.forEach((function(e){return i.push(e)}))}if(o){var s=o.shippingRates;if(s&&!s.length)throw new M.No("You must specify `shippingRates`.")}return{value:a,warnings:i}}(o,e,"setup"===s),d=l.value;l.warnings.forEach((function(e){return u.warn(e)})),u.report("".concat(i,".resolve"),{payment_method:n,hasLineItems:!!d.lineItems,hasShippingRates:!!d.shippingRates}),y.lineItems=d.lineItems||y.lineItems,Lo(a,y.lineItems),r?t.resolve((0,p.Z)((0,p.Z)({},d),{},{amount:a})):v.send({action:"stripe-ece-change-event",payload:{nonce:t.nonce,changePayload:(0,p.Z)((0,p.Z)({},d),{},{amount:a})}})})),y.updateRequest.inMerchantEventHandler=!1},canMerchantReject:!0}),l=s.resolve,d=s.reject;return y.updateRequest.inMerchantEventHandler=!0,void o(e,(0,p.Z)((0,p.Z)({},"name"in t?{name:t.name,address:t.address}:{shippingRate:t.shippingRate}),{},{reject:d,resolve:l}))}g((function(e,n){y.lastCurrency&&n!==y.lastCurrency&&zo(),r?t.resolve({amount:e}):v.send({action:"stripe-ece-change-event",payload:{nonce:t.nonce,changePayload:{amount:e}}})}))},w=function(e){o("cancel");var t=e.paymentMethodType;u.report("ece.cancel",{payment_method:t})},S=function(e){var t=e.paymentMethodType,n=e.billingDetails,r=e.shippingAddress,i=e.shippingRate;if(u.report("ece.confirm",{payment_method:t}),!c("confirm"))throw new M.No("Unhandled expressCheckout Element confirm event. Make sure to register a confirm handler.");var a=(0,p.Z)((0,p.Z)({},(0,I.uN)(m,"express_checkout_element_beta_1")?{paymentMethodType:t}:{expressPaymentType:t}),{},{billingDetails:n,shippingAddress:r,shippingRate:i,paymentFailed:function(n){var r=function(e){var t=(0,k.Gu)((0,k.jt)((0,k.mC)(Zo)),e,"confirm event paymentFailed callback"),n=t.value;return{value:null!=n?n:{},warnings:t.warnings}}(n),o=r.value;r.warnings.forEach((function(e){return u.warn(e)})),u.report("ece.confirm.payment_failed",{payment_method:t,reason:o.reason}),u.action.getIsAwaitingConfirmCallback({groupId:l}).then((function(t){if(!t)throw new M.No("Unexpected call to paymentFailed(). Ensure you are either submitting a payment or calling paymentFailed() once per expressCheckout Element confirm event.");!("nonce"in e)?e.paymentFailed(o):v.send({action:"stripe-ece-confirm-payment",payload:{nonce:e.nonce,paymentFailedPayload:o}})}))}});o("confirm",a)},C=ii({controller:u,eventHandlers:{cancel:function(e){return w(e)},shippingAddressChange:function(e){return b("shippingaddresschange",e)},shippingRateChange:function(e){return b("shippingratechange",e)},confirm:S},groupId:l,listenerRegistry:s,betas:m,blockedCardBrands:li(f,h)}),P=si({controller:u,eventHandlers:{cancel:function(e){return w(e)},shippingAddressChange:function(e){return b("shippingaddresschange",e)},shippingRateChange:function(e){return b("shippingratechange",e)},confirm:S},groupId:l});u.action.getElementsSessionUnverifiedPaymentMethodsOnDomain({groupId:l,wallets:d.wallets}).then((function(e){var t,n,r;-1!==e.indexOf("apple_pay")||"never"===(null===(t=d.wallets)||void 0===t?void 0:t.applePay)?C.shouldShowButton(!1):"always"===(null===(n=d.wallets)||void 0===n?void 0:n.applePay)?C.canMakePayments(!1).then((function(e){C.shouldShowButton(e)})):C.canMakePayments(!0).then((function(e){C.shouldShowButton(e)})),-1===e.indexOf("google_pay")&&"never"!==(null===(r=d.wallets)||void 0===r?void 0:r.googlePay)&&"https:"!==window.location.protocol&&(u.action.shouldShowEceButton({groupId:l,button:"googlePay",shouldShowButton:!1}),u.warn("You are testing over HTTP, so Google Pay will not appear. You must use HTTPS in order to use Google Pay."))})),v._on("ece-outer-pm-complete-payment",(function(e){"apple_pay"===e.paymentMethodType?C.completePayment(e.isError):"link"===e.paymentMethodType&&P.completePayment(e.isError)})),v._on("cancel",(function(e){w(e)})),v._on("click",(function(e){var t=e.paymentMethodType,n="apple_pay"===t,r="link"===t,a="click";if(u.report("ece.click",{payment_method:t}),c(a)){var s=function(){y.updateRequest.inMerchantEventHandler=!1};n||r||(s=function(){v.send({action:"stripe-user-ece-button-click",payload:{nonce:e.nonce}})},y.updateRequest.inMerchantEventHandler=!1);var l=Ho({controller:i.controller,eventName:a,time:800,timeLabel:"1 second",reject:s,resolve:function(o){g((function(i,a,c){var s;y.lastCurrency=a;var l=function(e,t,n){var r,o=(0,k.Gu)((0,k.jt)((0,k.mC)(Oo)),e,"click event resolve callback"),i=o.value,a=o.warnings,c={};if(i){var s=(0,nr.Jo)(null==i?void 0:i.allowedShippingCountries);c=(0,p.Z)((0,p.Z)({},i),{},{allowedShippingCountries:s.allowedCountries||void 0}),s.warnings.forEach((function(e){return a.push(e)}))}if(t){var u=Bo(c);c=u.value,u.warnings.forEach((function(e){return a.push(e)}))}var l=ge(14)&&n;if(null!==(r=c.applePay)&&void 0!==r&&r.recurringPaymentRequest&&!l&&a.push("`applePay.recurringPaymentRequest` is only supported with Apple Pay in Safari 16.0+ and iOS 16.0+."),i){var d=i.shippingAddressRequired,m=i.shippingRates;if(d&&(!m||!m.length))throw new M.No("When `shippingAddressRequired` is true, you must specify `shippingRates`.")}return{value:c,warnings:a}}(o,"setup"===c,n),d=l.value;l.warnings.forEach((function(e){return u.warn(e)})),u.report("ece.click.options",(0,p.Z)((0,p.Z)({},(0,N.ei)(d,["allowedShippingCountries","business","billingAddressRequired","emailRequired","phoneNumberRequired","shippingAddressRequired"])),{},{usesApplePayRecurringPayment:!(null===(s=d.applePay)||void 0===s||!s.recurringPaymentRequest),hasLineItems:!!d.lineItems,hasShippingRates:!!d.shippingRates,payment_method:t})),y.lineItems=d.lineItems||y.lineItems,Lo(i,y.lineItems),n?C.clickHandler((0,p.Z)((0,p.Z)({},e),{},{amount:i,currency:a}),d):r?P.clickHandler((0,p.Z)((0,p.Z)({},e),{},{amount:i,currency:a}),d):v.send({action:"stripe-user-ece-button-click",payload:{nonce:e.nonce,clickPayload:(0,p.Z)((0,p.Z)({},d),{},{amount:i})}})})),y.updateRequest.inMerchantEventHandler=!1},canMerchantReject:!1}).resolve;return y.updateRequest.inMerchantEventHandler=!0,void((0,I.uN)(m,"express_checkout_element_beta_1")?o(a,{paymentMethodType:t,resolve:l}):o(a,{expressPaymentType:t,resolve:l}))}g((function(t,o){y.lastCurrency=o,n?C.clickHandler((0,p.Z)((0,p.Z)({},e),{},{amount:t,currency:o}),Yo):r?P.clickHandler((0,p.Z)((0,p.Z)({},e),{},{amount:t,currency:o}),Yo):v.send({action:"stripe-user-ece-button-click",payload:{nonce:e.nonce,clickPayload:{amount:t}}})}))})),v._on("shippingaddresschange",(function(e){return b("shippingaddresschange",e)})),v._on("shippingratechange",(function(e){return b("shippingratechange",e)})),v._on("confirm",S);return v._on("load-error",(function(e){o("loaderror",{error:e}),a()})),Do.forEach((function(e){v._on(e,(function(t){return o(e,t)}))})),{update:function(e){v.update(e)},focus:function(){zt(),v.focus(),v.send({action:"stripe-user-focus",payload:{}})},blur:function(){v.blur()},clear:function(){throw new M.No("clear() is not supported by the Express Checkout Element.")},mount:function(){_=new xt.E;var e=r();e&&((0,E.mb)(e,[[qo,!0]]),y.runOnUnmount.push((function(){(0,E.mb)(e,[[qo,!1]])})))},unmount:function(){for(;y.runOnUnmount.length;){var e;null===(e=y.runOnUnmount.pop())||void 0===e||e()}v.unmount()},destroy:function(){i.controller.action.resetExpressCheckoutState({groupId:l})},_frame:v}},di=function(e){var t=e.options,n=(0,w.Z)(e,["options"]),r=t.controller,o=t.publicOptions,i=(t.componentName,(0,w.Z)(t,["controller","publicOptions","componentName"]));if(r.keyMode()===He.Kl.unknown)throw new M.No("It looks like you're using an older Stripe key. The Pay Button Element is only available for use with a modern API key, which is prefixed with 'pk_live_' or 'pk_test_'.\n You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys");var a,c,s,u,l,d=(a=o||{},c=(0,k.Gu)((0,k.mC)(Io),a,"elements.create('expressCheckout', options)"),s=c.value,u=c.warnings,(l=xo(s))&&u.push(l),{value:s,warnings:u});"payButton"===e.options.componentName&&d.warnings.push("Pay Button Element is now Express Checkout Element.\nIt is advised to switch to the Express Checkout Element. For more information,\nsee https://stripe.com/docs/elements/express-checkout-element."),d.warnings.forEach((function(e){return r.warn(e)}));var m=pi((0,p.Z)((0,p.Z)({},n),{},{options:(0,p.Z)((0,p.Z)({},i),{},{controller:r,componentName:"expressCheckout",publicOptions:d.value})})),f=m.update,h=(0,w.Z)(m,["update"]);return(0,p.Z)((0,p.Z)({},h),{},{update:function(e){var t=function(e){var t=(0,k.Gu)((0,k.mC)(Ao),e,"expressCheckoutElement.update()"),n=t.value,r=t.warnings,o=xo(n);return o&&r.push(o),{value:n,warnings:r}}(e||{}),n=t.value;t.warnings.forEach((function(e){return r.warn(e)})),f(n)}})},mi=function(e,t){var n=function(e){if(!Y.YA[e])throw new Error("Unexpected Element type: ".concat(e,"."));return Y.YA[e].implementation}(e);switch(n){case"legacy":return new Gn(t);case"affirm_message":return Kn(t);case"afterpay_message":return Xn(t);case"payment_method_messaging":return ao(t);case"frame":return oo(t);case"cart":return vo(t);case"express_checkout":return di(t);default:return(0,k.Rz)(n,"Unexpected implementation type: ".concat(n,"."))}},fi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,p.Z)((0,p.Z)((0,p.Z)({},(0,N.ei)(e,["business","fields","readOnly","terms","allowedCardBrands","disallowedCardBrands","blockPoBox","validation","display","layout","paymentMethodOrder","wallets","buttonHeight","accountHolderType","disabled","hideIcon","hidePostalCode","disableLink","disableMultipleButtons","iconStyle","placeholderCountry","rtl","showIcon","supportedCountries","betas","componentName","groupId","locale","loader","externalPaymentMethodTypes"])),e.autocomplete&&{disableAutocomplete:"disabled"===e.autocomplete.mode}),e.contacts&&{contacts:e.contacts.length})},hi=function(e){function t(e,r,o){var i,a;(0,m.Z)(this,t),(a=n.call(this)).mount=B((function(e){var t;if(a._checkDestroyed(),!e)throw new M.No("Missing argument. Make sure to call mount() with a valid DOM element or selector.");if("string"==typeof e){var n=document.querySelectorAll(e);if(n.length>1&&a._controller.warn("The selector you specified (".concat(e,") applies to ").concat(n.length," DOM elements that are currently on the page.\nThe Stripe Element will be mounted to the first one.")),!n.length)throw new M.No("The selector you specified (".concat(e,") applies to no DOM elements that are currently on the page.\nMake sure the element exists on the page before calling mount()."));t=n[0]}else{if(!e.appendChild)throw new M.No("Invalid DOM element. Make sure to call mount() with a valid DOM element or selector.");t=e}if("INPUT"===t.nodeName)throw new M.No("Stripe Elements must be mounted in a DOM element that\ncan contain child nodes. `input` elements are not permitted to have child\nnodes. Try using a `div` element instead.");t.children.length&&t!==document.body&&a._controller.warn("This Element will be mounted to a DOM element that contains child nodes."),a._mountToParent(t)})),a.update=B((function(e){return a._controller.report("update",{options:fi(e),element:a._componentName,element_mode:a._componentMode}),a._checkDestroyed(),a._implementation.update(e),(0,v.Z)(a)})),a.focus=B((function(e){return a._checkDestroyed(),e&&e.preventDefault(),a._implementation.focus(),(0,v.Z)(a)})),a.blur=B((function(){return a._checkDestroyed(),a._implementation.blur(),(0,v.Z)(a)})),a.clear=B((function(){return a._checkDestroyed(),a._implementation.clear(),(0,v.Z)(a)})),a.collapse=B((function(){if(a._checkDestroyed(),!a._implementation.collapse)throw new M.No("Collapse is not supported by the ".concat(a._componentName," Element."));return a._implementation.collapse(),(0,v.Z)(a)})),a.show=B((function(){if(a._checkDestroyed(),!a._implementation.show)throw new M.No("show() is not supported by the ".concat(a._componentName," Element."));return a._implementation.show(),(0,v.Z)(a)})),a.hide=B((function(){if(a._checkDestroyed(),!a._implementation.hide)throw new M.No("hide() is not supported by the ".concat(a._componentName," Element."));return a._implementation.hide(),(0,v.Z)(a)})),a.addLineItem=B((function(e){if(a._checkDestroyed(),a._implementation.addLineItem)return a._implementation.addLineItem(e);throw new M.No("addLineItem() is not supported by the ".concat(a._componentName," Element."))})),a.cancelCheckout=B((function(e){if(a._checkDestroyed(),!a._implementation.cancelCheckout)throw new M.No("cancelCheckout() is not supported by the ".concat(a._componentName," Element."));return a._implementation.cancelCheckout(e),(0,v.Z)(a)})),a.unmount=B((function(){return a._checkDestroyed(),a._unmount(),(0,v.Z)(a)})),a.destroy=B((function(){var e,t;return a._checkDestroyed(),a.unmount(),null===(e=(t=a._implementation).destroy)||void 0===e||e.call(t),a._destroyed=!0,a._emitEvent("destroy"),(0,v.Z)(a)})),a.getValue=B((function(){a._checkDestroyed();var e=new Set(["address"]);if(a._implementation.getValue&&e.has(a._componentName))return a._implementation.getValue();throw new M.No("getValue is not supported by the ".concat(a._componentName," Element."))})),a._getParent=function(){return a._parent},a._emitEvent=function(e,t){if("loaderror"!==e||a._hasRegisteredListener("loaderror")||a._controller.keyMode()!==He.Kl.test||console.error("Unhandled ".concat(a._componentName," Element loaderror"),t),"cart"===a._componentName&&"checkout"===e&&!a._hasRegisteredListener("checkout"))throw new M.No("Unhandled Cart Element checkout event. Make sure to register a checkout handler.");return a._emit(e,(0,p.Z)({elementType:a._componentName},t))},a._cancelCheckout=function(e){"cart"===a._componentName&&a._controller._sendCaReq("cancelCheckout",{errorMessage:e,groupId:a._groupId})};var c=e.controller,s=e.componentName,u=e.groupId,l=e.locale,d=e.betas,f=e.mids;a._controller=c,a._componentName=s,a._componentMode=null===(i=e.publicOptions)||void 0===i?void 0:i.mode,a._destroyed=!1,a._groupId=u,a._mids=f;var h=document.createElement("div");return h.className=Y.A2,a._component=h,c.report("create",{options:fi((0,p.Z)({componentName:s,groupId:u,locale:l,betas:d},e.publicOptions)),element:s,element_mode:a._componentMode}),a._implementation=mi(a._componentName,{options:e,component:h,listenerRegistry:r,elementTimings:o,emitEvent:a._emitEvent,getParent:a._getParent,hasRegisteredListener:a._hasRegisteredListener,selfDestruct:function(){a.destroy()}}),a}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"_checkDestroyed",value:function(){if(this._destroyed)throw new M.No("This Element has already been destroyed. Please create a new one.")}},{key:"_isMounted",value:function(){return!!document.body&&document.body.contains(this._component)}},{key:"_unmount",value:function(){var e=this._component.parentElement;e&&e.removeChild(this._component),this._controller.report("unmount",{element:this._componentName,element_mode:this._componentMode}),this._implementation.unmount(),this._parent=null}},{key:"_mountToParent",value:function(e){var t=this._component.parentElement,n=this._isMounted();if(e===t){if(n)return;this.unmount(),this._mountTo(e)}else if(t){if(n)throw new M.No("This Element is already mounted. Use `unmount()` to unmount the Element before re-mounting.");this.unmount(),this._mountTo(e)}else this._mountTo(e)}},{key:"_mountTo",value:function(e){for(this._parent=e;e.firstChild&&e!==document.body;)e.removeChild(e.firstChild);e.appendChild(this._component),this._controller.report("mount",{element:this._componentName,element_mode:this._componentMode}),this._implementation.mount()}}]),t}(z),_i=function(e,t){e._controller.report("legacy_private_property_used",{prop:t,componentName:e._componentName})};["_autofilled","_classes","_complete","_empty","_fakeInput","_focused","_frame","_invalid","_lastBackgroundColor","_lastFontSize","_lastHeight","_lastPadding","_lastSubmittedAt","_listenerRegistry","_paymentRequest"].forEach((function(e){Object.defineProperty(hi.prototype,e,{enumerable:!1,get:function(){return _i(this,e),this._implementation[e]}})}));["_formSubmit","_isIssuingDisplayElement"].forEach((function(e){Object.defineProperty(hi.prototype,e,{enumerable:!1,writable:!1,value:function(){return _i(this,e),this._implementation[e]()}})}));var yi=hi,vi=function(e){var t=(0,k.jt)((0,k.AG)((0,k.CT)(k.kw.apply(void 0,(0,d.Z)(function(e){return(0,I.uN)(e,I.M4.elements_enable_deferred_intent_beta_1)?Object.keys(A.GS):Object.keys((0,N.CE)(A.GS,["apple_pay","google_pay","meta_pay"]))}(e)))))),n=(0,k.jt)((0,k.AG)((0,k.kw)("off_session","on_session"))),r=(0,k.jt)((0,k.AG)((0,k.kw)("automatic","automatic_async","manual"))),o=(0,k.jt)((0,k.AG)((0,k.mC)({us_bank_account:(0,k.jt)((0,k.mC)({verification_method:(0,k.jt)((0,k.kw)("automatic","instant","instant_or_skip","skip","microdeposits"))}))}))),i=(0,k.jt)((0,k.AG)(k.Z_)),a=(0,k.jt)((0,k.AG)(k.Z_));return{mode:(0,k.jt)((0,k.AG)((0,k.kw)("payment","setup","subscription"))),amount:(0,k.jt)((0,k.AG)(k.MZ)),currency:(0,k.jt)((0,k.AG)(k.cV)),paymentMethodCreation:(0,k.jt)((0,k.kw)("manual")),payment_method_types:t,paymentMethodTypes:t,setup_future_usage:n,setupFutureUsage:n,capture_method:r,captureMethod:r,payment_method_options:o,paymentMethodOptions:o,payment_method_configuration:i,paymentMethodConfiguration:i,on_behalf_of:a,onBehalfOf:a}},gi={customerOptions:(0,k.jt)((0,k.mC)({customer:k.Z_,ephemeralKey:k.Z_}))},bi={customerSessionClientSecret:(0,k.jt)((0,k.AG)(k.Z_))},wi=function(e){if(e)return(0,p.Z)((0,p.Z)((0,p.Z)({},e),e.hasOwnProperty("rules")?{rules:""}:null),e.hasOwnProperty("variables")?{variables:""}:null)},ki=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,p.Z)((0,p.Z)((0,p.Z)({},(0,N.ei)(e,["locale","loader","externalPaymentMethodTypes","paymentMethodCreation","allowedCardBrands","disallowedCardBrands"].concat(Ci))),e.hasOwnProperty("fonts")?{fonts:""}:null),{},{appearance:wi(e.appearance)},e.customerOptions?{customerOptions:{customer:e.customerOptions.customer}}:null)},Si=function(e,t){var n=e.mode,r=e.currency,o=e.amount,i=e.captureMethod,a=e.capture_method,c=void 0===a?i:a,s=e.setupFutureUsage,u=e.setup_future_usage,l=void 0===u?s:u,p=e.paymentMethodTypes,d=e.payment_method_types,m=void 0===d?p:d,f=e.paymentMethodOptions,h=e.payment_method_options,_=void 0===h?f:h,y=e.paymentMethodConfiguration,v=e.payment_method_configuration,g=void 0===v?y:v,b=e.onBehalfOf,w=e.on_behalf_of,k=void 0===w?b:w;return"payment"===n&&r&&o?{mode:"payment",currency:r,amount:o,capture_method:c,setup_future_usage:l,payment_method_types:m,payment_method_options:_,payment_method_configuration:g,on_behalf_of:k}:"setup"===n?{mode:"setup",currency:r,capture_method:c,setup_future_usage:l||(t?"off_session":void 0),payment_method_types:m,payment_method_options:_,on_behalf_of:k}:"subscription"===n&&r&&"number"==typeof o?{mode:"subscription",currency:r,amount:o,setup_future_usage:t?"off_session":void 0,payment_method_types:m,payment_method_options:_,on_behalf_of:k}:void 0},Ei=["customerSessionClientSecret"],Ci=["mode","amount","currency","payment_method_types","paymentMethodTypes","capture_method","captureMethod","setup_future_usage","setupFutureUsage","payment_method_options","paymentMethodOptions","payment_method_configuration","paymentMethodConfiguration","on_behalf_of","onBehalfOf"],Pi=function(e,t,n,r){var o=e.mode,i=e.amount,a=e.currency,c=e.paymentMethodTypes,s=e.payment_method_types,u=void 0===s?c:s,l=e.paymentMethodConfiguration,p=e.payment_method_configuration,d=void 0===p?l:p,m=(t.customerSessionClientSecret,(0,w.Z)(t,["customerSessionClientSecret"]));if("payment"===o){if((0,k.Gu)((0,k.mC)({amount:k.Rx,currency:k.Z_}),{amount:i,currency:a},"options").value.amount<=0)throw new M.No("Invalid value for ".concat(n,": `amount` must be greater than 0"));if(null!=u&&u.length&&d)throw new M.No("Invalid value for ".concat(n,": You may only specify one of these parameters: `payment_method_types` or `payment_method_configuration`."))}else if("setup"===o){if(t.amount)throw new M.No("Invalid value for ".concat(n,": `amount` is not applicable when `mode` is `'setup'`"));!(0,I.uN)(r,I.M4.elements_enable_deferred_intent_beta_1)&&(u||(0,k.Gu)((0,k.mC)({currency:k.Z_}),{currency:a},"options"))}else{if(!o&&Object.keys(m).length){var f=Object.keys(m);throw new M.No("Invalid value for ".concat(n,": `").concat(f.join("`, `"),"` ").concat(f.length>1?"are":"is"," only applicable when a `mode` is set."))}if("subscription"===o&&(0,k.Gu)((0,k.mC)({amount:k.Rx,currency:k.Z_}),{amount:i,currency:a},"options").value.amount<0)throw new M.No("Invalid value for ".concat(n,": `amount` must be 0 or greater"))}},Ai=function(e){e._emit("update-end"),e._emit("updateend")},Ii=function(e){function t(e,r,o,i,a,c){var s;(0,m.Z)(this,t),(s=n.call(this)).getElement=B((function(e){var t,n=(null!=(t=e)&&t.__elementType&&"string"==typeof t.__elementType&&"function"==typeof t?t.__elementType:null)||e;return H(n,s._betas),(0,N.sE)(s._elements,(function(e){return e._componentName===n}))||null})),s.update=B((function(e){var t,n=(0,k.Gu)(function(e){return(0,k.mC)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({locale:(0,k.jt)(k.Z_),appearance:(0,k.jt)(k.Ry)},vi(e)),gi),bi),{},{clientSecret:(0,k.jt)((0,k.AG)(nr.Eu))}))}(s._betas),e||{},"elements.update()"),r=n.value;if(n.warnings.forEach((function(e){return s._controller.warn(e)})),0!==Object.keys(r).length){var o,i,a=r.customerOptions,c=r.locale,u=r.appearance,l=r.clientSecret,d=r.customerSessionClientSecret,m=(0,I.jk)(c,s._betas);if(m&&(s._controller.action.fetchLocale({locale:m}),s._elements.forEach((function(e){var t,n;t=e._implementation,"function"==typeof(null===(n=t._paymentRequest)||void 0===n?void 0:n._updateLocale)&&e._implementation._paymentRequest._updateLocale(m)}))),!!Object.keys((0,N.ei)(r,["clientSecret"].concat(Ci,Ei))).length){var f;l=null!==(f=l)&&void 0!==f?f:s._commonOptions.clientSecret,d=d||null===d?d:s._commonOptions.customerSessionClientSecret;var h=(0,N.ei)(r,[].concat(Ci,Ei)),y=(0,N.ei)(s._commonOptions,[].concat(Ci,Ei)),g=(0,p.Z)((0,p.Z)({},y),h);r.clientSecret&&Ci.forEach((function(e){g[e]=null})),r.mode&&(s._commonOptions.clientSecret=void 0);var b=!(0,N.Xy)(g,y);Pi(g,h,"elements.update()",s._betas),b&&(o=g,i=Si(g,!0))}r.hasOwnProperty("customerOptions")&&(s._customerOptions=a||null),r.hasOwnProperty("customerSessionClientSecret")&&(s._commonOptions.customerSessionClientSecret=d||null),r.hasOwnProperty("appearance")&&(s._commonOptions.appearance=u),r.hasOwnProperty("clientSecret")&&(s._commonOptions.clientSecret=l),m&&(s._commonOptions.locale=m),(0,_.Z)(s._commonOptions,o);var w=(0,N.sE)(s._elements,(function(e){return"expressCheckout"===e._componentName||"payButton"===e._componentName}));null==w||null===(t=w._implementation._frame)||void 0===t||t._emit("update-start"),s._controller.action.updateElementsOptions({clientSecret:l,customerOptions:a,customerSessionClientSecret:d,locale:m,appearance:u,groupId:s._id,deferredIntent:i}).then((function(){var e;Ai((0,v.Z)(s)),null==w||null===(e=w._implementation._frame)||void 0===e||e._emit("update-end")}))}})),s.submit=q((function(){return s._isSubmitting&&s._controller.report("simultaneous_elements_submit_calls"),s._isSubmitting=!0,s._controller.action.validateElements(s._id).then((function(e){return e&&"error"===e.type?{error:e.error}:s._controller.action.showWalletIfNecessary(s._id).then((function(e){switch(null==e?void 0:e.type){case"error":return e.error?{error:e.error}:s._controller.action.localizeError({code:"unexpected"}).then((function(e){return{error:e}}));case"cancelled":return s._controller.action.localizeError({code:"incomplete",type:"input_validation_error"}).then((function(e){return{error:e}}));default:return{}}}))})).finally((function(){s._isSubmitting=!1}))})),s.create=D((function(e,t){var n=new xt.E;!function(e,t,n,r){if(H(e,n),Y.YA[e].unique&&-1!==t.indexOf(e)){if("address"===e)throw new M.No("Can only create one Element of type ".concat(e,". See https://stripe.com/docs/elements/address-element?platform=web#use-address-element-with-other-elements for more information."));throw new M.No("Can only create one Element of type ".concat(e,"."))}var o=Y.YA[e].conflict,i=(0,N.dq)(t,o);if(i.length){var a=i[0];throw new M.No("Cannot create an Element of type ".concat(e," after an Element of type ").concat(a," has already been created."))}if("address"===e&&"billing"===(null==r?void 0:r.mode)&&(0,I.uN)(n,"elements_saved_payment_methods_beta_1"))throw new M.No('The "elements_saved_payment_methods_beta_1" beta cannot be used with the Address Element when it is in "billing" mode.');if("linkAuthentication"===e&&(0,I.uN)(n,"elements_saved_payment_methods_beta_1"))throw new M.No('The "elements_saved_payment_methods_beta_1" beta cannot be used with the Link Authentication Element.')}(e,s._elements.map((function(e){return e._componentName})),s._betas,t);var r=(0,p.Z)((0,p.Z)((0,p.Z)({},t),s._commonOptions),{},{componentName:e,groupId:s._id}),o=(r.paymentRequest,(0,w.Z)(r,["paymentRequest"])),i=(C.P0||C.JW)&&(0,P.qC)(o).length>2e3,a=!!s._pendingFonts||i;if("never"!==s._commonOptions.loader&&!s._isLoaderFrameMounted&&Ir(e)){var c=function(e){return ot||((ot=e.createHiddenFrame($e.NC.LOADER_UI_APP,{}))._on("generate-loader-ui",(function(e){ot.send({action:"generate-loader-ui",payload:{data:e}})})),ot._on("get-element-loader-ui",(function(e){ot.send({action:"get-element-loader-ui",payload:{data:e}})})),ot)}(s._controller);c._emit("generate-loader-ui",{rawAppearanceConfig:s._commonOptions.appearance}),s._isLoaderFrameMounted=!0}var u=new yi((0,p.Z)((0,p.Z)({publicOptions:t},(0,N.CE)(s._commonOptions,Ci)||{}),{},{deferredIntent:Si(s._commonOptions,!0),componentName:e,groupId:s._id,fonts:i?null:s._commonOptions.fonts,controller:s._controller,wait:a,mids:s._mids}),s._listenerRegistry,(0,p.Z)((0,p.Z)({},s._timings),{},{createTimestamp:n}));return s._elements=[].concat((0,d.Z)(s._elements),[u]),u._on("destroy",(function(){s._elements=s._elements.filter((function(t){return t._componentName!==e}))})),i&&u._implementation.update({fonts:s._commonOptions.fonts}),u})),s.fetchUpdates=q((function(){if(s._commonOptions.clientSecret)return s._controller.action.fetchUpdates({clientSecret:s._commonOptions.clientSecret,customerOptions:s._customerOptions,customerSessionClientSecret:s._commonOptions.customerSessionClientSecret,locale:s._commonOptions.locale,groupId:s._id}).then((function(e){if("error"===(null==e?void 0:e.type)){var t=e.error,n=t.message,r=t.extra_fields;return null!=r&&r.status?{error:{message:n,status:r.status}}:{error:{message:n}}}return{}}));throw new M.No('In order to call fetchUpdates, you must pass a valid PaymentIntent or SetupIntent client secret when creating the Elements group.\n\n e.g. stripe.elements({clientSecret: "{{CLIENT_SECRET}}"})')})),(0,nr.Z0)(i);var u=s._on;s._on=function(t,n,r){return e.report("register_elements_listener",{name:t}),u.call((0,v.Z)(s),t,n,r),(0,v.Z)(s)};var l=new xt.E,f=(0,k.Gu)(function(e){var t={locale:(0,k.jt)(k.Z_),fonts:(0,k.jt)((0,k.CT)(k.Ry)),appearance:(0,k.jt)(k.Ry),clientSecret:(0,k.jt)(nr.Eu),loader:(0,k.jt)((0,k.kw)("auto","always","never")),externalPaymentMethodTypes:(0,k.jt)(tr.iU)},n=(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},t),(0,I.uN)(e,I.M4.elements_customers_beta_1)?gi:{}),(0,I.uN)(e,I.M4.elements_saved_payment_methods_beta_1)?bi:{}),(0,I.uN)(e,I.M4.blocked_card_brands_beta_2)?{allowedCardBrands:(0,k.jt)(tr.jX),disallowedCardBrands:(0,k.jt)(tr.jX)}:{}),vi(e));return(0,k.mC)(n)}(i),c||{},"elements()"),h=f.value;f.warnings.forEach((function(t){return e.warn(t)}));var g=(0,N.ei)(h,Ci);if(Pi(g,g,"elements.create()",i),Object.keys(g).length&&h.clientSecret)throw new M.No("Invalid options for elements.create(): Expected either mode or clientSecret, but not both.");(0,E.BO)(e.warn),e.report("elements",{options:ki(h)}),h.loader||(h.loader="auto");var b=h.fonts,A=void 0===b?[]:b,T=h.locale,R=h.customerOptions,O=void 0===R?null:R,Z=h.customerSessionClientSecret,x=(0,w.Z)(h,["fonts","locale","customerOptions","customerSessionClientSecret"]),L=void 0!==Z&&(0,I.uN)(i,I.M4.elements_saved_payment_methods_beta_1)?Z:void 0;s._customerOptions=O;var F=h.appearance?h.appearance:{};s._elements=[],s._id=(0,S.To)("elements-".concat((0,S.Vj)(),"-")),s._isSubmitting=!1,s._timings=(0,p.Z)((0,p.Z)({},o),{},{groupCreateTimestamp:l}),s._controller=e,s._betas=i,s._listenerRegistry=r,s._mids=a,s._isLoaderFrameMounted=!1;var U=(0,I.jk)(T,i);s._controller.action.fetchLocale({locale:U||"auto"});var G=A.filter((function(e){return!e.cssSrc||"string"!=typeof e.cssSrc})).map((function(e){return(0,p.Z)((0,p.Z)({},e),{},{__resolveFontRelativeTo:window.location.href})})),z=A.map((function(e){return e.cssSrc})).reduce((function(e,t){return"string"==typeof t?[].concat((0,d.Z)(e),[t]):e}),[]).map((function(e){return(0,P.sD)(e)?e:(0,P.v_)(window.location.href,e)}));s._pendingFonts=z.length;var K=(0,I.uN)(i,I.M4.payment_element_beta_1)&&!x.clientSecret,J=Si(x,!0);return K||e.action.setupStoreForElementsGroup({clientSecret:x.clientSecret,deferredIntent:J,customerOptions:O,customerSessionClientSecret:null!=L?L:null,loader:h.loader,locale:T,appearance:F,groupId:s._id,externalPaymentMethodTypes:x.externalPaymentMethodTypes,paymentMethodCreation:x.paymentMethodCreation,disallowedCardBrands:x.disallowedCardBrands,allowedCardBrands:x.allowedCardBrands}),s._commonOptions=(0,p.Z)((0,p.Z)({},x),{},{betas:i,appearance:F,locale:U,customerSessionClientSecret:L,get fonts(){return G}}),z.forEach((function(e){if("string"==typeof e){var t=new xt.E;j(e).then((function(n){s._controller.report("font.loaded",{load_time:t.getElapsedTime(),font_count:n.length,css_src:e});var r=n.map((function(t){return(0,p.Z)((0,p.Z)({},t),{},{__resolveFontRelativeTo:e})}));s._controller.action.updateCSSFonts({fonts:r,groupId:s._id}),G.push.apply(G,(0,d.Z)(r))})).catch((function(n){s._controller.report("error.font.not_loaded",{load_time:t.getElapsedTime(),message:n&&n.message&&n.message,css_src:e}),s._controller.warn("Failed to load CSS file at ".concat(e,"."))}))}})),s._controller._controllerFrame._on("stripe-user-credentials-update",(function(e){var t;if(s._commonOptions.clientSecret)throw new M.No("It looks like you use client_secret in your Elements integration.\n You cannot use stripe.update() to change publishable key.\n Please follow https://stripe.com/docs/payments/defer-intent-creation to change your Elements integration.");var n=(0,N.ei)(s._commonOptions,Ci),r=Si(n,!0),o=(0,N.sE)(s._elements,(function(e){return"payButton"===e._componentName}));if(null==o||null===(t=o._implementation._frame)||void 0===t||t._emit("update-start"),s._controller.action.updateElementsOptions({customerOptions:void 0,customerSessionClientSecret:void 0,locale:void 0,appearance:void 0,groupId:s._id,deferredIntent:r,stripeUserCredentials:e}).then((function(){var e;Ai((0,v.Z)(s)),null==o||null===(e=o._implementation._frame)||void 0===e||e._emit("update-end")})),(0,N.sE)(s._elements,(function(e){return"linkAuthentication"===e._componentName})))throw new M.No("It looks like you use LinkAuthenticationElement in your Elements integration.\n stripe.update() is not supported for LinkAuthenticationElement.")})),(0,y.Z)(s,(0,v.Z)(s))}(0,g.Z)(t,e);var n=(0,b.Z)(t);return t}(z),Ni=Ii,Mi=function(e,t,n,r,o,i,a){return new Dt({controller:e,authentication:t,mids:n,rawOptions:r,betas:o,queryStrategyOverride:i,listenerRegistry:a})},Ti=n(1764),Ri=(0,k.mC)({name:(0,k.kw)("react-stripe-js","stripe-js","react-stripe-elements"),version:(0,k.AG)(k.Z_),startTime:(0,k.jt)(k.Rx)}),Oi=(0,k.ci)({name:(0,k.ui)(1,30),partner_id:(0,k.jt)(k.Z_),version:(0,k.jt)((0,k.ui)(5,15)),url:(0,k.jt)((0,k.ui)(4,60))}),ji={border:"none",margin:"0",padding:"0",width:"1px","min-width":"100%",overflow:"hidden",display:"block","user-select":"none",transform:"translate(0)","color-scheme":"only light"},Zi=function(e){function t(e){var r;return(0,m.Z)(this,t),r=n.call(this,e),C.s$&&r._listenerRegistry.addEventListener(document,"transitionstart",(function(e){switch(e.propertyName){case"opacity":case"transform":case"visibility":var t=e.target;r._isMounted()&&t.contains(r._iframe)&&r._forceRepaint()}}),{passive:!0}),r}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"update",value:function(e){this.send({action:"stripe-user-update",payload:e})}},{key:"updateStyle",value:function(e){var t=this;Object.keys(e).forEach((function(n){t._iframe.style[n]=e[n]}))}},{key:"focus",value:function(){this.loaded&&(C.s$?this._iframe.focus():this.send({action:"stripe-user-focus",payload:{}}))}},{key:"blur",value:function(){this.loaded&&(this._iframe.contentWindow.blur(),this._iframe.blur(),document.activeElement===this._iframe&&(window.focus(),document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()))}},{key:"clear",value:function(){this.send({action:"stripe-user-clear",payload:{}})}},{key:"collapse",value:function(){this.send({action:"stripe-user-collapse",payload:{}})}},{key:"show",value:function(){this.send({action:"stripe-user-show",payload:{}})}},{key:"hide",value:function(){this.send({action:"stripe-user-hide",payload:{}})}},{key:"addLineItem",value:function(e){this.send({action:"stripe-user-add-line-item",payload:e})}},{key:"cancelCheckout",value:function(e){this.send({action:"stripe-user-cancel-checkout",payload:{errorMessage:e}})}},{key:"getValue",value:function(){this.send({action:"stripe-user-get-value",payload:{}})}},{key:"_createIFrame",value:function(e,n,r){var o=i((0,ln.Z)(t.prototype),"_createIFrame",this).call(this,e,n,r);return o.setAttribute("title","Secure payment input frame"),(0,E.yq)(o,ji),o}},{key:"_forceRepaint",value:function(){var e=this._iframe,t=e.style.display;e.style.display="none";var n=e.offsetHeight;return e.style.display=t,n}}]),t}(mn),xi={position:"absolute",left:"0",top:"0",height:"100%",width:"100%","color-scheme":"normal"},Li=function(e){function t(e){var r,o,a,c=e.type,s=e.controllerId,u=e.listenerRegistry,l=e.options;return(0,m.Z)(this,t),(a=n.call(this,{type:c,controllerId:s,listenerRegistry:u,appParams:l}))._autoMount=function(){a.appendTo(a._backdrop.domElement),a._backdrop.mount()},a.show=function(){a._backdrop.show(),(0,E.yq)(a._iframe,xi),a.isVisible=!0},a.fadeInBackdrop=function(){a._backdrop.fadeIn()},a._backdropFadeoutPromise=null,a.fadeOutBackdrop=function(){return a._backdropFadeoutPromise||(a._backdropFadeoutPromise=a._backdrop.fadeOut()),a._backdropFadeoutPromise.then((function(){a._backdropFadeoutPromise=null}))},a.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=a.fadeOutBackdrop().then((function(){a._backdrop.unmount(),e||i((r=(0,v.Z)(a),(0,ln.Z)(t.prototype)),"destroy",r).call(r)}));return e&&i((o=(0,v.Z)(a),(0,ln.Z)(t.prototype)),"destroy",o).call(o),a.isVisible=!1,n},a._backdrop=new tt({lockScrolling:!0,lockFocus:!0,lockFocusOn:a._iframe,listenerRegistry:u}),a._autoMount(),a.isVisible=!1,a}(0,g.Z)(t,e);var n=(0,b.Z)(t);return t}(mn),Bi=Li,Di={display:"block",position:"absolute","z-index":"1000",width:"1px","min-width":"100%",margin:"2px 0 0 0",padding:"0",border:"none",overflow:"hidden"},qi=function(e){function t(){return(0,m.Z)(this,t),n.apply(this,arguments)}(0,g.Z)(t,e);var n=(0,b.Z)(t);return(0,f.Z)(t,[{key:"updateStyle",value:function(e){var t=this;Object.keys(e).forEach((function(n){t._iframe.style[n]=e[n]}))}},{key:"update",value:function(e){this.send({action:"stripe-user-update",payload:e})}},{key:"_createIFrame",value:function(e,n,r){var o=i((0,ln.Z)(t.prototype),"_createIFrame",this).call(this,e,n,r&&"object"==typeof r?(0,p.Z)((0,p.Z)({},r),{},{isSecondaryFrame:!0}):r);return(0,E.yq)(o,Di),o.style.height="0",o}}]),t}(mn),Fi=qi,Ui=!1,Gi=function(e){Ui||"null"===(null!=e?e:window.origin)&&(Ui=!0,console.error("Stripe.js requires 'allow-same-origin' if sandboxed."))},Yi=n(6977),Hi=n(6042),zi=Ur.OV,Ki=function(e){var t=e.mode;return!("paymentMethod-from-data"===t.tag&&t.data.acss_debit)},Ji=function(e){return null!==e&&"object"==typeof e&&!0===e.skipMandate},Wi=function(e){return null!==e&&"object"==typeof e&&!!e.shouldCreatePaymentMethod},Vi=function(e){var t=e.controller,n=e.shouldCreatePaymentMethod,r=e.intentSecret,o=e.mode,i=e.confirmIntentData;return t.action.createAcssDebitSession({intentSecret:r,shouldCreatePaymentMethod:n,confirmIntentData:i,mode:o}).then((function(e){if("error"===e.type)return{type:"error",error:e.error};var n=(0,Hi.q)(t,{url:(0,$e.jr)(e.object.url),size:"400x600",locale:e.locale,frameTitle:"acss.dialog_frame_title",useLightboxHostedCloseButton:!1});return new J.J((function(e){n._on("request-close",(function(){(0,Hi.G)(n).then((function(){return t.action.localizeError(Ur.LR)})).then((function(t){e({type:"error",error:t})}))})),n._on("session-complete",(function(t){var r=t.paymentMethod;(0,Hi.G)(n).then((function(){e({type:"success",paymentMethod:r})}))}))}))}))},Xi=function(e,t,n,r,o){var i="confirmAcssDebitPayment",a=A.GS.acss_debit,c=(0,Ur.cn)(n,i),s=(0,Ur.o1)(a,i,r,c),u=Wi(o);return zi(o,i),Ji(o)||!Ki(s)?e.action.confirmPaymentIntent((0,p.Z)((0,p.Z)({},s),{},{expectedType:a,options:{handleActions:!1},mids:t})).then(Yi.PA):Vi({controller:e,shouldCreatePaymentMethod:u,intentSecret:c,mode:"payment",confirmIntentData:s}).then((function(n){switch(n.type){case"error":return{error:n.error};case"success":return e.action.confirmPaymentIntent({mode:{tag:"paymentMethod",paymentMethod:n.paymentMethod,options:s.mode.options||{},intentSecret:c},otherParams:s.otherParams,expectedType:a,options:{handleActions:!1},mids:t}).then(Yi.PA);default:return(0,k.Rz)(n.type)}}))},$i=function(e,t,n,r,o){var i="confirmAcssDebitSetup",a=A.GS.acss_debit,c=(0,Ur.jH)(n,i),s=(0,Ur.o1)(a,i,r,c),u=Wi(o);return zi(o,i),Ji(o)||!Ki(s)?e.action.confirmSetupIntent((0,p.Z)((0,p.Z)({},s),{},{expectedType:a,options:{handleActions:!1},mids:t})).then(Yi.e3):Vi({controller:e,shouldCreatePaymentMethod:u,intentSecret:c,mode:"setup",confirmIntentData:s}).then((function(n){switch(n.type){case"error":return{error:n.error};case"success":return e.action.confirmSetupIntent({mode:{tag:"paymentMethod",paymentMethod:n.paymentMethod,options:s.mode.options||{},intentSecret:c},otherParams:s.otherParams,expectedType:a,options:{handleActions:!1},mids:t}).then(Yi.e3);default:return(0,k.Rz)(n.type)}}))},Qi="https://web.archive.org/web/20230604193106/https://maps.googleapis.com/maps/api/js",ea=/^https:\/\/maps\.googleapis\.com\/maps\/api\/js\/?(\?.*)?libraries=(.*,)?places((,|&)+.*)?$/;window.noop=function(){};var ta,na,ra=function(e){switch(e){case"INVALID_REQUEST":case"NOT_FOUND":case"OK":case"OVER_QUERY_LIMIT":case"REQUEST_DENIED":case"UNKNOWN_ERROR":case"ZERO_RESULTS":return e;default:return"UNKNOWN_ERROR"}},oa="ADDRESS_AUTOCOMPLETE_PREDICTION_RESULTS",ia="ADDRESS_AUTOCOMPLETE_PLACE_DETAILS",aa=null,ca=function(e){return null!==aa||(aa=new J.J((function(t,n){if("undefined"!=typeof window)if(window.google&&window.google.maps.places)t(window.google.maps.places);else try{var r=function(){var e=document.querySelectorAll('script[src^="'.concat(Qi,'"]'));for(var t in e)if(ea.test(e[t].src))return e[t];return null}();r||(r=function(e){var t=document.createElement("script");return t.src="".concat(Qi,"?key=").concat(e,"&libraries=places&callback=noop"),(document.head||document.body).appendChild(t),t}(e)),r.onload=function(){window.google.maps.places?t(window.google.maps.places):n(new Error("Google Maps API not available"))}}catch(e){n(e)}else t(null)}))),aa},sa=function(e,t,n){var r=e.search,o=e.countryRestrictions;var i=function(e){return{predictions:[],status:"error",error:{status:ra(e),message:"Google Maps returned an API error"}}};void 0===t||ta?n.send({action:"google-maps-predictions",payload:{data:{tag:oa,value:i("UNKNOWN_ERROR")}}}):function(e,t){try{t()}catch(t){e.send({action:"google-maps-predictions",payload:{data:{tag:oa,value:{predictions:[],status:"error",error:{status:"UNKNOWN_ERROR",message:t.message}}}}})}}(n,(function(){var e=t.autocompleteService,a=t.sessionToken;e.getPlacePredictions({input:r,sessionToken:a,componentRestrictions:{country:o}},(function(e,t){var r;switch(t){case google.maps.places.PlacesServiceStatus.OK:r={predictions:e,status:"ok"};break;case google.maps.places.PlacesServiceStatus.ZERO_RESULTS:r={predictions:[],status:"zeroResults"};break;default:r=i(t)}n.send({action:"google-maps-predictions",payload:{data:{tag:oa,value:r}}})}))}))},ua={attachLinkAccountSessionForPayment:null,attachLinkAccountSessionForSetup:null,authenticate3DS2:null,cancelCardImageVerificationChallenge:null,cancelCheckout:null,cancelPaymentIntentSource:null,cancelSetupIntentSource:null,clearInstantDebitsIncentive:null,completeLinkAccountSessionElements:null,completeWalletConfirm:null,confirmPaymentIntent:null,confirmReturnIntent:null,confirmSetupIntent:null,createAcssDebitSession:null,createApplePaySession:null,createBankPaymentDetails:null,createConsumerPaymentDetails:null,createEphemeralKeyNonce:null,createPaymentMethodWithData:null,createPaymentMethodWithElement:null,createPaymentMethodWithElements:null,createPaymentPage:null,createPaymentPageWithSession:null,createRadarSession:null,createSourceWithData:null,createSourceWithElement:null,confirmInstantDebitsIncentiveForPaymentDetails:null,fetchingWallets:null,shouldShowEceButton:null,expressCheckoutConfirmStart:null,expressCheckoutConfirmEnd:null,expressCheckoutSheetOpened:null,expressCheckoutSheetClosed:null,getElementConfirmingPayment:null,getIsAwaitingConfirmCallback:null,getElementsSessionAmountModeCurrency:null,getElementsSessionUnverifiedPaymentMethodsOnDomain:null,setExpressCheckoutConfirmData:null,closeECEPaymentSheet:null,fetchLocale:null,fetchUpdates:null,localizeError:null,unsafeLocalizeString:null,loginWithConsumerInfo:null,lookupLocale:null,refreshPaymentIntent:null,refreshSetupIntent:null,retrieveIssuingCard:null,retrieveIssuingCardWithoutNonce:null,retrieveOrder:null,retrievePaymentIntent:null,retrieveSetupIntent:null,retrieveSource:null,rememberLinkLogin:null,forgetLinkLogin:null,removeElementsExperimentId:null,resetExpressCheckoutState:null,fetchCartSession:null,getGoogleMapsPredictions:null,getGoogleMapsDetails:null,initGoogleMapsService:null,setupStoreForElementsGroup:null,showWalletIfNecessary:null,submitOrder:null,tokenizeCvcUpdate:null,tokenizeWithData:null,tokenizeWithElement:null,updateCSSFonts:null,updateElementsOptions:null,updateOrder:null,updatePaymentIntent:null,verifyCardImageVerificationChallenge:null,verifyMicrodepositsForPayment:null,verifyMicrodepositsForSetup:null,retrieveCardNetworks:null,isCardMetadataRequired:null,retrieveWalletConfigAvailability:null,retrieveLinkConfig:null,checkForLinkClientSecret:null,resolveLocale:null,elementUnmounted:null,logOutOfLinkInElements:null,cmpStatusChange:null,setExpressCheckoutLinkPaymentMethodData:null,updateStripeUserCredentials:null,validateElements:null,retrievePaypalMerchantId:null,consumerPreloadedDataStale:null,linkPopupLogOut:null,updateCustomerDefaultPaymentMethod:null},la=function(e){var t=0,n=[];return{acquire:function(){if(t0&&t1&&void 0!==arguments[1]?arguments[1]:{};n._controllerFrame.send({action:"stripe-controller-report",payload:{event:e,data:t}})},this.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r-1;return e.action.createPaymentMethodWithElement({frameId:d,elementName:m,type:u,paymentMethodData:l,mids:t,enforcePreSubmit:f&&!p,enforcePaymentMethodCreationManual:f&&!p}).then(Ea)}if(s){s._isSubmitting&&e.report("elements_submit_conflict.create_payment_method");var h,_=s._id,y="stripe.createPaymentMethod()";return e.action.getElementConfirmingPayment({groupId:_,errorMessageMethodName:y}).then((function(n){return h=n,e.action.createPaymentMethodWithElements({groupId:_,elements:s._elements,paymentMethodData:l,mids:t,elementConfirming:n,enforcePreSubmit:!p,enforcePaymentMethodCreationManual:!p})})).then((function(t){return(0,Ur.tA)({groupId:_,elementConfirmingPayment:h,controller:e,isError:"error"in t,errorMessageMethodName:y}).then((function(){return t}))})).then((function(e){return Ea(e)}))}if(u)return e.action.createPaymentMethodWithData({elementName:null,type:u,paymentMethodData:l,mids:t}).then(Ea);throw new Error("No type or elements provided")}catch(e){return J.J.reject(e)}},Pa=n(1849),Aa=n(4469),Ia=n(3534),Na=function(){function e(){(0,m.Z)(this,e),this.lastId=0,this.resolverMap={}}return(0,f.Z)(e,[{key:"getNextRequestId",value:function(){var e=this.lastId+1;return this.lastId=e,e}},{key:"setResolver",value:function(e,t,n){this.resolverMap[e]=this.resolverMap[e]||{};var r=this.resolverMap[e];r&&(r[t]=n)}},{key:"getResolverAndDelete",value:function(e){var t=e.type,n=this.resolverMap[t];if(n&&n[e.id]){var r=n[e.id];return delete n[e.id],r}return null}}]),e}(),Ma=Na,Ta=function(){function e(t){var n=this;(0,m.Z)(this,e),this.createListener=function(){window.addEventListener("message",n.receiveMessageFromChild)},this.receiveMessageFromChild=function(e){var t;if(e.source===(null===(t=n.frame)||void 0===t?void 0:t.contentWindow)){var r=JSON.parse(e.data);if(r.channel===n.channel){if(!("initMessage"in r)){var o=n.getClientHandler(r);if(o){var i=function(e){var t=n.frame,o=n.frameOrigin;if(!t)throw new Error("Cannot communicate with frame before calling mount().");var i=t.contentWindow;if(!i||!o)throw new Error("frame window is not ready");var a={type:r.type,id:r.id,channel:r.channel,body:e};i.postMessage(JSON.stringify(a),o)};n.initialized?o(r.body,i):new J.J((function(e){n.messageQueue.push((function(){return e({body:r.body,sendReplyToChild:i})}))})).then((function(){o(r.body,i)}))}}if("initMessage"in r){for(n.frameOrigin=e.origin;n.messageQueue.length>0;){var a=n.messageQueue.shift();a&&a()}n.initialized=!0,n.frame&&(n.frame.dataset.initialized="true")}else{var c=n.resolver.getResolverAndDelete(r);c&&c(r.body)}}}},this.channel=t.channel,this.fingerprintedPath=t.fingerprintedPath,this.frame=null,this.frameOrigin=null,this.frameQueryParams=t.frameQueryParams,this.frameAttributes=t.frameAttributes,this.initialized=!1,this.messageQueue=[],this.resolver=new Ma,this.on="on"in t?t.on:{},this.createListener()}return(0,f.Z)(e,[{key:"isLoaded",value:function(){return this.initialized}},{key:"mount",value:function(e,t){if(!this.frame){if(!this.fingerprintedPath)throw new Error("Passed in an invalid path for frame client with channel: ".concat(this.channel));var n=function(e){var t=e.fingerprintedPath,n=e.name,r=e.onLoad,o=e.queryStringOptions,i=e.referrerPolicy||"no-referrer",a=document.createElement("iframe");r&&a.addEventListener("load",(function(){r(a)})),a.setAttribute("frameborder","0"),a.setAttribute("allowTransparency","true"),a.setAttribute("scrolling","no"),a.setAttribute("name",n),a.setAttribute("referrerpolicy",i),e.visible||(a.setAttribute("aria-hidden","true"),a.setAttribute("tabIndex","-1"));var c=e.frameAttributes;c&&Object.keys(c).forEach((function(e){a.setAttribute(e,c[e])}));var s,u=(s=t,"".concat("https://web.archive.org/web/20230604193106/https://js.stripe.com/v3/").concat(s||""));if(o){var l=(0,Aa.q)(o);a.src="".concat(u,"#").concat(l)}else a.src=u;return e.visible||(0,Ia.SV)(a),a}({fingerprintedPath:this.fingerprintedPath,name:this.channel,queryStringOptions:(0,p.Z)((0,p.Z)({},this.frameQueryParams),{},{parentOrigin:window.location.origin}),referrerPolicy:"no-referrer",frameAttributes:this.frameAttributes,visible:!(null==t||!t.visible)});e.appendChild(n),this.frame=n}}},{key:"sendMessageToChild",value:function(e,t){var n=this;return this.initialized?this.postMessageToChild(e,t):new J.J((function(r){n.messageQueue.push((function(){return r({type:e,body:t})}))})).then((function(){return n.postMessageToChild(e,t)}))}},{key:"postMessageToChild",value:function(e,t){var n=this,r=this.frame,o=this.frameOrigin;if(!r)throw new Error("Cannot communicate with frame before calling mount().");var i=r.contentWindow;if(!i||!o)throw new Error("frame window is not ready");var a=this.resolver.getNextRequestId(),c={channel:this.channel,type:e,id:a,body:t};return new J.J((function(t){n.resolver.setResolver(e,a,t),i.postMessage(JSON.stringify(c),o)}))}},{key:"getClientHandler",value:function(e){var t=this.on[e.type];return t?function(e,n){var r,o=t(e);r=o,Boolean(r&&"function"==typeof r.then)?o.then((function(e){n(e)})):void 0!==o&&n(o)}:null}}]),e}(),Ra=Ta,Oa=(window.location.hash.indexOf("debugMode=true"),function(e){function t(e){return(0,m.Z)(this,t),n.call(this,{channel:"paypal-fraudnet",fingerprintedPath:"paypal-fraudnet-sdk-769f9ea2aff257c622b1c27b34b0c509.html",frameQueryParams:{flowId:e.flowId,sessionId:e.sessionId,sandbox:e.sandbox},on:e.on})}(0,g.Z)(t,e);var n=(0,b.Z)(t);return t}(Ra)),ja=Oa,Za=function(e,t){return new J.J((function(n,r){setTimeout((function(){return r(new Error("Timeout in integrateFraudnet"))}),5e3);var o=(0,S.Vj)().replaceAll("-",""),i=new ja({sandbox:!t,flowId:e,sessionId:o,on:{onInit:function(){n(o)},onError:function(e){var t=e.error;r(t)}}});document.body&&i.mount(document.body)}))},xa=n(206),La=n(112),Ba={clientSecret:(0,k.jt)(k.Z_),params:(0,k.jt)(k.Ry),elements:(0,k.jt)(k.Ry)},Da=function(e,t){var n=e.rawSecret,r=e.rawElements,o=e.validatedUpdateParams;if(function(e,t){var n=e.rawSecret,r=e.rawElements;if(!n&&!r)throw new M.No("".concat(t,": expected either `elements` or `clientSecret`, but got neither."))}({rawSecret:n,rawElements:r},t),n&&!r){if(null!=o&&o.payment_method&&null!=o&&o.payment_method_data)throw new M.No("".concat(t,": Expected either `payment_method` or `payment_method_data`, but not both."));return{type:"clientSecret",clientSecret:n}}var i=(0,k.MO)(r);if(!i)throw new M.No("Invalid value for ".concat(t,": elements should be an Elements group. You specified: ").concat(typeof r,"."));return{type:"elements",elements:i,clientSecret:n}},qa=function(e,t,n,r,o){var i,a,c=function(e){var t=e.rawUpdateData,n=e.controller,r=e.errorMessageMethodName,o=(0,k.Gu)((0,k.mC)(Ba),t,r),i=o.value,a=i.elements,c=void 0===a?void 0:a,s=i.params,u=i.clientSecret,l=o.warnings,p=(0,k.Gu)((0,k.jt)((0,k.mC)({payment_method:(0,k.jt)(k.Z_),payment_method_data:(0,k.jt)(k.Ry),payment_method_options:(0,k.jt)(k.Ry),setup_future_usage:(0,k.jt)(k.Xg)})),s,r,{path:["params"]}).value,d=Da({rawSecret:u,rawElements:c,validatedUpdateParams:p},r);return l.forEach((function(e){return n.warn(e)})),{validatedUpdateParams:p,rawUpdateParams:s,validatedParams:d}}({rawUpdateData:n,controller:e,errorMessageMethodName:o}),s=c.validatedParams,u=c.validatedUpdateParams,l=c.rawUpdateParams,d=null!=l?l:{},m=(d.payment_method,d.payment_method_data,d.payment_method_options,(0,w.Z)(d,["payment_method","payment_method_data","payment_method_options"])),f=s.clientSecret?(0,Yi.RY)(s.clientSecret):null;return"elements"===s.type?{mode:{tag:"elements",groupId:s.elements._id,data:null!==(i=null==u?void 0:u.payment_method_data)&&void 0!==i?i:{},options:null!==(a=null==u?void 0:u.payment_method_options)&&void 0!==a?a:{},intentSecret:f||void 0},otherParams:m,expectedType:null,mids:t,options:null}:function(e){var t,n=e.validatedParams,r=e.validatedConfirmParams,o=e.otherParams,i=e.intentType,a=e.mids,c=null!=r?r:{},s=c.payment_method_data,u=c.payment_method,l=c.payment_method_options,d="payment"===i?(0,Ur.cn)(n.clientSecret,"confirmPayment"):(0,Ur.jH)(n.clientSecret,"confirmSetup"),m=(0,Ur.k7)({payment_method:s}),f={};return"paymentMethod"===(t=s&&m?{intentSecret:d,tag:"paymentMethod-from-data",type:m,data:s,options:null!=l?l:{}}:u?{intentSecret:d,tag:"paymentMethod",paymentMethod:u,options:null!=l?l:{}}:{intentSecret:d,tag:"none"}).tag&&(f={mandate_data:{customer_acceptance:{type:"online",online:{infer_from_client:!0}}}}),{mids:a,mode:t,expectedType:m,otherParams:(0,p.Z)((0,p.Z)({},f),o),options:{handleActions:!1}}}({validatedParams:s,validatedConfirmParams:u,otherParams:m,intentType:r,mids:t})},Fa=function(e,t){return function(n,r,o,i,a){var c=(0,Ur.cn)(o,e),s=(0,Ur.o1)(t,e,i,c),u=(0,Ur.el)(e,a),l="none"===s.mode.tag,d=n.action.confirmPaymentIntent((0,p.Z)((0,p.Z)({},s),{},{expectedType:t,options:u,mids:r}));return u.handleActions?d.then((0,xa.nq)(n,l,!1,!1,s.otherParams.expand)):d.then(Yi.PA)}},Ua=Fa("confirmAcssDebitPayment",A.GS.acss_debit),Ga=Fa("confirmAffirmPayment",A.GS.affirm),Ya=Fa("confirmAfterpayClearpayPayment",A.GS.afterpay_clearpay),Ha=Fa("confirmAuBecsDebitPayment",A.GS.au_becs_debit),za=Fa("confirmBacsDebitPayment",A.GS.bacs_debit),Ka=Fa("confirmBancontactPayment",A.GS.bancontact),Ja=Fa("confirmBoletoPayment",A.GS.boleto),Wa=Fa("confirmCardPayment",A.GS.card),Va=Fa("confirmEpsPayment",A.GS.eps),Xa=Fa("confirmFpxPayment",A.GS.fpx),$a=Fa("confirmGiropayPayment",A.GS.giropay),Qa=Fa("confirmGrabPayPayment",A.GS.grabpay),ec=Fa("confirmIdealPayment",A.GS.ideal),tc=Fa("confirmKlarnaPayment",A.GS.klarna),nc=Fa("confirmKonbiniPayment",A.GS.konbini),rc=Fa("confirmMobilepayPayment",A.GS.mobilepay),oc=Fa("confirmOxxoPayment",A.GS.oxxo),ic=Fa("confirmAlipayPayment",A.GS.alipay),ac=Fa("confirmP24Payment",A.GS.p24),cc=Fa("confirmPayByBankPayment",A.GS.pay_by_bank),sc=function(e,t,n,r,o){if("error"===(0,k.ld)((0,k.jt)((0,k.mC)({payment_method_options:(0,k.jt)((0,k.mC)({paypal:(0,k.jt)(k.Ry)}))})),r,"internal").type)return Fa("confirmPayPalPayment",A.GS.paypal)(e,t,n,r,o);var i=(0,Ur.cn)(n,"confirmPayPalPayment");return function(e,t){var n=e.keyMode()===He.Kl.live;return new J.J((function(r,o){setTimeout((function(){o(new Error("Timeout in initPaypalRiskLibrary"))}),5e3),e.action.retrievePaypalMerchantId(t).then((function(e){if("object"===e.type){var t=e.object.paypal_merchant_id,i="stripe_".concat(t,"_payments");Za(i,n).then((function(e){r(e)})).catch((function(e){o(e)}))}else o()})).catch((function(e){o(e)}))}))}(e,i.id).then((function(i){var a=(0,p.Z)((0,p.Z)({},r),{},{payment_method_options:(0,p.Z)((0,p.Z)({},r&&r.payment_method_options||{}),{},{paypal:(0,p.Z)((0,p.Z)({},r&&r.payment_method_options&&r.payment_method_options.paypal||{}),{},{risk_correlation_id:"".concat(i)})})});return Fa("confirmPayPalPayment",A.GS.paypal)(e,t,n,a,o)})).catch((function(){return Fa("confirmPayPalPayment",A.GS.paypal)(e,t,n,r,o)}))},uc=Fa("confirmSepaDebitPayment",A.GS.sepa_debit),lc=Fa("confirmSofortPayment",A.GS.sofort),pc=Fa("confirmIdBankTransferPayment",A.GS.id_bank_transfer),dc=Fa("confirmUpiPayment",A.GS.upi),mc=Fa("confirmUsBankAccountPayment",A.GS.us_bank_account),fc=Fa("confirmNzBankAccountPayment",A.GS.nz_bank_account),hc=Fa("confirmBlikPayment",A.GS.blik),_c=Fa("confirmZipPayment",A.GS.zip),yc=Fa("confirmCustomerBalancePayment",A.GS.customer_balance),vc=function(e,t,n,r,o){if(o&&!0===o.handleActions)throw new M.No("Expected option `handleActions` to be `false`.");var i=(0,p.Z)((0,p.Z)({},r),{},{payment_method:(0,p.Z)({},r&&r.payment_method||{}),payment_method_options:(0,p.Z)((0,p.Z)({},r&&r.payment_method_options||{}),{},{wechat_pay:(0,p.Z)((0,p.Z)({},r&&r.payment_method_options&&r.payment_method_options.wechat_pay||{}),{},{client:"web"})})});return Fa("confirmWechatPayPayment",A.GS.wechat_pay)(e,t,n,i,o)},gc=function(e,t,n,r,o){if(!r||!r.payment_method_options||!r.payment_method_options.wechat_pay||"web"!==r.payment_method_options.wechat_pay.client&&"mobile_web"!==r.payment_method_options.wechat_pay.client)throw new M.No("Expected client value `web` or `mobile_web` in payment_method_options.");var i={};"string"==typeof r.payment_method&&(i=r.payment_method),"object"==typeof r.payment_method&&(i=(0,p.Z)({},r.payment_method||{}));var a=(0,p.Z)((0,p.Z)({},r),{},{payment_method:i,payment_method_options:(0,p.Z)((0,p.Z)({},r&&r.payment_method_options||{}),{},{wechat_pay:(0,p.Z)({},r&&r.payment_method_options&&r.payment_method_options.wechat_pay||{})})});return Fa("confirmWechatPayPayment",A.GS.wechat_pay)(e,t,n,a,o)},bc=Fa("confirmCashappPayment",A.GS.cashapp),wc=Fa("confirmPayNowPayment",A.GS.paynow),kc=Fa("confirmPayNowDisplayBeta1",A.GS.paynow),Sc=Fa("confirmPixPayment",A.GS.pix),Ec=Fa("confirmPromptPayPayment",A.GS.promptpay),Cc=Fa("confirmRevolutPayPayment",A.GS.revolut_pay),Pc=Fa("confirmNetbankingPayment",A.GS.netbanking),Ac=function(e,t,n,r){var o=(0,Ur.cn)(n,"updatePaymentIntent"),i=(0,Ur.k7)(r),a=(0,Ur.o1)(i,"updatePaymentIntent",r,o);return e.action.updatePaymentIntent((0,p.Z)((0,p.Z)({},a),{},{expectedType:i,mids:t,options:null})).then(Yi.PA)},Ic=function(e){var t;return"error"in e&&"external_payment_method_selected"===e.error.code?{selectedPaymentMethod:null===(t=e.error.extra_fields)||void 0===t?void 0:t.selectedPaymentMethod}:e},Nc=function(e,t){return function(e,t){var n=(0,Ur.cn)(e,"retrievePaymentIntent");return t.action.retrievePaymentIntent({intentSecret:n,hosted:!1})}(e,t).then(Yi.PA)},Mc=function(e,t,n){var r=(0,Ur.cn)(t,"verifyMicrodepositsForPayment"),o=(0,k.Gu)(k.Ry,n,"stripe.verifyMicrodepositsForPayment");return e.action.verifyMicrodepositsForPayment({intentSecret:r,data:o.value}).then(Yi.PA)},Tc=function(e,t,n){var r=(0,Ur.cn)(t,"collectUsBankAccountForPayment"),o=(0,k.Gu)((0,er.ZY)("us_bank_account"),n,"stripe.collectUsBankAccountForPayment").value,i=o.paymentMethodData,a=o.otherParams;return Br(r.clientSecret,r.id,e,i).then((function(t){return t.error?e.action.localizeError(t.error).then((function(e){return J.J.resolve({error:e})})):t.linkAccountSession.paymentAccount?e.action.attachLinkAccountSessionForPayment({intentSecret:r,linkAccountSessionId:t.linkAccountSession.id,expandParam:a.expand}).then((function(e){return(0,Yi.PA)(e)})):e.action.retrievePaymentIntent({intentSecret:r,hosted:!1}).then(Yi.PA)}))},Rc=function(e,t){var n=(0,k.Gu)((0,er.as)(er.f4),t,"stripe.collectBankAccountForPayment").value,r=n.clientSecret,o=n.paymentMethodData,i=n.otherParams;return Br(r.clientSecret,r.id,e,o).then((function(t){return t.error?e.action.localizeError(t.error).then((function(e){return J.J.resolve({error:e})})):t.linkAccountSession.paymentAccount?e.action.attachLinkAccountSessionForPayment({intentSecret:r,linkAccountSessionId:t.linkAccountSession.id,expandParam:i.expand}).then((function(e){return(0,Yi.PA)(e)})):e.action.retrievePaymentIntent({intentSecret:r,hosted:!1}).then(Yi.PA)}))},Oc=function(e,t){var n=(0,Ur.cn)(e,"handleCardAction");return t.action.retrievePaymentIntent({intentSecret:n,hosted:!1}).then((function(e){var n=(0,xa.Fh)(e);switch(n.type){case"error":return J.J.resolve((0,Yi.PA)(e));case"object":var r=n.object;if((0,Yi.mD)(r.status)){if("manual"!==r.confirmation_method)throw new M.No("handleCardAction: The PaymentIntent supplied does not require manual server-side confirmation. Please use confirmCardPayment instead to complete the payment.");return(0,xa.gO)(t,r,n.locale,!1,!1)}throw new M.No("handleCardAction: The PaymentIntent supplied is not in the requires_action state.");default:return(0,k.Rz)(n)}}))},jc={type:"validation_error",code:"errors.code.unexpected"},Zc={type:"validation_error",code:"errors.code.incomplete_payment_details"},xc=function(e,t,n,r,o){var i="confirmInstantDebitsPilotPayment",a=(0,Ur.cn)(n,i),c=(0,Ur.el)(i,o),s=(0,Ur.o1)(null,i,r,a),u=e.createLightboxFrame({type:$e.NC.INSTANT_DEBITS_APP,options:{intentId:a.id,clientSecret:a.clientSecret,apiKey:e._apiKey,returnOnConfirm:!1===c.handleActions}});return u.show(),u.fadeInBackdrop(),new J.J((function(n){var r=function(e){u.fadeOutBackdrop().then((function(){n(e)}))};u._once("cancel",(function(){u.fadeOutBackdrop(),e.action.localizeError(Zc).then((function(e){r({error:e})}))})),u._on("instant-debits-fetch-payment-intent",(function(){e.action.retrievePaymentIntent({intentSecret:a,hosted:!1}).then((function(t){if(t.object){var o=t.object;u.send({action:"stripe-instant-debits-received-payment-intent",payload:{paymentIntent:o}}),!1===c.handleActions&&setTimeout((function(){u.fadeOutBackdrop(),r((0,Yi.PA)(t))}),2e3)}else{var i=t.error;e.action.localizeError(i).then((function(e){n({error:e})}))}}))})),u._on("instant-debits-attempt-payment",(function(){e.action.confirmPaymentIntent((0,p.Z)((0,p.Z)({},s),{},{mode:{tag:"none",intentSecret:a},expectedType:null,options:c,mids:t})).then((function(t){t.object?(u.send({action:"stripe-instant-debits-successful-payment-intent",payload:{paymentIntent:t.object}}),setTimeout((function(){r((0,Yi.PA)(t))}),2e3)):e.action.localizeError(t.error).then((function(e){r({error:e})}))}))})),u._on("instant-debits-flow-error",(function(){e.action.localizeError(jc).then((function(e){r({error:e})}))}))}))},Lc=n(7549),Bc=n(122),Dc=n(67),qc=n(8147),Fc=n(6790),Uc=n(8478),Gc=function(e,t,n,r,o){var i=(0,Lc.l)((0,Yi.G2)(t)),a=(0,Yi.O3)(t);if(!i)return J.J.resolve({setupIntent:t});switch(i.type){case"captcha-challenge":return(0,qc.z)(i,t,e,n);case"3ds1-modal":return(0,Bc.s)(i,a,R.kE.SETUP_INTENT,e,n,o);case"3ds2-fingerprint":case"3ds2-challenge":return(0,Dc.A)(i,{intentSecret:a,intentType:R.kE.SETUP_INTENT,controller:e,locale:n,hosted:r},o);case"redirect":return(0,Fc.e)(t,i.redirectUrl,e);case"cashapp_handle_redirect_or_display_qr_code":return(0,Uc.p)({controller:e,locale:n,intent:t});default:return J.J.resolve({setupIntent:t})}},Yc=function e(t,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(R.kO1)throw new M.No("stripe.redirectToCheckout: Do not provide other parameters when providing sessionId. Specify all parameters on your server when creating the CheckoutSession.");if(!/^cs_/.test(i))throw new M.No("stripe.redirectToCheckout: Invalid value for sessionId. You specified '".concat(i,"'."));if("live"===n&&/^cs_test_/.test(i))throw new M.No("stripe.redirectToCheckout: the provided sessionId is for a test mode Checkout Session, whereas Stripe.js was initialized with a live mode publishable key.");if("test"===n&&/^cs_live_/.test(i))throw new M.No("stripe.redirectToCheckout: the provided sessionId is for a live mode Checkout Session, whereas Stripe.js was initialized with a test mode publishable key.");return{tag:"session",sessionId:i}}o.sessionId,o.sku,o.plan;var a=o.items,c=o.lineItems,s=o.successUrl,u=o.cancelUrl,l=o.mode,m=(0,w.Z)(o,["sessionId","sku","plan","items","lineItems","successUrl","cancelUrl","mode"]);if(!c&&!a)throw new M.No("stripe.redirectToCheckout: You must provide one of lineItems, items, or sessionId.");if(!s)throw new M.No("stripe.redirectToCheckout: You must provide successUrl.");return(0,p.Z)({tag:"no-session",items:a,lineItems:c,successUrl:s,cancelUrl:u,mode:l},m)},Vs=function(e,t,n){var r=Ws(e,t,n);if("no-session"===r.tag){var o=r.successUrl,i=r.cancelUrl;if(!(0,P.sD)(o))throw new M.No("stripe.redirectToCheckout: successUrl must start with either http:// or https://.");if(i&&!(0,P.sD)(i))throw new M.No("stripe.redirectToCheckout: cancelUrl must start with either http:// or https://.");return r}return r},Xs=function(e,t){return"session"===t.tag||null==e||t.locale||-1===["auto"].concat((0,d.Z)(Ys)).indexOf(e)?t:(0,p.Z)((0,p.Z)({},t),{},{locale:e})},$s=function(e,t,n){var r=(0,N.sE)(qs,(function(t){return(0,I.uN)(e,t)}));if(t&&t.lineItems&&r)throw new M.No("Prices cannot be used with ".concat(r));if("string"==typeof t&&Ks.test(t))throw new M.No("stripe.redirectToCheckout: Checkout Session IDs must be passed in as an object with a key of `sessionId` and the Session ID as the value.");switch(r){case"checkout_beta_2":return Js(0,t);case"checkout_beta_3":return Ws(e,t,n);default:return Vs(e,t,n)}},Qs=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";return Xs(t,$s(e,n,r))},eu=function(e,t){var n=t;return Boolean(!1)&&window.__STRIPE_CHECKOUT_URL_OVERRIDE__&&(n=t.replace(/^https?:\/\/[^/]+\//,window.__STRIPE_CHECKOUT_URL_OVERRIDE__)),(0,Pa.U)(n).then((function(t){return(0,Pa.d)(e,"redirectToCheckout",t),{error:t.error}}))},tu=function(e){switch(e.type){case"object":return{token:e.object};case"error":return{error:e.error};default:return(0,k.Rz)(e)}},nu=function(e){return"object"==typeof e&&null!==e?e:{}},ru=function(e){switch(e.type){case"object":return{radarSession:e.object};case"error":return{error:e.error};default:return(0,k.Rz)(e)}},ou="securitypolicyviolation",iu=window,au=/^require-trusted-types-for/,cu="LOAD_ERROR",su="REPORT_ONLY",uu="BLOCKED",lu={"controller.js":!0,"elements-inner-authentication.js":!0,"elements-inner-card.js":!0,"elements-inner-payment.js":!0,"phone-numbers-lib.js":!0},pu=function(){function e(){(0,m.Z)(this,e),this._element=null}return(0,f.Z)(e,[{key:"on",value:function(){}},{key:"once",value:function(){}},{key:"mount",value:function(e){var t=null;if((t="string"==typeof e?document.querySelector(e):e)&&"function"==typeof t.appendChild){var n=document.createElement("div");n.innerText="Browser unsupported",this._element=n,t.appendChild(n)}}},{key:"update",value:function(){}},{key:"focus",value:function(){}},{key:"blur",value:function(){}},{key:"clear",value:function(){}},{key:"off",value:function(){}},{key:"unmount",value:function(){var e,t;null===(e=this._element)||void 0===e||null===(t=e.parentElement)||void 0===t||t.removeChild(this._element),this._element=null}},{key:"destroy",value:function(){var e,t;null===(e=this._element)||void 0===e||null===(t=e.parentElement)||void 0===t||t.removeChild(this._element),this._element=null}}]),e}(),du=function(){function e(){(0,m.Z)(this,e)}return(0,f.Z)(e,[{key:"update",value:function(){}},{key:"fetchUpdates",value:function(){return J.J.resolve()}},{key:"getElement",value:function(){return null}},{key:"create",value:function(){return new pu}},{key:"on",value:function(){}},{key:"addListener",value:function(){}},{key:"addEventListener",value:function(){}},{key:"off",value:function(){}},{key:"removeListener",value:function(){}},{key:"removeEventListener",value:function(){}},{key:"once",value:function(){}},{key:"hasRegisteredListener",value:function(){}},{key:"removeAllListeners",value:function(){}},{key:"emit",value:function(){}}]),e}(),mu="Stripe is being used in an unsupported browser and will not function. See https://stripe.com/docs/js/appendix/supported_browsers for details.",fu=function(){function e(){(0,m.Z)(this,e)}return(0,f.Z)(e,[{key:"canMakePayment",value:function(){return J.J.reject(mu)}},{key:"show",value:function(){}},{key:"abort",value:function(){}},{key:"isShowing",value:function(){return!1}},{key:"update",value:function(){}},{key:"on",value:function(){}},{key:"once",value:function(){}},{key:"off",value:function(){}}]),e}(),hu=function(){function e(){(0,m.Z)(this,e),this.IS_NOOP_BUILD=!0,console.error(mu)}return(0,f.Z)(e,[{key:"elements",value:function(){return new du}},{key:"redirectToCheckout",value:function(){return J.J.reject(new Error(mu))}},{key:"paymentRequest",value:function(){return new fu}},{key:"createToken",value:function(){return J.J.reject(new Error(mu))}},{key:"createSource",value:function(){return J.J.reject(new Error(mu))}},{key:"handleCardPayment",value:function(){return J.J.reject(new Error(mu))}},{key:"createPaymentMethod",value:function(){return J.J.reject(new Error(mu))}},{key:"confirmCardPayment",value:function(){return J.J.reject(new Error(mu))}}]),e}(),_u=new xt.E(Ti.q),yu=!1,vu=function e(t){var r,o=t.controller,i=t.controllerLoadTimestamp,a=t.stripeCreateTimestamp;if(!yu||i){yu=!0;var c=i||new xt.E;if("complete"===document.readyState){var s=null;if(window.performance&&window.performance.getEntriesByType){var u=window.performance.getEntriesByType("resource"),l="https://web.archive.org/web/20230604193106/https://js.stripe.com/v3/".replace(/\/$/,"");s=u.reduce((function(e,t){if(0===t.name.indexOf(l)){var n=t.name.match(/\/([^/#?]*)\/?(?:$|[#?])/);if(n&&n[1]){var r=n[1].replace(/-[0-9a-f]{32}\./,".");return"v3"===r&&(r="stripe.js"),(0,p.Z)((0,p.Z)({},e),{},(0,h.Z)({},r,(0,p.Z)({raw_size:t.decodedBodySize,transfer_size:t.transferSize,duration:Math.round(t.duration)},r in lu?(o=t,{duration:Math.round(o.duration),transfer_size:null!==(i=o.transferSize)&&void 0!==i?i:null,tcp_handshake_duration:0!==o.connectStart?Math.round(o.connectEnd-o.connectStart):null,dns_lookup_duration:0!==o.domainLookupStart?Math.round(o.domainLookupEnd-o.domainLookupStart):null,redirect_duration:0!==o.redirectStart?Math.round(o.redirectEnd-o.redirectStart):null,request_duration:0!==o.requestStart?Math.round(o.responseStart-o.requestStart):null,response_duration:0!==o.responseStart?Math.round(o.responseEnd-o.responseStart):null,tls_negotiation_duration:0!==o.secureConnectionStart?Math.round(o.requestStart-o.secureConnectionStart):null,fetch_duration:0!==o.fetchStart?Math.round(o.responseEnd-o.fetchStart):null,service_worker_duration:0!==o.workerStart?Math.round(o.fetchStart-o.workerStart):null,raw_size:null!==(a=o.decodedBodySize)&&void 0!==a?a:null,compressed:"number"==typeof o.encodedBodySize&&"number"==typeof o.decodedBodySize?o.encodedBodySize===o.decodedBodySize:null,cached_locally:"number"==typeof o.transferSize?0===o.transferSize:null,next_hop_protocol:o.nextHopProtocol||null,is_http3:"string"==typeof o.nextHopProtocol?"h3"===o.nextHopProtocol:null}):{})))}}var o,i,a;return e}),{})}var d=Math.round(n(8622).x-Ti.q),m=a.getElapsedTime(c),f=null!==(r=s)&&void 0!==r&&r["stripe.js"]?s["stripe.js"].duration+d+m:null;o.report("init_timings",{element:o.controllerFor(),match_frame:t.source===o._controllerFrame._iframe.contentWindow,until_first_create:_u.getElapsedTime(o._createTimestamp),until_first_load:_u.getElapsedTime(c),stripe_create_duration:m,stripe_js_init_duration:d,stripe_js_load_duration:f,resource_timings:s,controller:t.controllerMetrics}),setTimeout((function(){new J.J((function(e){if(iu.trustedTypes&&iu.Promise){var t,r=!1,o=function(e){(au.test(e.effectiveDirective)||au.test(e.violatedDirective))&&((0,P.vo)(e.blockedURI)||(0,P.vo)(e.sourceFile))&&(r=!0)},i=function(){return r?uu:cu};iu.addEventListener(ou,o);try{t=n.e(913).then(n.bind(n,9554)).then((function(e){return(e.loaded&&r?su:"ALLOWED")||cu}),i)}catch(e){t=new J.J((function(e){return setTimeout(e,0)})).then(i)}t.then((function(){iu.removeEventListener(ou,o)})),e(t)}else e("NOT_SUPPORTED")})).then((function(e){(function(e){switch(e){case su:case uu:return!0}return!1})(e)&&o.warn("We noticed that you are using Trusted Types. Nothing has broken, but we plan to add dynamic loading to parts of Stripe.js. Please allow scripts from 'https://web.archive.org/web/20230604193106/https://js.stripe.com' in your default Trusted Types policy. For more information: https://stripe.com/docs/security/guide#content-security-policy")}))}),5e3)}else window.addEventListener("load",(function(){try{e((0,p.Z)((0,p.Z)({},t),{},{controllerLoadTimestamp:c}))}catch(e){}}))}},gu=(0,k.mC)({apiKey:k.Z_,stripeAccount:(0,k.jt)(k.Z_),locale:(0,k.jt)(k.Z_),apiVersion:(0,k.jt)(k.Z_),__privateApiUrl:(0,k.jt)(k.Z_),__checkout:(0,k.jt)((0,k.mC)({mids:(0,k.mC)({muid:k.Z_,sid:k.Z_})})),__dashboard:(0,k.jt)(k.Ry),__hosted3DS:(0,k.jt)(k.Xg),__hostedInvoicePage:(0,k.jt)(k.Ry),canCreateRadarSession:(0,k.jt)(k.Xg),betas:(0,k.jt)((0,k.CT)(k.Z_))}),bu=function(e){return"You have an in-flight ".concat(e,"! Please be sure to disable your form submit button when ").concat(e," is called.")},wu=function(e){return function(){throw new M.No("You cannot call `stripe.".concat(e,"` without supplying an appropriate beta flag when initializing Stripe.js."))}},ku=function(e){return function(){throw new M.No("You cannot call `stripe.".concat(e,"` without supplying an Issuing beta flag when initializing Stripe.js."))}},Su=la(1),Eu=function(){function e(t,n){var r=this;(0,m.Z)(this,e),this._listenerRegistry=(0,un.E)(),this.elements=B((function(e){return new Ni(r._controller,r._listenerRegistry,{stripeJsLoadTimestamp:_u,stripeCreateTimestamp:r._controller._createTimestamp},r._betas,r._mids(),(0,p.Z)((0,p.Z)({},r._locale?{locale:r._locale}:{}),e))}),void 0,"elements"),this.createToken=U((function(e,t){var n=r._mids();return"cvc_update"===e?function(e,t,n){var r=(0,k.rX)(t);if(r&&"cardCvc"===r._componentName){var o=r._implementation._frame.id;return e.action.tokenizeCvcUpdate({frameId:o,mids:n}).then(tu)}throw new M.No("You must provide a `cardCvc` Element to create a `cvc_update` token.")}(r._controller,t,n):function(e,t){return function(n,r){var o=(0,k.rX)(n);if(o){var i=o._implementation._frame.id,a=o._componentName,c=nu(r);return e.action.tokenizeWithElement({frameId:i,elementName:a,tokenData:c,mids:t}).then(tu)}if("string"==typeof n){var s=n,u=nu(r);return e.action.tokenizeWithData({elementName:null,type:s,tokenData:u,mids:t}).then(tu)}throw new M.No("You must provide a Stripe Element or a valid token type to create a Token.")}}(r._controller,n)(e,t)}),void 0,"createToken"),this.createSource=U((function(e,t){var n=(0,k.rX)(e),o=ba(n?t:e),i=o||{type:null,data:{}},a=i.type,c=i.data;if(n){var s=n._implementation._frame.id,u=n._componentName;return!o&&(0,A.ke)(u)?J.J.reject(new M.No("Please provide Source creation parameters to createSource.")):r._controller.action.createSourceWithElement({frameId:s,elementName:u,type:a,sourceData:c,mids:r._mids()}).then(wa)}return o?a?r._controller.action.createSourceWithData({elementName:null,type:a,sourceData:c,mids:r._mids()}).then(wa):J.J.reject(new M.No("Please provide a source type to createSource.")):J.J.reject(new M.No("Please provide either an Element or Source creation parameters to createSource."))}),void 0,"createSource"),this.retrieveSource=F((function(e){var t=(0,k.Gu)(Sa,{source:e},"retrieveSource"),n=t.value;return t.warnings.forEach((function(e){return r._controller.warn(e)})),r._controller.action.retrieveSource(n).then(wa)}),void 0,"retrieveSource"),this.paymentRequest=D((function(e,t){(0,He.pF)(r._keyMode);var n=t;return Mi(r._controller,{apiKey:r._apiKey,accountId:r._stripeAccount},r._mids(),e,r._betas,n,r._listenerRegistry)}),void 0,"paymentRequest");var o=new xt.E,i=(0,k.Gu)(gu,t||{},"Stripe()"),a=i.value,c=i.warnings,s=!window.Promise,u=function(e){var t,n=e.apiKey;return e.isAffectedBrowser&&(t=0,function(e){for(var t=0,n=0;n0){var n=500*Math.pow(2,3-s);a=setTimeout(d,n),s-=1}else i(e,l)}}))}(),function(){clearTimeout(a),c=!1}},m=function(e){var t=e.initialDelay,n=e.pollTimeGap,r=e.checkIntent,o=e.locale,u=e.controller,l=e.intent,p=e.expandParam,d=void 0===p?[]:p,m=e.shouldPoll,f=void 0===m?function(){return!0}:m,h="payment_intent"===l.object?{paymentIntent:l}:{setupIntent:l};return new i.J((function(e){setTimeout((function(){var t=setInterval((function(){if(!f())return e(h),void clearInterval(t);var n;(n={hosted:!1,intentSecret:(0,a.O3)(l),locale:o,expandParam:d},"payment_intent"===l.object?u.action.retrievePaymentIntent(n):u.action.retrieveSetupIntent(n)).then((function(n){h=s(n),n.error?(u.action.localizeError(c.I4).then((function(e){return{error:e}})).then(e),clearInterval(t)):r(n.object)&&(e(h),clearInterval(t))}))}),n)}),t-n)}))}},8147:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(6589),o=n(3849),i=n(755),a=n(9792),c=function(e){return e?"payment_intent"===e.object?e.last_payment_error:e.last_setup_error:null},s=function(e,t,n,s){return new r.J((function(r){var u=new a.E,l=n.createLightboxFrame({type:i.NC.HCAPTCHA_APP,options:{intentId:t.id,clientSecret:t.client_secret,locale:s,sitekey:e.site_key,verifyUrl:e.verification_url,startTime:u.getAsPosixTime()}}),p=function(e){var t=o.I4;return null!=e&&(t=e),n.action.localizeError(t).then((function(e){return{error:e}}))};n.report("intent_confirmation_challenge.start"),l._on("load",(function(){n.report("intent_confirmation_challenge.stripe_js_frame_loaded",{duration_since_start_ms:u.getElapsedTime()}),l.fadeInBackdrop()})),l.show(),l._on("request-cancel",(function(e){l.fadeOutBackdrop(),l.destroy(!0),n.report("intent_confirmation_challenge.cancel"),r(p(c(null==e?void 0:e.intent)))})),l._on("request-close",(function(e){l.fadeOutBackdrop(),l.destroy(!0);var t=null==e?void 0:e.intent;if(t){var i=c(t);i?/Captcha/.test(i.message||"")?(n.report("intent_confirmation_challenge.verification_failed"),r(p(i))):(n.report("intent_confirmation_challenge.success"),r(p(i))):(n.report("intent_confirmation_challenge.success"),function(e,t){"payment_intent"===t.object?e({paymentIntent:t}):e({setupIntent:t})}(r,t))}else n.report("intent_confirmation_challenge.verification_error"),r(p(o.I4))}))}))}},8478:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(6977),o=n(6790),i=n(9776),a=n(6090),c=n(1873),s=function(e){var t=e.controller,n=e.intent,s=e.locale,u=(0,r.G2)(n);if(!u||"cashapp_handle_redirect_or_display_qr_code"!==u.type)throw new Error("Expected next_action.cashapp_handle_redirect_or_display_qr_code");if(!i.q$)return(0,a.Ug)({controller:t,intent:n,locale:s,url:u.cashapp_handle_redirect_or_display_qr_code.hosted_instructions_url,lightboxOptions:{frameTitle:"hosted_qr_code_instructions.cashapp.frame_title"}});switch(n.object){case"payment_intent":return(0,o.k)(n,u.cashapp_handle_redirect_or_display_qr_code.mobile_auth_url,t);case"setup_intent":return(0,o.e)(n,u.cashapp_handle_redirect_or_display_qr_code.mobile_auth_url,t);default:return(0,c.Rz)(n)}}},6090:function(e,t,n){"use strict";n.d(t,{Ug:function(){return p}});var r=n(1413),o=n(5987),i=n(6589),a=n(6042),c=n(755),s=n(5326),u=n(9776),l=function(e){return"requires_action"!==e.status&&"requires_source_action"!==e.status},p=function(e){var t=e.controller,n=e.initialDelay,p=void 0===n?5e3:n,d=e.intent,m=e.lightboxOptions,f=e.locale,h=e.pollInterval,_=void 0===h?2e3:h,y=e.url,v=m.size,g=(0,o.Z)(m,["size"]),b=(0,a.q)(t,(0,r.Z)({url:(0,c.jr)(y),size:u.q$?"fullScreen":v||"400x600",locale:f,useLightboxHostedCloseButton:!1},g)),w=!1;return new i.J((function(e){return b._on("load",(function(){b.show(),b.fadeInBackdrop()})),b._once("request-close",(function(){(0,a.G)(b).then((function(){w=!0,"payment_intent"===d.object&&e({paymentIntent:d}),"setup_intent"===d.object&&e({setupIntent:d})}))})),b._on("complete",(function(t){(0,a.G)(b).then((function(){w=!0,e(t)}))})),(0,s.ct)({controller:t,initialDelay:p,pollTimeGap:_,intent:d,checkIntent:l,shouldPoll:function(){return!w},locale:f}).then((function(t){"error"in t&&t.error||w||b.destroy(!0).then((function(){e(t)}))}))}))}},6790:function(e,t,n){"use strict";n.d(t,{e:function(){return a},k:function(){return i}});var r=n(1849),o=n(6977),i=function(e,t,n){return(0,r.U)(t).then((function(t){return(0,r.d)(n,"next_action redirect",t),(0,o.PA)(t,e)}))},a=function(e,t,n){return(0,r.U)(t).then((function(t){return(0,r.d)(n,"next_action redirect",t),(0,o.e3)(t,e)}))}},122:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(3324),o=n(1413),i=n(2583),a=n(755),c=n(6589),s=n(5326),u=n(9792),l=function(e,t,n,l,p,d){var m=(0,i.xz)(),f=new u.E,h=function(e,t,n,r,i){return e.createLightboxFrame({type:a.NC.AUTHORIZE_WITH_URL,options:(0,o.Z)({url:t,locale:i,intentId:n},r?{source:r}:{})})}(l,e.url,t.id,e.source,p);return h.show(),l.report("authorize_with_url.loading",{viewport:m,intentId:t.id}),h._on("load",(function(){l.report("authorize_with_url.loaded",{loadDuration:f.getElapsedTime(),intentId:t.id}),h.fadeInBackdrop()})),h._on("challenge_complete",(function(){h.fadeOutBackdrop()})),new c.J((function(o){var i=e.source;i&&h._once("cancel",(function(){c.J.all([(0,s.$o)(t,n,l,i,p),h.destroy()]).then((function(e){var t=(0,r.Z)(e,1)[0];return o(t)}))})),h._once("authorize_with_url_done",(function(){var e=h.destroy();(0,s.Eo)(t,n,l,p,d,(function(n,r){e.then((function(){l.report("authorize_with_url.done",{shownDuration:f.getElapsedTime(),success:!("error"in n),intentId:t.id,iterations:r}),o(n)}))}))}))}))}},6519:function(e,t,n){"use strict";n.d(t,{M:function(){return a},x:function(){return c}});var r=n(6589),o=n(8316),i=n(1873),a=function(e,t,n){var r=n.fingerprintResult,o=n.oneClickAuthn,i=t.controller,a=t.hosted,c=t.intentSecret;return i.report("3ds2.authenticate",{hosted:a,intentId:c.id}),i.action.authenticate3DS2({threeDS2Source:e.threeDS2Source,gateway:e.gateway,outerWindowWidth:window.innerWidth,hosted:a,fingerprintResult:r,oneClickAuthnDeviceSupportAPIParam:{hosted:a,same_origin_frame:o.deviceSupport.sameOriginFrame,spc_eligible:o.deviceSupport.spcEligible,webauthn_eligible:o.deviceSupport.webauthnEligible,publickey_credentials_get_allowed:o.deviceSupport.publickeyCredentialsGetAllowed},oneClickAuthnAuthenticationAPIParam:o.authenticationAPIParam,publishableKey:e.publishableKey}).then((function(e){return"error"===e.type?i.report("3ds2.authenticate.error",{error:e.error,hosted:a,intentId:c.id}):i.report("3ds2.authenticate.success",{hosted:a,intentId:c.id}),e}))},c=function(e,t,n){var a=n.authenticateResponse,c=n.oneClickAuthnDeviceSupport,s=n.oneClickAuthnOptedOut,u=n.challengeFrame,l=t.controller,p=t.hosted,d=t.intentSecret;if("error"===a.type)return r.J.resolve();var m,f=a.object,h=f.state,_=f.ares,y=f.creq;if("delegated"===h)return r.J.resolve();if(null===_)return r.J.resolve();if("C"!==_.transStatus||null==y)return l.report("3ds2.frictionless",{hosted:p,intentId:d.id}),r.J.resolve();switch(e.gateway){case"emvco":m={type:"3ds2-challenge",gateway:e.gateway,threeDS2Source:e.threeDS2Source,cardBrand:e.cardBrand,transactionId:e.transactionId,acsUrl:_.acsURL,acsTransactionId:_.acsTransID,optimizations:e.optimizations,oneClickAuthn:e.oneClickAuthn,creq:y,publishableKey:e.publishableKey};break;case"itmx":var v=a.object.itmx;m={type:"3ds2-challenge",gateway:e.gateway,threeDS2Source:e.threeDS2Source,cardBrand:e.cardBrand,transactionId:e.transactionId,acsUrl:_.acsURL,acsTransactionId:_.acsTransID,optimizations:e.optimizations,oneClickAuthn:e.oneClickAuthn,creq:y,publishableKey:e.publishableKey,stepUpUrl:null==v?void 0:v.stepUpUrl,accessToken:null==v?void 0:v.accessToken};break;default:(0,i.Rz)(e)}return(0,o.f)(m,{oneClickAuthnDeviceSupport:c,oneClickAuthnOptedOut:s,challengeFrame:u})}},8316:function(e,t,n){"use strict";n.d(t,{B:function(){return c},f:function(){return s}});var r=n(1413),o=n(5987),i=n(6589),a=n(755),c=function(e,t){var n=t.intentSecret,r=t.controller,o=t.locale,c=t.hosted,s=r.createLightboxFrame({type:a.NC.STRIPE_3DS2_CHALLENGE,options:{intentId:n.id,hosted:c,locale:o}});r.report("3ds2.challenge_frame.loading",{intentId:n.id,hosted:c}),s._on("challenge_complete",(function(){s.fadeOutBackdrop()}));var u=function(e){return new i.J((function(t){e._on("load",(function(){return t(e)}))}))}(s);return u.then((function(){return r.report("3ds2.challenge_frame.loaded",{intentId:n.id,hosted:c})})),c&&(s.show(),s.action.show3DS2Spinner({cardBrand:e.cardBrand})),u},s=function(e,t){var n=t.oneClickAuthnDeviceSupport,c=t.oneClickAuthnOptedOut,s=t.challengeFrame;return new i.J((function(t,i){s.then((function(s){var u=function(){return i(new Error("User canceled"))};s._once("cancel",u),s.isVisible||(s.show(),s.fadeInBackdrop());e.type;var l=e.optimizations,p=(e.oneClickAuthn,(0,o.Z)(e,["type","optimizations","oneClickAuthn"]));s.action.perform3DS2Challenge((0,r.Z)((0,r.Z)({},p),{},{shouldSandbox:l.sandboxChallengeFrame,recordFinalCres:l.recordFinalCres,oneClickAuthnDeviceSupport:n,oneClickAuthnOptedOut:c,oneClickWebauthnEnrollmentAppUrl:(0,a.xS)("one-click-webauthn-enrollment-541847481c4c9789b262996b80eae121.html")})).then((function(){s._off("cancel",u),t()}))}))}))}},8936:function(e,t,n){"use strict";n.d(t,{EJ:function(){return u},R6:function(){return l},gg:function(){return s}});var r=n(1413),o=n(3324),i=n(6589),a=n(5326),c=n(5268),s=function(e,t,n){var r=t.intentSecret,o=t.intentType,i=t.controller,c=t.locale;return(0,a.NO)(r,o,i,c,n)},u=function(e,t){var n=t.controller,r=t.intentSecret,o=t.intentType,i=t.locale;return(0,a.$o)(r,o,n,e.threeDS2Source,i,e.threeDS2Intent,e.publishableKey)},l=function(e,t){var n=e.intentSecret,a=e.controller,s=e.hosted,u=t.intent,l=t.challengeFrame,p=t.startTimestamp;return i.J.all([u,l.then((function(e){return e.destroy()}))]).then((function(e){var t=(0,o.Z)(e,1)[0];return a.report("3ds2.done",(0,r.Z)({intentId:n.id,hosted:s,totalDuration:p.getElapsedTime()},t.error?{error:(0,c.Am)(t.error),success:!1}:{success:!0})),t}))}},1240:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var r=n(6589),o=n(755),i=n(1873),a=function(e){var t=e.intentSecret,n=e.controller,i=e.hosted,a=e.locale,c=n.createHiddenFrame(o.NC.STRIPE_3DS2_FINGERPRINT,{intentId:t.id,locale:a,hosted:i});n.report("3ds2.fingerprint_frame.loading",{hosted:i,intentId:t.id});var s=function(e){return new r.J((function(t){e._on("load",(function(){return t(e)}))}))}(c);return s.then((function(){n.report("3ds2.fingerprint_frame.loaded",{hosted:i,intentId:t.id})})),s},c=function(e,t){var n=t.intentSecret,o=t.controller,c=t.hosted;return e.optimizations.skipFingerprint?r.J.resolve({fingerprintAttempted:!1,fingerprintData:null}):""===e.methodUrl?(o.report("3ds2.fingerprint.no_method_url",{hosted:c,intentId:n.id}),r.J.resolve({fingerprintAttempted:!1,fingerprintData:null})):a(t).then((function(t){var n={};switch(e.gateway){case"emvco":n={gateway:e.gateway,threeDS2Source:e.threeDS2Source,merchant:e.merchant,transactionId:e.transactionId,methodUrl:e.methodUrl,shouldSandbox:e.optimizations.sandboxFingerprintFrame};break;case"itmx":n={gateway:e.gateway,threeDS2Source:e.threeDS2Source,merchant:e.merchant,transactionId:e.transactionId,methodUrl:e.methodUrl,shouldSandbox:e.optimizations.sandboxFingerprintFrame,accessToken:e.accessToken};break;default:(0,i.Rz)(e)}return t.action.perform3DS2Fingerprint(n).then((function(e){return t.destroy(),e}))}))}},67:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(3324),o=n(6589),i=n(1873),a=n(9792),c=n(6519),s=n(8316),u=n(8936),l=n(1240),p=n(1870),d=function(e,t,n){var d=new a.E,m=(0,s.B)(e,t);switch(e.type){case"3ds2-challenge":return(0,p.L)(e,t).then((function(r){return(0,s.f)(e,{oneClickAuthnDeviceSupport:r,oneClickAuthnOptedOut:!1,challengeFrame:m}).then((function(){return(0,u.R6)(t,{intent:(0,u.gg)(e,t,n),challengeFrame:m,startTimestamp:d})}),(function(){return(0,u.R6)(t,{intent:(0,u.EJ)(e,t),challengeFrame:m,startTimestamp:d})}))}));case"3ds2-fingerprint":return o.J.all([(0,l.$)(e,t),(0,p.S)(e,t,{challengeFrame:m,startTimestamp:d})]).then((function(n){var o=(0,r.Z)(n,2),i=o[0],a=o[1];return(0,c.M)(e,t,{fingerprintResult:i,oneClickAuthn:a}).then((function(n){return(0,c.x)(e,t,{authenticateResponse:n,oneClickAuthnDeviceSupport:a.deviceSupport,oneClickAuthnOptedOut:a.optedOut,challengeFrame:m})}))})).then((function(){return(0,u.R6)(t,{intent:(0,u.gg)(e,t,n),challengeFrame:m,startTimestamp:d})}),(function(){return(0,u.R6)(t,{intent:(0,u.EJ)(e,t),challengeFrame:m,startTimestamp:d})}));default:return(0,i.Rz)(e)}}},3848:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(9776),o=n(6589),i=function(){if(void 0===window.PaymentRequest)return o.J.resolve(!1);if(!/Chrome\/(9[5-9]|[1-9]\d\d)/.test(window.navigator.userAgent))return o.J.resolve(!1);if(r.sV&&!/Chrome\/(109|1[1-9]\d|[2-9]\d{2}|[1-9]\d{3,})/.test(window.navigator.userAgent))return o.J.resolve(!1);try{var e=[{supportedMethods:"secure-payment-confirmation",data:{action:"authenticate",credentialIds:[new Uint8Array(1)],challenge:new Uint8Array(1),fallbackUrl:window.location,rpId:"stripe.com",payeeOrigin:"https://web.archive.org/web/20230604193106/https://stripe.com",instrument:{displayName:"Mock ····1234",icon:'data:image/svg+xml;utf8,'}}}];return new window.PaymentRequest(e,{total:{label:"Total",amount:{currency:"USD",value:"0"}}}).canMakePayment().catch((function(){return!1}))}catch(e){return o.J.resolve(!1)}}},1870:function(e,t,n){"use strict";n.d(t,{L:function(){return y},S:function(){return v}});var r=n(3324),o=n(1413),i=n(6589),a=n(9776),c=n(1988),s=n(3848),u=n(3930),l=n(6580),p=n(692),d=n(5427),m=function(e,t){var n=e.threeDS2Source,r=e.oneClickAuthn,i=t.controller;if(!r)return null;var c=a.s$?"safari":a.D1?"firefox":a.P0||a.Bh?"edge":a.G9?a.sV?"chrome_android":/Chrome\/10[4-9]/.test(window.navigator.userAgent)?"chrome_in_opt_out_trial":/Chrome\/(1[1-9]\d|[2-9]\d{2}|[1-9]\d{3,})/.test(window.navigator.userAgent)?"chrome_with_opt_out":"chrome":null;if(!c)return i.report("one_click_authn.configuration.error",{client_id:u.C,reason:"browser_not_found",source:n}),null;try{switch(new URLSearchParams((0,l.Z4)(r.configuration)).get(c)){case l.NY.webauthn:return l.NY.webauthn;case l.NY.spc:return l.NY.spc;case l.NY.spcEnrollmentWebauthnAuthentication:return l.NY.spcEnrollmentWebauthnAuthentication;default:return null}}catch(e){return i.report("one_click_authn.configuration.error",{client_id:u.C,reason:"unexpected_error",source:n,error:(0,o.Z)({name:e.name,message:e.message},e)}),null}},f=function(){try{return 0==="https://web.archive.org/web/20230604193106/https://js.stripe.com/v3/".indexOf(window.top.location.origin)}catch(e){return!1}},h=function(){var e=document.featurePolicy;if(!e)return!1;try{return-1!==e.allowedFeatures().indexOf("publickey-credentials-get")}catch(e){return!1}},_=function(e,t,n,r,o){return(0,d.f)(e,t,{deviceSupport:n,challengeFrame:r,startTimestamp:o}).then((function(e){return{deviceSupport:n,authenticationAPIParam:e,optedOut:!1}}))},y=function(e,t){return i.J.all([(0,s.O)(),(0,c.Q)()]).then((function(n){var o=(0,r.Z)(n,2),i=o[0],a=o[1];return{sameOriginFrame:f(),spcEligible:i,webauthnEligible:a,publickeyCredentialsGetAllowed:h(),configurationType:m(e,t)}}))},v=function(e,t,n){var r=n.challengeFrame,o=n.startTimestamp;return y(e,t).then((function(n){return(0,l._N)(n)?_(e,t,n,r,o):(0,l.jo)(n)?(0,p.W)(e,t,{deviceSupport:n,startTimestamp:o}).then((function(i){var a=i.authenticationAPIParam,c=i.optedOut;return!i.isSPCRequested&&n.webauthnEligible?_(e,t,n,r,o):{deviceSupport:n,authenticationAPIParam:a,optedOut:c}})):{deviceSupport:n,authenticationAPIParam:null,optedOut:!1}}))}},692:function(e,t,n){"use strict";n.d(t,{W:function(){return l}});var r=n(1413),o=n(6589),i=n(6010),a=n(5558),c=n(6977),s=n(6580),u=n(3930),l=function(e,t,n){var l=e.threeDS2Source,p=e.oneClickAuthn,d=t.controller,m=n.deviceSupport,f=n.startTimestamp,h=o.J.resolve({authenticationAPIParam:null,optedOut:!1,isSPCRequested:!1}),_=o.J.resolve({authenticationAPIParam:null,optedOut:!1,isSPCRequested:!0});if(!p)return h;var y,v=p.credentials.filter((function(e){return e.type===c.QS}));if(0===v.length)return d.report("one_click_authn.request_spc_authn.empty_credentials_list",{client_id:u.C,source:l,device_support:m}),h;try{var g=p.merchant.origin;if(!g)return d.report("one_click_authn.request_spc_authn.empty_merchant_origin",{client_id:u.C,source:l,device_support:m}),h;(y=document.createElement("meta")).name=(0,a.To)("__privateStripeMeta"),y.httpEquiv="origin-trial",y.content="A2ZxBmgWRc3CxEGqZ0aWPMB4MUSx1dSjXn2pGXpMq8NLQh00TMwiKf5A8NEQegaXHfDY7IxdHtYPxI0KRKEWNgQAAAB6eyJvcmlnaW4iOiJodHRwczovL2pzLnN0cmlwZS5jb206NDQzIiwiZmVhdHVyZSI6IlNlY3VyZVBheW1lbnRDb25maXJtYXRpb25PcHRPdXQiLCJleHBpcnkiOjE2Nzg0MDYzOTksImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=",document.head.appendChild(y);var b=new window.PaymentRequest(function(e,t,n){var r=n.authenticationChallenge,o=n.instrument,a=o.cardBrand,c=o.cardName,u=o.cardLast4,l=n.merchant;return[{supportedMethods:"secure-payment-confirmation",data:{action:"authenticate",rpId:"stripe.com",credentialIds:e.map((function(e){return(0,s.YR)(e.id)})),challenge:(0,s.YR)(r),timeout:6e4,fallbackUrl:window.location.toString(),instrument:{displayName:"".concat(c," ····").concat(u),icon:(0,i.z)(a)},payeeOrigin:t,payeeName:l.name,showOptOut:!0}}]}(v,g,p),{total:{label:"Total",amount:p.amount}});return d.report("one_click_authn.request_spc_authn.prompted",{client_id:u.C,source:l,timeToComplete:f.getElapsedTime(),device_support:m}),b.show().then((function(e){return e.complete("success"),d.report("one_click_authn.request_spc_authn.completed",{client_id:u.C,source:l,timeToComplete:f.getElapsedTime(),device_support:m}),{authenticationAPIParam:{type:c.QS,assertion:(0,s.no)(e.details),payment_data:{merchant_data:{merchant_origin:g,total:p.amount},network_data:p.authenticationChallenge}},optedOut:!1,isSPCRequested:!0}})).catch((function(e){if(function(e){return"OptOutError"===e.name&&-1!==e.message.indexOf("opted out")}(e))return d.report("one_click_authn.request_spc_authn.opted_out",{client_id:u.C,source:l,timeToOptedOut:f.getElapsedTime(),device_support:m}),o.J.resolve({authenticationAPIParam:null,optedOut:!0,isSPCRequested:!0});var t={AbortError:"request_aborted",InvalidStateError:"payment_already_shown",NotSupportedError:"payment_method_not_supported",SecurityError:"security_error"}[e.name]||"unexpected_error";return d.report("one_click_authn.request_spc_authn.error",{reason:t,client_id:u.C,source:l,timeToError:f.getElapsedTime(),device_support:m,error:(0,r.Z)({name:e.name,message:e.message},e)}),_}))}catch(e){d.report("one_click_authn.request_spc_authn.error",{client_id:u.C,reason:"unexpected_error",source:l,timeToError:f.getElapsedTime(),device_support:m,error:(0,r.Z)({name:e.name,message:e.message},e)})}return _}},5427:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(6589),o=n(3930),i=n(755),a=function(e,t,n){var a=t.controller,c=n.deviceSupport,s=n.challengeFrame,u=n.startTimestamp,l=e.oneClickAuthn;if(!l)return r.J.resolve(null);var p=l.credentials;return 0===p.length?(a.report("one_click_authn.request_webauthn_authn.empty_credentials_list",{client_id:o.C,source:e.threeDS2Source,device_support:c}),r.J.resolve(null)):new r.J((function(t,n){s.then((function(r){var o=function(){return n(new Error("User canceled"))};r._once("cancel",o),r.isVisible||(r.show(),r.fadeInBackdrop());var a={amount:l.amount,instrument:l.instrument,merchant:l.merchant,authenticationChallenge:l.authenticationChallenge,layout:l.layout,allowCredentials:p};return r.action.performOneClickWebauthnAuthentication({threeDS2Source:e.threeDS2Source,cardBrand:e.cardBrand,appUrl:(0,i.xS)("one-click-webauthn-authentication-4c410f27b82349d1dd384c417f30c446.html"),deviceSupport:c,payload:a,startPosixTime:u.getAsPosixTime()}).then((function(e){r._off("cancel",o),t(e)}))}))}))}},1988:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r=n(6589),o=function(){if(void 0===window.PublicKeyCredential||function(){if(!/CrOS/i.test(window.navigator.userAgent))return!1;var e=window.navigator.userAgent.match(/Chrome\/\d+\.\d+\.(\d+)\.(\d+)/)||[],t=Number(e[1]),n=Number(e[2]);return!(4389===t&&n>=82||4430===t&&n>=11||t>=4431)}()||function(){var e=/iPad|iPhone/i.test(window.navigator.userAgent),t=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)&&!/SamsungBrowser/.test(window.navigator.userAgent);if(!e||t)return!1;var n=window.navigator.userAgent.match(/OS (\d+)_(\d+)(_\d+)? like Mac OS X/)||[],r=parseInt(n[1],10),o=parseInt(n[2],10);return!isNaN(r)&&!isNaN(o)&&(15===r&&o>=4||r>15)}())return r.J.resolve(!1);var e=window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable(),t=new r.J((function(e){return setTimeout((function(){return e(!1)}),500)}));return r.J.race([e,t]).catch((function(){return!1}))}},112:function(e,t,n){"use strict";n.d(t,{$j:function(){return _},Qw:function(){return y}});var r=n(5987),o=n(1413),i=n(6977),a=n(7792),c=n(2024),s=n(1873),u=n(3849),l=n(8812),p={clientSecret:(0,s.jt)(s.Z_),redirect:(0,s.jt)((0,s.kw)("always","if_required")),confirmParams:(0,s.jt)(s.Ry),handleActions:(0,s.jt)(s.Xg)},d=(0,o.Z)((0,o.Z)({},p),{},{element:(0,s.jt)(s.Ry)}),m=(0,o.Z)((0,o.Z)({},p),{},{elements:(0,s.jt)(s.Ry)}),f={"stripe.confirmPayment()":{link:"https://web.archive.org/web/20230604193106/https://stripe.com/docs/js/payment_intents/payment_method",action:"Payment"},"stripe.confirmSetup()":{link:"https://web.archive.org/web/20230604193106/https://stripe.com/docs/js/setup_intents/payment_method",action:"Setup"}},h=function(e,t,n){var r=t.rawSecret,o=t.rawElement,i=t.rawElements,u=t.rawHandleActions,p=t.rawRedirect,d=t.validatedConfirmParams,m=t.elementConfirmingPayment;if((0,a.uN)(e,a.M4.payment_element_beta_1)){var h=(0,s.rX)(o);if(!h)throw new l.No("Invalid value for ".concat(n,": `element` should be a Payment Element. You specified: ").concat(typeof o,"."));return{type:"elements",element:h}}if(function(e,t){var n=e.rawSecret,r=e.rawElements;if(!n&&!r)throw new l.No("".concat(t,": expected either `elements` or `clientSecret`, but got neither."))}({rawElements:i,rawSecret:r},n),p&&!1===u)throw new l.No("".concat(n,": `redirect` not applicable when `handleActions` is false."));if(r&&!i){if(null!=d&&d.payment_method&&null!=d&&d.payment_method_data)throw new l.No("".concat(n,": Expected either `payment_method` or `payment_method_data`, but not both."));return{type:"clientSecret",clientSecret:r}}var _=(0,s.MO)(i);if(!_)throw new l.No("Invalid value for ".concat(n,": elements should be an Elements group. You specified: ").concat(typeof i,"."));var y=(0,c.sE)(_._elements,(function(e){return"payment"===e._componentName})),v=(0,c.sE)(_._elements,(function(e){return"expressCheckout"===e._componentName||"payButton"===e._componentName}));if(!y&&!v)throw new l.No("Invalid value for ".concat(n,": elements should have a mounted Payment Element or Express Checkout Element. ").concat(function(e,t){if(e&&f[t]){var n=f[t],r=n.link,o=n.action;return"It looks like you have other Elements on the page. Refer to ".concat(r," to confirm a ").concat(o," Intent by payment method.")}return""}(!!_._elements.length,n)));if("expressCheckout"===m){if(!v)throw new Error('Element confirming payment is "expressCheckout", but there is no Express Checkout Element mounted on the page.');return{type:"elements",elements:_,clientSecret:r,element:v}}if(!y){if(v)throw new Error('Element confirming payment is "expressCheckout", but '.concat(n,' was not called within the "confirm" event. Please call ').concat(n,' in the "confirm" event (https://stripe.com/docs/js/elements_object/express_checkout_element_confirm_event).'));throw new Error('Element confirming payment is "payment", but there is no PaymentElement mounted on the page.')}return{type:"elements",elements:_,clientSecret:r,element:y}},_=function(e){return(0,a.uN)(e,a.M4.payment_element_beta_1)?d:m},y=function(e){var t,n=e.controller,c=e.mids,p=e.betas,d=e.rawUpdateData,m=e.intentType,f=e.elementConfirmingPayment,y=e.errorMessageMethodName,v=e.maybeWalletData,g=function(e){var t=e.betas,n=e.rawUpdateData,r=e.errorMessageMethodName,o=e.controller,i=e.elementConfirmingPayment,a=(0,s.Gu)((0,s.mC)(_(t)),n,r),c=a.value,u=c.element,l=void 0===u?void 0:u,p=c.elements,d=void 0===p?void 0:p,m=c.confirmParams,f=c.clientSecret,y=c.redirect,v=c.handleActions,g=a.warnings,b=(0,s.Gu)((0,s.jt)((0,s.mC)({return_url:(0,s.jt)(s.Z_),payment_method:(0,s.jt)(s.Z_),payment_method_data:(0,s.jt)(s.Ry),payment_method_options:(0,s.jt)(s.Ry),setup_future_usage:(0,s.NM)("".concat(r,": do not pass setup_future_usage at confirm time. Instead, pass setup_future_usage when the PaymentIntent is created."))})),m,r,{path:["confirmParams"]}).value,w=h(t,{rawSecret:f,rawElement:l,rawElements:d,rawHandleActions:v,rawRedirect:y,validatedConfirmParams:b,elementConfirmingPayment:i},r),k=y||"always",S=(null==b?void 0:b.return_url)||null;return g.forEach((function(e){return o.warn(e)})),{validatedRedirect:k,validatedReturnUrl:S,validatedParams:w,validatedConfirmParams:b,validatedHandleActions:!1!==v,rawConfirmParams:m}}({betas:p,rawUpdateData:d,controller:n,errorMessageMethodName:y,elementConfirmingPayment:f}),b=g.validatedParams,w=g.validatedConfirmParams,k=g.validatedRedirect,S=g.validatedHandleActions,E=g.validatedReturnUrl,C=g.rawConfirmParams,P=null!=C?C:{},A=(P.payment_method,P.payment_method_data,P.payment_method_options,(0,r.Z)(P,["payment_method","payment_method_data","payment_method_options"]));if("clientSecret"===b.type?t=function(e){var t,n=e.validatedParams,r=e.validatedConfirmParams,i=e.validatedHandleActions,a=e.otherParams,c=e.intentType,s=e.mids,l=e.maybeWalletData,p=null!=r?r:{},d=p.payment_method_data,m=p.payment_method,f=p.payment_method_options,h="payment"===c?(0,u.cn)(n.clientSecret,"confirmPayment"):(0,u.jH)(n.clientSecret,"confirmSetup"),_=(0,u.k7)({payment_method:d}),y={};return"none"!==(t=d&&_?{intentSecret:h,tag:"paymentMethod-from-data",type:_,data:d,options:null!=f?f:{}}:m?{intentSecret:h,tag:"paymentMethod",paymentMethod:m,options:null!=f?f:{}}:{intentSecret:h,tag:"none"}).tag&&"paymentMethod"!==t.tag||(y={use_stripe_sdk:!0,mandate_data:{customer_acceptance:{type:"online",online:{infer_from_client:!0}}}}),{mids:s,mode:t,expectedType:_,otherParams:(0,o.Z)((0,o.Z)({},y),a),options:{handleActions:i,walletData:l||void 0}}}({validatedParams:b,validatedConfirmParams:w,validatedHandleActions:S,otherParams:A,intentType:m,mids:c,maybeWalletData:v}):(!function(e){var t,n,r,o=e.validatedParams,i=e.betas,c=e.validatedReturnUrl,s=e.errorMessageMethodName;if("clientSecret"!==o.type){var u=!(null===(t=o.elements)||void 0===t||!t._commonOptions.mode),p=!(null===(n=o.elements)||void 0===n||!n._commonOptions.payment_method_types)||!(null===(r=o.elements)||void 0===r||!r._commonOptions.paymentMethodTypes);if(!(0,a.uN)(i,a.M4.elements_enable_deferred_intent_beta_1)&&u&&!p&&!c)throw new l.No("".concat(s,": the `confirmParams.return_url` argument is required when using automatic payment methods."))}}({validatedParams:b,validatedReturnUrl:E,betas:p,errorMessageMethodName:y}),t=function(e){var t,n,r,o,a=e.validatedParams,c=e.validatedConfirmParams,s=e.validatedHandleActions,u=e.otherParams,l=e.mids,p=e.elementConfirmingPayment,d=e.maybeWalletData,m=e.enforcePreSubmit,f=a.clientSecret?(0,i.RY)(a.clientSecret):null;return{mode:{tag:"elements",groupId:null===(t=a.elements)||void 0===t?void 0:t._id,frameId:null===(n=a.element)||void 0===n?void 0:n._implementation._frame.id,elementName:p,data:null!==(r=null==c?void 0:c.payment_method_data)&&void 0!==r?r:{},options:null!==(o=null==c?void 0:c.payment_method_options)&&void 0!==o?o:{},intentSecret:f||void 0,enforcePreSubmit:m&&!!f},otherParams:u,expectedType:null,mids:l,options:{handleActions:s,walletData:d||void 0}}}({validatedParams:b,validatedConfirmParams:w,validatedHandleActions:S,otherParams:A,mids:c,elementConfirmingPayment:f,maybeWalletData:v,enforcePreSubmit:!(0,a.uN)(p,a.M4.elements_enable_deferred_intent_beta_1)})),"if_required"===k)return{intentMutationRequest:t,redirect:k,returnUrl:null};if("always"===k&&E)return{intentMutationRequest:t,redirect:k,returnUrl:E};throw new l.No("".concat(y,": the `confirmParams.return_url` argument is required unless passing `redirect: 'if_required'`"))}},206:function(e,t,n){"use strict";n.d(t,{Fh:function(){return S},nq:function(){return P},gO:function(){return C}});var r=n(6977),o=n(274),i=n(7549),a=n(122),c=n(67),s=n(6589),u=n(6042),l=n(755),p=n(8147),d=n(5326),m=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.interval||1e4,o=n.timeout||3e5,i=(new Date).getTime();return new s.J((function(n){setTimeout((function a(){s.J.resolve(e(t)).catch((function(e){return{error:e}})).then((function(e){if(null==e)if((new Date).getTime()-i>o){n({error:new Error("Polling timed out without a valid response")})}else setTimeout(a,r);else n(e)}))}),r)}))}},f=m((function(e){var t=e.intentSecret,n=e.intentType,r=e.controller,o=e.locale;return s.J.resolve((0,d.NO)(t,n,r,o)).then((function(e){var t=(0,d.yn)(e);return t?"requires_action"===t.status?null:e:"error"in e&&"lock_timeout"===e.error.code?null:e}))})),h=n(6090),_=n(6790),y=n(8478),v=n(1873),g=n(73),b=n(8812),w=n(7792),k=function(e){return["id_bank_account","id_bank_transfer"].indexOf(e.bankTransferType)>-1},S=function(e){switch(e.type){case"error":var t=e.error;if("payment_intent_unexpected_state"===t.code&&"object"==typeof t.payment_intent&&null!=t.payment_intent&&"string"==typeof t.payment_intent.status&&(0,r.mD)(t.payment_intent.status)){var n=t.payment_intent;return{type:"object",locale:e.locale,object:n}}return e;case"object":return e;default:return(0,v.Rz)(e)}},E=function(e,t,o,m,v,S,E){var C=E||(0,r.G2)(t),P=(0,i.l)(C),A=(0,r.O3)(t);if(!P)return s.J.resolve({paymentIntent:t});switch(P.type){case"cardimageverification-challenge":return n.e(428).then(n.bind(n,5798)).then((function(n){return(0,n.performCardImageVerification)(P,t,e,o)}));case"captcha-challenge":return(0,p.z)(P,t,e,o);case"3ds1-modal":return(0,a.s)(P,A,g.kE.PAYMENT_INTENT,e,o,v);case"3ds2-fingerprint":case"3ds2-challenge":return(0,c.A)(P,{intentSecret:A,intentType:g.kE.PAYMENT_INTENT,controller:e,locale:o,hosted:m},v);case"redirect":return(0,_.k)(t,P.redirectUrl,e);case"blik_authorize":return function(e){var t=e.controller,n=e.intent,r=e.locale,o=e.shouldDisplayInstructionsModal;return new s.J((function(e){var i,a=!1;return o&&((i=t.createLightboxFrame({type:l.NC.BLIK_INNER,options:{locale:r}}))._on("load",(function(){var e,t;null===(e=i)||void 0===e||e.show(),null===(t=i)||void 0===t||t.fadeInBackdrop()})),i._once("request-close",(function(){i&&(0,u.G)(i).then((function(){a=!0,e({paymentIntent:n})}))}))),(0,d.ct)({controller:t,initialDelay:8e3,pollTimeGap:5e3,intent:n,checkIntent:function(e){return"requires_action"!==e.status||"blik_authorize"!==e.next_action.type},locale:r,shouldPoll:function(){return!a}}).then((function(t){var n;null!==(n=i)&&void 0!==n&&n.isVisible&&i.destroy(!0),a||e(t)}))}))}({controller:e,intent:t,locale:o,shouldDisplayInstructionsModal:S});case"boleto-display":if(void 0===P.hostedVoucherUrl)throw new b.No("Expect `next_action.boleto_display_details.hosted_voucher_url` of `PaymentIntent` to be not undefined. Please refer to \n\nhttps://stripe.com/docs/api/payment_intents/object#payment_intent_object-next_action-boleto_display_details-hosted_voucher_url");return function(e){var t=e.controller,n=e.url,r=e.intent,o=e.locale,i=(0,u.q)(t,{url:(0,l.jr)(n),size:"600x700",locale:o,frameTitle:"boleto.voucher_frame_title",useLightboxHostedCloseButton:!1});return new s.J((function(e){i._on("request-close",(function(){(0,u.G)(i).then((function(){e({paymentIntent:r})}))}))}))}({controller:e,locale:o,url:P.hostedVoucherUrl,intent:t});case"konbini-display":if(void 0===P.hostedVoucherUrl)throw new b.No("Expected option `handleActions` to be `false`. The Konbini pilot does not handle the next actions for you automatically yet (e.g. displaying Konbini payment details). Please refer to the Stripe Konbini integration guide for more info: \n\nhttps://stripe.com/docs/payments/konbini");return function(e){var t=e.controller,n=e.url,r=e.intent,o=e.locale,i=(0,u.q)(t,{url:(0,l.jr)(n),size:"600x900",locale:o,frameTitle:"konbini.voucher_frame_title",useLightboxHostedCloseButton:!1});return new s.J((function(e){i._on("request-close",(function(){(0,u.G)(i).then((function(){e({paymentIntent:r})}))}))}))}({controller:e,locale:o,url:P.hostedVoucherUrl,intent:t});case"oxxo-display":if(void 0===P.hostedVoucherUrl)throw new b.No("To handle the next actions automatically, set the API version to oxxo_beta=v2. Please refer to the Stripe OXXO integration guide for more info: \n\nhttps://stripe.com/docs/payments/oxxo");return function(e){var t=e.controller,n=e.url,r=e.intent,o=e.locale,i=(0,u.q)(t,{url:(0,l.jr)(n),size:"600x700",locale:o,frameTitle:"oxxo.voucher_frame_title",useLightboxHostedCloseButton:!1});return new s.J((function(e){i._on("request-close",(function(){(0,u.G)(i).then((function(){e({paymentIntent:r})}))}))}))}({controller:e,locale:o,url:P.hostedVoucherUrl,intent:t});case"upi_await_notification":return f({controller:e,intentSecret:A,intentType:g.kE.PAYMENT_INTENT,locale:o});case"wechat_pay_display_qr_code":return function(e){var t=e.controller,n=e.intent,r=e.locale,o=e.url;return(0,h.Ug)({controller:t,intent:n,locale:r,url:o,lightboxOptions:{frameTitle:"hosted_qr_code_instructions.wechat_pay.frame_title"}})}({controller:e,locale:o,url:P.hostedInstructionsUrl,intent:t,intentSecret:A,intentType:g.kE.PAYMENT_INTENT});case"paynow_display_qr_code":return function(e){var t=e.controller,n=e.intent,r=e.locale,o=e.url;return(0,h.Ug)({controller:t,intent:n,locale:r,url:o,lightboxOptions:{frameTitle:"hosted_qr_code_instructions.paynow.frame_title"}})}({controller:e,locale:o,url:P.hostedInstructionsUrl,intent:t,intentSecret:A,intentType:g.kE.PAYMENT_INTENT});case"pix_display_qr_code":if(void 0===P.hostedInstructionsUrl)throw new b.No("Expect `next_action.pix_display_qr_code.hosted_instructions_url` of `PaymentIntent` to be not undefined. Please refer to \n\nhttps://stripe.com/docs/api/payment_intents/object#payment_intent_object-next_action-pix_display_qr_code-hosted_instructions_url");return function(e){var t=e.controller,n=e.intent,r=e.intentSecret,o=e.intentType,i=e.locale,a=e.url,c=(0,u.q)(t,{url:(0,l.jr)(a),size:"450x750",locale:i,frameTitle:"pix.instructions_frame_title",useLightboxHostedCloseButton:!1}),p=null;return new s.J((function(e){c._on("load",(function(){c.show(),c.fadeInBackdrop()})),c._once("request-close",(function(){(0,u.G)(c).then((function(){p&&clearTimeout(p),e({paymentIntent:n})}))})),c._on("complete",(function(t){(0,u.G)(c).then((function(){p&&clearTimeout(p),e(t)}))})),p=setTimeout((function n(){(0,d.NO)(r,o,t,i).then((function(t){var r=(0,d.yn)(t);r&&("requires_action"!==r.status?c.destroy(!0).then((function(){"payment_intent"===r.object?e({paymentIntent:r}):e({setupIntent:r})})):p=setTimeout(n,2e3))}))}),5e3)}))}({controller:e,locale:o,url:P.hostedInstructionsUrl,intent:t,intentSecret:A,intentType:g.kE.PAYMENT_INTENT});case"promptpay_display_qr_code":return function(e){var t=e.controller,n=e.intent,r=e.locale,o=e.url;return(0,h.Ug)({controller:t,intent:n,locale:r,url:o,lightboxOptions:{frameTitle:"hosted_qr_code_instructions.promptpay.frame_title"}})}({controller:e,locale:o,intent:t,intentSecret:A,url:P.hostedInstructionsUrl,intentType:g.kE.PAYMENT_INTENT});case"display_bank_transfer_instructions":return function(e,t){return!!k(e)&&!(0,w.uN)(t||[],w.M4.id_bank_transfer_beta_1)}(P,e._betas)?(0,_.k)(t,P.hostedInstructionsUrl,e):function(e){return!k(e)}(P)?function(e){var t=e.controller,n=e.url,r=e.intent,o=e.locale,i=(0,u.q)(t,{url:(0,l.jr)(n),size:"600x700",locale:o,frameTitle:"display_bank_transfer_instructions.voucher_frame_title",useLightboxHostedCloseButton:!1});return new s.J((function(e){i._on("request-close",(function(){(0,u.G)(i).then((function(){e({paymentIntent:r})}))}))}))}({controller:e,url:P.hostedInstructionsUrl,intent:t,locale:o}):s.J.resolve({paymentIntent:t});case"cashapp_handle_redirect_or_display_qr_code":return(0,y.p)({controller:e,locale:o,intent:t});default:return s.J.resolve({paymentIntent:t})}},C=function e(t,n,r,i,a,c){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;if(g.kO-1:"off_session"===(null===(t=e.payment_method_options)||void 0===t||null===(n=t.card)||void 0===n?void 0:n.setup_future_usage)}(n))return s.J.resolve(r);var c="string"==typeof n.payment_method?n.payment_method:null===(t=n.payment_method)||void 0===t?void 0:t.id;return i.action.updateCustomerDefaultPaymentMethod({groupId:a,paymentMethodId:c}).then((function(){return r})).catch((function(){return r}))}},5339:function(e,t,n){"use strict";n.d(t,{Hv:function(){return d},LK:function(){return h},SR:function(){return y},Yj:function(){return f},ZY:function(){return v},as:function(){return g},bF:function(){return b},f4:function(){return m},n_:function(){return w},q2:function(){return _}});var r=n(1413),o=n(9062),i=n(9142),a=n(5987),c=n(8812),s=n(1873),u=n(73),l=n(3840),p=n(6977),d=function(e,t){if("string"!=typeof e)return(0,s.$3)("a client_secret string",e,t);var n=(0,p.RY)(e);return null===n?(0,s.$3)("a client secret of the form ${id}_secret_${secret}",e,t):(0,s.x4)(n,[])},m=function(e,t){var n=d(e,t);return"error"===n.type?n:n.value.type===u.kE.SETUP_INTENT?(0,s.zS)(new c.No((0,s.Ao)("a PaymentIntent client secret","a SetupIntent client secret",t))):(0,s.x4)(n.value,[])},f=function(e,t){var n=d(e,t);return"error"===n.type?n:n.value.type===u.kE.PAYMENT_INTENT?(0,s.zS)(new c.No((0,s.Ao)("a SetupIntent client secret","a PaymentIntent client secret",t))):(0,s.x4)(n.value,[])},h=function(e,t){if(null===e)return(0,s.RH)("object","null",t);if("object"!=typeof e)return(0,s.RH)("object",typeof e,t);var n=e.client_secret,r=e.status,o=e.next_action,i=d(n,(0,s.NQ)(t,"client_secret"));if("error"===i.type)return i;if("string"!=typeof r)return(0,s.RH)("string",typeof r,(0,s.NQ)(t,"status"));if(("requires_source_action"===r||"requires_action"===r)&&"object"!=typeof o)return(0,s.RH)("object",typeof o,(0,s.NQ)(t,"next_action"));if("payment_intent"===e.object){var a=e;return(0,s.x4)(a,[])}var c=e;return(0,s.x4)(c,[])},_=function(e){return function(t,n){if("object"!=typeof t)return(0,s.RH)("object",typeof t,n);if(null===t)return(0,s.RH)("object","null",n);var r=t.element,u=t.elements,p=t.params,d=(t.strict,(0,a.Z)(t,["element","elements","params","strict"]));if(r||u||p){var m=(0,s.rX)(r),f=(0,s.MO)(u),h=Object.keys(d);if(h.length){var _=new c.No("Unexpected ".concat(h.length>1?"properties":"property",": `").concat(h.join("`, `"),"`. Put additional API properties in `params`."));return(0,s.zS)(_)}if(m){var y=m._componentName,v=l._b[y];return(0,s.x4)({type:v,element:m,elements:null,data:p||{}})}if(f)return(0,s.x4)({type:null,element:null,elements:f,data:p||{}});if(p)return(0,s.x4)({type:p.type,element:null,elements:null,data:p})}var g,b=t.type,w=(0,a.Z)(t,["type"]);if(null===e){if("string"!=typeof b)return(0,s.RH)("a string such as 'card', 'ideal', or 'sepa_debit'",typeof b,(0,s.NQ)(n,"type"));g=b}else{if(void 0!==b&&b!==e)return"string"!=typeof b?(0,s.RH)("a string such as 'card', 'ideal', or 'sepa_debit'",typeof b,(0,s.NQ)(n,"type")):(0,s.RH)('"'.concat(b,'"'),'"'.concat(e,'"'),(0,s.NQ)(n,"type"));g=e}var k=w[g],S=(w[g],(0,a.Z)(w,[g].map(i.Z)));if(-1!==["acss_debit","affirm","afterpay_clearpay","alipay","bancontact","cashapp","customer_balance","eps","giropay","grabpay","klarna","konbini","mobilepay","oxxo","p24","paynow","paypal","pix","us_bank_account","wechat_pay","pay_by_bank","paynow","promptpay","revolut_pay","zip"].indexOf(g)&&void 0===k&&(k={}),"object"!=typeof k)return(0,s.RH)("an object or element",typeof t[g],(0,s.NQ)(n,g));if(null===k)return(0,s.RH)("an object or element","null",(0,s.NQ)(n,g));var E=(0,s.rX)(k);if(E){var C=E._componentName;if(l._b[C]!==g){var P=[].concat((0,o.Z)(n.path),[g]).join("."),A=n.label,I=new c.No("Invalid value for ".concat(A,": ").concat(P," was `").concat(C,"` Element, which cannot be used to create ").concat(g," PaymentMethods."));return(0,s.zS)(I)}return(0,s.x4)({type:g,element:E,elements:null,data:S})}return(0,s.x4)({type:g,element:null,elements:null,data:w})}},y=(0,s.Wc)((0,s.mC)({handleActions:(0,s.Wc)(s.Xg,(function(){return!0}))}),(function(){return{handleActions:!0}})),v=function(e){return function(t,n){if("object"!=typeof t)return(0,s.RH)("object",typeof t,n);if(null===t)return(0,s.RH)("object","null",n);var r=t.billing_details,o=(0,a.Z)(t,["billing_details"]);return(0,s.x4)({paymentMethodData:{type:"".concat(e),billing_details:r},otherParams:o})}},g=function(e){return function(t,n){if("object"!=typeof t)return(0,s.RH)("object",typeof t,n);if(null===t)return(0,s.RH)("object","null",n);var o=t.clientSecret,i=t.params,c=(0,a.Z)(t,["clientSecret","params"]),u=(0,s.ld)(e,o,n.label,{path:["clientSecret"]});if("error"===u.type)return u;if("object"!=typeof i)return(0,s.RH)("object",typeof i,(0,s.NQ)(n,"params"));if(null===i)return(0,s.RH)("object","null",(0,s.NQ)(n,"params"));var l=i.payment_method_type,p=i.payment_method_data;return"string"!=typeof l?(0,s.RH)("string",typeof l,(0,s.NQ)((0,s.NQ)(n,"params"),"payment_method_type")):"object"!=typeof p&&void 0!==p?(0,s.RH)("object",typeof p,(0,s.NQ)((0,s.NQ)(n,"params"),"payment_method_data")):(0,s.x4)({clientSecret:u.value,paymentMethodData:(0,r.Z)({type:l},(null==p?void 0:p.billing_details)&&{billing_details:null==p?void 0:p.billing_details}),otherParams:c})}},b=function(e,t){return function(n,i){if(void 0===n)return(0,s.x4)({paymentMethodData:null,paymentMethodOptions:null,source:null,paymentMethod:null,otherParams:{}});if("object"!=typeof n)return(0,s.RH)("object",typeof n,i);if(null===n)return(0,s.RH)("object","null",i);var l=n.source,p=n.source_data,d=n.payment_method_data,m=n.payment_method_options,f=n.payment_method,h=(0,a.Z)(n,["source","source_data","payment_method_data","payment_method_options","payment_method"]);if(null!=p)throw new c.No("".concat(t,": Expected payment_method, or source, not source_data."));if(null!=d)throw new c.No("".concat(t,": Expected payment_method, or source, not payment_method_data."));if(null!=l&&null!=f)throw new c.No("".concat(t,": Expected either payment_method or source, but not both."));if(null===e&&null!=f&&"string"!=typeof f)throw new c.No("".concat(t,": Expected payment_method[type] to be set if payment_method is passed."));if(null!=l){if("string"!=typeof l)return(0,s.RH)("string",typeof l,(0,s.NQ)(i,"source"));if("updatePaymentIntent"===t)throw new c.No("".concat(t,": Expected payment_method, not source to be passed."));return(0,s.x4)({source:l,paymentMethodData:null,paymentMethodOptions:null,paymentMethod:null,otherParams:h})}if(null!=f&&"string"!=typeof f&&"object"!=typeof f)return(0,s.RH)("string or object",typeof f,(0,s.NQ)(i,"payment_method"));var y,v=(0,s.ld)((y=e,function(e,t){if(null==e)return(0,s.x4)(null);if("object"!=typeof e)return(0,s.RH)("object",typeof e,t);var n=e.card,o=(0,a.Z)(e,["card"]);if(!n||"object"!=typeof n)return(0,s.x4)(e);var i=n.cvc,c=(0,a.Z)(n,["cvc"]);if(null==i)return(0,s.x4)(e);var l=(0,s.rX)(i),p=l?l._componentName:"";return u.Yj.cardCvc!==p?(0,s.RH)("`".concat(u.Yj.cardCvc,"` Element"),p?"`".concat(p,"` Element"):typeof i,(0,s.NQ)(t,"".concat(y||"card",".cvc"))):(0,s.x4)((0,r.Z)((0,r.Z)({},o),{},{card:(0,r.Z)((0,r.Z)({},c),{},{cvc:l})}))}),m,t,{path:[].concat((0,o.Z)(i.path),["payment_method_options"])});if("error"===v.type)return v;if("string"==typeof f)return(0,s.x4)({source:null,paymentMethodData:null,paymentMethodOptions:v.value,paymentMethod:f,otherParams:h});if("object"==typeof f&&null!==f){var g=(0,s.ld)(_(e),f,t,{path:[].concat((0,o.Z)(i.path),["payment_method"])});if("error"===g.type)return g;var b=g.value;return(0,s.x4)({source:null,paymentMethod:null,paymentMethodOptions:v.value,paymentMethodData:b,otherParams:h})}return(0,s.x4)({source:null,paymentMethodData:null,paymentMethodOptions:null,paymentMethod:null,otherParams:h})}},w=function(e,t){if(null===e)return(0,s.RH)("object","null",t);if("object"!=typeof e)return(0,s.RH)("object",typeof e,t);var n=e.type;if("string"!=typeof n)return(0,s.RH)("a string such as 'use_stripe_sdk', 'redirect_to_url'",typeof n,(0,s.NQ)(t,"type"));if("use_stripe_sdk"!==n)return(0,s.RH)("a 3DS2 NextAction type such as 'use_stripe_sdk'",n,(0,s.NQ)(t,"type"));var r=e.use_stripe_sdk;if("object"!=typeof r)return(0,s.RH)("an object",r,(0,s.NQ)(t,"type"));var o=e;return(0,s.x4)(o,[])}},6042:function(e,t,n){"use strict";n.d(t,{G:function(){return i},q:function(){return o}});var r=n(755),o=function(e,t){var n=e.createLightboxFrame({type:r.NC.LIGHTBOX_APP,options:t});return n.show(),n._on("nested-frame-loaded",(function(){n.fadeInBackdrop(),setTimeout((function(){n.action.openLightboxFrame()}),200)})),n},i=function(e){return e.action.closeLightboxFrame(),e.destroy()}},7490:function(e,t,n){"use strict";n.d(t,{Nj:function(){return o.Nj},jR:function(){return o.jR},ud:function(){return r.ud},vS:function(){return r.vS}});var r=n(6093),o=n(2478)},2478:function(e,t,n){"use strict";n.d(t,{Nj:function(){return l},jR:function(){return u}});var r=n(9776),o=n(7792),i=n(758),a=n(6093),c={"es-HN":"es-419","es-MX":"es-419","es-US":"es-419"},s=function(e){try{var t=(0,i.N)(e),n=t.locale,r=t.language,o=[n];return c[n]&&o.push(c[n]),n!==r&&o.push(r),o.push(a.vS),o}catch(t){return[e,a.vS]}},u=function(e){return function(e){for(var t=s(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}});var o=n(3366)},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";function r(e,t){if(t&&("object"===(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}n.d(t,{Z:function(){return r}});var o=n(1002),i=n(7326)},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},3324:function(e,t,n){"use strict";function r(e,t){return(0,o.Z)(e)||(0,i.Z)(e,t)||(0,a.Z)(e,t)||(0,c.Z)()}n.d(t,{Z:function(){return r}});var o=n(3878),i=n(1902),a=n(181),c=n(5267)},9062:function(e,t,n){"use strict";function r(e){return(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)(e)||(0,c.Z)()}n.d(t,{Z:function(){return r}});var o=n(5057),i=n(9199),a=n(181),c=n(2786)},9142:function(e,t,n){"use strict";function r(e){var t=function(e,t){if("object"!==(0,o.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,o.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,o.Z)(t)?t:String(t)}n.d(t,{Z:function(){return r}});var o=n(1002)},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";function r(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(e,t):void 0}}n.d(t,{Z:function(){return r}});var o=n(907)},7112:function(e,t,n){"use strict";function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){function n(){return(0,c.Z)(e,arguments,(0,o.Z)(this).constructor)}if(null===e||!(0,a.Z)(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(n,e)},r(e)}n.d(t,{Z:function(){return r}});var o=n(1120),i=n(9611),a=n(8989),c=n(5647)}},o={};e.m=r,e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.f={},e.e=function(t){return Promise.all(Object.keys(e.f).reduce((function(n,r){return e.f[r](t,n),n}),[]))},e.u=function(e){return"fingerprinted/js/"+{1:"elements-affirm-modal",209:"elements-affirm-message",259:"elements-afterpay-clearpay-modal",404:"orders-outer",428:"payment-intent-outer-actions-cardimageverification",578:"elements-afterpay-clearpay-message",631:"elements-payment-method-messaging",870:"elements-payment-method-messaging-modal",913:"trusted-types-checker",944:"phone-numbers-lib"}[e]+"-"+{1:"1504e5f8be73cf0cc4d2699cdfd258d5",209:"64d94352f15bf9c66e992c1e40d34bab",259:"ad53846e9bad2fa20b1e7ee0e40e6236",404:"beb79b33ff2fdb5a0a6b7843c9296f2d",428:"dce6c58d9f23152c9ed222f2230da23a",578:"8eb27977c63534fdd93b826ae3f9f8c9",631:"b4183ec7b8babe77aca22c15632e22a3",870:"d81b83e34b9890975a6f72048c6f8c5d",913:"239db17d86d6320632b024ca9e43ba9c",944:"b7d461c3d08b0c66b6bc9e1f40673d30"}[e]+".js"},e.miniCssF=function(){},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},n="stripe-js-v3:",e.l=function(r,o,i){if(t[r])t[r].push(o);else{var a,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),u=0;u