diff --git a/dist/lib/app.js b/dist/lib/app.js index 2a1a159..e2f0edb 100644 --- a/dist/lib/app.js +++ b/dist/lib/app.js @@ -52,7 +52,10 @@ if (process.env.mongodb_username) { connectionString += process.env.mongodb_username + ':' + process.env.mongodb_password + '@'; } connectionString += process.env.mongodb_address || 'localhost:27017'; -connectionString += '/' + process.env.mongodb_authdb; +if (process.env.mongodb_authdb) { + connectionString += '/' + process.env.mongodb_authdb; +} +console.log('connect to', connectionString); const client = new mongodb_1.MongoClient(connectionString, { useNewUrlParser: true, useUnifiedTopology: true, diff --git a/dist/lib/app.js.map b/dist/lib/app.js.map index 5563a23..a52c7bc 100644 --- a/dist/lib/app.js.map +++ b/dist/lib/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/lib/app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAA;AAC1B,sDAA6B;AAC7B,8EAAwC;AACxC,sDAA6B;AAC7B,oDAAqC;AACrC,oDAA2B;AAC3B,8DAAoC;AACpC,kDAA0B;AAC1B,2CAA4B;AAC5B,uCAAwB;AACxB,uDAAwC;AACxC,qCAAqC;AACrC,mEAA0C;AAC1C,oDAA2B;AAC3B,4EAA0C;AAC1C,4EAA0C;AAC1C,mBAAmB;AACnB,MAAM,GAAG,GAAG,iBAAO,EAAE,CAAA;AACrB,MAAM,CAAC,IAAI,CAAC;IACV,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IAC/B,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IAC/B,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;CACxC,CAAC,CAAA;AAEF,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAA;AAExC,IAAI,gBAAgB,GAAG,YAAY,CAAA;AAEnC,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,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A;IAC9F,GAAG,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,CAAA;IAClE,GAAG,CAAC,MAAM,CAAC,4DAA4D,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC5G,GAAG,CAAC,GAAG,CAAC,4DAA4D,EAAE,CAAC,OAAO,EAAE,qBAAU,CAAC,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAA;IAC/H,GAAG,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,OAAO,EAAE,qBAAU,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAA;IACjH,GAAG,CAAC,GAAG,CAAC,oCAAoC,EAAE,OAAO,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAEjF,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,CAAC,KAAK,CAAC,wBAAwB,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;QACpE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;AAC7C,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/lib/docs/pull.js b/dist/lib/docs/pull.js index 1dc1dc4..158fa20 100644 --- a/dist/lib/docs/pull.js +++ b/dist/lib/docs/pull.js @@ -33,7 +33,7 @@ const version_sort_1 = __importDefault(require("version-sort")); const logger = __importStar(require("../utils/logger")); const tmpRepoDir = path_1.default.join(os_1.default.tmpdir(), 'jsreport', 'temp', 'docsRepo'); async function pull(docsPath = 'views/learn/docs') { - // return ['latest', '3.0.0'] + return ['latest', '2.11.0']; fs_1.default.rmdirSync(tmpRepoDir, { recursive: true }); fs_1.default.mkdirSync(tmpRepoDir, { recursive: true }); const fullDocsPath = path_1.default.isAbsolute(docsPath) ? docsPath : path_1.default.join(process_1.default.cwd(), docsPath); diff --git a/dist/lib/docs/pull.js.map b/dist/lib/docs/pull.js.map index a989af3..df535ac 100644 --- a/dist/lib/docs/pull.js.map +++ b/dist/lib/docs/pull.js.map @@ -1 +1 @@ -{"version":3,"file":"pull.js","sourceRoot":"","sources":["../../../src/lib/docs/pull.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAuB;AACvB,sDAA6B;AAC7B,oEAAgC;AAChC,oEAA2C;AAC3C,4CAAmB;AACnB,4CAAmB;AACnB,wDAA8B;AAC9B,gEAAsC;AACtC,wDAAyC;AAEzC,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,CAAA;AAE1D,KAAK,UAAU,IAAI,CAAC,QAAQ,GAAG,kBAAkB;IAC5D,gCAAgC;IAChC,YAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC7C,YAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,cAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,iBAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAA;IAC9F,YAAE,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC/C,YAAE,CAAC,SAAS,CAAC,YAAY,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EAAE,EAAE,EAAF,YAAE,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,MAAM,CAAC,CAAA;IAChI,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAChC,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE;QAC3B,MAAM,wBAAG,CAAC,QAAQ,CAAC;YACf,EAAE,EAAF,YAAE;YACF,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,MAAM;SACd,CAAC,CAAA;QACF,MAAM,kBAAO,CAAC,IAAI,CAAC,UAAU,EAAE,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;KAClE;IAED,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,sBAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAA;AAC9D,CAAC;AAxBD,uBAwBC"} \ No newline at end of file diff --git a/dist/lib/payments/taxes/taxes.js b/dist/lib/payments/taxes/taxes.js index 3838554..2098759 100644 --- a/dist/lib/payments/taxes/taxes.js +++ b/dist/lib/payments/taxes/taxes.js @@ -146,7 +146,7 @@ function createFeeSale(price) { vatRate: 21, currency: 'czk', price: price, - amount: price + vatAmount, + amount: utils_1.round(price + vatAmount), vatAmount, item: 'Fees for the sold jsreport licenses', vatNumber: 'CZ8501274529', diff --git a/dist/lib/payments/taxes/taxes.js.map b/dist/lib/payments/taxes/taxes.js.map index c0068c9..d661767 100644 --- a/dist/lib/payments/taxes/taxes.js.map +++ b/dist/lib/payments/taxes/taxes.js.map @@ -1 +1 @@ -{"version":3,"file":"taxes.js","sourceRoot":"","sources":["../../../../src/lib/payments/taxes/taxes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAA+B;AAC/B,MAAM,MAAM,GAAG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,CAAC,CAAA;IACpE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpB,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAA;IAEpD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAClC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAC3B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;QAC3B,OAAO,CAAC,QAAQ,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,OAAO,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA;AAjCY,QAAA,WAAW,eAiCvB"} \ No newline at end of file diff --git a/dist/public/app.46225248.js b/dist/public/app.46225248.js new file mode 100644 index 0000000..b27a6e0 --- /dev/null +++ b/dist/public/app.46225248.js @@ -0,0 +1,638 @@ +parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;cA.length&&A.push(e)}function q(e,t,o,u){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var f=!1;if(null===e)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f)return o(u,e,""===t?"."+F(e,0):t),1;if(f=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c=h},o=function(){},exports.unstable_forceFrameRate=function(e){0>e||125(d=t<_?_:t)&&(d=8.33)),_=t}y=e,h=e+d,F.postMessage(null)}};e=function(e){b=e,v||(v=!0,p(function(e){P(e)}))},n=function(e,n){m=c(function(){e(exports.unstable_now())},n)},t=function(){f(m),m=-1}}var M=null,C=null,A=null,L=3,R=!1,j=!1,q=!1;function D(e,n){var t=e.next;if(t===e)M=null;else{e===M&&(M=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null,t=e.callback,r=L;var o=A;L=e.priorityLevel,A=e;try{var i=e.expirationTime<=n;switch(L){case 1:var l=t(i);break;case 2:case 3:case 4:l=t(i);break;case 5:l=t(i)}}catch(u){throw u}finally{L=r,A=o}if("function"==typeof l)if(n=e.expirationTime,e.callback=l,null===M)M=e.next=e.previous=e;else{l=null,i=M;do{if(n<=i.expirationTime){l=i;break}i=i.next}while(i!==M);null===l?l=M:l===M&&(M=e),(n=l.previous).next=l.previous=e,e.next=l,e.previous=n}}function E(e){if(null!==C&&C.startTime<=e)do{var n=C,t=n.next;if(n===t)C=null;else{C=t;var r=n.previous;r.next=t,t.previous=r}n.next=n.previous=null,O(n,n.expirationTime)}while(null!==C&&C.startTime<=e)}function I(t){q=!1,E(t),j||(null!==M?(j=!0,e(N)):null!==C&&n(I,C.startTime-t))}function N(e,o){j=!1,q&&(q=!1,t()),E(o),R=!0;try{if(e){if(null!==M)do{D(M,o),E(o=exports.unstable_now())}while(null!==M&&!r())}else for(;null!==M&&M.expirationTime<=o;)D(M,o),E(o=exports.unstable_now());return null!==M||(null!==C&&n(I,C.startTime-o),!1)}finally{R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function O(e,n){if(null===M)M=e.next=e.previous=e;else{var t=null,r=M;do{if(nl){if(i=u,null===C)C=r.next=r.previous=r;else{o=null;var a=C;do{if(ithis.eventPool.length&&this.eventPool.push(e)}function se(e){e.eventPool=[],e.getPooled=ue,e.release=ce}t(oe.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ie)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ie)},persist:function(){this.isPersistent=ie},isPersistent:ae,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ae,this._dispatchInstances=this._dispatchListeners=null}}),oe.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},oe.extend=function(e){function n(){}function r(){return l.apply(this,arguments)}var l=this;n.prototype=l.prototype;var i=new n;return t(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=t({},l.Interface,e),r.extend=l.extend,se(r),r},se(oe);var fe=oe.extend({data:null}),de=oe.extend({data:null}),pe=[9,13,27,32],he=H&&"CompositionEvent"in window,me=null;H&&"documentMode"in document&&(me=document.documentMode);var ge=H&&"TextEvent"in window&&!me,ve=H&&(!he||me&&8=me),ye=String.fromCharCode(32),be={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function ke(e,t){switch(e){case"keyup":return-1!==pe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var xe=!1;function Te(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(we=!0,ye);case"textInput":return(e=t.data)===ye&&we?null:e;default:return null}}function Ce(e,t){if(xe)return"compositionend"===e||!he&&ke(e,t)?(e=le(),re=ne=te=null,xe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function wt(e,t,n,r,l,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kt[e]=new wt(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kt[t]=new wt(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){kt[e]=new wt(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kt[e]=new wt(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kt[e]=new wt(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){kt[e]=new wt(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){kt[e]=new wt(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){kt[e]=new wt(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){kt[e]=new wt(e,5,!1,e.toLowerCase(),null,!1)});var Et=/[\-:]([a-z])/g;function xt(e){return e[1].toUpperCase()}function Tt(e,t,n,r){var l=kt.hasOwnProperty(t)?kt[t]:null;(null!==l?0===l.type:!r&&(2On.length&&On.push(e)}}}var Qn=new("function"==typeof WeakMap?WeakMap:Map);function Kn(e){var t=Qn.get(e);return void 0===t&&(t=new Set,Qn.set(e,t)),t}function $n(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yn(e,t){var n,r=qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qn(r)}}function Xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Gn(){for(var e=window,t=$n();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$n((e=t.contentWindow).document)}return t}function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Jn=H&&"documentMode"in document&&11>=document.documentMode,er={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tr=null,nr=null,rr=null,lr=!1;function ir(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return lr||null==tr||tr!==$n(n)?null:("selectionStart"in(n=tr)&&Zn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rr&&un(rr,n)?null:(rr=n,(e=oe.getPooled(er.select,nr,e,t)).type="select",e.target=tr,j(e),e))}var ar={eventTypes:er,extractEvents:function(e,t,n,r){var l,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(l=!i)){e:{i=Kn(i),l=f.onSelect;for(var a=0;a=t.length))throw r(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:Ct(n)}}function dr(e,t){var n=Ct(t.value),r=Ct(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function pr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}N.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=O,k=I,E=D,N.injectEventPluginsByName({SimpleEventPlugin:In,EnterLeaveEventPlugin:ln,ChangeEventPlugin:Kt,SelectEventPlugin:ar,BeforeInputEventPlugin:Se});var hr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function mr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?mr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var vr=void 0,yr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==hr.svg||"innerHTML"in e)e.innerHTML=t;else{for((vr=vr||document.createElement("div")).innerHTML=""+t+"",t=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var wr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kr=["Webkit","ms","Moz","O"];function Er(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function xr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=Er(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(wr).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});var Tr=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Cr(e,t){if(t){if(Tr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw r(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw r(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw r(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw r(Error(62),"")}}function Sr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _r(e,t){var n=Kn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=f[t];for(var r=0;rOr||(e.current=Dr[Or],Dr[Or]=null,Or--)}function Ar(e,t){Dr[++Or]=e.current,e.current=t}var Wr={},Vr={current:Wr},Br={current:!1},jr=Wr;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,i={};for(l in n)i[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qr(e){return null!=(e=e.childContextTypes)}function Kr(e){Lr(Br,e),Lr(Vr,e)}function $r(e){Lr(Br,e),Lr(Vr,e)}function qr(e,t,n){if(Vr.current!==Wr)throw r(Error(168));Ar(Vr,t,e),Ar(Br,n,e)}function Yr(e,n,l){var i=e.stateNode;if(e=n.childContextTypes,"function"!=typeof i.getChildContext)return l;for(var a in i=i.getChildContext())if(!(a in e))throw r(Error(108),ft(n)||"Unknown",a);return t({},l,i)}function Xr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Wr,jr=Vr.current,Ar(Vr,t,e),Ar(Br,Br.current,e),!0}function Gr(e,t,n){var l=e.stateNode;if(!l)throw r(Error(169));n?(t=Yr(e,t,jr),l.__reactInternalMemoizedMergedChildContext=t,Lr(Br,e),Lr(Vr,e),Ar(Vr,t,e)):Lr(Br,e),Ar(Br,n,e)}var Zr=n.unstable_runWithPriority,Jr=n.unstable_scheduleCallback,el=n.unstable_cancelCallback,tl=n.unstable_shouldYield,nl=n.unstable_requestPaint,rl=n.unstable_now,ll=n.unstable_getCurrentPriorityLevel,il=n.unstable_ImmediatePriority,al=n.unstable_UserBlockingPriority,ol=n.unstable_NormalPriority,ul=n.unstable_LowPriority,cl=n.unstable_IdlePriority,sl={},fl=void 0!==nl?nl:function(){},dl=null,pl=null,hl=!1,ml=rl(),gl=1e4>ml?rl:function(){return rl()-ml};function vl(){switch(ll()){case il:return 99;case al:return 98;case ol:return 97;case ul:return 96;case cl:return 95;default:throw r(Error(332))}}function yl(e){switch(e){case 99:return il;case 98:return al;case 97:return ol;case 96:return ul;case 95:return cl;default:throw r(Error(332))}}function bl(e,t){return e=yl(e),Zr(e,t)}function wl(e,t,n){return e=yl(e),Jr(e,t,n)}function kl(e){return null===dl?(dl=[e],pl=Jr(il,xl)):dl.push(e),sl}function El(){null!==pl&&el(pl),xl()}function xl(){if(!hl&&null!==dl){hl=!0;var e=0;try{var t=dl;bl(99,function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function Cl(e,n){if(e&&e.defaultProps)for(var r in n=t({},n),e=e.defaultProps)void 0===n[r]&&(n[r]=e[r]);return n}function Sl(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}var _l={current:null},Pl=null,Nl=null,zl=null;function Ml(){zl=Nl=Pl=null}function Ul(e,t){var n=e.type._context;Ar(_l,n._currentValue,e),n._currentValue=t}function Rl(e){var t=_l.current;Lr(_l,e),e.type._context._currentValue=t}function Fl(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime=t&&(ya=!0),e.firstContext=null)}function Dl(e,t){if(zl!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(zl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Nl){if(null===Pl)throw r(Error(308));Nl=t,Pl.dependencies={expirationTime:0,firstContext:t,responders:null}}else Nl=Nl.next=t;return e._currentValue}var Ol=!1;function Ll(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Al(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Wl(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Vl(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Bl(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,l=null;null===r&&(r=e.updateQueue=Ll(e.memoizedState))}else r=e.updateQueue,l=n.updateQueue,null===r?null===l?(r=e.updateQueue=Ll(e.memoizedState),l=n.updateQueue=Ll(n.memoizedState)):r=e.updateQueue=Al(l):null===l&&(l=n.updateQueue=Al(r));null===l||r===l?Vl(r,t):null===r.lastUpdate||null===l.lastUpdate?(Vl(r,t),Vl(l,t)):(Vl(r,t),l.lastUpdate=t)}function jl(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Ll(e.memoizedState):Hl(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Hl(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Al(t)),t}function Ql(e,n,r,l,i,a){switch(r.tag){case 1:return"function"==typeof(e=r.payload)?e.call(a,l,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=r.payload)?e.call(a,l,i):e))break;return t({},l,i);case 2:Ol=!0}return l}function Kl(e,t,n,r,l){Ol=!1;for(var i=(t=Hl(e,t)).baseState,a=null,o=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;sm?(g=f,f=null):g=f.sibling;var v=p(r,f,o[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(r,f),i=a(v,i,m),null===s?c=v:s.sibling=v,s=v,f=g}if(m===o.length)return n(r,f),c;if(null===f){for(;mg?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,g),null===f?s=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),s;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(i,y.value,c))&&(o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return s}for(m=l(i,m);!y.done;g++,y=u.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),s}return function(e,l,a,u){var c="object"==typeof a&&null!==a&&a.type===Ze&&null===a.key;c&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Xe:e:{for(s=a.key,c=l;null!==c;){if(c.key===s){if(7===c.tag?a.type===Ze:c.elementType===a.type){n(e,c.sibling),(l=i(c,a.type===Ze?a.props.children:a.props,u)).ref=li(e,c,a),l.return=e,e=l;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===Ze?((l=wu(a.props.children,e.mode,u,a.key)).return=e,e=l):((u=bu(a.type,a.key,a.props,null,e.mode,u)).ref=li(e,l,a),u.return=e,e=u)}return o(e);case Ge:e:{for(c=a.key;null!==l;){if(l.key===c){if(4===l.tag&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){n(e,l.sibling),(l=i(l,a.children||[],u)).return=e,e=l;break e}n(e,l);break}t(e,l),l=l.sibling}(l=Eu(a,e.mode,u)).return=e,e=l}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==l&&6===l.tag?(n(e,l.sibling),(l=i(l,a,u)).return=e,e=l):(n(e,l),(l=ku(a,e.mode,u)).return=e,e=l),o(e);if(ri(a))return m(e,l,a,u);if(st(a))return g(e,l,a,u);if(s&&ii(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,r(Error(152),e.displayName||e.name||"Component")}return n(e,l)}}var oi=ai(!0),ui=ai(!1),ci={},si={current:ci},fi={current:ci},di={current:ci};function pi(e){if(e===ci)throw r(Error(174));return e}function hi(e,t){Ar(di,t,e),Ar(fi,e,e),Ar(si,ci,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gr(null,"");break;default:t=gr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Lr(si,e),Ar(si,t,e)}function mi(e){Lr(si,e),Lr(fi,e),Lr(di,e)}function gi(e){pi(di.current);var t=pi(si.current),n=gr(t,e.type);t!==n&&(Ar(fi,e,e),Ar(si,n,e))}function vi(e){fi.current===e&&(Lr(si,e),Lr(fi,e))}var yi=1,bi=1,wi=2,ki={current:0};function Ei(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xi=0,Ti=2,Ci=4,Si=8,_i=16,Pi=32,Ni=64,zi=128,Mi=$e.ReactCurrentDispatcher,Ui=0,Ri=null,Fi=null,Ii=null,Di=null,Oi=null,Li=null,Ai=0,Wi=null,Vi=0,Bi=!1,ji=null,Hi=0;function Qi(){throw r(Error(321))}function Ki(e,t){if(null===t)return!1;for(var n=0;nAi&&(Ai=f)):(Jo(f,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),o=c,c=c.next}while(null!==c&&c!==l);s||(u=o,i=a),an(a,t.memoizedState)||(ya=!0),t.memoizedState=a,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Wi?(Wi={lastEffect:null}).lastEffect=e.next=e:null===(t=Wi.lastEffect)?Wi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Wi.lastEffect=e),e}function ea(e,t,n,r){var l=Yi();Vi|=e,l.memoizedState=Ji(t,n,void 0,void 0===r?null:r)}function ta(e,t,n,r){var l=Xi();r=void 0===r?null:r;var i=void 0;if(null!==Fi){var a=Fi.memoizedState;if(i=a.destroy,null!==r&&Ki(r,a.deps))return void Ji(xi,n,i,r)}Vi|=e,l.memoizedState=Ji(t,n,i,r)}function na(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ra(){}function la(e,t,n){if(!(25>Hi))throw r(Error(301));var l=e.alternate;if(e===Ri||null!==l&&l===Ri)if(Bi=!0,e={expirationTime:Ui,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ji&&(ji=new Map),void 0===(n=ji.get(t)))ji.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=Lo(),a=Yl.suspense;a={expirationTime:i=Ao(i,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.last;if(null===o)a.next=a;else{var u=o.next;null!==u&&(a.next=u),o.next=a}if(t.last=a,0===e.expirationTime&&(null===l||0===l.expirationTime)&&null!==(l=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=l(c,n);if(a.eagerReducer=l,a.eagerState=s,an(s,c))return}catch(f){}Vo(e,i)}}var ia={readContext:Dl,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useResponder:Qi},aa={readContext:Dl,useCallback:function(e,t){return Yi().memoizedState=[e,void 0===t?null:t],e},useContext:Dl,useEffect:function(e,t){return ea(516,zi|Ni,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ea(4,Ci|Pi,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ea(4,Ci|Pi,e,t)},useMemo:function(e,t){var n=Yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=la.bind(null,Ri,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yi().memoizedState=e},useState:function(e){var t=Yi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=la.bind(null,Ri,e),[t.memoizedState,e]},useDebugValue:ra,useResponder:cn},oa={readContext:Dl,useCallback:function(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Dl,useEffect:function(e,t){return ta(516,zi|Ni,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ta(4,Ci|Pi,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ta(4,Ci|Pi,e,t)},useMemo:function(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Zi,useRef:function(){return Xi().memoizedState},useState:function(e){return Zi(Gi,e)},useDebugValue:ra,useResponder:cn},ua=null,ca=null,sa=!1;function fa(e,t){var n=mu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function pa(e){if(sa){var t=ca;if(t){var n=t;if(!da(e,t)){if(!(t=Ir(n.nextSibling))||!da(e,t))return e.effectTag|=2,sa=!1,void(ua=e);fa(ua,n)}ua=e,ca=Ir(t.firstChild)}else e.effectTag|=2,sa=!1,ua=e}}function ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ua=e}function ma(e){if(e!==ua)return!1;if(!sa)return ha(e),sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=ca;t;)fa(e,t),t=Ir(t.nextSibling);return ha(e),ca=ua?Ir(e.stateNode.nextSibling):null,!0}function ga(){ca=ua=null,sa=!1}var va=$e.ReactCurrentOwner,ya=!1;function ba(e,t,n,r){t.child=null===e?ui(t,null,n,r):oi(t,e.child,n,r)}function wa(e,t,n,r,l){n=n.render;var i=t.ref;return Il(t,l),r=$i(e,t,n,r,i,l),null===e||ya?(t.effectTag|=1,ba(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=l&&(e.expirationTime=0),Ua(e,t,l))}function ka(e,t,n,r,l,i){if(null===e){var a=n.type;return"function"!=typeof a||gu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ea(e,t,a,r,l,i))}return a=e.child,lt)&&Fo.set(e,t))}}function Bo(e,t){e.expirationTimel.firstPendingTime&&(l.firstPendingTime=t),0===(e=l.lastPendingTime)||t=t)&&(wl(97,function(){return n._onComplete(),null}),!0)}function $o(){if(null!==Fo){var e=Fo;Fo=null,e.forEach(function(e,t){kl(Zo.bind(null,t,e))}),El()}}function qo(e,t){var n=mo;mo|=1;try{return e(t)}finally{(mo=n)===io&&El()}}function Yo(e,t,n,r){var l=mo;mo|=4;try{return bl(98,e.bind(null,t,n,r))}finally{(mo=l)===io&&El()}}function Xo(e,t){var n=mo;mo&=-2,mo|=ao;try{return e(t)}finally{(mo=n)===io&&El()}}function Go(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Fr(n)),null!==vo)for(n=vo.return;null!==n;){var r=n;switch(r.tag){case 1:var l=r.type.childContextTypes;null!=l&&Kr(r);break;case 3:mi(r),$r(r);break;case 5:vi(r);break;case 4:mi(r);break;case 13:case 19:Lr(ki,r);break;case 10:Rl(r)}n=n.return}go=e,vo=yu(e.current,null,t),yo=t,bo=co,ko=wo=1073741823,Eo=null,xo=!1}function Zo(e,t,n){if((mo&(oo|uo))!==io)throw r(Error(327));if(e.firstPendingTime component higher in the tree to provide a loading indicator or placeholder to display."+dt(c))}bo!==ho&&(bo=so),s=Wa(s,c),c=u;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=f,jl(c,f=eo(c,s,f));break e;case 1:if(d=s,o=c.type,u=c.stateNode,0==(64&c.effectTag)&&("function"==typeof o.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===No||!No.has(u)))){c.effectTag|=2048,c.expirationTime=f,jl(c,f=to(c,d,f));break e}}c=c.return}while(null!==c)}vo=tu(a)}if(mo=l,Ml(),ro.current=i,null!==vo)return Zo.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ko(e,t))return null;switch(go=null,bo){case co:throw r(Error(328));case so:return(l=e.lastPendingTime)(n=(l=gl())-n)&&(n=0),(t=10*(1073741821-t)-l)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*no(n/1960))-n)&&(n=t)),10=(t=0|(i=Eo).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(l=gl()-(10*(1073741821-l)-(0|i.timeoutMs||5e3)))<=n?0:n+t-l),10<\/script>",d=f.removeChild(f.firstChild)):"string"==typeof l.is?d=d.createElement(f,{is:l.is}):(d=d.createElement(f),"select"===f&&(f=d,l.multiple?f.multiple=!0:l.size&&(f.size=l.size))):d=d.createElementNS(u,f),(f=d)[U]=c,f[R]=l,Fa(l=f,n,!1,!1),c=l;var p=i,h=Sr(o,a);switch(o){case"iframe":case"object":case"embed":Wn("load",c),i=a;break;case"video":case"audio":for(i=0;ia.tailExpiration&&1l&&(l=o),(c=a.childExpirationTime)>l&&(l=c),a=a.sibling;i.childExpirationTime=l}if(null!==n)return n;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=vo.firstEffect),null!==vo.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=vo.firstEffect),e.lastEffect=vo.lastEffect),1i?a:i,e.firstPendingTime=i,iw&&(k=w,w=P,P=k),k=Yn(C,P),E=Yn(C,w),k&&E&&(1!==_.rangeCount||_.anchorNode!==k.node||_.anchorOffset!==k.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)&&((S=S.createRange()).setStart(k.node,k.offset),_.removeAllRanges(),P>w?(_.addRange(S),_.extend(E.node,E.offset)):(S.setEnd(E.node,E.offset),_.addRange(S))))),S=[];for(_=C;_=_.parentNode;)1===_.nodeType&&S.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C=n?Na(e,t,n):(Ar(ki,ki.current&yi,t),null!==(t=Ua(e,t,n))?t.sibling:null);Ar(ki,ki.current&yi,t);break;case 19:if(l=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(l)return Ma(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Ar(ki,ki.current,t),!l)return null}return Ua(e,t,n)}}else ya=!1;switch(t.expirationTime=0,t.tag){case 2:if(l=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Hr(t,Vr.current),Il(t,n),i=$i(null,t,l,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,qi(),Qr(l)){var a=!0;Xr(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var o=l.getDerivedStateFromProps;"function"==typeof o&&Gl(t,l,o,e),i.updater=Zl,t.stateNode=i,i._reactInternalFiber=t,ni(t,l,e,n),t=Sa(null,t,l,!0,a,n)}else t.tag=0,ba(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Sl(i),t.type=i,a=t.tag=vu(i),e=Cl(i,e),a){case 0:t=Ta(null,t,i,e,n);break;case 1:t=Ca(null,t,i,e,n);break;case 11:t=wa(null,t,i,e,n);break;case 14:t=ka(null,t,i,Cl(i.type,e),l,n);break;default:throw r(Error(306),i,"")}return t;case 0:return l=t.type,i=t.pendingProps,Ta(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 1:return l=t.type,i=t.pendingProps,Ca(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 3:if(_a(t),null===(l=t.updateQueue))throw r(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Kl(t,l,t.pendingProps,null,n),(l=t.memoizedState.element)===i?(ga(),t=Ua(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(ca=Ir(t.stateNode.containerInfo.firstChild),ua=t,i=sa=!0),i?(t.effectTag|=2,t.child=ui(t,null,l,n)):(ba(e,t,l,n),ga()),t=t.child),t;case 5:return gi(t),null===e&&pa(t),l=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Ur(l,i)?o=null:null!==a&&Ur(l,a)&&(t.effectTag|=16),xa(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ba(e,t,o,n),t=t.child),t;case 6:return null===e&&pa(t),null;case 13:return Na(e,t,n);case 4:return hi(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=oi(t,null,l,n):ba(e,t,l,n),t.child;case 11:return l=t.type,i=t.pendingProps,wa(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 7:return ba(e,t,t.pendingProps,n),t.child;case 8:case 12:return ba(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,i=t.pendingProps,o=t.memoizedProps,Ul(t,a=i.value),null!==o){var u=o.value;if(0===(a=an(u,a)?0:0|("function"==typeof l._calculateChangedBits?l._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!Br.current){t=Ua(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){o=u.child;for(var s=c.firstContext;null!==s;){if(s.context===l&&0!=(s.observedBits&a)){1===u.tag&&((s=Wl(n,null)).tag=2,Bl(u,s)),u.expirationTime=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Re=qo,Fe=Yo,Ie=Qo,De=function(e,t){var n=mo;mo|=2;try{return e(t)}finally{(mo=n)===io&&El()}};var Ou={createPortal:Du,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw r(Error(188));throw r(Error(268),Object.keys(e))}e=null===(e=pn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!Ru(t))throw r(Error(200));return Iu(null,e,t,!0,n)},render:function(e,t,n){if(!Ru(t))throw r(Error(200));return Iu(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,l){if(!Ru(n))throw r(Error(200));if(null==e||void 0===e._reactInternalFiber)throw r(Error(38));return Iu(e,t,n,!1,l)},unmountComponentAtNode:function(e){if(!Ru(e))throw r(Error(40));return!!e._reactRootContainer&&(Xo(function(){Iu(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Du.apply(void 0,arguments)},unstable_batchedUpdates:qo,unstable_interactiveUpdates:function(e,t,n,r){return Qo(),Yo(e,t,n,r)},unstable_discreteUpdates:Yo,unstable_flushDiscreteUpdates:Qo,flushSync:function(e,t){if((mo&(oo|uo))!==io)throw r(Error(187));var n=mo;mo|=1;try{return bl(99,e.bind(null,t))}finally{mo=n,El()}},unstable_createRoot:Lu,unstable_createSyncRoot:Au,unstable_flushControlled:function(e){var t=mo;mo|=1;try{bl(99,e)}finally{(mo=t)===io&&El()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[I,D,O,N.injectEventPluginsByName,c,j,function(e){C(e,B)},Me,Ue,Hn,P,lu,{current:!1}]}};function Lu(e,t){if(!Ru(e))throw r(Error(299),"unstable_createRoot");return new Uu(e,null!=t&&!0===t.hydrate)}function Au(e,t){if(!Ru(e))throw r(Error(299),"unstable_createRoot");return new Mu(e,1,null!=t&&!0===t.hydrate)}!function(e){var n=e.findFiberByHostInstance;pu(t({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=pn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return n?n(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:F,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"});var Wu={default:Ou},Vu=Wu&&Ou||Wu;module.exports=Vu.default||Vu; +},{"react":"SAdv","object-assign":"0tLx","scheduler":"JlZK"}],"CSY6":[function(require,module,exports) { +"use strict";function _(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(O){console.error(O)}}}_(),module.exports=require("./cjs/react-dom.production.min.js"); +},{"./cjs/react-dom.production.min.js":"5i0G"}],"B7HP":[function(require,module,exports) { +"use strict";function t(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t; +},{}],"3pS0":[function(require,module,exports) { +function o(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,o.__proto__=t}module.exports=o; +},{}],"7PB2":[function(require,module,exports) { +"use strict";var _="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module.exports=_; +},{}],"632c":[function(require,module,exports) { +"use strict";var e=require("./lib/ReactPropTypesSecret");function r(){}function t(){}t.resetWarningCache=r,module.exports=function(){function n(r,t,n,o,a,p){if(p!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var a={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return a.PropTypes=a,a}; +},{"./lib/ReactPropTypesSecret":"7PB2"}],"yu5W":[function(require,module,exports) { +var r,e;module.exports=require("./factoryWithThrowingShims")(); +},{"./factoryWithThrowingShims":"632c"}],"29ln":[function(require,module,exports) { +var global = arguments[3]; +var u=arguments[3],_="__global_unique_id__";module.exports=function(){return u[_]=(u[_]||0)+1}; +},{}],"Gdxp":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=!0;function r(r,t){if(!e){if(r)return;var o="Warning: "+t;"undefined"!=typeof console&&console.warn(o);try{throw Error(o)}catch(n){}}}var t=r;exports.default=t; +},{}],"7nu8":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=u(require("react")),e=i(require("@babel/runtime/helpers/inheritsLoose")),r=i(require("prop-types")),n=i(require("gud")),o=i(require("tiny-warning"));function i(t){return t&&t.__esModule?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}var s=1073741823;function c(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function a(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter(function(e){return e!==t})},get:function(){return t},set:function(r,n){t=r,e.forEach(function(e){return e(t,n)})}}}function p(t){return Array.isArray(t)?t[0]:t}function f(o,i){var u,f,l="__create-react-context-"+(0,n.default)()+"__",v=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).emitter=a(e.props.value),e}(0,e.default)(r,t);var n=r.prototype;return n.getChildContext=function(){var t;return(t={})[l]=this.emitter,t},n.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,n=t.value;c(r,n)?e=0:(e="function"==typeof i?i(r,n):s,0!==(e|=0)&&this.emitter.set(t.value,e))}},n.render=function(){return this.props.children},r}(t.Component);v.childContextTypes=((u={})[l]=r.default.object.isRequired,u);var d=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!=((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}(0,e.default)(r,t);var n=r.prototype;return n.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?s:e},n.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?s:t},n.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},n.getValue=function(){return this.context[l]?this.context[l].get():o},n.render=function(){return p(this.props.children)(this.state.value)},r}(t.Component);return d.contextTypes=((f={})[l]=r.default.object,f),{Provider:v,Consumer:d}}var l=t.default.createContext||f,v=l;exports.default=v; +},{"react":"SAdv","@babel/runtime/helpers/inheritsLoose":"3pS0","prop-types":"yu5W","gud":"29ln","tiny-warning":"Gdxp"}],"eFhb":[function(require,module,exports) { +"use strict";function e(){return exports.default=e=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",o=r&&r.split("/")||[],i=n&&n.split("/")||[],f=r&&t(r),l=n&&t(n),u=f||l;if(r&&t(r)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var a=void 0;if(i.length){var s=i[i.length-1];a="."===s||".."===s||""===s}else a=!1;for(var v=0,h=i.length;h>=0;h--){var p=i[h];"."===p?e(i,h):".."===p?(e(i,h),v++):v&&(e(i,h),v--)}if(!u)for(;v--;v)i.unshift("..");!u||""===i[0]||i[0]&&t(i[0])||i.unshift("");var c=i.join("/");return a&&"/"!==c.substr(-1)&&(c+="/"),c}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=r;exports.default=n; +},{}],"bzK/":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(e,t){return r(e,n[t])});var o=void 0===t?"undefined":e(t);if(o!==(void 0===n?"undefined":e(n)))return!1;if("object"===o){var u=t.valueOf(),f=n.valueOf();if(u!==t||f!==n)return r(u,f);var i=Object.keys(t),y=Object.keys(n);return i.length===y.length&&i.every(function(e){return r(t[e],n[e])})}return!1}var t=r;exports.default=t; +},{}],"XpeU":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=!0,r="Invariant failed";function t(t,o){if(!t)throw e?new Error(r):new Error(r+": "+(o||""))}var o=t;exports.default=o; +},{}],"s9Ic":[function(require,module,exports) { +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createBrowserHistory=b,exports.createHashHistory=U,exports.createMemoryHistory=R,exports.createLocation=l,exports.locationsAreEqual=v,exports.parsePath=h,exports.createPath=d;var n=r(require("@babel/runtime/helpers/esm/extends")),t=r(require("resolve-pathname")),e=r(require("value-equal")),o=r(require("tiny-warning")),i=r(require("tiny-invariant"));function r(n){return n&&n.__esModule?n:{default:n}}function a(n){return"/"===n.charAt(0)?n:"/"+n}function c(n){return"/"===n.charAt(0)?n.substr(1):n}function u(n,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(n)}function s(n,t){return u(n,t)?n.substr(t.length):n}function f(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function h(n){var t=n||"/",e="",o="",i=t.indexOf("#");-1!==i&&(o=t.substr(i),t=t.substr(0,i));var r=t.indexOf("?");return-1!==r&&(e=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===e?"":e,hash:"#"===o?"":o}}function d(n){var t=n.pathname,e=n.search,o=n.hash,i=t||"/";return e&&"?"!==e&&(i+="?"===e.charAt(0)?e:"?"+e),o&&"#"!==o&&(i+="#"===o.charAt(0)?o:"#"+o),i}function l(e,o,i,r){var a;"string"==typeof e?(a=h(e)).state=o:(void 0===(a=(0,n.default)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==o&&void 0===a.state&&(a.state=o));try{a.pathname=decodeURI(a.pathname)}catch(c){throw c instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):c}return i&&(a.key=i),r?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,t.default)(a.pathname,r.pathname)):a.pathname=r.pathname:a.pathname||(a.pathname="/"),a}function v(n,t){return n.pathname===t.pathname&&n.search===t.search&&n.hash===t.hash&&n.key===t.key&&(0,e.default)(n.state,t.state)}function p(){var n=null;var t=[];return{setPrompt:function(t){return n=t,function(){n===t&&(n=null)}},confirmTransitionTo:function(t,e,o,i){if(null!=n){var r="function"==typeof n?n(t,e):n;"string"==typeof r?"function"==typeof o?o(r,i):i(!0):i(!1!==r)}else i(!0)},appendListener:function(n){var e=!0;function o(){e&&n.apply(void 0,arguments)}return t.push(o),function(){e=!1,t=t.filter(function(n){return n!==o})}},notifyListeners:function(){for(var n=arguments.length,e=new Array(n),o=0;o=0?t:0)+"#"+n)}function U(t){void 0===t&&(t={}),w||(0,i.default)(!1);var e=window.history,o=(P(),t),r=o.getUserConfirmation,c=void 0===r?m:r,u=o.hashType,h=void 0===u?"slash":u,g=t.basename?f(a(t.basename)):"",y=L[h],x=y.encodePath,O=y.decodePath;function k(){var n=O(T());return g&&(n=s(n,g)),l(n)}var E=p();function b(t){(0,n.default)(W,t),W.length=e.length,E.notifyListeners(W.location,W.action)}var U=!1,C=null;function R(){var n=T(),t=x(n);if(n!==t)S(t);else{var e=k(),o=W.location;if(!U&&v(o,e))return;if(C===d(e))return;C=null,function(n){if(U)U=!1,b();else{E.confirmTransitionTo(n,"POP",c,function(t){t?b({action:"POP",location:n}):function(n){var t=W.location,e=B.lastIndexOf(d(t));-1===e&&(e=0);var o=B.lastIndexOf(d(n));-1===o&&(o=0);var i=e-o;i&&(U=!0,F(i))}(n)})}}(e)}}var M=T(),q=x(M);M!==q&&S(q);var I=k(),B=[d(I)];function F(n){e.go(n)}var _=0;function j(n){1===(_+=n)&&1===n?window.addEventListener(A,R):0===_&&window.removeEventListener(A,R)}var G=!1;var W={length:e.length,action:"POP",location:I,createHref:function(n){return"#"+x(g+d(n))},push:function(n,t){var e=l(n,void 0,void 0,W.location);E.confirmTransitionTo(e,"PUSH",c,function(n){if(n){var t=d(e),o=x(g+t);if(T()!==o){C=t,H(o);var i=B.lastIndexOf(d(W.location)),r=B.slice(0,-1===i?0:i+1);r.push(t),B=r,b({action:"PUSH",location:e})}else b()}})},replace:function(n,t){var e=l(n,void 0,void 0,W.location);E.confirmTransitionTo(e,"REPLACE",c,function(n){if(n){var t=d(e),o=x(g+t);T()!==o&&(C=t,S(o));var i=B.indexOf(d(W.location));-1!==i&&(B[i]=t),b({action:"REPLACE",location:e})}})},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(n){void 0===n&&(n=!1);var t=E.setPrompt(n);return G||(j(1),G=!0),function(){return G&&(G=!1,j(-1)),t()}},listen:function(n){var t=E.appendListener(n);return j(1),function(){j(-1),t()}}};return W}function C(n,t,e){return Math.min(Math.max(n,t),e)}function R(t){void 0===t&&(t={});var e=t,o=e.getUserConfirmation,i=e.initialEntries,r=void 0===i?["/"]:i,a=e.initialIndex,c=void 0===a?0:a,u=e.keyLength,s=void 0===u?6:u,f=p();function h(t){(0,n.default)(P,t),P.length=P.entries.length,f.notifyListeners(P.location,P.action)}function v(){return Math.random().toString(36).substr(2,s)}var w=C(c,0,r.length-1),m=r.map(function(n){return l(n,void 0,"string"==typeof n?v():n.key||v())}),g=d;function y(n){var t=C(P.index+n,0,P.entries.length-1),e=P.entries[t];f.confirmTransitionTo(e,"POP",o,function(n){n?h({action:"POP",location:e,index:t}):h()})}var P={length:m.length,action:"POP",location:m[w],index:w,entries:m,createHref:g,push:function(n,t){var e=l(n,t,v(),P.location);f.confirmTransitionTo(e,"PUSH",o,function(n){if(n){var t=P.index+1,o=P.entries.slice(0);o.length>t?o.splice(t,o.length-t,e):o.push(e),h({action:"PUSH",location:e,index:t,entries:o})}})},replace:function(n,t){var e=l(n,t,v(),P.location);f.confirmTransitionTo(e,"REPLACE",o,function(n){n&&(P.entries[P.index]=e,h({action:"REPLACE",location:e}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(n){var t=P.index+n;return t>=0&&t=0||(u[r]=e[r]);return u}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e; +},{}],"Ingc":[function(require,module,exports) { +"use strict";var e=require("react-is"),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function y(r){return e.isMemo(r)?p:a[r.$$typeof]||t}a[e.ForwardRef]=o;var s=Object.defineProperty,n=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,l=Object.prototype;function d(e,t,o){if("string"!=typeof t){if(l){var p=f(t);p&&p!==l&&d(e,p,o)}var a=n(t);c&&(a=a.concat(c(t)));for(var m=y(e),u=y(t),g=0;g0?r:o)(t)}; +},{}],"mVdD":[function(require,module,exports) { +var e=require("./_to-integer"),r=Math.max,t=Math.min;module.exports=function(n,a){return(n=e(n))<0?r(n+a,0):t(n,a)}; +},{"./_to-integer":"rqGZ"}],"rKjT":[function(require,module,exports) { +var e=require("./_to-integer"),r=Math.min;module.exports=function(t){return t>0?r(e(t),9007199254740991):0}; +},{"./_to-integer":"rqGZ"}],"dUOO":[function(require,module,exports) { +"use strict";var e=require("./_to-object"),t=require("./_to-absolute-index"),i=require("./_to-length");module.exports=[].copyWithin||function(r,o){var n=e(this),u=i(n.length),h=t(r,u),l=t(o,u),d=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===d?u:t(d,u))-l,u-h),a=1;for(l0;)l in n?n[h]=n[l]:delete n[h],h+=a,l+=a;return n}; +},{"./_to-object":"loGD","./_to-absolute-index":"mVdD","./_to-length":"rKjT"}],"hdTv":[function(require,module,exports) { +var e=require("./_shared")("wks"),r=require("./_uid"),o=require("./_global").Symbol,u="function"==typeof o,i=module.exports=function(i){return e[i]||(e[i]=u&&o[i]||(u?o:r)("Symbol."+i))};i.store=e; +},{"./_shared":"dbww","./_uid":"yoHo","./_global":"h3Gt"}],"OFDF":[function(require,module,exports) { +var e=require("./_wks")("unscopables"),r=Array.prototype;null==r[e]&&require("./_hide")(r,e,{}),module.exports=function(o){r[e][o]=!0}; +},{"./_wks":"hdTv","./_hide":"rIu9"}],"s95x":[function(require,module,exports) { +var r=require("./_export");r(r.P,"Array",{copyWithin:require("./_array-copy-within")}),require("./_add-to-unscopables")("copyWithin"); +},{"./_export":"L1Pz","./_array-copy-within":"dUOO","./_add-to-unscopables":"OFDF"}],"avvw":[function(require,module,exports) { +"use strict";var e=require("./_to-object"),t=require("./_to-absolute-index"),r=require("./_to-length");module.exports=function(o){for(var i=e(this),u=r(i.length),n=arguments.length,d=t(n>1?arguments[1]:void 0,u),l=n>2?arguments[2]:void 0,s=void 0===l?u:t(l,u);s>d;)i[d++]=o;return i}; +},{"./_to-object":"loGD","./_to-absolute-index":"mVdD","./_to-length":"rKjT"}],"JMur":[function(require,module,exports) { +var r=require("./_export");r(r.P,"Array",{fill:require("./_array-fill")}),require("./_add-to-unscopables")("fill"); +},{"./_export":"L1Pz","./_array-fill":"avvw","./_add-to-unscopables":"OFDF"}],"6fDU":[function(require,module,exports) { +var r={}.toString;module.exports=function(t){return r.call(t).slice(8,-1)}; +},{}],"SGIP":[function(require,module,exports) { +var e=require("./_cof");module.exports=Object("z").propertyIsEnumerable(0)?Object:function(r){return"String"==e(r)?r.split(""):Object(r)}; +},{"./_cof":"6fDU"}],"2HaH":[function(require,module,exports) { +var r=require("./_cof");module.exports=Array.isArray||function(e){return"Array"==r(e)}; +},{"./_cof":"6fDU"}],"FPEW":[function(require,module,exports) { +var r=require("./_is-object"),e=require("./_is-array"),o=require("./_wks")("species");module.exports=function(i){var t;return e(i)&&("function"!=typeof(t=i.constructor)||t!==Array&&!e(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}; +},{"./_is-object":"Hb36","./_is-array":"2HaH","./_wks":"hdTv"}],"zgnn":[function(require,module,exports) { +var r=require("./_array-species-constructor");module.exports=function(e,n){return new(r(e))(n)}; +},{"./_array-species-constructor":"FPEW"}],"R7oH":[function(require,module,exports) { +var e=require("./_ctx"),r=require("./_iobject"),t=require("./_to-object"),i=require("./_to-length"),u=require("./_array-species-create");module.exports=function(n,c){var s=1==n,a=2==n,o=3==n,f=4==n,l=6==n,q=5==n||l,_=c||u;return function(u,c,h){for(var v,p,b=t(u),d=r(b),g=e(c,h,3),j=i(d.length),x=0,m=s?_(u,j):a?_(u,0):void 0;j>x;x++)if((q||x in d)&&(p=g(v=d[x],x,b),n))if(s)m[x]=p;else if(p)switch(n){case 3:return!0;case 5:return v;case 6:return x;case 2:m.push(v)}else if(f)return!1;return l?-1:o||f?f:m}}; +},{"./_ctx":"x6Uu","./_iobject":"SGIP","./_to-object":"loGD","./_to-length":"rKjT","./_array-species-create":"zgnn"}],"DVgS":[function(require,module,exports) { +"use strict";var r=require("./_export"),e=require("./_array-methods")(5),i="find",n=!0;i in[]&&Array(1)[i](function(){n=!1}),r(r.P+r.F*n,"Array",{find:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}}),require("./_add-to-unscopables")(i); +},{"./_export":"L1Pz","./_array-methods":"R7oH","./_add-to-unscopables":"OFDF"}],"sQB3":[function(require,module,exports) { +"use strict";var r=require("./_export"),e=require("./_array-methods")(6),n="findIndex",i=!0;n in[]&&Array(1)[n](function(){i=!1}),r(r.P+r.F*i,"Array",{findIndex:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}}),require("./_add-to-unscopables")(n); +},{"./_export":"L1Pz","./_array-methods":"R7oH","./_add-to-unscopables":"OFDF"}],"ZUj+":[function(require,module,exports) { +var r=require("./_an-object");module.exports=function(t,e,o,a){try{return a?e(r(o)[0],o[1]):e(o)}catch(n){var c=t.return;throw void 0!==c&&r(c.call(t)),n}}; +},{"./_an-object":"gBlm"}],"M4Qf":[function(require,module,exports) { +module.exports={}; +},{}],"P7X6":[function(require,module,exports) { +var r=require("./_iterators"),e=require("./_wks")("iterator"),t=Array.prototype;module.exports=function(o){return void 0!==o&&(r.Array===o||t[e]===o)}; +},{"./_iterators":"M4Qf","./_wks":"hdTv"}],"SlOi":[function(require,module,exports) { +"use strict";var e=require("./_object-dp"),r=require("./_property-desc");module.exports=function(t,i,o){i in t?e.f(t,i,r(0,o)):t[i]=o}; +},{"./_object-dp":"hYd+","./_property-desc":"BqL0"}],"dcYf":[function(require,module,exports) { +var e=require("./_cof"),t=require("./_wks")("toStringTag"),n="Arguments"==e(function(){return arguments}()),r=function(e,t){try{return e[t]}catch(n){}};module.exports=function(u){var o,c,i;return void 0===u?"Undefined":null===u?"Null":"string"==typeof(c=r(o=Object(u),t))?c:n?e(o):"Object"==(i=e(o))&&"function"==typeof o.callee?"Arguments":i}; +},{"./_cof":"6fDU","./_wks":"hdTv"}],"28ek":[function(require,module,exports) { +var r=require("./_classof"),e=require("./_wks")("iterator"),t=require("./_iterators");module.exports=require("./_core").getIteratorMethod=function(o){if(null!=o)return o[e]||o["@@iterator"]||t[r(o)]}; +},{"./_classof":"dcYf","./_wks":"hdTv","./_iterators":"M4Qf","./_core":"HIea"}],"wLNg":[function(require,module,exports) { +var r=require("./_wks")("iterator"),t=!1;try{var n=[7][r]();n.return=function(){t=!0},Array.from(n,function(){throw 2})}catch(e){}module.exports=function(n,u){if(!u&&!t)return!1;var o=!1;try{var c=[7],a=c[r]();a.next=function(){return{done:o=!0}},c[r]=function(){return a},n(c)}catch(e){}return o}; +},{"./_wks":"hdTv"}],"uV/T":[function(require,module,exports) { +"use strict";var e=require("./_ctx"),r=require("./_export"),t=require("./_to-object"),i=require("./_iter-call"),o=require("./_is-array-iter"),u=require("./_to-length"),n=require("./_create-property"),a=require("./core.get-iterator-method");r(r.S+r.F*!require("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(r){var l,c,f,q,_=t(r),h="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,s=0,g=a(_);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),null==g||h==Array&&o(g))for(c=new h(l=u(_.length));l>s;s++)n(c,s,d?y(_[s],s):_[s]);else for(q=g.call(_),c=new h;!(f=q.next()).done;s++)n(c,s,d?i(q,y,[f.value,s],!0):f.value);return c.length=s,c}}); +},{"./_ctx":"x6Uu","./_export":"L1Pz","./_to-object":"loGD","./_iter-call":"ZUj+","./_is-array-iter":"P7X6","./_to-length":"rKjT","./_create-property":"SlOi","./core.get-iterator-method":"28ek","./_iter-detect":"wLNg"}],"h4Pq":[function(require,module,exports) { +var e=require("./_iobject"),r=require("./_defined");module.exports=function(i){return e(r(i))}; +},{"./_iobject":"SGIP","./_defined":"iw5+"}],"qnvW":[function(require,module,exports) { +var e=require("./_to-iobject"),r=require("./_to-length"),t=require("./_to-absolute-index");module.exports=function(n){return function(i,o,u){var f,l=e(i),a=r(l.length),c=t(u,a);if(n&&o!=o){for(;a>c;)if((f=l[c++])!=f)return!0}else for(;a>c;c++)if((n||c in l)&&l[c]===o)return n||c||0;return!n&&-1}}; +},{"./_to-iobject":"h4Pq","./_to-length":"rKjT","./_to-absolute-index":"mVdD"}],"XhQx":[function(require,module,exports) { +"use strict";var r=require("./_export"),e=require("./_array-includes")(!0);r(r.P,"Array",{includes:function(r){return e(this,r,arguments.length>1?arguments[1]:void 0)}}),require("./_add-to-unscopables")("includes"); +},{"./_export":"L1Pz","./_array-includes":"qnvW","./_add-to-unscopables":"OFDF"}],"yfm4":[function(require,module,exports) { +module.exports=function(e,n){return{value:n,done:!!e}}; +},{}],"HO+o":[function(require,module,exports) { +var e=require("./_shared")("keys"),r=require("./_uid");module.exports=function(u){return e[u]||(e[u]=r(u))}; +},{"./_shared":"dbww","./_uid":"yoHo"}],"/1XJ":[function(require,module,exports) { +var r=require("./_has"),e=require("./_to-iobject"),u=require("./_array-includes")(!1),i=require("./_shared-key")("IE_PROTO");module.exports=function(o,a){var n,s=e(o),t=0,h=[];for(n in s)n!=i&&r(s,n)&&h.push(n);for(;a.length>t;)r(s,n=a[t++])&&(~u(h,n)||h.push(n));return h}; +},{"./_has":"ROQC","./_to-iobject":"h4Pq","./_array-includes":"qnvW","./_shared-key":"HO+o"}],"/EVN":[function(require,module,exports) { +module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); +},{}],"nr8P":[function(require,module,exports) { +var e=require("./_object-keys-internal"),r=require("./_enum-bug-keys");module.exports=Object.keys||function(u){return e(u,r)}; +},{"./_object-keys-internal":"/1XJ","./_enum-bug-keys":"/EVN"}],"+17n":[function(require,module,exports) { +var e=require("./_object-dp"),r=require("./_an-object"),t=require("./_object-keys");module.exports=require("./_descriptors")?Object.defineProperties:function(o,i){r(o);for(var u,c=t(i),n=c.length,s=0;n>s;)e.f(o,u=c[s++],i[u]);return o}; +},{"./_object-dp":"hYd+","./_an-object":"gBlm","./_object-keys":"nr8P","./_descriptors":"+1KZ"}],"20Vv":[function(require,module,exports) { +var e=require("./_global").document;module.exports=e&&e.documentElement; +},{"./_global":"h3Gt"}],"z2NO":[function(require,module,exports) { +var e=require("./_an-object"),r=require("./_object-dps"),t=require("./_enum-bug-keys"),n=require("./_shared-key")("IE_PROTO"),o=function(){},i="prototype",u=function(){var e,r=require("./_dom-create")("iframe"),n=t.length;for(r.style.display="none",require("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("
\ No newline at end of file +
\ No newline at end of file diff --git a/dist/public/payments.a5da44aa.js b/dist/public/payments.a5da44aa.js index a164067..1cb63cf 100644 --- a/dist/public/payments.a5da44aa.js +++ b/dist/public/payments.a5da44aa.js @@ -217,7 +217,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "62362" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "61787" + '/'); ws.onmessage = function (event) { checkedAssets = {}; diff --git a/dist/public/payments.a5da44aa.js.map b/dist/public/payments.a5da44aa.js.map index ee033a8..a44876d 100644 --- a/dist/public/payments.a5da44aa.js.map +++ b/dist/public/payments.a5da44aa.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../node_modules/parcel-bundler/src/builtins/bundle-url.js","../../../node_modules/parcel-bundler/src/builtins/css-loader.js","../../../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["bundleURL","getBundleURLCached","getBundleURL","Error","err","matches","stack","match","getBaseURL","url","replace","exports","bundle","require","updateLink","link","newLink","cloneNode","onload","remove","href","split","Date","now","parentNode","insertBefore","nextSibling","cssTimeout","reloadCSS","setTimeout","links","document","querySelectorAll","i","length","module","OVERLAY_ID","OldModule","Module","moduleName","call","hot","data","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","forEach","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","window","reload","close","onclose","log","removeErrorOverlay","error","message","overlay","createErrorOverlay","body","appendChild","getElementById","createElement","stackTrace","innerText","innerHTML","getParents","modules","parents","k","d","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,CAACrE,GAAP,CAAWC,IAAX,GAAkB9B,MAAM,CAAC+B,OAAzB;AACD;;AAED,MAAImE,MAAM,IAAIA,MAAM,CAACrE,GAAjB,IAAwBqE,MAAM,CAACrE,GAAP,CAAWI,iBAAX,CAA6BX,MAAzD,EAAiE;AAC/D4E,IAAAA,MAAM,CAACrE,GAAP,CAAWI,iBAAX,CAA6BqB,OAA7B,CAAqC,UAAU+C,EAAV,EAAc;AACjDA,MAAAA,EAAE,CAACrG,MAAM,CAAC+B,OAAR,CAAF;AACD,KAFD;AAGD;;AAED,SAAO/B,MAAM,CAACmG,KAAP,CAAatC,EAAb,CAAP;AACA7D,EAAAA,MAAM,CAAC6D,EAAD,CAAN;AAEAqC,EAAAA,MAAM,GAAGlG,MAAM,CAACmG,KAAP,CAAatC,EAAb,CAAT;;AACA,MAAIqC,MAAM,IAAIA,MAAM,CAACrE,GAAjB,IAAwBqE,MAAM,CAACrE,GAAP,CAAWG,gBAAX,CAA4BV,MAAxD,EAAgE;AAC9D4E,IAAAA,MAAM,CAACrE,GAAP,CAAWG,gBAAX,CAA4BsB,OAA5B,CAAoC,UAAU+C,EAAV,EAAc;AAChDA,MAAAA,EAAE;AACH,KAFD;;AAGA,WAAO,IAAP;AACD;AACF","file":"payments.a5da44aa.js","sourceRoot":"..\\..\\src\\public\\payments","sourcesContent":["var bundleURL = null;\nfunction getBundleURLCached() {\n if (!bundleURL) {\n bundleURL = getBundleURL();\n }\n\n return bundleURL;\n}\n\nfunction getBundleURL() {\n // Attempt to find the URL of the current script and use that as the base URL\n try {\n throw new Error;\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\\/\\/[^)\\n]+/g);\n if (matches) {\n return getBaseURL(matches[0]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\n","var bundle = require('./bundle-url');\n\nfunction updateLink(link) {\n var newLink = link.cloneNode();\n newLink.onload = function () {\n link.remove();\n };\n newLink.href = link.href.split('?')[0] + '?' + Date.now();\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\n\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {\n updateLink(links[i]);\n }\n }\n\n cssTimeout = null;\n }, 50);\n}\n\nmodule.exports = reloadCSS;\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else {\n window.location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../../node_modules/parcel-bundler/src/builtins/bundle-url.js","../../../node_modules/parcel-bundler/src/builtins/css-loader.js"],"names":["bundleURL","getBundleURLCached","getBundleURL","Error","err","matches","stack","match","getBaseURL","url","replace","exports","bundle","require","updateLink","link","newLink","cloneNode","onload","remove","href","split","Date","now","parentNode","insertBefore","nextSibling","cssTimeout","reloadCSS","setTimeout","links","document","querySelectorAll","i","length","module"],"mappings":"AAAA,ACAA,IDAIA,ACAAY,MAAM,GDAG,ACAAC,GDAG,IAAhB,ACAoB,CAAC,cAAD,CAApB;;ADCA,ACCA,SDDSZ,ACCAa,UAAT,CAAoBC,IAApB,EAA0B,CDD1B,GAA8B;AAC5B,ACCA,MDDI,ACCAC,CDDChB,MCCM,GDDX,ACCce,EDDE,ECCE,CAACE,SAAL,EAAd;ADAEjB,IAAAA,SAAS,GAAGE,YAAY,EAAxB;AACD,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V;ADGN,ACFK,SDEE,CAAC,KAAKxB,GAAN,EAAWC,OAAX,CAAmB,sEAAnB,EAA2F,IAA3F,IAAmG,GAA1G;AACD,ACFI;;ADILC,ACFIgB,IAAAA,GDEG,CAACzB,MCFM,GAAG,GDEjB,CCFI,EDEmBD,kBAAvB;AACAU,ACFG,GATsB,EASpB,EDEE,ACXkB,CDWjBH,ACXN,UDWF,GAAqBA,UAArB;ACDC;;AAED2B,MAAM,CAACxB,OAAP,GAAiBiB,SAAjB","file":"payments.a5da44aa.js","sourceRoot":"..\\..\\src\\public\\payments","sourcesContent":["var bundleURL = null;\nfunction getBundleURLCached() {\n if (!bundleURL) {\n bundleURL = getBundleURL();\n }\n\n return bundleURL;\n}\n\nfunction getBundleURL() {\n // Attempt to find the URL of the current script and use that as the base URL\n try {\n throw new Error;\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\\/\\/[^)\\n]+/g);\n if (matches) {\n return getBaseURL(matches[0]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\n","var bundle = require('./bundle-url');\n\nfunction updateLink(link) {\n var newLink = link.cloneNode();\n newLink.onload = function () {\n link.remove();\n };\n newLink.href = link.href.split('?')[0] + '?' + Date.now();\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\n\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {\n updateLink(links[i]);\n }\n }\n\n cssTimeout = null;\n }, 50);\n}\n\nmodule.exports = reloadCSS;\n"]} \ No newline at end of file diff --git a/src/lib/app.ts b/src/lib/app.ts index 921c847..b5c3d2d 100644 --- a/src/lib/app.ts +++ b/src/lib/app.ts @@ -31,8 +31,11 @@ if (process.env.mongodb_username) { connectionString += process.env.mongodb_username + ':' + process.env.mongodb_password + '@' } connectionString += process.env.mongodb_address || 'localhost:27017' -connectionString += '/' + process.env.mongodb_authdb +if (process.env.mongodb_authdb) { + connectionString += '/' + process.env.mongodb_authdb +} +console.log('connect to', connectionString) const client = new MongoClient(connectionString, { useNewUrlParser: true, useUnifiedTopology: true, diff --git a/src/lib/docs/pull.ts b/src/lib/docs/pull.ts index 056b21c..0f55137 100644 --- a/src/lib/docs/pull.ts +++ b/src/lib/docs/pull.ts @@ -11,7 +11,7 @@ import * as logger from '../utils/logger' const tmpRepoDir = path.join(os.tmpdir(), 'jsreport', 'temp', 'docsRepo') export default async function pull(docsPath = 'views/learn/docs') { - // return ['latest', '3.0.0'] + return ['latest', '2.11.0'] fs.rmdirSync(tmpRepoDir, { recursive: true }) fs.mkdirSync(tmpRepoDir, { recursive: true }) diff --git a/src/lib/payments/taxes/taxes.ts b/src/lib/payments/taxes/taxes.ts index 1bb0e45..8243e91 100644 --- a/src/lib/payments/taxes/taxes.ts +++ b/src/lib/payments/taxes/taxes.ts @@ -27,7 +27,7 @@ const tmpPath = path.join(os.tmpdir(), 'jsreport', 'taxes') async function renderSale(services: Services, sale: Sale, templatePath: string) { await services.renderInvoice(sale, templatePath) const invoiceBuffer = await services.readInvoice(sale.id + '.pdf') - fs.writeFileSync(path.join(tmpPath, 'data', sale.id + '.pdf'), invoiceBuffer) + fs.writeFileSync(path.join(tmpPath, 'data', sale.id + '.pdf'), invoiceBuffer) } async function calculateFees(stripeSales: Array, gumroadInvoices: Array) { @@ -39,18 +39,18 @@ async function calculateFees(stripeSales: Array, gumroadInvoices: Array) { - const id = new Date().getFullYear() + '-' + new Date().getMonth() + 'POHODA' +async function renderInvoicesXml(services: Services, sales: Array) { + const id = new Date().getFullYear() + '-' + new Date().getMonth() + 'POHODA' for (const s of sales) { const countryEnum = countries.find(c => c.name === s.accountingData.country) - s.accountingData.countryCode = countryEnum ? countryEnum.code : s.accountingData.country + s.accountingData.countryCode = countryEnum ? countryEnum.code : s.accountingData.country - if (s.accountingData.currency === 'usd') { - s.accountingData.currencyRate = await quotation(moment(s.purchaseDate).format('DD.MM.YYYY'), 'USD') - } + if (s.accountingData.currency === 'usd') { + s.accountingData.currencyRate = await quotation(moment(s.purchaseDate).format('DD.MM.YYYY'), 'USD') + } } - + await services.renderInvoice({ id, items: sales }, '/payments/pohoda', 'xml') - const invoicesXml = await services.readInvoice(`${id}.xml`) + const invoicesXml = await services.readInvoice(`${id}.xml`) fs.writeFileSync(path.join(tmpPath, 'data', `${id}.xml`), iconv.encode(invoicesXml.toString(), 'win1250')) } @@ -106,15 +106,15 @@ function convertGumroadInvoiceToSale(invoice: Invoice): Sale { vatRate: 0, currency: 'usd', price: invoice.amount, - amount: invoice.amount, + amount: invoice.amount, item: 'Fees for the sold jsreport licenses', vatAmount: 0, - vatNumber: null, + vatNumber: null, } } } -function convertPeruInvoiceToSale(invoice: Invoice): Sale { +function convertPeruInvoiceToSale(invoice: Invoice): Sale { return { purchaseDate: new Date(invoice.date), id: invoice.id, @@ -127,23 +127,23 @@ function convertPeruInvoiceToSale(invoice: Invoice): Sale { vatRate: 0, currency: 'usd', price: invoice.amount, - amount: invoice.amount, + amount: invoice.amount, item: 'jsreport implementation', vatAmount: 0, - vatNumber: null, - isExpense: true + vatNumber: null, + isExpense: true } - } + } } function createFeeSale(price): Sale { - const vatAmount = round(price * 0.21) - const id = new Date().getFullYear() + '-' + new Date().getMonth() + 'F' + const vatAmount = round(price * 0.21) + const id = new Date().getFullYear() + '-' + new Date().getMonth() + 'F' return { purchaseDate: new Date(), id: id, blobName: id + '.pdf', - accountingData: { + accountingData: { name: 'Jan Blaha', address: 'U Sluncové 603/9, 186 00 Praha', country: 'Czech Republic', @@ -151,16 +151,16 @@ function createFeeSale(price): Sale { vatRate: 21, currency: 'czk', price: price, - amount: price + vatAmount, - vatAmount, - item: 'Fees for the sold jsreport licenses', - vatNumber: 'CZ8501274529', + amount: round(price + vatAmount), + vatAmount, + item: 'Fees for the sold jsreport licenses', + vatNumber: 'CZ8501274529', isExpense: true } } } -export const createTaxes = (services: Services) => async (data: TaxesRequest) => { +export const createTaxes = (services: Services) => async (data: TaxesRequest) => { await rimraf(tmpPath) mkdirp.sync(path.join(tmpPath, 'data')) @@ -171,15 +171,15 @@ export const createTaxes = (services: Services) => async (data: TaxesRequest) => for (const gs of gumroadSales) { await renderSale(services, gs, '/payments/invoice gumroad') - } + } const stripeSales = await findStripeSales(services) const feesAmount = await calculateFees(stripeSales, data.gumroadInvoices) const feeSale = createFeeSale(feesAmount) - await renderSale(services, feeSale, '/payments/invoice fee') - - await downloadStripeInvoices(services, stripeSales) - await renderInvoicesXml(services, [peruSale, ...gumroadSales, ...stripeSales, feeSale]) + await renderSale(services, feeSale, '/payments/invoice fee') + + await downloadStripeInvoices(services, stripeSales) + await renderInvoicesXml(services, [peruSale, ...gumroadSales, ...stripeSales, feeSale]) const archive = archiver('zip') const output = fs.createWriteStream(path.join(tmpPath, 'taxes.zip')) diff --git a/src/public/payments/customerCheckout.jsx b/src/public/payments/customerCheckout.jsx index 5e96c5b..48557f6 100644 --- a/src/public/payments/customerCheckout.jsx +++ b/src/public/payments/customerCheckout.jsx @@ -5,12 +5,12 @@ import Vat from './vat' import StripeForm from './stripeForm' import { getUserCountry, calculatePrice, product, currency, currencyChar, price } from './customerCheckout.js' -function Country({ value, onChange }) { +function Country({ value, onChange, disabled }) { return (
- {countries.map((c) => (
- this.setState({ vatNumber: v.target.value })} onVATValidated={(r) => { @@ -152,7 +153,7 @@ class CustomerCheckout extends React.Component { }) }} /> - this.setState({ country: v.target.value })} /> + this.setState({ country: v.target.value })} />
this.setState({ name: v.target.value })} /> diff --git a/src/public/payments/vat.jsx b/src/public/payments/vat.jsx index 02d8494..e735a78 100644 --- a/src/public/payments/vat.jsx +++ b/src/public/payments/vat.jsx @@ -35,6 +35,7 @@ export default class Vat extends React.Component {