!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=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 q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(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 x(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 L(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=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function H(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 K(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){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 G(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 J(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 Q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function se(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var ce,le,pe,fe,de,he,ye=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),me=ye,_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absurd";throw new Error(t)},ve=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[]}},Fe=function(e){return{error:e,errorType:"full",type:"error"}},Be=function(e,t,n){var r=new me(xe(e,t,n));return Fe(r)},De=function(e,t,n){return{expected:e,actual:String(t),options:n,errorType:"mismatch",type:"error"}},ze=function(e){return function(t,n){return void 0===t?Le(t):e(t,n)}},Ue=function(e,t){return function(n,r){var o=e(n,r),i=t(n,r);if("error"===o.type&&"error"===i.type){if("mismatch"===o.errorType){if("mismatch"===i.errorType){var a=(o.options.path.join(".")||"value")+" should be "+o.expected,s=(i.options.path.join(".")||"value")+" should be "+i.expected,u=(o.options.path.join(".")||"value")+" as "+o.actual,c=(i.options.path.join(".")||"value")+" as "+i.actual;return Fe(new me("Invalid value for "+r.label+": "+(a===s?a:a+" or "+s)+". You specified "+(u===c?u:u+" and "+c)+"."))}return Fe(i.error)}return Fe(o.error)}return"valid"===o.type?o:i}},He=function(e,t){return function(n,r){return n instanceof e?Le(n):De("a "+t+" instance",n,r)}},We=function(e,t){return function(n,r){var o=ge(e,function(e){return e===n});if(void 0===o){var i=t?"a recognized string.":"one of the following strings: "+e.join(", ");return De(i,n,r)}return Le(o)}},Ke=function(e){return function(t,n){return"string"==typeof t&&0===t.indexOf(e)?Le(t):De("a string starting with "+e,t,n)}},Ye=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:null,n=lt(e);return!!n&&n.host!==(t||window.location.host)},ft=function(e,t){if("/"===t[0]){var n=lt(e);return n?""+n.origin+t:t}return""+e.replace(/\/[^\/]*$/,"/")+t},dt={CARD_ELEMENT:"CARD_ELEMENT",CONTROLLER:"CONTROLLER",METRICS_CONTROLLER:"METRICS_CONTROLLER",PAYMENT_REQUEST_ELEMENT:"PAYMENT_REQUEST_ELEMENT",PAYMENT_REQUEST:"PAYMENT_REQUEST",IBAN_ELEMENT:"IBAN_ELEMENT",IDEAL_BANK_ELEMENT:"IDEAL_BANK_ELEMENT",AUTHORIZE_WITH_URL:"AUTHORIZE_WITH_URL"},ht=dt,yt=function(e){return"https://js.stripe.com/v3/"+(e||"")},mt=function(e){switch(e){case"CARD_ELEMENT":return yt("elements-inner-card-fc20db3564c5c0261f09814b4a08f1d9.html");case"CONTROLLER":return yt("controller-3336a10cec1828e6c8870d5b19a3766f.html");case"METRICS_CONTROLLER":return"https://js.stripe.com/v2/m/outer.html";case"PAYMENT_REQUEST_ELEMENT":return yt("elements-inner-payment-request-e4a920cf8b95d075b2ab29caa5dd94a7.html");case"PAYMENT_REQUEST":return yt("payment-request-inner-a6bb330f94a024ae4d8c5f1087ed8373.html");case"IBAN_ELEMENT":return yt("elements-inner-iban-4925fb087a056a8a65fd9d2f21957d6e.html");case"IDEAL_BANK_ELEMENT":return yt("elements-inner-ideal-bank-528ddd691dbf76c47cc45402b09e547f.html");case"AUTHORIZE_WITH_URL":return yt("authorize-with-url-inner-86482450bafd2ce2cd71639089826b97.html");default:return _e(e)}},_t=mt,vt={card:"card",cardNumber:"cardNumber",cardExpiry:"cardExpiry",cardCvc:"cardCvc",postalCode:"postalCode",iban:"iban",idealBank:"idealBank",idealBankSecondary:"idealBankSecondary",paymentRequestButton:"paymentRequestButton"},bt=vt,gt=[bt.card,bt.cardNumber,bt.cardExpiry,bt.cardCvc,bt.postalCode],wt=gt,Et=lt("https://js.stripe.com/v3/"),St=Et?Et.origin:"",Ot={family:"font-family",src:"src",unicodeRange:"unicode-range",style:"font-style",variant:"font-variant",stretch:"font-stretch",weight:"font-weight",display:"font-display"},kt=Object.keys(Ot).reduce(function(e,t){return e[Ot[t]]=t,e},{}),Pt=[bt.idealBank,bt.idealBankSecondary],At=0,jt=function(e){return""+e+At++},Ct=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)},Tt="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},Rt=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":Tt(i))){var s=e(i,a);""!==s&&(r=[].concat(u(r),[s]))}else void 0!==i&&null!==i&&(r=[].concat(u(r),[a+"="+encodeURIComponent(String(i))]))}),r.join("&").replace(/%20/g,"+")},It=Rt,Mt=n(2),qt=n.n(Mt),Nt=window.Promise?Promise:qt.a,xt=Nt,Lt=n(6),Ft=n.n(Lt),Bt=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")}}(),Dt=function(e,t){var n={};t.forEach(function(e){var t=Bt(e,2),r=t[0],o=t[1];r.split(/\s+/).forEach(function(e){e&&(n[e]=n[e]||o)})}),e.className=Ft()(e.className,n)},zt=function(e,t){e.style.cssText=Object.keys(t).map(function(e){return e+": "+t[e]+" !important;"}).join(" ")},Ut=function(e){try{return window.parent.frames[e]}catch(e){return null}},Ht=Object.assign||function(e){for(var t=1;t1?n-1:0),o=1;o0},this._off=function(e,n){if(n){for(var r=t._callbacks[e],o=void 0,i=0;i element.");this.autoload&&(this.loaded=!0)}},{key:"_createIFrame",value:function(e){var n=on(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"),zt(n,an),n}}]),t}(nn),un=sn,cn=function(){function e(e,t){for(var n=0;n=0&&_n(e)},gn={capture:!0,passive:!1},wn=function(){return window.addEventListener("wheel",_n,gn),window.addEventListener("touchmove",_n,gn),window.addEventListener("keydown",bn),function(){window.removeEventListener("wheel",_n,gn),window.removeEventListener("touchmove",_n,gn),window.removeEventListener("keydown",bn)}},En=function(){function e(e,t){for(var n=0;n element.")},o._autoMount=function(){"complete"===document.readyState?o._mountAfterBody():(document.addEventListener("DOMContentLoaded",o._mountAfterBody),window.addEventListener("load",o._mountAfterBody))},o._tryRestoreBodyScroll=function(){o.restoreBodyScroll&&(o.restoreBodyScroll(),o.restoreBodyScroll=null)},o.show=function(){o.restoreBodyScroll=wn(),zt(o._iframe,Pn)},o.hide=function(){zt(o._iframe,kn),o._tryRestoreBodyScroll()},o.destroy=function(){o._tryRestoreBodyScroll(),Sn(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",o).call(o)},o.restoreBodyScroll=null,o._autoMount(),o}return k(t,e),En(t,[{key:"_createIFrame",value:function(e){var n=Sn(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createIFrame",this).call(this,e);return zt(n,kn),n}}]),t}(nn),jn=An,Cn=Object.assign||function(e){for(var t=1;t1&&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=0,o=e.getBoundingClientRect(),i=o.width>0&&o.height>0;n&&i&&r.push(e)});var o=we(r,function(t){return t===e||e.contains(t)});return r[o+("previous"===t?-1:1)]},jr=Ar,Cr="14px",Tr=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},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1.2em",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cr,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=Tr(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(Cr.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 u=o*s+r,c=u+"px";return/^[0-9.]+px$/.test(c)?c:"100%"},Ir=Rr,Mr=function(e,t){return e?window.getComputedStyle(e,t):null},qr=Mr,Nr=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;var e=window.PaymentRequest;return e.prototype.canMakePayment||(e.prototype.canMakePayment=function(){return xt.resolve(!1)}),e}(),xr={CAN_MAKE_PAYMENT:"CAN_MAKE_PAYMENT"},Lr=function(){try{return window.location.origin===window.top.location.origin}catch(e){return!1}},Fr=void 0,Br=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).then(function(e){return Fr&&Fr("payreq.can_make_payment_native_response",{available:e}),e})}),Dr=function(e,t,n,r){if(Fr=r,window.ApplePaySession){if(Lr()){if(n&&"https:"!==window.location.protocol)return window.console&&window.console.warn("To test Apple Pay, you must serve this page over HTTPS."),xt.resolve(!1);if(window.ApplePaySession.supportsVersion(2)){var o=t?[e,t]:[e],i="merchant."+o.join(".")+".stripe";return Br(i).then(function(r){if(n&&!r&&window.console){var o=t?"or stripeAccount parameter ("+t+") ":"";window.console.warn("Either you do not have a card saved to your Wallet or the current domain ("+e+") "+o+"is not registered for Apple Pay. Visit https://dashboard.stripe.com/account/apple_pay to register this domain.")}return r})}return n&&window.console&&window.console.warn("This version of Safari does not support ApplePay JS version 2."),xt.resolve(!1)}return xt.resolve(!1)}return xt.resolve(!1)},zr=null,Ur=function(e,t){return null!==zr?xt.resolve(zr):Nr?Gn?xt.resolve(!1):t&&"https:"!==window.location.protocol?(window.console&&window.console.warn("To test Payment Request, you must serve this page over HTTPS."),xt.resolve(!1)):e?e.action(xr.CAN_MAKE_PAYMENT).then(function(e){var t=e.available;return zr="boolean"==typeof t&&t}):xt.resolve(!1):xt.resolve(!1)},Hr=Object.assign||function(e){for(var t=1;t1&&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,u=i.padding,c="string"!=typeof a||isNaN(parseFloat(a))?void 0:a,l="string"==typeof s?s:void 0,p="string"==typeof u?u:void 0;if(l&&!ei(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||c||l){var f=-1===Pt.indexOf(this._componentName)?void 0:p||this._lastPadding,d=Ir(c||this._lastHeight,l||this._lastFontSize,f);this._frame.updateStyle({height:d}),this._lastFontSize=l||this._lastFontSize,this._lastHeight=c||this._lastHeight,this._lastPadding=f}}}},{key:"_createElement",value:function(e,t){var n=this,r=(e.classes,e.controller,e.paymentRequest,J(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.disabled=!0;var a=document.createElement("input");a.className="__PrivateStripeElement-safariInput",a.setAttribute("aria-hidden","true"),a.setAttribute("tabindex","-1"),zt(o,Qo),zt(i,Zo),zt(a,Zo);var s=qr(document.body),u=!!s&&"rtl"===s.getPropertyValue("direction"),c=Xn[t],l=Ko({},r,{rtl:u}),p=this._controller.createElementFrame(c,l);if(p._on("load",function(){i.disabled=!1}),i.addEventListener("focus",function(){p.focus()}),p.appendTo(o),rr[t]){var f=rr[t].secondary;this._secondaryFrame=this._createSecondFrame(c,f,Ko({},l,{primaryElementType:t})),this._secondaryFrame.appendTo(o),window.addEventListener("click",function(){return n._handleOutsideClick()})}o.appendChild(i),o.appendChild(a),this._component=o,this._frame=p,this._fakeInput=i}}]),t}(Zt),ni=function(){var e=this;this.mount=Vt(function(t){e._checkDestroyed();var n=void 0;if(!t)throw new me("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 me("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 me("Invalid DOM element. Make sure to call mount() with a valid DOM element or selector.");n=t}if("INPUT"===n.nodeName)throw new me("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._canMakePaymentCalled)throw new me("For paymentRequest Elements, you must first check the Payment Request API's\navailability using paymentRequest.canMakePayment() before mounting the Element.");if(!e._paymentRequest._cachedCanMakePayment)throw new me("The "+e._componentName+" Element is not available in the current environment.");e._mountToParent(n)}else e._mountToParent(n)}),this.update=Vt(function(t){e._checkDestroyed();var n=ut(Go,t||{},"element.update()"),r=n.value;if(n.warnings.forEach(function(t){return e._controller.warn(t)}),r){var o=r.classes,i=J(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=Vt(function(t){return e._checkDestroyed(),t&&t.preventDefault(),document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),e._fakeInput.focus(),e}),this.blur=Vt(function(){return e._checkDestroyed(),e._frame.blur(),e._fakeInput.blur(),e}),this.clear=Vt(function(){return e._checkDestroyed(),e._frame.clear(),e}),this.unmount=Vt(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=Vt(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)}}},ri=ti,oi=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];if("complete"===window.document.readyState)e();else{var n=!1,r=function(){n||(n=!0,e())};window.addEventListener("DOMContentLoaded",r),window.addEventListener("load",r),t&&setTimeout(r,5e3)}},di=fi,hi={payment_pages_beta_1:"payment_pages_beta_1",payment_intent_beta_1:"payment_intent_beta_1",payment_intent_beta_2:"payment_intent_beta_2",payment_intent_beta_3:"payment_intent_beta_3",acknowledge_ie9_deprecation:"acknowledge_ie9_deprecation"},yi=Object.keys(hi),mi=function(e,t){return e.indexOf(t)>=0},_i={card:"card",ideal:"ideal",sepa_debit:"sepa_debit",three_d_secure:"three_d_secure"},vi=(he={},re(he,bt.card,_i.card),re(he,bt.cardNumber,_i.card),re(he,bt.cardExpiry,_i.card),re(he,bt.cardCvc,_i.card),re(he,bt.postalCode,_i.card),re(he,bt.iban,_i.sepa_debit),re(he,bt.idealBank,_i.ideal),he),bi=function(e){return-1===wt.indexOf(e)},gi=function(e,t){return null!=t?t:bi(e)?null:vi[e]||null},wi=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 u=o||"/",c=(n||"").replace(/[^!#-+\--:<-[\]-~]/g,encodeURIComponent),l=encodeURIComponent(t)+"="+c+";expires="+a.toGMTString()+";path="+u;i&&(l+=";domain="+i),document.cookie=l},Ei=function(e){var t=ge(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},Si=function(){function e(e,t){for(var n=0;n=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:Fn(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 ki.MERCHANT:try{var t=Ei("__stripe_mid")||Ct();return wi({name:"__stripe_mid",value:t,domain:"."+document.location.hostname}),t}catch(e){return"NA"}case ki.SESSION:try{var n=Ei("__stripe_sid")||Ct();return wi({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}(),Ai=Pi,ji="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},Ci=Object.assign||function(e){for(var t=1;tc){for(var t=0,n=a.length-u;t