text: /*!
   * Modifications copyright (c) 2016 Daniel Shihoon Lee <daniel@shihoonlee.com>
   * Licensed under BSD2
   * (https://github.com/danieslee/angular-paypal-button/blob/master/LICENSE)
   */
  /*!
   * paypalincontextjs
   * @version 3.10.6
   * @timestamp 06-08-2016
   *
   * Copyright PayPal
   *
   * Licensed under the Apache License, Version 2.0
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * To debug, please use the unminified version of this script
   * at https://www.paypalobjects.com/api/checkout.src.js
   */
  var loadPaypal;!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";var r=n(2),o=n(3),i=n(4),a=n(5),s=n(6),c=n(7),u=n(9),l=n(10),d=n(14),p=n(15),f=n(17),m=n(19),h=n(11),g=n(20),w=n(26),E=n(13),b=n(27),y=n(18),v=n(28),O=n(29),_=n(30);n(31),loadPaypal=function(){var e=e||{};return window.paypal&&window.paypal.checkout&&(window.paypal=null,r.reset()),function(){function t(e){var t=window.PAYPAL||{};t.apps=t.apps||{},t.apps.Checkout=t.apps.Checkout||{};for(var n in e)t.apps.Checkout[n]=e[n];t.checkout=t.apps.Checkout,window.PAYPAL=window.paypal=t}e.checkout=function(){function n(e,t){var n,r=X.sandBox?o.SANDBOX_URL_ROOT:o.LIVE_URL_ROOT;if(X.log&&"object"==typeof e){e.merchantSite=document.domain,e.version=X.version,e.token=Q,e.guid=X.guid,e.oneTouchShowed=te.toString(),e.jsBtnConfig=Z,e.status+=Z.length>0?"_JS":"",e.status+=te?"_ONETOUCH":"",n=JSON.stringify(e),n=encodeURIComponent(n),r=r+"/webapps/"+(X.merchantConfig.app||"hermes")+"/api/log?event="+e.status+"&state=merchant_incontext&token="+(Q?Q:"undefined")+"&level="+(t?"error":"info")+"&cb="+Date.now()+"&msg="+n;var i=new Image;i.src=r,X.debug&&E(decodeURIComponent(n))}}function S(){var t=document.querySelectorAll("[data-paypal-button]"),r=document.querySelectorAll("[data-paypal-sandbox]"),o=document.querySelectorAll("[data-paypal-id]");if(t.length||r.length||o.length){var i=t.length?t:[],a=r.length?"sandbox":"production",s=o.length?o[0].getAttribute("data-paypal-id"):document.domain;e.checkout.setup(s,{environment:a,button:i}),n({status:"IC_CUSTOM_BUTTON_SCAN"})}}function T(e){H(X.name);var t=document.getElementById(X.name);if(K.heartbeat&&clearTimeout(K.heartbeat),!K.windowAccessCrash){if(X.lightboxOpened&&!X.popupOpened)return void f.destroy(K,X,function(){if(P(),$=!1,K.win&&K.win.close&&K.win.close(),X.returnUrl){if(n({status:"IC_DESTROY_TO_RETURN_URL"}),X.fromStartFlow&&$&&y(X),X.async)return void Y.emit("return",{returnUrl:X.returnUrl});if(!X.async)return h(X.returnUrl)}else{if(n({status:"IC_DESTROY_TO_CANCEL_URL"}),(X.fromStartFlow||window.location.href.split("#")[0]===X.cancelUrl.split("#")[0])&&y(X),X.async)return void Y.emit("cancel",{returnUrl:X.cancelUrl});if(!X.async)return h(X.cancelUrl)}});if($&&t&&t.parentNode){var r=document.querySelector("#"+X.name+" .message");if(r&&X.cancelUrl){if(r.innerHTML=o.CONTENT_LOADING,!X.returnUrl){n({status:"IC_DESTROY_TO_CANCEL_URL"});var i=window.location.href.split("#")[0]===X.cancelUrl.split("#")[0];if((X.fromStartFlow||i)&&y(X),X.async)return void Y.emit("cancel",{returnUrl:X.cancelUrl});if(!X.async)return h(X.cancelUrl)}}else X.returnUrl||(y(X),n({status:"IC_DESTROY_NO_CANCEL_RETURN_URL"}))}if(P(),y(X),$=!1,K.win&&K.win.close&&K.win.close(),X.returnUrl){if(n({status:"IC_DESTROY_TO_RETURN_URL"}),X.fromStartFlow&&$&&y(X),X.async)return void Y.emit("return",{returnUrl:X.returnUrl});if(re.hide(),!X.async)return h(X.returnUrl)}}}function P(){window.orientation&&u.removeEvent(window,"orientationchange",re.create),ne.unblock(),u.removeEvent(window,"resize",re.create),u.removeEvent(window,"unload",T),u.removeEvent(window,"keyup",f.toggle(T))}function N(){var e,t,n=o.MINI_BROWSER_WIDTH,r=o.MINI_BROWSER_HEIGHT;return window.outerWidth?(e=Math.round((window.outerWidth-n)/2)+window.screenX,t=Math.round((window.outerHeight-r)/2)+window.screenY):window.screen.width&&(e=Math.round((window.screen.width-n)/2),t=Math.round((window.screen.height-r)/2)),{left:e,top:t,width:n,height:r}}function x(){var e,r=document.querySelector("#"+X.name+" .ppmodal.loading"),i=N(),a=!1;if(e=K.win=window.open("about:blank",X.name,"top="+i.top+", left="+i.left+", width="+i.width+", height="+i.height+", location=1, status=1, toolbar=0, menubar=0, resizable=1, scrollbars=1"),t({win:e}),!e)return n({status:"IC_CLICK_OPEN_MB_FAILED"},!0),X.async&&Y.emit("failure",{error:o.ERROR_MESSAGES.CANNOT_WRITE_TO_MINI_BROWSER}),window;Q&&(n({status:"IC_CLICK_OPEN_MB_SUCCESS_SYNC_AJAX"}),X.async&&Y.emit("success",{token:Q})),e&&e.focus&&e.focus(),r&&(r.className="ppmodal");try{c.injectLoadingInterstitial(e.document),X.async&&Y.emit("success",{token:Q})}catch(s){try{var u='javascript:void((function(){document.open();document.domain="'+document.domain+'";})())';e.location=u,c.injectLoadingInterstitial(e.document),X.async&&Y.emit("success",{token:Q})}catch(l){E(o.ERROR_MESSAGES.CANNOT_WRITE_TO_MINI_BROWSER),clearInterval(K.intVal),K.windowAccessCrash=!0,e.close(),X.async&&Y.emit("failure",{error:o.ERROR_MESSAGES.CANNOT_WRITE_TO_MINI_BROWSER})}}if(a=!0){var d=e.location.href;K.heartbeat=setTimeout(function p(){if(e)try{if(e.closed){if(a=!1,X.popupOpened=!1,K.heartbeat)return clearTimeout(K.heartbeat),K.heartbeat=void 0,T()}else{try{var t=e.location.href,r=!!t&&d!==t&&t.indexOf("about:blank")===-1,o=!oe||0!==t.indexOf(oe),i=/paypal\.com(.)+token=/gi.test(t);if(r&&o&&!i)return n({status:"IC_MERCHANT_PAGE_LOADED_IN_MINIBROWSER"}),a=!1,T(),X.async&&Y.emit("failure",{error:"IC_MERCHANT_PAGE_LOADED_IN_MINIBROWSER"}),void h(t)}catch(s){d=null}K.heartbeat&&(clearTimeout(K.heartbeat),K.heartbeat=setTimeout(p,500))}}catch(c){n({status:"IC_WINDOW_ACCESS_DENIED"},!0)}},500)}return e}function I(){var t=document.getElementById("ppICMask"),n=document.getElementById("ppICModal"),r=document.getElementById("closeButton"),o=document.getElementById("ppICContinue"),i=function(e){return 13===e.keyCode||32===e.keyCode},a=function(t){(t.target!==o||i(t))&&(A(),e.checkout.startFlow())},s=function(e){i(e)&&T()};ne=new w(document.getElementById("ppICModal"),"ppbutton","closeButton"),t&&(ne.block(),u.addEvent(t,"click",a,this)),n&&(u.addEvent(n,"click",a,this),u.addEvent(o,"keyup",a,this)),r&&(u.addEvent(r,"click",T,this),u.addEvent(r,"keyup",s,this)),window.orientation&&u.addEvent(window,"orientationchange",re.create,this),u.addEvent(window,"resize",re.create,this),u.addEvent(window,"unload",T,this),u.addEvent(window,"keyup",f.toggle(T),this)}function C(){try{var e=window.event?window.event.currentTarget||window.event.target||window.event.srcElement:this;return window.event&&(event.ctrlKey||event.shiftKey||event.metaKey)?(n({status:"IC_RENDER_META_KEYPRESS"}),null):X.showMiniB===!1?null:(e&&e.form?(e.form.target=X.name,oe=e.form.action):e&&e.tagName&&"a"===e.tagName.toLowerCase()?(e.target=X.name,oe=e.href):e&&e.tagName&&("img"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase())&&"a"===e.parentNode.tagName.toLowerCase()?(e.parentNode.target=X.name,oe=e.parentNode.href):e&&e.tagName&&"button"===e.tagName.toLowerCase()&&"a"===e.parentNode.parentNode.tagName.toLowerCase()?(e.parentNode.parentNode.target=X.name,oe=e.parentNode.parentNode.href):this&&this.hasOwnProperty("target")&&"undefined"!=typeof this.target&&(this.target=X.name,oe=this.action||this.href),a.add(X),f.isEnabled(X)?(K.lightbox=f.build(X),setTimeout(function(){K.lightbox.panel.className+=" bounceInUp",X.lightboxOpened=!0,X.popupOpened=!1},300)):document.querySelectorAll("#"+X.name).length||(c.injectIncontext(null,X),H(X.name),re.create(),X.lightboxOpened=!1,X.popupOpened=!0),I(),$=!0,x())}catch(t){n({status:"IC_RENDER_ERROR",error_msg:t},!0),V=t}}function A(){K.win&&K.win.focus&&K.win.focus(),r.send(K.win||X.name+"frame","focus",function(e){e&&K.win&&K.win.focus&&K.win.focus()})}function R(e,t,n){return n&&!n()?null:void(t?t(e):C.call(this,e))}function k(e,t,n){u.addEvent(e,"click",function(e){R.call(this,e,t,n)},this)}function M(){for(var e=J.length;e--;){var t=J[e];k(t.element,t.clickFn,t.condFn)}}function L(){r.on("init",function(e,t){if(!e){var n=t&&t.secureWindowmsg,r=document.querySelector("#"+X.name+" .message");n&&(X.secureWindow=n,r&&(r.innerHTML=n,r.getElementsByClassName("ppbutton")[0].tabIndex=1));var o=N();return{id:X.guid,dimensions:{top:o.top,left:o.left,width:o.width,height:o.height}}}}),r.on("cancel",function(e,t){e||z(X.name)}),r.on("return",function(e,t){e||z(X.name)}),r.on("popup_opened",function(e,t){if(!e){var n=document.getElementsByClassName("mask")[0];c.injectIncontext(null,X),document.getElementById("PPPanel").className="",n&&n.parentNode.removeChild(n),I(),$=!0,X.oneTouchEnabled=!1,X.popupOpened=!0}})}function D(){var e,t=window.addEventListener?"addEventListener":"attachEvent",r="attachEvent"===t?"onmessage":"message",i=window[t],a=document.querySelector("#"+X.name+" .message");window.postMessage?i(r,function(t){if(t.origin.match(/paypalobjects\.com/i)||t.origin.match(/paypal\.com/i)||X.devMode||t.origin.match(/localhost:8100/i)){try{e=JSON.parse(t.data)}catch(r){e=t.data}X.returnUrl=(e.returnUrl||X.returnUrl||"").replace(/&amp;/g,"&"),X.landingUrl=(e.landingUrl||X.landingUrl||"").replace(/&amp;/g,"&"),X.cancelUrl=(e.cancelUrl||X.cancelUrl||"").replace(/&amp;/g,"&");var i=e.operation;if("cookie_check"===i&&e.enabled&&(X.thirdPartyCookiesEnabled=!0),"lightbox_resize"===i&&(K.lightbox.iframe.style.height=e.height+"px",K.lightbox.iframe.style.width=e.width+"px",K.lightbox.panel.style.height=e.height+"px",K.lightbox.panel.style.width=e.width+"px",K.lightbox.panel.style.marginTop=-(e.height/2)+"px"),e.popupHtml){for(var s=document.getElementsByClassName(o.JS_BUTTON_TAGLINE_SPAN_STYLE),c=0;c<s.length;c++)s[c].innerHTML=e.popupHtml;s.length>0&&(te=!0,n({status:"IC_RENDER"}))}if(e.popupCss){var u=document.createElement("style");u.type="text/css",u.stylesheet?u.stylesheet.cssText=e.popupCss:u.appendChild(document.createTextNode(e.popupCss)),document.getElementsByTagName("head")[0].appendChild(u)}e.updateParent&&X.returnUrl&&(a&&(a.innerHTML=o.CONTENT_LOADING),e.cancelUrl=null,X.lightboxOpened&&X.popupOpened?z(X.name):T()),!Q&&X.landingUrl&&(Q=O(X.landingUrl),n({status:"IC_CLICK_OPEN_MB_SUCCESS_NON_AJAX"})),X.content=X.content||{}}}):E(o.ERROR_MESSAGES.POSTMESSAGE_INVALID_ORIGIN)}function U(){return X.urlPrefix?X.urlPrefix:X.sandBox?o.SANDBOX_URL_PREFIX:o.LIVE_URL_PREFIX}function B(){var e=navigator.userAgent.toLowerCase();return X.isSmartPhone=s.isDevice(e),X.isWebView=s.isWebView(e),"object"==typeof X.currentAgent&&2===X.currentAgent.length&&parseFloat(X.currentAgent[1])<o.SUPPORTED_AGENTS[X.currentAgent[0]]?(n({status:"IC_ELIGIBLITY_BROWSER_NOT_SUPPORTED",browser:X.currentAgent[0],browserversion:X.currentAgent[1]}),!1):!(X.isSmartPhone||X.isWebView||X.oldIe)}function j(){window.name=window.name===X.name?"":window.name;var e=window.onerror;if(window.onerror=function(t,r,o,i,a){var s=a&&a.message?a.message:t;return"true"===X.debug&&n({status:"IC_WINDOW_ERROR",errmsg:s,url:r},!0),!!e&&e(t,r,o,i,a)},M(),!B())return void(X.showMiniB=!1);var t=new p(n);X.needsIframeBridge&&t.bridge(X),D(),L(),f.isEligible(X),t.thirdParty(X),t.prefetch(X)}function W(){J=l(X,Z,J),n({status:"IC_SETUP","button-type":X.button?"STATIC":"JS","button-number":J.length}),j();for(var e=document.querySelectorAll("."+o.STATIC_BUTTON_HIDDEN_STYLE),t=e.length,r=0;r<t;r++)e[r].className=e[r].className.replace(o.STATIC_BUTTON_HIDDEN_STYLE,"")}function G(){if(window.paypal.button&&window.paypal.button.create)return!1;var e=X.merchantConfig,t=e.buttons;if(t&&t.length){for(var n in t)if(t[n].container)return!0}else if(e&&e.container)return!0;return!1}function F(e,t,r){var i=e===t;return i&&(E(o.ERROR_MESSAGES[r]),n({status:r,error_msg:o.ERROR_MESSAGES[r]})),i}function H(e){document.body.className=document.body.className.replace(e,"")}function z(e){r.send(e+"frame","close",function(){T()})}var Y=new g,K={},X={name:o.MINI_BROWSER_NAME,css:'body.PPFrame {        overflow: hidden;}#PPFrame {        z-index: 1000000001;        top: 0;        left: 0;}#PPFrame .ppICMask {        z-index: 1000000000;        position: absolute;        top: 0;        left: 0;        background-color: black;        background-image: radial-gradient(circle farthest-corner, #000000, #4A4A4A);        opacity: 0.80;        filter: alpha(opacity=80);        cursor: pointer;}#PPFrame .ppmodal {        font-family: "HelveticaNeue", "HelveticaNeue-Light", "Helvetica Neue Light", helvetica, arial, sans-serif;        font-size: 14px;        text-align: center;        color: #fff;        z-index: 1000000002;        -webkit-box-sizing: border-box;        -moz-box-sizing: border-box;        -ms-box-sizing: border-box;        box-sizing: border-box;        width: 350px;        top: 50%;        left: 50%;        position: fixed;        margin-left: -165px;        margin-top: -80px;        cursor: pointer;}#PPFrame .loading .spinner {        height: 30px;        width: 30px;        position:absolute;        left: 48%;        top: 50%;        margin: -15px auto auto -15px;        opacity: 1;        filter: alpha(opacity=100);        background-color: rgba(255, 255, 255, 0.701961);        -webkit-animation: rotation .7s infinite linear;        -moz-animation: rotation .7s infinite linear;        -o-animation: rotation .7s infinite linear;        animation: rotation .7s infinite linear;        border-left: 8px solid rgba(0,0,0,.20);        border-right: 8px solid rgba(0,0,0,.20);        border-bottom: 8px solid rgba(0,0,0,.20);        border-top: 8px solid rgba(33,128,192,1);        border-radius: 100%;}@-webkit-keyframes rotation {        from {                -webkit-transform: rotate(0deg);        }        to {                -webkit-transform: rotate(359deg);        }}@-moz-keyframes rotation {        from {                -moz-transform: rotate(0deg);        }        to {                -moz-transform: rotate(359deg);        }}@-o-keyframes rotation {        from {                -o-transform: rotate(0deg);        }        to {                -o-transform: rotate(359deg);        }}@keyframes rotation {        from {                transform: rotate(0deg);        }        to {                transform: rotate(359deg);        }}#PPFrame .loading.noanimation .spinner {        height: 48px;        width: 48px;        border: none;        background: url(https://www.paypalobjects.com/webstatic/checkout/hermes/icon_loader_med.gif) no-repeat center center;}#PPFrame .ppmodal.loading {        min-height: 160px;}#PPFrame .ppmodal .pplogo {  background: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite.png") no-repeat -18px -16px;\twidth: 132px;\theight: 36px;  cursor: pointer;  margin: 26px 0 0 109px;}@media only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, only screen and (min-resolution: 2dppx), only screen and (min-resolution: 192dpi) {  #PPFrame .ppmodal .pplogo {    background-image: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite_2x.png");    background-size: 200px 200px;  }}.ppmodal .closeButton {        position: absolute;        top: 0;        right: 0;        display: inline-block;        text-indent: -999em;        cursor: pointer;        background: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite.png") no-repeat -16px -60px;\t      width: 18px;\t      height: 18px;}.ppmodal .closeButton:focus, .ppmodal .closeButton:hover {  background: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite.png") no-repeat -46px -60px;}.ppmodal .closeButton:focus {  outline: 1px solid #ffffff;}@media only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, only screen and (min-resolution: 2dppx), only screen and (min-resolution: 192dpi) { .ppmodal .closeButton, .ppmodal .closeButton:focus, .ppmodal .closeButton:hover {   background-image: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite_2x.png");   background-size: 200px 200px; }}#PPFrame .ppmodal .text {        font-size: 14px;}#PPFrame .ppmodal a.button {        display: block;        cursor: pointer;        margin-top: 20px;        color: #0088cc;}.ppmodal a.ppbutton {        display: block;        margin: auto;        cursor: pointer;        margin-top: 20px;        color: #ffffff;        font-size: 15px;        font-weight: bold;        text-decoration: none;      }.ppmodal a.ppbutton span {  background: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite.png") no-repeat -15px -89px;  width: 7px;  height: 12px;  display: inline-block;}.ppmodal a.ppbutton:focus, .ppmodal a.ppbutton:hover {  color: #e6e6e6;  text-decoration: underline;}.ppmodal a.ppbutton:focus {    outline: none;}#PPFrame .ppmodal #ppmsg {  font-size: 15px;  line-height: 1.35;  padding: 25px 0;}a.ppbutton:hover span, a.ppbutton:focus span {  background: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite.png") no-repeat -45px -89px;\t}@media only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, only screen and (min-resolution: 2dppx), only screen and (min-resolution: 192dpi) {  .frontArrow {    background-image: url("https://www.paypalobjects.com/images/checkout/incontext/incontext_mask_sprite_2x.png");    background-size: 200px 200px;  }  }/* Lightbox */#PPFrame .PPIC-panel {  z-index: 1000000002;  position: fixed;  border: none;  width: 420px;  height: 250px;  margin-top: -125px;  margin-left: -210px;  left: 50%;  overflow: visible;  top: 50%;  -webkit-transition: all 0.6s ease;  -moz-transition: all 0.6s ease;  -ms-transition: all 0.6s ease;  -o-transition: all 0.6 ease;  transition: all 0.6s ease;  opacity: 0;  overflow: hidden;  border-radius: 8px;  background: white;}#PPFrame .PPIC-panel.bounceInUp {  opacity: 1;}#PPFrame .PPIC-panel iframe {  width: 420px;  height: 250px;  border: 0;  border-radius: 8px;  -webkit-transition: all 0.6s ease;  -moz-transition: all 0.6s ease;  -ms-transition: all 0.6s ease;  -o-transition: all 0.6 ease;  transition: all 0.6s ease;}#PPPanel {  display: none;}#PPPanel.PPIC-panel {  display: block;}#PPFrame .mask {  z-index: 1000000000;  position: fixed;  top: 0;  left: 0;  right: 0;  bottom: 0;  height: 100%;  background: black;  background: -webkit-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.6) 1%, rgba(0,0,0,0.8) 100%);  background: -moz-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.6) 1%, rgba(0,0,0,0.8) 100%);  background: -ms-radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.6) 1%, rgba(0,0,0,0.8) 100%);  background: radial-gradient(50% 50%, ellipse closest-corner, rgba(0,0,0,0.6) 1%, rgba(0,0,0,0.8) 100%);  filter: alpha(opacity = 30);  -webkit-transition: 1000ms opacity;  -moz-transition: 1000ms opacity;  transition: 1000ms opacity;  opacity: 1;  -webkit-transform: translate3d(0, 0, 0);  -moz-transform: translate3d(0, 0, 0);  -ms-transform: translate3d(0, 0, 0);  -o-transform: translate3d(0, 0, 0);  transform: translate3d(0, 0, 0);}#PPFrame.active .mask {  opacity: 1;}/*! * animate.css -http://daneden.me/animate * Version - 3.5.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT * * Copyright (c) 2016 Daniel Eden */.animated {  -webkit-animation-duration: 1s;  animation-duration: 1s;  -webkit-animation-fill-mode: both;  animation-fill-mode: both;}@-webkit-keyframes bounceInUp {  from, 60%, 75%, 90%, to {    -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);  }  from {    opacity: 0;    -webkit-transform: translate3d(0, 3000px, 0);    transform: translate3d(0, 3000px, 0);  }  60% {    opacity: 1;    -webkit-transform: translate3d(0, -20px, 0);    transform: translate3d(0, -20px, 0);  }  75% {    -webkit-transform: translate3d(0, 10px, 0);    transform: translate3d(0, 10px, 0);  }  90% {    -webkit-transform: translate3d(0, -5px, 0);    transform: translate3d(0, -5px, 0);  }  to {    -webkit-transform: translate3d(0, 0, 0);    transform: translate3d(0, 0, 0);  }}@keyframes bounceInUp {  from, 60%, 75%, 90%, to {    -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);  }  from {    opacity: 0;    -webkit-transform: translate3d(0, 3000px, 0);    transform: translate3d(0, 3000px, 0);  }  60% {    opacity: 1;    -webkit-transform: translate3d(0, -20px, 0);    transform: translate3d(0, -20px, 0);  }  75% {    -webkit-transform: translate3d(0, 10px, 0);    transform: translate3d(0, 10px, 0);  }  90% {    -webkit-transform: translate3d(0, -5px, 0);    transform: translate3d(0, -5px, 0);  }  to {    -webkit-transform: translate3d(0, 0, 0);    transform: translate3d(0, 0, 0);  }}.bounceInUp {  -webkit-animation-name: bounceInUp;  animation-name: bounceInUp;}@-webkit-keyframes bounceOutDown {  20% {    -webkit-transform: translate3d(0, 10px, 0);    transform: translate3d(0, 10px, 0);  }  40%, 45% {    opacity: 1;    -webkit-transform: translate3d(0, -20px, 0);    transform: translate3d(0, -20px, 0);  }  to {    opacity: 0;    -webkit-transform: translate3d(0, 2000px, 0);    transform: translate3d(0, 2000px, 0);  }}@keyframes bounceOutDown {  20% {    -webkit-transform: translate3d(0, 10px, 0);    transform: translate3d(0, 10px, 0);  }  40%, 45% {    opacity: 1;    -webkit-transform: translate3d(0, -20px, 0);    transform: translate3d(0, -20px, 0);  }  to {    opacity: 0;    -webkit-transform: translate3d(0, 2000px, 0);    transform: translate3d(0, 2000px, 0);  }}.bounceOutDown {  -webkit-animation-name: bounceOutDown;  animation-name: bounceOutDown;}',secureWindow:o.CONTENT_SECURE_WINDOW,continueLink:o.CONTINUE_LINK,locale:o.DEFAULT_LOCALE,trigger:null,isSmartPhone:!1,isWebView:!1,merchantID:null,showMiniB:!0,sandBox:!1,devMode:!1,version:"3.0",log:!0,cookiedExp:i.getItem("PPXOEXP"),debug:i.getItem("PPDEBUG"),domain:i.getItem("PPDOMAIN"),urlPrefix:i.getItem("PPURLPREFIX"),oldIe:navigator.userAgent.match(/MSIE [87]\./i),needsIframeBridge:!!navigator.userAgent.match(/MSIE|trident|edge/i),prefetchLoaded:!1,cookieCheckLoaded:!1,currentAgent:s.getAgent(),merchantConfig:null,guid:null,enableOneTouch:!0,bodyStyle:null,oneTouchEnabled:!1,thirdPartyCookiesEnabled:!1,forceLightboxDisabled:!1,lightboxOpened:!1,popupOpened:!1},q=!1,J=[],$=!1,V="",Q=null,Z=[],ee=!1,te=!1,ne=null,re=null,oe=null;return K.urlPrefix="","function"!=typeof window.paypalCheckoutReady&&b(S),K.setup=function(e,n){n||"object"!=typeof e||(n=e,e=n.merchantID);var r=n.app||o.APP;for(var i in o)o.hasOwnProperty(i)&&o[i].indexOf&&o[i].indexOf("{{app}}")>-1&&(o[i]=o[i].replace("{{app}}",r));X.guid=d.getGUID(),X.frameGuid=X.guid.substring(0,8),X.name+=X.frameGuid,X.merchantID=e,X.locale=n.locale||X.locale,X.async=!!n.async,X.bridgeUrl=n.bridgeUrl,X.domain=n.domain,F(!e,!0,"IC_SETUP_MERCHANTID_ERROR")||(X.merchantConfig=n,X.sandBox="sandbox"===n.environment,X.forceLightboxDisabled=n.forceLightboxDisabled,X.sandBox&&E(o.ERROR_MESSAGES.SANDBOX_BANNER),K.urlPrefix=U(),t({urlPrefix:K.urlPrefix,events:Y}),q=G(),q?v(o.BUTTON_JS_URL,W):W(),re=new m(X.name),ee=!0)},K.initXO=function(){B()&&X.showMiniB&&(F(ee,!1,"IC_INITXO_CALLED_BEFORE_SETUP"),X.win=C())},K.startFlow=function(e,t){if(F(ee,!1,"IC_STARTFLOW_CALLED_BEFORE_SETUP"),_(),e&&"object"!=typeof e){if(t)for(var r in t)t.hasOwnProperty(r)&&(X[r]=t[r]);e=e||X.landingUrl,e&&e.toLowerCase&&0===e.toLowerCase().indexOf("ec-")&&(e=K.urlPrefix+e),e&&e.match(/\.paypal\.com/i)&&(X.fromStartFlow=!0),e&&(e=e.replace(/\s+$/,""));try{Q=O(e)}catch(i){E(o.ERROR_MESSAGES.MISSING_EC_TOKEN)}if(!B()||!X.showMiniB)return void(e?location.href=e:window.name=X.name);var a=X.win||C();a=a||window;try{a!==window&&(a.name=a.name||X.name)}catch(i){E(o.ERROR_MESSAGES.MINI_BROWSER_ALREADY_OPEN)}e&&(e.match(/\.paypal\.com/i)&&(X.prefetchLoaded&&(e+="&prefetch=1"),X.cookieCheckLoaded&&(e+="&cookie_check=1")),a.location?a.location=e:a.src=e),X.win&&n({status:"IC_CLICK_OPEN_MB_SUCCESS_ASYNC_AJAX"})}},K.closeFlow=function(e){T(),e&&(top.location.href=e)},K}(),t({initXO:e.checkout.initXO,startFlow:e.checkout.startFlow,closeFlow:e.checkout.closeFlow,restartFlow:e.checkout.startFlow,setup:e.checkout.setup}),b(function(){"function"==typeof window.paypalCheckoutReady&&window.paypalCheckoutReady()})}(),window.paypal}},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(){(0,c.registerGlobals)(),a.util.debug("ID",(0,i.getWindowID)()),a.util.listen(window,"message",s.messageListener),a.childWindows.register((0,i.getWindowID)(),window,a.util.getType()),(0,a.propagate)((0,i.getWindowID)())}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(3),a=n(13),s=n(11),c=n(15);r(),t["default"]=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.util=t.openBridge=t.reset=t.parent=void 0;var r=n(2);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(23);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(24);Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(25);Object.keys(a).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var s=n(11);Object.defineProperty(t,"reset",{enumerable:!0,get:function(){return s.resetListeners}});var c=n(16);Object.defineProperty(t,"openBridge",{enumerable:!0,get:function(){return c.openBridge}});var u=n(7);Object.defineProperty(t,"util",{enumerable:!0,get:function(){return u.util}}),t.parent=u.util.getParent()},function(e,t,n){"use strict";function r(e){return c.promise.nodeify(new c.promise.Promise(function(t,n){if(!e.name)throw new Error("Expected options.name");if(!e.window)throw new Error("Expected options.window");if(a.CONFIG.MOCK_MODE)e.window=window;else if("string"==typeof e.window){var r=document.getElementById(e.window);if(!r)throw new Error("Expected options.window "+e.window+" to be a valid element id");if("iframe"!==r.tagName.toLowerCase())throw new Error("Expected options.window "+e.window+" to be an iframe");if(e.window=r.contentWindow,!e.window)throw new Error("Expected options.window")}var o=e.name+"_"+c.util.uniqueID();if(s.listeners.response[o]=e,e.window.closed)throw new Error("Target window is closed");e.timeout&&setTimeout(function(){return n(new Error("Post message response timed out after "+e.timeout+" ms"))},e.timeout),e.respond=function(e,r){return e?n(e):t(r)},(0,s.sendMessage)(e.window,{hash:o,type:a.CONSTANTS.POST_MESSAGE_TYPE.REQUEST,name:e.name,data:e.data||{}})["catch"](n),setTimeout(function(){return e.ack?void 0:n(new Error("No ack for postMessage "+e.name))},a.CONFIG.ACK_TIMEOUT)}),e.callback)}function o(e,t,n,o){return!o&&n instanceof Function&&(o=n,n={}),r({window:e,name:t,data:n,callback:o})}function i(e,t,n){if(!c.util.getParent())throw new Error("Window does not have a parent");return o(c.util.getParent(),e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.request=r,t.send=o,t.sendToParent=i;var a=n(3),s=n(11),c=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(5);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(6);Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIG={ALLOW_POSTMESSAGE_POPUP:!0,DEBUG:!1,ACK_TIMEOUT:3e3,LOG_TO_PAGE:!1,MOCK_MODE:!1}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTANTS={POST_MESSAGE_TYPE:{REQUEST:"postrobot_message_request",RESPONSE:"postrobot_message_response",ACK:"postrobot_message_ack"},POST_MESSAGE_ACK:{SUCCESS:"success",ERROR:"error"},POST_MESSAGE_NAMES:{IDENTIFY:"identify"},WINDOW_TYPES:{FULLPAGE:"fullpage",POPUP:"popup",IFRAME:"iframe"},WINDOW_PROPS:{POSTROBOT:"__postRobot__"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowID=void 0;var r=n(7);t.getWindowID=r.util.memoize(function(){return window.name||r.util.uniqueID()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.util=void 0;var r=n(3),o=n(8),i=t.util={isPopup:function(){return Boolean(window.opener)},isIframe:function(){return Boolean(window.parent&&window!==window.parent)},isFullpage:function(){return Boolean(!i.isIframe()&&!i.isPopup())},windowReady:new o.promise.Promise(function(e,t){return"complete"===document.readyState?e():void window.addEventListener("load",e)}),getType:function(){return i.isPopup()?r.CONSTANTS.WINDOW_TYPES.POPUP:i.isIframe()?r.CONSTANTS.WINDOW_TYPES.IFRAME:r.CONSTANTS.WINDOW_TYPES.FULLPAGE},once:function(e){if(!e)return e;var t=!1;return function(){return t?void 0:(t=!0,e.apply(this,arguments))}},getParent:function(){return i.isPopup()?window.opener:i.isIframe()?window.parent:void 0},eachParent:function(e,t){var n=window;for(t&&e(window);;){var r=n.opener||n.parent;if(n===r)return;n=r,e(n)}},eachFrame:function(e,t){for(var n=0;n<e.frames.length;n++){var r=void 0;try{r=e.frames[n]}catch(o){continue}t(r)}},noop:function(){},getDomain:function(){return window.location.host},clearLogs:function(){if(window.console&&window.console.clear&&window.console.clear(),r.CONFIG.LOG_TO_PAGE){var e=document.getElementById("postRobotLogs");e&&e.parentNode.removeChild(e)}},writeToPage:function(e,t){setTimeout(function(){var n=document.getElementById("postRobotLogs");n||(n=document.createElement("div"),n.id="postRobotLogs",n.style.cssText="width: 800px; font-family: monospace; white-space: pre-wrap;",document.body.appendChild(n));var r=document.createElement("div"),o=(new Date).toString().split(" ")[4],a=i.map(t,function(e){if("string"==typeof e)return e;if(!e)return toString.call(e);var t=void 0;try{t=JSON.stringify(e,0,2)}catch(n){t="[object]"}return"\n\n"+t+"\n\n"}).join(" "),s=o+" "+e+" "+a;r.innerHTML=s;var c={log:"#ddd",warn:"orange",error:"red",info:"blue",debug:"#aaa"}[e];r.style.cssText="margin-top: 10px; color: "+c+";",n.childNodes.length?n.insertBefore(r,n.childNodes[0]):n.appendChild(r)})},logLevel:function(e,t){t=Array.prototype.slice.call(t),t.unshift(i.getDomain()),t.unshift(i.getType().toLowerCase()),t.unshift("[post-robot]"),r.CONFIG.LOG_TO_PAGE&&i.writeToPage(e,t),window.console&&(window.console[e]||(e="log"),window.console[e]&&window.console[e].apply(window.console,t))},log:function(){i.logLevel("info",arguments)},debug:function(){r.CONFIG.DEBUG&&i.logLevel("debug",arguments)},debugError:function(){r.CONFIG.DEBUG&&i.logLevel("error",arguments)},safeHasProp:function(e,t){try{return!!e[t]}catch(n){return!1}},warn:function(){i.logLevel("warn",arguments)},error:function(){i.logLevel("error",arguments)},listen:function(e,t,n){return e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n),{cancel:function(){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}}},apply:function(e,t,n){return e.apply instanceof Function?e.apply(t,n):e(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9])},find:function(e,t,n){if(!e)return n;for(var r=0;r<e.length;r++)if(t(e[r]))return e[r];return n},map:function(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r]));return n},some:function(e,t){t=t||Boolean;for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1},keys:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},values:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},getByValue:function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n;
  },uniqueID:function(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})},isFrameOwnedBy:function(e,t){try{return t.parent===e}catch(n){try{for(var r=0;r<e.frames.length;r++)if(e.frames[r]===t)return!0}catch(o){return!1}}return!1},memoize:function(e){var t={};return function(){var n=JSON.stringify(Array.prototype.slice.call(arguments));return t.hasOwnProperty(n)||(t[n]=e.apply(this,arguments)),t[n]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promise=void 0;var r=n(9),o=t.promise={get Promise(){return window.Promise?window.Promise:r.Promise},asyncPromise:function(e){return new o.Promise(function(t,n){setTimeout(function(){try{return e(t,n)}catch(r){return n(r)}})})},run:function(e){return o.Promise.resolve().then(e)},method:function(e){return function(){var t=this,n=arguments;return o.Promise.resolve().then(function(){return e.apply(t,n)})}},nodeify:function(e,t){return t?void e.then(function(e){t(null,e)},function(e){t(e)}):e}}},function(e,t,n){var r;(function(o,i){/*!
  		 * @overview es6-promise - a tiny implementation of Promises/A+.
  		 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  		 * @license   Licensed under MIT license
  		 *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
  		 * @version   2.0.1
  		 */
  (function(){function a(e,t){k[C]=e,k[C+1]=t,C+=2,2===C&&x()}function s(e){return"function"==typeof e}function c(){return function(){o.nextTick(p)}}function u(){var e=0,t=new R(p),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=p,function(){e.port2.postMessage(0)}}function d(){return function(){setTimeout(p,1)}}function p(){for(var e=0;C>e;e+=2)(0,k[e])(k[e+1]),k[e]=void 0,k[e+1]=void 0;C=0}function f(){}function m(e,t,n,r){try{e.call(t,n,r)}catch(o){return o}}function h(e,t,n){a(function(e){var r=!1,o=m(n,t,function(n){r||(r=!0,t!==n?w(e,n):b(e,n))},function(t){r||(r=!0,y(e,t))});!r&&o&&(r=!0,y(e,o))},e)}function g(e,t){1===t.a?b(e,t.b):2===e.a?y(e,t.b):v(t,void 0,function(t){w(e,t)},function(t){y(e,t)})}function w(e,t){if(e===t)y(e,new TypeError("You cannot resolve a promise with itself"));else if("function"==typeof t||"object"==typeof t&&null!==t)if(t.constructor===e.constructor)g(e,t);else{var n;try{n=t.then}catch(r){M.error=r,n=M}n===M?y(e,M.error):void 0===n?b(e,t):s(n)?h(e,t,n):b(e,t)}else b(e,t)}function E(e){e.f&&e.f(e.b),O(e)}function b(e,t){void 0===e.a&&(e.b=t,e.a=1,0!==e.e.length&&a(O,e))}function y(e,t){void 0===e.a&&(e.a=2,e.b=t,a(E,e))}function v(e,t,n,r){var o=e.e,i=o.length;e.f=null,o[i]=t,o[i+1]=n,o[i+2]=r,0===i&&e.a&&a(O,e)}function O(e){var t=e.e,n=e.a;if(0!==t.length){for(var r,o,i=e.b,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?S(n,r,o,i):o(i);e.e.length=0}}function _(){this.error=null}function S(e,t,n,r){var o,i,a,c,u=s(n);if(u){try{o=n(r)}catch(l){L.error=l,o=L}if(o===L?(c=!0,i=o.error,o=null):a=!0,t===o)return void y(t,new TypeError("A promises callback cannot return that same promise."))}else o=r,a=!0;void 0===t.a&&(u&&a?w(t,o):c?y(t,i):1===e?b(t,o):2===e&&y(t,o))}function T(e,t){try{t(function(t){w(e,t)},function(t){y(e,t)})}catch(n){y(e,n)}}function P(e,t,n,r){this.n=e,this.c=new e(f,r),this.i=n,this.o(t)?(this.m=t,this.d=this.length=t.length,this.l(),0===this.length?b(this.c,this.b):(this.length=this.length||0,this.k(),0===this.d&&b(this.c,this.b))):y(this.c,this.p())}function N(e){if(D++,this.b=this.a=void 0,this.e=[],f!==e){if(!s(e))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof N))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");T(this,e)}}var x,I=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},C=0,A="undefined"!=typeof window?window:{},R=A.MutationObserver||A.WebKitMutationObserver,A="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,k=Array(1e3);x="undefined"!=typeof o&&"[object process]"==={}.toString.call(o)?c():R?u():A?l():d();var M=new _,L=new _;P.prototype.o=function(e){return I(e)},P.prototype.p=function(){return Error("Array Methods must be provided an Array")},P.prototype.l=function(){this.b=Array(this.length)},P.prototype.k=function(){for(var e=this.length,t=this.c,n=this.m,r=0;void 0===t.a&&e>r;r++)this.j(n[r],r)},P.prototype.j=function(e,t){var n=this.n;"object"==typeof e&&null!==e?e.constructor===n&&void 0!==e.a?(e.f=null,this.g(e.a,t,e.b)):this.q(n.resolve(e),t):(this.d--,this.b[t]=this.h(e))},P.prototype.g=function(e,t,n){var r=this.c;void 0===r.a&&(this.d--,this.i&&2===e?y(r,n):this.b[t]=this.h(n)),0===this.d&&b(r,this.b)},P.prototype.h=function(e){return e},P.prototype.q=function(e,t){var n=this;v(e,void 0,function(e){n.g(1,t,e)},function(e){n.g(2,t,e)})};var D=0;N.all=function(e,t){return new P(this,e,(!0),t).c},N.race=function(e,t){function n(e){w(o,e)}function r(e){y(o,e)}var o=new this(f,t);if(!I(e))return y(o,new TypeError("You must pass an array to race.")),o;for(var i=e.length,a=0;void 0===o.a&&i>a;a++)v(this.resolve(e[a]),void 0,n,r);return o},N.resolve=function(e,t){if(e&&"object"==typeof e&&e.constructor===this)return e;var n=new this(f,t);return w(n,e),n},N.reject=function(e,t){var n=new this(f,t);return y(n,e),n},N.prototype={constructor:N,then:function(e,t){var n=this.a;if(1===n&&!e||2===n&&!t)return this;var r=new this.constructor(f),o=this.b;if(n){var i=arguments[n-1];a(function(){S(n,r,i,o)})}else v(this,r,e,t);return r},"catch":function(e){return this.then(null,e)}};var U={Promise:N,polyfill:function(){var e;e="undefined"!=typeof i?i:"undefined"!=typeof window&&window.document?window:self,"Promise"in e&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&function(){var t;return new e.Promise(function(e){t=e}),s(t)}()||(e.Promise=N)}};r=function(){return U}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}).call(this)}).call(t,n(10),function(){return this}())},function(e,t){function n(){u=!1,a.length?c=a.concat(c):l=-1,c.length&&r()}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var a,s=e.exports={},c=[],u=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new o(e,t)),1!==c.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=i,s.addListener=i,s.once=i,s.off=i,s.removeListener=i,s.removeAllListeners=i,s.emit=i,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(19);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(21);Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){"use strict";function r(e){try{e=JSON.parse(e)}catch(t){return}if(e.type&&p.RECEIVE_MESSAGE_TYPES[e.type])return e}function o(e,t){if(!s.CONFIG.MOCK_MODE&&t&&(t.type!==s.CONSTANTS.POST_MESSAGE_TYPE.REQUEST||!t.name||!d.listeners.request[t.name]||d.listeners.request[t.name].proxy!==!1)){var n=(t.type===s.CONSTANTS.POST_MESSAGE_TYPE.REQUEST||t.type===s.CONSTANTS.POST_MESSAGE_TYPE.ACK)&&d.listeners.response[t.hash];if(!n)for(var r=0;r<d.listeners.proxies.length;r++){var o=d.listeners.proxies[r];if(e===o.from)return o.to}if("parent.opener"===t.target){var i=void 0;try{i=window.parent.opener}catch(a){throw new Error("Can not get window.parent.opener to proxy to")}if(!i)throw new Error("Can not get window.parent.opener to proxy to");return i}if(t.target&&t.target!==(0,s.getWindowID)()){var u=c.childWindows.getWindowById(t.target);if(!u)throw new Error("Unable to find window to proxy message to: "+t.target);return u}}}function i(e,t){var n=r(t);if(n&&-1===f.indexOf(n.id)){f.push(n.id),c.childWindows.register(n.source,e,n.windowType);var i=o(e,n);return i?(delete n.target,(0,l.sendMessage)(i,n,!0)):(c.util.log("#receive",n.type,n.name,n),s.CONFIG.MOCK_MODE?p.RECEIVE_MESSAGE_TYPES[n.type](e,n):void p.RECEIVE_MESSAGE_TYPES[n.type](e,n))}}function a(e){var t=e.source||e.sourceElement,n=e.data;(0,u.emulateIERestrictions)(t,window),i(t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.receiveMessage=i,t.messageListener=a;var s=n(3),c=n(13),u=n(15),l=n(19),d=n(21),p=n(22),f=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(7);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(14);Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){"use strict";function r(e,t){return a.util.find(c,function(n){return n[e]===t},{})}function o(e){function t(t,r){t&&t!==window&&-1===n.indexOf(t)&&(a.util.debug("propagating to",r,t),n.push(t),a.util.safeHasProp(t,i.CONSTANTS.WINDOW_PROPS.POSTROBOT)?t[i.CONSTANTS.WINDOW_PROPS.POSTROBOT].registerSelf(e,window,a.util.getType()):(0,s.send)(t,i.CONSTANTS.POST_MESSAGE_NAMES.IDENTIFY,{id:e,type:a.util.getType()}).then(function(e){u.register(e.id,t,e.type)},function(e){a.util.debugError("Error sending identify:",e.stack||e.toString())}))}(0,s.on)(i.CONSTANTS.POST_MESSAGE_NAMES.IDENTIFY,function(t,n,r){return t?void 0:{id:e}});var n=[];a.util.eachParent(function(e){t(e,"parent"),a.util.eachFrame(e,function(e){t(e,"frame")})},!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.childWindows=void 0,t.propagate=o;var i=n(3),a=n(13),s=n(1),c=[],u=t.childWindows={getWindowId:function(e){return r("win",e).id},getWindowById:function(e){return r("id",e).win},getWindowType:function(e){var t=r("win",e);if(t&&t.type)return t.type;if(a.util.safeHasProp(e,"parent")&&e.parent!==e)return i.CONSTANTS.WINDOW_TYPES.IFRAME;if(a.util.safeHasProp(e,"opener"))return i.CONSTANTS.WINDOW_TYPES.POPUP;var n=a.util.some(c,function(t){return a.util.isFrameOwnedBy(t.win,e)});return n?i.CONSTANTS.WINDOW_TYPES.IFRAME:void 0},register:function(e,t,n){var r=a.util.find(c,function(n){return n.id===e&&n.win===t});r||(a.util.debug("Registering window:",n,e,t),c.push({id:e,win:t,type:n}))}},l=window.open;window.open=function(e,t,n,r){t||(t=a.util.uniqueID(),arguments[1]=t);var o=a.util.apply(l,this,arguments);return u.register(t,o,i.CONSTANTS.WINDOW_TYPES.POPUP),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(17);Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(18);Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){"use strict";function r(){return s}function o(e){try{if(!e||!e.frames||!e.frames.length)return;for(var t=0;t<e.frames.length;t++)try{var n=e.frames[t];if(n&&n[i.CONSTANTS.WINDOW_PROPS.POSTROBOT])return n}catch(r){continue}}catch(r){return}}Object.defineProperty(t,"__esModule",{value:!0}),t.openBridge=void 0,t.getBridge=r,t.getBridgeFor=o;var i=n(3),a=n(13),s=void 0;t.openBridge=a.util.memoize(function(e){if(s)throw new Error("Only one bridge supported");return s=new a.promise.Promise(function(t,n){a.util.debug("Opening bridge:",e);var r=document.createElement("iframe");r.setAttribute("id","postRobotBridge"),r.setAttribute("style","margin: 0; padding: 0; border: 0px none; overflow: hidden;"),r.setAttribute("frameborder","0"),r.setAttribute("border","0"),r.setAttribute("scrolling","no"),r.setAttribute("allowTransparency","true"),r.setAttribute("tabindex","-1"),r.setAttribute("hidden","true"),r.setAttribute("title",""),r.setAttribute("role","presentation"),r.onload=function(){return t(r)},r.onerror=n,r.src=e,document.body.appendChild(r)})})},function(e,t,n){"use strict";function r(){if(window[o.CONSTANTS.WINDOW_PROPS.POSTROBOT])throw new Error("Attempting to load postRobot twice on the same window");window[o.CONSTANTS.WINDOW_PROPS.POSTROBOT]={registerSelf:function(e,t,n){i.childWindows.register(e,t,n)},postMessage:i.promise.method(function(e,t){(0,a.receiveMessage)(e,t)}),postMessageParent:i.promise.method(function(e,t){window.parent.postMessage(t,"*")})}}Object.defineProperty(t,"__esModule",{value:!0}),t.registerGlobals=r;var o=n(3),i=n(13),a=n(11)},function(e,t,n){"use strict";function r(e,t){if(!o.CONFIG.ALLOW_POSTMESSAGE_POPUP){var n=i.childWindows.getWindowType(e)===o.CONSTANTS.WINDOW_TYPES.IFRAME&&i.util.isFrameOwnedBy(t,e),r=i.childWindows.getWindowType(t)===o.CONSTANTS.WINDOW_TYPES.IFRAME&&i.util.isFrameOwnedBy(e,t);if(!n&&!r)throw e===window?new Error("Can not send post messages to another window (disabled by config to emulate IE)"):new Error("Can not receive post messages sent from another window (disabled by config to emulate IE)")}}Object.defineProperty(t,"__esModule",{value:!0}),t.emulateIERestrictions=r;var o=n(3),i=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendMessage=void 0;var r=n(3),o=n(13),i=n(20);t.sendMessage=o.promise.method(function(e,t,n){if(t.id=t.id||o.util.uniqueID(),t.source=(0,r.getWindowID)(),t.originalSource=t.originalSource||(0,r.getWindowID)(),t.windowType=o.util.getType(),t.originalWindowType=t.originalWindowType||o.util.getType(),t.target||(t.target=o.childWindows.getWindowId(e)),o.util.log(n?"#proxy":"#send",t.type,t.name,t),r.CONFIG.MOCK_MODE)return delete t.target,window[r.CONSTANTS.WINDOW_PROPS.POSTROBOT].postMessage(window,JSON.stringify(t));if(e===window)throw new Error("Attemping to send message to self");return o.util.debug("Waiting for window to be ready"),o.util.windowReady.then(function(){return o.util.debug("Running send message strategies",t),o.promise.Promise.all(o.util.map(o.util.keys(i.SEND_MESSAGE_STRATEGIES),function(n){return i.SEND_MESSAGE_STRATEGIES[n](e,t).then(function(){return o.util.debug(n,"success"),!0},function(e){return o.util.debugError(n,"error\n\n",e.stack||e.toString()),!1})})).then(function(e){if(!o.util.some(e))throw new Error("No post-message strategy succeeded")})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEND_MESSAGE_STRATEGIES=void 0;var r=n(3),o=n(13),i=n(15);t.SEND_MESSAGE_STRATEGIES={POST_MESSAGE:o.promise.method(function(e,t){return(0,i.emulateIERestrictions)(window,e),e.postMessage(JSON.stringify(t,0,2),"*")}),POST_MESSAGE_GLOBAL_METHOD:o.promise.method(function(e,t){if(!o.util.safeHasProp(e,r.CONSTANTS.WINDOW_PROPS.POSTROBOT))throw new Error("postRobot not found on window");return e[r.CONSTANTS.WINDOW_PROPS.POSTROBOT].postMessage(window,JSON.stringify(t,0,2))}),POST_MESSAGE_UP_THROUGH_BRIDGE:o.promise.method(function(e,t){var n=(0,i.getBridgeFor)(e);if(!n)throw new Error("No bridge available in window");if(!o.util.safeHasProp(n,r.CONSTANTS.WINDOW_PROPS.POSTROBOT))throw new Error("postRobot not installed in bridge");return n[r.CONSTANTS.WINDOW_PROPS.POSTROBOT].postMessageParent(window,JSON.stringify(t,0,2))}),POST_MESSAGE_DOWN_THROUGH_BRIDGE:o.promise.method(function(e,t){var n=(0,i.getBridge)();if(!n)throw new Error("Bridge not initialized");if(e===n.contentWindow)throw new Error("Message target is bridge");if(!t.target){if(e!==window.opener)throw new Error("Can not post message down through bridge without target");t.target="parent.opener"}return n.then(function(e){e.contentWindow.postMessage(JSON.stringify(t,0,2),"*")})})}},function(e,t){"use strict";function n(){t.listeners=r={request:{},response:{},proxies:[]}}Object.defineProperty(t,"__esModule",{value:!0}),t.resetListeners=n;var r=t.listeners=void 0;n()},function(e,t,n){"use strict";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}Object.defineProperty(t,"__esModule",{value:!0}),t.RECEIVE_MESSAGE_TYPES=void 0;var o,i=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},a=n(3),s=n(13),c=n(19),u=n(21);t.RECEIVE_MESSAGE_TYPES=(o={},r(o,a.CONSTANTS.POST_MESSAGE_TYPE.ACK,function(e,t){var n=u.listeners.response[t.hash];if(!n)throw new Error("No handler found for post message ack for message: "+t.name+" in "+window.location.href);n.ack=!0}),r(o,a.CONSTANTS.POST_MESSAGE_TYPE.REQUEST,function(e,t){function n(n){return(0,c.sendMessage)(e,i({target:t.originalSource?t.originalSource:s.childWindows.getWindowId(e),hash:t.hash,name:t.name},n))["catch"](function(e){if(r)return r.handleError(e);throw e})}var r=u.listeners.request[t.name],o=s.util.once(function(e){return n({type:a.CONSTANTS.POST_MESSAGE_TYPE.RESPONSE,ack:a.CONSTANTS.POST_MESSAGE_ACK.SUCCESS,response:e||{}})}),l=s.util.once(function(e){return n({type:a.CONSTANTS.POST_MESSAGE_TYPE.RESPONSE,ack:a.CONSTANTS.POST_MESSAGE_ACK.ERROR,error:e.stack||e.toString()})});if(!r)return l(new Error("No postmessage request handler for "+t.name+" in "+window.location.href));if(!r.window||!e||r.window===e){n({type:a.CONSTANTS.POST_MESSAGE_TYPE.ACK});var d=void 0;try{d=r.handler(null,t.data,function(e,t){return e?l(e):o(t)})}catch(p){return l(p)}return d&&d.then instanceof Function?d.then(o,l):r.handler.length<=2?o(d):void 0}}),r(o,a.CONSTANTS.POST_MESSAGE_TYPE.RESPONSE,function(e,t){var n=u.listeners.response[t.hash];if(!n)throw new Error("No response handler found for post message response "+t.name+" in "+window.location.href);return delete u.listeners.response[t.hash],t.ack===a.CONSTANTS.POST_MESSAGE_ACK.ERROR?n.respond(t.error):t.ack===a.CONSTANTS.POST_MESSAGE_ACK.SUCCESS?n.respond(null,t.response):void 0}),o)},function(e,t,n){"use strict";function r(e){if(!e.name)throw new Error("Expected options.name");if(c.listeners.request[e.name]&&!e.override&&!a.CONFIG.MOCK_MODE)throw new Error("Post message response handler already registered: "+e.name);if(!e.handler)throw new Error("Expected options.handler");return e.errorHandler=e.errorHandler||s.util.noop,e.once&&(e.handler=s.util.once(e.handler)),c.listeners.request[e.name]=e,e.handleError=function(t){delete c.listeners.request[e.name],e.errorHandler(t)},e.window&&e.errorOnClose&&!function(){var t=setInterval(function(){e.window.closed&&(clearInterval(t),e.handleError(new Error("Post message target window is closed")))},50)}(),{cancel:function(){delete c.listeners.request[e.name]}}}function o(e,t,n,o){return t instanceof Function&&(o=n,n=t,t={}),t.name=e,t.handler=n||t.handler,t.errorHandler=o||t.errorHandler,r(t)}function i(e,t,n,o){return t instanceof Function&&(o=n,n=t,t={}),t.name=e,t.handler=n||t.handler,t.errorHandler=o||t.errorHandler,t.once=!0,r(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.listen=r,t.on=o,t.once=i;var a=n(3),s=n(13),c=n(11)},function(e,t,n){"use strict";function r(e,t){i.listeners.proxies.push({from:e,to:t}),i.listeners.proxies.push({from:t,to:e})}function o(e,t){for(var n=[],r=0;r<i.listeners.proxies.length;r++){var o=i.listeners.proxies[r];(o.to===e&&o.from===t||o.to===t&&o.from===e)&&n.push(o)}for(var a=0;a<n.length;a++)i.listeners.proxies.splice(i.listeners.proxies.indexOf(n[a]),1)}Object.defineProperty(t,"__esModule",{value:!0}),t.proxy=r,t.unproxy=o;var i=n(11)},function(e,t,n){"use strict";function r(){i.CONFIG.MOCK_MODE=!0}function o(){i.CONFIG.MOCK_MODE=!1}Object.defineProperty(t,"__esModule",{value:!0}),t.enableMockMode=r,t.disableMockMode=o;var i=n(3)}])})},function(e,t){"use strict";e.exports={APP:"hermes",LOADING_TIMEOUT:5e3,BRIDGE_NAME:"PayPalBridge",BRIDGE_CONTEXT_ROOT:"/webapps/{{app}}/bridge",PREFETCH_NAME:"prefetch",PREFETCH_CONTEXT_ROOT:"/webapps/{{app}}/prefetch",COOKIE_CHECK_NAME:"cookiecheck",COOKIE_CHECK_PATH:"/webapps/{{app}}/cookiecheck",ONETOUCH_CONTEXT_ROOT:"/webapps/{{app}}/api/auth/onetouch",STATIC_BUTTON_HIDDEN_STYLE:"paypal-button-hidden",CONTENT_CLOSE_WINDOW:"Close Window",CONTENT_LOADING:"Loading...",CONTENT_SECURE_WINDOW:"Don't see the secure PayPal browser? We'll help you re-launch the window to complete your purchase.",CONTINUE_LINK:'<a class="ppbutton" id="ppICContinue" role="button" tabindex="1" title="Relaunch secure PayPal browser">Continue <span class="frontArrow"></span></a>',SUPPORTED_AGENTS:{Chrome:27,IE:9,MSIE:9,Firefox:30,Safari:5.1,Opera:23},DEFAULT_LOCALE:"en_US",MINI_BROWSER_NAME:"PPFrame",MINI_BROWSER_HEIGHT:535,MINI_BROWSER_WIDTH:450,ONETOUCH_IFRAME_ID:"paypalOneTouchIframe",JS_BUTTON_TAGLINE_SPAN_STYLE:"paypal-button-tag-content",BUTTON_JS_URL:"//www.paypalobjects.com/api/button.js",ONETOUCH_IFRAME_URL:"//www.paypalobjects.com/api/oneTouch.html",LIVE_URL_PREFIX:"https://www.paypal.com/checkoutnow?token=",LIVE_URL_ROOT:"https://www.paypal.com",SANDBOX_URL_PREFIX:"https://www.sandbox.paypal.com/checkoutnow?token=",SANDBOX_URL_ROOT:"https://www.sandbox.paypal.com",TEMPLATES:{incontext:'<div id="ppICMask" class="ppICMask mask"></div><div class="<%=(data.error ? "ppmodal" : "ppmodal loading")%>" id="ppICModal" tabindex="-1">    <div class="pplogo"></div>    <div id="ppmsg" class="message"><%=data.secureWindow%>    <%=data.continueLink%>    </div>    <a id="closeButton" class="closeButton" role="button" title="<%=data.closeWindow%>" tabindex="2"><%=data.closeWindow%></a>    <%=(data.error ? "<div class=\'text\'>" + data.error + "</div>" : "")%></div>',loading:'<!DOCTYPE html><html lang="en">    <head>        <title>PayPal</title>        <style>            body {                font-family: "HelveticaNeue", "HelveticaNeue-Light", "Helvetica Neue Light", helvetica, arial, sans-serif;                font-size: 95%;                color: #2c2e2f;            }            .spinner {                height: 100%;                width: 100%;                position: absolute;                z-index: 10;                background: red;            }            .spinner.preloader {                position: fixed;                top: 0;                left: 0;                z-index: 1000;                background-color: #fff;            }            .spinner {                height: 100%;                width: 100%;                position: absolute;                z-index: 10;            }            .spinner .spinWrap {                width: 200px;                position: absolute;                top: 50%;                left: 50%;                margin-left: -100px;                height: 48px;                margin-top: -24px;            }            .spinner .loader {                height: 30px;                width: 30px;                position: absolute;                top: 0;                left: 50%;                margin: 0 0 0 -23px;                opacity: 1;                filter: alpha(opacity=100);                background-color: rgba(255, 255, 255, 0.701961);                -webkit-animation: rotation .7s infinite linear;                -moz-animation: rotation .7s infinite linear;                -o-animation: rotation .7s infinite linear;                animation: rotation .7s infinite linear;                border-left: 8px solid rgba(0, 0, 0, 0.2);                border-right: 8px solid rgba(0, 0, 0, 0.2);                border-bottom: 8px solid rgba(0, 0, 0, 0.2);                border-top: 8px solid #2180c0;                border-radius: 100%;            }            .spinner .loadingMessage {                -webkit-box-sizing: border-box;                -moz-box-sizing: border-box;                -ms-box-sizing: border-box;                box-sizing: border-box;                width: 100%;                margin-top: 55px;                text-align: center;                z-index: 100;            }            @-webkit-keyframes rotation {                from {                    -webkit-transform: rotate(0deg);                }                to {                    -webkit-transform: rotate(359deg);                }            }            @-moz-keyframes rotation {                from {                    -moz-transform: rotate(0deg);                }                to {                    -moz-transform: rotate(359deg);                }            }            @-o-keyframes rotation {                from {                    -o-transform: rotate(0deg);                }                to {                    -o-transform: rotate(359deg);                }            }            @keyframes rotation {                from {                    transform: rotate(0deg);                }                to {                    transform: rotate(359deg);                }            }            @media (max-width:30em) and (min-width:0) {                .spinner {                    position: fixed;                }            }        </style>    </head>    <body>        <div id="preloaderSpinner" class="preloader spinner">            <div class="spinWrap">                <p class="loader"></p>                <p class="loadingMessage" id="spinnerMessage"></p>            </div>        </div>    </body></html>'},ERROR_MESSAGES:{IC_SETUP_CALLED_TWICE:"Error: You are calling paypal.checkout.setup() more than once. This function can only be called once per page load. Any further calls will be ignored.",PAYPAL_GLOBAL_OVERRIDE:"Error: window.paypal.checkout already exists. You may have inserted the checkout.js script more than once. Ignoring further attempts to assign to window.paypal.checkout.",POSTMESSAGE_INVALID_ORIGIN:"Message received from invalid domain",IC_SETUP_MERCHANTID_ERROR:"Merchant id is required for setup!",SANDBOX_BANNER:"PayPal Incontext is running in sandbox mode. This message will not appear in production mode",MISSING_EC_TOKEN:"EC Token is not passed in url passed by ajax response",MINI_BROWSER_ALREADY_OPEN:"Mini browser window already opened and trying to change name",CANNOT_WRITE_TO_MINI_BROWSER:"unable to write to minibrowser",BUYER_CANCELLED_TRANSACTION:"Buyer cancelled the transaction",SETUP_MISSING_ELEMENT:"IC_SETUP_CONTAINER_ERROR: Can't find element ",IC_INITXO_CALLED_BEFORE_SETUP:"paypal.checkout.initXO() was called before calling paypal.checkout.setup(). Please call paypal.checkout.setup() first.",IC_STARTFLOW_CALLED_BEFORE_SETUP:"paypal.checkout.startFlow() was called before calling paypal.checkout.setup(). Please call paypal.checkout.setup() first."},FOCUSABLE_ELEMENTS:["a[href]","area[href]","input","select","textarea","button","iframe","object","embed","[tabindex]","[contenteditable]"]}},function(e,t){"use strict";e.exports={getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,t,n,r,o,i){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var a="";return n&&(n.constructor===Number?a=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n:n.constructor===String?a="; expires="+n:n.constructor===Date&&(a="; expires="+n.toUTCString())),document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+a+(o?"; domain="+o:"")+(r?"; path="+r:"")+(i?"; secure":""),!0},removeItem:function(e,t,n){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e}}},function(e,t){"use strict";function n(e){var t=e.css,n=document.createElement("style");t=t.replace(new RegExp("PPFrame","g"),e.name),n.type="text/css",e.bodyStyle=n.id="PP--IC--CSS",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),e.css=t,document.getElementsByTagName("head")[0].appendChild(n)}function r(e){if(e.bodyStyle){var t=document.getElementById(e.bodyStyle);t&&t.parentNode.removeChild(t)}}e.exports={add:n,remove:r}},function(e,t){"use strict";function n(e){return!!e.match(/Android|webOS|iPhone|iPad|iPod|bada|Symbian|Palm|CriOS|BlackBerry|IEMobile|WindowsMobile|Opera Mini/i)}function r(e){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e)}function o(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],["IE",e[1]||""]):"Chrome"===n[1]&&(e=t.match(/\bOPR\/(\d+)/),null!==e)?["Opera",e[1]]:(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(e=t.match(/version\/(\d+(\.\d{1,2}))/i))&&n.splice(1,1,e[1]),n)}e.exports={getAgent:o,isDevice:n,isWebView:r}},function(e,t,n){"use strict";function r(e,t){e=e||{};var n=a(i.TEMPLATES.incontext,{error:e.error,secureWindow:t.secureWindow,continueLink:t.continueLink,closeWindow:i.closeWindow}),r=document.createElement("div");r.id=t.name,r.innerHTML=n,document.body.appendChild(r)}function o(e){var t=a(i.TEMPLATES.loading,{});e.write(t)}var i=n(3),a=n(8);e.exports={injectIncontext:r,injectLoadingInterstitial:o}},function(e,t){"use strict";
  // John Resig - http://ejohn.org/ - MIT Licensed
  // Simple JavaScript Templating
  // http://ejohn.org/blog/javascript-micro-templating/
  var n={};e.exports=function r(e,t){t=t||{};var o=/\W/.test(e)?new Function("data","var p=[],print=function(){p.push.apply(p,arguments);};p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');return p.join('');"):n[e]=n[e]||r(document.getElementById(e).innerHTML);return o(t)}},function(e,t){"use strict";function n(e,t,n,r){r=r||e;var i;e.addEventListener?(i=function(e){n.call(r,e)},e.addEventListener(t,i,!1)):e.attachEvent&&(i=function(){var e=window.event;e.preventDefault=function(){window.event.returnValue=!1},n.call(r,e)},e.attachEvent("on"+t,i)),o.push([e,t,n,i])}function r(e,t,n){var r,i,a;for(a=0;a<o.length;a++)i=o[a],i[0]===e&&i[1]===t&&i[2]===n&&(r=i[3],r&&(e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&e.detachEvent("on"+t,r)))}var o=[];e.exports={addEvent:n,removeEvent:r}},function(e,t,n){"use strict";function r(e,t){if(e.constructor.toString().indexOf("Array")>-1||e.length>0&&"undefined"!=typeof e.item)for(var n=0;n<e.length;n++)r(e[n],t);else{var o="string"==typeof e?document.getElementById(e):e;o?t.push(o):l(s.ERROR_MESSAGES.SETUP_MISSING_ELEMENT+e)}}function o(e,t,n){return{element:e,clickFn:t,condFn:n}}function i(e,t,n,r,i,a,l){var d={lc:e.merchantConfig&&e.merchantConfig.locale||"en_US",color:i.color||"gold",shape:i.shape||"pill",size:i.size||"small"},p=window.paypal.button.create(e.merchantID,d,{label:i.label,type:"button"}),f=p.el,m=f.getElementsByTagName("BUTTON")[0];if(e.enableOneTouch&&!document.getElementById(s.ONETOUCH_IFRAME_ID)){var h=document.createElement("iframe");h.setAttribute("id",s.ONETOUCH_IFRAME_ID),h.setAttribute("src",s.ONETOUCH_IFRAME_URL),h.style.display="none",document.body.appendChild(h)}"A"===r.nodeName?(t.push(o(r,a,l)),e.oldIe&&c.addEvent(m,"click",function(){u(r.getAttribute("href"))})):t.push(o(m,a,l)),r.appendChild(f),d.label=i.label,n.push(d)}function a(e,t,n){var a=e.merchantConfig,s=a&&a.container,c=a&&a.button,u=a&&a.type||[],l=a&&a.color,d=a&&a.size,p=a&&a.shape,f=a&&a.condition,m=a&&a.click,h=a&&a.buttons,g=[];if(h&&h.length)for(var w=0;w<h.length;w++){var E=h[w],b=E.container||E.button,y="string"==typeof b?document.getElementById(b):b;E.container?i(e,n,t,y,{label:E.type||"checkout",color:E.color,shape:E.shape,size:E.size},E.click,E.condition):E.button&&n.push(o(y,E.click,E.condition))}else{r(s||c,g);for(var v=0;v<g.length;v++)if(c)n.push(o(g[v],m,f));else{var O={label:u[v]||"checkout",color:l,shape:p,size:d};i(e,n,t,g[v],O,m,f)}}return n}var s=n(3),c=n(9),u=n(11),l=n(13);e.exports=a},function(e,t,n){"use strict";var r=n(12),o=r(function(e){window.location.href=e});e.exports=o},function(e,t){"use strict";function n(e){if(!e)return e;var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}e.exports=n},function(e,t){"use strict";function n(e){window.console&&console.log(e)}e.exports=n},function(e,t){"use strict";function n(){function e(e){var t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return e()+e(!0)+e(!0)+e()}e.exports={getGUID:n}},function(e,t,n){"use strict";function r(){var e=window.performance&&window.performance.now&&window.performance.now(),t=parseInt(e||(new Date).getTime(),10);return t}function o(e){return function(){if("undefined"!=typeof window.frames[e.name].stop)window.frames[e.name].stop();else try{window.frames[e.name].document.execCommand("Stop")}catch(t){}e.onload=null,e.parentNode.removeChild(e)}}function i(e){var t=m(e),n=t+f.COOKIE_CHECK_PATH,i=c(f.COOKIE_CHECK_NAME,n),a=setTimeout(o(i),f.LOADING_TIMEOUT),u=r(),l=s(e,a,name,u);p.addEvent(i,"load",l),document.body.appendChild(i)}function a(e,t,n,o){return function(){var n=r()-o;e.prefetchLoaded=!0,h({status:"IC_HERMES_PREFETCH_COMPLETE",elapsed:n}),clearTimeout(t)}}function s(e,t,n,o){return function(){var n=r()-o;e.cookieCheckLoaded=!0,h({status:"IC_HERMES_COOKIE_CHECK_COMPLETE",elapsed:n}),clearTimeout(t)}}function c(e,t){var n;try{n=document.createElement('<iframe name="'+e+'">')}catch(r){n=document.createElement("iframe"),n.name=e}return n.setAttribute("style","margin: 0; padding: 0; border: 0px none; overflow: hidden;"),n.setAttribute("frameborder",0),n.setAttribute("border",0),n.setAttribute("scrolling","no"),n.setAttribute("allowTransparency",!0),n.setAttribute("tabindex",-1),n.setAttribute("hidden",!0),n.setAttribute("title",""),n.setAttribute("role","presentation"),n.src=t,n}function u(e){var t=m(e),n=t+f.PREFETCH_CONTEXT_ROOT+(e.debug?"?resources_prefetch=1":""),i=c(f.PREFETCH_NAME,n),s=setTimeout(o(i),f.LOADING_TIMEOUT),u=r(),l=a(e,s,name,u);p.addEvent(i,"load",l),document.body.appendChild(i)}function l(e){var t=e.sandBox?f.SANDBOX_URL_ROOT:f.LIVE_URL_ROOT,n=e.bridgeUrl?t+e.bridgeUrl:t+f.BRIDGE_CONTEXT_ROOT,r=c(f.BRIDGE_NAME,n);document.body.appendChild(r)}function d(e){h=e;var t={bridge:l,prefetch:u,thirdParty:i};return t}var p=n(9),f=n(3),m=n(16),h=function(){};e.exports=d},function(e,t,n){"use strict";function r(e){return e.domain?e.domain:e.sandBox?o.SANDBOX_URL_ROOT:o.LIVE_URL_ROOT}var o=n(3);e.exports=r},function(e,t,n){"use strict";function r(e){var t={};t.wrapper=document.createElement("div"),t.wrapper.id=e.name,t.panel=document.createElement("div"),t.panel.className="PPIC-panel PPIC-lightbox animated",t.panel.id="PPPanel";try{t.iframe=document.createElement('<iframe name="'+e.name+'" id="'+e.name+'frame" role="dialog">')}catch(n){t.iframe=document.createElement("iframe"),t.iframe.name=e.name,t.iframe.id=e.name+"frame",t.iframe.setAttribute("role","dialog")}t.iframe.frameBorder="0",t.iframe.border="0",t.iframe.scrolling="no",t.iframe.allowTransparency="true",t.mask=document.createElement("div"),t.mask.className="mask",t.loading=document.createElement("div"),t.loading.className="modal";var r=document.createElement("div");return r.className="logo",t.loading.appendChild(r),t.loading.className=t.loading.className+" loading",t.panel.appendChild(t.iframe),t.wrapper.appendChild(t.mask),t.wrapper.appendChild(t.loading),t.wrapper.appendChild(t.panel),document.body.className=document.body.className+" "+e.name,document.body.appendChild(t.wrapper),t}function o(e){var t=l(e),n=t+c.ONETOUCH_CONTEXT_ROOT+"?guid="+e.frameGuid+(e.debug?"&incontext_iframe=1":""),r=new XMLHttpRequest;if("withCredentials"in r||"undefined"==typeof XDomainRequest||(r=new XDomainRequest),r&&"withCredentials"in r)try{r.withCredentials=!0,r.open("GET",n),r.onreadystatechange=function(){if(4===r.readyState&&200===r.status){var t=JSON.parse(r.responseText),n=t&&t.data&&t.data.remembered;n&&(e.oneTouchEnabled=!0)}},r.onerror=function(){e.oneTouchEnabled=!1},r.send()}catch(o){e.oneTouchEnabled=!1}}function i(e){return function(t){null!==t.which||null===t.charCode&&null===t.keyCode||(t.which=null!==t.charCode?t.charCode:t.keyCode),27===t.which&&e()}}function a(e,t,n){e.lightbox.panel.className+=" bounceOutDown",setTimeout(function(){u(t),e.lightbox.wrapper.className="",t.oneTouchEnabled=!1,n&&n()},700)}function s(e){var t=e.oneTouchEnabled,n=e.thirdPartyCookiesEnabled,r=e.forceLightboxDisabled,o=!e.needsIframeBridge;return t&&n&&!r&&o}var c=n(3),u=n(18),l=n(16),d={build:r,destroy:a,toggle:i,isEligible:o,isEnabled:s};e.exports=d},function(e,t){"use strict";function n(e){for(var t=document.getElementById(e.name);t&&t.parentNode;)t.parentNode.removeChild(t),n(e)}e.exports=n},function(e,t){"use strict";function n(e){function t(){var t,n,r,o,i,a,s=document.getElementById("ppICMask"),c=document.documentElement?document.documentElement.clientWidth:window.innerWidth;window.innerHeight&&window.scrollMaxY?(r=c+window.scrollMaxX,o=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(r=document.body.scrollWidth,o=document.body.scrollHeight):(r=document.body.offsetWidth,o=document.body.offsetHeight),window.innerHeight?(t=c,n=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(t=document.documentElement.clientWidth,n=document.documentElement.clientHeight):document.body&&(t=document.body.clientWidth,n=document.body.clientHeight),i=t>r?t:r,a=n>o?n:o,s&&(s.style.width=i+"px",s.style.height=a+"px"),e&&document.body.className.indexOf(e)===-1&&(document.body.className+=" "+e)}function n(){var e=document.getElementById("ppICMask"),t=e&&e.parentNode;t&&t.parentNode.removeChild(t)}return{create:t,hide:n}}e.exports=n},function(e,t,n){"use strict";function r(){o.EventEmitter.call(this)}var o=n(21),i=n(22);i.inherits(r,o.EventEmitter),e.exports=r},function(e,t){
  // Copyright Joyent, Inc. and other Node contributors.
  //
  // Permission is hereby granted, free of charge, to any person obtaining a
  // copy of this software and associated documentation files (the
  // "Software"), to deal in the Software without restriction, including
  // without limitation the rights to use, copy, modify, merge, publish,
  // distribute, sublicense, and/or sell copies of the Software, and to permit
  // persons to whom the Software is furnished to do so, subject to the
  // following conditions:
  //
  // The above copyright notice and this permission notice shall be included
  // in all copies or substantial portions of the Software.
  //
  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  // USE OR OTHER DEALINGS IN THE SOFTWARE.
  function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,o,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,c=0;c<o;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var o;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e,r){function o(e,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),c(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function c(e,n,r){if(e.customInspect&&n&&P(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=u(e,n);if(i)return i;var a=Object.keys(n),h=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(P(n)){var g=n.name?": "+n.name:"";return e.stylize("[Function"+g+"]","special")}if(O(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return l(n)}var w="",E=!1,y=["{","}"];if(m(n)&&(E=!0,y=["[","]"]),P(n)){var v=n.name?": "+n.name:"";w=" [Function"+v+"]"}if(O(n)&&(w=" "+RegExp.prototype.toString.call(n)),S(n)&&(w=" "+Date.prototype.toUTCString.call(n)),T(n)&&(w=" "+l(n)),0===a.length&&(!E||0==n.length))return y[0]+w+y[1];if(r<0)return O(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var _;return _=E?d(e,n,r,h,a):a.map(function(t){return p(e,n,r,h,t,E)}),e.seen.pop(),f(_,w,y)}function u(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return E(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)A(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))}),i}function p(e,t,n,r,o,i){var a,s,u;if(u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},u.get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?c(e,u.value,null):c(e,u.value,n-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n"))):s=e.stylize("[Circular]","special")),v(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e,t,n){var r=0,o=e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function g(e){return null===e}function w(e){return null==e}function E(e){return"number"==typeof e}function b(e){return"string"==typeof e}function y(e){return"symbol"==typeof e}function v(e){return void 0===e}function O(e){return _(e)&&"[object RegExp]"===x(e)}function _(e){return"object"==typeof e&&null!==e}function S(e){return _(e)&&"[object Date]"===x(e)}function T(e){return _(e)&&("[object Error]"===x(e)||e instanceof Error)}function P(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function x(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}function C(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),L[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}// Copyright Joyent, Inc. and other Node contributors.
  //
  // Permission is hereby granted, free of charge, to any person obtaining a
  // copy of this software and associated documentation files (the
  // "Software"), to deal in the Software without restriction, including
  // without limitation the rights to use, copy, modify, merge, publish,
  // distribute, sublicense, and/or sell copies of the Software, and to permit
  // persons to whom the Software is furnished to do so, subject to the
  // following conditions:
  //
  // The above copyright notice and this permission notice shall be included
  // in all copies or substantial portions of the Software.
  //
  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  // USE OR OTHER DEALINGS IN THE SOFTWARE.
  var R=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(e).replace(R,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])a+=g(s)||!_(s)?" "+s:" "+o(s);return a},t.deprecate=function(n,o){function i(){if(!a){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),a=!0}return n.apply(this,arguments)}if(v(e.process))return function(){return t.deprecate(n,o).apply(this,arguments)};if(r.noDeprecation===!0)return n;var a=!1;return i};var k,M={};t.debuglog=function(e){if(v(k)&&(k=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!M[e])if(new RegExp("\\b"+e+"\\b","i").test(k)){var n=r.pid;M[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else M[e]=function(){};return M[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=m,t.isBoolean=h,t.isNull=g,t.isNullOrUndefined=w,t.isNumber=E,t.isString=b,t.isSymbol=y,t.isUndefined=v,t.isRegExp=O,t.isObject=_,t.isDate=S,t.isError=T,t.isFunction=P,t.isPrimitive=N,t.isBuffer=n(24);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=n(25),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,function(){return this}(),n(23))},function(e,t){function n(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&r())}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function i(){}var a,s=e.exports={},c=[],u=!1,l=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new o(e,t)),1!==c.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=i,s.addListener=i,s.once=i,s.off=i,s.removeListener=i,s.removeAllListeners=i,s.emit=i,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t,n){var r=document.getElementsByClassName(n)[0],o=function(e){var n=document.getElementsByClassName(t)[0];n&&n.focus()};return{block:i(r,o),unblock:a(r,o)}}var o=n(9),i=function(e,t){return function(){o.addEvent(e,"blur",t)}},a=function(e,t){return function(){o.removeEvent(e,"blur",t)}};e.exports=r},function(e,t){"use strict";e.exports=function(e){var t=window.setInterval(function(){"complete"===document.readyState&&(window.clearInterval(t),e())},10)}},function(e,t){"use strict";function n(e,t){var n=document.head||document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");r.async="async",r.src=e,r.onload=r.onreadystatechange=function(e,o){(o||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,n&&r.parentNode&&n.removeChild(r),r=void 0,o||t())},n.insertBefore(r,n.firstChild)}e.exports=n},function(e,t){"use strict";function n(e){var t=e.split("EC-");return t.length>1?"EC-"+t[1].split("&")[0]:null}e.exports=n},function(e,t){"use strict";e.exports=function(){function e(e){var t="name"in e?e.name:a.call(e).match(u)[1],n="_name"in e?e._name:t;return"function"!=typeof e?"":n}function t(t,n,r){return"function"==typeof n&&(r=n,n=e(r).replace(/_$/,"")),i(t,n,{configurable:!0,writable:!0,value:r})}function n(e,t){return t._name=e,t}var r=Object.getOwnPropertyNames,o="object"==typeof window?Object.getOwnPropertyNames(window):[],i=Object.defineProperty,a=Function.prototype.toString,s=Object.create,c=Object.prototype.hasOwnProperty,u=/^\n?function\s?(\w*)?_?\(/,l=s(null),d=function(){var e=Math.random().toString(36).slice(2);return e in l?d():l[e]=e},p=d();t(Object,n("getOwnPropertyNames",function(e){var t,n=Object(e);if(n.toString&&"[object Window]"===n.toString())try{t=r(e)}catch(i){t=o}else t=r(e);try{c.call(e,p)&&t.splice(t.indexOf(p),1)}catch(a){return o}return t}))}},function(module,exports){"use strict";window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(e){if(e instanceof Object){var t="";if(e.constructor===Array){for(var n=0;n<e.length;t+=this.stringify(e[n])+",",n++);return"["+t.substr(0,t.length-1)+"]"}if(e.toString!==Object.prototype.toString)return'"'+e.toString().replace(/"/g,"\\$&")+'"';for(var r in e)t+='"'+r.replace(/"/g,"\\$&")+'":'+this.stringify(e[r])+",";return"{"+t.substr(0,t.length-1)+"}"}return"string"==typeof e?'"'+e.replace(/"/g,"\\$&")+'"':String(e)}}),Date.now||(Date.now=function(){return(new Date).getTime()})}]),/*!
   * Copyright (c) 2016 Daniel Shihoon Lee <daniel@shihoonlee.com>
   * Licensed under BSD2
   * (https://github.com/danieslee/angular-paypal-button/blob/master/LICENSE)
   */
  angular.module("dsl-paypal-button",[]).provider("PaypalButtonConfig",function(){var e={merchantId:"",environment:"sandbox"};this.setMerchantId=function(t){e.merchantId=t},this.setEnvironment=function(t){e.environment=t},this.$get=function(){return e}}).directive("paypalButton",["PaypalButtonConfig","$compile","$timeout",function(e,t,n){var r=function(e,t){var n;for(n=0;n<Math.min(e.length,t.length)&&e.charAt(n)==t.charAt(n);n++);return n};return{restrict:"E",scope:{url:"&","return":"&",cancel:"&"},link:function(o,i,a){var s=Math.random().toString(36).substr(2,5),c="dslPaypalBtn"+s,u=angular.element('<div ng-if="notPurchased" id="'+c+'"></div>');t(u)(o),i.append(u),o.notPurchased=!0;var l=o.url,d=o["return"],p=o.cancel,f=a.color||"gold",m=a.size||"small",h=a.shape||"pill";n(function(){var t=loadPaypal();window.paypalCheckoutReady=function(){t.checkout.setup(e.merchantId,{environment:e.environment,container:c,color:f,size:m,shape:h,click:function(){t.checkout.initXO();var e,n;l().then(function(r){t.checkout.startFlow(r.redirectUrl,{async:!0}),e=r.returnUrl,n=r.cancelUrl},function(){t.checkout.closeFlow()});var i=function(t){var o=t.match(/(&|\?)token=(.*?)(&|$)/),i=t.match(/(&|\?)PayerID=(.*?)(&|$)/),a=r(t,e),s=r(t,n),c={token:o?o[2]:null,payerId:i?i[2]:null,type:a>s?"return":"cancel"};return c},a=!1,s=function(e){if(!a){a=!0;var t=e.returnUrl,n=i(t);o.notPurchased=!1,o.$apply(),"return"===n.type?d({args:n}):"cancel"===n.type&&p({args:n})}};t.checkout.events.addListener("return",s),t.checkout.events.addListener("cancel",s)}})}},100)}}}]);