Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/installments

Package Overview
Dependencies
Maintainers
29
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/installments - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

dist/installments.js

@@ -1124,5 +1124,5 @@ window.installmentsModal = function(modules) {

nonce: cspNonce
}, "\n .installments {\n outline-style: none;\n padding-bottom: 20px;\n position: relative;\n }\n\n .installments .header {\n box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2);\n padding-right: 50px;\n position: relative;\n }\n\n .installments h3 {\n padding: 15px 20px;\n margin:0;\n font-weight: normal;\n font-size: 1em;\n }\n\n .installments ul {\n margin:0;\n padding:0;\n }\n .installments li .list-wrap {\n border: 1px solid #fff;\n border-bottom-color: #ccc;\n padding: 13px;\n margin: 0 10px;\n display: flex;\n text-decoration: none;\n color: inherit;\n }\n .installments li .list-wrap:hover {\n background: #F6F7FA;\n }\n .installments li .list-wrap:active {\n border:1px solid #000;\n }\n .installments li.selected .list-wrap {\n background: #F6F7FA;\n }\n .installments .months {\n align-items: center;\n display: flex;\n width: 50px;\n position: relative;\n }\n .installments .months:after {\n content: \"\";\n width: 1px;\n top: 0;\n bottom: 0;\n background: #ccc;\n position: absolute;\n right: 15px;\n }\n .installments .details {\n font-size: 0.9em;\n }\n .installments .details .price {\n display: block;\n font-weight:bold;\n margin-bottom:6px;\n }\n .installments .agree-info {\n font-size: 0.9em;\n text-align: center;\n }\n \n .installments .btn-container {\n text-align: center;\n padding: 15px;\n }\n .installments .pay-btn{\n border: 0;\n background: #2C2E2F;\n padding: 10px 20px;\n border-radius: 25px;\n line-height: 1.5em;\n color: #fff;\n font-weight: bold;\n font-size: 1em;\n transition: background-color 240ms ease;\n cursor: pointer;\n }\n .installments .pay-btn:hover,\n .installments .pay-btn:focus {\n filter: brightness(1.2);\n outline: 0;\n }\n .installments .pay-btn:active,\n .installments .pay-btn:focus {\n text-decoration: underline; \n }\n .installments .pay-btn .amount{\n margin-left:5px;\n }\n\n .installments .close-btn {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 16px;\n height: 16px;\n opacity: 0.6;\n z-index: 1;\n cursor: pointer;\n }\n .installments .close-btn:hover {\n opacity: 1;\n }\n .installments .close-btn:before, \n .installments .close-btn:after {\n position: absolute;\n left: 8px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: #000;\n transform: rotate(45deg);\n }\n .installments .close-btn:after {\n transform: rotate(-45deg);\n }\n "), h("div", {
}, "\n .installments {\n outline-style: none;\n padding-bottom: 20px;\n position: relative;\n }\n\n .installments .header {\n box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2);\n padding-right: 50px;\n position: relative;\n }\n\n .installments h3 {\n padding: 15px 20px;\n margin:0;\n font-weight: normal;\n font-size: 1em;\n }\n\n .installments button {\n background: #fff;\n border: none;\n }\n\n .installments ul {\n margin:0;\n padding:0;\n }\n .installments li {\n padding: 0 10px;\n }\n .installments li .list-wrap {\n border: 1px solid #fff;\n border-bottom-color: #ccc;\n padding: 13px;\n display: flex;\n text-decoration: none;\n color: inherit;\n width: 100%;\n text-align: left;\n align-items: inherit;\n font-size: 1em;\n font-family: inherit;\n cursor: pointer;\n }\n .installments li .list-wrap:hover {\n background: #F6F7FA;\n }\n .installments li .list-wrap:active {\n border:1px solid #000;\n }\n .installments li.selected .list-wrap {\n background: #F6F7FA;\n }\n .installments .months {\n align-items: center;\n display: flex;\n width: 50px;\n position: relative;\n }\n .installments .months:after {\n content: \"\";\n width: 1px;\n top: 0;\n bottom: 0;\n background: #ccc;\n position: absolute;\n right: 15px;\n }\n .installments .details {\n font-size: 0.9em;\n }\n .installments .details .price {\n display: block;\n font-weight:bold;\n margin-bottom:6px;\n }\n\n .installments .agree-info {\n font-size: 0.9em;\n text-align: center;\n padding: 0 10px;\n }\n \n .installments .btn-container {\n text-align: center;\n padding: 15px;\n }\n .installments .pay-btn{\n border: 0;\n background: #2C2E2F;\n padding: 10px 20px;\n border-radius: 25px;\n line-height: 1.5em;\n color: #fff;\n font-weight: bold;\n font-size: 1em;\n transition: background-color 240ms ease;\n cursor: pointer;\n }\n .installments .pay-btn:hover,\n .installments .pay-btn:focus {\n filter: brightness(1.2);\n outline: 0;\n }\n .installments .pay-btn:active,\n .installments .pay-btn:focus {\n text-decoration: underline; \n }\n .installments .pay-btn .amount{\n margin-left:5px;\n }\n\n .installments .close-btn {\n position: absolute;\n right: 11px;\n top: 11px;\n width: 26px;\n height: 26px;\n opacity: 0.6;\n z-index: 1;\n cursor: pointer;\n }\n .installments .close-btn:hover {\n opacity: 1;\n }\n .installments .close-btn:before, \n .installments .close-btn:after {\n position: absolute;\n left: 12px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: #000;\n transform: rotate(45deg);\n top: 5px;\n }\n .installments .close-btn:after {\n transform: rotate(-45deg);\n }\n "), h("div", {
class: "installments"
}, h("a", {
}, h("button", {
class: "close-btn",

@@ -1133,5 +1133,4 @@ onClick: function() {

},
href: "#",
"aria-label": "close",
role: "button"
type: "button"
}), h("div", {

@@ -1141,8 +1140,10 @@ className: "header"

className: "title"
}, content.header)), h("ul", null, data.options.map((function(option, i) {
}, content.header)), h("ul", {
id: "installments-list"
}, data.options.map((function(option, i) {
return h("li", {
className: selectedIndex === i ? "selected" : ""
}, h("a", {
}, h("button", {
type: "button",
class: "list-wrap",
href: "#",
onClick: function(event) {

@@ -1149,0 +1150,0 @@ !function(event, option, index) {

@@ -1,1 +0,1 @@

window.installmentsModal=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";t.r(e),t.d(e,"setupInstallments",(function(){return Tn}));var r,o,i,u,a,l={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(n,e){for(var t in e)n[t]=e[t];return n}function _(n){var e=n.parentNode;e&&e.removeChild(n)}function h(n,e,t){var r,o,i,u=arguments,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);if(null!=t&&(a.children=t),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===a[i]&&(a[i]=n.defaultProps[i]);return d(n,a,r,o,null)}function d(n,e,t,o,i){var u={type:n,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i};return null==i&&(u.__v=u),null!=r.vnode&&r.vnode(u),u}function p(n){return n.children}function v(n,e){this.props=n,this.context=e}function m(n,e){if(null==e)return n.__?m(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?m(n):null}function y(n){var e,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return y(n)}}function w(n){(!n.__d&&(n.__d=!0)&&o.push(n)&&!g.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||i)(g)}function g(){for(var n;g.__r=o.length;)n=o.sort((function(n,e){return n.__v.__b-e.__v.__b})),o=[],n.some((function(n){var e,t,r,o,i,u,a;n.__d&&(u=(i=(e=n).__v).__e,(a=e.__P)&&(t=[],(r=f({},i)).__v=r,o=N(a,i,r,e.__n,void 0!==a.ownerSVGElement,null!=i.__h?[u]:null,t,null==u?m(i):u,i.__h),C(t,i),o!=u&&y(i)))}))}function b(n,e,t,r,o,i,u,a,s,f){var h,v,y,w,g,b,x,j=r&&r.__k||c,E=j.length;for(s==l&&(s=null!=u?u[0]:E?m(r,0):null),t.__k=[],h=0;h<e.length;h++)if(null!=(w=t.__k[h]=null==(w=e[h])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w?d(null,w,null,null,w):Array.isArray(w)?d(p,{children:w},null,null,null):null!=w.__e||null!=w.__c?d(w.type,w.props,w.key,null,w.__v):w)){if(w.__=t,w.__b=t.__b+1,null===(y=j[h])||y&&w.key==y.key&&w.type===y.type)j[h]=void 0;else for(v=0;v<E;v++){if((y=j[v])&&w.key==y.key&&w.type===y.type){j[v]=void 0;break}y=null}g=N(n,w,y=y||l,o,i,u,a,s,f),(v=w.ref)&&y.ref!=v&&(x||(x=[]),y.ref&&x.push(y.ref,null,w),x.push(v,w.__c||g,w)),null!=g?(null==b&&(b=g),s=k(n,w,y,j,u,g,s),f||"option"!=t.type?"function"==typeof t.type&&(t.__d=s):n.value=""):s&&y.__e==s&&s.parentNode!=n&&(s=m(y))}if(t.__e=b,null!=u&&"function"!=typeof t.type)for(h=u.length;h--;)null!=u[h]&&_(u[h]);for(h=E;h--;)null!=j[h]&&A(j[h],j[h]);if(x)for(h=0;h<x.length;h++)T(x[h],x[++h],x[++h])}function k(n,e,t,r,o,i,u){var a,l,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(o==t||i!=u||null==i.parentNode)n:if(null==u||u.parentNode!==n)n.appendChild(i),a=null;else{for(l=u,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==i)break n;n.insertBefore(i,u),a=u}return void 0!==a?a:i.nextSibling}function x(n,e,t){"-"===e[0]?n.setProperty(e,t):n[e]=null==t?"":"number"!=typeof t||s.test(e)?t:t+"px"}function j(n,e,t,r,o){var i,u,a;if(o&&"className"==e&&(e="class"),"style"===e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(e in r)t&&e in t||x(n.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||x(n.style,e,t[e])}else"o"===e[0]&&"n"===e[1]?(i=e!==(e=e.replace(/Capture$/,"")),(u=e.toLowerCase())in n&&(e=u),e=e.slice(2),n.l||(n.l={}),n.l[e+i]=t,a=i?S:E,t?r||n.addEventListener(e,a,i):n.removeEventListener(e,a,i)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&"size"!==e&&"download"!==e&&"href"!==e&&!o&&e in n?n[e]=null==t?"":t:"function"!=typeof t&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/xlink:?/,""))?null==t||!1===t?n.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),t):null==t||!1===t&&!/^ar/.test(e)?n.removeAttribute(e):n.setAttribute(e,t))}function E(n){this.l[n.type+!1](r.event?r.event(n):n)}function S(n){this.l[n.type+!0](r.event?r.event(n):n)}function P(n,e,t){var r,o;for(r=0;r<n.__k.length;r++)(o=n.__k[r])&&(o.__=n,o.__e&&("function"==typeof o.type&&o.__k.length>1&&P(o,e,t),e=k(t,o,o,n.__k,null,o.__e,e),"function"==typeof n.type&&(n.__d=e)))}function N(n,e,t,o,i,u,a,l,c){var s,_,h,d,m,y,w,g,k,x,j,E=e.type;if(void 0!==e.constructor)return null;null!=t.__h&&(c=t.__h,l=e.__e=t.__e,e.__h=null,u=[l]),(s=r.__b)&&s(e);try{n:if("function"==typeof E){if(g=e.props,k=(s=E.contextType)&&o[s.__c],x=s?k?k.props.value:s.__:o,t.__c?w=(_=e.__c=t.__c).__=_.__E:("prototype"in E&&E.prototype.render?e.__c=_=new E(g,x):(e.__c=_=new v(g,x),_.constructor=E,_.render=O),k&&k.sub(_),_.props=g,_.state||(_.state={}),_.context=x,_.__n=o,h=_.__d=!0,_.__h=[]),null==_.__s&&(_.__s=_.state),null!=E.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=f({},_.__s)),f(_.__s,E.getDerivedStateFromProps(g,_.__s))),d=_.props,m=_.state,h)null==E.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==d&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(g,x),!_.__e&&null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(g,_.__s,x)||e.__v===t.__v){_.props=g,_.state=_.__s,e.__v!==t.__v&&(_.__d=!1),_.__v=e,e.__e=t.__e,e.__k=t.__k,_.__h.length&&a.push(_),P(e,l,n);break n}null!=_.componentWillUpdate&&_.componentWillUpdate(g,_.__s,x),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(d,m,y)}))}_.context=x,_.props=g,_.state=_.__s,(s=r.__r)&&s(e),_.__d=!1,_.__v=e,_.__P=n,s=_.render(_.props,_.state,_.context),_.state=_.__s,null!=_.getChildContext&&(o=f(f({},o),_.getChildContext())),h||null==_.getSnapshotBeforeUpdate||(y=_.getSnapshotBeforeUpdate(d,m)),j=null!=s&&s.type==p&&null==s.key?s.props.children:s,b(n,Array.isArray(j)?j:[j],e,t,o,i,u,a,l,c),_.base=e.__e,e.__h=null,_.__h.length&&a.push(_),w&&(_.__E=_.__=null),_.__e=!1}else null==u&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=W(t.__e,e,t,o,i,u,a,c);(s=r.diffed)&&s(e)}catch(n){e.__v=null,(c||null!=u)&&(e.__e=l,e.__h=!!c,u[u.indexOf(l)]=null),r.__e(n,e,t)}return e.__e}function C(n,e){r.__c&&r.__c(e,n),n.some((function(e){try{n=e.__h,e.__h=[],n.some((function(n){n.call(e)}))}catch(n){r.__e(n,e.__v)}}))}function W(n,e,t,r,o,i,u,a){var s,f,_,h,d,p=t.props,v=e.props;if(o="svg"===e.type||o,null!=i)for(s=0;s<i.length;s++)if(null!=(f=i[s])&&((null===e.type?3===f.nodeType:f.localName===e.type)||n==f)){n=f,i[s]=null;break}if(null==n){if(null===e.type)return document.createTextNode(v);n=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,v.is&&{is:v.is}),i=null,a=!1}if(null===e.type)p===v||a&&n.data===v||(n.data=v);else{if(null!=i&&(i=c.slice.call(n.childNodes)),_=(p=t.props||l).dangerouslySetInnerHTML,h=v.dangerouslySetInnerHTML,!a){if(null!=i)for(p={},d=0;d<n.attributes.length;d++)p[n.attributes[d].name]=n.attributes[d].value;(h||_)&&(h&&(_&&h.__html==_.__html||h.__html===n.innerHTML)||(n.innerHTML=h&&h.__html||""))}(function(n,e,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in e||j(n,i,null,t[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===e[i]||j(n,i,e[i],t[i],r)})(n,v,p,o,a),h?e.__k=[]:(s=e.props.children,b(n,Array.isArray(s)?s:[s],e,t,r,"foreignObject"!==e.type&&o,i,u,l,a)),a||("value"in v&&void 0!==(s=v.value)&&(s!==n.value||"progress"===e.type&&!s)&&j(n,"value",s,p.value,!1),"checked"in v&&void 0!==(s=v.checked)&&s!==n.checked&&j(n,"checked",s,p.checked,!1))}return n}function T(n,e,t){try{"function"==typeof n?n(e):n.current=e}catch(n){r.__e(n,t)}}function A(n,e,t){var o,i,u;if(r.unmount&&r.unmount(n),(o=n.ref)&&(o.current&&o.current!==n.__e||T(o,null,e)),t||"function"==typeof n.type||(t=null!=(i=n.__e)),n.__e=n.__d=void 0,null!=(o=n.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){r.__e(n,e)}o.base=o.__P=null}if(o=n.__k)for(u=0;u<o.length;u++)o[u]&&A(o[u],e,t);null!=i&&_(i)}function O(n,e,t){return this.constructor(n,t)}r={__e:function(n,e){for(var t,r,o,i=e.__h;e=e.__;)if((t=e.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n),o=t.__d),o)return e.__h=i,t.__E=t}catch(e){n=e}throw n}},v.prototype.setState=function(n,e){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof n&&(n=n(f({},t),this.props)),n&&f(t,n),null!=n&&this.__v&&(e&&this.__h.push(e),w(this))},v.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},v.prototype.render=p,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0,a=l;var H,M,D,F=0,z=[],R=r.__r,U=r.diffed,L=r.__c,B=r.unmount;function I(n,e){r.__h&&r.__h(M,n,F||e),F=0;var t=M.__H||(M.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function q(n){return F=1,function(n,e,t){var r=I(H++,2);return r.t=n,r.__c||(r.__=[K(void 0,e),function(n){var e=r.t(r.__[0],n);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=M),r.__}(K,n)}function $(n,e){var t=I(H++,3);!r.__s&&function(n,e){return!n||n.length!==e.length||e.some((function(e,t){return e!==n[t]}))}(t.__H,e)&&(t.__=n,t.__H=e,M.__H.__h.push(t))}function G(){z.some((function(n){if(n.__P)try{n.__H.__h.forEach(J),n.__H.__h.forEach(Z),n.__H.__h=[]}catch(e){return n.__H.__h=[],r.__e(e,n.__v),!0}})),z=[]}r.__r=function(n){R&&R(n),H=0;var e=(M=n.__c).__H;e&&(e.__h.forEach(J),e.__h.forEach(Z),e.__h=[])},r.diffed=function(n){U&&U(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(1!==z.push(e)&&D===r.requestAnimationFrame||((D=r.requestAnimationFrame)||function(n){var e,t=function(){clearTimeout(r),V&&cancelAnimationFrame(e),setTimeout(n)},r=setTimeout(t,100);V&&(e=requestAnimationFrame(t))})(G))},r.__c=function(n,e){e.some((function(n){try{n.__h.forEach(J),n.__h=n.__h.filter((function(n){return!n.__||Z(n)}))}catch(t){e.some((function(n){n.__h&&(n.__h=[])})),e=[],r.__e(t,n.__v)}})),L&&L(n,e)},r.unmount=function(n){B&&B(n);var e=n.__c;if(e&&e.__H)try{e.__H.__.forEach(J)}catch(n){r.__e(n,e.__v)}};var V="function"==typeof requestAnimationFrame;function J(n){"function"==typeof n.u&&n.u()}function Z(n){n.u=n.__()}function K(n,e){return"function"==typeof e?e(n):e}function Q(n){try{if(!n)return!1;if("undefined"!=typeof Promise&&n instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&n instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&n instanceof window.constructor)return!1;var e={}.toString;if(e){var t=e.call(n);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof n.then)return!0}catch(n){return!1}return!1}var X,Y=[],nn=[],en=0;function tn(){if(!en&&X){var n=X;X=null,n.resolve()}}function rn(){en+=1}function on(){en-=1,tn()}var un=function(){function n(n){var e=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],n){var t,r,o=!1,i=!1,u=!1;rn();try{n((function(n){u?e.resolve(n):(o=!0,t=n)}),(function(n){u?e.reject(n):(i=!0,r=n)}))}catch(n){return on(),void this.reject(n)}on(),u=!0,o?this.resolve(t):i&&this.reject(r)}}var e=n.prototype;return e.resolve=function(n){if(this.resolved||this.rejected)return this;if(Q(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},e.reject=function(n){var e=this;if(this.resolved||this.rejected)return this;if(Q(n))throw new Error("Can not reject promise with another promise");if(!n){var t=n&&"function"==typeof n.toString?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout((function(){e.errorHandled||function(n,e){if(-1===Y.indexOf(n)){Y.push(n),setTimeout((function(){throw n}),1);for(var t=0;t<nn.length;t++)nn[t](n,e)}}(n,e)}),1),this.dispatch(),this},e.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},e.dispatch=function(){var e=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(e||t)){this.dispatching=!0,rn();for(var o=function(n,e){return n.then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))},i=0;i<r.length;i++){var u=r[i],a=u.onSuccess,l=u.onError,c=u.promise,s=void 0;if(e)try{s=a?a(this.value):this.value}catch(n){c.reject(n);continue}else if(t){if(!l){c.reject(this.error);continue}try{s=l(this.error)}catch(n){c.reject(n);continue}}s instanceof n&&(s.resolved||s.rejected)?(s.resolved?c.resolve(s.value):c.reject(s.error),s.errorHandled=!0):Q(s)?s instanceof n&&(s.resolved||s.rejected)?s.resolved?c.resolve(s.value):c.reject(s.error):o(s,c):c.resolve(s)}r.length=0,this.dispatching=!1,on()}},e.then=function(e,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new n;return this.handlers.push({promise:r,onSuccess:e,onError:t}),this.errorHandled=!0,this.dispatch(),r},e.catch=function(n){return this.then(void 0,n)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return n.try(e).then((function(){return t}))}),(function(t){return n.try(e).then((function(){throw t}))}))},e.timeout=function(n,e){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(e||new Error("Promise timed out after "+n+"ms"))}),n);return this.then((function(n){return clearTimeout(r),n}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.resolve=function(e){return e instanceof n?e:Q(e)?new n((function(n,t){return e.then(n,t)})):(new n).resolve(e)},n.reject=function(e){return(new n).reject(e)},n.asyncReject=function(e){return(new n).asyncReject(e)},n.all=function(e){var t=new n,r=e.length,o=[];if(!r)return t.resolve(o),t;for(var i=function(n,e,i){return e.then((function(e){o[n]=e,0==(r-=1)&&t.resolve(o)}),(function(n){i.reject(n)}))},u=0;u<e.length;u++){var a=e[u];if(a instanceof n){if(a.resolved){o[u]=a.value,r-=1;continue}}else if(!Q(a)){o[u]=a,r-=1;continue}i(u,n.resolve(a),t)}return 0===r&&t.resolve(o),t},n.hash=function(e){var t={},r=[],o=function(n){if(e.hasOwnProperty(n)){var o=e[n];Q(o)?r.push(o.then((function(e){t[n]=e}))):t[n]=o}};for(var i in e)o(i);return n.all(r).then((function(){return t}))},n.map=function(e,t){return n.all(e.map(t))},n.onPossiblyUnhandledException=function(n){return function(n){return nn.push(n),{cancel:function(){nn.splice(nn.indexOf(n),1)}}}(n)},n.try=function(e,t,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;rn();try{o=e.apply(t,r||[])}catch(e){return on(),n.reject(e)}return on(),n.resolve(o)},n.delay=function(e){return new n((function(n){setTimeout(n,e)}))},n.isPromise=function(e){return!!(e&&e instanceof n)||Q(e)},n.flush=function(){return e=X=X||new n,tn(),e;var e},n}();function an(){return(an=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}var ln="Call was rejected by callee.\r\n";function cn(n){return void 0===n&&(n=window),"about:"===n.location.protocol}function sn(n){try{return!0}catch(n){}return!1}function fn(n){void 0===n&&(n=window);var e=n.location;if(!e)throw new Error("Can not read window location");var t=e.protocol;if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=function(n){if(void 0===n&&(n=window),n)try{if(n.parent&&n.parent!==n)return n.parent}catch(n){}}(n);return r&&sn()?fn(r):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function _n(n){void 0===n&&(n=window);var e=fn(n);return e&&n.mockDomain&&0===n.mockDomain.indexOf("mock:")?n.mockDomain:e}var hn=[],dn=[];function pn(n,e){void 0===e&&(e=!0);try{if(n===window)return!1}catch(n){return!0}try{if(!n)return!0}catch(n){return!0}try{if(n.closed)return!0}catch(n){return!n||n.message!==ln}if(e&&function(n){if(!function(n){try{if(n===window)return!0}catch(n){}try{var e=Object.getOwnPropertyDescriptor(n,"location");if(e&&!1===e.enumerable)return!1}catch(n){}try{if(cn(n)&&sn())return!0}catch(n){}try{if(fn(n)===fn(window))return!0}catch(n){}return!1}(n))return!1;try{if(n===window)return!0;if(cn(n)&&sn())return!0;if(_n(window)===_n(n))return!0}catch(n){}return!1}(n))try{if(n.mockclosed)return!0}catch(n){}try{if(!n.parent||!n.top)return!0}catch(n){}var t=function(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}(hn,n);if(-1!==t){var r=dn[t];if(r&&function(n){if(!n.contentWindow)return!0;if(!n.parentNode)return!0;var e=n.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(n)){for(var t=n;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!e.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function vn(n){try{if(n===window)return!0}catch(n){if(n&&n.message===ln)return!0}try{if("[object Window]"==={}.toString.call(n))return!0}catch(n){if(n&&n.message===ln)return!0}try{if(window.Window&&n instanceof window.Window)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.self===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.parent===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.top===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&"__unlikely_value__"===n.__cross_domain_utils_window_check__)return!1}catch(n){return!0}try{if("postMessage"in n&&"self"in n&&"location"in n)return!0}catch(n){}return!1}function mn(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}var yn,wn=function(){function n(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,t=0;t<e.length;t++){var r=e[t];if(vn(r)&&pn(r)){if(n)try{n.delete(r)}catch(n){}e.splice(t,1),this.values.splice(t,1),t-=1}}},e.isSafeToReadWrite=function(n){return!vn(n)},e.set=function(n,e){if(!n)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(n,e)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=this.name,o=n[r];return void(o&&o[0]===n?o[1]=e:Object.defineProperty(n,r,{value:[n,e],writable:!0}))}catch(n){}this._cleanupClosedWindows();var i=this.keys,u=this.values,a=mn(i,n);-1===a?(i.push(n),u.push(e)):u[a]=e},e.get=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return e.get(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return t&&t[0]===n?t[1]:void 0}catch(n){}this._cleanupClosedWindows();var r=mn(this.keys,n);if(-1!==r)return this.values[r]},e.delete=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];t&&t[0]===n&&(t[0]=t[1]=void 0)}catch(n){}this._cleanupClosedWindows();var r=this.keys,o=mn(r,n);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},e.has=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return!(!t||t[0]!==n)}catch(n){}return this._cleanupClosedWindows(),-1!==mn(this.keys,n)},e.getOrSet=function(n,e){if(this.has(n))return this.get(n);var t=e();return this.set(n,t),t},n}();function gn(){var n="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,(function(){return n.charAt(Math.floor(Math.random()*n.length))}))+"_"+function(n){if("function"==typeof btoa)return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(n,e){return String.fromCharCode(parseInt(e,16))})));if("undefined"!=typeof Buffer)return Buffer.from(n,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function bn(n){try{return JSON.stringify([].slice.call(n),(function(n,e){return"function"==typeof e?"memoize["+function(n){if(yn=yn||new wn,null==n||"object"!=typeof n&&"function"!=typeof n)throw new Error("Invalid object");var e=yn.get(n);return e||(e=typeof n+":"+gn(),yn.set(n,e)),e}(e)+"]":e}))}catch(n){throw new Error("Arguments not serializable -- can not be used to memoize")}}var kn=[];function xn(n,e){var t=this;void 0===e&&(e={});var r,o=new wn,i=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var u=o.getOrSet(e.thisNamespace?this:n,(function(){return{}})),a=bn(r),l=e.time;if(u[a]&&l&&Date.now()-u[a].time<l&&delete u[a],u[a])return u[a].value;var c=Date.now(),s=n.apply(this,arguments);return u[a]={time:c,value:s},u[a].value};return i.reset=function(){o.delete(e.thisNamespace?t:n)},kn.push(i),function(n,e){try{delete n.name,n.name=e}catch(n){}return n.__name__=n.displayName=e,n}(i,(e.name||(r=n).name||r.__name__||r.displayName||"anonymous")+"::memoized")}function jn(){return Boolean(document.body)&&"complete"===document.readyState}function En(){return Boolean(document.body)&&"interactive"===document.readyState}xn.clear=function(){for(var n=0;n<kn.length;n++)kn[n].reset()},xn((function(n){if(Object.values)return Object.values(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(n[t]);return e})),Error,xn((function(){return new un((function(n){if(jn()||En())return n();var e=setInterval((function(){if(jn()||En())return clearInterval(e),n()}),10)}))}));var Sn="undefined"!=typeof document?document.currentScript:null,Pn=xn((function(){if(Sn)return Sn;if(Sn=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),t=e&&e[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(n){}}())return Sn;throw new Error("Can not determine current script")})),Nn=gn();function Cn(n){var e=n.data,t=n.cspNonce,r=n.close,o=n.content,i=q(null),u=i[0],a=i[1],l=q(null),c=l[0],s=l[1],f=function(n,e){return n.replace(/{([^{]+)}/g,(function(n,t){return void 0!==e[t]?e[t]:""}))};return h(p,null,h("style",{nonce:t},"\n .installments {\n outline-style: none;\n padding-bottom: 20px;\n position: relative;\n }\n\n .installments .header {\n box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2);\n padding-right: 50px;\n position: relative;\n }\n\n .installments h3 {\n padding: 15px 20px;\n margin:0;\n font-weight: normal;\n font-size: 1em;\n }\n\n .installments ul {\n margin:0;\n padding:0;\n }\n .installments li .list-wrap {\n border: 1px solid #fff;\n border-bottom-color: #ccc;\n padding: 13px;\n margin: 0 10px;\n display: flex;\n text-decoration: none;\n color: inherit;\n }\n .installments li .list-wrap:hover {\n background: #F6F7FA;\n }\n .installments li .list-wrap:active {\n border:1px solid #000;\n }\n .installments li.selected .list-wrap {\n background: #F6F7FA;\n }\n .installments .months {\n align-items: center;\n display: flex;\n width: 50px;\n position: relative;\n }\n .installments .months:after {\n content: \"\";\n width: 1px;\n top: 0;\n bottom: 0;\n background: #ccc;\n position: absolute;\n right: 15px;\n }\n .installments .details {\n font-size: 0.9em;\n }\n .installments .details .price {\n display: block;\n font-weight:bold;\n margin-bottom:6px;\n }\n .installments .agree-info {\n font-size: 0.9em;\n text-align: center;\n }\n \n .installments .btn-container {\n text-align: center;\n padding: 15px;\n }\n .installments .pay-btn{\n border: 0;\n background: #2C2E2F;\n padding: 10px 20px;\n border-radius: 25px;\n line-height: 1.5em;\n color: #fff;\n font-weight: bold;\n font-size: 1em;\n transition: background-color 240ms ease;\n cursor: pointer;\n }\n .installments .pay-btn:hover,\n .installments .pay-btn:focus {\n filter: brightness(1.2);\n outline: 0;\n }\n .installments .pay-btn:active,\n .installments .pay-btn:focus {\n text-decoration: underline; \n }\n .installments .pay-btn .amount{\n margin-left:5px;\n }\n\n .installments .close-btn {\n position: absolute;\n right: 16px;\n top: 16px;\n width: 16px;\n height: 16px;\n opacity: 0.6;\n z-index: 1;\n cursor: pointer;\n }\n .installments .close-btn:hover {\n opacity: 1;\n }\n .installments .close-btn:before, \n .installments .close-btn:after {\n position: absolute;\n left: 8px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: #000;\n transform: rotate(45deg);\n }\n .installments .close-btn:after {\n transform: rotate(-45deg);\n }\n "),h("div",{class:"installments"},h("a",{class:"close-btn",onClick:function(){return r(),e.onClose()},href:"#","aria-label":"close",role:"button"}),h("div",{className:"header"},h("h3",{className:"title"},o.header)),h("ul",null,e.options.map((function(n,e){return h("li",{className:c===e?"selected":""},h("a",{class:"list-wrap",href:"#",onClick:function(t){!function(n,e,t){n.preventDefault(),a(e),s(t),e.onSelect(e)}(t,n,e)}},h("div",{className:"months"},f(o.term,n)),h("div",{className:"details"},h("span",{className:"price"},1===n.term?n.percent?f(o.monthly1xWithDiscount,{percent:Number(n.percent)}):o.monthly1x:f(o.monthly,n)),h("span",{className:"total"},f(1===n.term&&n.percent?o.totalWithDiscount:o.totalAmount,n)))))}))),h("div",{className:"btn-container"},h("button",{type:"button",className:"pay-btn",onClick:function(){return r(),e.onPay(u)}},f(o.payLabel,{payAmount:u?u.totalAmount:e.cartAmount}))),h("div",{className:"agree-info"},o.disclaimer)))}function Wn(n){var e=n.cspNonce,t=n.content,r=function(){var n=q(window.xprops),e=n[0],t=n[1];return $((function(){return e.onProps((function(n){t(an({},n))}))}),[]),an({},e)}(),o=r.data,i=r.close,u=q(!1),a=u[0],l=u[1];return $((function(){var n=Boolean(o&&o.options&&o.options.length);l(n)}),[o]),h(p,null,h("style",{nonce:e},"\n * {\n box-sizing: border-box;\n }\n\n html, body {\n margin: 0;\n padding: 0;\n font-family: Helvetica, sans-serif;\n font-size: 14px;\n }\n\n body {\n width: 100%;\n overflow:auto;\n }\n "),a?h(Cn,{data:o,cspNonce:e,close:i,content:t}):null)}function Tn(n){!function(n,e,t){var o,i,u;r.__&&r.__(n,e),i=(o=t===a)?null:e.__k,n=h(p,null,[n]),u=[],N(e,e.__k=n,i||l,l,void 0!==e.ownerSVGElement,i?null:e.childNodes.length?c.slice.call(e.childNodes):null,u,l,o),C(u,n)}(h(Wn,{cspNonce:n.cspNonce,content:n.content}),function(){var n=document.body;if(!n)throw new Error("Document body not found");return n}())}xn((function(){var n;try{n=Pn()}catch(n){return Nn}var e=n.getAttribute("data-uid");return e&&"string"==typeof e||(e=gn(),n.setAttribute("data-uid",e)),e}))}]);
window.installmentsModal=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return{}.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";t.r(e),t.d(e,"setupInstallments",(function(){return Tn}));var r,o,i,a,u,l={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(n,e){for(var t in e)n[t]=e[t];return n}function _(n){var e=n.parentNode;e&&e.removeChild(n)}function h(n,e,t){var r,o,i,a=arguments,u={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(a[i]);if(null!=t&&(u.children=t),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===u[i]&&(u[i]=n.defaultProps[i]);return d(n,u,r,o,null)}function d(n,e,t,o,i){var a={type:n,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i};return null==i&&(a.__v=a),null!=r.vnode&&r.vnode(a),a}function p(n){return n.children}function v(n,e){this.props=n,this.context=e}function m(n,e){if(null==e)return n.__?m(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?m(n):null}function y(n){var e,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return y(n)}}function w(n){(!n.__d&&(n.__d=!0)&&o.push(n)&&!g.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||i)(g)}function g(){for(var n;g.__r=o.length;)n=o.sort((function(n,e){return n.__v.__b-e.__v.__b})),o=[],n.some((function(n){var e,t,r,o,i,a,u;n.__d&&(a=(i=(e=n).__v).__e,(u=e.__P)&&(t=[],(r=f({},i)).__v=r,o=N(u,i,r,e.__n,void 0!==u.ownerSVGElement,null!=i.__h?[a]:null,t,null==a?m(i):a,i.__h),C(t,i),o!=a&&y(i)))}))}function b(n,e,t,r,o,i,a,u,s,f){var h,v,y,w,g,b,x,j=r&&r.__k||c,E=j.length;for(s==l&&(s=null!=a?a[0]:E?m(r,0):null),t.__k=[],h=0;h<e.length;h++)if(null!=(w=t.__k[h]=null==(w=e[h])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w?d(null,w,null,null,w):Array.isArray(w)?d(p,{children:w},null,null,null):null!=w.__e||null!=w.__c?d(w.type,w.props,w.key,null,w.__v):w)){if(w.__=t,w.__b=t.__b+1,null===(y=j[h])||y&&w.key==y.key&&w.type===y.type)j[h]=void 0;else for(v=0;v<E;v++){if((y=j[v])&&w.key==y.key&&w.type===y.type){j[v]=void 0;break}y=null}g=N(n,w,y=y||l,o,i,a,u,s,f),(v=w.ref)&&y.ref!=v&&(x||(x=[]),y.ref&&x.push(y.ref,null,w),x.push(v,w.__c||g,w)),null!=g?(null==b&&(b=g),s=k(n,w,y,j,a,g,s),f||"option"!=t.type?"function"==typeof t.type&&(t.__d=s):n.value=""):s&&y.__e==s&&s.parentNode!=n&&(s=m(y))}if(t.__e=b,null!=a&&"function"!=typeof t.type)for(h=a.length;h--;)null!=a[h]&&_(a[h]);for(h=E;h--;)null!=j[h]&&A(j[h],j[h]);if(x)for(h=0;h<x.length;h++)T(x[h],x[++h],x[++h])}function k(n,e,t,r,o,i,a){var u,l,c;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(o==t||i!=a||null==i.parentNode)n:if(null==a||a.parentNode!==n)n.appendChild(i),u=null;else{for(l=a,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==i)break n;n.insertBefore(i,a),u=a}return void 0!==u?u:i.nextSibling}function x(n,e,t){"-"===e[0]?n.setProperty(e,t):n[e]=null==t?"":"number"!=typeof t||s.test(e)?t:t+"px"}function j(n,e,t,r,o){var i,a,u;if(o&&"className"==e&&(e="class"),"style"===e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(e in r)t&&e in t||x(n.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||x(n.style,e,t[e])}else"o"===e[0]&&"n"===e[1]?(i=e!==(e=e.replace(/Capture$/,"")),(a=e.toLowerCase())in n&&(e=a),e=e.slice(2),n.l||(n.l={}),n.l[e+i]=t,u=i?S:E,t?r||n.addEventListener(e,u,i):n.removeEventListener(e,u,i)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&"size"!==e&&"download"!==e&&"href"!==e&&!o&&e in n?n[e]=null==t?"":t:"function"!=typeof t&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/xlink:?/,""))?null==t||!1===t?n.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),t):null==t||!1===t&&!/^ar/.test(e)?n.removeAttribute(e):n.setAttribute(e,t))}function E(n){this.l[n.type+!1](r.event?r.event(n):n)}function S(n){this.l[n.type+!0](r.event?r.event(n):n)}function P(n,e,t){var r,o;for(r=0;r<n.__k.length;r++)(o=n.__k[r])&&(o.__=n,o.__e&&("function"==typeof o.type&&o.__k.length>1&&P(o,e,t),e=k(t,o,o,n.__k,null,o.__e,e),"function"==typeof n.type&&(n.__d=e)))}function N(n,e,t,o,i,a,u,l,c){var s,_,h,d,m,y,w,g,k,x,j,E=e.type;if(void 0!==e.constructor)return null;null!=t.__h&&(c=t.__h,l=e.__e=t.__e,e.__h=null,a=[l]),(s=r.__b)&&s(e);try{n:if("function"==typeof E){if(g=e.props,k=(s=E.contextType)&&o[s.__c],x=s?k?k.props.value:s.__:o,t.__c?w=(_=e.__c=t.__c).__=_.__E:("prototype"in E&&E.prototype.render?e.__c=_=new E(g,x):(e.__c=_=new v(g,x),_.constructor=E,_.render=O),k&&k.sub(_),_.props=g,_.state||(_.state={}),_.context=x,_.__n=o,h=_.__d=!0,_.__h=[]),null==_.__s&&(_.__s=_.state),null!=E.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=f({},_.__s)),f(_.__s,E.getDerivedStateFromProps(g,_.__s))),d=_.props,m=_.state,h)null==E.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==d&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(g,x),!_.__e&&null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(g,_.__s,x)||e.__v===t.__v){_.props=g,_.state=_.__s,e.__v!==t.__v&&(_.__d=!1),_.__v=e,e.__e=t.__e,e.__k=t.__k,_.__h.length&&u.push(_),P(e,l,n);break n}null!=_.componentWillUpdate&&_.componentWillUpdate(g,_.__s,x),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(d,m,y)}))}_.context=x,_.props=g,_.state=_.__s,(s=r.__r)&&s(e),_.__d=!1,_.__v=e,_.__P=n,s=_.render(_.props,_.state,_.context),_.state=_.__s,null!=_.getChildContext&&(o=f(f({},o),_.getChildContext())),h||null==_.getSnapshotBeforeUpdate||(y=_.getSnapshotBeforeUpdate(d,m)),j=null!=s&&s.type==p&&null==s.key?s.props.children:s,b(n,Array.isArray(j)?j:[j],e,t,o,i,a,u,l,c),_.base=e.__e,e.__h=null,_.__h.length&&u.push(_),w&&(_.__E=_.__=null),_.__e=!1}else null==a&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=W(t.__e,e,t,o,i,a,u,c);(s=r.diffed)&&s(e)}catch(n){e.__v=null,(c||null!=a)&&(e.__e=l,e.__h=!!c,a[a.indexOf(l)]=null),r.__e(n,e,t)}return e.__e}function C(n,e){r.__c&&r.__c(e,n),n.some((function(e){try{n=e.__h,e.__h=[],n.some((function(n){n.call(e)}))}catch(n){r.__e(n,e.__v)}}))}function W(n,e,t,r,o,i,a,u){var s,f,_,h,d,p=t.props,v=e.props;if(o="svg"===e.type||o,null!=i)for(s=0;s<i.length;s++)if(null!=(f=i[s])&&((null===e.type?3===f.nodeType:f.localName===e.type)||n==f)){n=f,i[s]=null;break}if(null==n){if(null===e.type)return document.createTextNode(v);n=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,v.is&&{is:v.is}),i=null,u=!1}if(null===e.type)p===v||u&&n.data===v||(n.data=v);else{if(null!=i&&(i=c.slice.call(n.childNodes)),_=(p=t.props||l).dangerouslySetInnerHTML,h=v.dangerouslySetInnerHTML,!u){if(null!=i)for(p={},d=0;d<n.attributes.length;d++)p[n.attributes[d].name]=n.attributes[d].value;(h||_)&&(h&&(_&&h.__html==_.__html||h.__html===n.innerHTML)||(n.innerHTML=h&&h.__html||""))}(function(n,e,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in e||j(n,i,null,t[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===e[i]||j(n,i,e[i],t[i],r)})(n,v,p,o,u),h?e.__k=[]:(s=e.props.children,b(n,Array.isArray(s)?s:[s],e,t,r,"foreignObject"!==e.type&&o,i,a,l,u)),u||("value"in v&&void 0!==(s=v.value)&&(s!==n.value||"progress"===e.type&&!s)&&j(n,"value",s,p.value,!1),"checked"in v&&void 0!==(s=v.checked)&&s!==n.checked&&j(n,"checked",s,p.checked,!1))}return n}function T(n,e,t){try{"function"==typeof n?n(e):n.current=e}catch(n){r.__e(n,t)}}function A(n,e,t){var o,i,a;if(r.unmount&&r.unmount(n),(o=n.ref)&&(o.current&&o.current!==n.__e||T(o,null,e)),t||"function"==typeof n.type||(t=null!=(i=n.__e)),n.__e=n.__d=void 0,null!=(o=n.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){r.__e(n,e)}o.base=o.__P=null}if(o=n.__k)for(a=0;a<o.length;a++)o[a]&&A(o[a],e,t);null!=i&&_(i)}function O(n,e,t){return this.constructor(n,t)}r={__e:function(n,e){for(var t,r,o,i=e.__h;e=e.__;)if((t=e.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n),o=t.__d),o)return e.__h=i,t.__E=t}catch(e){n=e}throw n}},v.prototype.setState=function(n,e){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof n&&(n=n(f({},t),this.props)),n&&f(t,n),null!=n&&this.__v&&(e&&this.__h.push(e),w(this))},v.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},v.prototype.render=p,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0,u=l;var H,M,D,F=0,z=[],R=r.__r,U=r.diffed,L=r.__c,B=r.unmount;function I(n,e){r.__h&&r.__h(M,n,F||e),F=0;var t=M.__H||(M.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function q(n){return F=1,function(n,e,t){var r=I(H++,2);return r.t=n,r.__c||(r.__=[K(void 0,e),function(n){var e=r.t(r.__[0],n);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=M),r.__}(K,n)}function $(n,e){var t=I(H++,3);!r.__s&&function(n,e){return!n||n.length!==e.length||e.some((function(e,t){return e!==n[t]}))}(t.__H,e)&&(t.__=n,t.__H=e,M.__H.__h.push(t))}function G(){z.some((function(n){if(n.__P)try{n.__H.__h.forEach(J),n.__H.__h.forEach(Z),n.__H.__h=[]}catch(e){return n.__H.__h=[],r.__e(e,n.__v),!0}})),z=[]}r.__r=function(n){R&&R(n),H=0;var e=(M=n.__c).__H;e&&(e.__h.forEach(J),e.__h.forEach(Z),e.__h=[])},r.diffed=function(n){U&&U(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(1!==z.push(e)&&D===r.requestAnimationFrame||((D=r.requestAnimationFrame)||function(n){var e,t=function(){clearTimeout(r),V&&cancelAnimationFrame(e),setTimeout(n)},r=setTimeout(t,100);V&&(e=requestAnimationFrame(t))})(G))},r.__c=function(n,e){e.some((function(n){try{n.__h.forEach(J),n.__h=n.__h.filter((function(n){return!n.__||Z(n)}))}catch(t){e.some((function(n){n.__h&&(n.__h=[])})),e=[],r.__e(t,n.__v)}})),L&&L(n,e)},r.unmount=function(n){B&&B(n);var e=n.__c;if(e&&e.__H)try{e.__H.__.forEach(J)}catch(n){r.__e(n,e.__v)}};var V="function"==typeof requestAnimationFrame;function J(n){"function"==typeof n.u&&n.u()}function Z(n){n.u=n.__()}function K(n,e){return"function"==typeof e?e(n):e}function Q(n){try{if(!n)return!1;if("undefined"!=typeof Promise&&n instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&n instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&n instanceof window.constructor)return!1;var e={}.toString;if(e){var t=e.call(n);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof n.then)return!0}catch(n){return!1}return!1}var X,Y=[],nn=[],en=0;function tn(){if(!en&&X){var n=X;X=null,n.resolve()}}function rn(){en+=1}function on(){en-=1,tn()}var an=function(){function n(n){var e=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],n){var t,r,o=!1,i=!1,a=!1;rn();try{n((function(n){a?e.resolve(n):(o=!0,t=n)}),(function(n){a?e.reject(n):(i=!0,r=n)}))}catch(n){return on(),void this.reject(n)}on(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var e=n.prototype;return e.resolve=function(n){if(this.resolved||this.rejected)return this;if(Q(n))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=n,this.dispatch(),this},e.reject=function(n){var e=this;if(this.resolved||this.rejected)return this;if(Q(n))throw new Error("Can not reject promise with another promise");if(!n){var t=n&&"function"==typeof n.toString?n.toString():{}.toString.call(n);n=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=n,this.errorHandled||setTimeout((function(){e.errorHandled||function(n,e){if(-1===Y.indexOf(n)){Y.push(n),setTimeout((function(){throw n}),1);for(var t=0;t<nn.length;t++)nn[t](n,e)}}(n,e)}),1),this.dispatch(),this},e.asyncReject=function(n){return this.errorHandled=!0,this.reject(n),this},e.dispatch=function(){var e=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(e||t)){this.dispatching=!0,rn();for(var o=function(n,e){return n.then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))},i=0;i<r.length;i++){var a=r[i],u=a.onSuccess,l=a.onError,c=a.promise,s=void 0;if(e)try{s=u?u(this.value):this.value}catch(n){c.reject(n);continue}else if(t){if(!l){c.reject(this.error);continue}try{s=l(this.error)}catch(n){c.reject(n);continue}}s instanceof n&&(s.resolved||s.rejected)?(s.resolved?c.resolve(s.value):c.reject(s.error),s.errorHandled=!0):Q(s)?s instanceof n&&(s.resolved||s.rejected)?s.resolved?c.resolve(s.value):c.reject(s.error):o(s,c):c.resolve(s)}r.length=0,this.dispatching=!1,on()}},e.then=function(e,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new n;return this.handlers.push({promise:r,onSuccess:e,onError:t}),this.errorHandled=!0,this.dispatch(),r},e.catch=function(n){return this.then(void 0,n)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return n.try(e).then((function(){return t}))}),(function(t){return n.try(e).then((function(){throw t}))}))},e.timeout=function(n,e){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(e||new Error("Promise timed out after "+n+"ms"))}),n);return this.then((function(n){return clearTimeout(r),n}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.resolve=function(e){return e instanceof n?e:Q(e)?new n((function(n,t){return e.then(n,t)})):(new n).resolve(e)},n.reject=function(e){return(new n).reject(e)},n.asyncReject=function(e){return(new n).asyncReject(e)},n.all=function(e){var t=new n,r=e.length,o=[];if(!r)return t.resolve(o),t;for(var i=function(n,e,i){return e.then((function(e){o[n]=e,0==(r-=1)&&t.resolve(o)}),(function(n){i.reject(n)}))},a=0;a<e.length;a++){var u=e[a];if(u instanceof n){if(u.resolved){o[a]=u.value,r-=1;continue}}else if(!Q(u)){o[a]=u,r-=1;continue}i(a,n.resolve(u),t)}return 0===r&&t.resolve(o),t},n.hash=function(e){var t={},r=[],o=function(n){if(e.hasOwnProperty(n)){var o=e[n];Q(o)?r.push(o.then((function(e){t[n]=e}))):t[n]=o}};for(var i in e)o(i);return n.all(r).then((function(){return t}))},n.map=function(e,t){return n.all(e.map(t))},n.onPossiblyUnhandledException=function(n){return function(n){return nn.push(n),{cancel:function(){nn.splice(nn.indexOf(n),1)}}}(n)},n.try=function(e,t,r){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;rn();try{o=e.apply(t,r||[])}catch(e){return on(),n.reject(e)}return on(),n.resolve(o)},n.delay=function(e){return new n((function(n){setTimeout(n,e)}))},n.isPromise=function(e){return!!(e&&e instanceof n)||Q(e)},n.flush=function(){return e=X=X||new n,tn(),e;var e},n}();function un(){return(un=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}var ln="Call was rejected by callee.\r\n";function cn(n){return void 0===n&&(n=window),"about:"===n.location.protocol}function sn(n){try{return!0}catch(n){}return!1}function fn(n){void 0===n&&(n=window);var e=n.location;if(!e)throw new Error("Can not read window location");var t=e.protocol;if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=function(n){if(void 0===n&&(n=window),n)try{if(n.parent&&n.parent!==n)return n.parent}catch(n){}}(n);return r&&sn()?fn(r):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function _n(n){void 0===n&&(n=window);var e=fn(n);return e&&n.mockDomain&&0===n.mockDomain.indexOf("mock:")?n.mockDomain:e}var hn=[],dn=[];function pn(n,e){void 0===e&&(e=!0);try{if(n===window)return!1}catch(n){return!0}try{if(!n)return!0}catch(n){return!0}try{if(n.closed)return!0}catch(n){return!n||n.message!==ln}if(e&&function(n){if(!function(n){try{if(n===window)return!0}catch(n){}try{var e=Object.getOwnPropertyDescriptor(n,"location");if(e&&!1===e.enumerable)return!1}catch(n){}try{if(cn(n)&&sn())return!0}catch(n){}try{if(fn(n)===fn(window))return!0}catch(n){}return!1}(n))return!1;try{if(n===window)return!0;if(cn(n)&&sn())return!0;if(_n(window)===_n(n))return!0}catch(n){}return!1}(n))try{if(n.mockclosed)return!0}catch(n){}try{if(!n.parent||!n.top)return!0}catch(n){}var t=function(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}(hn,n);if(-1!==t){var r=dn[t];if(r&&function(n){if(!n.contentWindow)return!0;if(!n.parentNode)return!0;var e=n.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(n)){for(var t=n;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!e.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function vn(n){try{if(n===window)return!0}catch(n){if(n&&n.message===ln)return!0}try{if("[object Window]"==={}.toString.call(n))return!0}catch(n){if(n&&n.message===ln)return!0}try{if(window.Window&&n instanceof window.Window)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.self===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.parent===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&n.top===n)return!0}catch(n){if(n&&n.message===ln)return!0}try{if(n&&"__unlikely_value__"===n.__cross_domain_utils_window_check__)return!1}catch(n){return!0}try{if("postMessage"in n&&"self"in n&&"location"in n)return!0}catch(n){}return!1}function mn(n,e){for(var t=0;t<n.length;t++)try{if(n[t]===e)return t}catch(n){}return-1}var yn,wn=function(){function n(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var n=new WeakMap,e={};return Object.freeze(e),n.set(e,"__testvalue__"),"__testvalue__"===n.get(e)}catch(n){return!1}}())try{this.weakmap=new WeakMap}catch(n){}this.keys=[],this.values=[]}var e=n.prototype;return e._cleanupClosedWindows=function(){for(var n=this.weakmap,e=this.keys,t=0;t<e.length;t++){var r=e[t];if(vn(r)&&pn(r)){if(n)try{n.delete(r)}catch(n){}e.splice(t,1),this.values.splice(t,1),t-=1}}},e.isSafeToReadWrite=function(n){return!vn(n)},e.set=function(n,e){if(!n)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(n,e)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var r=this.name,o=n[r];return void(o&&o[0]===n?o[1]=e:Object.defineProperty(n,r,{value:[n,e],writable:!0}))}catch(n){}this._cleanupClosedWindows();var i=this.keys,a=this.values,u=mn(i,n);-1===u?(i.push(n),a.push(e)):a[u]=e},e.get=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return e.get(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return t&&t[0]===n?t[1]:void 0}catch(n){}this._cleanupClosedWindows();var r=mn(this.keys,n);if(-1!==r)return this.values[r]},e.delete=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(n)}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];t&&t[0]===n&&(t[0]=t[1]=void 0)}catch(n){}this._cleanupClosedWindows();var r=this.keys,o=mn(r,n);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},e.has=function(n){if(!n)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(n))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(n))try{var t=n[this.name];return!(!t||t[0]!==n)}catch(n){}return this._cleanupClosedWindows(),-1!==mn(this.keys,n)},e.getOrSet=function(n,e){if(this.has(n))return this.get(n);var t=e();return this.set(n,t),t},n}();function gn(){var n="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,(function(){return n.charAt(Math.floor(Math.random()*n.length))}))+"_"+function(n){if("function"==typeof btoa)return btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(n,e){return String.fromCharCode(parseInt(e,16))})));if("undefined"!=typeof Buffer)return Buffer.from(n,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function bn(n){try{return JSON.stringify([].slice.call(n),(function(n,e){return"function"==typeof e?"memoize["+function(n){if(yn=yn||new wn,null==n||"object"!=typeof n&&"function"!=typeof n)throw new Error("Invalid object");var e=yn.get(n);return e||(e=typeof n+":"+gn(),yn.set(n,e)),e}(e)+"]":e}))}catch(n){throw new Error("Arguments not serializable -- can not be used to memoize")}}var kn=[];function xn(n,e){var t=this;void 0===e&&(e={});var r,o=new wn,i=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=o.getOrSet(e.thisNamespace?this:n,(function(){return{}})),u=bn(r),l=e.time;if(a[u]&&l&&Date.now()-a[u].time<l&&delete a[u],a[u])return a[u].value;var c=Date.now(),s=n.apply(this,arguments);return a[u]={time:c,value:s},a[u].value};return i.reset=function(){o.delete(e.thisNamespace?t:n)},kn.push(i),function(n,e){try{delete n.name,n.name=e}catch(n){}return n.__name__=n.displayName=e,n}(i,(e.name||(r=n).name||r.__name__||r.displayName||"anonymous")+"::memoized")}function jn(){return Boolean(document.body)&&"complete"===document.readyState}function En(){return Boolean(document.body)&&"interactive"===document.readyState}xn.clear=function(){for(var n=0;n<kn.length;n++)kn[n].reset()},xn((function(n){if(Object.values)return Object.values(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(n[t]);return e})),Error,xn((function(){return new an((function(n){if(jn()||En())return n();var e=setInterval((function(){if(jn()||En())return clearInterval(e),n()}),10)}))}));var Sn="undefined"!=typeof document?document.currentScript:null,Pn=xn((function(){if(Sn)return Sn;if(Sn=function(){try{var n=function(){try{throw new Error("_")}catch(n){return n.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(n),t=e&&e[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(n){}}())return Sn;throw new Error("Can not determine current script")})),Nn=gn();function Cn(n){var e=n.data,t=n.cspNonce,r=n.close,o=n.content,i=q(null),a=i[0],u=i[1],l=q(null),c=l[0],s=l[1],f=function(n,e){return n.replace(/{([^{]+)}/g,(function(n,t){return void 0!==e[t]?e[t]:""}))};return h(p,null,h("style",{nonce:t},"\n .installments {\n outline-style: none;\n padding-bottom: 20px;\n position: relative;\n }\n\n .installments .header {\n box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2);\n padding-right: 50px;\n position: relative;\n }\n\n .installments h3 {\n padding: 15px 20px;\n margin:0;\n font-weight: normal;\n font-size: 1em;\n }\n\n .installments button {\n background: #fff;\n border: none;\n }\n\n .installments ul {\n margin:0;\n padding:0;\n }\n .installments li {\n padding: 0 10px;\n }\n .installments li .list-wrap {\n border: 1px solid #fff;\n border-bottom-color: #ccc;\n padding: 13px;\n display: flex;\n text-decoration: none;\n color: inherit;\n width: 100%;\n text-align: left;\n align-items: inherit;\n font-size: 1em;\n font-family: inherit;\n cursor: pointer;\n }\n .installments li .list-wrap:hover {\n background: #F6F7FA;\n }\n .installments li .list-wrap:active {\n border:1px solid #000;\n }\n .installments li.selected .list-wrap {\n background: #F6F7FA;\n }\n .installments .months {\n align-items: center;\n display: flex;\n width: 50px;\n position: relative;\n }\n .installments .months:after {\n content: \"\";\n width: 1px;\n top: 0;\n bottom: 0;\n background: #ccc;\n position: absolute;\n right: 15px;\n }\n .installments .details {\n font-size: 0.9em;\n }\n .installments .details .price {\n display: block;\n font-weight:bold;\n margin-bottom:6px;\n }\n\n .installments .agree-info {\n font-size: 0.9em;\n text-align: center;\n padding: 0 10px;\n }\n \n .installments .btn-container {\n text-align: center;\n padding: 15px;\n }\n .installments .pay-btn{\n border: 0;\n background: #2C2E2F;\n padding: 10px 20px;\n border-radius: 25px;\n line-height: 1.5em;\n color: #fff;\n font-weight: bold;\n font-size: 1em;\n transition: background-color 240ms ease;\n cursor: pointer;\n }\n .installments .pay-btn:hover,\n .installments .pay-btn:focus {\n filter: brightness(1.2);\n outline: 0;\n }\n .installments .pay-btn:active,\n .installments .pay-btn:focus {\n text-decoration: underline; \n }\n .installments .pay-btn .amount{\n margin-left:5px;\n }\n\n .installments .close-btn {\n position: absolute;\n right: 11px;\n top: 11px;\n width: 26px;\n height: 26px;\n opacity: 0.6;\n z-index: 1;\n cursor: pointer;\n }\n .installments .close-btn:hover {\n opacity: 1;\n }\n .installments .close-btn:before, \n .installments .close-btn:after {\n position: absolute;\n left: 12px;\n content: ' ';\n height: 16px;\n width: 2px;\n background-color: #000;\n transform: rotate(45deg);\n top: 5px;\n }\n .installments .close-btn:after {\n transform: rotate(-45deg);\n }\n "),h("div",{class:"installments"},h("button",{class:"close-btn",onClick:function(){return r(),e.onClose()},"aria-label":"close",type:"button"}),h("div",{className:"header"},h("h3",{className:"title"},o.header)),h("ul",{id:"installments-list"},e.options.map((function(n,e){return h("li",{className:c===e?"selected":""},h("button",{type:"button",class:"list-wrap",onClick:function(t){!function(n,e,t){n.preventDefault(),u(e),s(t),e.onSelect(e)}(t,n,e)}},h("div",{className:"months"},f(o.term,n)),h("div",{className:"details"},h("span",{className:"price"},1===n.term?n.percent?f(o.monthly1xWithDiscount,{percent:Number(n.percent)}):o.monthly1x:f(o.monthly,n)),h("span",{className:"total"},f(1===n.term&&n.percent?o.totalWithDiscount:o.totalAmount,n)))))}))),h("div",{className:"btn-container"},h("button",{type:"button",className:"pay-btn",onClick:function(){return r(),e.onPay(a)}},f(o.payLabel,{payAmount:a?a.totalAmount:e.cartAmount}))),h("div",{className:"agree-info"},o.disclaimer)))}function Wn(n){var e=n.cspNonce,t=n.content,r=function(){var n=q(window.xprops),e=n[0],t=n[1];return $((function(){return e.onProps((function(n){t(un({},n))}))}),[]),un({},e)}(),o=r.data,i=r.close,a=q(!1),u=a[0],l=a[1];return $((function(){var n=Boolean(o&&o.options&&o.options.length);l(n)}),[o]),h(p,null,h("style",{nonce:e},"\n * {\n box-sizing: border-box;\n }\n\n html, body {\n margin: 0;\n padding: 0;\n font-family: Helvetica, sans-serif;\n font-size: 14px;\n }\n\n body {\n width: 100%;\n overflow:auto;\n }\n "),u?h(Cn,{data:o,cspNonce:e,close:i,content:t}):null)}function Tn(n){!function(n,e,t){var o,i,a;r.__&&r.__(n,e),i=(o=t===u)?null:e.__k,n=h(p,null,[n]),a=[],N(e,e.__k=n,i||l,l,void 0!==e.ownerSVGElement,i?null:e.childNodes.length?c.slice.call(e.childNodes):null,a,l,o),C(a,n)}(h(Wn,{cspNonce:n.cspNonce,content:n.content}),function(){var n=document.body;if(!n)throw new Error("Document body not found");return n}())}xn((function(){var n;try{n=Pn()}catch(n){return Nn}var e=n.getAttribute("data-uid");return e&&"string"==typeof e||(e=gn(),n.setAttribute("data-uid",e)),e}))}]);
{
"name": "@paypal/installments",
"version": "1.0.0",
"version": "1.0.1",
"description": "PayPal Installments",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,7 +8,3 @@ "use strict";

function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -15,0 +11,0 @@ const MODULE_POLL_INTERVAL = 5 * 60;

@@ -37,7 +37,3 @@ "use strict";

function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -44,0 +40,0 @@ function response(res, status, type, message) {

@@ -8,10 +8,5 @@ "use strict";

function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* eslint no-sync: off */
function normalizeAssets(assets) {

@@ -18,0 +13,0 @@ if ((0, _isObject.default)(assets)) {

@@ -128,4 +128,4 @@ /* @flow */

throw new Error('Installments fetch returns null');
}).catch(() => {
return ZalgoPromise.try((err) => {
}).catch((err) => {
return ZalgoPromise.try(() => {
getLogger()

@@ -132,0 +132,0 @@ .error('installment_fetch_error', {

@@ -67,2 +67,7 @@ /* @flow */

.installments button {
background: #fff;
border: none;
}
.installments ul {

@@ -72,2 +77,5 @@ margin:0;

}
.installments li {
padding: 0 10px;
}
.installments li .list-wrap {

@@ -77,6 +85,11 @@ border: 1px solid #fff;

padding: 13px;
margin: 0 10px;
display: flex;
text-decoration: none;
color: inherit;
width: 100%;
text-align: left;
align-items: inherit;
font-size: 1em;
font-family: inherit;
cursor: pointer;
}

@@ -115,5 +128,7 @@ .installments li .list-wrap:hover {

}
.installments .agree-info {
font-size: 0.9em;
text-align: center;
padding: 0 10px;
}

@@ -152,6 +167,6 @@

position: absolute;
right: 16px;
top: 16px;
width: 16px;
height: 16px;
right: 11px;
top: 11px;
width: 26px;
height: 26px;
opacity: 0.6;

@@ -167,3 +182,3 @@ z-index: 1;

position: absolute;
left: 8px;
left: 12px;
content: ' ';

@@ -174,2 +189,3 @@ height: 16px;

transform: rotate(45deg);
top: 5px;
}

@@ -183,7 +199,7 @@ .installments .close-btn:after {

<div class='installments'>
<a class="close-btn" onClick={ closeInstallments } href="#" aria-label="close" role="button" />
<button class="close-btn" onClick={ closeInstallments } aria-label="close" type="button" />
<div className="header">
<h3 className="title">{content.header}</h3>
</div>
<ul>
<ul id="installments-list">
{

@@ -193,3 +209,3 @@ data.options.map((option, i) => {

<li className={ (selectedIndex === i) ? 'selected' : '' }>
<a class="list-wrap" href="#" onClick={ (event) => { selectOption(event, option, i); } }>
<button type="button" class="list-wrap" onClick={ (event) => { selectOption(event, option, i); } }>
<div className="months">{ renderContent(content.term, option) }</div>

@@ -210,3 +226,3 @@ <div className="details">

</div>
</a>
</button>
</li>

@@ -213,0 +229,0 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc