!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="56262cf0-4c77-4809-9b7f-c3538689bd49",e._sentryDebugIdIdentifier="sentry-dbid-56262cf0-4c77-4809-9b7f-c3538689bd49")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="56262cf0-4c77-4809-9b7f-c3538689bd49",e._sentryDebugIdIdentifier="sentry-dbid-56262cf0-4c77-4809-9b7f-c3538689bd49")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:vfi":!0});var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5e1df68198371234044a373e01abbaf0b93f8cfc"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7134],{8936:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(45987),o=r(87462),i=r(67294);r(45697);var s=r(86010),a=r(59693),c=r(1591),u=r(79895),l=r(594),p=(0,l.Z)(i.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),d=(0,l.Z)(i.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),f=(0,l.Z)(i.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),_=(0,l.Z)(i.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),h=r(17694),m=r(17812),y=r(93871),b={success:i.createElement(p,{fontSize:"inherit"}),warning:i.createElement(d,{fontSize:"inherit"}),error:i.createElement(f,{fontSize:"inherit"}),info:i.createElement(_,{fontSize:"inherit"})},E=i.createElement(h.Z,{fontSize:"small"}),v=i.forwardRef(function(e,t){var r=e.action,a=e.children,c=e.classes,l=e.className,p=e.closeText,d=void 0===p?"Close":p,f=e.color,_=e.icon,h=e.iconMapping,v=e.onClose,g=e.role,A=e.severity,w=void 0===A?"success":A,T=e.variant,O=(0,n.Z)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return i.createElement(u.Z,(0,o.Z)({role:void 0===g?"alert":g,square:!0,elevation:0,className:(0,s.Z)(c.root,c["".concat(void 0===T?"standard":T).concat((0,y.Z)(f||w))],l),ref:t},O),!1!==_?i.createElement("div",{className:c.icon},_||(void 0===h?b:h)[w]||b[w]):null,i.createElement("div",{className:c.message},a),null!=r?i.createElement("div",{className:c.action},r):null,null==r&&v?i.createElement("div",{className:c.action},i.createElement(m.Z,{size:"small","aria-label":d,title:d,color:"inherit",onClick:v},E)):null)}),g=(0,c.Z)(function(e){var t="light"===e.palette.type?a._j:a.$n,r="light"===e.palette.type?a.$n:a._j;return{root:(0,o.Z)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:r(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:r(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:r(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:r(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},{name:"MuiAlert"})(v)},22516:function(e){e.exports=(function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){if(i)return i(s,!0);var c=Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return o(t[s][1][e]||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var i=void 0,s=0;s<n.length;s++)o(n[s]);return o})({1:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.PromiseGlobal=void 0;var o=n(e("promise-polyfill")),i="undefined"!=typeof Promise?Promise:o.default;r.PromiseGlobal=i},{"promise-polyfill":47}],2:[function(e,t,r){"use strict";var n=e("./lib/promise"),o={};function i(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var i=document.createElement("script"),s=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.crossorigin&&i.setAttribute("crossorigin",""+e.crossorigin),Object.keys(s).forEach(function(e){i.setAttribute("data-"+e,""+s[e])}),t=new n.PromiseGlobal(function(t,r){i.addEventListener("load",function(){t(i)}),i.addEventListener("error",function(){r(Error(e.src+" failed to load."))}),i.addEventListener("abort",function(){r(Error(e.src+" has aborted."))}),a.appendChild(i)}),o[r]=t,t}i.clearCache=function(){o={}},t.exports=i},{"./lib/promise":1}],3:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":2}],4:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Android/.test(e)}},{}],5:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),i=e("./is-duckduckgo"),s=e("./is-opera"),a=e("./is-silk");t.exports=function(e){return(-1!==(e=e||window.navigator.userAgent).indexOf("Chrome")||-1!==e.indexOf("CriOS"))&&!n(e)&&!o(e)&&!i(e)&&!s(e)&&!a(e)}},{"./is-duckduckgo":6,"./is-edge":7,"./is-opera":15,"./is-samsung":16,"./is-silk":17}],6:[function(e,t,r){"use strict";t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("Edge/")}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ie11");t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("MSIE")||n(e)}},{"./is-ie11":9}],9:[function(e,t,r){"use strict";t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("Trident/7")}},{}],10:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],11:[function(e,t,r){"use strict";var n=e("./is-ios");t.exports=function(e){var t;return n(e=e||window.navigator.userAgent)&&(t=e,/\bGSA\b/.test(t))}},{"./is-ios":14}],12:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return!!n(e=e||window.navigator.userAgent)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/.test(e))}},{"./is-ios":14,"./is-ios-google-search-app":11}],13:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":12}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/iPhone|iPod|iPad/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],16:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],17:[function(e,t,r){"use strict";t.exports=function(e){return -1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],18:[function(e,t,r){"use strict";var n=e("./is-android"),o=e("./is-ios-firefox"),i=e("./is-ios-webview"),s=e("./is-chrome"),a=e("./is-samsung"),c=e("./is-duckduckgo");function u(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}t.exports=function(e){var t,r,l;return!(i(e=e||window.navigator.userAgent)||o(e)||n(t=(t=e)||window.navigator.userAgent)&&/Version\/[\d.]+/.test(t)&&!u(t)&&!c(t)||u(e)||(r=(e||window.navigator.userAgent).match(/CriOS\/(\d+)\./))&&48>parseInt(r[1],10)||!s(l=e)&&!a(l)&&/samsung/i.test(l))}},{"./is-android":4,"./is-chrome":5,"./is-duckduckgo":6,"./is-ios-firefox":10,"./is-ios-webview":12,"./is-samsung":16}],19:[function(e,t,r){t.exports=e("./dist/is-ie")},{"./dist/is-ie":8}],20:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":13}],21:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":14}],22:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":18}],23:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;if("function"==typeof t){this._promise=new e.Promise(t);return}this._promise=new e.Promise(function(e,t){r._resolveFunction=e,r._rejectFunction=t}),t=t||{},this._onResolve=t.onResolve||e.defaultOnResolve,this._onReject=t.onReject||e.defaultOnReject,e.shouldCatchExceptions(t)&&this._promise.catch(function(){}),this._resetState()}return e.defaultOnResolve=function(t){return e.Promise.resolve(t)},e.defaultOnReject=function(t){return e.Promise.reject(t)},e.setPromise=function(t){e.Promise=t},e.shouldCatchExceptions=function(t){return t.hasOwnProperty("suppressUnhandledPromiseMessage")?!!t.suppressUnhandledPromiseMessage:!!e.suppressUnhandledPromiseMessage},e.all=function(t){return e.Promise.all(t)},e.allSettled=function(t){return e.Promise.allSettled(t)},e.race=function(t){return e.Promise.race(t)},e.reject=function(t){return e.Promise.reject(t)},e.resolve=function(t){return e.Promise.resolve(t)},e.prototype.then=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).catch.apply(e,t)},e.prototype.resolve=function(t){var r=this;return this.isFulfilled||(this._setResolved(),e.Promise.resolve().then(function(){return r._onResolve(t)}).then(function(e){r._resolveFunction(e)}).catch(function(e){r._resetState(),r.reject(e)})),this},e.prototype.reject=function(t){var r=this;return this.isFulfilled||(this._setRejected(),e.Promise.resolve().then(function(){return r._onReject(t)}).then(function(e){r._setResolved(),r._resolveFunction(e)}).catch(function(e){return r._rejectFunction(e)})),this},e.prototype._resetState=function(){this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1},e.prototype._setResolved=function(){this.isFulfilled=!0,this.isResolved=!0,this.isRejected=!1},e.prototype._setRejected=function(){this.isFulfilled=!0,this.isResolved=!1,this.isRejected=!0},e.Promise=n,e}();t.exports=o},{}],24:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),i=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var t=document.createElement("iframe"),r=i.assign({},o.defaultAttributes,e);return r.style&&"string"!=typeof r.style&&(i.assign(t.style,r.style),delete r.style),n.setAttributes(t,r),t.getAttribute("id")||(t.id=t.name),t}},{"./lib/assign":25,"./lib/default-attributes":26,"./lib/set-attributes":27}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){"object"==typeof t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}},{}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultAttributes=void 0,r.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=function(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];null==n?e.removeAttribute(r):e.setAttribute(r,n)}}},{}],28:[function(e,t,r){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},{}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(e){var t=!1;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t||(t=!0,e.apply(void 0,r))}}},{}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}},{}],32:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),i=e("./lib/promise-or-callback");function s(e){return function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),i.promiseOrCallback(e.apply(this,r),t)}}s.wrapPrototype=function(e,t){void 0===t&&(t={});var r=t.ignoreMethods||[],n=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var o,i="constructor"!==t&&"function"==typeof e.prototype[t],s=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),i&&o&&s}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=s(r)}),e},t.exports=s},{"./lib/deferred":29,"./lib/once":30,"./lib/promise-or-callback":31}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib/is-not-string"),o=e("./lib/subscription-args-invalid"),i=e("./lib/broadcast"),s=e("./lib/package-payload"),a=e("./lib/constants"),c="undefined"!=typeof window&&window.Promise,u=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.isDestroyed=!1,this.listeners=[]}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(a.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,r){if(this.isDestroyed)return!1;var o=this.origin;if(e=this.namespaceEvent(e),n.isntString(e)||n.isntString(o))return!1;"function"==typeof t&&(r=t,t=void 0);var a=s.packagePayload(e,o,t,r);return!!a&&(i.broadcast(window.top||window.self,a,o),!0)},e.prototype.emitAsPromise=function(t,r){var n=this;return new e.Promise(function(e,o){n.emit(t,r,function(t){e(t)})||o(Error('Listener not added for "'+t+'"'))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,n=this.origin,i=t;return e=this.namespaceEvent(e),!o.subscriptionArgsInvalid(e,i,n)&&(this.verifyDomain&&(i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.checkOrigin(this&&this.origin)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:i,originalHandler:t}),a.subscribers[n]=a.subscribers[n]||{},a.subscribers[n][e]=a.subscribers[n][e]||[],a.subscribers[n][e].push(i),!0)},e.prototype.off=function(e,t){var r=t;if(this.isDestroyed)return!1;if(this.verifyDomain)for(var n=0;n<this.listeners.length;n++){var i=this.listeners[n];i.originalHandler===t&&(r=i.handler)}e=this.namespaceEvent(e);var s=this.origin;if(o.subscriptionArgsInvalid(e,r,s))return!1;var c=a.subscribers[s]&&a.subscribers[s][e];if(!c)return!1;for(var n=0;n<c.length;n++)if(c[n]===r)return c.splice(n,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var e=0;e<this.listeners.length;e++){var t=this.listeners[e];this.off(t.eventName,t.handler)}this.listeners.length=0}},e.prototype.checkOrigin=function(e){var t,r=document.createElement("a");return r.href=location.href,t="https:"===r.protocol?r.host.replace(/:443$/,""):"http:"===r.protocol?r.host.replace(/:80$/,""):r.host,r.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?this.channel+":"+e:e},e.Promise=c,e}();r.Framebus=u},{"./lib/broadcast":37,"./lib/constants":38,"./lib/is-not-string":41,"./lib/package-payload":43,"./lib/subscription-args-invalid":45}],34:[function(e,t,r){"use strict";var n=e("./lib/attach"),o=e("./framebus");n.attach(),t.exports=o.Framebus},{"./framebus":33,"./lib/attach":35}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./message"),o=!1;r.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onmessage,!1))},r.detach=function(){o=!1,window.removeEventListener("message",n.onmessage,!1)}},{"./message":42}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./broadcast"),o=e("./constants");r.broadcastToChildWindows=function(e,t,r){for(var i=o.childWindows.length-1;i>=0;i--){var s=o.childWindows[i];s.closed?o.childWindows.splice(i,1):r!==s&&n.broadcast(s.top,e,t)}}},{"./broadcast":37,"./constants":38}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./has-opener");r.broadcast=function e(t,r,o){var i,s=0;try{for(t.postMessage(r,o),n.hasOpener(t)&&t.opener.top!==window.top&&e(t.opener.top,r,o);i=t.frames[s];)e(i,r,o),s++}catch(e){}}},{"./has-opener":40}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribers=r.childWindows=r.prefix=void 0,r.prefix="/*framebus*/",r.childWindows=[],r.subscribers={}},{}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./constants");r.dispatch=function(e,t,r,o,i){if(n.subscribers[e]&&n.subscribers[e][t]){var s=[];r&&s.push(r),o&&s.push(o);for(var a=0;a<n.subscribers[e][t].length;a++)n.subscribers[e][t][a].apply(i,s)}}},{"./constants":38}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=function(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}},{}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=function(e){return"string"!=typeof e}},{}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onmessage=void 0;var n=e("./is-not-string"),o=e("./unpack-payload"),i=e("./dispatch"),s=e("./broadcast-to-child-windows");r.onmessage=function(e){if(!n.isntString(e.data)){var t=o.unpackPayload(e);if(t){var r=t.eventData,a=t.reply;i.dispatch("*",t.event,r,a,e),i.dispatch(e.origin,t.event,r,a,e),s.broadcastToChildWindows(e.data,t.origin,e.source)}}}},{"./broadcast-to-child-windows":36,"./dispatch":39,"./is-not-string":41,"./unpack-payload":46}],43:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./subscribe-replier"),o=e("./constants");r.packagePayload=function(e,t,r,i){var s,a={event:e,origin:t};"function"==typeof i&&(a.reply=n.subscribeReplier(i,t)),a.eventData=r;try{s=o.prefix+JSON.stringify(a)}catch(e){throw Error("Could not stringify event: "+e.message)}return s}},{"./constants":38,"./subscribe-replier":44}],44:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeReplier=void 0;var o=e("../framebus"),i=n(e("@braintree/uuid"));r.subscribeReplier=function(e,t){var r=i.default();return o.Framebus.target({origin:t}).on(r,function n(i,s){e(i,s),o.Framebus.target({origin:t}).off(r,n)}),r}},{"../framebus":33,"@braintree/uuid":28}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./is-not-string");r.subscriptionArgsInvalid=function(e,t,r){return!!n.isntString(e)||"function"!=typeof t||n.isntString(r)}},{"./is-not-string":41}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./constants"),o=e("./package-payload");r.unpackPayload=function(e){var t;if(e.data.slice(0,n.prefix.length)!==n.prefix)return!1;try{t=JSON.parse(e.data.slice(n.prefix.length))}catch(e){return!1}if(t.reply){var r=e.origin,i=e.source,s=t.reply;t.reply=function(e){if(i){var t=o.packagePayload(s,r,e);t&&i.postMessage(t,r)}}}return t}},{"./constants":38,"./package-payload":43}],47:[function(e,t,r){"use strict";var n=setTimeout,o="undefined"!=typeof setImmediate?setImmediate:null;function i(e){return!!(e&&void 0!==e.length)}function s(){}function a(e){if(!(this instanceof a))throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function c(e,t){for(;3===e._state;)e=e._value;if(0===e._state){e._deferreds.push(t);return}e._handled=!0,a._immediateFn(function(){var r,n=1===e._state?t.onFulfilled:t.onRejected;if(null===n){(1===e._state?u:l)(t.promise,e._value);return}try{r=n(e._value)}catch(e){l(t.promise,e);return}u(t.promise,r)})}function u(e,t){try{if(t===e)throw TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof a){e._state=3,e._value=t,p(e);return}if("function"==typeof r){f(function(){r.apply(t,arguments)},e);return}}e._state=1,e._value=t,p(e)}catch(t){l(e,t)}}function l(e,t){e._state=2,e._value=t,p(e)}function p(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)c(e,e._deferreds[t]);e._deferreds=null}function d(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function f(e,t){var r=!1;try{e(function(e){r||(r=!0,u(t,e))},function(e){r||(r=!0,l(t,e))})}catch(e){if(r)return;r=!0,l(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var r=new this.constructor(s);return c(this,new d(e,t,r)),r},a.prototype.finally=function(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})},a.all=function(e){return new a(function(t,r){if(!i(e))return r(TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);for(var o=n.length,s=0;s<n.length;s++)!function e(i,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a){a.call(s,function(t){e(i,t)},r);return}}n[i]=s,0==--o&&t(n)}catch(e){r(e)}}(s,n[s])})},a.allSettled=function(e){return new this(function(t,r){if(!(e&&void 0!==e.length))return r(TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);for(var o=n.length,i=0;i<n.length;i++)!function e(r,i){if(i&&("object"==typeof i||"function"==typeof i)){var s=i.then;if("function"==typeof s){s.call(i,function(t){e(r,t)},function(e){n[r]={status:"rejected",reason:e},0==--o&&t(n)});return}}n[r]={status:"fulfilled",value:i},0==--o&&t(n)}(i,n[i])})},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a(function(t){t(e)})},a.reject=function(e){return new a(function(t,r){r(e)})},a.race=function(e){return new a(function(t,r){if(!i(e))return r(TypeError("Promise.race accepts an array"));for(var n=0,o=e.length;n<o;n++)a.resolve(e[n]).then(t,r)})},a._immediateFn="function"==typeof o&&function(e){o(e)}||function(e){n(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.exports=a},{}],48:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),i=e("./constants");t.exports=function(e,t){var r,s=t?o(t):{},a=n(e.authorization).attrs,c=o(e.analyticsMetadata);for(r in s.braintreeLibraryVersion=i.BRAINTREE_LIBRARY_VERSION,s._meta)s._meta.hasOwnProperty(r)&&(c[r]=s._meta[r]);return s._meta=c,a.tokenizationKey?s.tokenizationKey=a.tokenizationKey:s.authorizationFingerprint=a.authorizationFingerprint,s}},{"./constants":54,"./create-authorization-data":58,"./json-clone":74}],49:[function(e,t,r){"use strict";var n=e("./promise"),o=e("./constants"),i=e("./add-metadata");t.exports={sendEvent:function(e,t,r){var s=Date.now();return n.resolve(e).then(function(e){var n=Date.now(),a=e.getConfiguration();(0,e._request)({url:a.gatewayConfiguration.analytics.url,method:"post",data:i(a,{analytics:[{kind:o.ANALYTICS_PREFIX+t,isAsync:Math.floor(n/1e3)!==Math.floor(s/1e3),timestamp:s}]}),timeout:o.ANALYTICS_REQUEST_TIMEOUT_MS},r)}).catch(function(e){r&&r(e)})}}},{"./add-metadata":48,"./constants":54,"./promise":76}],50:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script");t.exports={loadScript:n}},{"@braintree/asset-loader/load-script":3}],51:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var t,r,n;for(t=1;t<arguments.length;t++)for(n in r=arguments[t])r.hasOwnProperty(n)&&(e[n]=r[n]);return e}t.exports={assign:n,_assign:o}},{}],52:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./promise"),i=e("./errors"),s="3.85.2";t.exports={verify:function(e){var t,r,a;return e?(a=e.name,t=e.client,r=e.authorization,t||r)?r||t.getVersion()===s?o.resolve():o.reject(new n({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version "+s+") components must be from the same SDK version."})):o.reject(new n({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."})):o.reject(new n({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":53,"./errors":61,"./promise":76}],53:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw Error(e.type+" is not a valid type.");if(!e.code)throw Error("Error code required.");if(!e.message)throw Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":60}],54:[function(e,t,r){"use strict";var n="3.85.2";t.exports={ANALYTICS_PREFIX:"web.",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:"web",BRAINTREE_LIBRARY_VERSION:"braintree/web/"+n}},{}],55:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":53,"./errors":61}],56:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports=function(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":53}],57:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;t.exports={create:function(e){return n.production}}},{"./constants":54}],58:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,r,i,s,a={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(r=(t=e.split("_"))[0],s={merchantId:t.slice(2).join("_"),environment:r},a.environment=s.environment,a.attrs.tokenizationKey=e,a.configUrl=o[s.environment]+"/merchants/"+s.merchantId+"/client_api/v1/configuration"):(i=JSON.parse(n(e)),a.environment=i.environment,a.attrs.authorizationFingerprint=i.authorizationFingerprint,a.configUrl=i.configUrl,a.graphQL=i.graphQL),a}},{"../lib/constants":54,"../lib/vendor/polyfill":79}],59:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./promise"),i=e("./assets"),s=e("./errors"),a="3.85.2";t.exports={create:function(e){var t=o.resolve();return e.client?o.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+"/web/"+a+"/js/client.min.js"}).catch(function(e){return o.reject(new n({type:s.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:s.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:s.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==a?o.reject(new n({type:s.INCOMPATIBLE_VERSIONS.type,code:s.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+a+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}}},{"./assets":50,"./braintree-error":53,"./errors":61,"./promise":76}],60:[function(e,t,r){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}},{}],61:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:n.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:n.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:n.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:n.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"}}},{"./braintree-error":53}],62:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),i=e("./strategies/modal"),s=e("framebus"),a=e("../shared/events"),c=e("../shared/errors"),u=e("../shared/constants"),l=e("@braintree/uuid"),p=e("@braintree/iframer"),d=e("../../braintree-error"),f=e("../shared/browser-detection"),_=e("../../is-https"),h=e("./../../assign").assign,m=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,y=["name","dispatchFrameUrl","openFrameUrl"];function b(){}function E(e){(function(e){if(!e)throw Error("Valid configuration is required");if(y.forEach(function(t){if(!e.hasOwnProperty(t))throw Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw Error("A valid frame name must be provided")})(e),this._serviceId=l().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new s({channel:this._serviceId}),this._setBusEvents()}E.prototype.initialize=function(e){var t=(function(){e(),this._bus.off(a.DISPATCH_FRAME_READY,t)}).bind(this);this._bus.on(a.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},E.prototype._writeDispatchFrame=function(){var e=u.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=p({"aria-hidden":!0,name:e,title:e,src:t,class:u.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},E.prototype._setBusEvents=function(){this._bus.on(a.DISPATCH_FRAME_REPORT,(function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}).bind(this)),this._bus.on(m,(function(e){e(this.state)}).bind(this))},E.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(h(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed()){this._cleanupFrame(),t&&t(new d(f.isIE()&&!_.isHTTPS()?c.FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG:c.FRAME_SERVICE_FRAME_OPEN_FAILED));return}this._pollForPopupClose()}},E.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},E.prototype.close=function(){this.isFrameClosed()||this._frame.close()},E.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},E.prototype.createHandler=function(e){return e=e||{},{close:(function(){e.beforeClose&&e.beforeClose(),this.close()}).bind(this),focus:(function(){e.beforeFocus&&e.beforeFocus(),this.focus()}).bind(this)}},E.prototype.createNoopHandler=function(){return{close:b,focus:b}},E.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},E.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},E.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},E.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval((function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new d(c.FRAME_SERVICE_FRAME_CLOSED)))}).bind(this),u.POPUP_POLL_INTERVAL),this._popupInterval},E.prototype._getFrameForEnvironment=function(e){var t=f.supportsPopups(),r=!!window.popupBridge,s=h({},this._options,e);return r?new o(s):t?new n(s):new i(s)},t.exports=E},{"../../braintree-error":53,"../../constants":54,"../../is-https":73,"../shared/browser-detection":69,"../shared/constants":70,"../shared/errors":71,"../shared/events":72,"./../../assign":51,"./strategies/modal":64,"./strategies/popup":67,"./strategies/popup-bridge":65,"@braintree/iframer":24,"@braintree/uuid":28,framebus:34}],63:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":62}],64:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,i=e("../../shared/browser-detection"),s={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function a(){}function c(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}c.prototype.initialize=a,c.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},s),title:"Lightbox Frame"};i.isIos()?(i.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,s,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},c.prototype.focus=a,c.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,i.isIosWKWebview()&&this._unlockScrolling()},c.prototype.isClosed=function(){return!!this._closed},c.prototype.redirect=function(e){this._frame.src=e},c.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},c.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=c},{"../../../assign":51,"../../shared/browser-detection":69,"@braintree/iframer":24}],65:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function i(){}function s(e){this._closed=null,this._options=e}s.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,i){var s=!i&&!r;if(t._closed=!0,r||s){e(new n(o.FRAME_SERVICE_FRAME_CLOSED));return}e(null,i)}},s.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)},s.prototype.focus=i,s.prototype.close=i,s.prototype.isClosed=function(){return!!this._closed},s.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=s},{"../../../braintree-error":53,"../../shared/errors":71}],66:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function i(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=i("top",e.top,t),s=i("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+s].join(",")}},{"../../../shared/constants":70,"./position":68}],67:[function(e,t,r){"use strict";var n=e("./compose-options");function o(e){this._frame=null,this._options=e||{},this.open()}o.prototype.initialize=function(){},o.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},o.prototype.focus=function(){this._frame.focus()},o.prototype.close=function(){this._frame.closed||this._frame.close()},o.prototype.isClosed=function(){return!this._frame||!!this._frame.closed},o.prototype.redirect=function(e){this._frame.location.href=e},t.exports=o},{"./compose-options":66}],68:[function(e,t,r){"use strict";t.exports={top:function(e){var t;return((window.outerHeight||document.documentElement.clientHeight)-e)/2+(null==window.screenY?window.screenTop:window.screenY)},left:function(e){var t;return((window.outerWidth||document.documentElement.clientWidth)-e)/2+(null==window.screenX?window.screenLeft:window.screenX)},center:function(e,t,r){return(e-t)/2+r}}},{}],69:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),isIE:e("@braintree/browser-detection/is-ie"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ie":19,"@braintree/browser-detection/is-ios":21,"@braintree/browser-detection/is-ios-wkwebview":20,"@braintree/browser-detection/supports-popups":22}],70:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],71:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."},FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG",message:"Could not open frame. This may be due to a bug in IE browsers when attempting to open an HTTPS page from a HTTP page. https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11324352/"}}},{"../../braintree-error":53}],72:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":60}],73:[function(e,t,r){"use strict";t.exports={isHTTPS:function(e){return"https:"===(e=e||window.location.protocol)}}},{}],74:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],75:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],76:[function(e,t,r){"use strict";var n=e("promise-polyfill"),o=e("@braintree/extended-promise"),i="undefined"!=typeof Promise?Promise:n;o.suppressUnhandledPromiseMessage=!0,o.setPromise(i),t.exports=i},{"@braintree/extended-promise":23,"promise-polyfill":47}],77:[function(e,t,r){"use strict";function n(e){return e=e||window.location.href,/\?/.test(e)}function o(e,t){var r,n,i,s=[];for(i in e)e.hasOwnProperty(i)&&(n=e[i],r=t?e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)?t+"[]":t+"["+i+"]":i,"object"==typeof n?s.push(o(n,r)):s.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return s.join("&")}t.exports={parse:function(e){return n(e=e||window.location.href)?e.replace(/#.*$/,"").replace(/^.*\?/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}},stringify:o,queryify:function(e,t){return e=e||"",null!=t&&"object"==typeof t&&function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=(-1!==e.indexOf("=")?"&":"")+o(t)),e},hasQueryParams:n}},{}],78:[function(e,t,r){"use strict";t.exports=function(e){return e?"":".min"}},{}],79:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var t,r,n,o,i,s,a,c,u=RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p="";if(!u.test(e))throw Error("Non base64 encoded input passed to window.atob polyfill");c=0;do o=l.indexOf(e.charAt(c++)),i=l.indexOf(e.charAt(c++)),s=l.indexOf(e.charAt(c++)),a=l.indexOf(e.charAt(c++)),t=(63&o)<<2|i>>4&3,r=(15&i)<<4|s>>2&15,n=(3&s)<<6|63&a,p+=String.fromCharCode(t)+(r?String.fromCharCode(r):"")+(n?String.fromCharCode(n):"");while(c<e.length);return p}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],80:[function(e,t,r){"use strict";t.exports={REQUIRED_OPTIONS_FOR_START_PAYMENT:["onPaymentStart","paymentType","amount","fallback"]}},{}],81:[function(e,t,r){"use strict";var n=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),i=e("../../lib/use-min"),s=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,a=e("../../lib/analytics"),c=e("../../lib/methods"),u=e("../../lib/convert-methods-to-error"),l=e("../../lib/convert-to-braintree-error"),p=e("../../lib/promise"),d=e("@braintree/extended-promise"),f=e("../../lib/querystring"),_=e("@braintree/wrap-promise"),h=e("./constants"),m=e("../shared/errors");function y(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.assetsUrl+"/web/3.85.2",this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/local-payment-landing-frame"+i(this._isDebug)+".html",this._authorizationInProgress=!1,this._paymentType="unknown",this._merchantAccountId=e.merchantAccountId}y.prototype._initialize=function(){var e=this,t=this._client,r=setTimeout(function(){a.sendEvent(t,"local-payment.load.timed-out")},s);return new p(function(o){n.create({name:"localpaymentlandingpage",dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+i(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},function(n){e._frameService=n,clearTimeout(r),a.sendEvent(t,"local-payment.load.succeeded"),o(e)})})},y.prototype.startPayment=function(e){var t,r,n,s=this,c=this._frameService._serviceId,u=e.windowOptions||{};return!function(e){var t,r;if(!e)return!0;for(t=0;t<h.REQUIRED_OPTIONS_FOR_START_PAYMENT.length;t++)if(r=h.REQUIRED_OPTIONS_FOR_START_PAYMENT[t],!e.hasOwnProperty(r))return!0;return!e.fallback.url||!e.fallback.buttonText}(e)?(t=e.address||{},r={intent:"sale",returnUrl:f.queryify(s._assetsUrl+"/html/local-payment-redirect-frame"+i(s._isDebug)+".html",{channel:c,r:e.fallback.url,t:e.fallback.buttonText}),cancelUrl:f.queryify(s._assetsUrl+"/html/local-payment-redirect-frame"+i(s._isDebug)+".html",{channel:c,r:e.fallback.cancelUrl||e.fallback.url,t:e.fallback.cancelButtonText||e.fallback.buttonText,c:1}),experienceProfile:{brandName:e.displayName,noShipping:!e.shippingAddressRequired},fundingSource:e.paymentType,paymentTypeCountryCode:e.paymentTypeCountryCode,amount:e.amount,currencyIsoCode:e.currencyCode,firstName:e.givenName,lastName:e.surname,payerEmail:e.email,phone:e.phone,line1:t.streetAddress,line2:t.extendedAddress,city:t.locality,state:t.region,postalCode:t.postalCode,countryCode:t.countryCode,merchantAccountId:s._merchantAccountId,bic:e.bic},s._paymentType=e.paymentType.toLowerCase(),s._authorizationInProgress)?(a.sendEvent(s._client,s._paymentType+".local-payment.start-payment.error.already-opened"),p.reject(new o(m.LOCAL_PAYMENT_ALREADY_IN_PROGRESS))):(s._authorizationInProgress=!0,n=new d,s._startPaymentCallback=s._createStartPaymentCallback(function(e){n.resolve(e)},function(e){n.reject(e)}),s._frameService.open({width:u.width||1282,height:u.height||720},s._startPaymentCallback),s._client.request({method:"post",endpoint:"local_payments/create",data:r}).then(function(t){a.sendEvent(s._client,s._paymentType+".local-payment.start-payment.opened"),s._startPaymentOptions=e,e.onPaymentStart({paymentId:t.paymentResource.paymentToken},function(){s._frameService.redirect(t.paymentResource.redirectUrl)})}).catch(function(e){var t=e.details&&e.details.httpStatus;if(s._frameService.close(),s._authorizationInProgress=!1,422===t){n.reject(new o({type:m.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.type,code:m.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.code,message:m.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.message,details:{originalError:e}}));return}n.reject(l(e,{type:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.message}))}),n):p.reject(new o(m.LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION))},y.prototype.tokenize=function(e){var t=this,r=this._client;return(e=e||f.parse()).c||e.wasCanceled?p.reject(new o({type:m.LOCAL_PAYMENT_CANCELED.type,code:m.LOCAL_PAYMENT_CANCELED.code,message:m.LOCAL_PAYMENT_CANCELED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):e.errorcode?p.reject(new o({type:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:m.LOCAL_PAYMENT_START_PAYMENT_FAILED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e)}).then(function(e){var n=t._formatTokenizePayload(e);return window.popupBridge?a.sendEvent(r,t._paymentType+".local-payment.tokenization.success-popupbridge"):a.sendEvent(r,t._paymentType+".local-payment.tokenization.success"),n}).catch(function(e){return a.sendEvent(r,t._paymentType+".local-payment.tokenization.failed"),p.reject(l(e,{type:m.LOCAL_PAYMENT_TOKENIZATION_FAILED.type,code:m.LOCAL_PAYMENT_TOKENIZATION_FAILED.code,message:m.LOCAL_PAYMENT_TOKENIZATION_FAILED.message}))})},y.prototype.closeWindow=function(){this._authoriztionInProgress&&a.sendEvent(this._client,this._paymentType+".local-payment.start-payment.closed.by-merchant"),this._frameService.close()},y.prototype.focusWindow=function(){this._frameService.focus()},y.prototype._createStartPaymentCallback=function(e,t){var r=this,n=this._client;return function(i,s){if(r._authorizationInProgress=!1,i){if("FRAME_SERVICE_FRAME_CLOSED"===i.code){if(s&&"processing_error"===s.errorcode){a.sendEvent(n,r._paymentType+".local-payment.failed-in-window"),t(new o(m.LOCAL_PAYMENT_START_PAYMENT_FAILED));return}a.sendEvent(n,r._paymentType+".local-payment.tokenization.closed.by-user"),t(new o(m.LOCAL_PAYMENT_WINDOW_CLOSED))}else i.code&&i.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&t(new o({code:m.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.code,type:m.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.type,message:m.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.message,details:{originalError:i}}))}else s&&(window.popupBridge||r._frameService.redirect(r._loadingFrameUrl),r.tokenize(s).then(e).catch(t).then(function(){r._frameService.close()}))}},y.prototype._formatTokenizePayload=function(e){var t,r={};return e.paypalAccounts&&(r=e.paypalAccounts[0]),t={nonce:r.nonce,details:{},type:r.type},r.details&&(r.details.payerInfo&&(t.details=r.details.payerInfo),r.details.correlationId&&(t.correlationId=r.details.correlationId)),t},y.prototype.hasTokenizationParams=function(){var e=f.parse();return!!e.errorcode||!!(e.btLpToken&&e.btLpPaymentId&&e.btLpPayerId)},y.prototype._formatTokenizeData=function(e){var t=this._client.getConfiguration().gatewayConfiguration;return{merchantAccountId:this._merchantAccountId,paypalAccount:{correlationId:e.btLpToken||e.token,paymentToken:e.btLpPaymentId||e.paymentId,payerId:e.btLpPayerId||e.PayerID,unilateral:t.paypal.unvettedMerchant,intent:"sale"}}},y.prototype.teardown=function(){return this._frameService.teardown(),u(this,c(y.prototype)),a.sendEvent(this._client,"local-payment.teardown-completed"),p.resolve()},t.exports=_.wrapPrototype(y)},{"../../lib/analytics":49,"../../lib/braintree-error":53,"../../lib/constants":54,"../../lib/convert-methods-to-error":55,"../../lib/convert-to-braintree-error":56,"../../lib/frame-service/external":63,"../../lib/methods":75,"../../lib/promise":76,"../../lib/querystring":77,"../../lib/use-min":78,"../shared/errors":83,"./constants":80,"@braintree/extended-promise":23,"@braintree/wrap-promise":32}],82:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/basic-component-verification"),i=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),a=e("./external/local-payment"),c=e("../lib/promise"),u=e("@braintree/wrap-promise"),l=e("../lib/braintree-error"),p=e("./shared/errors");t.exports={create:u(function(e){var t="Local Payment";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return i.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:t})}).then(function(t){var r=t.getConfiguration();return(e.client=t,!0!==r.gatewayConfiguration.paypalEnabled)?c.reject(new l(p.LOCAL_PAYMENT_NOT_ENABLED)):(n.sendEvent(t,"local-payment.initialized"),new a(e)._initialize())})}),VERSION:"3.85.2"}},{"../lib/analytics":49,"../lib/basic-component-verification":52,"../lib/braintree-error":53,"../lib/create-assets-url":57,"../lib/create-deferred-client":59,"../lib/promise":76,"./external/local-payment":81,"./shared/errors":83,"@braintree/wrap-promise":32}],83:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={LOCAL_PAYMENT_NOT_ENABLED:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_NOT_ENABLED",message:"LocalPayment is not enabled for this merchant."},LOCAL_PAYMENT_ALREADY_IN_PROGRESS:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_ALREADY_IN_PROGRESS",message:"LocalPayment payment is already in progress."},LOCAL_PAYMENT_CANCELED:{type:n.types.CUSTOMER,code:"LOCAL_PAYMENT_CANCELED",message:"Customer canceled the LocalPayment before authorizing."},LOCAL_PAYMENT_WINDOW_CLOSED:{type:n.types.CUSTOMER,code:"LOCAL_PAYMENT_WINDOW_CLOSED",message:"Customer closed LocalPayment window before authorizing."},LOCAL_PAYMENT_WINDOW_OPEN_FAILED:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_WINDOW_OPEN_FAILED",message:"LocalPayment window failed to open; make sure startPayment was called in response to a user action."},LOCAL_PAYMENT_START_PAYMENT_FAILED:{type:n.types.NETWORK,code:"LOCAL_PAYMENT_START_PAYMENT_FAILED",message:"LocalPayment startPayment failed."},LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION",message:"Missing required option for startPayment."},LOCAL_PAYMENT_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"LOCAL_PAYMENT_TOKENIZATION_FAILED",message:"Could not tokenize user's local payment method."},LOCAL_PAYMENT_INVALID_PAYMENT_OPTION:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_INVALID_PAYMENT_OPTION",message:"Local payment options are invalid."}}},{"../../lib/braintree-error":53}]},{},[82])(82)}}]);