@paystack/checkout-js 1.11.0-dev.1 → 1.11.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout.js +2 -2
- package/es/checkout.js +13400 -13387
- package/lib/checkout.js +13400 -13387
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Paystack=function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e,r){return p=f()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&l(i,r.prototype),i},p.apply(null,arguments)}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},d(t)}function g(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw o;return B()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=h(t,e,r);if("normal"===u.type){if(n=r.done?d:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",g={};function m(){}function v(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(D([])));T&&T!==r&&n.call(T,o)&&(b=T);var S=y.prototype=m.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=h(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function D(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:B}}function B(){return{value:e,done:!0}}return v.prototype=y,u(S,"constructor",y),u(y,"constructor",v),v.displayName=u(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(A.prototype),u(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new A(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=D,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var E=function(t){return t&&t.Math==Math&&t},A=E("object"==typeof globalThis&&globalThis)||E("object"==typeof window&&window)||E("object"==typeof self&&self)||E("object"==typeof S&&S)||function(){return this}()||Function("return this")(),x={},O=function(t){try{return!!t()}catch(t){return!0}},k=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=!O((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),D=C,B=Function.prototype.call,P=D?B.bind(B):function(){return B.apply(B,arguments)},R={},I={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,j=N&&!I.call({1:2},1);R.f=j?function(t){var e=N(this,t);return!!e&&e.enumerable}:I;var M,L,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=C,F=Function.prototype,U=F.bind,q=F.call,H=V&&U.bind(q,q),z=V?function(t){return t&&H(t)}:function(t){return t&&function(){return q.apply(t,arguments)}},G=z,K=G({}.toString),W=G("".slice),X=function(t){return W(K(t),8,-1)},Z=z,J=O,Y=X,$=A.Object,Q=Z("".split),tt=J((function(){return!$("z").propertyIsEnumerable(0)}))?function(t){return"String"==Y(t)?Q(t,""):$(t)}:$,et=A.TypeError,rt=function(t){if(null==t)throw et("Can't call method on "+t);return t},nt=tt,it=rt,ot=function(t){return nt(it(t))},at=function(t){return"function"==typeof t},st=at,ut=function(t){return"object"==typeof t?null!==t:st(t)},ct=A,ht=at,lt=function(t){return ht(t)?t:void 0},ft=function(t,e){return arguments.length<2?lt(ct[t]):ct[t]&&ct[t][e]},pt=z({}.isPrototypeOf),dt=ft("navigator","userAgent")||"",gt=A,mt=dt,vt=gt.process,yt=gt.Deno,bt=vt&&vt.versions||yt&&yt.version,wt=bt&&bt.v8;wt&&(L=(M=wt.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!L&&mt&&(!(M=mt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=mt.match(/Chrome\/(\d+)/))&&(L=+M[1]);var Tt=L,St=Tt,Et=O,At=!!Object.getOwnPropertySymbols&&!Et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&St&&St<41})),xt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ft,kt=at,Ct=pt,Dt=xt,Bt=A.Object,Pt=Dt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return kt(e)&&Ct(e.prototype,Bt(t))},Rt=A.String,It=function(t){try{return Rt(t)}catch(t){return"Object"}},Nt=at,jt=It,Mt=A.TypeError,Lt=function(t){if(Nt(t))return t;throw Mt(jt(t)+" is not a function")},_t=Lt,Vt=function(t,e){var r=t[e];return null==r?void 0:_t(r)},Ft=P,Ut=at,qt=ut,Ht=A.TypeError,zt={exports:{}},Gt=A,Kt=Object.defineProperty,Wt=function(t,e){try{Kt(Gt,t,{value:e,configurable:!0,writable:!0})}catch(r){Gt[t]=e}return e},Xt=Wt,Zt="__core-js_shared__",Jt=A[Zt]||Xt(Zt,{}),Yt=Jt;(zt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var $t=rt,Qt=A.Object,te=function(t){return Qt($t(t))},ee=te,re=z({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return re(ee(t),e)},ie=z,oe=0,ae=Math.random(),se=ie(1..toString),ue=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++oe+ae,36)},ce=A,he=zt.exports,le=ne,fe=ue,pe=At,de=xt,ge=he("wks"),me=ce.Symbol,ve=me&&me.for,ye=de?me:me&&me.withoutSetter||fe,be=function(t){if(!le(ge,t)||!pe&&"string"!=typeof ge[t]){var e="Symbol."+t;pe&&le(me,t)?ge[t]=me[t]:ge[t]=de&&ve?ve(e):ye(e)}return ge[t]},we=P,Te=ut,Se=Pt,Ee=Vt,Ae=function(t,e){var r,n;if("string"===e&&Ut(r=t.toString)&&!qt(n=Ft(r,t)))return n;if(Ut(r=t.valueOf)&&!qt(n=Ft(r,t)))return n;if("string"!==e&&Ut(r=t.toString)&&!qt(n=Ft(r,t)))return n;throw Ht("Can't convert object to primitive value")},xe=be,Oe=A.TypeError,ke=xe("toPrimitive"),Ce=function(t,e){if(!Te(t)||Se(t))return t;var r,n=Ee(t,ke);if(n){if(void 0===e&&(e="default"),r=we(n,t,e),!Te(r)||Se(r))return r;throw Oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ae(t,e)},De=Ce,Be=Pt,Pe=function(t){var e=De(t,"string");return Be(e)?e:e+""},Re=ut,Ie=A.document,Ne=Re(Ie)&&Re(Ie.createElement),je=function(t){return Ne?Ie.createElement(t):{}},Me=je,Le=!k&&!O((function(){return 7!=Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),_e=k,Ve=P,Fe=R,Ue=_,qe=ot,He=Pe,ze=ne,Ge=Le,Ke=Object.getOwnPropertyDescriptor;x.f=_e?Ke:function(t,e){if(t=qe(t),e=He(e),Ge)try{return Ke(t,e)}catch(t){}if(ze(t,e))return Ue(!Ve(Fe.f,t,e),t[e])};var We={},Xe=k&&O((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=A,Je=ut,Ye=Ze.String,$e=Ze.TypeError,Qe=function(t){if(Je(t))return t;throw $e(Ye(t)+" is not an object")},tr=k,er=Le,rr=Xe,nr=Qe,ir=Pe,or=A.TypeError,ar=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ur="enumerable",cr="configurable",hr="writable";We.f=tr?rr?function(t,e,r){if(nr(t),e=ir(e),nr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&hr in r&&!r.writable){var n=sr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:cr in r?r.configurable:n.configurable,enumerable:ur in r?r.enumerable:n.enumerable,writable:!1})}return ar(t,e,r)}:ar:function(t,e,r){if(nr(t),e=ir(e),nr(r),er)try{return ar(t,e,r)}catch(t){}if("get"in r||"set"in r)throw or("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var lr=We,fr=_,pr=k?function(t,e,r){return lr.f(t,e,fr(1,r))}:function(t,e,r){return t[e]=r,t},dr={exports:{}},gr=at,mr=Jt,vr=z(Function.toString);gr(mr.inspectSource)||(mr.inspectSource=function(t){return vr(t)});var yr,br,wr,Tr=mr.inspectSource,Sr=at,Er=Tr,Ar=A.WeakMap,xr=Sr(Ar)&&/native code/.test(Er(Ar)),Or=zt.exports,kr=ue,Cr=Or("keys"),Dr=function(t){return Cr[t]||(Cr[t]=kr(t))},Br={},Pr=xr,Rr=A,Ir=z,Nr=ut,jr=pr,Mr=ne,Lr=Jt,_r=Dr,Vr=Br,Fr="Object already initialized",Ur=Rr.TypeError,qr=Rr.WeakMap;if(Pr||Lr.state){var Hr=Lr.state||(Lr.state=new qr),zr=Ir(Hr.get),Gr=Ir(Hr.has),Kr=Ir(Hr.set);yr=function(t,e){if(Gr(Hr,t))throw new Ur(Fr);return e.facade=t,Kr(Hr,t,e),e},br=function(t){return zr(Hr,t)||{}},wr=function(t){return Gr(Hr,t)}}else{var Wr=_r("state");Vr[Wr]=!0,yr=function(t,e){if(Mr(t,Wr))throw new Ur(Fr);return e.facade=t,jr(t,Wr,e),e},br=function(t){return Mr(t,Wr)?t[Wr]:{}},wr=function(t){return Mr(t,Wr)}}var Xr={set:yr,get:br,has:wr,enforce:function(t){return wr(t)?br(t):yr(t,{})},getterFor:function(t){return function(e){var r;if(!Nr(e)||(r=br(e)).type!==t)throw Ur("Incompatible receiver, "+t+" required");return r}}},Zr=k,Jr=ne,Yr=Function.prototype,$r=Zr&&Object.getOwnPropertyDescriptor,Qr=Jr(Yr,"name"),tn=Qr&&"something"===function(){}.name,en=Qr&&(!Zr||Zr&&$r(Yr,"name").configurable),rn=A,nn=at,on=ne,an=pr,sn=Wt,un=Tr,cn={EXISTS:Qr,PROPER:tn,CONFIGURABLE:en}.CONFIGURABLE,hn=Xr.get,ln=Xr.enforce,fn=String(String).split("String");(dr.exports=function(t,e,r,n){var i,o=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;nn(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(r,"name")||cn&&r.name!==u)&&an(r,"name",u),(i=ln(r)).source||(i.source=fn.join("string"==typeof u?u:""))),t!==rn?(o?!s&&t[e]&&(a=!0):delete t[e],a?t[e]=r:an(t,e,r)):a?t[e]=r:sn(e,r)})(Function.prototype,"toString",(function(){return nn(this)&&hn(this).source||un(this)}));var pn={},dn=Math.ceil,gn=Math.floor,mn=function(t){var e=+t;return e!=e||0===e?0:(e>0?gn:dn)(e)},vn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=vn(t);return r<0?yn(r+e,0):bn(r,e)},Tn=mn,Sn=Math.min,En=function(t){return t>0?Sn(Tn(t),9007199254740991):0},An=function(t){return En(t.length)},xn=ot,On=wn,kn=An,Cn=function(t){return function(e,r,n){var i,o=xn(e),a=kn(o),s=On(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},Dn={includes:Cn(!0),indexOf:Cn(!1)},Bn=ne,Pn=ot,Rn=Dn.indexOf,In=Br,Nn=z([].push),jn=function(t,e){var r,n=Pn(t),i=0,o=[];for(r in n)!Bn(In,r)&&Bn(n,r)&&Nn(o,r);for(;e.length>i;)Bn(n,r=e[i++])&&(~Rn(o,r)||Nn(o,r));return o},Mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ln=jn,_n=Mn.concat("length","prototype");pn.f=Object.getOwnPropertyNames||function(t){return Ln(t,_n)};var Vn={};Vn.f=Object.getOwnPropertySymbols;var Fn=ft,Un=pn,qn=Vn,Hn=Qe,zn=z([].concat),Gn=Fn("Reflect","ownKeys")||function(t){var e=Un.f(Hn(t)),r=qn.f;return r?zn(e,r(t)):e},Kn=ne,Wn=Gn,Xn=x,Zn=We,Jn=function(t,e,r){for(var n=Wn(e),i=Zn.f,o=Xn.f,a=0;a<n.length;a++){var s=n[a];Kn(t,s)||r&&Kn(r,s)||i(t,s,o(e,s))}},Yn=O,$n=at,Qn=/#|\.prototype\./,ti=function(t,e){var r=ri[ei(t)];return r==ii||r!=ni&&($n(e)?Yn(e):!!e)},ei=ti.normalize=function(t){return String(t).replace(Qn,".").toLowerCase()},ri=ti.data={},ni=ti.NATIVE="N",ii=ti.POLYFILL="P",oi=ti,ai=A,si=x.f,ui=pr,ci=dr.exports,hi=Wt,li=Jn,fi=oi,pi=function(t,e){var r,n,i,o,a,s=t.target,u=t.global,c=t.stat;if(r=u?ai:c?ai[s]||hi(s,{}):(ai[s]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(a=si(r,n))&&a.value:r[n],!fi(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;li(o,i)}(t.sham||i&&i.sham)&&ui(o,"sham",!0),ci(r,n,o,t)}},di={exports:{}},gi={},mi=Pe,vi=We,yi=_,bi=function(t,e,r){var n=mi(e);n in t?vi.f(t,n,yi(0,r)):t[n]=r},wi=wn,Ti=An,Si=bi,Ei=A.Array,Ai=Math.max,xi=function(t,e,r){for(var n=Ti(t),i=wi(e,n),o=wi(void 0===r?n:r,n),a=Ei(Ai(o-i,0)),s=0;i<o;i++,s++)Si(a,s,t[i]);return a.length=s,a},Oi=X,ki=ot,Ci=pn.f,Di=xi,Bi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];gi.f=function(t){return Bi&&"Window"==Oi(t)?function(t){try{return Ci(t)}catch(t){return Di(Bi)}}(t):Ci(ki(t))};var Pi=O((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ri=O,Ii=ut,Ni=X,ji=Pi,Mi=Object.isExtensible,Li=Ri((function(){Mi(1)}))||ji?function(t){return!!Ii(t)&&((!ji||"ArrayBuffer"!=Ni(t))&&(!Mi||Mi(t)))}:Mi,_i=!O((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vi=pi,Fi=z,Ui=Br,qi=ut,Hi=ne,zi=We.f,Gi=pn,Ki=gi,Wi=Li,Xi=_i,Zi=!1,Ji=ue("meta"),Yi=0,$i=function(t){zi(t,Ji,{value:{objectID:"O"+Yi++,weakData:{}}})},Qi=di.exports={enable:function(){Qi.enable=function(){},Zi=!0;var t=Gi.f,e=Fi([].splice),r={};r[Ji]=1,t(r).length&&(Gi.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===Ji){e(n,i,1);break}return n},Vi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ki.f}))},fastKey:function(t,e){if(!qi(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Hi(t,Ji)){if(!Wi(t))return"F";if(!e)return"E";$i(t)}return t[Ji].objectID},getWeakData:function(t,e){if(!Hi(t,Ji)){if(!Wi(t))return!0;if(!e)return!1;$i(t)}return t[Ji].weakData},onFreeze:function(t){return Xi&&Zi&&Wi(t)&&!Hi(t,Ji)&&$i(t),t}};Ui[Ji]=!0;var to=pi,eo=ut,ro=di.exports.onFreeze,no=_i,io=O,oo=Object.seal;to({target:"Object",stat:!0,forced:io((function(){oo(1)})),sham:!no},{seal:function(t){return oo&&eo(t)?oo(ro(t)):t}});var ao=X,so=Array.isArray||function(t){return"Array"==ao(t)},uo={};uo[be("toStringTag")]="z";var co="[object z]"===String(uo),ho=A,lo=co,fo=at,po=X,go=be("toStringTag"),mo=ho.Object,vo="Arguments"==po(function(){return arguments}()),yo=lo?po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=mo(t),go))?r:vo?po(e):"Object"==(n=po(e))&&fo(e.callee)?"Arguments":n},bo=z,wo=O,To=at,So=yo,Eo=Tr,Ao=function(){},xo=[],Oo=ft("Reflect","construct"),ko=/^\s*(?:class|function)\b/,Co=bo(ko.exec),Do=!ko.exec(Ao),Bo=function(t){if(!To(t))return!1;try{return Oo(Ao,xo,t),!0}catch(t){return!1}},Po=function(t){if(!To(t))return!1;switch(So(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Co(ko,Eo(t))}catch(t){return!0}};Po.sham=!0;var Ro=!Oo||wo((function(){var t;return Bo(Bo.call)||!Bo(Object)||!Bo((function(){t=!0}))||t}))?Po:Bo,Io=A,No=so,jo=Ro,Mo=ut,Lo=be("species"),_o=Io.Array,Vo=function(t){var e;return No(t)&&(e=t.constructor,(jo(e)&&(e===_o||No(e.prototype))||Mo(e)&&null===(e=e[Lo]))&&(e=void 0)),void 0===e?_o:e},Fo=function(t,e){return new(Vo(t))(0===e?0:e)},Uo=O,qo=Tt,Ho=be("species"),zo=function(t){return qo>=51||!Uo((function(){var e=[];return(e.constructor={})[Ho]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=pi,Ko=A,Wo=O,Xo=so,Zo=ut,Jo=te,Yo=An,$o=bi,Qo=Fo,ta=zo,ea=Tt,ra=be("isConcatSpreadable"),na=9007199254740991,ia="Maximum allowed index exceeded",oa=Ko.TypeError,aa=ea>=51||!Wo((function(){var t=[];return t[ra]=!1,t.concat()[0]!==t})),sa=ta("concat"),ua=function(t){if(!Zo(t))return!1;var e=t[ra];return void 0!==e?!!e:Xo(t)};Go({target:"Array",proto:!0,forced:!aa||!sa},{concat:function(t){var e,r,n,i,o,a=Jo(this),s=Qo(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(ua(o=-1===e?a:arguments[e])){if(u+(i=Yo(o))>na)throw oa(ia);for(r=0;r<i;r++,u++)r in o&&$o(s,u,o[r])}else{if(u>=na)throw oa(ia);$o(s,u++,o)}return s.length=u,s}});var ca=C,ha=Function.prototype,la=ha.apply,fa=ha.call,pa="object"==typeof Reflect&&Reflect.apply||(ca?fa.bind(la):function(){return fa.apply(la,arguments)}),da=A,ga=at,ma=da.String,va=da.TypeError,ya=z,ba=Qe,wa=function(t){if("object"==typeof t||ga(t))return t;throw va("Can't set "+ma(t)+" as a prototype")},Ta=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ya(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return ba(r),wa(n),e?t(r,n):r.__proto__=n,r}}():void 0),Sa=at,Ea=ut,Aa=Ta,xa=function(t,e,r){var n,i;return Aa&&Sa(n=e.constructor)&&n!==r&&Ea(i=n.prototype)&&i!==r.prototype&&Aa(t,i),t},Oa=yo,ka=A.String,Ca=function(t){if("Symbol"===Oa(t))throw TypeError("Cannot convert a Symbol value to a string");return ka(t)},Da=Ca,Ba=ut,Pa=pr,Ra=z("".replace),Ia=String(Error("zxcasd").stack),Na=/\n\s*at [^:]*:[^\n]*/,ja=Na.test(Ia),Ma=_,La=!O((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ma(1,7)),7!==t.stack)})),_a=ft,Va=ne,Fa=pr,Ua=pt,qa=Ta,Ha=Jn,za=xa,Ga=function(t,e){return void 0===t?arguments.length<2?"":e:Da(t)},Ka=function(t,e){Ba(e)&&"cause"in e&&Pa(t,"cause",e.cause)},Wa=function(t,e){if(ja&&"string"==typeof t)for(;e--;)t=Ra(t,Na,"");return t},Xa=La,Za=pi,Ja=pa,Ya=function(t,e,r,n){var i=n?2:1,o=t.split("."),a=o[o.length-1],s=_a.apply(null,o);if(s){var u=s.prototype;if(Va(u,"cause")&&delete u.cause,!r)return s;var c=_a("Error"),h=e((function(t,e){var r=Ga(n?e:t,void 0),o=n?new s(t):new s;return void 0!==r&&Fa(o,"message",r),Xa&&Fa(o,"stack",Wa(o.stack,2)),this&&Ua(u,this)&&za(o,this,h),arguments.length>i&&Ka(o,arguments[i]),o}));h.prototype=u,"Error"!==a&&(qa?qa(h,c):Ha(h,c,{name:!0})),Ha(h,s);try{u.name!==a&&Fa(u,"name",a),u.constructor=h}catch(t){}return h}},$a="WebAssembly",Qa=A.WebAssembly,ts=7!==Error("e",{cause:7}).cause,es=function(t,e){var r={};r[t]=Ya(t,e,ts),Za({global:!0,forced:ts},r)},rs=function(t,e){if(Qa&&Qa[t]){var r={};r[t]=Ya("WebAssembly."+t,e,ts),Za({target:$a,stat:!0,forced:ts},r)}};es("Error",(function(t){return function(e){return Ja(t,this,arguments)}})),es("EvalError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("RangeError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("ReferenceError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("SyntaxError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("TypeError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("URIError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("CompileError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("LinkError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("RuntimeError",(function(t){return function(e){return Ja(t,this,arguments)}}));var ns=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,r,n=(e=i,r=f(),function(){var t,n=h(e);if(r){var i=h(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v(this,t)});function i(t){var e;a(this,i);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return e=n.call.apply(n,[this].concat(o)),Error.captureStackTrace&&Error.captureStackTrace(m(e),i),e.errors=t,e}return u(i)}(d(Error)),is=jn,os=Mn,as=Object.keys||function(t){return is(t,os)},ss=k,us=z,cs=P,hs=O,ls=as,fs=Vn,ps=R,ds=te,gs=tt,ms=Object.assign,vs=Object.defineProperty,ys=us([].concat),bs=!ms||hs((function(){if(ss&&1!==ms({b:1},ms(vs({},"a",{enumerable:!0,get:function(){vs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=ms({},t)[r]||ls(ms({},e)).join("")!=n}))?function(t,e){for(var r=ds(t),n=arguments.length,i=1,o=fs.f,a=ps.f;n>i;)for(var s,u=gs(arguments[i++]),c=o?ys(ls(u),o(u)):ls(u),h=c.length,l=0;h>l;)s=c[l++],ss&&!cs(a,u,s)||(r[s]=u[s]);return r}:ms,ws=bs;pi({target:"Object",stat:!0,forced:Object.assign!==ws},{assign:ws});var Ts=yo,Ss=co?{}.toString:function(){return"[object "+Ts(this)+"]"},Es=co,As=dr.exports,xs=Ss;Es||As(Object.prototype,"toString",xs,{unsafe:!0});var Os=je("span").classList,ks=Os&&Os.constructor&&Os.constructor.prototype,Cs=ks===Object.prototype?void 0:ks,Ds=Lt,Bs=C,Ps=z(z.bind),Rs=function(t,e){return Ds(t),void 0===e?t:Bs?Ps(t,e):function(){return t.apply(e,arguments)}},Is=Rs,Ns=tt,js=te,Ms=An,Ls=Fo,_s=z([].push),Vs=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(u,c,h,l){for(var f,p,d=js(u),g=Ns(d),m=Is(c,h),v=Ms(g),y=0,b=l||Ls,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in g)&&(p=m(f=g[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:_s(w,f)}else switch(t){case 4:return!1;case 7:_s(w,f)}return o?-1:n||i?i:w}},Fs={forEach:Vs(0),map:Vs(1),filter:Vs(2),some:Vs(3),every:Vs(4),find:Vs(5),findIndex:Vs(6),filterReject:Vs(7)},Us=O,qs=function(t,e){var r=[][t];return!!r&&Us((function(){r.call(null,e||function(){return 1},1)}))},Hs=Fs.forEach,zs=qs("forEach")?[].forEach:function(t){return Hs(this,t,arguments.length>1?arguments[1]:void 0)},Gs=A,Ks={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ws=Cs,Xs=zs,Zs=pr,Js=function(t){if(t&&t.forEach!==Xs)try{Zs(t,"forEach",Xs)}catch(e){t.forEach=Xs}};for(var Ys in Ks)Ks[Ys]&&Js(Gs[Ys]&&Gs[Ys].prototype);Js(Ws);var $s={},Qs=k,tu=Xe,eu=We,ru=Qe,nu=ot,iu=as;$s.f=Qs&&!tu?Object.defineProperties:function(t,e){ru(t);for(var r,n=nu(e),i=iu(e),o=i.length,a=0;o>a;)eu.f(t,r=i[a++],n[r]);return t};var ou,au=ft("document","documentElement"),su=Qe,uu=$s,cu=Mn,hu=Br,lu=au,fu=je,pu=Dr("IE_PROTO"),du=function(){},gu=function(t){return"<script>"+t+"</"+"script>"},mu=function(t){t.write(gu("")),t.close();var e=t.parentWindow.Object;return t=null,e},vu=function(){try{ou=new ActiveXObject("htmlfile")}catch(t){}var t,e;vu="undefined"!=typeof document?document.domain&&ou?mu(ou):((e=fu("iframe")).style.display="none",lu.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(gu("document.F=Object")),t.close(),t.F):mu(ou);for(var r=cu.length;r--;)delete vu.prototype[cu[r]];return vu()};hu[pu]=!0;var yu=Object.create||function(t,e){var r;return null!==t?(du.prototype=su(t),r=new du,du.prototype=null,r[pu]=t):r=vu(),void 0===e?r:uu.f(r,e)},bu=yu,wu=We,Tu=be("unscopables"),Su=Array.prototype;null==Su[Tu]&&wu.f(Su,Tu,{configurable:!0,value:bu(null)});var Eu=function(t){Su[Tu][t]=!0},Au=Dn.includes,xu=Eu;pi({target:"Array",proto:!0},{includes:function(t){return Au(this,t,arguments.length>1?arguments[1]:void 0)}}),xu("includes");var Ou=ut,ku=X,Cu=be("match"),Du=function(t){var e;return Ou(t)&&(void 0!==(e=t[Cu])?!!e:"RegExp"==ku(t))},Bu=A.TypeError,Pu=be("match"),Ru=pi,Iu=function(t){if(Du(t))throw Bu("The method doesn't accept regular expressions");return t},Nu=rt,ju=Ca,Mu=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Pu]=!1,"/./"[t](e)}catch(t){}}return!1},Lu=z("".indexOf);Ru({target:"String",proto:!0,forced:!Mu("includes")},{includes:function(t){return!!~Lu(ju(Nu(this)),ju(Iu(t)),arguments.length>1?arguments[1]:void 0)}});var _u=A.Promise,Vu=dr.exports,Fu=We.f,Uu=ne,qu=be("toStringTag"),Hu=ft,zu=We,Gu=k,Ku=be("species"),Wu=pt,Xu=A.TypeError,Zu={},Ju=Zu,Yu=be("iterator"),$u=Array.prototype,Qu=yo,tc=Vt,ec=Zu,rc=be("iterator"),nc=function(t){if(null!=t)return tc(t,rc)||tc(t,"@@iterator")||ec[Qu(t)]},ic=P,oc=Lt,ac=Qe,sc=It,uc=nc,cc=A.TypeError,hc=P,lc=Qe,fc=Vt,pc=Rs,dc=P,gc=Qe,mc=It,vc=function(t){return void 0!==t&&(Ju.Array===t||$u[Yu]===t)},yc=An,bc=pt,wc=function(t,e){var r=arguments.length<2?uc(t):e;if(oc(r))return ac(ic(r,t));throw cc(sc(t)+" is not iterable")},Tc=nc,Sc=function(t,e,r){var n,i;lc(t);try{if(!(n=fc(t,"return"))){if("throw"===e)throw r;return r}n=hc(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return lc(n),r},Ec=A.TypeError,Ac=function(t,e){this.stopped=t,this.result=e},xc=Ac.prototype,Oc=be("iterator"),kc=!1;try{var Cc=0,Dc={next:function(){return{done:!!Cc++}},return:function(){kc=!0}};Dc[Oc]=function(){return this},Array.from(Dc,(function(){throw 2}))}catch(t){}var Bc,Pc,Rc,Ic,Nc=Ro,jc=It,Mc=A.TypeError,Lc=Qe,_c=function(t){if(Nc(t))return t;throw Mc(jc(t)+" is not a constructor")},Vc=be("species"),Fc=z([].slice),Uc=A.TypeError,qc=/(?:ipad|iphone|ipod).*applewebkit/i.test(dt),Hc="process"==X(A.process),zc=A,Gc=pa,Kc=Rs,Wc=at,Xc=ne,Zc=O,Jc=au,Yc=Fc,$c=je,Qc=function(t,e){if(t<e)throw Uc("Not enough arguments");return t},th=qc,eh=Hc,rh=zc.setImmediate,nh=zc.clearImmediate,ih=zc.process,oh=zc.Dispatch,ah=zc.Function,sh=zc.MessageChannel,uh=zc.String,ch=0,hh={},lh="onreadystatechange";try{Bc=zc.location}catch(t){}var fh=function(t){if(Xc(hh,t)){var e=hh[t];delete hh[t],e()}},ph=function(t){return function(){fh(t)}},dh=function(t){fh(t.data)},gh=function(t){zc.postMessage(uh(t),Bc.protocol+"//"+Bc.host)};rh&&nh||(rh=function(t){Qc(arguments.length,1);var e=Wc(t)?t:ah(t),r=Yc(arguments,1);return hh[++ch]=function(){Gc(e,void 0,r)},Pc(ch),ch},nh=function(t){delete hh[t]},eh?Pc=function(t){ih.nextTick(ph(t))}:oh&&oh.now?Pc=function(t){oh.now(ph(t))}:sh&&!th?(Ic=(Rc=new sh).port2,Rc.port1.onmessage=dh,Pc=Kc(Ic.postMessage,Ic)):zc.addEventListener&&Wc(zc.postMessage)&&!zc.importScripts&&Bc&&"file:"!==Bc.protocol&&!Zc(gh)?(Pc=gh,zc.addEventListener("message",dh,!1)):Pc=lh in $c("script")?function(t){Jc.appendChild($c("script")).onreadystatechange=function(){Jc.removeChild(this),fh(t)}}:function(t){setTimeout(ph(t),0)});var mh,vh,yh,bh,wh,Th,Sh,Eh,Ah={set:rh,clear:nh},xh=A,Oh=/ipad|iphone|ipod/i.test(dt)&&void 0!==xh.Pebble,kh=/web0s(?!.*chrome)/i.test(dt),Ch=A,Dh=Rs,Bh=x.f,Ph=Ah.set,Rh=qc,Ih=Oh,Nh=kh,jh=Hc,Mh=Ch.MutationObserver||Ch.WebKitMutationObserver,Lh=Ch.document,_h=Ch.process,Vh=Ch.Promise,Fh=Bh(Ch,"queueMicrotask"),Uh=Fh&&Fh.value;Uh||(mh=function(){var t,e;for(jh&&(t=_h.domain)&&t.exit();vh;){e=vh.fn,vh=vh.next;try{e()}catch(t){throw vh?bh():yh=void 0,t}}yh=void 0,t&&t.enter()},Rh||jh||Nh||!Mh||!Lh?!Ih&&Vh&&Vh.resolve?((Sh=Vh.resolve(void 0)).constructor=Vh,Eh=Dh(Sh.then,Sh),bh=function(){Eh(mh)}):jh?bh=function(){_h.nextTick(mh)}:(Ph=Dh(Ph,Ch),bh=function(){Ph(mh)}):(wh=!0,Th=Lh.createTextNode(""),new Mh(mh).observe(Th,{characterData:!0}),bh=function(){Th.data=wh=!wh}));var qh=Uh||function(t){var e={fn:t,next:void 0};yh&&(yh.next=e),vh||(vh=e,bh()),yh=e},Hh={},zh=Lt,Gh=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=zh(e),this.reject=zh(r)};Hh.f=function(t){return new Gh(t)};var Kh=Qe,Wh=ut,Xh=Hh,Zh=A,Jh=function(){this.head=null,this.tail=null};Jh.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Yh,$h,Qh,tl,el=Jh,rl="object"==typeof window,nl=pi,il=A,ol=ft,al=P,sl=_u,ul=dr.exports,cl=function(t,e,r){for(var n in e)Vu(t,n,e[n],r);return t},hl=Ta,ll=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Uu(t,qu)&&Fu(t,qu,{configurable:!0,value:e})},fl=function(t){var e=Hu(t),r=zu.f;Gu&&e&&!e[Ku]&&r(e,Ku,{configurable:!0,get:function(){return this}})},pl=Lt,dl=at,gl=ut,ml=function(t,e){if(Wu(e,t))return t;throw Xu("Incorrect invocation")},vl=Tr,yl=function(t,e,r){var n,i,o,a,s,u,c,h=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=pc(e,h),g=function(t){return n&&Sc(n,"normal",t),new Ac(!0,t)},m=function(t){return l?(gc(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(f)n=t;else{if(!(i=Tc(t)))throw Ec(mc(t)+" is not iterable");if(vc(i)){for(o=0,a=yc(t);a>o;o++)if((s=m(t[o]))&&bc(xc,s))return s;return new Ac(!1)}n=wc(t,i)}for(u=n.next;!(c=dc(u,n)).done;){try{s=m(c.value)}catch(t){Sc(n,"throw",t)}if("object"==typeof s&&s&&bc(xc,s))return s}return new Ac(!1)},bl=function(t,e){if(!e&&!kc)return!1;var r=!1;try{var n={};n[Oc]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},wl=function(t,e){var r,n=Lc(t).constructor;return void 0===n||null==(r=Lc(n)[Vc])?e:_c(r)},Tl=Ah.set,Sl=qh,El=function(t,e){if(Kh(t),Wh(e)&&e.constructor===t)return e;var r=Xh.f(t);return(0,r.resolve)(e),r.promise},Al=function(t,e){var r=Zh.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},xl=Hh,Ol=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},kl=el,Cl=Xr,Dl=oi,Bl=rl,Pl=Hc,Rl=Tt,Il=be("species"),Nl="Promise",jl=Cl.getterFor(Nl),Ml=Cl.set,Ll=Cl.getterFor(Nl),_l=sl&&sl.prototype,Vl=sl,Fl=_l,Ul=il.TypeError,ql=il.document,Hl=il.process,zl=xl.f,Gl=zl,Kl=!!(ql&&ql.createEvent&&il.dispatchEvent),Wl=dl(il.PromiseRejectionEvent),Xl="unhandledrejection",Zl=!1,Jl=Dl(Nl,(function(){var t=vl(Vl),e=t!==String(Vl);if(!e&&66===Rl)return!0;if(Rl>=51&&/native code/.test(t))return!1;var r=new Vl((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Il]=n,!(Zl=r.then((function(){}))instanceof n)||!e&&Bl&&!Wl})),Yl=Jl||!bl((function(t){Vl.all(t).catch((function(){}))})),$l=function(t){var e;return!(!gl(t)||!dl(e=t.then))&&e},Ql=function(t,e){var r,n,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(a||(2===e.rejection&&of(e),e.rejection=1),!0===s?r=o:(h&&h.enter(),r=s(o),h&&(h.exit(),i=!0)),r===t.promise?c(Ul("Promise-chain cycle")):(n=$l(r))?al(n,r,u,c):u(r)):c(o)}catch(t){h&&!i&&h.exit(),c(t)}},tf=function(t,e){t.notified||(t.notified=!0,Sl((function(){for(var r,n=t.reactions;r=n.get();)Ql(r,t);t.notified=!1,e&&!t.rejection&&rf(t)})))},ef=function(t,e,r){var n,i;Kl?((n=ql.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),il.dispatchEvent(n)):n={promise:e,reason:r},!Wl&&(i=il["on"+t])?i(n):t===Xl&&Al("Unhandled promise rejection",r)},rf=function(t){al(Tl,il,(function(){var e,r=t.facade,n=t.value;if(nf(t)&&(e=Ol((function(){Pl?Hl.emit("unhandledRejection",n,r):ef(Xl,r,n)})),t.rejection=Pl||nf(t)?2:1,e.error))throw e.value}))},nf=function(t){return 1!==t.rejection&&!t.parent},of=function(t){al(Tl,il,(function(){var e=t.facade;Pl?Hl.emit("rejectionHandled",e):ef("rejectionhandled",e,t.value)}))},af=function(t,e,r){return function(n){t(e,n,r)}},sf=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,tf(t,!0))},uf=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Ul("Promise can't be resolved itself");var n=$l(e);n?Sl((function(){var r={done:!1};try{al(n,e,af(uf,r,t),af(sf,r,t))}catch(e){sf(r,e,t)}})):(t.value=e,t.state=1,tf(t,!1))}catch(e){sf({done:!1},e,t)}}};if(Jl&&(Fl=(Vl=function(t){ml(this,Fl),pl(t),al(Yh,this);var e=jl(this);try{t(af(uf,e),af(sf,e))}catch(t){sf(e,t)}}).prototype,(Yh=function(t){Ml(this,{type:Nl,done:!1,notified:!1,parent:!1,reactions:new kl,rejection:!1,state:0,value:void 0})}).prototype=cl(Fl,{then:function(t,e){var r=Ll(this),n=zl(wl(this,Vl));return r.parent=!0,n.ok=!dl(t)||t,n.fail=dl(e)&&e,n.domain=Pl?Hl.domain:void 0,0==r.state?r.reactions.add(n):Sl((function(){Ql(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),$h=function(){var t=new Yh,e=jl(t);this.promise=t,this.resolve=af(uf,e),this.reject=af(sf,e)},xl.f=zl=function(t){return t===Vl||t===Qh?new $h(t):Gl(t)},dl(sl)&&_l!==Object.prototype)){tl=_l.then,Zl||(ul(_l,"then",(function(t,e){var r=this;return new Vl((function(t,e){al(tl,r,t,e)})).then(t,e)}),{unsafe:!0}),ul(_l,"catch",Fl.catch,{unsafe:!0}));try{delete _l.constructor}catch(t){}hl&&hl(_l,Fl)}nl({global:!0,wrap:!0,forced:Jl},{Promise:Vl}),ll(Vl,Nl,!1),fl(Nl),Qh=ol(Nl),nl({target:Nl,stat:!0,forced:Jl},{reject:function(t){var e=zl(this);return al(e.reject,void 0,t),e.promise}}),nl({target:Nl,stat:!0,forced:Jl},{resolve:function(t){return El(this,t)}}),nl({target:Nl,stat:!0,forced:Yl},{all:function(t){var e=this,r=zl(e),n=r.resolve,i=r.reject,o=Ol((function(){var r=pl(e.resolve),o=[],a=0,s=1;yl(t,(function(t){var u=a++,c=!1;s++,al(r,e,t).then((function(t){c||(c=!0,o[u]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=zl(e),n=r.reject,i=Ol((function(){var i=pl(e.resolve);yl(t,(function(t){al(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var cf={cookieTestUrl:"https://legacy-staging.paystack.co/test-iframe/start.html",publishableKey:"uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==",publicKey:"-----BEGIN PUBLIC KEY-----\r\nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALhZs/7hP0g0+hrqTq0hFyGVxgco0NMx\r\nZD8nPS6ihxap0yNFjzdyUuZED6P4/aK9Ezl5ajEI9pcx5/1BrEE+F3kCAwEAAQ==\r\n-----END PUBLIC KEY-----"},hf=r(r({},cf),{},{checkoutUrl:"http://localhost:8080/",paymentBaseUrl:"https://legacy-staging.paystack.co/",paystackApiUrl:"https://studio-api.paystack.co/",pusherKey:"1c7b262ee18455815893",pusherUrl:"https://s3-eu-west-1.amazonaws.com/pstk-public-files/js/pusher.min.js"}),lf=r(r({},cf),{},{checkoutUrl:"https://checkout-studio.paystack.com/",paymentBaseUrl:"https://legacy-staging.paystack.co/",paystackApiUrl:"https://studio-api.paystack.co/",pusherKey:"1c7b262ee18455815893",pusherUrl:"https://s3-eu-west-1.amazonaws.com/pstk-public-files/js/pusher.min.js"}),ff=r(r({},cf),{},{checkoutUrl:"https://checkout.paystack.com/",paymentBaseUrl:"https://standard.paystack.co/",paystackApiUrl:"https://api.paystack.co/",pusherKey:"8e4b9b7ca3418bd5cdc8",pusherUrl:"https://checkout.paystack.com/static/vendor/pusher.min.js"}),pf={dev:hf,staging:lf,production:ff}[(window||process.env).paystackEnvironment]||ff;var df=function(t){(console?console.log:function(){})(t)},gf=function(){},mf={exports:{}},vf=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},yf=vf,bf=Object.prototype.toString;function wf(t){return"[object Array]"===bf.call(t)}function Tf(t){return void 0===t}function Sf(t){return null!==t&&"object"==typeof t}function Ef(t){if("[object Object]"!==bf.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Af(t){return"[object Function]"===bf.call(t)}function xf(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),wf(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var Of={isArray:wf,isArrayBuffer:function(t){return"[object ArrayBuffer]"===bf.call(t)},isBuffer:function(t){return null!==t&&!Tf(t)&&null!==t.constructor&&!Tf(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Sf,isPlainObject:Ef,isUndefined:Tf,isDate:function(t){return"[object Date]"===bf.call(t)},isFile:function(t){return"[object File]"===bf.call(t)},isBlob:function(t){return"[object Blob]"===bf.call(t)},isFunction:Af,isStream:function(t){return Sf(t)&&Af(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:xf,merge:function t(){var e={};function r(r,n){Ef(e[n])&&Ef(r)?e[n]=t(e[n],r):Ef(r)?e[n]=t({},r):wf(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)xf(arguments[n],r);return e},extend:function(t,e,r){return xf(e,(function(e,n){t[n]=r&&"function"==typeof e?yf(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}},kf=Of;function Cf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Df=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(kf.isURLSearchParams(e))n=e.toString();else{var i=[];kf.forEach(e,(function(t,e){null!=t&&(kf.isArray(t)?e+="[]":t=[t],kf.forEach(t,(function(t){kf.isDate(t)?t=t.toISOString():kf.isObject(t)&&(t=JSON.stringify(t)),i.push(Cf(e)+"="+Cf(t))})))})),n=i.join("&")}if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},Bf=Of;function Pf(){this.handlers=[]}Pf.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},Pf.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Pf.prototype.forEach=function(t){Bf.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var Rf=Pf,If=Of,Nf=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},jf=Nf,Mf=function(t,e,r,n,i){var o=new Error(t);return jf(o,e,r,n,i)},Lf=Mf,_f=Of,Vf=_f.isStandardBrowserEnv()?{write:function(t,e,r,n,i,o){var a=[];a.push(t+"="+encodeURIComponent(e)),_f.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),_f.isString(n)&&a.push("path="+n),_f.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Ff=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Uf=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},qf=Of,Hf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],zf=Of,Gf=zf.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=zf.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},Kf=Of,Wf=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(Lf("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)},Xf=Vf,Zf=Df,Jf=function(t,e){return t&&!Ff(e)?Uf(t,e):e},Yf=function(t){var e,r,n,i={};return t?(qf.forEach(t.split("\n"),(function(t){if(n=t.indexOf(":"),e=qf.trim(t.substr(0,n)).toLowerCase(),r=qf.trim(t.substr(n+1)),e){if(i[e]&&Hf.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i},$f=Gf,Qf=Mf,tp=function(t){return new Promise((function(e,r){var n=t.data,i=t.headers,o=t.responseType;Kf.isFormData(n)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var s=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+u)}var c=Jf(t.baseURL,t.url);function h(){if(a){var n="getAllResponseHeaders"in a?Yf(a.getAllResponseHeaders()):null,i={data:o&&"text"!==o&&"json"!==o?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:n,config:t,request:a};Wf(e,r,i),a=null}}if(a.open(t.method.toUpperCase(),Zf(c,t.params,t.paramsSerializer),!0),a.timeout=t.timeout,"onloadend"in a?a.onloadend=h:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(h)},a.onabort=function(){a&&(r(Qf("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(Qf("Network Error",t,null,a)),a=null},a.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(Qf(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Kf.isStandardBrowserEnv()){var l=(t.withCredentials||$f(c))&&t.xsrfCookieName?Xf.read(t.xsrfCookieName):void 0;l&&(i[t.xsrfHeaderName]=l)}"setRequestHeader"in a&&Kf.forEach(i,(function(t,e){void 0===n&&"content-type"===e.toLowerCase()?delete i[e]:a.setRequestHeader(e,t)})),Kf.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),o&&"json"!==o&&(a.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&a.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){a&&(a.abort(),r(t),a=null)})),n||(n=null),a.send(n)}))},ep=Of,rp=function(t,e){If.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},np=Nf,ip={"Content-Type":"application/x-www-form-urlencoded"};function op(t,e){!ep.isUndefined(t)&&ep.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var ap,sp={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ap=tp),ap),transformRequest:[function(t,e){return rp(e,"Accept"),rp(e,"Content-Type"),ep.isFormData(t)||ep.isArrayBuffer(t)||ep.isBuffer(t)||ep.isStream(t)||ep.isFile(t)||ep.isBlob(t)?t:ep.isArrayBufferView(t)?t.buffer:ep.isURLSearchParams(t)?(op(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ep.isObject(t)||e&&"application/json"===e["Content-Type"]?(op(e,"application/json"),JSON.stringify(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&ep.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw np(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};sp.headers={common:{Accept:"application/json, text/plain, */*"}},ep.forEach(["delete","get","head"],(function(t){sp.headers[t]={}})),ep.forEach(["post","put","patch"],(function(t){sp.headers[t]=ep.merge(ip)}));var up=sp,cp=Of,hp=up,lp=function(t){return!(!t||!t.__CANCEL__)},fp=Of,pp=function(t,e,r){var n=this||hp;return cp.forEach(r,(function(r){t=r.call(n,t,e)})),t},dp=lp,gp=up;function mp(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var vp=Of,yp=function(t,e){e=e||{};var r={},n=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(t,e){return vp.isPlainObject(t)&&vp.isPlainObject(e)?vp.merge(t,e):vp.isPlainObject(e)?vp.merge({},e):vp.isArray(e)?e.slice():e}function u(n){vp.isUndefined(e[n])?vp.isUndefined(t[n])||(r[n]=s(void 0,t[n])):r[n]=s(t[n],e[n])}vp.forEach(n,(function(t){vp.isUndefined(e[t])||(r[t]=s(void 0,e[t]))})),vp.forEach(i,u),vp.forEach(o,(function(n){vp.isUndefined(e[n])?vp.isUndefined(t[n])||(r[n]=s(void 0,t[n])):r[n]=s(void 0,e[n])})),vp.forEach(a,(function(n){n in e?r[n]=s(t[n],e[n]):n in t&&(r[n]=s(void 0,t[n]))}));var c=n.concat(i).concat(o).concat(a),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return vp.forEach(h,u),r},bp={name:"axios",version:"0.21.2",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.2.tgz",_integrity:"sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==",_from:"axios@0.21.2"},wp={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){wp[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var Tp={},Sp=bp.version.split(".");function Ep(t,e){for(var r=e?e.split("."):Sp,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}wp.transitional=function(t,e,r){var n=e&&Ep(e);function i(t,e){return"[Axios v"+bp.version+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,a){if(!1===t)throw new Error(i(o," has been removed in "+e));return n&&!Tp[o]&&(Tp[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,a)}};var Ap={isOlderVersion:Ep,assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var o=n[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:wp},xp=Of,Op=Df,kp=Rf,Cp=function(t){return mp(t),t.headers=t.headers||{},t.data=pp.call(t,t.data,t.headers,t.transformRequest),t.headers=fp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),fp.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||gp.adapter)(t).then((function(e){return mp(t),e.data=pp.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return dp(e)||(mp(t),e&&e.response&&(e.response.data=pp.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Dp=yp,Bp=Ap,Pp=Bp.validators;function Rp(t){this.defaults=t,this.interceptors={request:new kp,response:new kp}}Rp.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=Dp(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&Bp.assertOptions(e,{silentJSONParsing:Pp.transitional(Pp.boolean,"1.0.0"),forcedJSONParsing:Pp.transitional(Pp.boolean,"1.0.0"),clarifyTimeoutError:Pp.transitional(Pp.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!n){var a=[Cp,void 0];for(Array.prototype.unshift.apply(a,r),a.concat(o),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var s=t;r.length;){var u=r.shift(),c=r.shift();try{s=u(s)}catch(t){c(t);break}}try{i=Cp(s)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},Rp.prototype.getUri=function(t){return t=Dp(this.defaults,t),Op(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},xp.forEach(["delete","get","head","options"],(function(t){Rp.prototype[t]=function(e,r){return this.request(Dp(r||{},{method:t,url:e,data:(r||{}).data}))}})),xp.forEach(["post","put","patch"],(function(t){Rp.prototype[t]=function(e,r,n){return this.request(Dp(n||{},{method:t,url:e,data:r}))}}));var Ip=Rp;function Np(t){this.message=t}Np.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Np.prototype.__CANCEL__=!0;var jp=Np,Mp=jp;function Lp(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new Mp(t),e(r.reason))}))}Lp.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Lp.source=function(){var t;return{token:new Lp((function(e){t=e})),cancel:t}};var _p=Lp,Vp=Of,Fp=vf,Up=Ip,qp=yp;function Hp(t){var e=new Up(t),r=Fp(Up.prototype.request,e);return Vp.extend(r,Up.prototype,e),Vp.extend(r,e),r}var zp=Hp(up);zp.Axios=Up,zp.create=function(t){return Hp(qp(zp.defaults,t))},zp.Cancel=jp,zp.CancelToken=_p,zp.isCancel=lp,zp.all=function(t){return Promise.all(t)},zp.spread=function(t){return function(e){return t.apply(null,e)}},zp.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError},mf.exports=zp,mf.exports.default=zp;var Gp=mf.exports,Kp=Object.prototype.hasOwnProperty,Wp=Array.isArray,Xp=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Zp=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},Jp={arrayToObject:Zp,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:o,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(Wp(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n="string"==typeof t?t:String(t);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",o=0;o<n.length;++o){var a=n.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=n.charAt(o):a<128?i+=Xp[a]:a<2048?i+=Xp[192|a>>6]+Xp[128|63&a]:a<55296||a>=57344?i+=Xp[224|a>>12]+Xp[128|a>>6&63]+Xp[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(o)),i+=Xp[240|a>>18]+Xp[128|a>>12&63]+Xp[128|a>>6&63]+Xp[128|63&a])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(Wp(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!Kp.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var i=e;return Wp(e)&&!Wp(r)&&(i=Zp(e,n)),Wp(e)&&Wp(r)?(r.forEach((function(r,i){if(Kp.call(e,i)){var o=e[i];o&&"object"==typeof o&&r&&"object"==typeof r?e[i]=t(o,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var o=r[i];return Kp.call(e,i)?e[i]=t(e[i],o,n):e[i]=o,e}),i)}},Yp=String.prototype.replace,$p=/%20/g,Qp={default:"RFC3986",formatters:{RFC1738:function(t){return Yp.call(t,$p,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"},td=Jp,ed=Qp,rd=Object.prototype.hasOwnProperty,nd={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},id=Array.isArray,od=Array.prototype.push,ad=function(t,e){od.apply(t,id(e)?e:[e])},sd=Date.prototype.toISOString,ud={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:td.encode,encodeValuesOnly:!1,formatter:ed.formatters[ed.default],indices:!1,serializeDate:function(t){return sd.call(t)},skipNulls:!1,strictNullHandling:!1},cd=function t(e,r,n,i,o,a,s,u,c,h,l,f,p){var d=e;if("function"==typeof s?d=s(r,d):d instanceof Date?d=h(d):"comma"===n&&id(d)&&(d=d.join(",")),null===d){if(i)return a&&!f?a(r,ud.encoder,p):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||td.isBuffer(d))return a?[l(f?r:a(r,ud.encoder,p))+"="+l(a(d,ud.encoder,p))]:[l(r)+"="+l(String(d))];var g,m=[];if(void 0===d)return m;if(id(s))g=s;else{var v=Object.keys(d);g=u?v.sort(u):v}for(var y=0;y<g.length;++y){var b=g[y];o&&null===d[b]||(id(d)?ad(m,t(d[b],"function"==typeof n?n(r,b):r,n,i,o,a,s,u,c,h,l,f,p)):ad(m,t(d[b],r+(c?"."+b:"["+b+"]"),n,i,o,a,s,u,c,h,l,f,p)))}return m},hd=Jp,ld=Object.prototype.hasOwnProperty,fd={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:hd.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},pd=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},dd=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,s=[];if(a){if(!r.plainObjects&&ld.call(Object.prototype,a)&&!r.allowPrototypes)return;s.push(a)}for(var u=0;null!==(o=i.exec(n))&&u<r.depth;){if(u+=1,!r.plainObjects&&ld.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(o[1])}return o&&s.push("["+n.slice(o.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a&&r.parseArrays)o=[].concat(n);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);r.parseArrays||""!==s?!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=n:o[s]=n:o={0:n}}n=o}return n}(s,e,r)}},gd=function(t,e){var r,n=t,i=function(t){if(!t)return ud;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||ud.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ed.default;if(void 0!==t.format){if(!rd.call(ed.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=ed.formatters[r],i=ud.filter;return("function"==typeof t.filter||id(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:ud.addQueryPrefix,allowDots:void 0===t.allowDots?ud.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:ud.charsetSentinel,delimiter:void 0===t.delimiter?ud.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:ud.encode,encoder:"function"==typeof t.encoder?t.encoder:ud.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:ud.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:ud.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:ud.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:ud.strictNullHandling}}(e);"function"==typeof i.filter?n=(0,i.filter)("",n):id(i.filter)&&(r=i.filter);var o,a=[];if("object"!=typeof n||null===n)return"";o=e&&e.arrayFormat in nd?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=nd[o];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var u=0;u<r.length;++u){var c=r[u];i.skipNulls&&null===n[c]||ad(a,cd(n[c],c,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var h=a.join(i.delimiter),l=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),h.length>0?l+h:""},md=function(t,e){var r=function(t){if(!t)return fd;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?fd.charset:t.charset;return{allowDots:void 0===t.allowDots?fd.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:fd.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:fd.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:fd.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:fd.comma,decoder:"function"==typeof t.decoder?t.decoder:fd.decoder,delimiter:"string"==typeof t.delimiter||hd.isRegExp(t.delimiter)?t.delimiter:fd.delimiter,depth:"number"==typeof t.depth?t.depth:fd.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:fd.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:fd.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:fd.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:fd.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,a=i.split(e.delimiter,o),s=-1,u=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?u="utf-8":"utf8=%26%2310003%3B"===a[r]&&(u="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var c,h,l=a[r],f=l.indexOf("]="),p=-1===f?l.indexOf("="):f+1;-1===p?(c=e.decoder(l,fd.decoder,u),h=e.strictNullHandling?null:""):(c=e.decoder(l.slice(0,p),fd.decoder,u),h=e.decoder(l.slice(p+1),fd.decoder,u)),h&&e.interpretNumericEntities&&"iso-8859-1"===u&&(h=pd(h)),h&&e.comma&&h.indexOf(",")>-1&&(h=h.split(",")),ld.call(n,c)?n[c]=hd.combine(n[c],h):n[c]=h}return n}(t,r):t,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],u=dd(s,n[s],r);i=hd.merge(i,u,r)}return hd.compact(i)},vd={formats:Qp,parse:md,stringify:gd},yd=Fs.filter;pi({target:"Array",proto:!0,forced:!zo("filter")},{filter:function(t){return yd(this,t,arguments.length>1?arguments[1]:void 0)}});var bd=te,wd=as;pi({target:"Object",stat:!0,forced:O((function(){wd(1)}))},{keys:function(t){return wd(bd(t))}});var Td=Gp.create({paramsSerializer:function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).filter((function(e){return![void 0,null].includes(t[e])})).reduce((function(e,n){return r(r({},e),{},c({},n,t[n]))}),{})}(t);return vd.stringify(e,{arrayFormat:"brackets"})}}),Sd=["message","status","errors"],Ed=["message","status","errors"],Ad=["message","status","errors"],xd=["message","status","errors"],Od={success:function(t){var e=t.message;return t.status,t.errors,{status:"success",message:e||"Successful",data:g(t,Sd)}},pending:function(t){var e=t.message;return t.status,t.errors,{status:"pending",message:e||"Payment in progress",data:g(t,Ed)}},transferCreditRequest:function(t){var e=t.message,r=t.status;return t.errors,{status:r,message:e||"Transfer credit request",data:g(t,Ad)}},incorrectAmountSent:function(t){var e=t.message,r=t.status;return t.errors,{status:r,message:e||"Incorrect amount sent",data:g(t,xd)}},auth:function(t){return{status:"auth",message:t.otpmessage||t.message||"Authentication required",data:r(r(r({auth:t.auth},t.countryCode&&{countryCode:t.countryCode}),t.openInNewTab&&{openInNewTab:t.openInNewTab}),t.length&&{length:t.length})}},requery:function(t){return{status:"requery",message:t.message||"Requery"}},requestCustomField:function(t){return{status:"custom_field",message:t.message,data:{type:t.type,format:t.format,field:t.field}}},error:function(t){var e={status:"failed",message:t.message||"Failed",errors:t.errors||[]};return t.bank&&(e.bank=t.bank),e},parse:function(t){var e="object"===n(t)?t:{};return e.data&&"object"===n(e.data)&&(Object.assign(e,e.data),delete e.data),["true",!0,"success"].includes(e.status)?this.success(e):"pending"===e.status?this.pending(e):"requery"===e.status?this.requery(e):"send"===e.status?this.requestCustomField(e):["transfer-credit-request-received","transfer-credit-request-pending","transfer-credit-request-rejected"].includes(e.status)?this.transferCreditRequest(e):"incorrect-amount-sent"===e.status?this.incorrectAmountSent(e):e.auth&&"none"!==e.auth?this.auth(e):this.error(e)}},kd=function(t){var e="".concat(pf.paystackApiUrl,"checkout/request_inline");return Td.get(e,{params:t}).then((function(t){return t.data}))},Cd=function(t){var e="".concat(pf.paystackApiUrl,"transaction/verify_access_code/").concat(t);return Td.get(e).then((function(t){return t.data}))},Dd=function(t){var e="".concat(pf.paystackApiUrl,"transaction/verify/").concat(t);return Td.get(e).then((function(t){return t.data}))},Bd=function(t){var e="".concat(pf.paymentBaseUrl,"charge/requery/").concat(t);return Td.get(e).then((function(t){return Od.parse(t.data)}))},Pd=function(t){var e=t.publicKey,r=t.transactionId,n="".concat(pf.paystackApiUrl,"transaction/").concat(r,"/mark-as-abandoned"),i={Authorization:"Bearer ".concat(e)};return Td.patch(n,{},{headers:i}).then((function(t){return t.data}))},Rd=function(t,e){var r={Authorization:"Bearer ".concat(e)};return Td.post("".concat(pf.paystackApiUrl,"checkout/pay_with_transfer"),t,{headers:r}).then((function(t){return Od.parse(t.data)}))},Id=function(t,e){var r={Authorization:"Bearer ".concat(e)};return Td.post("".concat(pf.paystackApiUrl,"managed_account/customer_claim"),t,{headers:r}).then((function(t){return Od.parse(t.data)}))},Nd={getManagedAccount:function(t){var e=this,r=t.fulfilLateNotification,n={transaction_id:this.id,fulfil_late_notification:r};return Rd(n,this.merchant.key).then((function(t){return"success"===t.status&&(e.bankTransfer=t),t}))},submitPayerDetails:function(t){var e=t.email,r=t.accountNumber,n=t.bankId,i=t.managedAccountNumber,o=t.providerSlug,a=t.claimType,s={reference_id:this.id,account_number:r,email:e,institution_id:n,institution_type:"bank",claim_type:a,managed_account_number:i,provider_slug:o};return Id(s,this.merchant.key)},listenForPayWithTransferCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.bankTransfer.data,n={channel:r&&r.pusher_channel||e,paymentMethod:"bank_transfer"};return this.listenForCharge(n,t)}},jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Md=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(e.sorted),n=Boolean(e.skipIndex),i=Boolean(e.ignorenull),o=function(t){return String(t).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,(function(t){return"%"+t.charCodeAt().toString(16).slice(-2).toUpperCase()}))},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(t);return r?e.sort():e},s=function(t){return t.filter((function(t){return t})).join("&")},u=function(t,e){return s(a(e).map((function(r){return h(t+"["+r+"]",e[r])})))},c=function(t,e){return e.length?s(e.map((function(e,r){return h(n?t+"[]":t+"["+r+"]",e)}))):o(t+"[]")},h=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===e?"undefined":jd(e),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e===n?n=i?n:o(t)+"="+n:/string|number|boolean/.test(r)?n=o(t)+"="+o(e):Array.isArray(e)?n=c(t,e):"object"===r&&(n=u(t,e)),n};return t&&s(a(t).map((function(e){return h(e,t[e])})))},Ld=function(t){var e=t.transactionId,r=t.phoneNumber,n="".concat(pf.paymentBaseUrl,"payattitude/charge/").concat(e),i=Md({phone_number:r});return Td.post(n,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){var e=t.data;return Od.parse(e)}))},_d="payattitude",Vd={chargePayattitude:function(t){var e=this,r=t.phoneNumber,n={transactionId:this.id,phoneNumber:r};return Ld(n).then((function(t){return e.logAPIResponse(t,_d),t}))},listenForPayattitudeCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={paymentMethod:_d,channel:e};return this.listenForCharge(r,t)}},Fd={getEFTUrl:function(t){var e=this,r=t.eftGateway;return new Promise((function(t,n){r||n(Error("Please pass the `eftGateway`"));var i="".concat(pf.paymentBaseUrl,"eft/").concat(r,"/").concat(e.id);t(Od.success({url:i}))}))},listenForEFTCharge:function(t){var e={channel:"EFT_".concat(this.id),paymentMethod:"eft"};return this.listenForCharge(e,t)}},Ud=function(t){var e=t.sessionUrl,r=t.displayName,n=t.transactionId,i=t.domainName,o="".concat(pf.paymentBaseUrl,"applepay/validate-session"),a=Md({sessionUrl:e,displayName:r,domainName:i,transaction:n});return Td.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},qd=function(t){var e=t.transactionId,r=t.paymentObject,n="".concat(pf.paymentBaseUrl,"applepay/charge"),i=Md({paymentObject:r,transaction:e});return Td.post(n,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},Hd="apple pay",zd={validateApplePaySession:function(t){var e=this,r=t.sessionUrl,n=t.displayName,i=t.domainName;return this.logAttempt(Hd),Ud({sessionUrl:r,displayName:n,domainName:i,transactionId:this.id}).then((function(t){return e.logAPIResponseMessage(t.message),t}))},chargeApplePay:function(t){var e=this,r=t.paymentObject;return qd({transactionId:this.id,device:this.deviceFingerprint,paymentObject:r}).then((function(t){return e.logAPIResponse(t,Hd),t}))}},Gd=function(t){var e="".concat(pf.paymentBaseUrl,"paypal/").concat(t,"/create");return Td.post(e).then((function(t){return Od.parse(t.data)}))},Kd=function(t){var e="".concat(pf.paymentBaseUrl,"paypal/").concat(t,"/capture");return Td.post(e).then((function(t){return Od.parse(t.data)}))},Wd=function(t){var e=t.publicKey,r=t.transactionId,n="".concat(pf.paystackApiUrl,"paypal/config?transaction=").concat(r),i={Authorization:"Bearer ".concat(e)};return Td.get(n,{headers:i}).then((function(t){return t.data}))},Xd="paypal",Zd={createPayPalOrder:function(){var t=this;return this.logAttempt(Xd),Gd(this.id).then((function(e){return t.logAPIResponseMessage(e.message),e}))},capturePayPalOrder:function(){var t=this;return Kd(this.id).then((function(e){return t.logAPIResponse(e,Xd),e}))},getPayPalConfig:function(){return Wd({publicKey:this.merchant.key,transactionId:this.id})}},Jd=pi,Yd=tt,$d=ot,Qd=qs,tg=z([].join),eg=Yd!=Object,rg=Qd("join",",");Jd({target:"Array",proto:!0,forced:eg||!rg},{join:function(t){return tg($d(this),void 0===t?",":t)}});var ng=k,ig=z,og=as,ag=ot,sg=ig(R.f),ug=ig([].push),cg=function(t){return function(e){for(var r,n=ag(e),i=og(n),o=i.length,a=0,s=[];o>a;)r=i[a++],ng&&!sg(n,r)||ug(s,t?[r,n[r]]:n[r]);return s}},hg={entries:cg(!0),values:cg(!1)}.values;pi({target:"Object",stat:!0},{values:function(t){return hg(t)}});var lg=pi,fg=Fs.find,pg=Eu,dg="find",gg=!0;dg in[]&&Array(1).find((function(){gg=!1})),lg({target:"Array",proto:!0,forced:gg},{find:function(t){return fg(this,t,arguments.length>1?arguments[1]:void 0)}}),pg(dg);var mg=function(t){for(var e,r=0,n=!1,i=t.length-1;i>=0;)e=parseInt(t.charAt(i),10),n&&(e*=2)>9&&(e=e%10+1),n=!n,r+=e,i--;return r%10==0};var vg=function(t){return t?JSON.parse(JSON.stringify(t)):null};var yg=function(t){return"string"==typeof t||t instanceof String};var bg=function(t,e){return Array.isArray(e)?function(t,e,r){var n=String(e).length,i=t.substr(0,n),o=parseInt(i,10);return e=parseInt(String(e).substr(0,i.length),10),r=parseInt(String(r).substr(0,i.length),10),o>=e&&o<=r}(t,e[0],e[1]):function(t,e){return(e=String(e)).substring(0,t.length)===t.substring(0,e.length)}(t,e)},wg=vg,Tg=bg;var Sg,Eg=function(t,e,r){var n,i,o,a;for(n=0;n<e.patterns.length;n++)if(i=e.patterns[n],Tg(t,i)){a=wg(e),o=Array.isArray(i)?String(i[0]).length:String(i).length,t.length>=o&&(a.matchStrength=o),r.push(a);break}},Ag={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},xg=vg,Og=function(t){if(function(t){var e=t.filter((function(t){return t.matchStrength})).length;return e>0&&e===t.length}(t))return t.reduce((function(t,e){return t?t.matchStrength<e.matchStrength?e:t:e}))},kg=yg,Cg=Eg,Dg={},Bg={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},Pg=[Bg.VISA,Bg.MASTERCARD,Bg.AMERICAN_EXPRESS,Bg.DINERS_CLUB,Bg.DISCOVER,Bg.JCB,Bg.UNIONPAY,Bg.MAESTRO,Bg.ELO,Bg.MIR,Bg.HIPER,Bg.HIPERCARD];function Rg(t){return Dg[t]||Ag[t]}function Ig(t,e){var r=Sg.indexOf(t);if(!e&&-1===r)throw new Error('"'+t+'" is not a supported card type.');return r}function Ng(t){var e,r=[];return kg(t)?0===t.length?Sg.map((function(t){return xg(Rg(t))})):(Sg.forEach((function(e){var n=Rg(e);Cg(t,n,r)})),(e=Og(r))?[e]:r):[]}Sg=xg(Pg),Ng.getTypeInfo=function(t){return xg(Rg(t))},Ng.removeCard=function(t){var e=Ig(t);Sg.splice(e,1)},Ng.addCard=function(t){var e=Ig(t.type,!0);Dg[t.type]=t,-1===e&&Sg.push(t.type)},Ng.updateCard=function(t,e){var r,n=Dg[t]||Ag[t];if(!n)throw new Error('"'+t+'" is not a recognized type. Use `addCard` instead.');if(e.type&&n.type!==e.type)throw new Error("Cannot overwrite type parameter.");r=xg(n),Object.keys(r).forEach((function(t){e[t]&&(r[t]=e[t])})),Dg[r.type]=r},Ng.changeOrder=function(t,e){var r=Ig(t);Sg.splice(r,1),Sg.splice(e,0,t)},Ng.resetModifications=function(){Sg=xg(Pg),Dg={}},Ng.types=Bg;var jg=Ng,Mg=mg,Lg=jg;function _g(t,e,r){return{card:t,isPotentiallyValid:e,isValid:r}}var Vg=function(t,e){var r,n,i,o,a;if(e=e||{},"number"==typeof t&&(t=String(t)),"string"!=typeof t)return _g(null,!1,!1);if(t=t.replace(/\-|\s/g,""),!/^\d*$/.test(t))return _g(null,!1,!1);if(0===(r=Lg(t)).length)return _g(null,!1,!1);if(1!==r.length)return _g(null,!0,!1);if(n=r[0],e.maxLength&&t.length>e.maxLength)return _g(n,!1,!1);for(i=n.type===Lg.types.UNIONPAY&&!0!==e.luhnValidateUnionPay||Mg(t),a=Math.max.apply(null,n.lengths),e.maxLength&&(a=Math.min(e.maxLength,a)),o=0;o<n.lengths.length;o++)if(n.lengths[o]===t.length)return _g(n,t.length<a||i,i);return _g(n,t.length<a,!1)};function Fg(t,e,r){return{isValid:t,isPotentiallyValid:e,isCurrentYear:r||!1}}var Ug=function(t,e){var r,n,i,o,a;return e=e||19,"string"!=typeof t?Fg(!1,!1):""===t.replace(/\s/g,"")?Fg(!1,!0):/^\d*$/.test(t)?(n=t.length)<2?Fg(!1,!0):(r=(new Date).getFullYear(),3===n?Fg(!1,t.slice(0,2)===String(r).slice(0,2)):n>4?Fg(!1,!1):(t=parseInt(t,10),i=Number(String(r).substr(2,2)),2===n?(a=i===t,o=t>=i&&t<=i+e):4===n&&(a=r===t,o=t>=r&&t<=r+e),Fg(o,o,a))):Fg(!1,!1)},qg=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Hg=Ug,zg=qg;function Gg(t,e,r){return{isValid:t,isPotentiallyValid:e,isValidForThisYear:r||!1}}var Kg=function(t){var e,r,n=(new Date).getMonth()+1;return"string"!=typeof t?Gg(!1,!1):""===t.replace(/\s/g,"")||"0"===t?Gg(!1,!0):/^\d*$/.test(t)?(e=parseInt(t,10),isNaN(t)?Gg(!1,!1):Gg(r=e>0&&e<13,r,r&&e>=n)):Gg(!1,!1)},Wg=function(t){var e,r,n,i,o;return/^\d{4}-\d{1,2}$/.test(t)?t=t.split("-").reverse():/\//.test(t)?t=t.split(/\s*\/\s*/g):/\s/.test(t)&&(t=t.split(/ +/g)),zg(t)?{month:t[0]||"",year:t.slice(1).join()}:(n=t,r=0===(o=Number(n[0]))?2:o>1||1===o&&Number(n[1])>2?1:1===o?(i=n.substr(1),Hg(i).isPotentiallyValid?1:2):5===n.length?1:n.length>5?2:1,{month:e=t.substr(0,r),year:t.substr(e.length)})},Xg=Kg,Zg=Ug;function Jg(t,e,r,n){return{isValid:t,isPotentiallyValid:e,month:r,year:n}}function Yg(t,e){return{isValid:t,isPotentiallyValid:e}}function $g(t,e){return{isValid:t,isPotentiallyValid:e}}var Qg={number:Vg,expirationDate:function(t,e){var r,n,i,o;if("string"==typeof t)t=t.replace(/^(\d\d) (\d\d(\d\d)?)$/,"$1/$2"),r=Wg(t);else{if(null===t||"object"!=typeof t)return Jg(!1,!1,null,null);r={month:String(t.month),year:String(t.year)}}if(n=Xg(r.month),i=Zg(r.year,e),n.isValid){if(i.isCurrentYear)return Jg(o=n.isValidForThisYear,o,r.month,r.year);if(i.isValid)return Jg(!0,!0,r.month,r.year)}return n.isPotentiallyValid&&i.isPotentiallyValid?Jg(!1,!0,null,null):Jg(!1,!1,null,null)},expirationMonth:Kg,expirationYear:Ug,cvv:function(t,e){return e=(e=e||3)instanceof Array?e:[e],"string"!=typeof t?Yg(!1,!1):/^\d*$/.test(t)?function(t,e){for(var r=0;r<t.length;r++)if(e===t[r])return!0;return!1}(e,t.length)?Yg(!0,!0):t.length<Math.min.apply(null,e)?Yg(!1,!0):t.length>function(t){for(var e=3,r=0;r<t.length;r++)e=t[r]>e?t[r]:e;return e}(e)?Yg(!1,!1):Yg(!0,!0):Yg(!1,!1)},postalCode:function(t,e){var r;return r=(e=e||{}).minLength||3,"string"!=typeof t?$g(!1,!1):t.length<r?$g(!1,!0):$g(!0,!0)},creditCardType:jg},tm=[{type:"bank_auth",name:"Bank authorization",number:"4084080000000409",cvv:"000",month:"01",year:"30"},{type:"success",name:"Success",number:"4084084084084081",cvv:"408",month:"12",year:"30"},{type:"declined",name:"Declined",number:"4084080000005408",cvv:"001",month:"12",year:"30"},{type:"pin",name:"Pin only validation",number:"507850785078507812",cvv:"884",month:"01",year:"30"},{type:"pin+otp",name:"Pin and OTP validation",number:"5060666666666666666",cvv:"123",month:"01",year:"30"},{type:"pin+phone+otp",name:"Pin, phone and OTP validation",number:"507850785078507812",cvv:"884",month:"01",year:"30"},{type:"default",name:"No validation",number:"4084084084084081",cvv:"408",month:"01",year:"30"}],em={exports:{}};function rm(t){var e=new em.exports.JSEncrypt;return e.setPublicKey(pf.publicKey),e.encrypt(t)}!function(t,e){!function(t){var e="0123456789abcdefghijklmnopqrstuvwxyz";function r(t){return e.charAt(t)}function n(t,e){return t&e}function i(t,e){return t|e}function o(t,e){return t^e}function a(t,e){return t&~e}function s(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function u(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=";function l(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=c.charAt(r>>6)+c.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=c.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=c.charAt(r>>2)+c.charAt((3&r)<<4));(3&n.length)>0;)n+=h;return n}function f(t){var e,n="",i=0,o=0;for(e=0;e<t.length&&t.charAt(e)!=h;++e){var a=c.indexOf(t.charAt(e));a<0||(0==i?(n+=r(a>>2),o=3&a,i=1):1==i?(n+=r(o<<2|a>>4),o=15&a,i=2):2==i?(n+=r(o),n+=r(a>>2),o=3&a,i=3):(n+=r(o<<2|a>>4),n+=r(15&a),i=0))}return 1==i&&(n+=r(o<<2)),n}
|
|
1
|
+
var Paystack=function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e,r){return p=f()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&l(i,r.prototype),i},p.apply(null,arguments)}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},d(t)}function g(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw o;return B()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=h(t,e,r);if("normal"===u.type){if(n=r.done?d:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",g={};function m(){}function v(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(D([])));T&&T!==r&&n.call(T,o)&&(b=T);var S=y.prototype=m.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(i,o,a,s){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=h(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function D(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:B}}function B(){return{value:e,done:!0}}return v.prototype=y,u(S,"constructor",y),u(y,"constructor",v),v.displayName=u(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(A.prototype),u(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new A(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=D,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var E=function(t){return t&&t.Math==Math&&t},A=E("object"==typeof globalThis&&globalThis)||E("object"==typeof window&&window)||E("object"==typeof self&&self)||E("object"==typeof S&&S)||function(){return this}()||Function("return this")(),x={},O=function(t){try{return!!t()}catch(t){return!0}},k=!O((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=!O((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),D=C,B=Function.prototype.call,P=D?B.bind(B):function(){return B.apply(B,arguments)},R={},I={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,j=N&&!I.call({1:2},1);R.f=j?function(t){var e=N(this,t);return!!e&&e.enumerable}:I;var M,L,_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=C,F=Function.prototype,U=F.bind,q=F.call,H=V&&U.bind(q,q),z=V?function(t){return t&&H(t)}:function(t){return t&&function(){return q.apply(t,arguments)}},G=z,K=G({}.toString),W=G("".slice),X=function(t){return W(K(t),8,-1)},Z=z,J=O,Y=X,$=A.Object,Q=Z("".split),tt=J((function(){return!$("z").propertyIsEnumerable(0)}))?function(t){return"String"==Y(t)?Q(t,""):$(t)}:$,et=A.TypeError,rt=function(t){if(null==t)throw et("Can't call method on "+t);return t},nt=tt,it=rt,ot=function(t){return nt(it(t))},at=function(t){return"function"==typeof t},st=at,ut=function(t){return"object"==typeof t?null!==t:st(t)},ct=A,ht=at,lt=function(t){return ht(t)?t:void 0},ft=function(t,e){return arguments.length<2?lt(ct[t]):ct[t]&&ct[t][e]},pt=z({}.isPrototypeOf),dt=ft("navigator","userAgent")||"",gt=A,mt=dt,vt=gt.process,yt=gt.Deno,bt=vt&&vt.versions||yt&&yt.version,wt=bt&&bt.v8;wt&&(L=(M=wt.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!L&&mt&&(!(M=mt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=mt.match(/Chrome\/(\d+)/))&&(L=+M[1]);var Tt=L,St=Tt,Et=O,At=!!Object.getOwnPropertySymbols&&!Et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&St&&St<41})),xt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ft,kt=at,Ct=pt,Dt=xt,Bt=A.Object,Pt=Dt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return kt(e)&&Ct(e.prototype,Bt(t))},Rt=A.String,It=function(t){try{return Rt(t)}catch(t){return"Object"}},Nt=at,jt=It,Mt=A.TypeError,Lt=function(t){if(Nt(t))return t;throw Mt(jt(t)+" is not a function")},_t=Lt,Vt=function(t,e){var r=t[e];return null==r?void 0:_t(r)},Ft=P,Ut=at,qt=ut,Ht=A.TypeError,zt={exports:{}},Gt=A,Kt=Object.defineProperty,Wt=function(t,e){try{Kt(Gt,t,{value:e,configurable:!0,writable:!0})}catch(r){Gt[t]=e}return e},Xt=Wt,Zt="__core-js_shared__",Jt=A[Zt]||Xt(Zt,{}),Yt=Jt;(zt.exports=function(t,e){return Yt[t]||(Yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var $t=rt,Qt=A.Object,te=function(t){return Qt($t(t))},ee=te,re=z({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return re(ee(t),e)},ie=z,oe=0,ae=Math.random(),se=ie(1..toString),ue=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++oe+ae,36)},ce=A,he=zt.exports,le=ne,fe=ue,pe=At,de=xt,ge=he("wks"),me=ce.Symbol,ve=me&&me.for,ye=de?me:me&&me.withoutSetter||fe,be=function(t){if(!le(ge,t)||!pe&&"string"!=typeof ge[t]){var e="Symbol."+t;pe&&le(me,t)?ge[t]=me[t]:ge[t]=de&&ve?ve(e):ye(e)}return ge[t]},we=P,Te=ut,Se=Pt,Ee=Vt,Ae=function(t,e){var r,n;if("string"===e&&Ut(r=t.toString)&&!qt(n=Ft(r,t)))return n;if(Ut(r=t.valueOf)&&!qt(n=Ft(r,t)))return n;if("string"!==e&&Ut(r=t.toString)&&!qt(n=Ft(r,t)))return n;throw Ht("Can't convert object to primitive value")},xe=be,Oe=A.TypeError,ke=xe("toPrimitive"),Ce=function(t,e){if(!Te(t)||Se(t))return t;var r,n=Ee(t,ke);if(n){if(void 0===e&&(e="default"),r=we(n,t,e),!Te(r)||Se(r))return r;throw Oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ae(t,e)},De=Ce,Be=Pt,Pe=function(t){var e=De(t,"string");return Be(e)?e:e+""},Re=ut,Ie=A.document,Ne=Re(Ie)&&Re(Ie.createElement),je=function(t){return Ne?Ie.createElement(t):{}},Me=je,Le=!k&&!O((function(){return 7!=Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),_e=k,Ve=P,Fe=R,Ue=_,qe=ot,He=Pe,ze=ne,Ge=Le,Ke=Object.getOwnPropertyDescriptor;x.f=_e?Ke:function(t,e){if(t=qe(t),e=He(e),Ge)try{return Ke(t,e)}catch(t){}if(ze(t,e))return Ue(!Ve(Fe.f,t,e),t[e])};var We={},Xe=k&&O((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=A,Je=ut,Ye=Ze.String,$e=Ze.TypeError,Qe=function(t){if(Je(t))return t;throw $e(Ye(t)+" is not an object")},tr=k,er=Le,rr=Xe,nr=Qe,ir=Pe,or=A.TypeError,ar=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ur="enumerable",cr="configurable",hr="writable";We.f=tr?rr?function(t,e,r){if(nr(t),e=ir(e),nr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&hr in r&&!r.writable){var n=sr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:cr in r?r.configurable:n.configurable,enumerable:ur in r?r.enumerable:n.enumerable,writable:!1})}return ar(t,e,r)}:ar:function(t,e,r){if(nr(t),e=ir(e),nr(r),er)try{return ar(t,e,r)}catch(t){}if("get"in r||"set"in r)throw or("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var lr=We,fr=_,pr=k?function(t,e,r){return lr.f(t,e,fr(1,r))}:function(t,e,r){return t[e]=r,t},dr={exports:{}},gr=at,mr=Jt,vr=z(Function.toString);gr(mr.inspectSource)||(mr.inspectSource=function(t){return vr(t)});var yr,br,wr,Tr=mr.inspectSource,Sr=at,Er=Tr,Ar=A.WeakMap,xr=Sr(Ar)&&/native code/.test(Er(Ar)),Or=zt.exports,kr=ue,Cr=Or("keys"),Dr=function(t){return Cr[t]||(Cr[t]=kr(t))},Br={},Pr=xr,Rr=A,Ir=z,Nr=ut,jr=pr,Mr=ne,Lr=Jt,_r=Dr,Vr=Br,Fr="Object already initialized",Ur=Rr.TypeError,qr=Rr.WeakMap;if(Pr||Lr.state){var Hr=Lr.state||(Lr.state=new qr),zr=Ir(Hr.get),Gr=Ir(Hr.has),Kr=Ir(Hr.set);yr=function(t,e){if(Gr(Hr,t))throw new Ur(Fr);return e.facade=t,Kr(Hr,t,e),e},br=function(t){return zr(Hr,t)||{}},wr=function(t){return Gr(Hr,t)}}else{var Wr=_r("state");Vr[Wr]=!0,yr=function(t,e){if(Mr(t,Wr))throw new Ur(Fr);return e.facade=t,jr(t,Wr,e),e},br=function(t){return Mr(t,Wr)?t[Wr]:{}},wr=function(t){return Mr(t,Wr)}}var Xr={set:yr,get:br,has:wr,enforce:function(t){return wr(t)?br(t):yr(t,{})},getterFor:function(t){return function(e){var r;if(!Nr(e)||(r=br(e)).type!==t)throw Ur("Incompatible receiver, "+t+" required");return r}}},Zr=k,Jr=ne,Yr=Function.prototype,$r=Zr&&Object.getOwnPropertyDescriptor,Qr=Jr(Yr,"name"),tn=Qr&&"something"===function(){}.name,en=Qr&&(!Zr||Zr&&$r(Yr,"name").configurable),rn=A,nn=at,on=ne,an=pr,sn=Wt,un=Tr,cn={EXISTS:Qr,PROPER:tn,CONFIGURABLE:en}.CONFIGURABLE,hn=Xr.get,ln=Xr.enforce,fn=String(String).split("String");(dr.exports=function(t,e,r,n){var i,o=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;nn(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(r,"name")||cn&&r.name!==u)&&an(r,"name",u),(i=ln(r)).source||(i.source=fn.join("string"==typeof u?u:""))),t!==rn?(o?!s&&t[e]&&(a=!0):delete t[e],a?t[e]=r:an(t,e,r)):a?t[e]=r:sn(e,r)})(Function.prototype,"toString",(function(){return nn(this)&&hn(this).source||un(this)}));var pn={},dn=Math.ceil,gn=Math.floor,mn=function(t){var e=+t;return e!=e||0===e?0:(e>0?gn:dn)(e)},vn=mn,yn=Math.max,bn=Math.min,wn=function(t,e){var r=vn(t);return r<0?yn(r+e,0):bn(r,e)},Tn=mn,Sn=Math.min,En=function(t){return t>0?Sn(Tn(t),9007199254740991):0},An=function(t){return En(t.length)},xn=ot,On=wn,kn=An,Cn=function(t){return function(e,r,n){var i,o=xn(e),a=kn(o),s=On(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},Dn={includes:Cn(!0),indexOf:Cn(!1)},Bn=ne,Pn=ot,Rn=Dn.indexOf,In=Br,Nn=z([].push),jn=function(t,e){var r,n=Pn(t),i=0,o=[];for(r in n)!Bn(In,r)&&Bn(n,r)&&Nn(o,r);for(;e.length>i;)Bn(n,r=e[i++])&&(~Rn(o,r)||Nn(o,r));return o},Mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ln=jn,_n=Mn.concat("length","prototype");pn.f=Object.getOwnPropertyNames||function(t){return Ln(t,_n)};var Vn={};Vn.f=Object.getOwnPropertySymbols;var Fn=ft,Un=pn,qn=Vn,Hn=Qe,zn=z([].concat),Gn=Fn("Reflect","ownKeys")||function(t){var e=Un.f(Hn(t)),r=qn.f;return r?zn(e,r(t)):e},Kn=ne,Wn=Gn,Xn=x,Zn=We,Jn=function(t,e,r){for(var n=Wn(e),i=Zn.f,o=Xn.f,a=0;a<n.length;a++){var s=n[a];Kn(t,s)||r&&Kn(r,s)||i(t,s,o(e,s))}},Yn=O,$n=at,Qn=/#|\.prototype\./,ti=function(t,e){var r=ri[ei(t)];return r==ii||r!=ni&&($n(e)?Yn(e):!!e)},ei=ti.normalize=function(t){return String(t).replace(Qn,".").toLowerCase()},ri=ti.data={},ni=ti.NATIVE="N",ii=ti.POLYFILL="P",oi=ti,ai=A,si=x.f,ui=pr,ci=dr.exports,hi=Wt,li=Jn,fi=oi,pi=function(t,e){var r,n,i,o,a,s=t.target,u=t.global,c=t.stat;if(r=u?ai:c?ai[s]||hi(s,{}):(ai[s]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(a=si(r,n))&&a.value:r[n],!fi(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;li(o,i)}(t.sham||i&&i.sham)&&ui(o,"sham",!0),ci(r,n,o,t)}},di={exports:{}},gi={},mi=Pe,vi=We,yi=_,bi=function(t,e,r){var n=mi(e);n in t?vi.f(t,n,yi(0,r)):t[n]=r},wi=wn,Ti=An,Si=bi,Ei=A.Array,Ai=Math.max,xi=function(t,e,r){for(var n=Ti(t),i=wi(e,n),o=wi(void 0===r?n:r,n),a=Ei(Ai(o-i,0)),s=0;i<o;i++,s++)Si(a,s,t[i]);return a.length=s,a},Oi=X,ki=ot,Ci=pn.f,Di=xi,Bi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];gi.f=function(t){return Bi&&"Window"==Oi(t)?function(t){try{return Ci(t)}catch(t){return Di(Bi)}}(t):Ci(ki(t))};var Pi=O((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ri=O,Ii=ut,Ni=X,ji=Pi,Mi=Object.isExtensible,Li=Ri((function(){Mi(1)}))||ji?function(t){return!!Ii(t)&&((!ji||"ArrayBuffer"!=Ni(t))&&(!Mi||Mi(t)))}:Mi,_i=!O((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vi=pi,Fi=z,Ui=Br,qi=ut,Hi=ne,zi=We.f,Gi=pn,Ki=gi,Wi=Li,Xi=_i,Zi=!1,Ji=ue("meta"),Yi=0,$i=function(t){zi(t,Ji,{value:{objectID:"O"+Yi++,weakData:{}}})},Qi=di.exports={enable:function(){Qi.enable=function(){},Zi=!0;var t=Gi.f,e=Fi([].splice),r={};r[Ji]=1,t(r).length&&(Gi.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===Ji){e(n,i,1);break}return n},Vi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ki.f}))},fastKey:function(t,e){if(!qi(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Hi(t,Ji)){if(!Wi(t))return"F";if(!e)return"E";$i(t)}return t[Ji].objectID},getWeakData:function(t,e){if(!Hi(t,Ji)){if(!Wi(t))return!0;if(!e)return!1;$i(t)}return t[Ji].weakData},onFreeze:function(t){return Xi&&Zi&&Wi(t)&&!Hi(t,Ji)&&$i(t),t}};Ui[Ji]=!0;var to=pi,eo=ut,ro=di.exports.onFreeze,no=_i,io=O,oo=Object.seal;to({target:"Object",stat:!0,forced:io((function(){oo(1)})),sham:!no},{seal:function(t){return oo&&eo(t)?oo(ro(t)):t}});var ao=X,so=Array.isArray||function(t){return"Array"==ao(t)},uo={};uo[be("toStringTag")]="z";var co="[object z]"===String(uo),ho=A,lo=co,fo=at,po=X,go=be("toStringTag"),mo=ho.Object,vo="Arguments"==po(function(){return arguments}()),yo=lo?po:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=mo(t),go))?r:vo?po(e):"Object"==(n=po(e))&&fo(e.callee)?"Arguments":n},bo=z,wo=O,To=at,So=yo,Eo=Tr,Ao=function(){},xo=[],Oo=ft("Reflect","construct"),ko=/^\s*(?:class|function)\b/,Co=bo(ko.exec),Do=!ko.exec(Ao),Bo=function(t){if(!To(t))return!1;try{return Oo(Ao,xo,t),!0}catch(t){return!1}},Po=function(t){if(!To(t))return!1;switch(So(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Do||!!Co(ko,Eo(t))}catch(t){return!0}};Po.sham=!0;var Ro=!Oo||wo((function(){var t;return Bo(Bo.call)||!Bo(Object)||!Bo((function(){t=!0}))||t}))?Po:Bo,Io=A,No=so,jo=Ro,Mo=ut,Lo=be("species"),_o=Io.Array,Vo=function(t){var e;return No(t)&&(e=t.constructor,(jo(e)&&(e===_o||No(e.prototype))||Mo(e)&&null===(e=e[Lo]))&&(e=void 0)),void 0===e?_o:e},Fo=function(t,e){return new(Vo(t))(0===e?0:e)},Uo=O,qo=Tt,Ho=be("species"),zo=function(t){return qo>=51||!Uo((function(){var e=[];return(e.constructor={})[Ho]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Go=pi,Ko=A,Wo=O,Xo=so,Zo=ut,Jo=te,Yo=An,$o=bi,Qo=Fo,ta=zo,ea=Tt,ra=be("isConcatSpreadable"),na=9007199254740991,ia="Maximum allowed index exceeded",oa=Ko.TypeError,aa=ea>=51||!Wo((function(){var t=[];return t[ra]=!1,t.concat()[0]!==t})),sa=ta("concat"),ua=function(t){if(!Zo(t))return!1;var e=t[ra];return void 0!==e?!!e:Xo(t)};Go({target:"Array",proto:!0,forced:!aa||!sa},{concat:function(t){var e,r,n,i,o,a=Jo(this),s=Qo(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(ua(o=-1===e?a:arguments[e])){if(u+(i=Yo(o))>na)throw oa(ia);for(r=0;r<i;r++,u++)r in o&&$o(s,u,o[r])}else{if(u>=na)throw oa(ia);$o(s,u++,o)}return s.length=u,s}});var ca=C,ha=Function.prototype,la=ha.apply,fa=ha.call,pa="object"==typeof Reflect&&Reflect.apply||(ca?fa.bind(la):function(){return fa.apply(la,arguments)}),da=A,ga=at,ma=da.String,va=da.TypeError,ya=z,ba=Qe,wa=function(t){if("object"==typeof t||ga(t))return t;throw va("Can't set "+ma(t)+" as a prototype")},Ta=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ya(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return ba(r),wa(n),e?t(r,n):r.__proto__=n,r}}():void 0),Sa=at,Ea=ut,Aa=Ta,xa=function(t,e,r){var n,i;return Aa&&Sa(n=e.constructor)&&n!==r&&Ea(i=n.prototype)&&i!==r.prototype&&Aa(t,i),t},Oa=yo,ka=A.String,Ca=function(t){if("Symbol"===Oa(t))throw TypeError("Cannot convert a Symbol value to a string");return ka(t)},Da=Ca,Ba=ut,Pa=pr,Ra=z("".replace),Ia=String(Error("zxcasd").stack),Na=/\n\s*at [^:]*:[^\n]*/,ja=Na.test(Ia),Ma=_,La=!O((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ma(1,7)),7!==t.stack)})),_a=ft,Va=ne,Fa=pr,Ua=pt,qa=Ta,Ha=Jn,za=xa,Ga=function(t,e){return void 0===t?arguments.length<2?"":e:Da(t)},Ka=function(t,e){Ba(e)&&"cause"in e&&Pa(t,"cause",e.cause)},Wa=function(t,e){if(ja&&"string"==typeof t)for(;e--;)t=Ra(t,Na,"");return t},Xa=La,Za=pi,Ja=pa,Ya=function(t,e,r,n){var i=n?2:1,o=t.split("."),a=o[o.length-1],s=_a.apply(null,o);if(s){var u=s.prototype;if(Va(u,"cause")&&delete u.cause,!r)return s;var c=_a("Error"),h=e((function(t,e){var r=Ga(n?e:t,void 0),o=n?new s(t):new s;return void 0!==r&&Fa(o,"message",r),Xa&&Fa(o,"stack",Wa(o.stack,2)),this&&Ua(u,this)&&za(o,this,h),arguments.length>i&&Ka(o,arguments[i]),o}));h.prototype=u,"Error"!==a&&(qa?qa(h,c):Ha(h,c,{name:!0})),Ha(h,s);try{u.name!==a&&Fa(u,"name",a),u.constructor=h}catch(t){}return h}},$a="WebAssembly",Qa=A.WebAssembly,ts=7!==Error("e",{cause:7}).cause,es=function(t,e){var r={};r[t]=Ya(t,e,ts),Za({global:!0,forced:ts},r)},rs=function(t,e){if(Qa&&Qa[t]){var r={};r[t]=Ya("WebAssembly."+t,e,ts),Za({target:$a,stat:!0,forced:ts},r)}};es("Error",(function(t){return function(e){return Ja(t,this,arguments)}})),es("EvalError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("RangeError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("ReferenceError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("SyntaxError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("TypeError",(function(t){return function(e){return Ja(t,this,arguments)}})),es("URIError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("CompileError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("LinkError",(function(t){return function(e){return Ja(t,this,arguments)}})),rs("RuntimeError",(function(t){return function(e){return Ja(t,this,arguments)}}));var ns=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(i,t);var e,r,n=(e=i,r=f(),function(){var t,n=h(e);if(r){var i=h(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v(this,t)});function i(t){var e;a(this,i);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return e=n.call.apply(n,[this].concat(o)),Error.captureStackTrace&&Error.captureStackTrace(m(e),i),e.errors=t,e}return u(i)}(d(Error)),is=yo,os=co?{}.toString:function(){return"[object "+is(this)+"]"},as=co,ss=dr.exports,us=os;as||ss(Object.prototype,"toString",us,{unsafe:!0});var cs=je("span").classList,hs=cs&&cs.constructor&&cs.constructor.prototype,ls=hs===Object.prototype?void 0:hs,fs=Lt,ps=C,ds=z(z.bind),gs=function(t,e){return fs(t),void 0===e?t:ps?ds(t,e):function(){return t.apply(e,arguments)}},ms=gs,vs=tt,ys=te,bs=An,ws=Fo,Ts=z([].push),Ss=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(u,c,h,l){for(var f,p,d=ys(u),g=vs(d),m=ms(c,h),v=bs(g),y=0,b=l||ws,w=e?b(u,v):r||a?b(u,0):void 0;v>y;y++)if((s||y in g)&&(p=m(f=g[y],y,d),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:Ts(w,f)}else switch(t){case 4:return!1;case 7:Ts(w,f)}return o?-1:n||i?i:w}},Es={forEach:Ss(0),map:Ss(1),filter:Ss(2),some:Ss(3),every:Ss(4),find:Ss(5),findIndex:Ss(6),filterReject:Ss(7)},As=O,xs=function(t,e){var r=[][t];return!!r&&As((function(){r.call(null,e||function(){return 1},1)}))},Os=Es.forEach,ks=xs("forEach")?[].forEach:function(t){return Os(this,t,arguments.length>1?arguments[1]:void 0)},Cs=A,Ds={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bs=ls,Ps=ks,Rs=pr,Is=function(t){if(t&&t.forEach!==Ps)try{Rs(t,"forEach",Ps)}catch(e){t.forEach=Ps}};for(var Ns in Ds)Ds[Ns]&&Is(Cs[Ns]&&Cs[Ns].prototype);Is(Bs);var js=jn,Ms=Mn,Ls=Object.keys||function(t){return js(t,Ms)},_s=te,Vs=Ls;pi({target:"Object",stat:!0,forced:O((function(){Vs(1)}))},{keys:function(t){return Vs(_s(t))}});var Fs=Qe,Us=O,qs=A.RegExp,Hs=Us((function(){var t=qs("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),zs=Hs||Us((function(){return!qs("a","y").sticky})),Gs=Hs||Us((function(){var t=qs("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Ks={BROKEN_CARET:Gs,MISSED_STICKY:zs,UNSUPPORTED_Y:Hs},Ws={},Xs=k,Zs=Xe,Js=We,Ys=Qe,$s=ot,Qs=Ls;Ws.f=Xs&&!Zs?Object.defineProperties:function(t,e){Ys(t);for(var r,n=$s(e),i=Qs(e),o=i.length,a=0;o>a;)Js.f(t,r=i[a++],n[r]);return t};var tu,eu=ft("document","documentElement"),ru=Qe,nu=Ws,iu=Mn,ou=Br,au=eu,su=je,uu=Dr("IE_PROTO"),cu=function(){},hu=function(t){return"<script>"+t+"</"+"script>"},lu=function(t){t.write(hu("")),t.close();var e=t.parentWindow.Object;return t=null,e},fu=function(){try{tu=new ActiveXObject("htmlfile")}catch(t){}var t,e;fu="undefined"!=typeof document?document.domain&&tu?lu(tu):((e=su("iframe")).style.display="none",au.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(hu("document.F=Object")),t.close(),t.F):lu(tu);for(var r=iu.length;r--;)delete fu.prototype[iu[r]];return fu()};ou[uu]=!0;var pu,du,gu=Object.create||function(t,e){var r;return null!==t?(cu.prototype=ru(t),r=new cu,cu.prototype=null,r[uu]=t):r=fu(),void 0===e?r:nu.f(r,e)},mu=O,vu=A.RegExp,yu=mu((function(){var t=vu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),bu=O,wu=A.RegExp,Tu=bu((function(){var t=wu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Su=P,Eu=z,Au=Ca,xu=function(){var t=Fs(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ou=Ks,ku=zt.exports,Cu=gu,Du=Xr.get,Bu=yu,Pu=Tu,Ru=ku("native-string-replace",String.prototype.replace),Iu=RegExp.prototype.exec,Nu=Iu,ju=Eu("".charAt),Mu=Eu("".indexOf),Lu=Eu("".replace),_u=Eu("".slice),Vu=(du=/b*/g,Su(Iu,pu=/a/,"a"),Su(Iu,du,"a"),0!==pu.lastIndex||0!==du.lastIndex),Fu=Ou.BROKEN_CARET,Uu=void 0!==/()??/.exec("")[1];(Vu||Uu||Fu||Bu||Pu)&&(Nu=function(t){var e,r,n,i,o,a,s,u=this,c=Du(u),h=Au(t),l=c.raw;if(l)return l.lastIndex=u.lastIndex,e=Su(Nu,l,h),u.lastIndex=l.lastIndex,e;var f=c.groups,p=Fu&&u.sticky,d=Su(xu,u),g=u.source,m=0,v=h;if(p&&(d=Lu(d,"y",""),-1===Mu(d,"g")&&(d+="g"),v=_u(h,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==ju(h,u.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",d)),Uu&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Vu&&(n=u.lastIndex),i=Su(Iu,p?r:u,v),p?i?(i.input=_u(i.input,m),i[0]=_u(i[0],m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Vu&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Uu&&i&&i.length>1&&Su(Ru,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=Cu(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});pi({target:"RegExp",proto:!0,forced:/./.exec!==Nu},{exec:Nu});var qu,Hu,zu=pi,Gu=A,Ku=P,Wu=z,Xu=at,Zu=ut,Ju=(qu=!1,(Hu=/[ac]/).exec=function(){return qu=!0,/./.exec.apply(this,arguments)},!0===Hu.test("abc")&&qu),Yu=Gu.Error,$u=Wu(/./.test);zu({target:"RegExp",proto:!0,forced:!Ju},{test:function(t){var e=this.exec;if(!Xu(e))return $u(this,t);var r=Ku(e,this,t);if(null!==r&&!Zu(r))throw new Yu("RegExp exec method returned something other than an Object or null");return!!r}});var Qu=z(1..valueOf),tc=rt,ec=Ca,rc=z("".replace),nc="[\t\n\v\f\r \u2028\u2029\ufeff]",ic=RegExp("^"+nc+nc+"*"),oc=RegExp(nc+nc+"*$"),ac=function(t){return function(e){var r=ec(tc(e));return 1&t&&(r=rc(r,ic,"")),2&t&&(r=rc(r,oc,"")),r}},sc={start:ac(1),end:ac(2),trim:ac(3)},uc=k,cc=A,hc=z,lc=oi,fc=dr.exports,pc=ne,dc=xa,gc=pt,mc=Pt,vc=Ce,yc=O,bc=pn.f,wc=x.f,Tc=We.f,Sc=Qu,Ec=sc.trim,Ac="Number",xc=cc.Number,Oc=xc.prototype,kc=cc.TypeError,Cc=hc("".slice),Dc=hc("".charCodeAt),Bc=function(t){var e=vc(t,"number");return"bigint"==typeof e?e:Pc(e)},Pc=function(t){var e,r,n,i,o,a,s,u,c=vc(t,"number");if(mc(c))throw kc("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ec(c),43===(e=Dc(c,0))||45===e){if(88===(r=Dc(c,2))||120===r)return NaN}else if(48===e){switch(Dc(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=Cc(c,2)).length,s=0;s<a;s++)if((u=Dc(o,s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(lc(Ac,!xc(" 0o1")||!xc("0b1")||xc("+0x1"))){for(var Rc,Ic=function(t){var e=arguments.length<1?0:xc(Bc(t)),r=this;return gc(Oc,r)&&yc((function(){Sc(r)}))?dc(Object(e),r,Ic):e},Nc=uc?bc(xc):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),jc=0;Nc.length>jc;jc++)pc(xc,Rc=Nc[jc])&&!pc(Ic,Rc)&&Tc(Ic,Rc,wc(xc,Rc));Ic.prototype=Oc,Oc.constructor=Ic,fc(cc,Ac,Ic)}function Mc(t){return/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t)}function Lc(t){return parseInt(t,10)===Number(t)&&Number(t)>=0}function _c(t){return t&&"string"==typeof t}var Vc={ref:{required:!1,isValid:_c},key:{required:!0,isValid:function(t){return t&&"pk"===t.substring(0,2)}},email:{required:!0,fallback:"customer_code",isValid:Mc},customer_code:{required:!1,isValid:_c},amount:{required:!0,fallback:"plan",isValid:Lc},plan:{required:!1,isValid:_c},transaction_charge:{required:!1,isValid:Lc},bearer:{required:!1,isValid:_c},channels:{required:!1,isValid:function(t){return t instanceof Array}},currency:{required:!1,isValid:_c},firstname:{required:!1,isValid:_c},lastname:{required:!1,isValid:_c},phone:{required:!1,isValid:_c},remark:{required:!1,isValid:_c},payment_page:{required:!1,isValid:Lc},payment_request:{required:!1,isValid:_c},quantity:{required:!1,isValid:_c},coupon:{required:!1,isValid:_c},start_date:{required:!1,isValid:_c},interval:{required:!1,isValid:_c},invoice_limit:{required:!1,isValid:Lc},subaccount:{required:!1,isValid:_c},split_code:{required:!1,isValid:_c},hash:{required:!1,isValid:_c},metadata:{required:!1,isValid:_c},transaction_type:{required:!1,isValid:_c},subscription:{required:!1,isValid:Lc}};var Fc=Es.map;pi({target:"Array",proto:!0,forced:!zo("map")},{map:function(t){return Fc(this,t,arguments.length>1?arguments[1]:void 0)}});var Uc=xi,qc=Math.floor,Hc=function(t,e){var r=t.length,n=qc(r/2);return r<8?zc(t,e):Gc(t,Hc(Uc(t,0,n),e),Hc(Uc(t,n),e),e)},zc=function(t,e){for(var r,n,i=t.length,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},Gc=function(t,e,r,n){for(var i=e.length,o=r.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(e[a],r[s])<=0?e[a++]:r[s++]:a<i?e[a++]:r[s++];return t},Kc=Hc,Wc=dt.match(/firefox\/(\d+)/i),Xc=!!Wc&&+Wc[1],Zc=/MSIE|Trident/.test(dt),Jc=dt.match(/AppleWebKit\/(\d+)\./),Yc=!!Jc&&+Jc[1],$c=pi,Qc=z,th=Lt,eh=te,rh=An,nh=Ca,ih=O,oh=Kc,ah=xs,sh=Xc,uh=Zc,ch=Tt,hh=Yc,lh=[],fh=Qc(lh.sort),ph=Qc(lh.push),dh=ih((function(){lh.sort(void 0)})),gh=ih((function(){lh.sort(null)})),mh=ah("sort"),vh=!ih((function(){if(ch)return ch<70;if(!(sh&&sh>3)){if(uh)return!0;if(hh)return hh<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)lh.push({k:e+n,v:r})}for(lh.sort((function(t,e){return e.v-t.v})),n=0;n<lh.length;n++)e=lh[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));$c({target:"Array",proto:!0,forced:dh||!gh||!mh||!vh},{sort:function(t){void 0!==t&&th(t);var e=eh(this);if(vh)return void 0===t?fh(e):fh(e,t);var r,n,i=[],o=rh(e);for(n=0;n<o;n++)n in e&&ph(i,e[n]);for(oh(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:nh(e)>nh(r)?1:-1}}(t)),r=i.length,n=0;n<r;)e[n]=i[n++];for(;n<o;)delete e[n++];return e}});var yh=Es.filter;pi({target:"Array",proto:!0,forced:!zo("filter")},{filter:function(t){return yh(this,t,arguments.length>1?arguments[1]:void 0)}});var bh=pi,wh=tt,Th=ot,Sh=xs,Eh=z([].join),Ah=wh!=Object,xh=Sh("join",",");bh({target:"Array",proto:!0,forced:Ah||!xh},{join:function(t){return Eh(Th(this),void 0===t?",":t)}});var Oh,kh,Ch,Dh={exports:{}};kh=S,Ch=function(){var t=function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},e=function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},r=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]},i=function(t,e){return[t[0]^e[0],t[1]^e[1]]},o=function(t){return t=i(t,[0,t[0]>>>1]),t=e(t,[4283543511,3981806797]),t=i(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),t=i(t,[0,t[0]>>>1])},a=function(a,s){s=s||0;for(var u=(a=a||"").length%16,c=a.length-u,h=[0,s],l=[0,s],f=[0,0],p=[0,0],d=[2277735313,289559509],g=[1291169091,658871167],m=0;m<c;m+=16)f=[255&a.charCodeAt(m+4)|(255&a.charCodeAt(m+5))<<8|(255&a.charCodeAt(m+6))<<16|(255&a.charCodeAt(m+7))<<24,255&a.charCodeAt(m)|(255&a.charCodeAt(m+1))<<8|(255&a.charCodeAt(m+2))<<16|(255&a.charCodeAt(m+3))<<24],p=[255&a.charCodeAt(m+12)|(255&a.charCodeAt(m+13))<<8|(255&a.charCodeAt(m+14))<<16|(255&a.charCodeAt(m+15))<<24,255&a.charCodeAt(m+8)|(255&a.charCodeAt(m+9))<<8|(255&a.charCodeAt(m+10))<<16|(255&a.charCodeAt(m+11))<<24],f=e(f,d),f=r(f,31),f=e(f,g),h=i(h,f),h=r(h,27),h=t(h,l),h=t(e(h,[0,5]),[0,1390208809]),p=e(p,g),p=r(p,33),p=e(p,d),l=i(l,p),l=r(l,31),l=t(l,h),l=t(e(l,[0,5]),[0,944331445]);switch(f=[0,0],p=[0,0],u){case 15:p=i(p,n([0,a.charCodeAt(m+14)],48));case 14:p=i(p,n([0,a.charCodeAt(m+13)],40));case 13:p=i(p,n([0,a.charCodeAt(m+12)],32));case 12:p=i(p,n([0,a.charCodeAt(m+11)],24));case 11:p=i(p,n([0,a.charCodeAt(m+10)],16));case 10:p=i(p,n([0,a.charCodeAt(m+9)],8));case 9:p=i(p,[0,a.charCodeAt(m+8)]),p=e(p,g),p=r(p,33),p=e(p,d),l=i(l,p);case 8:f=i(f,n([0,a.charCodeAt(m+7)],56));case 7:f=i(f,n([0,a.charCodeAt(m+6)],48));case 6:f=i(f,n([0,a.charCodeAt(m+5)],40));case 5:f=i(f,n([0,a.charCodeAt(m+4)],32));case 4:f=i(f,n([0,a.charCodeAt(m+3)],24));case 3:f=i(f,n([0,a.charCodeAt(m+2)],16));case 2:f=i(f,n([0,a.charCodeAt(m+1)],8));case 1:f=i(f,[0,a.charCodeAt(m)]),f=e(f,d),f=r(f,31),f=e(f,g),h=i(h,f)}return h=i(h,[0,a.length]),l=i(l,[0,a.length]),h=t(h,l),l=t(l,h),h=o(h),l=o(l),h=t(h,l),l=t(l,h),("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},u=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var r=0,n=t.length;r<n;r++)e(t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},c=function(t,e){var r=[];return null==t?r:Array.prototype.map&&t.map===Array.prototype.map?t.map(e):(u(t,(function(t,n,i){r.push(e(t,n,i))})),r)},h=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},l=function(t){var e=[window.screen.width,window.screen.height];return t.screen.detectScreenOrientation&&e.sort().reverse(),e},f=function(t){if(window.screen.availWidth&&window.screen.availHeight){var e=[window.screen.availHeight,window.screen.availWidth];return t.screen.detectScreenOrientation&&e.sort().reverse(),e}return t.NOT_AVAILABLE},p=function(t){if(null==navigator.plugins)return t.NOT_AVAILABLE;for(var e=[],r=0,n=navigator.plugins.length;r<n;r++)navigator.plugins[r]&&e.push(navigator.plugins[r]);return g(t)&&(e=e.sort((function(t,e){return t.name>e.name?1:t.name<e.name?-1:0}))),c(e,(function(t){var e=c(t,(function(t){return[t.type,t.suffixes]}));return[t.name,t.description,e]}))},d=function(t){var e=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?e=c(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(e){try{return new window.ActiveXObject(e),e}catch(e){return t.ERROR}})):e.push(t.NOT_AVAILABLE),navigator.plugins&&(e=e.concat(p(t))),e},g=function(t){for(var e=!1,r=0,n=t.plugins.sortPluginsFor.length;r<n;r++){var i=t.plugins.sortPluginsFor[r];if(navigator.userAgent.match(i)){e=!0;break}}return e},m=function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}},v=function(t){try{return!!window.localStorage}catch(e){return t.ERROR}},y=function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}},b=function(t){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:t.NOT_AVAILABLE},w=function(t){return navigator.cpuClass||t.NOT_AVAILABLE},T=function(t){return navigator.platform?navigator.platform:t.NOT_AVAILABLE},S=function(t){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:t.NOT_AVAILABLE},E=function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return[e,t,"ontouchstart"in window]},A=function(t){var e=[],r=document.createElement("canvas");r.width=2e3,r.height=200,r.style.display="inline";var n=r.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),e.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",t.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),r.toDataURL&&e.push("canvas fp:"+r.toDataURL()),e},x=function(){var t,e=function(e){return t.clearColor(0,0,0,1),t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(t=_()))return null;var r=[],n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n);var i=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),n.itemSize=3,n.numItems=3;var o=t.createProgram(),a=t.createShader(t.VERTEX_SHADER);t.shaderSource(a,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),t.compileShader(a);var s=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),t.compileShader(s),t.attachShader(o,a),t.attachShader(o,s),t.linkProgram(o),t.useProgram(o),o.vertexPosAttrib=t.getAttribLocation(o,"attrVertex"),o.offsetUniform=t.getUniformLocation(o,"uniformOffset"),t.enableVertexAttribArray(o.vertexPosArray),t.vertexAttribPointer(o.vertexPosAttrib,n.itemSize,t.FLOAT,!1,0,0),t.uniform2f(o.offsetUniform,1,1),t.drawArrays(t.TRIANGLE_STRIP,0,n.numItems);try{r.push(t.canvas.toDataURL())}catch(t){}r.push("extensions:"+(t.getSupportedExtensions()||[]).join(";")),r.push("webgl aliased line width range:"+e(t.getParameter(t.ALIASED_LINE_WIDTH_RANGE))),r.push("webgl aliased point size range:"+e(t.getParameter(t.ALIASED_POINT_SIZE_RANGE))),r.push("webgl alpha bits:"+t.getParameter(t.ALPHA_BITS)),r.push("webgl antialiasing:"+(t.getContextAttributes().antialias?"yes":"no")),r.push("webgl blue bits:"+t.getParameter(t.BLUE_BITS)),r.push("webgl depth bits:"+t.getParameter(t.DEPTH_BITS)),r.push("webgl green bits:"+t.getParameter(t.GREEN_BITS)),r.push("webgl max anisotropy:"+function(t){var e=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic");if(e){var r=t.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===r&&(r=2),r}return null}(t)),r.push("webgl max combined texture image units:"+t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),r.push("webgl max cube map texture size:"+t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE)),r.push("webgl max fragment uniform vectors:"+t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS)),r.push("webgl max render buffer size:"+t.getParameter(t.MAX_RENDERBUFFER_SIZE)),r.push("webgl max texture image units:"+t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS)),r.push("webgl max texture size:"+t.getParameter(t.MAX_TEXTURE_SIZE)),r.push("webgl max varying vectors:"+t.getParameter(t.MAX_VARYING_VECTORS)),r.push("webgl max vertex attribs:"+t.getParameter(t.MAX_VERTEX_ATTRIBS)),r.push("webgl max vertex texture image units:"+t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),r.push("webgl max vertex uniform vectors:"+t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS)),r.push("webgl max viewport dims:"+e(t.getParameter(t.MAX_VIEWPORT_DIMS))),r.push("webgl red bits:"+t.getParameter(t.RED_BITS)),r.push("webgl renderer:"+t.getParameter(t.RENDERER)),r.push("webgl shading language version:"+t.getParameter(t.SHADING_LANGUAGE_VERSION)),r.push("webgl stencil bits:"+t.getParameter(t.STENCIL_BITS)),r.push("webgl vendor:"+t.getParameter(t.VENDOR)),r.push("webgl version:"+t.getParameter(t.VERSION));try{var c=t.getExtension("WEBGL_debug_renderer_info");c&&(r.push("webgl unmasked vendor:"+t.getParameter(c.UNMASKED_VENDOR_WEBGL)),r.push("webgl unmasked renderer:"+t.getParameter(c.UNMASKED_RENDERER_WEBGL)))}catch(t){}return t.getShaderPrecisionFormat?(u(["FLOAT","INT"],(function(e){u(["VERTEX","FRAGMENT"],(function(n){u(["HIGH","MEDIUM","LOW"],(function(i){u(["precision","rangeMin","rangeMax"],(function(o){var a=t.getShaderPrecisionFormat(t[n+"_SHADER"],t[i+"_"+e])[o];"precision"!==o&&(o="precision "+o);var s=["webgl ",n.toLowerCase()," shader ",i.toLowerCase()," ",e.toLowerCase()," ",o,":",a].join("");r.push(s)}))}))}))})),r):r},O=function(){try{var t=_(),e=t.getExtension("WEBGL_debug_renderer_info");return t.getParameter(e.UNMASKED_VENDOR_WEBGL)+"~"+t.getParameter(e.UNMASKED_RENDERER_WEBGL)}catch(t){return null}},k=function(){var t=document.createElement("div");t.innerHTML=" ",t.className="adsbox";var e=!1;try{document.body.appendChild(t),e=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(t)}catch(t){e=!1}return e},C=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1},D=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},B=function(){var t,e=navigator.userAgent.toLowerCase(),r=navigator.oscpu,n=navigator.platform.toLowerCase();if(t=e.indexOf("windows phone")>=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==r){if((r=r.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(r.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(r.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===r.indexOf("win")&&-1===r.indexOf("linux")&&-1===r.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t},P=function(){var t,e=navigator.userAgent.toLowerCase(),r=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==r)return!0;var n,i=eval.toString().length;if(37===i&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===i&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===i&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(t){try{t.toSource(),n=!0}catch(t){n=!1}}return n&&"Firefox"!==t&&"Other"!==t},R=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},I=function(){if(!R())return!1;var t=_();return!!window.WebGLRenderingContext&&!!t},N=function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},j=function(){return void 0!==window.swfobject},M=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},L=function(t,e){var r="___fp_swf_loaded";window[r]=function(e){t(e)};var n=e.fonts.swfContainerId;!function(t){var e=document.createElement("div");e.setAttribute("id",t.fonts.swfContainerId),document.body.appendChild(e)}();var i={onReady:r};window.swfobject.embedSWF(e.fonts.swfPath,n,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},_=function(){var t=document.createElement("canvas"),e=null;try{e=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(t){}return e||(e=null),e},V=[{key:"userAgent",getData:function(t){t(navigator.userAgent)}},{key:"language",getData:function(t,e){t(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||e.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(t,e){t(window.screen.colorDepth||e.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(t,e){t(navigator.deviceMemory||e.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(t,e){t(window.devicePixelRatio||e.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(t,e){t(b(e))}},{key:"screenResolution",getData:function(t,e){t(l(e))}},{key:"availableScreenResolution",getData:function(t,e){t(f(e))}},{key:"timezoneOffset",getData:function(t){t((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(t,e){window.Intl&&window.Intl.DateTimeFormat?t((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):t(e.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(t,e){t(m(e))}},{key:"localStorage",getData:function(t,e){t(v(e))}},{key:"indexedDb",getData:function(t,e){t(y(e))}},{key:"addBehavior",getData:function(t){t(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(t){t(!!window.openDatabase)}},{key:"cpuClass",getData:function(t,e){t(w(e))}},{key:"platform",getData:function(t,e){t(T(e))}},{key:"doNotTrack",getData:function(t,e){t(S(e))}},{key:"plugins",getData:function(t,e){N()?e.plugins.excludeIE?t(e.EXCLUDED):t(d(e)):t(p(e))}},{key:"canvas",getData:function(t,e){R()?t(A(e)):t(e.NOT_AVAILABLE)}},{key:"webgl",getData:function(t,e){I()?t(x()):t(e.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(t){I()?t(O()):t()}},{key:"adBlock",getData:function(t){t(k())}},{key:"hasLiedLanguages",getData:function(t){t(C())}},{key:"hasLiedResolution",getData:function(t){t(D())}},{key:"hasLiedOs",getData:function(t){t(B())}},{key:"hasLiedBrowser",getData:function(t){t(P())}},{key:"touchSupport",getData:function(t){t(E())}},{key:"fonts",getData:function(t,e){var r=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var i=document.getElementsByTagName("body")[0],o=document.createElement("div"),a=document.createElement("div"),s={},u={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},h=function(t,e){var r=c();return r.style.fontFamily="'"+t+"',"+e,r},l=function(t){for(var e=!1,n=0;n<r.length;n++)if(e=t[n].offsetWidth!==s[r[n]]||t[n].offsetHeight!==u[r[n]])return e;return e},f=function(){for(var t=[],e=0,n=r.length;e<n;e++){var i=c();i.style.fontFamily=r[e],o.appendChild(i),t.push(i)}return t}();i.appendChild(o);for(var p=0,d=r.length;p<d;p++)s[r[p]]=f[p].offsetWidth,u[r[p]]=f[p].offsetHeight;var g=function(){for(var t={},e=0,i=n.length;e<i;e++){for(var o=[],s=0,u=r.length;s<u;s++){var c=h(n[e],r[s]);a.appendChild(c),o.push(c)}t[n[e]]=o}return t}();i.appendChild(a);for(var m=[],v=0,y=n.length;v<y;v++)l(g[n[v]])&&m.push(n[v]);i.removeChild(a),i.removeChild(o),t(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return j()?M()?e.fonts.swfPath?void L((function(e){t(e)}),e):t("missing options.fonts.swfPath"):t("flash not installed"):t("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(t,e){var r=e.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return t(e.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return t(e.NOT_AVAILABLE);var i=new n(1,44100,44100),o=i.createOscillator();o.type="triangle",o.frequency.setValueAtTime(1e4,i.currentTime);var a=i.createDynamicsCompressor();u([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(t){void 0!==a[t[0]]&&"function"==typeof a[t[0]].setValueAtTime&&a[t[0]].setValueAtTime(t[1],i.currentTime)})),o.connect(a),a.connect(i.destination),o.start(0),i.startRendering();var s=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),i.oncomplete=function(){},i=null,t("audioTimeout")}),r.timeout);i.oncomplete=function(e){var r;try{clearTimeout(s),r=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(t,e){return t+Math.abs(e)}),0).toString(),o.disconnect(),a.disconnect()}catch(e){return void t(e)}t(r)}}},{key:"enumerateDevices",getData:function(t,e){if(!h())return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(e){t(e.map((function(t){return"id="+t.deviceId+";gid="+t.groupId+";"+t.kind+";"+t.label})))})).catch((function(e){t(e)}))}}],F=function(t){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return F.get=function(t,e){e?t||(t={}):(e=t,t={}),function(t,e){if(null==e)return t;var r,n;for(n in e)null==(r=e[n])||Object.prototype.hasOwnProperty.call(t,n)||(t[n]=r)}(t,s),t.components=t.extraComponents.concat(V);var r={data:[],addPreprocessedComponent:function(e,n){"function"==typeof t.preprocessor&&(n=t.preprocessor(e,n)),r.data.push({key:e,value:n})}},n=-1,i=function(o){if((n+=1)>=t.components.length)e(r.data);else{var a=t.components[n];if(t.excludes[a.key])i(!1);else{if(!o&&a.pauseBefore)return n-=1,void setTimeout((function(){i(!0)}),1);try{a.getData((function(t){r.addPreprocessedComponent(a.key,t),i(!1)}),t)}catch(t){r.addPreprocessedComponent(a.key,String(t)),i(!1)}}}};i(!1)},F.getPromise=function(t){return new Promise((function(e,r){F.get(t,e)}))},F.getV18=function(t,e){return null==e&&(e=t,t={}),F.get(t,(function(r){for(var n=[],i=0;i<r.length;i++){var o=r[i];if(o.value===(t.NOT_AVAILABLE||"not available"))n.push({key:o.key,value:"unknown"});else if("plugins"===o.key)n.push({key:"plugins",value:c(o.value,(function(t){var e=c(t[2],(function(t){return t.join?t.join("~"):t})).join(",");return[t[0],t[1],e].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(o.key))n.push({key:o.key,value:o.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(o.key)){if(!o.value)continue;n.push({key:o.key,value:1})}else o.value?n.push(o.value.join?{key:o.key,value:o.value.join(";")}:o):n.push({key:o.key,value:o.value})}var s=a(c(n,(function(t){return t.value})).join("~~~"),31);e(s,n)}))},F.x64hash128=a,F.VERSION="2.0.0",F},(Oh=Dh).exports?Oh.exports=Ch():kh.exports?kh.exports=Ch():kh.Fingerprint2=Ch();var Bh=Dh.exports,Ph=A.Promise,Rh=dr.exports,Ih=We.f,Nh=ne,jh=be("toStringTag"),Mh=ft,Lh=We,_h=k,Vh=be("species"),Fh=pt,Uh=A.TypeError,qh={},Hh=qh,zh=be("iterator"),Gh=Array.prototype,Kh=yo,Wh=Vt,Xh=qh,Zh=be("iterator"),Jh=function(t){if(null!=t)return Wh(t,Zh)||Wh(t,"@@iterator")||Xh[Kh(t)]},Yh=P,$h=Lt,Qh=Qe,tl=It,el=Jh,rl=A.TypeError,nl=P,il=Qe,ol=Vt,al=gs,sl=P,ul=Qe,cl=It,hl=function(t){return void 0!==t&&(Hh.Array===t||Gh[zh]===t)},ll=An,fl=pt,pl=function(t,e){var r=arguments.length<2?el(t):e;if($h(r))return Qh(Yh(r,t));throw rl(tl(t)+" is not iterable")},dl=Jh,gl=function(t,e,r){var n,i;il(t);try{if(!(n=ol(t,"return"))){if("throw"===e)throw r;return r}n=nl(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return il(n),r},ml=A.TypeError,vl=function(t,e){this.stopped=t,this.result=e},yl=vl.prototype,bl=be("iterator"),wl=!1;try{var Tl=0,Sl={next:function(){return{done:!!Tl++}},return:function(){wl=!0}};Sl[bl]=function(){return this},Array.from(Sl,(function(){throw 2}))}catch(t){}var El,Al,xl,Ol,kl=Ro,Cl=It,Dl=A.TypeError,Bl=Qe,Pl=function(t){if(kl(t))return t;throw Dl(Cl(t)+" is not a constructor")},Rl=be("species"),Il=z([].slice),Nl=A.TypeError,jl=/(?:ipad|iphone|ipod).*applewebkit/i.test(dt),Ml="process"==X(A.process),Ll=A,_l=pa,Vl=gs,Fl=at,Ul=ne,ql=O,Hl=eu,zl=Il,Gl=je,Kl=function(t,e){if(t<e)throw Nl("Not enough arguments");return t},Wl=jl,Xl=Ml,Zl=Ll.setImmediate,Jl=Ll.clearImmediate,Yl=Ll.process,$l=Ll.Dispatch,Ql=Ll.Function,tf=Ll.MessageChannel,ef=Ll.String,rf=0,nf={},of="onreadystatechange";try{El=Ll.location}catch(t){}var af=function(t){if(Ul(nf,t)){var e=nf[t];delete nf[t],e()}},sf=function(t){return function(){af(t)}},uf=function(t){af(t.data)},cf=function(t){Ll.postMessage(ef(t),El.protocol+"//"+El.host)};Zl&&Jl||(Zl=function(t){Kl(arguments.length,1);var e=Fl(t)?t:Ql(t),r=zl(arguments,1);return nf[++rf]=function(){_l(e,void 0,r)},Al(rf),rf},Jl=function(t){delete nf[t]},Xl?Al=function(t){Yl.nextTick(sf(t))}:$l&&$l.now?Al=function(t){$l.now(sf(t))}:tf&&!Wl?(Ol=(xl=new tf).port2,xl.port1.onmessage=uf,Al=Vl(Ol.postMessage,Ol)):Ll.addEventListener&&Fl(Ll.postMessage)&&!Ll.importScripts&&El&&"file:"!==El.protocol&&!ql(cf)?(Al=cf,Ll.addEventListener("message",uf,!1)):Al=of in Gl("script")?function(t){Hl.appendChild(Gl("script")).onreadystatechange=function(){Hl.removeChild(this),af(t)}}:function(t){setTimeout(sf(t),0)});var hf,lf,ff,pf,df,gf,mf,vf,yf={set:Zl,clear:Jl},bf=A,wf=/ipad|iphone|ipod/i.test(dt)&&void 0!==bf.Pebble,Tf=/web0s(?!.*chrome)/i.test(dt),Sf=A,Ef=gs,Af=x.f,xf=yf.set,Of=jl,kf=wf,Cf=Tf,Df=Ml,Bf=Sf.MutationObserver||Sf.WebKitMutationObserver,Pf=Sf.document,Rf=Sf.process,If=Sf.Promise,Nf=Af(Sf,"queueMicrotask"),jf=Nf&&Nf.value;jf||(hf=function(){var t,e;for(Df&&(t=Rf.domain)&&t.exit();lf;){e=lf.fn,lf=lf.next;try{e()}catch(t){throw lf?pf():ff=void 0,t}}ff=void 0,t&&t.enter()},Of||Df||Cf||!Bf||!Pf?!kf&&If&&If.resolve?((mf=If.resolve(void 0)).constructor=If,vf=Ef(mf.then,mf),pf=function(){vf(hf)}):Df?pf=function(){Rf.nextTick(hf)}:(xf=Ef(xf,Sf),pf=function(){xf(hf)}):(df=!0,gf=Pf.createTextNode(""),new Bf(hf).observe(gf,{characterData:!0}),pf=function(){gf.data=df=!df}));var Mf=jf||function(t){var e={fn:t,next:void 0};ff&&(ff.next=e),lf||(lf=e,pf()),ff=e},Lf={},_f=Lt,Vf=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=_f(e),this.reject=_f(r)};Lf.f=function(t){return new Vf(t)};var Ff=Qe,Uf=ut,qf=Lf,Hf=A,zf=function(){this.head=null,this.tail=null};zf.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Gf,Kf,Wf,Xf,Zf=zf,Jf="object"==typeof window,Yf=pi,$f=A,Qf=ft,tp=P,ep=Ph,rp=dr.exports,np=function(t,e,r){for(var n in e)Rh(t,n,e[n],r);return t},ip=Ta,op=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Nh(t,jh)&&Ih(t,jh,{configurable:!0,value:e})},ap=function(t){var e=Mh(t),r=Lh.f;_h&&e&&!e[Vh]&&r(e,Vh,{configurable:!0,get:function(){return this}})},sp=Lt,up=at,cp=ut,hp=function(t,e){if(Fh(e,t))return t;throw Uh("Incorrect invocation")},lp=Tr,fp=function(t,e,r){var n,i,o,a,s,u,c,h=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=al(e,h),g=function(t){return n&&gl(n,"normal",t),new vl(!0,t)},m=function(t){return l?(ul(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(f)n=t;else{if(!(i=dl(t)))throw ml(cl(t)+" is not iterable");if(hl(i)){for(o=0,a=ll(t);a>o;o++)if((s=m(t[o]))&&fl(yl,s))return s;return new vl(!1)}n=pl(t,i)}for(u=n.next;!(c=sl(u,n)).done;){try{s=m(c.value)}catch(t){gl(n,"throw",t)}if("object"==typeof s&&s&&fl(yl,s))return s}return new vl(!1)},pp=function(t,e){if(!e&&!wl)return!1;var r=!1;try{var n={};n[bl]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},dp=function(t,e){var r,n=Bl(t).constructor;return void 0===n||null==(r=Bl(n)[Rl])?e:Pl(r)},gp=yf.set,mp=Mf,vp=function(t,e){if(Ff(t),Uf(e)&&e.constructor===t)return e;var r=qf.f(t);return(0,r.resolve)(e),r.promise},yp=function(t,e){var r=Hf.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},bp=Lf,wp=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Tp=Zf,Sp=Xr,Ep=oi,Ap=Jf,xp=Ml,Op=Tt,kp=be("species"),Cp="Promise",Dp=Sp.getterFor(Cp),Bp=Sp.set,Pp=Sp.getterFor(Cp),Rp=ep&&ep.prototype,Ip=ep,Np=Rp,jp=$f.TypeError,Mp=$f.document,Lp=$f.process,_p=bp.f,Vp=_p,Fp=!!(Mp&&Mp.createEvent&&$f.dispatchEvent),Up=up($f.PromiseRejectionEvent),qp="unhandledrejection",Hp=!1,zp=Ep(Cp,(function(){var t=lp(Ip),e=t!==String(Ip);if(!e&&66===Op)return!0;if(Op>=51&&/native code/.test(t))return!1;var r=new Ip((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[kp]=n,!(Hp=r.then((function(){}))instanceof n)||!e&&Ap&&!Up})),Gp=zp||!pp((function(t){Ip.all(t).catch((function(){}))})),Kp=function(t){var e;return!(!cp(t)||!up(e=t.then))&&e},Wp=function(t,e){var r,n,i,o=e.value,a=1==e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,h=t.domain;try{s?(a||(2===e.rejection&&$p(e),e.rejection=1),!0===s?r=o:(h&&h.enter(),r=s(o),h&&(h.exit(),i=!0)),r===t.promise?c(jp("Promise-chain cycle")):(n=Kp(r))?tp(n,r,u,c):u(r)):c(o)}catch(t){h&&!i&&h.exit(),c(t)}},Xp=function(t,e){t.notified||(t.notified=!0,mp((function(){for(var r,n=t.reactions;r=n.get();)Wp(r,t);t.notified=!1,e&&!t.rejection&&Jp(t)})))},Zp=function(t,e,r){var n,i;Fp?((n=Mp.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),$f.dispatchEvent(n)):n={promise:e,reason:r},!Up&&(i=$f["on"+t])?i(n):t===qp&&yp("Unhandled promise rejection",r)},Jp=function(t){tp(gp,$f,(function(){var e,r=t.facade,n=t.value;if(Yp(t)&&(e=wp((function(){xp?Lp.emit("unhandledRejection",n,r):Zp(qp,r,n)})),t.rejection=xp||Yp(t)?2:1,e.error))throw e.value}))},Yp=function(t){return 1!==t.rejection&&!t.parent},$p=function(t){tp(gp,$f,(function(){var e=t.facade;xp?Lp.emit("rejectionHandled",e):Zp("rejectionhandled",e,t.value)}))},Qp=function(t,e,r){return function(n){t(e,n,r)}},td=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Xp(t,!0))},ed=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw jp("Promise can't be resolved itself");var n=Kp(e);n?mp((function(){var r={done:!1};try{tp(n,e,Qp(ed,r,t),Qp(td,r,t))}catch(e){td(r,e,t)}})):(t.value=e,t.state=1,Xp(t,!1))}catch(e){td({done:!1},e,t)}}};if(zp&&(Np=(Ip=function(t){hp(this,Np),sp(t),tp(Gf,this);var e=Dp(this);try{t(Qp(ed,e),Qp(td,e))}catch(t){td(e,t)}}).prototype,(Gf=function(t){Bp(this,{type:Cp,done:!1,notified:!1,parent:!1,reactions:new Tp,rejection:!1,state:0,value:void 0})}).prototype=np(Np,{then:function(t,e){var r=Pp(this),n=_p(dp(this,Ip));return r.parent=!0,n.ok=!up(t)||t,n.fail=up(e)&&e,n.domain=xp?Lp.domain:void 0,0==r.state?r.reactions.add(n):mp((function(){Wp(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),Kf=function(){var t=new Gf,e=Dp(t);this.promise=t,this.resolve=Qp(ed,e),this.reject=Qp(td,e)},bp.f=_p=function(t){return t===Ip||t===Wf?new Kf(t):Vp(t)},up(ep)&&Rp!==Object.prototype)){Xf=Rp.then,Hp||(rp(Rp,"then",(function(t,e){var r=this;return new Ip((function(t,e){tp(Xf,r,t,e)})).then(t,e)}),{unsafe:!0}),rp(Rp,"catch",Np.catch,{unsafe:!0}));try{delete Rp.constructor}catch(t){}ip&&ip(Rp,Np)}Yf({global:!0,wrap:!0,forced:zp},{Promise:Ip}),op(Ip,Cp,!1),ap(Cp),Wf=Qf(Cp),Yf({target:Cp,stat:!0,forced:zp},{reject:function(t){var e=_p(this);return tp(e.reject,void 0,t),e.promise}}),Yf({target:Cp,stat:!0,forced:zp},{resolve:function(t){return vp(this,t)}}),Yf({target:Cp,stat:!0,forced:Gp},{all:function(t){var e=this,r=_p(e),n=r.resolve,i=r.reject,o=wp((function(){var r=sp(e.resolve),o=[],a=0,s=1;fp(t,(function(t){var u=a++,c=!1;s++,tp(r,e,t).then((function(t){c||(c=!0,o[u]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=_p(e),n=r.reject,i=wp((function(){var i=sp(e.resolve);fp(t,(function(t){tp(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var rd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return new Promise((function(e){setTimeout(e,t)}))},nd=function(t){(console?console.log:function(){})(t)},id=function(){var t=o(regeneratorRuntime.mark((function t(){var e,r,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Bh.getPromise();case 3:if(!(e=t.sent)||!Array.isArray(e)){t.next=10;break}return r=e.filter((function(t){return"not available"!==t.value})).sort((function(t,e){return t.key>e.key?1:t.key<e.key?-1:0})).map((function(t){return t.value})),n=r&&r.join(""),31,i=Bh.x64hash128(n,31),t.abrupt("return",i);case 10:nd("Device ID could not be calculated"),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),nd(t.t0);case 16:return t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),od=function(){var t=o(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!window){t.next=7;break}return t.next=4,rd(550);case 4:return t.next=6,id();case 6:e=t.sent;case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),nd("Device ID could not be calculated but we are moving on with the transaction");case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),ad=k,sd=z,ud=P,cd=O,hd=Ls,ld=Vn,fd=R,pd=te,dd=tt,gd=Object.assign,md=Object.defineProperty,vd=sd([].concat),yd=!gd||cd((function(){if(ad&&1!==gd({b:1},gd(md({},"a",{enumerable:!0,get:function(){md(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=gd({},t)[r]||hd(gd({},e)).join("")!=n}))?function(t,e){for(var r=pd(t),n=arguments.length,i=1,o=ld.f,a=fd.f;n>i;)for(var s,u=dd(arguments[i++]),c=o?vd(hd(u),o(u)):hd(u),h=c.length,l=0;h>l;)s=c[l++],ad&&!ud(a,u,s)||(r[s]=u[s]);return r}:gd,bd=yd;pi({target:"Object",stat:!0,forced:Object.assign!==bd},{assign:bd});var wd=gu,Td=We,Sd=be("unscopables"),Ed=Array.prototype;null==Ed[Sd]&&Td.f(Ed,Sd,{configurable:!0,value:wd(null)});var Ad=function(t){Ed[Sd][t]=!0},xd=Dn.includes,Od=Ad;pi({target:"Array",proto:!0},{includes:function(t){return xd(this,t,arguments.length>1?arguments[1]:void 0)}}),Od("includes");var kd=ut,Cd=X,Dd=be("match"),Bd=function(t){var e;return kd(t)&&(void 0!==(e=t[Dd])?!!e:"RegExp"==Cd(t))},Pd=A.TypeError,Rd=be("match"),Id=pi,Nd=function(t){if(Bd(t))throw Pd("The method doesn't accept regular expressions");return t},jd=rt,Md=Ca,Ld=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Rd]=!1,"/./"[t](e)}catch(t){}}return!1},_d=z("".indexOf);Id({target:"String",proto:!0,forced:!Ld("includes")},{includes:function(t){return!!~_d(Md(jd(this)),Md(Nd(t)),arguments.length>1?arguments[1]:void 0)}});var Vd={cookieTestUrl:"https://legacy-staging.paystack.co/test-iframe/start.html",publishableKey:"uFmz/uE/SDT6GupOrSEXIZXGByjQ0zFkPyc9LqKHFqnTI0WPN3JS5kQPo/j9or0TOXlqMQj2lzHn/UGsQT4XeQ==",publicKey:"-----BEGIN PUBLIC KEY-----\r\nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALhZs/7hP0g0+hrqTq0hFyGVxgco0NMx\r\nZD8nPS6ihxap0yNFjzdyUuZED6P4/aK9Ezl5ajEI9pcx5/1BrEE+F3kCAwEAAQ==\r\n-----END PUBLIC KEY-----"},Fd=r(r({},Vd),{},{checkoutUrl:"http://localhost:8080/",paymentBaseUrl:"https://legacy-staging.paystack.co/",paystackApiUrl:"https://studio-api.paystack.co/",pusherKey:"1c7b262ee18455815893",pusherUrl:"https://s3-eu-west-1.amazonaws.com/pstk-public-files/js/pusher.min.js"}),Ud=r(r({},Vd),{},{checkoutUrl:"https://checkout-studio.paystack.com/",paymentBaseUrl:"https://legacy-staging.paystack.co/",paystackApiUrl:"https://studio-api.paystack.co/",pusherKey:"1c7b262ee18455815893",pusherUrl:"https://s3-eu-west-1.amazonaws.com/pstk-public-files/js/pusher.min.js"}),qd=r(r({},Vd),{},{checkoutUrl:"https://checkout.paystack.com/",paymentBaseUrl:"https://standard.paystack.co/",paystackApiUrl:"https://api.paystack.co/",pusherKey:"8e4b9b7ca3418bd5cdc8",pusherUrl:"https://checkout.paystack.com/static/vendor/pusher.min.js"}),Hd={dev:Fd,staging:Ud,production:qd}[(window||process.env).paystackEnvironment]||qd;var zd=function(){},Gd=["message","status","errors"],Kd=["message","status","errors"],Wd=["message","status","errors"],Xd=["message","status","errors"],Zd={success:function(t){var e=t.message;return t.status,t.errors,{status:"success",message:e||"Successful",data:g(t,Gd)}},pending:function(t){var e=t.message;return t.status,t.errors,{status:"pending",message:e||"Payment in progress",data:g(t,Kd)}},transferCreditRequest:function(t){var e=t.message,r=t.status;return t.errors,{status:r,message:e||"Transfer credit request",data:g(t,Wd)}},incorrectAmountSent:function(t){var e=t.message,r=t.status;return t.errors,{status:r,message:e||"Incorrect amount sent",data:g(t,Xd)}},auth:function(t){return{status:"auth",message:t.otpmessage||t.message||"Authentication required",data:r(r(r({auth:t.auth},t.countryCode&&{countryCode:t.countryCode}),t.openInNewTab&&{openInNewTab:t.openInNewTab}),t.length&&{length:t.length})}},requery:function(t){return{status:"requery",message:t.message||"Requery"}},requestCustomField:function(t){return{status:"custom_field",message:t.message,data:{type:t.type,format:t.format,field:t.field}}},error:function(t){var e={status:"failed",message:t.message||"Failed",errors:t.errors||[]};return t.bank&&(e.bank=t.bank),e},parse:function(t){var e="object"===n(t)?t:{};return e.data&&"object"===n(e.data)&&(Object.assign(e,e.data),delete e.data),["true",!0,"success"].includes(e.status)?this.success(e):"pending"===e.status?this.pending(e):"requery"===e.status?this.requery(e):"send"===e.status?this.requestCustomField(e):["transfer-credit-request-received","transfer-credit-request-pending","transfer-credit-request-rejected"].includes(e.status)?this.transferCreditRequest(e):"incorrect-amount-sent"===e.status?this.incorrectAmountSent(e):e.auth&&"none"!==e.auth?this.auth(e):this.error(e)}},Jd={exports:{}},Yd=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},$d=Yd,Qd=Object.prototype.toString;function tg(t){return"[object Array]"===Qd.call(t)}function eg(t){return void 0===t}function rg(t){return null!==t&&"object"==typeof t}function ng(t){if("[object Object]"!==Qd.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function ig(t){return"[object Function]"===Qd.call(t)}function og(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),tg(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var ag={isArray:tg,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Qd.call(t)},isBuffer:function(t){return null!==t&&!eg(t)&&null!==t.constructor&&!eg(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:rg,isPlainObject:ng,isUndefined:eg,isDate:function(t){return"[object Date]"===Qd.call(t)},isFile:function(t){return"[object File]"===Qd.call(t)},isBlob:function(t){return"[object Blob]"===Qd.call(t)},isFunction:ig,isStream:function(t){return rg(t)&&ig(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:og,merge:function t(){var e={};function r(r,n){ng(e[n])&&ng(r)?e[n]=t(e[n],r):ng(r)?e[n]=t({},r):tg(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)og(arguments[n],r);return e},extend:function(t,e,r){return og(e,(function(e,n){t[n]=r&&"function"==typeof e?$d(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}},sg=ag;function ug(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var cg=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(sg.isURLSearchParams(e))n=e.toString();else{var i=[];sg.forEach(e,(function(t,e){null!=t&&(sg.isArray(t)?e+="[]":t=[t],sg.forEach(t,(function(t){sg.isDate(t)?t=t.toISOString():sg.isObject(t)&&(t=JSON.stringify(t)),i.push(ug(e)+"="+ug(t))})))})),n=i.join("&")}if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},hg=ag;function lg(){this.handlers=[]}lg.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},lg.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},lg.prototype.forEach=function(t){hg.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var fg=lg,pg=ag,dg=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},gg=dg,mg=function(t,e,r,n,i){var o=new Error(t);return gg(o,e,r,n,i)},vg=mg,yg=ag,bg=yg.isStandardBrowserEnv()?{write:function(t,e,r,n,i,o){var a=[];a.push(t+"="+encodeURIComponent(e)),yg.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),yg.isString(n)&&a.push("path="+n),yg.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},wg=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Tg=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},Sg=ag,Eg=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Ag=ag,xg=Ag.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=Ag.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0},Og=ag,kg=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(vg("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)},Cg=bg,Dg=cg,Bg=function(t,e){return t&&!wg(e)?Tg(t,e):e},Pg=function(t){var e,r,n,i={};return t?(Sg.forEach(t.split("\n"),(function(t){if(n=t.indexOf(":"),e=Sg.trim(t.substr(0,n)).toLowerCase(),r=Sg.trim(t.substr(n+1)),e){if(i[e]&&Eg.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i},Rg=xg,Ig=mg,Ng=function(t){return new Promise((function(e,r){var n=t.data,i=t.headers,o=t.responseType;Og.isFormData(n)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var s=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+u)}var c=Bg(t.baseURL,t.url);function h(){if(a){var n="getAllResponseHeaders"in a?Pg(a.getAllResponseHeaders()):null,i={data:o&&"text"!==o&&"json"!==o?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:n,config:t,request:a};kg(e,r,i),a=null}}if(a.open(t.method.toUpperCase(),Dg(c,t.params,t.paramsSerializer),!0),a.timeout=t.timeout,"onloadend"in a?a.onloadend=h:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(h)},a.onabort=function(){a&&(r(Ig("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(Ig("Network Error",t,null,a)),a=null},a.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(Ig(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Og.isStandardBrowserEnv()){var l=(t.withCredentials||Rg(c))&&t.xsrfCookieName?Cg.read(t.xsrfCookieName):void 0;l&&(i[t.xsrfHeaderName]=l)}"setRequestHeader"in a&&Og.forEach(i,(function(t,e){void 0===n&&"content-type"===e.toLowerCase()?delete i[e]:a.setRequestHeader(e,t)})),Og.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),o&&"json"!==o&&(a.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&a.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){a&&(a.abort(),r(t),a=null)})),n||(n=null),a.send(n)}))},jg=ag,Mg=function(t,e){pg.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},Lg=dg,_g={"Content-Type":"application/x-www-form-urlencoded"};function Vg(t,e){!jg.isUndefined(t)&&jg.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Fg,Ug={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Fg=Ng),Fg),transformRequest:[function(t,e){return Mg(e,"Accept"),Mg(e,"Content-Type"),jg.isFormData(t)||jg.isArrayBuffer(t)||jg.isBuffer(t)||jg.isStream(t)||jg.isFile(t)||jg.isBlob(t)?t:jg.isArrayBufferView(t)?t.buffer:jg.isURLSearchParams(t)?(Vg(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):jg.isObject(t)||e&&"application/json"===e["Content-Type"]?(Vg(e,"application/json"),JSON.stringify(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&jg.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw Lg(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Ug.headers={common:{Accept:"application/json, text/plain, */*"}},jg.forEach(["delete","get","head"],(function(t){Ug.headers[t]={}})),jg.forEach(["post","put","patch"],(function(t){Ug.headers[t]=jg.merge(_g)}));var qg=Ug,Hg=ag,zg=qg,Gg=function(t){return!(!t||!t.__CANCEL__)},Kg=ag,Wg=function(t,e,r){var n=this||zg;return Hg.forEach(r,(function(r){t=r.call(n,t,e)})),t},Xg=Gg,Zg=qg;function Jg(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var Yg=ag,$g=function(t,e){e=e||{};var r={},n=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(t,e){return Yg.isPlainObject(t)&&Yg.isPlainObject(e)?Yg.merge(t,e):Yg.isPlainObject(e)?Yg.merge({},e):Yg.isArray(e)?e.slice():e}function u(n){Yg.isUndefined(e[n])?Yg.isUndefined(t[n])||(r[n]=s(void 0,t[n])):r[n]=s(t[n],e[n])}Yg.forEach(n,(function(t){Yg.isUndefined(e[t])||(r[t]=s(void 0,e[t]))})),Yg.forEach(i,u),Yg.forEach(o,(function(n){Yg.isUndefined(e[n])?Yg.isUndefined(t[n])||(r[n]=s(void 0,t[n])):r[n]=s(void 0,e[n])})),Yg.forEach(a,(function(n){n in e?r[n]=s(t[n],e[n]):n in t&&(r[n]=s(void 0,t[n]))}));var c=n.concat(i).concat(o).concat(a),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return Yg.forEach(h,u),r},Qg={name:"axios",version:"0.21.2",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.2.tgz",_integrity:"sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==",_from:"axios@0.21.2"},tm={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){tm[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var em={},rm=Qg.version.split(".");function nm(t,e){for(var r=e?e.split("."):rm,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}tm.transitional=function(t,e,r){var n=e&&nm(e);function i(t,e){return"[Axios v"+Qg.version+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,a){if(!1===t)throw new Error(i(o," has been removed in "+e));return n&&!em[o]&&(em[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,a)}};var im={isOlderVersion:nm,assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var o=n[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:tm},om=ag,am=cg,sm=fg,um=function(t){return Jg(t),t.headers=t.headers||{},t.data=Wg.call(t,t.data,t.headers,t.transformRequest),t.headers=Kg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Kg.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Zg.adapter)(t).then((function(e){return Jg(t),e.data=Wg.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return Xg(e)||(Jg(t),e&&e.response&&(e.response.data=Wg.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},cm=$g,hm=im,lm=hm.validators;function fm(t){this.defaults=t,this.interceptors={request:new sm,response:new sm}}fm.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=cm(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&hm.assertOptions(e,{silentJSONParsing:lm.transitional(lm.boolean,"1.0.0"),forcedJSONParsing:lm.transitional(lm.boolean,"1.0.0"),clarifyTimeoutError:lm.transitional(lm.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!n){var a=[um,void 0];for(Array.prototype.unshift.apply(a,r),a.concat(o),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var s=t;r.length;){var u=r.shift(),c=r.shift();try{s=u(s)}catch(t){c(t);break}}try{i=um(s)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},fm.prototype.getUri=function(t){return t=cm(this.defaults,t),am(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},om.forEach(["delete","get","head","options"],(function(t){fm.prototype[t]=function(e,r){return this.request(cm(r||{},{method:t,url:e,data:(r||{}).data}))}})),om.forEach(["post","put","patch"],(function(t){fm.prototype[t]=function(e,r,n){return this.request(cm(n||{},{method:t,url:e,data:r}))}}));var pm=fm;function dm(t){this.message=t}dm.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},dm.prototype.__CANCEL__=!0;var gm=dm,mm=gm;function vm(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new mm(t),e(r.reason))}))}vm.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},vm.source=function(){var t;return{token:new vm((function(e){t=e})),cancel:t}};var ym=vm,bm=ag,wm=Yd,Tm=pm,Sm=$g;function Em(t){var e=new Tm(t),r=wm(Tm.prototype.request,e);return bm.extend(r,Tm.prototype,e),bm.extend(r,e),r}var Am=Em(qg);Am.Axios=Tm,Am.create=function(t){return Em(Sm(Am.defaults,t))},Am.Cancel=gm,Am.CancelToken=ym,Am.isCancel=Gg,Am.all=function(t){return Promise.all(t)},Am.spread=function(t){return function(e){return t.apply(null,e)}},Am.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError},Jd.exports=Am,Jd.exports.default=Am;var xm=Jd.exports,Om=Object.prototype.hasOwnProperty,km=Array.isArray,Cm=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Dm=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},Bm={arrayToObject:Dm,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var u=a[s],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:o,prop:u}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(km(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r){if(0===t.length)return t;var n="string"==typeof t?t:String(t);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",o=0;o<n.length;++o){var a=n.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=n.charAt(o):a<128?i+=Cm[a]:a<2048?i+=Cm[192|a>>6]+Cm[128|63&a]:a<55296||a>=57344?i+=Cm[224|a>>12]+Cm[128|a>>6&63]+Cm[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(o)),i+=Cm[240|a>>18]+Cm[128|a>>12&63]+Cm[128|a>>6&63]+Cm[128|63&a])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(km(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!Om.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var i=e;return km(e)&&!km(r)&&(i=Dm(e,n)),km(e)&&km(r)?(r.forEach((function(r,i){if(Om.call(e,i)){var o=e[i];o&&"object"==typeof o&&r&&"object"==typeof r?e[i]=t(o,r,n):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var o=r[i];return Om.call(e,i)?e[i]=t(e[i],o,n):e[i]=o,e}),i)}},Pm=String.prototype.replace,Rm=/%20/g,Im={default:"RFC3986",formatters:{RFC1738:function(t){return Pm.call(t,Rm,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"},Nm=Bm,jm=Im,Mm=Object.prototype.hasOwnProperty,Lm={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},_m=Array.isArray,Vm=Array.prototype.push,Fm=function(t,e){Vm.apply(t,_m(e)?e:[e])},Um=Date.prototype.toISOString,qm={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Nm.encode,encodeValuesOnly:!1,formatter:jm.formatters[jm.default],indices:!1,serializeDate:function(t){return Um.call(t)},skipNulls:!1,strictNullHandling:!1},Hm=function t(e,r,n,i,o,a,s,u,c,h,l,f,p){var d=e;if("function"==typeof s?d=s(r,d):d instanceof Date?d=h(d):"comma"===n&&_m(d)&&(d=d.join(",")),null===d){if(i)return a&&!f?a(r,qm.encoder,p):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||Nm.isBuffer(d))return a?[l(f?r:a(r,qm.encoder,p))+"="+l(a(d,qm.encoder,p))]:[l(r)+"="+l(String(d))];var g,m=[];if(void 0===d)return m;if(_m(s))g=s;else{var v=Object.keys(d);g=u?v.sort(u):v}for(var y=0;y<g.length;++y){var b=g[y];o&&null===d[b]||(_m(d)?Fm(m,t(d[b],"function"==typeof n?n(r,b):r,n,i,o,a,s,u,c,h,l,f,p)):Fm(m,t(d[b],r+(c?"."+b:"["+b+"]"),n,i,o,a,s,u,c,h,l,f,p)))}return m},zm=Bm,Gm=Object.prototype.hasOwnProperty,Km={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:zm.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Wm=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},Xm=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(n),a=o?n.slice(0,o.index):n,s=[];if(a){if(!r.plainObjects&&Gm.call(Object.prototype,a)&&!r.allowPrototypes)return;s.push(a)}for(var u=0;null!==(o=i.exec(n))&&u<r.depth;){if(u+=1,!r.plainObjects&&Gm.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(o[1])}return o&&s.push("["+n.slice(o.index)+"]"),function(t,e,r){for(var n=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a&&r.parseArrays)o=[].concat(n);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);r.parseArrays||""!==s?!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=n:o[s]=n:o={0:n}}n=o}return n}(s,e,r)}},Zm=function(t,e){var r,n=t,i=function(t){if(!t)return qm;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||qm.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=jm.default;if(void 0!==t.format){if(!Mm.call(jm.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=jm.formatters[r],i=qm.filter;return("function"==typeof t.filter||_m(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:qm.addQueryPrefix,allowDots:void 0===t.allowDots?qm.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:qm.charsetSentinel,delimiter:void 0===t.delimiter?qm.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:qm.encode,encoder:"function"==typeof t.encoder?t.encoder:qm.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:qm.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:qm.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:qm.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:qm.strictNullHandling}}(e);"function"==typeof i.filter?n=(0,i.filter)("",n):_m(i.filter)&&(r=i.filter);var o,a=[];if("object"!=typeof n||null===n)return"";o=e&&e.arrayFormat in Lm?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=Lm[o];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var u=0;u<r.length;++u){var c=r[u];i.skipNulls&&null===n[c]||Fm(a,Hm(n[c],c,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var h=a.join(i.delimiter),l=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?l+="utf8=%26%2310003%3B&":l+="utf8=%E2%9C%93&"),h.length>0?l+h:""},Jm=function(t,e){var r=function(t){if(!t)return Km;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?Km.charset:t.charset;return{allowDots:void 0===t.allowDots?Km.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:Km.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:Km.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:Km.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:Km.comma,decoder:"function"==typeof t.decoder?t.decoder:Km.decoder,delimiter:"string"==typeof t.delimiter||zm.isRegExp(t.delimiter)?t.delimiter:Km.delimiter,depth:"number"==typeof t.depth?t.depth:Km.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:Km.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:Km.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:Km.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:Km.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof t?function(t,e){var r,n={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,a=i.split(e.delimiter,o),s=-1,u=e.charset;if(e.charsetSentinel)for(r=0;r<a.length;++r)0===a[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[r]?u="utf-8":"utf8=%26%2310003%3B"===a[r]&&(u="iso-8859-1"),s=r,r=a.length);for(r=0;r<a.length;++r)if(r!==s){var c,h,l=a[r],f=l.indexOf("]="),p=-1===f?l.indexOf("="):f+1;-1===p?(c=e.decoder(l,Km.decoder,u),h=e.strictNullHandling?null:""):(c=e.decoder(l.slice(0,p),Km.decoder,u),h=e.decoder(l.slice(p+1),Km.decoder,u)),h&&e.interpretNumericEntities&&"iso-8859-1"===u&&(h=Wm(h)),h&&e.comma&&h.indexOf(",")>-1&&(h=h.split(",")),Gm.call(n,c)?n[c]=zm.combine(n[c],h):n[c]=h}return n}(t,r):t,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],u=Xm(s,n[s],r);i=zm.merge(i,u,r)}return zm.compact(i)},Ym={formats:Im,parse:Jm,stringify:Zm},$m=xm.create({paramsSerializer:function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).filter((function(e){return![void 0,null].includes(t[e])})).reduce((function(e,n){return r(r({},e),{},c({},n,t[n]))}),{})}(t);return Ym.stringify(e,{arrayFormat:"brackets"})}}),Qm=function(t){var e="".concat(Hd.paystackApiUrl,"checkout/request_inline");return $m.get(e,{params:t}).then((function(t){return t.data}))},tv=function(t){var e="".concat(Hd.paystackApiUrl,"transaction/verify_access_code/").concat(t);return $m.get(e).then((function(t){return t.data}))},ev=function(t){var e="".concat(Hd.paystackApiUrl,"transaction/verify/").concat(t);return $m.get(e).then((function(t){return t.data}))},rv=function(t){var e="".concat(Hd.paymentBaseUrl,"charge/requery/").concat(t);return $m.get(e).then((function(t){return Zd.parse(t.data)}))},nv=function(t){var e=t.publicKey,r=t.transactionId,n="".concat(Hd.paystackApiUrl,"transaction/").concat(r,"/mark-as-abandoned"),i={Authorization:"Bearer ".concat(e)};return $m.patch(n,{},{headers:i}).then((function(t){return t.data}))},iv=function(t,e){var r={Authorization:"Bearer ".concat(e)};return $m.post("".concat(Hd.paystackApiUrl,"checkout/pay_with_transfer"),t,{headers:r}).then((function(t){return Zd.parse(t.data)}))},ov=function(t,e){var r={Authorization:"Bearer ".concat(e)};return $m.post("".concat(Hd.paystackApiUrl,"managed_account/customer_claim"),t,{headers:r}).then((function(t){return Zd.parse(t.data)}))},av={getManagedAccount:function(t){var e=this,r=t.fulfilLateNotification,n={transaction_id:this.id,fulfil_late_notification:r};return iv(n,this.merchant.key).then((function(t){return"success"===t.status&&(e.bankTransfer=t),t}))},submitPayerDetails:function(t){var e=t.email,r=t.accountNumber,n=t.bankId,i=t.managedAccountNumber,o=t.providerSlug,a=t.claimType,s={reference_id:this.id,account_number:r,email:e,institution_id:n,institution_type:"bank",claim_type:a,managed_account_number:i,provider_slug:o};return ov(s,this.merchant.key)},listenForPayWithTransferCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.bankTransfer.data,n={channel:r&&r.pusher_channel||e,paymentMethod:"bank_transfer"};return this.listenForCharge(n,t)}},sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uv=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(e.sorted),n=Boolean(e.skipIndex),i=Boolean(e.ignorenull),o=function(t){return String(t).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,(function(t){return"%"+t.charCodeAt().toString(16).slice(-2).toUpperCase()}))},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(t);return r?e.sort():e},s=function(t){return t.filter((function(t){return t})).join("&")},u=function(t,e){return s(a(e).map((function(r){return h(t+"["+r+"]",e[r])})))},c=function(t,e){return e.length?s(e.map((function(e,r){return h(n?t+"[]":t+"["+r+"]",e)}))):o(t+"[]")},h=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===e?"undefined":sv(e),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e===n?n=i?n:o(t)+"="+n:/string|number|boolean/.test(r)?n=o(t)+"="+o(e):Array.isArray(e)?n=c(t,e):"object"===r&&(n=u(t,e)),n};return t&&s(a(t).map((function(e){return h(e,t[e])})))},cv=function(t){var e=t.transactionId,r=t.phoneNumber,n="".concat(Hd.paymentBaseUrl,"payattitude/charge/").concat(e),i=uv({phone_number:r});return $m.post(n,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){var e=t.data;return Zd.parse(e)}))},hv="payattitude",lv={chargePayattitude:function(t){var e=this,r=t.phoneNumber,n={transactionId:this.id,phoneNumber:r};return cv(n).then((function(t){return e.logAPIResponse(t,hv),t}))},listenForPayattitudeCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={paymentMethod:hv,channel:e};return this.listenForCharge(r,t)}},fv={getEFTUrl:function(t){var e=this,r=t.eftGateway;return new Promise((function(t,n){r||n(Error("Please pass the `eftGateway`"));var i="".concat(Hd.paymentBaseUrl,"eft/").concat(r,"/").concat(e.id);t(Zd.success({url:i}))}))},listenForEFTCharge:function(t){var e={channel:"EFT_".concat(this.id),paymentMethod:"eft"};return this.listenForCharge(e,t)}},pv=function(t){var e=t.sessionUrl,r=t.displayName,n=t.transactionId,i=t.domainName,o="".concat(Hd.paymentBaseUrl,"applepay/validate-session"),a=uv({sessionUrl:e,displayName:r,domainName:i,transaction:n});return $m.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},dv=function(t){var e=t.transactionId,r=t.paymentObject,n="".concat(Hd.paymentBaseUrl,"applepay/charge"),i=uv({paymentObject:r,transaction:e});return $m.post(n,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},gv="apple pay",mv={validateApplePaySession:function(t){var e=this,r=t.sessionUrl,n=t.displayName,i=t.domainName;return this.logAttempt(gv),pv({sessionUrl:r,displayName:n,domainName:i,transactionId:this.id}).then((function(t){return e.logAPIResponseMessage(t.message),t}))},chargeApplePay:function(t){var e=this,r=t.paymentObject;return dv({transactionId:this.id,device:this.deviceFingerprint,paymentObject:r}).then((function(t){return e.logAPIResponse(t,gv),t}))}},vv=function(t){var e="".concat(Hd.paymentBaseUrl,"paypal/").concat(t,"/create");return $m.post(e).then((function(t){return Zd.parse(t.data)}))},yv=function(t){var e="".concat(Hd.paymentBaseUrl,"paypal/").concat(t,"/capture");return $m.post(e).then((function(t){return Zd.parse(t.data)}))},bv=function(t){var e=t.publicKey,r=t.transactionId,n="".concat(Hd.paystackApiUrl,"paypal/config?transaction=").concat(r),i={Authorization:"Bearer ".concat(e)};return $m.get(n,{headers:i}).then((function(t){return t.data}))},wv="paypal",Tv={createPayPalOrder:function(){var t=this;return this.logAttempt(wv),vv(this.id).then((function(e){return t.logAPIResponseMessage(e.message),e}))},capturePayPalOrder:function(){var t=this;return yv(this.id).then((function(e){return t.logAPIResponse(e,wv),e}))},getPayPalConfig:function(){return bv({publicKey:this.merchant.key,transactionId:this.id})}},Sv={exports:{}};function Ev(t){var e=new Sv.exports.JSEncrypt;return e.setPublicKey(Hd.publicKey),e.encrypt(t)}!function(t,e){!function(t){var e="0123456789abcdefghijklmnopqrstuvwxyz";function r(t){return e.charAt(t)}function n(t,e){return t&e}function i(t,e){return t|e}function o(t,e){return t^e}function a(t,e){return t&~e}function s(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function u(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=";function l(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=c.charAt(r>>6)+c.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=c.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=c.charAt(r>>2)+c.charAt((3&r)<<4));(3&n.length)>0;)n+=h;return n}function f(t){var e,n="",i=0,o=0;for(e=0;e<t.length&&t.charAt(e)!=h;++e){var a=c.indexOf(t.charAt(e));a<0||(0==i?(n+=r(a>>2),o=3&a,i=1):1==i?(n+=r(o<<2|a>>4),o=15&a,i=2):2==i?(n+=r(o),n+=r(a>>2),o=3&a,i=3):(n+=r(o<<2|a>>4),n+=r(15&a),i=0))}return 1==i&&(n+=r(o<<2)),n}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -27,4 +27,4 @@ var Paystack=function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Ob
|
|
|
27
27
|
* @since jsrsasign 2.1
|
|
28
28
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
29
29
|
*/
|
|
30
|
-
var pt={};void 0!==pt.asn1&&pt.asn1||(pt.asn1={}),pt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new P(n,16).xor(t).add(P.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=pt.asn1,r=e.DERBoolean,n=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,h=e.DERNumericString,l=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,m=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var T=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new r(t[T]);if("int"==T)return new n(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new u(t[T]);if("utf8str"==T)return new c(t[T]);if("numstr"==T)return new h(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new f(t[T]);if("ia5str"==T)return new p(t[T]);if("utctime"==T)return new d(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var S=t[T],E=[],A=0;A<S.length;A++){var x=b(S[A]);E.push(x)}return new m({array:E})}if("set"==T){for(S=t[T],E=[],A=0;A<S.length;A++)x=b(S[A]),E.push(x);return new v({array:E})}if("tag"==T){var O=t[T];if("[object Array]"===Object.prototype.toString.call(O)&&3==O.length){var k=b(O[2]);return new y({tag:O[0],explicit:O[1],obj:k})}var C={};if(void 0!==O.explicit&&(C.explicit=O.explicit),void 0!==O.tag&&(C.tag=O.tag),void 0===O.obj)throw"obj shall be specified for 'tag'.";return C.obj=b(O.obj),new y(C)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},pt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substr(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new P(n,2).toString(10),n="")}return e},pt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new P(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);return n},pt.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+r},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},ft.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object),pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var s=i.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,n,i,o){var a=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},ft.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object),pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},ft.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object),pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ft.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object),pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new P(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ft.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object),pt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}pt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=t.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n},this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},ft.lang.extend(pt.asn1.DERBitString,pt.asn1.ASN1Object),pt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}pt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ft.lang.extend(pt.asn1.DEROctetString,pt.asn1.DERAbstractString),pt.asn1.DERNull=function(){pt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ft.lang.extend(pt.asn1.DERNull,pt.asn1.ASN1Object),pt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new P(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};pt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){var e=pt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},ft.lang.extend(pt.asn1.DERObjectIdentifier,pt.asn1.ASN1Object),pt.asn1.DEREnumerated=function(t){pt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new P(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ft.lang.extend(pt.asn1.DEREnumerated,pt.asn1.ASN1Object),pt.asn1.DERUTF8String=function(t){pt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ft.lang.extend(pt.asn1.DERUTF8String,pt.asn1.DERAbstractString),pt.asn1.DERNumericString=function(t){pt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ft.lang.extend(pt.asn1.DERNumericString,pt.asn1.DERAbstractString),pt.asn1.DERPrintableString=function(t){pt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ft.lang.extend(pt.asn1.DERPrintableString,pt.asn1.DERAbstractString),pt.asn1.DERTeletexString=function(t){pt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ft.lang.extend(pt.asn1.DERTeletexString,pt.asn1.DERAbstractString),pt.asn1.DERIA5String=function(t){pt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ft.lang.extend(pt.asn1.DERIA5String,pt.asn1.DERAbstractString),pt.asn1.DERUTCTime=function(t){pt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},ft.lang.extend(pt.asn1.DERUTCTime,pt.asn1.DERAbstractTime),pt.asn1.DERGeneralizedTime=function(t){pt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},ft.lang.extend(pt.asn1.DERGeneralizedTime,pt.asn1.DERAbstractTime),pt.asn1.DERSequence=function(t){pt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},ft.lang.extend(pt.asn1.DERSequence,pt.asn1.DERAbstractStructured),pt.asn1.DERSet=function(t){pt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},ft.lang.extend(pt.asn1.DERSet,pt.asn1.DERAbstractStructured),pt.asn1.DERTaggedObject=function(t){pt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ft.lang.extend(pt.asn1.DERTaggedObject,pt.asn1.ASN1Object);var dt=function(t){function e(r){var n=t.call(this)||this;return r&&("string"==typeof r?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return g(e,t),e.prototype.parseKey=function(t){try{var e=0,r=0,n=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?v.decode(t):y.unarmor(t),i=k.decode(n);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=L(e,16),r=i.sub[2].getHexStringValue(),this.e=parseInt(r,16);var o=i.sub[3].getHexStringValue();this.d=L(o,16);var a=i.sub[4].getHexStringValue();this.p=L(a,16);var s=i.sub[5].getHexStringValue();this.q=L(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=L(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=L(c,16);var h=i.sub[8].getHexStringValue();this.coeff=L(h,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=L(e,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new pt.asn1.DERInteger({int:0}),new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e}),new pt.asn1.DERInteger({bigint:this.d}),new pt.asn1.DERInteger({bigint:this.p}),new pt.asn1.DERInteger({bigint:this.q}),new pt.asn1.DERInteger({bigint:this.dmp1}),new pt.asn1.DERInteger({bigint:this.dmq1}),new pt.asn1.DERInteger({bigint:this.coeff})]};return new pt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new pt.asn1.DERSequence({array:[new pt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pt.asn1.DERNull]}),e=new pt.asn1.DERSequence({array:[new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e})]}),r=new pt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new pt.asn1.DERSequence({array:[t,r]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var r="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(st),gt=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new dt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,r){try{return l(this.getKey().sign(t,e,r))}catch(t){return!1}},t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,f(e),r)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new dt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=gt,t.JSEncrypt=gt,t.default=gt,Object.defineProperty(t,"__esModule",{value:!0})}(e)}(0,em.exports),Qg.creditCardType.addCard({niceType:"Verve",type:"verve",patterns:[[506e3,507999],[65e4,650009]],gaps:[4,8,12,16],lengths:[16,18,19],code:{name:"CVV",size:3}}),Qg.creditCardType.changeOrder("verve",0);var nm=function(){function t(e){var r=e.number,n=e.cvv,i=e.month,o=e.year,s=e.pin;a(this,t),this.number=r,this.cvv=n,this.month=i,this.year=o,this.pin=s}return u(t,[{key:"getEncryptedPin",value:function(){return this.pin?rm(this.pin):void 0}},{key:"getLast4",value:function(){return this.number.substring(this.number.length-4)}},{key:"tokenize",value:function(){return rm("".concat(this.number,"*").concat(this.cvv,"*").concat(this.month,"*").concat(this.year))}}],[{key:"getType",value:function(t){var e=Qg.number(t);return e&&e.card?{type:e.card.type,maxLength:Math.max.apply(Math,b(e.card.lengths)),minLength:Math.min.apply(Math,b(e.card.lengths))}:{type:null,maxLength:0}}},{key:"validate",value:function(e){var r=e.number,n=e.cvv,i=e.month,o=e.year,a=t.getType(r).type,s={number:t.isNumberValid(r),expiry:t.isExpiryValid({month:i,year:o}),cvv:t.isCvvValid(n,a)};return{isValid:Object.values(s).every((function(t){return!0===t})),result:s}}},{key:"validateNumber",value:function(t){return Qg.number(t)}},{key:"isNumberValid",value:function(e){return t.validateNumber(e).isValid}},{key:"validateCVV",value:function(t,e){var r="american-express"===e?4:3;return Qg.cvv(t,r)}},{key:"isCvvValid",value:function(e,r){return t.validateCVV(e,r).isValid}},{key:"validateExpiry",value:function(t){if("object"===n(t)){var e=t.month,r=t.year;return Qg.expirationMonth(e)&&Qg.expirationYear(r)}return Qg.expirationDate(t)}},{key:"isExpiryValid",value:function(e){return t.validateExpiry(e).isValid}},{key:"generateTestCard",value:function(e){var r=e||"default";return new t(tm.find((function(t){return t.type===r})))}}]),t}(),im=function(t){var e=t.clientdata,n=t.last4,i=t.pin,o=t.trans,a=t.device,s=t.rememberCard,u=t.transactionType,c=t.subscription,h=t.customFields,l="".concat(pf.paymentBaseUrl,"charge/"),f=r(r(r({clientdata:e,last4:n,trans:o,device:a,offset:(new Date).getTimezoneOffset(),remember_card:s},u&&{transaction_type:u}),c&&{subscription:c}),h&&h);i&&(f.handle=i);var p=Md(f);return Td.post(l,p,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},om=function(t){var e=t.device,n=t.accessCode,i=t.pin,o="".concat(pf.paymentBaseUrl,"charge/resume/").concat(n),a=r({device:e},i&&{handle:i}),s=Md(a);return Td.post(o,s,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},am=function(t){var e=t.last4,n=t.trans,i=t.device,o=t.authorizationCode,a=t.cvv,s=t.pin,u=t.transactionType,c=t.subscription,h="".concat(pf.paymentBaseUrl,"charge/"),l=r(r({last4:e,trans:n,device:i,cvv:a,handle:s,authorization_code:o},u&&{transaction_type:u}),c&&{subscription:c}),f=Md(l);return Td.post(h,f,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},sm=function(t,e){var r="".concat(pf.paymentBaseUrl,"charge/validate"),n=Md({trans:t,token:e});return Td.post(r,n).then((function(t){return Od.parse(t.data)}))},um=function(t){var e=t.address,r=t.city,n=t.state,i=t.zipCode,o=t.transactionId,a="".concat(pf.paymentBaseUrl,"charge/avs"),s=Md({city:r,state:n,address:e,zip_code:i,trans:o});return Td.post(a,s,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},cm=function(t){var e=t.authorizationId,r=t.publicKey,n={Authorization:"Bearer ".concat(r)},i={authorization_id:e},o="".concat(pf.paystackApiUrl,"rememberme/forget_card");return Td.post(o,i,{headers:n}).then((function(t){return Od.parse(t.data)}))},hm="card";function lm(t,e){return new Promise((function(r,n){var i=nm.validate(t);if(!i.isValid){var o=e||t.number,a=Object.keys(i.result).filter((function(t){return!1===i.result[t]})),s="Invalid card details: ".concat(a.join(", "));n(Error(o?s:"Please set a valid card with Transaction.setCard()"))}r()}))}var fm,pm,dm={setCard:function(t){var e=this;return lm(t,!0).then((function(){e.card=new nm(t)}))},rememberCard:function(){this.remember_card=!0},chargeCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return lm(this.card).then((function(){t.logAttempt(hm);var r={clientdata:t.card.tokenize(),last4:t.card.getLast4(),pin:t.card.getEncryptedPin(),trans:t.id,device:t.deviceFingerprint,rememberCard:t.remember_card,transactionType:t.transactionType,subscription:t.subscription,customFields:e};return im(r).then((function(e){return t.logAPIResponse(e,hm),e}))}))},chargeRememberedCard:function(t){var e=this,r=t.cvv,n=t.authorizationCode,i=t.cardLast4,o=t.pin;this.logAttempt(hm);var a=rm(o),s={authorizationCode:n,cvv:r,last4:i,trans:this.id,device:this.deviceFingerprint,pin:a,transactionType:this.transactionType,subscription:this.subscription};return am(s).then((function(t){return e.logAPIResponse(t,hm),t}))},resumeCardCharge:function(t){var e=this,n=t.accessCode,i=t.pin,o=r(r({},i&&{pin:rm(i)}),{},{accessCode:n,device:this.deviceFingerprint});return om(o).then((function(t){return e.logAPIResponse(t,hm),t}))},forgetRememberedCard:function(t){var e=this,r={authorizationId:t,publicKey:this.merchant.key};return cm(r).then((function(t){return e.logAPIResponse(t,hm),t}))},authenticateCard:function(t){var e=this;return sm(this.id,t).then((function(t){return e.logAPIResponse(t,hm),t}))},verifyAddress:function(t){var e=this,r=t.address,n={city:t.city,state:t.state,address:r,zipCode:t.zipCode,transactionId:this.id};return um(n).then((function(t){return e.logAPIResponse(t,hm),t}))},listenFor3DSCharge:function(t){var e={channel:"3DS_".concat(this.id),paymentMethod:hm};return this.listenForCharge(e,t)}},gm=Qe,mm=O,vm=A.RegExp,ym=mm((function(){var t=vm("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),bm=ym||mm((function(){return!vm("a","y").sticky})),wm=ym||mm((function(){var t=vm("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Tm={BROKEN_CARET:wm,MISSED_STICKY:bm,UNSUPPORTED_Y:ym},Sm=O,Em=A.RegExp,Am=Sm((function(){var t=Em(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),xm=O,Om=A.RegExp,km=xm((function(){var t=Om("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Cm=P,Dm=z,Bm=Ca,Pm=function(){var t=gm(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Rm=Tm,Im=zt.exports,Nm=yu,jm=Xr.get,Mm=Am,Lm=km,_m=Im("native-string-replace",String.prototype.replace),Vm=RegExp.prototype.exec,Fm=Vm,Um=Dm("".charAt),qm=Dm("".indexOf),Hm=Dm("".replace),zm=Dm("".slice),Gm=(pm=/b*/g,Cm(Vm,fm=/a/,"a"),Cm(Vm,pm,"a"),0!==fm.lastIndex||0!==pm.lastIndex),Km=Rm.BROKEN_CARET,Wm=void 0!==/()??/.exec("")[1];(Gm||Wm||Km||Mm||Lm)&&(Fm=function(t){var e,r,n,i,o,a,s,u=this,c=jm(u),h=Bm(t),l=c.raw;if(l)return l.lastIndex=u.lastIndex,e=Cm(Fm,l,h),u.lastIndex=l.lastIndex,e;var f=c.groups,p=Km&&u.sticky,d=Cm(Pm,u),g=u.source,m=0,v=h;if(p&&(d=Hm(d,"y",""),-1===qm(d,"g")&&(d+="g"),v=zm(h,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Um(h,u.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",d)),Wm&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Gm&&(n=u.lastIndex),i=Cm(Vm,p?r:u,v),p?i?(i.input=zm(i.input,m),i[0]=zm(i[0],m),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Gm&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Wm&&i&&i.length>1&&Cm(_m,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=Nm(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});pi({target:"RegExp",proto:!0,forced:/./.exec!==Fm},{exec:Fm});var Xm,Zm,Jm=pi,Ym=A,$m=P,Qm=z,tv=at,ev=ut,rv=(Xm=!1,(Zm=/[ac]/).exec=function(){return Xm=!0,/./.exec.apply(this,arguments)},!0===Zm.test("abc")&&Xm),nv=Ym.Error,iv=Qm(/./.test);Jm({target:"RegExp",proto:!0,forced:!rv},{test:function(t){var e=this.exec;if(!tv(e))return iv(this,t);var r=$m(e,this,t);if(null!==r&&!ev(r))throw new nv("RegExp exec method returned something other than an Object or null");return!!r}});var ov=function(){function t(e){var r=e.bankId,n=e.accountType,i=e.accountNumber;a(this,t),this.bankId=r,this.accountType=n,this.accountNumber=i}return u(t,null,[{key:"validate",value:function(e){var r=e.bankId,n=e.accountType,i=e.accountNumber,o=[];return r&&"number"==typeof r||o.push("Invalid bankId. Please check for supported banks with BankAccount.supportedBanks()"),t.types.indexOf(n)>-1?"nuban"!==n||t.isValidNubanAccount(i)||o.push("Invalid account number. Nuban accounts must be 10 digit numbers"):o.push("Invalid bank type. Please check BankAccount.types for the list of valid bank types"),{isValid:0===o.length,errors:o}}},{key:"isValidNubanAccount",value:function(t){return!!t&&(("number"==typeof t||/^\d+$/.test(t))&&10===t.length)}},{key:"supportedBanks",value:function(){var t="".concat(pf.paymentBaseUrl,"bank?pay_with_bank=true");return Td.post(t).then((function(t){return t.data}))}}]),t}();ov.types=["nuban"];var av=function(t){var e=t.bankId,r=t.transactionId,n=t.accountNumber,i=t.device,o="".concat(pf.paymentBaseUrl,"bank/charge_account/").concat(e,"/").concat(r),a=Md({account_number:n,device:i});return Td.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},sv=function(t){var e=t.bankId,r=t.transactionId,n=t.accountNumber,i=t.birthday,o="".concat(pf.paymentBaseUrl,"bank/charge_account/").concat(e,"/").concat(r),a=Md({account_number:n,birthday:i});return Td.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},uv=function(t){var e=t.bankId,r=t.transactionId,n=t.token,i=t.device,o="".concat(pf.paymentBaseUrl,"bank/validate_token/").concat(e,"/").concat(r),a=Md({device:i,token:n});return Td.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},cv="bank account";function hv(t,e){return new Promise((function(r,n){var i=ov.validate(t);if(!i.isValid){var o=e||t.accountNumber?i.errors[0]:"Please set a valid bank account with Transaction.setBank()";n(Error(o))}r()}))}var lv={getIbankUrl:function(t){var e=this,r=t.bankId;return new Promise((function(t,n){r||n(Error("Please send bankId"));var i="".concat(pf.paymentBaseUrl,"bank/ibank/").concat(r,"/").concat(e.id);t(Od.success({url:i}))}))},listenForIbankCharge:function(t){var e={channel:"IBANK_".concat(this.id),paymentMethod:"ibank"};return this.listenForCharge(e,t)}},fv=function(t){var e=t.bankId,n=t.transactionId,i=t.phoneNumber,o=t.token,a=t.accountNumber,s="".concat(pf.paymentBaseUrl,"bank/digitalbankmandate/").concat(e,"/").concat(n),u=r(r({},"sterling-bank"==={16:"sterling-bank",62:"kuda-bank"}[e]?{account_number:a}:{phone_number:i}),{},{token:o}),c=Md(u);return Td.post(s,c,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Od.parse(t.data)}))},pv="bank",dv={chargeDigitalBankMandate:function(t){var e=this,r=t.phoneNumber,n=t.token,i=t.bankId,o=t.accountNumber,a={transactionId:this.id,phoneNumber:r,token:n,bankId:i,accountNumber:o};return fv(a).then((function(t){return e.logAPIResponse(t,pv),t}))},listenForDigitalBankMandateCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={paymentMethod:pv,channel:e};return this.listenForCharge(r,t)}},gv=r(r(r({},{setBankAccount:function(t){var e=this;return hv(t,!0).then((function(){e.bankAccount=new ov(t)}))},chargeBankAccount:function(){var t=this;return hv(this.bankAccount).then((function(){t.logAttempt(cv);var e={bankId:t.bankAccount.bankId,transactionId:t.id,accountNumber:t.bankAccount.accountNumber,device:t.deviceFingerprint};return av(e).then((function(e){return t.logAPIResponse(e,cv),e}))}))},registerBankAccount:function(t){var e=this;return hv(this.bankAccount).then((function(){var r={bankId:e.bankAccount.bankId,transactionId:e.id,accountNumber:e.bankAccount.accountNumber,birthday:t};return sv(r).then((function(t){return e.logAPIResponse(t,cv),t}))}))},authenticateBankAccount:function(t){var e=this;return hv(this.bankAccount).then((function(){var r={bankId:e.bankAccount.bankId,transactionId:e.id,token:t,device:e.deviceFingerprint};return uv(r).then((function(t){return e.logAPIResponse(t,cv),t}))}))}}),lv),dv),mv=function(t,e){var r={Authorization:"Bearer ".concat(e)};return Td.post("".concat(pf.paystackApiUrl,"checkout/ussd/reference"),t,{headers:r}).then((function(t){return Od.parse(t.data)}))},vv=function(t,e){var r={Authorization:"Bearer ".concat(e)};return Td.post("".concat(pf.paystackApiUrl,"checkout/pay_with_transfer_ussd"),t,{headers:r}).then((function(t){return Od.parse(t.data)}))},yv={getUSSDShortcode:function(t){var e=this,r=t.channel,n={transaction:this.id,channel:r};return mv(n,this.merchant.key).then((function(t){return"success"===t.status&&(e.ussd[r]=t),t}))},getPWTUSSDShortcode:function(t){var e=t.bankSlug,r=t.fulfilLateNotification,n=void 0!==r&&r,i={transaction_id:this.id,fulfil_late_notification:n,bank_slug:e};return vv(i,this.merchant.key).then((function(t){return t}))},listenForPWTUSSDCharge:function(t,e){var r={channel:e,paymentMethod:"bank_transfer_ussd"};return this.listenForCharge(r,t)},listenForUSSDCharge:function(t,e){var r=t.channel;if(!this.ussd[r])return Promise.reject(Error("Please generate ussd shortcode with Transaction.getUSSDShortcode()"));var n={channel:this.ussd[r].data.channel,paymentMethod:r};return this.listenForCharge(n,e)}},bv=function(t,e){var r={source:"checkout",reference:t.transaction,channel:t.channel},n={Authorization:"Bearer ".concat(e)};return Td.post("".concat(pf.paystackApiUrl,"offline/qr/generate"),r,{headers:n}).then((function(t){return Od.parse(t.data)}))};function wv(t){return new Promise((function(e,r){var n=["visa","MPASS_OLTI"];if(n.indexOf(t)<=-1){var i="Invalid channel. Available channels: ".concat(n.join(", "));r(Error(i))}else e()}))}var Tv={getQRCode:function(t){var e=this,r=t.channel;return wv(r).then((function(){if(e.qr[r])return e.qr[r];var t={transaction:e.id,channel:r};return bv(t,e.merchant.key).then((function(t){return"success"===t.status&&(e.qr[r]=t),t}))}))},listenForQRCharge:function(t,e){var r=this,n=t.channel;return wv(n).then((function(){if(!r.qr[n])return Promise.reject(Error("Please generate qr code with Transaction.getQRCode()"));var t={channel:r.qr[n].data.channel,paymentMethod:n};return r.listenForCharge(t,e)}))}},Sv=function(){function t(){a(this,t)}return u(t,null,[{key:"hasCountryCode",value:function(t){return t&&"+"===t[0]}},{key:"hasOnlyDigits",value:function(t){var e;return t&&(e=t.substring(1),/^\d+$/.test(e))}},{key:"isE164Number",value:function(t){return t&&t.length<17}},{key:"validate",value:function(e){var r=[];return t.hasCountryCode(e)||r.push("Number should include country code prefix"),t.hasOnlyDigits(e)||r.push("Number should contain only digits"),t.isE164Number(e)||r.push("Number should not be longer than 16 digits"),{isValid:0===r.length,errors:r}}}]),t}(),Ev=function(t){var e={transaction:t.transaction,phone:t.phone,device:t.device,channel_name:t.channel_name,provider:t.provider,voucher:t.voucher,registration_token:t.registrationToken};return Td.post("".concat(pf.paystackApiUrl,"charge/mobile_money"),e).then((function(t){return Od.parse(t.data)}))};var Av={chargeMobileMoney:function(t){var e=this,r=t.phoneNumber,n=t.provider,i=t.voucher,o=t.registrationToken;return function(t){return new Promise((function(e,r){var n=Sv.validate(t);if(!n.isValid){var i=t?n.errors[0]:"Please start a mobile money transaction with Transaction.chargeMobileMoney()";r(Error(i))}e(n)}))}(r).then((function(){e.logAttempt("mobile money");var t={provider:n,voucher:i,registrationToken:o,transaction:e.id,phone:r,device:e.deviceFingerprint,channel_name:"MOBILE_MONEY_".concat(e.id)};return Ev(t).then((function(t){return"success"===t.status&&(e.mobileMoney=t),t}))}))},listenForMobileMoneyCharge:function(t){if("success"!==this.mobileMoney.status)return Promise.reject(Error("Please start a mobile money charge with Transaction.chargeMobileMoney()"));var e=this.mobileMoney.data,r=e.channel,n=e.channel_name,i={channel:r||n,paymentMethod:"mobile_money"};return this.listenForCharge(i,t)}},xv=function(t,e){var r="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/verify"),n={Authorization:"Bearer ".concat(e)};return Td.post(r,{phone:t},{headers:n}).then((function(t){return t.data}))},Ov=function(t,e,r){var n="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/remove_card"),i={Authorization:"Bearer ".concat(e)};return Td.post(n,{phone:t,id:r},{headers:i}).then((function(t){return t.data}))},kv=function(t,e,r,n){var i="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/validate_otp"),o={Authorization:"Bearer ".concat(e)};return Td.post(i,{phone:t,otp:r,transaction:n},{headers:o}).then((function(t){return t.data}))},Cv=function(t,e,r,n){var i="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/validate_pin"),o={Authorization:"Bearer ".concat(e)};return Td.post(i,{phone:t,pin:r,transaction:n},{headers:o}).then((function(t){return t.data}))},Dv=function(t,e,r,n,i){var o="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/set_pin"),a={Authorization:"Bearer ".concat(e)};return Td.post(o,{phone:t,token:r,transaction:n,pin:i},{headers:a}).then((function(t){return t.data}))},Bv=function(t,e,r,n,i,o){var a="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/charge"),s={Authorization:"Bearer ".concat(e)};return Td.post(a,{id:t,token:r,cvv:i,transaction:n,phone:o},{headers:s}).then((function(t){return t.data}))},Pv=function(t,e,r){var n="".concat(pf.paystackApiUrl,"checkout/pay_with_phone/enroll"),i={Authorization:"Bearer ".concat(e)};return Td.post(n,{phone:t,transaction:r},{headers:i}).then((function(t){return t.data}))};function Rv(t){return new Promise((function(e,r){var n=Sv.validate(t);if(!n.isValid){var i=t?n.errors[0]:"Please set a valid customer with Transaction.setCustomer()";r(Error(i))}e(n)}))}var Iv={setCustomer:function(t){var e=this,r=t.phoneNumber;return Rv(r).then((function(){e.customer=r}))},verifyCustomer:function(){var t=this;return Rv(this.customer).then((function(){return xv(t.customer,t.merchant.key)}))},deleteSavedCard:function(t){var e=this;return Rv(this.customer).then((function(){return Ov(e.customer,e.merchant.key,t)}))},authenticateCustomerOtp:function(t){var e=this;return Rv(this.customer).then((function(){return kv(e.customer,e.merchant.key,t,e.id)}))},authenticateCustomerPin:function(t){var e=this;return Rv(this.customer).then((function(){return Cv(e.customer,e.merchant.key,t,e.id)}))},setCustomerPin:function(t){var e=this,r=t.pin,n=t.token;return Rv(this.customer).then((function(){return Dv(e.customer,e.merchant.key,n,e.id,r)}))},chargeSavedCard:function(t){var e=this,r=t.cardId,n=t.token,i=t.cvv;return Rv(this.customer).then((function(){return Bv(r,e.merchant.key,n,e.id,i,e.customer)}))},enrollPhoneNumber:function(t){var e=this;return Rv(this.customer).then((function(){return Pv(t,e.merchant.key,e.id)}))}},Nv=z(1..valueOf),jv=rt,Mv=Ca,Lv=z("".replace),_v="[\t\n\v\f\r \u2028\u2029\ufeff]",Vv=RegExp("^"+_v+_v+"*"),Fv=RegExp(_v+_v+"*$"),Uv=function(t){return function(e){var r=Mv(jv(e));return 1&t&&(r=Lv(r,Vv,"")),2&t&&(r=Lv(r,Fv,"")),r}},qv={start:Uv(1),end:Uv(2),trim:Uv(3)},Hv=k,zv=A,Gv=z,Kv=oi,Wv=dr.exports,Xv=ne,Zv=xa,Jv=pt,Yv=Pt,$v=Ce,Qv=O,ty=pn.f,ey=x.f,ry=We.f,ny=Nv,iy=qv.trim,oy="Number",ay=zv.Number,sy=ay.prototype,uy=zv.TypeError,cy=Gv("".slice),hy=Gv("".charCodeAt),ly=function(t){var e=$v(t,"number");return"bigint"==typeof e?e:fy(e)},fy=function(t){var e,r,n,i,o,a,s,u,c=$v(t,"number");if(Yv(c))throw uy("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=iy(c),43===(e=hy(c,0))||45===e){if(88===(r=hy(c,2))||120===r)return NaN}else if(48===e){switch(hy(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=cy(c,2)).length,s=0;s<a;s++)if((u=hy(o,s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(Kv(oy,!ay(" 0o1")||!ay("0b1")||ay("+0x1"))){for(var py,dy=function(t){var e=arguments.length<1?0:ay(ly(t)),r=this;return Jv(sy,r)&&Qv((function(){ny(r)}))?Zv(Object(e),r,dy):e},gy=Hv?ty(ay):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),my=0;gy.length>my;my++)Xv(ay,py=gy[my])&&!Xv(dy,py)&&ry(dy,py,ey(ay,py));dy.prototype=sy,sy.constructor=dy,Wv(zv,oy,dy)}function vy(t){return/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t)}function yy(t){return parseInt(t,10)===Number(t)&&Number(t)>=0}function by(t){return t&&"string"==typeof t}var wy=function(t){var e={email:t.email,password:t.password};return Td.post("".concat(pf.paystackApiUrl,"login"),e).then((function(t){return Od.parse(t.data)}))},Ty=function(t){var e=t.account_code,r=t.transaction,n=t.token,i={Authorization:"Bearer ".concat(n),"jwt-auth":!0},o={account_code:e,transaction:r};return Td.post("".concat(pf.paystackApiUrl,"directdebit/initiate"),o,{headers:i}).then((function(t){return Od.parse(t.data)}))},Sy=function(t){var e=t.otp,r=t.transaction,n=t.token,i={Authorization:"Bearer ".concat(n),"jwt-auth":!0},o={otp:e,transaction:r};return Td.post("".concat(pf.paystackApiUrl,"directdebit/validate"),o,{headers:i}).then((function(t){return Od.parse(t.data)}))},Ey=function(t){var e={Authorization:"Bearer ".concat(t),"jwt-auth":!0};return Td.get("".concat(pf.paystackApiUrl,"directdebit/account"),{headers:e}).then((function(t){return t.data}))},Ay="direct debit",xy={loginToDirectDebitAccount:function(t){var e=this,r=t.email,n={email:r,password:t.password};return vy(r)?wy(n).then((function(t){if("success"===t.status){var r=t.data,n=r.token,i=r.user.permissions;if(!i||i.length<1)throw Error("You do not have the privileges to perform this action");if(i.find((function(t){return"directdebit-*"===t})))return e.directDebit.token=n,t;throw Error("You do not have the privileges to perform this action")}return t})):Promise.reject(Error("Invalid email"))},chargeDirectDebit:function(t){var e=this;if(!this.directDebit.token)return Promise.reject(Error("Please login with Transaction.loginToDirectDebitAccount() to start a Direct debit charge"));this.logAttempt(Ay);var r={account_code:t,transaction:this.id,token:this.directDebit.token};return Ty(r).then((function(t){return e.logAPIResponse(t,Ay),t.status&&(e.directDebit.chargeResponse=t),t}))},getProvisionedAccounts:function(){var t=this;return Ey(this.directDebit.token).then((function(e){t.logAPIResponse(e,Ay);var r=e.status,n=e.data;if(r){if(n&&n.length<1)return Promise.reject(Error("You have not provisioned any bank account for Direct Debit yet"));t.directDebit.accounts=e.data}return e}))},authenticateAccount:function(t){var e=this,r={otp:t,transaction:this.id,token:this.directDebit.token};return Sy(r).then((function(t){return e.logAPIResponse(t,Ay),t}))}},Oy=function(t){return{card:dm,bank:gv,ussd:yv,qr:Tv,mobile_money:Av,phone:Iv,direct_debit:xy,bank_transfer:Nd,eft:Fd,payattitude:Vd,apple_pay:zd,paypal:Zd}[t]},ky=function(t){t||"undefined"==typeof navigator||(t=navigator.userAgent);t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]);return"string"==typeof t&&(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))};var Cy=pi,Dy=ft,By=pa,Py=z,Ry=O,Iy=A.Array,Ny=Dy("JSON","stringify"),jy=Py(/./.exec),My=Py("".charAt),Ly=Py("".charCodeAt),_y=Py("".replace),Vy=Py(1..toString),Fy=/[\uD800-\uDFFF]/g,Uy=/^[\uD800-\uDBFF]$/,qy=/^[\uDC00-\uDFFF]$/,Hy=function(t,e,r){var n=My(r,e-1),i=My(r,e+1);return jy(Uy,t)&&!jy(qy,i)||jy(qy,t)&&!jy(Uy,n)?"\\u"+Vy(Ly(t,0),16):t},zy=Ry((function(){return'"\\udf06\\ud834"'!==Ny("\udf06\ud834")||'"\\udead"'!==Ny("\udead")}));Ny&&Cy({target:"JSON",stat:!0,forced:zy},{stringify:function(t,e,r){for(var n=0,i=arguments.length,o=Iy(i);n<i;n++)o[n]=arguments[n];var a=By(Ny,null,o);return"string"==typeof a?_y(a,Fy,Hy):a}});var Gy=function(t,e,r){var n="".concat(pf.paystackApiUrl,"transaction/update_log/").concat(t),i={Authorization:"Bearer ".concat(e)};return Td.post(n,{payload:JSON.stringify(r)},{headers:i}).then((function(t){return t.data}))},Ky=function(t,e){var r="".concat(pf.paystackApiUrl,"transaction/set_ip/").concat(t),n={Authorization:"Bearer ".concat(e)};return Td.post(r,null,{headers:n}).then((function(t){return t.data}))},Wy=function(t,e,r){var n="".concat(pf.paystackApiUrl,"transaction/set_referrer/").concat(t),i={Authorization:"Bearer ".concat(e)};return Td.post(n,{referrer:r},{headers:i}).then((function(t){return t.data}))},Xy={initializeLog:function(t){var e=t||{},r=e.attempts,n=e.authentication,i=e.errors,o=e.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:r||0,authentication:n,errors:i||0,success:!1,mobile:ky(),input:[],history:o||[]}},getTimeSpent:function(){var t=Math.round(Date.now()/1e3);return this.log.time_spent=t-this.log.start_time,this.log.time_spent},logPageOpen:function(){return this.log.history.push({type:"open",message:"Opened checkout",time:this.getTimeSpent()}),this.saveLog()},logChannelSwitch:function(t){return this.log.history.push({type:"action",message:"Set payment method to: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logValidationErrors:function(t){var e=this;return t.forEach((function(t){e.log.history.push({type:"error",message:"Invalid ".concat(t),time:e.getTimeSpent()})})),this.saveLog()},logInput:function(t){var e=this.log.history.find((function(e){return e.message==="Filled this field: ".concat(t)}));return this.log.history.push({type:"input",message:"".concat(e?"Changed":"Filled"," this field: ").concat(t),time:this.getTimeSpent()}),this.saveLog()},logBankSelect:function(t){return this.log.history.push({type:"action",message:"Selected bank: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logAuthWindowOpen:function(){return this.log.history.push({type:"action",message:"Third-party authentication window opened",time:this.getTimeSpent()}),this.saveLog()},logAuthWindowClose:function(){return this.log.history.push({type:"action",message:"Third-party authentication window closed",time:this.getTimeSpent()}),this.saveLog()},logAPIResponse:function(t,e){switch(t.status){case"success":return this.logSuccess(e);case"pending":return this.logPending(e);case"failed":return this.logError(t.message);case"auth":return this.logAuth(t.data.auth);default:return!1}},logAPIResponseMessage:function(t){return this.log.history.push({type:"action",message:t,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(t){var e="Attempted to pay";return t&&(e+=" with ".concat(t)),this.log.attempts+=1,this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logError:function(t){var e="Error";return t&&(e+=": ".concat(t)),this.log.errors+=1,this.log.history.push({type:"error",message:e,time:this.getTimeSpent()}),this.saveLog()},logAuth:function(t){return this.log.authentication=t,this.log.history.push({type:"auth",message:"Authentication Required: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logSuccess:function(t){var e="Successfully paid";return t&&(e+=" with ".concat(t)),this.log.success=!0,this.log.history.push({type:"success",message:e,time:this.getTimeSpent()}),this.saveLog()},logPending:function(t){var e="Payment in progress";return t&&(e+=" with ".concat(t)),this.log.history.push({type:"pending",message:e,time:this.getTimeSpent()}),this.saveLog()},logPageClose:function(){return this.log.history.push({type:"close",message:"Closed checkout",time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){return Gy(this.id,this.merchant.key,this.log)},saveIpAddress:function(){return Ky(this.id,this.merchant.key)},saveReferrer:function(t){return Wy(this.id,this.merchant.key,t)}},Zy=function(){function t(e){var r=this;a(this,t),this.email=e.email,this.merchant={id:e.merchant_id,logo:e.merchant_logo,name:e.merchant_name,key:e.merchant_key,channelSettings:e.merchant_channel_settings||{}},this.status=e.transaction_status||e.status,this.accessCode=e.access_code,this.amount=e.amount,this.domain=e.domain,this.isTest="test"===e.domain,this.currency=e.currency,this.id=e.id,this.channels=["apple_pay"].concat(e.channels),this.label=e.label,this.metadata=e.metadata||{},this.cancel_action=e.cancel_action||null,this.channel_options=e.channel_options||null,this.hash=e.hash||null,this.authorizations=e.authorizations,this.remember_card=!1,this.rememberMeEnabled=e.is_remember_me_enabled,this.card={},this.bankAccount={},this.mobileMoney={},this.ussd={},this.bankTransfer={},this.qr={},this.directDebit={},this.deviceFingerprint=e.deviceFingerprint||null,this.customer=e.customer,this.custom_filters=e.custom_filters||null,this.isCharging=!1,this.isListening=!1,this.transactionType=e.transaction_type||null,this.subscription=e.subscription||null,this.planDetails=e.plan_details||null,window?new Promise((function(t,e){var r=new XMLHttpRequest;r.open("GET",pf.pusherUrl),r.onload=function(){if(r.status>=200&&r.status<300){var n=document.createElement("script");n.appendChild(document.createTextNode(r.responseText)),document.head.appendChild(n),t()}else e(r.statusText)},r.onerror=function(){return e(r.statusText)},r.send(null)})):Promise.reject(new Error("Window object not available")),this.log=null,Object.assign(this,Xy),this.initializeLog(e.log),this.saveIpAddress(),this.channels.forEach((function(t){var e=Oy(t);Object.assign(r,e)})),this.channels.includes("ussd")&&!this.channels.includes("bank_transfer")&&Object.assign(this,Oy("bank_transfer"))}return u(t,[{key:"setMetadata",value:function(t,e){this.metadata[t]=e}},{key:"setDevice",value:function(t){this.deviceFingerprint?df("Device ID has already been set by Checkout JS so there's no need to set this again"):this.deviceFingerprint=t}},{key:"listenForCharge",value:function(t,e){var r,n=this,i=t.channel,o=t.paymentMethod;window&&window.Pusher&&(r=new window.Pusher(pf.pusherKey,{cluster:"eu",disableStats:!0}));var a={status:"error",message:"We could not listen for charge response. Use transaction.requery() to check the status."},s=function(){r.unsubscribe(i)};if(!r)return e({status:"error",message:"We could not listen for charge response."},gf);var u=r.subscribe(i);u.bind("pusher:subscription_succeeded",(function(){n.isListening=!0})),u.bind("pusher:subscription_error",(function(){n.isListening=!1,e(a,gf)})),u.bind("response",(function(t){var r=Od.parse(t);n.logAPIResponse(r,o),e(r,s)}))}},{key:"requery",value:function(){return Bd(this.id)}},{key:"markAsAbandoned",value:function(){return Pd({publicKey:this.merchant.key,transactionId:this.id})}}]),t}(),Jy={ref:{required:!1,isValid:by},key:{required:!0,isValid:function(t){return t&&"pk"===t.substring(0,2)}},email:{required:!0,fallback:"customer_code",isValid:vy},customer_code:{required:!1,isValid:by},amount:{required:!0,fallback:"plan",isValid:yy},plan:{required:!1,isValid:by},transaction_charge:{required:!1,isValid:yy},bearer:{required:!1,isValid:by},channels:{required:!1,isValid:function(t){return t instanceof Array}},currency:{required:!1,isValid:by},firstname:{required:!1,isValid:by},lastname:{required:!1,isValid:by},phone:{required:!1,isValid:by},remark:{required:!1,isValid:by},payment_page:{required:!1,isValid:yy},payment_request:{required:!1,isValid:by},quantity:{required:!1,isValid:by},coupon:{required:!1,isValid:by},start_date:{required:!1,isValid:by},interval:{required:!1,isValid:by},invoice_limit:{required:!1,isValid:yy},subaccount:{required:!1,isValid:by},split_code:{required:!1,isValid:by},hash:{required:!1,isValid:by},metadata:{required:!1,isValid:by},transaction_type:{required:!1,isValid:by},subscription:{required:!1,isValid:yy}};var Yy=Fs.map;pi({target:"Array",proto:!0,forced:!zo("map")},{map:function(t){return Yy(this,t,arguments.length>1?arguments[1]:void 0)}});var $y=xi,Qy=Math.floor,tb=function(t,e){var r=t.length,n=Qy(r/2);return r<8?eb(t,e):rb(t,tb($y(t,0,n),e),tb($y(t,n),e),e)},eb=function(t,e){for(var r,n,i=t.length,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},rb=function(t,e,r,n){for(var i=e.length,o=r.length,a=0,s=0;a<i||s<o;)t[a+s]=a<i&&s<o?n(e[a],r[s])<=0?e[a++]:r[s++]:a<i?e[a++]:r[s++];return t},nb=tb,ib=dt.match(/firefox\/(\d+)/i),ob=!!ib&&+ib[1],ab=/MSIE|Trident/.test(dt),sb=dt.match(/AppleWebKit\/(\d+)\./),ub=!!sb&&+sb[1],cb=pi,hb=z,lb=Lt,fb=te,pb=An,db=Ca,gb=O,mb=nb,vb=qs,yb=ob,bb=ab,wb=Tt,Tb=ub,Sb=[],Eb=hb(Sb.sort),Ab=hb(Sb.push),xb=gb((function(){Sb.sort(void 0)})),Ob=gb((function(){Sb.sort(null)})),kb=vb("sort"),Cb=!gb((function(){if(wb)return wb<70;if(!(yb&&yb>3)){if(bb)return!0;if(Tb)return Tb<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Sb.push({k:e+n,v:r})}for(Sb.sort((function(t,e){return e.v-t.v})),n=0;n<Sb.length;n++)e=Sb[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));cb({target:"Array",proto:!0,forced:xb||!Ob||!kb||!Cb},{sort:function(t){void 0!==t&&lb(t);var e=fb(this);if(Cb)return void 0===t?Eb(e):Eb(e,t);var r,n,i=[],o=pb(e);for(n=0;n<o;n++)n in e&&Ab(i,e[n]);for(mb(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:db(e)>db(r)?1:-1}}(t)),r=i.length,n=0;n<r;)e[n]=i[n++];for(;n<o;)delete e[n++];return e}});var Db,Bb,Pb,Rb={exports:{}};Bb=S,Pb=function(){var t=function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},e=function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]},r=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]},i=function(t,e){return[t[0]^e[0],t[1]^e[1]]},o=function(t){return t=i(t,[0,t[0]>>>1]),t=e(t,[4283543511,3981806797]),t=i(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),t=i(t,[0,t[0]>>>1])},a=function(a,s){s=s||0;for(var u=(a=a||"").length%16,c=a.length-u,h=[0,s],l=[0,s],f=[0,0],p=[0,0],d=[2277735313,289559509],g=[1291169091,658871167],m=0;m<c;m+=16)f=[255&a.charCodeAt(m+4)|(255&a.charCodeAt(m+5))<<8|(255&a.charCodeAt(m+6))<<16|(255&a.charCodeAt(m+7))<<24,255&a.charCodeAt(m)|(255&a.charCodeAt(m+1))<<8|(255&a.charCodeAt(m+2))<<16|(255&a.charCodeAt(m+3))<<24],p=[255&a.charCodeAt(m+12)|(255&a.charCodeAt(m+13))<<8|(255&a.charCodeAt(m+14))<<16|(255&a.charCodeAt(m+15))<<24,255&a.charCodeAt(m+8)|(255&a.charCodeAt(m+9))<<8|(255&a.charCodeAt(m+10))<<16|(255&a.charCodeAt(m+11))<<24],f=e(f,d),f=r(f,31),f=e(f,g),h=i(h,f),h=r(h,27),h=t(h,l),h=t(e(h,[0,5]),[0,1390208809]),p=e(p,g),p=r(p,33),p=e(p,d),l=i(l,p),l=r(l,31),l=t(l,h),l=t(e(l,[0,5]),[0,944331445]);switch(f=[0,0],p=[0,0],u){case 15:p=i(p,n([0,a.charCodeAt(m+14)],48));case 14:p=i(p,n([0,a.charCodeAt(m+13)],40));case 13:p=i(p,n([0,a.charCodeAt(m+12)],32));case 12:p=i(p,n([0,a.charCodeAt(m+11)],24));case 11:p=i(p,n([0,a.charCodeAt(m+10)],16));case 10:p=i(p,n([0,a.charCodeAt(m+9)],8));case 9:p=i(p,[0,a.charCodeAt(m+8)]),p=e(p,g),p=r(p,33),p=e(p,d),l=i(l,p);case 8:f=i(f,n([0,a.charCodeAt(m+7)],56));case 7:f=i(f,n([0,a.charCodeAt(m+6)],48));case 6:f=i(f,n([0,a.charCodeAt(m+5)],40));case 5:f=i(f,n([0,a.charCodeAt(m+4)],32));case 4:f=i(f,n([0,a.charCodeAt(m+3)],24));case 3:f=i(f,n([0,a.charCodeAt(m+2)],16));case 2:f=i(f,n([0,a.charCodeAt(m+1)],8));case 1:f=i(f,[0,a.charCodeAt(m)]),f=e(f,d),f=r(f,31),f=e(f,g),h=i(h,f)}return h=i(h,[0,a.length]),l=i(l,[0,a.length]),h=t(h,l),l=t(l,h),h=o(h),l=o(l),h=t(h,l),l=t(l,h),("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},u=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var r=0,n=t.length;r<n;r++)e(t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},c=function(t,e){var r=[];return null==t?r:Array.prototype.map&&t.map===Array.prototype.map?t.map(e):(u(t,(function(t,n,i){r.push(e(t,n,i))})),r)},h=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices},l=function(t){var e=[window.screen.width,window.screen.height];return t.screen.detectScreenOrientation&&e.sort().reverse(),e},f=function(t){if(window.screen.availWidth&&window.screen.availHeight){var e=[window.screen.availHeight,window.screen.availWidth];return t.screen.detectScreenOrientation&&e.sort().reverse(),e}return t.NOT_AVAILABLE},p=function(t){if(null==navigator.plugins)return t.NOT_AVAILABLE;for(var e=[],r=0,n=navigator.plugins.length;r<n;r++)navigator.plugins[r]&&e.push(navigator.plugins[r]);return g(t)&&(e=e.sort((function(t,e){return t.name>e.name?1:t.name<e.name?-1:0}))),c(e,(function(t){var e=c(t,(function(t){return[t.type,t.suffixes]}));return[t.name,t.description,e]}))},d=function(t){var e=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?e=c(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(e){try{return new window.ActiveXObject(e),e}catch(e){return t.ERROR}})):e.push(t.NOT_AVAILABLE),navigator.plugins&&(e=e.concat(p(t))),e},g=function(t){for(var e=!1,r=0,n=t.plugins.sortPluginsFor.length;r<n;r++){var i=t.plugins.sortPluginsFor[r];if(navigator.userAgent.match(i)){e=!0;break}}return e},m=function(t){try{return!!window.sessionStorage}catch(e){return t.ERROR}},v=function(t){try{return!!window.localStorage}catch(e){return t.ERROR}},y=function(t){try{return!!window.indexedDB}catch(e){return t.ERROR}},b=function(t){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:t.NOT_AVAILABLE},w=function(t){return navigator.cpuClass||t.NOT_AVAILABLE},T=function(t){return navigator.platform?navigator.platform:t.NOT_AVAILABLE},S=function(t){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:t.NOT_AVAILABLE},E=function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return[e,t,"ontouchstart"in window]},A=function(t){var e=[],r=document.createElement("canvas");r.width=2e3,r.height=200,r.style.display="inline";var n=r.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),e.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",t.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),r.toDataURL&&e.push("canvas fp:"+r.toDataURL()),e},x=function(){var t,e=function(e){return t.clearColor(0,0,0,1),t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(t=_()))return null;var r=[],n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n);var i=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),n.itemSize=3,n.numItems=3;var o=t.createProgram(),a=t.createShader(t.VERTEX_SHADER);t.shaderSource(a,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),t.compileShader(a);var s=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),t.compileShader(s),t.attachShader(o,a),t.attachShader(o,s),t.linkProgram(o),t.useProgram(o),o.vertexPosAttrib=t.getAttribLocation(o,"attrVertex"),o.offsetUniform=t.getUniformLocation(o,"uniformOffset"),t.enableVertexAttribArray(o.vertexPosArray),t.vertexAttribPointer(o.vertexPosAttrib,n.itemSize,t.FLOAT,!1,0,0),t.uniform2f(o.offsetUniform,1,1),t.drawArrays(t.TRIANGLE_STRIP,0,n.numItems);try{r.push(t.canvas.toDataURL())}catch(t){}r.push("extensions:"+(t.getSupportedExtensions()||[]).join(";")),r.push("webgl aliased line width range:"+e(t.getParameter(t.ALIASED_LINE_WIDTH_RANGE))),r.push("webgl aliased point size range:"+e(t.getParameter(t.ALIASED_POINT_SIZE_RANGE))),r.push("webgl alpha bits:"+t.getParameter(t.ALPHA_BITS)),r.push("webgl antialiasing:"+(t.getContextAttributes().antialias?"yes":"no")),r.push("webgl blue bits:"+t.getParameter(t.BLUE_BITS)),r.push("webgl depth bits:"+t.getParameter(t.DEPTH_BITS)),r.push("webgl green bits:"+t.getParameter(t.GREEN_BITS)),r.push("webgl max anisotropy:"+function(t){var e=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic");if(e){var r=t.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===r&&(r=2),r}return null}(t)),r.push("webgl max combined texture image units:"+t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),r.push("webgl max cube map texture size:"+t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE)),r.push("webgl max fragment uniform vectors:"+t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS)),r.push("webgl max render buffer size:"+t.getParameter(t.MAX_RENDERBUFFER_SIZE)),r.push("webgl max texture image units:"+t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS)),r.push("webgl max texture size:"+t.getParameter(t.MAX_TEXTURE_SIZE)),r.push("webgl max varying vectors:"+t.getParameter(t.MAX_VARYING_VECTORS)),r.push("webgl max vertex attribs:"+t.getParameter(t.MAX_VERTEX_ATTRIBS)),r.push("webgl max vertex texture image units:"+t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),r.push("webgl max vertex uniform vectors:"+t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS)),r.push("webgl max viewport dims:"+e(t.getParameter(t.MAX_VIEWPORT_DIMS))),r.push("webgl red bits:"+t.getParameter(t.RED_BITS)),r.push("webgl renderer:"+t.getParameter(t.RENDERER)),r.push("webgl shading language version:"+t.getParameter(t.SHADING_LANGUAGE_VERSION)),r.push("webgl stencil bits:"+t.getParameter(t.STENCIL_BITS)),r.push("webgl vendor:"+t.getParameter(t.VENDOR)),r.push("webgl version:"+t.getParameter(t.VERSION));try{var c=t.getExtension("WEBGL_debug_renderer_info");c&&(r.push("webgl unmasked vendor:"+t.getParameter(c.UNMASKED_VENDOR_WEBGL)),r.push("webgl unmasked renderer:"+t.getParameter(c.UNMASKED_RENDERER_WEBGL)))}catch(t){}return t.getShaderPrecisionFormat?(u(["FLOAT","INT"],(function(e){u(["VERTEX","FRAGMENT"],(function(n){u(["HIGH","MEDIUM","LOW"],(function(i){u(["precision","rangeMin","rangeMax"],(function(o){var a=t.getShaderPrecisionFormat(t[n+"_SHADER"],t[i+"_"+e])[o];"precision"!==o&&(o="precision "+o);var s=["webgl ",n.toLowerCase()," shader ",i.toLowerCase()," ",e.toLowerCase()," ",o,":",a].join("");r.push(s)}))}))}))})),r):r},O=function(){try{var t=_(),e=t.getExtension("WEBGL_debug_renderer_info");return t.getParameter(e.UNMASKED_VENDOR_WEBGL)+"~"+t.getParameter(e.UNMASKED_RENDERER_WEBGL)}catch(t){return null}},k=function(){var t=document.createElement("div");t.innerHTML=" ",t.className="adsbox";var e=!1;try{document.body.appendChild(t),e=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(t)}catch(t){e=!1}return e},C=function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1},D=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},B=function(){var t,e=navigator.userAgent.toLowerCase(),r=navigator.oscpu,n=navigator.platform.toLowerCase();if(t=e.indexOf("windows phone")>=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==r){if((r=r.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(r.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(r.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===r.indexOf("win")&&-1===r.indexOf("linux")&&-1===r.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t},P=function(){var t,e=navigator.userAgent.toLowerCase(),r=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==r)return!0;var n,i=eval.toString().length;if(37===i&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===i&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===i&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(t){try{t.toSource(),n=!0}catch(t){n=!1}}return n&&"Firefox"!==t&&"Other"!==t},R=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},I=function(){if(!R())return!1;var t=_();return!!window.WebGLRenderingContext&&!!t},N=function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},j=function(){return void 0!==window.swfobject},M=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},L=function(t,e){var r="___fp_swf_loaded";window[r]=function(e){t(e)};var n=e.fonts.swfContainerId;!function(t){var e=document.createElement("div");e.setAttribute("id",t.fonts.swfContainerId),document.body.appendChild(e)}();var i={onReady:r};window.swfobject.embedSWF(e.fonts.swfPath,n,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},_=function(){var t=document.createElement("canvas"),e=null;try{e=t.getContext("webgl")||t.getContext("experimental-webgl")}catch(t){}return e||(e=null),e},V=[{key:"userAgent",getData:function(t){t(navigator.userAgent)}},{key:"language",getData:function(t,e){t(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||e.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(t,e){t(window.screen.colorDepth||e.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(t,e){t(navigator.deviceMemory||e.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(t,e){t(window.devicePixelRatio||e.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(t,e){t(b(e))}},{key:"screenResolution",getData:function(t,e){t(l(e))}},{key:"availableScreenResolution",getData:function(t,e){t(f(e))}},{key:"timezoneOffset",getData:function(t){t((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(t,e){window.Intl&&window.Intl.DateTimeFormat?t((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):t(e.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(t,e){t(m(e))}},{key:"localStorage",getData:function(t,e){t(v(e))}},{key:"indexedDb",getData:function(t,e){t(y(e))}},{key:"addBehavior",getData:function(t){t(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(t){t(!!window.openDatabase)}},{key:"cpuClass",getData:function(t,e){t(w(e))}},{key:"platform",getData:function(t,e){t(T(e))}},{key:"doNotTrack",getData:function(t,e){t(S(e))}},{key:"plugins",getData:function(t,e){N()?e.plugins.excludeIE?t(e.EXCLUDED):t(d(e)):t(p(e))}},{key:"canvas",getData:function(t,e){R()?t(A(e)):t(e.NOT_AVAILABLE)}},{key:"webgl",getData:function(t,e){I()?t(x()):t(e.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(t){I()?t(O()):t()}},{key:"adBlock",getData:function(t){t(k())}},{key:"hasLiedLanguages",getData:function(t){t(C())}},{key:"hasLiedResolution",getData:function(t){t(D())}},{key:"hasLiedOs",getData:function(t){t(B())}},{key:"hasLiedBrowser",getData:function(t){t(P())}},{key:"touchSupport",getData:function(t){t(E())}},{key:"fonts",getData:function(t,e){var r=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var i=document.getElementsByTagName("body")[0],o=document.createElement("div"),a=document.createElement("div"),s={},u={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},h=function(t,e){var r=c();return r.style.fontFamily="'"+t+"',"+e,r},l=function(t){for(var e=!1,n=0;n<r.length;n++)if(e=t[n].offsetWidth!==s[r[n]]||t[n].offsetHeight!==u[r[n]])return e;return e},f=function(){for(var t=[],e=0,n=r.length;e<n;e++){var i=c();i.style.fontFamily=r[e],o.appendChild(i),t.push(i)}return t}();i.appendChild(o);for(var p=0,d=r.length;p<d;p++)s[r[p]]=f[p].offsetWidth,u[r[p]]=f[p].offsetHeight;var g=function(){for(var t={},e=0,i=n.length;e<i;e++){for(var o=[],s=0,u=r.length;s<u;s++){var c=h(n[e],r[s]);a.appendChild(c),o.push(c)}t[n[e]]=o}return t}();i.appendChild(a);for(var m=[],v=0,y=n.length;v<y;v++)l(g[n[v]])&&m.push(n[v]);i.removeChild(a),i.removeChild(o),t(m)},pauseBefore:!0},{key:"fontsFlash",getData:function(t,e){return j()?M()?e.fonts.swfPath?void L((function(e){t(e)}),e):t("missing options.fonts.swfPath"):t("flash not installed"):t("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(t,e){var r=e.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return t(e.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return t(e.NOT_AVAILABLE);var i=new n(1,44100,44100),o=i.createOscillator();o.type="triangle",o.frequency.setValueAtTime(1e4,i.currentTime);var a=i.createDynamicsCompressor();u([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(t){void 0!==a[t[0]]&&"function"==typeof a[t[0]].setValueAtTime&&a[t[0]].setValueAtTime(t[1],i.currentTime)})),o.connect(a),a.connect(i.destination),o.start(0),i.startRendering();var s=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),i.oncomplete=function(){},i=null,t("audioTimeout")}),r.timeout);i.oncomplete=function(e){var r;try{clearTimeout(s),r=e.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(t,e){return t+Math.abs(e)}),0).toString(),o.disconnect(),a.disconnect()}catch(e){return void t(e)}t(r)}}},{key:"enumerateDevices",getData:function(t,e){if(!h())return t(e.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(e){t(e.map((function(t){return"id="+t.deviceId+";gid="+t.groupId+";"+t.kind+";"+t.label})))})).catch((function(e){t(e)}))}}],F=function(t){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return F.get=function(t,e){e?t||(t={}):(e=t,t={}),function(t,e){if(null==e)return t;var r,n;for(n in e)null==(r=e[n])||Object.prototype.hasOwnProperty.call(t,n)||(t[n]=r)}(t,s),t.components=t.extraComponents.concat(V);var r={data:[],addPreprocessedComponent:function(e,n){"function"==typeof t.preprocessor&&(n=t.preprocessor(e,n)),r.data.push({key:e,value:n})}},n=-1,i=function(o){if((n+=1)>=t.components.length)e(r.data);else{var a=t.components[n];if(t.excludes[a.key])i(!1);else{if(!o&&a.pauseBefore)return n-=1,void setTimeout((function(){i(!0)}),1);try{a.getData((function(t){r.addPreprocessedComponent(a.key,t),i(!1)}),t)}catch(t){r.addPreprocessedComponent(a.key,String(t)),i(!1)}}}};i(!1)},F.getPromise=function(t){return new Promise((function(e,r){F.get(t,e)}))},F.getV18=function(t,e){return null==e&&(e=t,t={}),F.get(t,(function(r){for(var n=[],i=0;i<r.length;i++){var o=r[i];if(o.value===(t.NOT_AVAILABLE||"not available"))n.push({key:o.key,value:"unknown"});else if("plugins"===o.key)n.push({key:"plugins",value:c(o.value,(function(t){var e=c(t[2],(function(t){return t.join?t.join("~"):t})).join(",");return[t[0],t[1],e].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(o.key))n.push({key:o.key,value:o.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(o.key)){if(!o.value)continue;n.push({key:o.key,value:1})}else o.value?n.push(o.value.join?{key:o.key,value:o.value.join(";")}:o):n.push({key:o.key,value:o.value})}var s=a(c(n,(function(t){return t.value})).join("~~~"),31);e(s,n)}))},F.x64hash128=a,F.VERSION="2.0.0",F},(Db=Rb).exports?Db.exports=Pb():Bb.exports?Bb.exports=Pb():Bb.Fingerprint2=Pb();var Ib=Rb.exports,Nb=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return new Promise((function(e){setTimeout(e,t)}))},jb=function(){var t=o(regeneratorRuntime.mark((function t(){var e,r,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ib.getPromise();case 3:if(!(e=t.sent)||!Array.isArray(e)){t.next=10;break}return r=e.filter((function(t){return"not available"!==t.value})).sort((function(t,e){return t.key>e.key?1:t.key<e.key?-1:0})).map((function(t){return t.value})),n=r&&r.join(""),31,i=Ib.x64hash128(n,31),t.abrupt("return",i);case 10:df("Device ID could not be calculated"),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),df(t.t0);case 16:return t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),Mb=function(){var t=o(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!window){t.next=7;break}return t.next=4,Nb(550);case 4:return t.next=6,jb();case 6:e=t.sent;case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),df("Device ID could not be calculated but we are moving on with the transaction");case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Lb={validate:function(t){var e=function(t){var e=[];return t&&"object"===n(t)?(Object.keys(Jy).forEach((function(r){var n=Jy[r],i=t[r];!n.required||i||t[n.fallback]?i&&!n.isValid(i)&&e.push({field:r,message:"Invalid field: ".concat(r)}):e.push({field:r,message:"Required field: ".concat(r)})})),e):(e.push({message:"Please supply a valid object"}),e)}(t);if(e.length){var r=y(e,1)[0].message;throw new ns(e,r)}},request:function(t){return o(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mb();case 2:return n=e.sent,e.next=5,kd(r(r({},t),{device:n}));case 5:return i=e.sent,e.abrupt("return",i&&Object.seal(new Zy(r(r({},i.data),{deviceFingerprint:n}))));case 7:case"end":return e.stop()}}),e)})))()},requestWithAccessCode:function(t){return o(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Mb();case 2:return n=e.sent,e.next=5,Cd(t);case 5:return i=e.sent,e.abrupt("return",i&&Object.seal(new Zy(r(r({},i.data),{deviceFingerprint:n}))));case 7:case"end":return e.stop()}}),e)})))()},initialize:function(t){return Object.seal(new Zy(t))},verify:function(t){return o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Dd(t);case 2:return r=e.sent,e.abrupt("return",r&&r.data);case 4:case"end":return e.stop()}}),e)})))()}},_b=function(t){var e="".concat(pf.paystackApiUrl,"bank"),r={params:t};return Td.get(e,r).then((function(t){return t.data}))},Vb=function(){var t="".concat(pf.paystackApiUrl,"checkout/resolutions");return Td.get(t).then((function(t){return t.data}))},Fb=function(){var t="".concat(pf.paystackApiUrl,"checkout/celebrations");return Td.get(t).then((function(t){return t.data}))},Ub=function(t){var e="".concat(pf.paystackApiUrl,"address_verification/states"),r={params:t};return Td.get(e,r).then((function(t){return t.data}))},qb=function(){function t(){a(this,t)}return u(t,null,[{key:"contents",value:function(){return[{key:"banks",usage:"Returns a list of banks that can be used to complete checkout"},{key:"resolutions",usage:"Returns a list of known errors, mapped to their suggested resolutions"},{key:"celebrations",usage:"Returns a list of upcoming celebrations"},{key:"states",usage:"Returns a list of states for a particular country"}]}},{key:"fetch",value:function(t,e){var r;if(this.contents().map((function(t){return t.key})).indexOf(t)<=-1)throw new Error("Please provide a valid config key. Use Toolkit.contents() to see available options.");switch(t){case"banks":r=_b(e||{pay_with_bank:"1"});break;case"resolutions":r=Vb();break;case"celebrations":r=Fb();break;case"states":r=Ub(e)}return r}}]),t}();return t.BankAccount=ov,t.Card=nm,t.Toolkit=qb,t.Transaction=Lb,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
30
|
+
var pt={};void 0!==pt.asn1&&pt.asn1||(pt.asn1={}),pt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new P(n,16).xor(t).add(P.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=pt.asn1,r=e.DERBoolean,n=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,h=e.DERNumericString,l=e.DERPrintableString,f=e.DERTeletexString,p=e.DERIA5String,d=e.DERUTCTime,g=e.DERGeneralizedTime,m=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var T=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new r(t[T]);if("int"==T)return new n(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new u(t[T]);if("utf8str"==T)return new c(t[T]);if("numstr"==T)return new h(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new f(t[T]);if("ia5str"==T)return new p(t[T]);if("utctime"==T)return new d(t[T]);if("gentime"==T)return new g(t[T]);if("seq"==T){for(var S=t[T],E=[],A=0;A<S.length;A++){var x=b(S[A]);E.push(x)}return new m({array:E})}if("set"==T){for(S=t[T],E=[],A=0;A<S.length;A++)x=b(S[A]),E.push(x);return new v({array:E})}if("tag"==T){var O=t[T];if("[object Array]"===Object.prototype.toString.call(O)&&3==O.length){var k=b(O[2]);return new y({tag:O[0],explicit:O[1],obj:k})}var C={};if(void 0!==O.explicit&&(C.explicit=O.explicit),void 0!==O.tag&&(C.tag=O.tag),void 0===O.obj)throw"obj shall be specified for 'tag'.";return C.obj=b(O.obj),new y(C)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},pt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substr(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new P(n,2).toString(10),n="")}return e},pt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new P(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);return n},pt.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,r=e.toString(16);if(r.length%2==1&&(r="0"+r),e<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+r},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},ft.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object),pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var s=i.getMilliseconds();if(0!=s){var u=n(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,n,i,o){var a=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},ft.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object),pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},ft.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object),pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ft.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object),pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new P(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ft.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object),pt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}pt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=t.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n},this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},ft.lang.extend(pt.asn1.DERBitString,pt.asn1.ASN1Object),pt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}pt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ft.lang.extend(pt.asn1.DEROctetString,pt.asn1.DERAbstractString),pt.asn1.DERNull=function(){pt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ft.lang.extend(pt.asn1.DERNull,pt.asn1.ASN1Object),pt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},r=function(t){var r="",n=new P(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(n=o+n,a=0;a<n.length-1;a+=7){var s=n.substr(a,7);a!=n.length-7&&(s="1"+s),r+=e(parseInt(s,2))}return r};pt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var n="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);n+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)n+=r(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){var e=pt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},ft.lang.extend(pt.asn1.DERObjectIdentifier,pt.asn1.ASN1Object),pt.asn1.DEREnumerated=function(t){pt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new P(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},ft.lang.extend(pt.asn1.DEREnumerated,pt.asn1.ASN1Object),pt.asn1.DERUTF8String=function(t){pt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ft.lang.extend(pt.asn1.DERUTF8String,pt.asn1.DERAbstractString),pt.asn1.DERNumericString=function(t){pt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ft.lang.extend(pt.asn1.DERNumericString,pt.asn1.DERAbstractString),pt.asn1.DERPrintableString=function(t){pt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ft.lang.extend(pt.asn1.DERPrintableString,pt.asn1.DERAbstractString),pt.asn1.DERTeletexString=function(t){pt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ft.lang.extend(pt.asn1.DERTeletexString,pt.asn1.DERAbstractString),pt.asn1.DERIA5String=function(t){pt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ft.lang.extend(pt.asn1.DERIA5String,pt.asn1.DERAbstractString),pt.asn1.DERUTCTime=function(t){pt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},ft.lang.extend(pt.asn1.DERUTCTime,pt.asn1.DERAbstractTime),pt.asn1.DERGeneralizedTime=function(t){pt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},ft.lang.extend(pt.asn1.DERGeneralizedTime,pt.asn1.DERAbstractTime),pt.asn1.DERSequence=function(t){pt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},ft.lang.extend(pt.asn1.DERSequence,pt.asn1.DERAbstractStructured),pt.asn1.DERSet=function(t){pt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},ft.lang.extend(pt.asn1.DERSet,pt.asn1.DERAbstractStructured),pt.asn1.DERTaggedObject=function(t){pt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ft.lang.extend(pt.asn1.DERTaggedObject,pt.asn1.ASN1Object);var dt=function(t){function e(r){var n=t.call(this)||this;return r&&("string"==typeof r?n.parseKey(r):(e.hasPrivateKeyProperty(r)||e.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return g(e,t),e.prototype.parseKey=function(t){try{var e=0,r=0,n=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?v.decode(t):y.unarmor(t),i=k.decode(n);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=L(e,16),r=i.sub[2].getHexStringValue(),this.e=parseInt(r,16);var o=i.sub[3].getHexStringValue();this.d=L(o,16);var a=i.sub[4].getHexStringValue();this.p=L(a,16);var s=i.sub[5].getHexStringValue();this.q=L(s,16);var u=i.sub[6].getHexStringValue();this.dmp1=L(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=L(c,16);var h=i.sub[8].getHexStringValue();this.coeff=L(h,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=L(e,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new pt.asn1.DERInteger({int:0}),new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e}),new pt.asn1.DERInteger({bigint:this.d}),new pt.asn1.DERInteger({bigint:this.p}),new pt.asn1.DERInteger({bigint:this.q}),new pt.asn1.DERInteger({bigint:this.dmp1}),new pt.asn1.DERInteger({bigint:this.dmq1}),new pt.asn1.DERInteger({bigint:this.coeff})]};return new pt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new pt.asn1.DERSequence({array:[new pt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new pt.asn1.DERNull]}),e=new pt.asn1.DERSequence({array:[new pt.asn1.DERInteger({bigint:this.n}),new pt.asn1.DERInteger({int:this.e})]}),r=new pt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new pt.asn1.DERSequence({array:[t,r]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var r="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(r,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(st),gt=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new dt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,r){try{return l(this.getKey().sign(t,e,r))}catch(t){return!1}},t.prototype.verify=function(t,e,r){try{return this.getKey().verify(t,f(e),r)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new dt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=gt,t.JSEncrypt=gt,t.default=gt,Object.defineProperty(t,"__esModule",{value:!0})}(e)}(0,Sv.exports);var Av=k,xv=z,Ov=Ls,kv=ot,Cv=xv(R.f),Dv=xv([].push),Bv=function(t){return function(e){for(var r,n=kv(e),i=Ov(n),o=i.length,a=0,s=[];o>a;)r=i[a++],Av&&!Cv(n,r)||Dv(s,t?[r,n[r]]:n[r]);return s}},Pv={entries:Bv(!0),values:Bv(!1)}.values;pi({target:"Object",stat:!0},{values:function(t){return Pv(t)}});var Rv=pi,Iv=Es.find,Nv=Ad,jv="find",Mv=!0;jv in[]&&Array(1).find((function(){Mv=!1})),Rv({target:"Array",proto:!0,forced:Mv},{find:function(t){return Iv(this,t,arguments.length>1?arguments[1]:void 0)}}),Nv(jv);var Lv=function(t){for(var e,r=0,n=!1,i=t.length-1;i>=0;)e=parseInt(t.charAt(i),10),n&&(e*=2)>9&&(e=e%10+1),n=!n,r+=e,i--;return r%10==0};var _v=function(t){return t?JSON.parse(JSON.stringify(t)):null};var Vv=function(t){return"string"==typeof t||t instanceof String};var Fv=function(t,e){return Array.isArray(e)?function(t,e,r){var n=String(e).length,i=t.substr(0,n),o=parseInt(i,10);return e=parseInt(String(e).substr(0,i.length),10),r=parseInt(String(r).substr(0,i.length),10),o>=e&&o<=r}(t,e[0],e[1]):function(t,e){return(e=String(e)).substring(0,t.length)===t.substring(0,e.length)}(t,e)},Uv=_v,qv=Fv;var Hv,zv=function(t,e,r){var n,i,o,a;for(n=0;n<e.patterns.length;n++)if(i=e.patterns[n],qv(t,i)){a=Uv(e),o=Array.isArray(i)?String(i[0]).length:String(i).length,t.length>=o&&(a.matchStrength=o),r.push(a);break}},Gv={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},Kv=_v,Wv=function(t){if(function(t){var e=t.filter((function(t){return t.matchStrength})).length;return e>0&&e===t.length}(t))return t.reduce((function(t,e){return t?t.matchStrength<e.matchStrength?e:t:e}))},Xv=Vv,Zv=zv,Jv={},Yv={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},$v=[Yv.VISA,Yv.MASTERCARD,Yv.AMERICAN_EXPRESS,Yv.DINERS_CLUB,Yv.DISCOVER,Yv.JCB,Yv.UNIONPAY,Yv.MAESTRO,Yv.ELO,Yv.MIR,Yv.HIPER,Yv.HIPERCARD];function Qv(t){return Jv[t]||Gv[t]}function ty(t,e){var r=Hv.indexOf(t);if(!e&&-1===r)throw new Error('"'+t+'" is not a supported card type.');return r}function ey(t){var e,r=[];return Xv(t)?0===t.length?Hv.map((function(t){return Kv(Qv(t))})):(Hv.forEach((function(e){var n=Qv(e);Zv(t,n,r)})),(e=Wv(r))?[e]:r):[]}Hv=Kv($v),ey.getTypeInfo=function(t){return Kv(Qv(t))},ey.removeCard=function(t){var e=ty(t);Hv.splice(e,1)},ey.addCard=function(t){var e=ty(t.type,!0);Jv[t.type]=t,-1===e&&Hv.push(t.type)},ey.updateCard=function(t,e){var r,n=Jv[t]||Gv[t];if(!n)throw new Error('"'+t+'" is not a recognized type. Use `addCard` instead.');if(e.type&&n.type!==e.type)throw new Error("Cannot overwrite type parameter.");r=Kv(n),Object.keys(r).forEach((function(t){e[t]&&(r[t]=e[t])})),Jv[r.type]=r},ey.changeOrder=function(t,e){var r=ty(t);Hv.splice(r,1),Hv.splice(e,0,t)},ey.resetModifications=function(){Hv=Kv($v),Jv={}},ey.types=Yv;var ry=ey,ny=Lv,iy=ry;function oy(t,e,r){return{card:t,isPotentiallyValid:e,isValid:r}}var ay=function(t,e){var r,n,i,o,a;if(e=e||{},"number"==typeof t&&(t=String(t)),"string"!=typeof t)return oy(null,!1,!1);if(t=t.replace(/\-|\s/g,""),!/^\d*$/.test(t))return oy(null,!1,!1);if(0===(r=iy(t)).length)return oy(null,!1,!1);if(1!==r.length)return oy(null,!0,!1);if(n=r[0],e.maxLength&&t.length>e.maxLength)return oy(n,!1,!1);for(i=n.type===iy.types.UNIONPAY&&!0!==e.luhnValidateUnionPay||ny(t),a=Math.max.apply(null,n.lengths),e.maxLength&&(a=Math.min(e.maxLength,a)),o=0;o<n.lengths.length;o++)if(n.lengths[o]===t.length)return oy(n,t.length<a||i,i);return oy(n,t.length<a,!1)};function sy(t,e,r){return{isValid:t,isPotentiallyValid:e,isCurrentYear:r||!1}}var uy=function(t,e){var r,n,i,o,a;return e=e||19,"string"!=typeof t?sy(!1,!1):""===t.replace(/\s/g,"")?sy(!1,!0):/^\d*$/.test(t)?(n=t.length)<2?sy(!1,!0):(r=(new Date).getFullYear(),3===n?sy(!1,t.slice(0,2)===String(r).slice(0,2)):n>4?sy(!1,!1):(t=parseInt(t,10),i=Number(String(r).substr(2,2)),2===n?(a=i===t,o=t>=i&&t<=i+e):4===n&&(a=r===t,o=t>=r&&t<=r+e),sy(o,o,a))):sy(!1,!1)},cy=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},hy=uy,ly=cy;function fy(t,e,r){return{isValid:t,isPotentiallyValid:e,isValidForThisYear:r||!1}}var py=function(t){var e,r,n=(new Date).getMonth()+1;return"string"!=typeof t?fy(!1,!1):""===t.replace(/\s/g,"")||"0"===t?fy(!1,!0):/^\d*$/.test(t)?(e=parseInt(t,10),isNaN(t)?fy(!1,!1):fy(r=e>0&&e<13,r,r&&e>=n)):fy(!1,!1)},dy=function(t){var e,r,n,i,o;return/^\d{4}-\d{1,2}$/.test(t)?t=t.split("-").reverse():/\//.test(t)?t=t.split(/\s*\/\s*/g):/\s/.test(t)&&(t=t.split(/ +/g)),ly(t)?{month:t[0]||"",year:t.slice(1).join()}:(n=t,r=0===(o=Number(n[0]))?2:o>1||1===o&&Number(n[1])>2?1:1===o?(i=n.substr(1),hy(i).isPotentiallyValid?1:2):5===n.length?1:n.length>5?2:1,{month:e=t.substr(0,r),year:t.substr(e.length)})},gy=py,my=uy;function vy(t,e,r,n){return{isValid:t,isPotentiallyValid:e,month:r,year:n}}function yy(t,e){return{isValid:t,isPotentiallyValid:e}}function by(t,e){return{isValid:t,isPotentiallyValid:e}}var wy={number:ay,expirationDate:function(t,e){var r,n,i,o;if("string"==typeof t)t=t.replace(/^(\d\d) (\d\d(\d\d)?)$/,"$1/$2"),r=dy(t);else{if(null===t||"object"!=typeof t)return vy(!1,!1,null,null);r={month:String(t.month),year:String(t.year)}}if(n=gy(r.month),i=my(r.year,e),n.isValid){if(i.isCurrentYear)return vy(o=n.isValidForThisYear,o,r.month,r.year);if(i.isValid)return vy(!0,!0,r.month,r.year)}return n.isPotentiallyValid&&i.isPotentiallyValid?vy(!1,!0,null,null):vy(!1,!1,null,null)},expirationMonth:py,expirationYear:uy,cvv:function(t,e){return e=(e=e||3)instanceof Array?e:[e],"string"!=typeof t?yy(!1,!1):/^\d*$/.test(t)?function(t,e){for(var r=0;r<t.length;r++)if(e===t[r])return!0;return!1}(e,t.length)?yy(!0,!0):t.length<Math.min.apply(null,e)?yy(!1,!0):t.length>function(t){for(var e=3,r=0;r<t.length;r++)e=t[r]>e?t[r]:e;return e}(e)?yy(!1,!1):yy(!0,!0):yy(!1,!1)},postalCode:function(t,e){var r;return r=(e=e||{}).minLength||3,"string"!=typeof t?by(!1,!1):t.length<r?by(!1,!0):by(!0,!0)},creditCardType:ry},Ty=[{type:"bank_auth",name:"Bank authorization",number:"4084080000000409",cvv:"000",month:"01",year:"30"},{type:"success",name:"Success",number:"4084084084084081",cvv:"408",month:"12",year:"30"},{type:"declined",name:"Declined",number:"4084080000005408",cvv:"001",month:"12",year:"30"},{type:"pin",name:"Pin only validation",number:"507850785078507812",cvv:"884",month:"01",year:"30"},{type:"pin+otp",name:"Pin and OTP validation",number:"5060666666666666666",cvv:"123",month:"01",year:"30"},{type:"pin+phone+otp",name:"Pin, phone and OTP validation",number:"507850785078507812",cvv:"884",month:"01",year:"30"},{type:"default",name:"No validation",number:"4084084084084081",cvv:"408",month:"01",year:"30"}];wy.creditCardType.addCard({niceType:"Verve",type:"verve",patterns:[[506e3,507999],[65e4,650009]],gaps:[4,8,12,16],lengths:[16,18,19],code:{name:"CVV",size:3}}),wy.creditCardType.changeOrder("verve",0);var Sy=function(){function t(e){var r=e.number,n=e.cvv,i=e.month,o=e.year,s=e.pin;a(this,t),this.number=r,this.cvv=n,this.month=i,this.year=o,this.pin=s}return u(t,[{key:"getEncryptedPin",value:function(){return this.pin?Ev(this.pin):void 0}},{key:"getLast4",value:function(){return this.number.substring(this.number.length-4)}},{key:"tokenize",value:function(){return Ev("".concat(this.number,"*").concat(this.cvv,"*").concat(this.month,"*").concat(this.year))}}],[{key:"getType",value:function(t){var e=wy.number(t);return e&&e.card?{type:e.card.type,maxLength:Math.max.apply(Math,b(e.card.lengths)),minLength:Math.min.apply(Math,b(e.card.lengths))}:{type:null,maxLength:0}}},{key:"validate",value:function(e){var r=e.number,n=e.cvv,i=e.month,o=e.year,a=t.getType(r).type,s={number:t.isNumberValid(r),expiry:t.isExpiryValid({month:i,year:o}),cvv:t.isCvvValid(n,a)};return{isValid:Object.values(s).every((function(t){return!0===t})),result:s}}},{key:"validateNumber",value:function(t){return wy.number(t)}},{key:"isNumberValid",value:function(e){return t.validateNumber(e).isValid}},{key:"validateCVV",value:function(t,e){var r="american-express"===e?4:3;return wy.cvv(t,r)}},{key:"isCvvValid",value:function(e,r){return t.validateCVV(e,r).isValid}},{key:"validateExpiry",value:function(t){if("object"===n(t)){var e=t.month,r=t.year;return wy.expirationMonth(e)&&wy.expirationYear(r)}return wy.expirationDate(t)}},{key:"isExpiryValid",value:function(e){return t.validateExpiry(e).isValid}},{key:"generateTestCard",value:function(e){var r=e||"default";return new t(Ty.find((function(t){return t.type===r})))}}]),t}(),Ey=function(t){var e=t.clientdata,n=t.last4,i=t.pin,o=t.trans,a=t.device,s=t.rememberCard,u=t.transactionType,c=t.subscription,h=t.customFields,l="".concat(Hd.paymentBaseUrl,"charge/"),f=r(r(r({clientdata:e,last4:n,trans:o,device:a,offset:(new Date).getTimezoneOffset(),remember_card:s},u&&{transaction_type:u}),c&&{subscription:c}),h&&h);i&&(f.handle=i);var p=uv(f);return $m.post(l,p,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},Ay=function(t){var e=t.device,n=t.accessCode,i=t.pin,o="".concat(Hd.paymentBaseUrl,"charge/resume/").concat(n),a=r({device:e},i&&{handle:i}),s=uv(a);return $m.post(o,s,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},xy=function(t){var e=t.last4,n=t.trans,i=t.device,o=t.authorizationCode,a=t.cvv,s=t.pin,u=t.transactionType,c=t.subscription,h="".concat(Hd.paymentBaseUrl,"charge/"),l=r(r({last4:e,trans:n,device:i,cvv:a,handle:s,authorization_code:o},u&&{transaction_type:u}),c&&{subscription:c}),f=uv(l);return $m.post(h,f,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},Oy=function(t,e){var r="".concat(Hd.paymentBaseUrl,"charge/validate"),n=uv({trans:t,token:e});return $m.post(r,n).then((function(t){return Zd.parse(t.data)}))},ky=function(t){var e=t.address,r=t.city,n=t.state,i=t.zipCode,o=t.transactionId,a="".concat(Hd.paymentBaseUrl,"charge/avs"),s=uv({city:r,state:n,address:e,zip_code:i,trans:o});return $m.post(a,s,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},Cy=function(t){var e=t.authorizationId,r=t.publicKey,n={Authorization:"Bearer ".concat(r)},i={authorization_id:e},o="".concat(Hd.paystackApiUrl,"rememberme/forget_card");return $m.post(o,i,{headers:n}).then((function(t){return Zd.parse(t.data)}))},Dy="card";function By(t,e){return new Promise((function(r,n){var i=Sy.validate(t);if(!i.isValid){var o=e||t.number,a=Object.keys(i.result).filter((function(t){return!1===i.result[t]})),s="Invalid card details: ".concat(a.join(", "));n(Error(o?s:"Please set a valid card with Transaction.setCard()"))}r()}))}var Py={setCard:function(t){var e=this;return By(t,!0).then((function(){e.card=new Sy(t)}))},rememberCard:function(){this.remember_card=!0},chargeCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return By(this.card).then((function(){t.logAttempt(Dy);var r={clientdata:t.card.tokenize(),last4:t.card.getLast4(),pin:t.card.getEncryptedPin(),trans:t.id,device:t.deviceFingerprint,rememberCard:t.remember_card,transactionType:t.transactionType,subscription:t.subscription,customFields:e};return Ey(r).then((function(e){return t.logAPIResponse(e,Dy),e}))}))},chargeRememberedCard:function(t){var e=this,r=t.cvv,n=t.authorizationCode,i=t.cardLast4,o=t.pin;this.logAttempt(Dy);var a=Ev(o),s={authorizationCode:n,cvv:r,last4:i,trans:this.id,device:this.deviceFingerprint,pin:a,transactionType:this.transactionType,subscription:this.subscription};return xy(s).then((function(t){return e.logAPIResponse(t,Dy),t}))},resumeCardCharge:function(t){var e=this,n=t.accessCode,i=t.pin,o=r(r({},i&&{pin:Ev(i)}),{},{accessCode:n,device:this.deviceFingerprint});return Ay(o).then((function(t){return e.logAPIResponse(t,Dy),t}))},forgetRememberedCard:function(t){var e=this,r={authorizationId:t,publicKey:this.merchant.key};return Cy(r).then((function(t){return e.logAPIResponse(t,Dy),t}))},authenticateCard:function(t){var e=this;return Oy(this.id,t).then((function(t){return e.logAPIResponse(t,Dy),t}))},verifyAddress:function(t){var e=this,r=t.address,n={city:t.city,state:t.state,address:r,zipCode:t.zipCode,transactionId:this.id};return ky(n).then((function(t){return e.logAPIResponse(t,Dy),t}))},listenFor3DSCharge:function(t){var e={channel:"3DS_".concat(this.id),paymentMethod:Dy};return this.listenForCharge(e,t)}},Ry=function(){function t(e){var r=e.bankId,n=e.accountType,i=e.accountNumber;a(this,t),this.bankId=r,this.accountType=n,this.accountNumber=i}return u(t,null,[{key:"validate",value:function(e){var r=e.bankId,n=e.accountType,i=e.accountNumber,o=[];return r&&"number"==typeof r||o.push("Invalid bankId. Please check for supported banks with BankAccount.supportedBanks()"),t.types.indexOf(n)>-1?"nuban"!==n||t.isValidNubanAccount(i)||o.push("Invalid account number. Nuban accounts must be 10 digit numbers"):o.push("Invalid bank type. Please check BankAccount.types for the list of valid bank types"),{isValid:0===o.length,errors:o}}},{key:"isValidNubanAccount",value:function(t){return!!t&&(("number"==typeof t||/^\d+$/.test(t))&&10===t.length)}},{key:"supportedBanks",value:function(){var t="".concat(Hd.paymentBaseUrl,"bank?pay_with_bank=true");return $m.post(t).then((function(t){return t.data}))}}]),t}();Ry.types=["nuban"];var Iy=function(t){var e=t.bankId,r=t.transactionId,n=t.accountNumber,i=t.device,o="".concat(Hd.paymentBaseUrl,"bank/charge_account/").concat(e,"/").concat(r),a=uv({account_number:n,device:i});return $m.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},Ny=function(t){var e=t.bankId,r=t.transactionId,n=t.accountNumber,i=t.birthday,o="".concat(Hd.paymentBaseUrl,"bank/charge_account/").concat(e,"/").concat(r),a=uv({account_number:n,birthday:i});return $m.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},jy=function(t){var e=t.bankId,r=t.transactionId,n=t.token,i=t.device,o="".concat(Hd.paymentBaseUrl,"bank/validate_token/").concat(e,"/").concat(r),a=uv({device:i,token:n});return $m.post(o,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},My="bank account";function Ly(t,e){return new Promise((function(r,n){var i=Ry.validate(t);if(!i.isValid){var o=e||t.accountNumber?i.errors[0]:"Please set a valid bank account with Transaction.setBank()";n(Error(o))}r()}))}var _y={getIbankUrl:function(t){var e=this,r=t.bankId;return new Promise((function(t,n){r||n(Error("Please send bankId"));var i="".concat(Hd.paymentBaseUrl,"bank/ibank/").concat(r,"/").concat(e.id);t(Zd.success({url:i}))}))},listenForIbankCharge:function(t){var e={channel:"IBANK_".concat(this.id),paymentMethod:"ibank"};return this.listenForCharge(e,t)}},Vy=function(t){var e=t.bankId,n=t.transactionId,i=t.phoneNumber,o=t.token,a=t.accountNumber,s="".concat(Hd.paymentBaseUrl,"bank/digitalbankmandate/").concat(e,"/").concat(n),u=r(r({},"sterling-bank"==={16:"sterling-bank",62:"kuda-bank"}[e]?{account_number:a}:{phone_number:i}),{},{token:o}),c=uv(u);return $m.post(s,c,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return Zd.parse(t.data)}))},Fy="bank",Uy={chargeDigitalBankMandate:function(t){var e=this,r=t.phoneNumber,n=t.token,i=t.bankId,o=t.accountNumber,a={transactionId:this.id,phoneNumber:r,token:n,bankId:i,accountNumber:o};return Vy(a).then((function(t){return e.logAPIResponse(t,Fy),t}))},listenForDigitalBankMandateCharge:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={paymentMethod:Fy,channel:e};return this.listenForCharge(r,t)}},qy=r(r(r({},{setBankAccount:function(t){var e=this;return Ly(t,!0).then((function(){e.bankAccount=new Ry(t)}))},chargeBankAccount:function(){var t=this;return Ly(this.bankAccount).then((function(){t.logAttempt(My);var e={bankId:t.bankAccount.bankId,transactionId:t.id,accountNumber:t.bankAccount.accountNumber,device:t.deviceFingerprint};return Iy(e).then((function(e){return t.logAPIResponse(e,My),e}))}))},registerBankAccount:function(t){var e=this;return Ly(this.bankAccount).then((function(){var r={bankId:e.bankAccount.bankId,transactionId:e.id,accountNumber:e.bankAccount.accountNumber,birthday:t};return Ny(r).then((function(t){return e.logAPIResponse(t,My),t}))}))},authenticateBankAccount:function(t){var e=this;return Ly(this.bankAccount).then((function(){var r={bankId:e.bankAccount.bankId,transactionId:e.id,token:t,device:e.deviceFingerprint};return jy(r).then((function(t){return e.logAPIResponse(t,My),t}))}))}}),_y),Uy),Hy=function(t,e){var r={Authorization:"Bearer ".concat(e)};return $m.post("".concat(Hd.paystackApiUrl,"checkout/ussd/reference"),t,{headers:r}).then((function(t){return Zd.parse(t.data)}))},zy=function(t,e){var r={Authorization:"Bearer ".concat(e)};return $m.post("".concat(Hd.paystackApiUrl,"checkout/pay_with_transfer_ussd"),t,{headers:r}).then((function(t){return Zd.parse(t.data)}))},Gy={getUSSDShortcode:function(t){var e=this,r=t.channel,n={transaction:this.id,channel:r};return Hy(n,this.merchant.key).then((function(t){return"success"===t.status&&(e.ussd[r]=t),t}))},getPWTUSSDShortcode:function(t){var e=this,r=t.bankSlug,n=t.fulfilLateNotification,i=void 0!==n&&n,o={transaction_id:this.id,fulfil_late_notification:i,bank_slug:r};return zy(o,this.merchant.key).then((function(t){return"success"===t.status&&(e.ussd[r]=t),t}))},listenForPWTUSSDCharge:function(t,e){var r=t.bankSlug;if(!this.ussd[r])return Promise.reject(Error("Please generate a ussd shortcode with Transaction.getPWTUSSDShortcode()"));var n={channel:this.ussd[r].data.pusher_channel,paymentMethod:"ussd"};return this.listenForCharge(n,e)},listenForUSSDCharge:function(t,e){var r=t.channel;if(!this.ussd[r])return Promise.reject(Error("Please generate a ussd shortcode with Transaction.getUSSDShortcode()"));var n={channel:this.ussd[r].data.channel,paymentMethod:r};return this.listenForCharge(n,e)}},Ky=function(t,e){var r={source:"checkout",reference:t.transaction,channel:t.channel},n={Authorization:"Bearer ".concat(e)};return $m.post("".concat(Hd.paystackApiUrl,"offline/qr/generate"),r,{headers:n}).then((function(t){return Zd.parse(t.data)}))};function Wy(t){return new Promise((function(e,r){var n=["visa","MPASS_OLTI"];if(n.indexOf(t)<=-1){var i="Invalid channel. Available channels: ".concat(n.join(", "));r(Error(i))}else e()}))}var Xy={getQRCode:function(t){var e=this,r=t.channel;return Wy(r).then((function(){if(e.qr[r])return e.qr[r];var t={transaction:e.id,channel:r};return Ky(t,e.merchant.key).then((function(t){return"success"===t.status&&(e.qr[r]=t),t}))}))},listenForQRCharge:function(t,e){var r=this,n=t.channel;return Wy(n).then((function(){if(!r.qr[n])return Promise.reject(Error("Please generate qr code with Transaction.getQRCode()"));var t={channel:r.qr[n].data.channel,paymentMethod:n};return r.listenForCharge(t,e)}))}},Zy=function(){function t(){a(this,t)}return u(t,null,[{key:"hasCountryCode",value:function(t){return t&&"+"===t[0]}},{key:"hasOnlyDigits",value:function(t){var e;return t&&(e=t.substring(1),/^\d+$/.test(e))}},{key:"isE164Number",value:function(t){return t&&t.length<17}},{key:"validate",value:function(e){var r=[];return t.hasCountryCode(e)||r.push("Number should include country code prefix"),t.hasOnlyDigits(e)||r.push("Number should contain only digits"),t.isE164Number(e)||r.push("Number should not be longer than 16 digits"),{isValid:0===r.length,errors:r}}}]),t}(),Jy=function(t){var e={transaction:t.transaction,phone:t.phone,device:t.device,channel_name:t.channel_name,provider:t.provider,voucher:t.voucher,registration_token:t.registrationToken};return $m.post("".concat(Hd.paystackApiUrl,"charge/mobile_money"),e).then((function(t){return Zd.parse(t.data)}))};var Yy={chargeMobileMoney:function(t){var e=this,r=t.phoneNumber,n=t.provider,i=t.voucher,o=t.registrationToken;return function(t){return new Promise((function(e,r){var n=Zy.validate(t);if(!n.isValid){var i=t?n.errors[0]:"Please start a mobile money transaction with Transaction.chargeMobileMoney()";r(Error(i))}e(n)}))}(r).then((function(){e.logAttempt("mobile money");var t={provider:n,voucher:i,registrationToken:o,transaction:e.id,phone:r,device:e.deviceFingerprint,channel_name:"MOBILE_MONEY_".concat(e.id)};return Jy(t).then((function(t){return"success"===t.status&&(e.mobileMoney=t),t}))}))},listenForMobileMoneyCharge:function(t){if("success"!==this.mobileMoney.status)return Promise.reject(Error("Please start a mobile money charge with Transaction.chargeMobileMoney()"));var e=this.mobileMoney.data,r=e.channel,n=e.channel_name,i={channel:r||n,paymentMethod:"mobile_money"};return this.listenForCharge(i,t)}},$y=function(t,e){var r="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/verify"),n={Authorization:"Bearer ".concat(e)};return $m.post(r,{phone:t},{headers:n}).then((function(t){return t.data}))},Qy=function(t,e,r){var n="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/remove_card"),i={Authorization:"Bearer ".concat(e)};return $m.post(n,{phone:t,id:r},{headers:i}).then((function(t){return t.data}))},tb=function(t,e,r,n){var i="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/validate_otp"),o={Authorization:"Bearer ".concat(e)};return $m.post(i,{phone:t,otp:r,transaction:n},{headers:o}).then((function(t){return t.data}))},eb=function(t,e,r,n){var i="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/validate_pin"),o={Authorization:"Bearer ".concat(e)};return $m.post(i,{phone:t,pin:r,transaction:n},{headers:o}).then((function(t){return t.data}))},rb=function(t,e,r,n,i){var o="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/set_pin"),a={Authorization:"Bearer ".concat(e)};return $m.post(o,{phone:t,token:r,transaction:n,pin:i},{headers:a}).then((function(t){return t.data}))},nb=function(t,e,r,n,i,o){var a="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/charge"),s={Authorization:"Bearer ".concat(e)};return $m.post(a,{id:t,token:r,cvv:i,transaction:n,phone:o},{headers:s}).then((function(t){return t.data}))},ib=function(t,e,r){var n="".concat(Hd.paystackApiUrl,"checkout/pay_with_phone/enroll"),i={Authorization:"Bearer ".concat(e)};return $m.post(n,{phone:t,transaction:r},{headers:i}).then((function(t){return t.data}))};function ob(t){return new Promise((function(e,r){var n=Zy.validate(t);if(!n.isValid){var i=t?n.errors[0]:"Please set a valid customer with Transaction.setCustomer()";r(Error(i))}e(n)}))}var ab={setCustomer:function(t){var e=this,r=t.phoneNumber;return ob(r).then((function(){e.customer=r}))},verifyCustomer:function(){var t=this;return ob(this.customer).then((function(){return $y(t.customer,t.merchant.key)}))},deleteSavedCard:function(t){var e=this;return ob(this.customer).then((function(){return Qy(e.customer,e.merchant.key,t)}))},authenticateCustomerOtp:function(t){var e=this;return ob(this.customer).then((function(){return tb(e.customer,e.merchant.key,t,e.id)}))},authenticateCustomerPin:function(t){var e=this;return ob(this.customer).then((function(){return eb(e.customer,e.merchant.key,t,e.id)}))},setCustomerPin:function(t){var e=this,r=t.pin,n=t.token;return ob(this.customer).then((function(){return rb(e.customer,e.merchant.key,n,e.id,r)}))},chargeSavedCard:function(t){var e=this,r=t.cardId,n=t.token,i=t.cvv;return ob(this.customer).then((function(){return nb(r,e.merchant.key,n,e.id,i,e.customer)}))},enrollPhoneNumber:function(t){var e=this;return ob(this.customer).then((function(){return ib(t,e.merchant.key,e.id)}))}},sb=function(t){var e={email:t.email,password:t.password};return $m.post("".concat(Hd.paystackApiUrl,"login"),e).then((function(t){return Zd.parse(t.data)}))},ub=function(t){var e=t.account_code,r=t.transaction,n=t.token,i={Authorization:"Bearer ".concat(n),"jwt-auth":!0},o={account_code:e,transaction:r};return $m.post("".concat(Hd.paystackApiUrl,"directdebit/initiate"),o,{headers:i}).then((function(t){return Zd.parse(t.data)}))},cb=function(t){var e=t.otp,r=t.transaction,n=t.token,i={Authorization:"Bearer ".concat(n),"jwt-auth":!0},o={otp:e,transaction:r};return $m.post("".concat(Hd.paystackApiUrl,"directdebit/validate"),o,{headers:i}).then((function(t){return Zd.parse(t.data)}))},hb=function(t){var e={Authorization:"Bearer ".concat(t),"jwt-auth":!0};return $m.get("".concat(Hd.paystackApiUrl,"directdebit/account"),{headers:e}).then((function(t){return t.data}))},lb="direct debit",fb={loginToDirectDebitAccount:function(t){var e=this,r=t.email,n={email:r,password:t.password};return Mc(r)?sb(n).then((function(t){if("success"===t.status){var r=t.data,n=r.token,i=r.user.permissions;if(!i||i.length<1)throw Error("You do not have the privileges to perform this action");if(i.find((function(t){return"directdebit-*"===t})))return e.directDebit.token=n,t;throw Error("You do not have the privileges to perform this action")}return t})):Promise.reject(Error("Invalid email"))},chargeDirectDebit:function(t){var e=this;if(!this.directDebit.token)return Promise.reject(Error("Please login with Transaction.loginToDirectDebitAccount() to start a Direct debit charge"));this.logAttempt(lb);var r={account_code:t,transaction:this.id,token:this.directDebit.token};return ub(r).then((function(t){return e.logAPIResponse(t,lb),t.status&&(e.directDebit.chargeResponse=t),t}))},getProvisionedAccounts:function(){var t=this;return hb(this.directDebit.token).then((function(e){t.logAPIResponse(e,lb);var r=e.status,n=e.data;if(r){if(n&&n.length<1)return Promise.reject(Error("You have not provisioned any bank account for Direct Debit yet"));t.directDebit.accounts=e.data}return e}))},authenticateAccount:function(t){var e=this,r={otp:t,transaction:this.id,token:this.directDebit.token};return cb(r).then((function(t){return e.logAPIResponse(t,lb),t}))}},pb=function(t){return{card:Py,bank:qy,ussd:Gy,qr:Xy,mobile_money:Yy,phone:ab,direct_debit:fb,bank_transfer:av,eft:fv,payattitude:lv,apple_pay:mv,paypal:Tv}[t]},db=function(t){t||"undefined"==typeof navigator||(t=navigator.userAgent);t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]);return"string"==typeof t&&(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))};var gb=pi,mb=ft,vb=pa,yb=z,bb=O,wb=A.Array,Tb=mb("JSON","stringify"),Sb=yb(/./.exec),Eb=yb("".charAt),Ab=yb("".charCodeAt),xb=yb("".replace),Ob=yb(1..toString),kb=/[\uD800-\uDFFF]/g,Cb=/^[\uD800-\uDBFF]$/,Db=/^[\uDC00-\uDFFF]$/,Bb=function(t,e,r){var n=Eb(r,e-1),i=Eb(r,e+1);return Sb(Cb,t)&&!Sb(Db,i)||Sb(Db,t)&&!Sb(Cb,n)?"\\u"+Ob(Ab(t,0),16):t},Pb=bb((function(){return'"\\udf06\\ud834"'!==Tb("\udf06\ud834")||'"\\udead"'!==Tb("\udead")}));Tb&&gb({target:"JSON",stat:!0,forced:Pb},{stringify:function(t,e,r){for(var n=0,i=arguments.length,o=wb(i);n<i;n++)o[n]=arguments[n];var a=vb(Tb,null,o);return"string"==typeof a?xb(a,kb,Bb):a}});var Rb=function(t,e,r){var n="".concat(Hd.paystackApiUrl,"transaction/update_log/").concat(t),i={Authorization:"Bearer ".concat(e)};return $m.post(n,{payload:JSON.stringify(r)},{headers:i}).then((function(t){return t.data}))},Ib=function(t,e){var r="".concat(Hd.paystackApiUrl,"transaction/set_ip/").concat(t),n={Authorization:"Bearer ".concat(e)};return $m.post(r,null,{headers:n}).then((function(t){return t.data}))},Nb=function(t,e,r){var n="".concat(Hd.paystackApiUrl,"transaction/set_referrer/").concat(t),i={Authorization:"Bearer ".concat(e)};return $m.post(n,{referrer:r},{headers:i}).then((function(t){return t.data}))},jb={initializeLog:function(t){var e=t||{},r=e.attempts,n=e.authentication,i=e.errors,o=e.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:r||0,authentication:n,errors:i||0,success:!1,mobile:db(),input:[],history:o||[]}},getTimeSpent:function(){var t=Math.round(Date.now()/1e3);return this.log.time_spent=t-this.log.start_time,this.log.time_spent},logPageOpen:function(){return this.log.history.push({type:"open",message:"Opened checkout",time:this.getTimeSpent()}),this.saveLog()},logChannelSwitch:function(t){return this.log.history.push({type:"action",message:"Set payment method to: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logValidationErrors:function(t){var e=this;return t.forEach((function(t){e.log.history.push({type:"error",message:"Invalid ".concat(t),time:e.getTimeSpent()})})),this.saveLog()},logInput:function(t){var e=this.log.history.find((function(e){return e.message==="Filled this field: ".concat(t)}));return this.log.history.push({type:"input",message:"".concat(e?"Changed":"Filled"," this field: ").concat(t),time:this.getTimeSpent()}),this.saveLog()},logBankSelect:function(t){return this.log.history.push({type:"action",message:"Selected bank: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logAuthWindowOpen:function(){return this.log.history.push({type:"action",message:"Third-party authentication window opened",time:this.getTimeSpent()}),this.saveLog()},logAuthWindowClose:function(){return this.log.history.push({type:"action",message:"Third-party authentication window closed",time:this.getTimeSpent()}),this.saveLog()},logAPIResponse:function(t,e){switch(t.status){case"success":return this.logSuccess(e);case"pending":return this.logPending(e);case"failed":return this.logError(t.message);case"auth":return this.logAuth(t.data.auth);default:return!1}},logAPIResponseMessage:function(t){return this.log.history.push({type:"action",message:t,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(t){var e="Attempted to pay";return t&&(e+=" with ".concat(t)),this.log.attempts+=1,this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logError:function(t){var e="Error";return t&&(e+=": ".concat(t)),this.log.errors+=1,this.log.history.push({type:"error",message:e,time:this.getTimeSpent()}),this.saveLog()},logAuth:function(t){return this.log.authentication=t,this.log.history.push({type:"auth",message:"Authentication Required: ".concat(t),time:this.getTimeSpent()}),this.saveLog()},logSuccess:function(t){var e="Successfully paid";return t&&(e+=" with ".concat(t)),this.log.success=!0,this.log.history.push({type:"success",message:e,time:this.getTimeSpent()}),this.saveLog()},logPending:function(t){var e="Payment in progress";return t&&(e+=" with ".concat(t)),this.log.history.push({type:"pending",message:e,time:this.getTimeSpent()}),this.saveLog()},logPageClose:function(){return this.log.history.push({type:"close",message:"Closed checkout",time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){return Rb(this.id,this.merchant.key,this.log)},saveIpAddress:function(){return Ib(this.id,this.merchant.key)},saveReferrer:function(t){return Nb(this.id,this.merchant.key,t)}},Mb=function(){function t(e){var r=this;a(this,t),this.email=e.email,this.merchant={id:e.merchant_id,logo:e.merchant_logo,name:e.merchant_name,key:e.merchant_key,channelSettings:e.merchant_channel_settings||{}},this.status=e.transaction_status||e.status,this.accessCode=e.access_code,this.amount=e.amount,this.domain=e.domain,this.isTest="test"===e.domain,this.currency=e.currency,this.id=e.id,this.channels=["apple_pay"].concat(e.channels),this.label=e.label,this.metadata=e.metadata||{},this.cancel_action=e.cancel_action||null,this.channel_options=e.channel_options||null,this.hash=e.hash||null,this.authorizations=e.authorizations,this.remember_card=!1,this.rememberMeEnabled=e.is_remember_me_enabled,this.card={},this.bankAccount={},this.mobileMoney={},this.ussd={},this.bankTransfer={},this.qr={},this.directDebit={},this.deviceFingerprint=e.deviceFingerprint||null,this.customer=e.customer,this.custom_filters=e.custom_filters||null,this.isCharging=!1,this.isListening=!1,this.transactionType=e.transaction_type||null,this.subscription=e.subscription||null,this.planDetails=e.plan_details||null,window?new Promise((function(t,e){var r=new XMLHttpRequest;r.open("GET",Hd.pusherUrl),r.onload=function(){if(r.status>=200&&r.status<300){var n=document.createElement("script");n.appendChild(document.createTextNode(r.responseText)),document.head.appendChild(n),t()}else e(r.statusText)},r.onerror=function(){return e(r.statusText)},r.send(null)})):Promise.reject(new Error("Window object not available")),this.log=null,Object.assign(this,jb),this.initializeLog(e.log),this.saveIpAddress(),this.channels.forEach((function(t){var e=pb(t);Object.assign(r,e)})),this.channels.includes("ussd")&&!this.channels.includes("bank_transfer")&&Object.assign(this,pb("bank_transfer"))}return u(t,[{key:"setMetadata",value:function(t,e){this.metadata[t]=e}},{key:"setDevice",value:function(t){this.deviceFingerprint?nd("Device ID has already been set by Checkout JS so there's no need to set this again"):this.deviceFingerprint=t}},{key:"listenForCharge",value:function(t,e){var r,n=this,i=t.channel,o=t.paymentMethod;window&&window.Pusher&&(r=new window.Pusher(Hd.pusherKey,{cluster:"eu",disableStats:!0}));var a={status:"error",message:"We could not listen for charge response. Use transaction.requery() to check the status."},s=function(){r.unsubscribe(i)};if(!r)return e({status:"error",message:"We could not listen for charge response."},zd);var u=r.subscribe(i);u.bind("pusher:subscription_succeeded",(function(){n.isListening=!0})),u.bind("pusher:subscription_error",(function(){n.isListening=!1,e(a,zd)})),u.bind("response",(function(t){var r=Zd.parse(t);n.logAPIResponse(r,o),e(r,s)}))}},{key:"requery",value:function(){return rv(this.id)}},{key:"markAsAbandoned",value:function(){return nv({publicKey:this.merchant.key,transactionId:this.id})}}]),t}(),Lb={validate:function(t){var e=function(t){var e=[];return t&&"object"===n(t)?(Object.keys(Vc).forEach((function(r){var n=Vc[r],i=t[r];!n.required||i||t[n.fallback]?i&&!n.isValid(i)&&e.push({field:r,message:"Invalid field: ".concat(r)}):e.push({field:r,message:"Required field: ".concat(r)})})),e):(e.push({message:"Please supply a valid object"}),e)}(t);if(e.length){var r=y(e,1)[0].message;throw new ns(e,r)}},request:function(t){return o(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,od();case 2:return n=e.sent,e.next=5,Qm(r(r({},t),{device:n}));case 5:return i=e.sent,e.abrupt("return",i&&Object.seal(new Mb(r(r({},i.data),{deviceFingerprint:n}))));case 7:case"end":return e.stop()}}),e)})))()},requestWithAccessCode:function(t){return o(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,od();case 2:return n=e.sent,e.next=5,tv(t);case 5:return i=e.sent,e.abrupt("return",i&&Object.seal(new Mb(r(r({},i.data),{deviceFingerprint:n}))));case 7:case"end":return e.stop()}}),e)})))()},initialize:function(t){return Object.seal(new Mb(t))},verify:function(t){return o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ev(t);case 2:return r=e.sent,e.abrupt("return",r&&r.data);case 4:case"end":return e.stop()}}),e)})))()}},_b=function(t){var e="".concat(Hd.paystackApiUrl,"bank"),r={params:t};return $m.get(e,r).then((function(t){return t.data}))},Vb=function(){var t="".concat(Hd.paystackApiUrl,"checkout/resolutions");return $m.get(t).then((function(t){return t.data}))},Fb=function(){var t="".concat(Hd.paystackApiUrl,"checkout/celebrations");return $m.get(t).then((function(t){return t.data}))},Ub=function(t){var e="".concat(Hd.paystackApiUrl,"address_verification/states"),r={params:t};return $m.get(e,r).then((function(t){return t.data}))},qb=function(){function t(){a(this,t)}return u(t,null,[{key:"contents",value:function(){return[{key:"banks",usage:"Returns a list of banks that can be used to complete checkout"},{key:"resolutions",usage:"Returns a list of known errors, mapped to their suggested resolutions"},{key:"celebrations",usage:"Returns a list of upcoming celebrations"},{key:"states",usage:"Returns a list of states for a particular country"}]}},{key:"fetch",value:function(t,e){var r;if(this.contents().map((function(t){return t.key})).indexOf(t)<=-1)throw new Error("Please provide a valid config key. Use Toolkit.contents() to see available options.");switch(t){case"banks":r=_b(e||{pay_with_bank:"1"});break;case"resolutions":r=Vb();break;case"celebrations":r=Fb();break;case"states":r=Ub(e)}return r}}]),t}();return t.BankAccount=Ry,t.Card=Sy,t.Toolkit=qb,t.Transaction=Lb,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|