@flarehr/bank-details-app 2.24.1 → 2.25.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/bank-details-app.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(()=>{"use strict";function e(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function n(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}function t(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function r(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}class i{static id(e){return i.idMap.has(e)||i.idMap.set(e,++i.count),i.idMap.get(e)}}function o(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function u(e){return 2654435761*e|0}function s(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function l(n){if(null==n)return 0;switch(typeof n){case"boolean":return n?1:0;case"number":return u(n);case"string":return o(n);default:if(function(e){return"function"==typeof e.GetHashCode}(n))return n.GetHashCode();if(e(n))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=l(e[r]);return s(t)}(n);if(n instanceof Date)return function(e){return e.getTime()}(n);if(Object.getPrototypeOf(n).constructor===Object){const e=Object.values(n).map((e=>l(e)));return s(e)}return u(i.id(n))}}function c(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function a(e,n){return c(e,n,f)}function f(n,t){return n===t||(null==n?null==t:null!=t&&"object"==typeof n&&(function(e){return"function"==typeof e.Equals}(n)?n.Equals(t):e(n)?e(t)&&a(n,t):n instanceof Date?t instanceof Date&&0===_(n,t):Object.getPrototypeOf(n).constructor===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let i=0;i<t.length;i++)if(t[i]!==r[i]||!f(e[t[i]],n[r[i]]))return!1;return!0}(n,t)))}function _(e,n){let t,i;return"offset"in e&&"offset"in n?(t=e.getTime(),i=n.getTime()):(t=e.getTime()+r(e),i=n.getTime()+r(n)),t===i?0:t<i?-1:1}function h(e,n){return e===n?0:e<n?-1:1}function d(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=t(e[r],n[r]),0!==i)return i;return 0}(e,n,p)}function p(n,t){return n===t?0:null==n?null==t?0:-1:null==t?1:"object"!=typeof n?n<t?-1:1:function(e){return"function"==typeof e.CompareTo}(n)?n.CompareTo(t):e(n)?e(t)?d(n,t):-1:n instanceof Date?t instanceof Date?_(n,t):-1:Object.getPrototypeOf(n).constructor===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let i=0,o=0;i<t.length;i++){const u=t[i];if(u!==r[i])return u<r[i]?-1:1;if(o=p(e[u],n[u]),0!==o)return o}return 0}(n,t):-1}function g(e,n,t){return e(n,t)>0?n:t}i.idMap=new WeakMap,i.count=0;const v="__CURRIED__";function m(e,n){if(null==n||n.length>1)return n;let t;switch(e){case 2:t=(e,t)=>n(e)(t);break;case 3:t=(e,t,r)=>n(e)(t)(r);break;case 4:t=(e,t,r,i)=>n(e)(t)(r)(i);break;case 5:t=(e,t,r,i,o)=>n(e)(t)(r)(i)(o);break;case 6:t=(e,t,r,i,o,u)=>n(e)(t)(r)(i)(o)(u);break;case 7:t=(e,t,r,i,o,u,s)=>n(e)(t)(r)(i)(o)(u)(s);break;case 8:t=(e,t,r,i,o,u,s,l)=>n(e)(t)(r)(i)(o)(u)(s)(l);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return t.__CURRIED__=n,t}function w(e,n){if(null==n||1===n.length)return n;if(v in n)return n.__CURRIED__;switch(e){case 2:return e=>t=>n(e,t);case 3:return e=>t=>r=>n(e,t,r);case 4:return e=>t=>r=>i=>n(e,t,r,i);case 5:return e=>t=>r=>i=>o=>n(e,t,r,i,o);case 6:return e=>t=>r=>i=>o=>u=>n(e,t,r,i,o,u);case 7:return e=>t=>r=>i=>o=>u=>s=>n(e,t,r,i,o,u,s);case 8:return e=>t=>r=>i=>o=>u=>s=>l=>n(e,t,r,i,o,u,s,l);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function y(e,n){return n.length>e?(...e)=>(...t)=>n.apply(void 0,e.concat(t)):n}class b{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return l(this.value)}Equals(e){return null!=e&&f(this.value,e instanceof b?e.value:e)}CompareTo(e){return null==e?1:p(this.value,e instanceof b?e.value:e)}}function S(e){return null==e||e instanceof b?new b(e):e}function k(e){if(null==e)throw new Error("Option has no value");return e instanceof b?e.value:e}function C(e){return null==e?[]:[k(e)]}function E(e,n){return null!=e?k(e):n}function x(e,n){return null!=n?S(e(k(n))):void 0}const O=function(e){return null==e?void 0:e}(document.querySelector("#bank-details-app")),A=x((e=>e.getAttribute("data-identity-url")),O),T=x((e=>e.getAttribute("data-backend-url")),O);var P,M,D,N,R,U,I,H={},L=[],j=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function F(e,n){for(var t in n)e[t]=n[t];return e}function W(e){var n=e.parentNode;n&&n.removeChild(e)}function q(e,n,t){var r,i,o,u={};for(o in n)"key"==o?r=n[o]:"ref"==o?i=n[o]:u[o]=n[o];if(arguments.length>2&&(u.children=arguments.length>3?P.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===u[o]&&(u[o]=e.defaultProps[o]);return V(e,u,r,i,null)}function V(e,n,t,r,i){var o={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++D:i};return null==i&&null!=M.vnode&&M.vnode(o),o}function B(e){return e.children}function z(e,n){this.props=e,this.context=n}function G(e,n){if(null==n)return e.__?G(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?G(e):null}function $(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return $(e)}}function J(e){(!e.__d&&(e.__d=!0)&&N.push(e)&&!Y.__r++||U!==M.debounceRendering)&&((U=M.debounceRendering)||R)(Y)}function Y(){for(var e;Y.__r=N.length;)e=N.sort((function(e,n){return e.__v.__b-n.__v.__b})),N=[],e.some((function(e){var n,t,r,i,o,u;e.__d&&(o=(i=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=F({},i)).__v=i.__v+1,ie(u,i,r,n.__n,void 0!==u.ownerSVGElement,null!=i.__h?[o]:null,t,null==o?G(i):o,i.__h),oe(t,i),i.__e!=o&&$(i)))}))}function Z(e,n,t,r,i,o,u,s,l,c){var a,f,_,h,d,p,g,v=r&&r.__k||L,m=v.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(h=t.__k[a]=null==(h=n[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?V(null,h,null,null,h):Array.isArray(h)?V(B,{children:h},null,null,null):h.__b>0?V(h.type,h.props,h.key,null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(_=v[a])||_&&h.key==_.key&&h.type===_.type)v[a]=void 0;else for(f=0;f<m;f++){if((_=v[f])&&h.key==_.key&&h.type===_.type){v[f]=void 0;break}_=null}ie(e,h,_=_||H,i,o,u,s,l,c),d=h.__e,(f=h.ref)&&_.ref!=f&&(g||(g=[]),_.ref&&g.push(_.ref,null,h),g.push(f,h.__c||d,h)),null!=d?(null==p&&(p=d),"function"==typeof h.type&&h.__k===_.__k?h.__d=l=K(h,l,e):l=X(e,h,_,v,d,l),"function"==typeof t.type&&(t.__d=l)):l&&_.__e==l&&l.parentNode!=e&&(l=G(_))}for(t.__e=p,a=m;a--;)null!=v[a]&&("function"==typeof t.type&&null!=v[a].__e&&v[a].__e==t.__d&&(t.__d=G(r,a+1)),le(v[a],v[a]));if(g)for(a=0;a<g.length;a++)se(g[a],g[++a],g[++a])}function K(e,n,t){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,n="function"==typeof r.type?K(r,n,t):X(t,r,r,i,r.__e,n));return n}function Q(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Q(e,n)})):n.push(e)),n}function X(e,n,t,r,i,o){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),u=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==i)break e;e.insertBefore(i,o),u=o}return void 0!==u?u:i.nextSibling}function ee(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||j.test(n)?t:t+"px"}function ne(e,n,t,r,i){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||ee(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||ee(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?r||e.addEventListener(n,o?re:te,o):e.removeEventListener(n,o?re:te,o);else if("dangerouslySetInnerHTML"!==n){if(i)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function te(e){this.l[e.type+!1](M.event?M.event(e):e)}function re(e){this.l[e.type+!0](M.event?M.event(e):e)}function ie(e,n,t,r,i,o,u,s,l){var c,a,f,_,h,d,p,g,v,m,w,y=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(l=t.__h,s=n.__e=t.__e,n.__h=null,o=[s]),(c=M.__b)&&c(n);try{e:if("function"==typeof y){if(g=n.props,v=(c=y.contextType)&&r[c.__c],m=c?v?v.props.value:c.__:r,t.__c?p=(a=n.__c=t.__c).__=a.__E:("prototype"in y&&y.prototype.render?n.__c=a=new y(g,m):(n.__c=a=new z(g,m),a.constructor=y,a.render=ce),v&&v.sub(a),a.props=g,a.state||(a.state={}),a.context=m,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=y.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=F({},a.__s)),F(a.__s,y.getDerivedStateFromProps(g,a.__s))),_=a.props,h=a.state,f)null==y.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==y.getDerivedStateFromProps&&g!==_&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,m)||n.__v===t.__v){a.props=g,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(g,a.__s,m),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(_,h,d)}))}a.context=m,a.props=g,a.state=a.__s,(c=M.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=e,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=F(F({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(_,h)),w=null!=c&&c.type===B&&null==c.key?c.props.children:c,Z(e,Array.isArray(w)?w:[w],n,t,r,i,o,u,s,l),a.base=n.__e,n.__h=null,a.__h.length&&u.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==o&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=ue(t.__e,n,t,r,i,o,u,l);(c=M.diffed)&&c(n)}catch(e){n.__v=null,(l||null!=o)&&(n.__e=s,n.__h=!!l,o[o.indexOf(s)]=null),M.__e(e,n,t)}}function oe(e,n){M.__c&&M.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){M.__e(e,n.__v)}}))}function ue(e,n,t,r,i,o,u,s){var l,c,a,f=t.props,_=n.props,h=n.type,d=0;if("svg"===h&&(i=!0),null!=o)for(;d<o.length;d++)if((l=o[d])&&(l===e||(h?l.localName==h:3==l.nodeType))){e=l,o[d]=null;break}if(null==e){if(null===h)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,_.is&&_),o=null,s=!1}if(null===h)f===_||s&&e.data===_||(e.data=_);else{if(o=o&&P.call(e.childNodes),c=(f=t.props||H).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!s){if(null!=o)for(f={},d=0;d<e.attributes.length;d++)f[e.attributes[d].name]=e.attributes[d].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,r,i){var o;for(o in t)"children"===o||"key"===o||o in n||ne(e,o,null,t[o],r);for(o in n)i&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||ne(e,o,n[o],t[o],r)}(e,_,f,i,s),a)n.__k=[];else if(d=n.props.children,Z(e,Array.isArray(d)?d:[d],n,t,r,i&&"foreignObject"!==h,o,u,o?o[0]:t.__k&&G(t,0),s),null!=o)for(d=o.length;d--;)null!=o[d]&&W(o[d]);s||("value"in _&&void 0!==(d=_.value)&&(d!==e.value||"progress"===h&&!d)&&ne(e,"value",d,f.value,!1),"checked"in _&&void 0!==(d=_.checked)&&d!==e.checked&&ne(e,"checked",d,f.checked,!1))}return e}function se(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){M.__e(e,t)}}function le(e,n,t){var r,i;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||se(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){M.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&le(r[i],n,"function"!=typeof e.type);t||null==e.__e||W(e.__e),e.__e=e.__d=void 0}function ce(e,n,t){return this.constructor(e,t)}function ae(e,n,t){var r,i,o;M.__&&M.__(e,n),i=(r="function"==typeof t)?null:t&&t.__k||n.__k,o=[],ie(n,e=(!r&&t||n).__k=q(B,null,[e]),i||H,H,void 0!==n.ownerSVGElement,!r&&t?[t]:i?null:n.firstChild?P.call(n.childNodes):null,o,!r&&t?t:i?i.__e:n.firstChild,r),oe(o,e)}function fe(e,n){ae(e,n,fe)}function _e(e,n,t){var r,i,o,u=F({},e.props);for(o in n)"key"==o?r=n[o]:"ref"==o?i=n[o]:u[o]=n[o];return arguments.length>2&&(u.children=arguments.length>3?P.call(arguments,2):t),V(e.type,u,r||e.key,i||e.ref,null)}P=L.slice,M={__e:function(e,n){for(var t,r,i;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),i=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),i=t.__d),i)return t.__E=t}catch(n){e=n}throw e}},D=0,z.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=F({},this.state),"function"==typeof e&&(e=e(F({},t),this.props)),e&&F(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),J(this))},z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),J(this))},z.prototype.render=B,N=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Y.__r=0,I=0;var he,de,pe,ge=0,ve=[],me=M.__b,we=M.__r,ye=M.diffed,be=M.__c,Se=M.unmount;function ke(e,n){M.__h&&M.__h(de,e,ge||n),ge=0;var t=de.__H||(de.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Ce(e,n,t){var r=ke(he++,2);return r.t=e,r.__c||(r.__=[t?t(n):Ne(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=de),r.__}function Ee(e,n){var t=ke(he++,3);!M.__s&&De(t.__H,n)&&(t.__=e,t.__H=n,de.__H.__h.push(t))}function xe(e,n){var t=ke(he++,4);!M.__s&&De(t.__H,n)&&(t.__=e,t.__H=n,de.__h.push(t))}function Oe(e,n){var t=ke(he++,7);return De(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function Ae(){ve.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(Me),e.__H.__h=[]}catch(n){e.__H.__h=[],M.__e(n,e.__v)}})),ve=[]}M.__b=function(e){de=null,me&&me(e)},M.__r=function(e){we&&we(e),he=0;var n=(de=e.__c).__H;n&&(n.__h.forEach(Pe),n.__h.forEach(Me),n.__h=[])},M.diffed=function(e){ye&&ye(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==ve.push(n)&&pe===M.requestAnimationFrame||((pe=M.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),Te&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Te&&(n=requestAnimationFrame(t))})(Ae)),de=null},M.__c=function(e,n){n.some((function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter((function(e){return!e.__||Me(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],M.__e(t,e.__v)}})),be&&be(e,n)},M.unmount=function(e){Se&&Se(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(Pe)}catch(e){M.__e(e,n.__v)}};var Te="function"==typeof requestAnimationFrame;function Pe(e){var n=de;"function"==typeof e.__c&&e.__c(),de=n}function Me(e){var n=de;e.__c=e.__(),de=n}function De(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Ne(e,n){return"function"==typeof n?n(e):n}function Re(e,n){for(var t in n)e[t]=n[t];return e}function Ue(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function Ie(e){this.props=e}(Ie.prototype=new z).isPureReactComponent=!0,Ie.prototype.shouldComponentUpdate=function(e,n){return Ue(this.props,e)||Ue(this.state,n)};var He=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),He&&He(e)};var Le="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,je=function(e,n){return null==e?null:Q(Q(e).map(n))},Fe={map:je,forEach:je,count:function(e){return e?Q(e).length:0},only:function(e){var n=Q(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Q},We=M.__e;M.__e=function(e,n,t){if(e.then)for(var r,i=n;i=i.__;)if((r=i.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);We(e,n,t)};var qe=M.unmount;function Ve(){this.__u=0,this.t=null,this.__b=null}function Be(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function ze(){this.u=null,this.o=null}M.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),qe&&qe(e)},(Ve.prototype=new z).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var i=Be(r.__v),o=!1,u=function(){o||(o=!0,t.__R=null,i?i(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},Ve.prototype.componentWillUnmount=function(){this.t=[]},Ve.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=Re({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var i=n.__e&&q(B,null,e.fallback);return i&&(i.__h=null),[q(B,null,n.__e?null:e.children),i]};var Ge=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function $e(e){return this.getChildContext=function(){return e.context},e.children}function Je(e){var n=this,t=e.i;n.componentWillUnmount=function(){ae(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),ae(q($e,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(ze.prototype=new z).__e=function(e){var n=this,t=Be(n.__v),r=n.o.get(e);return r[0]++,function(i){var o=function(){n.props.revealOrder?(r.push(i),Ge(n,e,r)):i()};t?t(o):o()}},ze.prototype.render=function(e){this.u=null,this.o=new Map;var n=Q(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},ze.prototype.componentDidUpdate=ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ge(e,t,n)}))};var Ye="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ke="undefined"!=typeof document,Qe=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Xe(e,n,t){return null==n.__k&&(n.textContent=""),ae(e,n),"function"==typeof t&&t(),e?e.__c:null}z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(z.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var en=M.event;function nn(){}function tn(){return this.cancelBubble}function rn(){return this.defaultPrevented}M.event=function(e){return en&&(e=en(e)),e.persist=nn,e.isPropagationStopped=tn,e.isDefaultPrevented=rn,e.nativeEvent=e};var on,un={configurable:!0,get:function(){return this.class}},sn=M.vnode;M.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var i=-1===n.indexOf("-");for(var o in r={},t){var u=t[o];Ke&&"children"===o&&"noscript"===n||"value"===o&&"defaultValue"in t&&null==u||("defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===u?u="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!Qe(t.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():i&&Ze.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[o]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Q(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Q(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}n&&t.class!=t.className&&(un.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",un)),e.$$typeof=Ye,sn&&sn(e)};var ln=M.__r;M.__r=function(e){ln&&ln(e),on=e.__c};var cn={ReactCurrentDispatcher:{current:{readContext:function(e){return on.__n[e.__c].props.value}}}};function an(e){return!!e&&e.$$typeof===Ye}const fn={useState:function(e){return ge=1,Ce(Ne,e)},useReducer:Ce,useEffect:Ee,useLayoutEffect:xe,useRef:function(e){return ge=5,Oe((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){ge=6,xe((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Oe,useCallback:function(e,n){return ge=8,Oe((function(){return e}),n)},useContext:function(e){var n=de.context[e.__c],t=ke(he++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(de)),n.props.value):e.__},useDebugValue:function(e,n){M.useDebugValue&&M.useDebugValue(n?n(e):e)},version:"17.0.2",Children:Fe,render:Xe,hydrate:function(e,n,t){return fe(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(ae(null,e),!0)},createPortal:function(e,n){return q(Je,{__v:e,i:n})},createElement:q,createContext:function(e,n){var t={__c:n="__cC"+I++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(J)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return q.bind(null,e)},cloneElement:function(e){return an(e)?_e.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:B,isValidElement:an,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:z,PureComponent:Ie,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:Ue(this.props,e)}function r(n){return this.shouldComponentUpdate=t,q(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n,t){var r=Re({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=Le,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:B,Suspense:Ve,SuspenseList:ze,lazy:function(e){var n,t,r;function i(i){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return q(t,i)}return i.displayName="Lazy",i.__f=!0,i},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:cn};function _n(e){let n=0,t="[";for(const r of e){if(0===n)t+=hn(r);else{if(100===n){t+="; ...";break}t+="; "+hn(r)}n++}return t+"]"}function hn(e,n=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return _n(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+hn(t,n+1))).join("\n ")+" }":t.name}}return String(e)}function dn(e,n){if(e===n)return 0;if(null==n)return-1;for(;null!=e.tail;){if(null==n.tail)return 1;const t=p(e.head,n.head);if(0!==t)return t;e=e.tail,n=n.tail}return null==n.tail?0:-1}class pn{constructor(e,n){this.head=e,this.tail=n}[Symbol.iterator](){let e=this;return{next:()=>{const n=null==e?void 0:e.head,t=null==(null==e?void 0:e.tail);return e=null==e?void 0:e.tail,{done:t,value:n}}}}toJSON(){return Array.from(this)}toString(){return _n(this)}GetHashCode(){return s(Array.from(this).map(l))}Equals(e){return 0===dn(this,e)}CompareTo(e){return dn(this,e)}}class gn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",n=!0;if(1===this.fields.length){const t=hn(this.fields[0]);n=t.indexOf(" ")>=0,e=t}else e=this.fields.map((e=>hn(e))).join(", ");return this.name+(n?" (":" ")+e+(n?")":"")}}GetHashCode(){const e=this.fields.map((e=>l(e)));return e.splice(0,0,u(this.tag)),s(e)}Equals(e){return this===e||!!n(this,e)&&this.tag===e.tag&&a(this.fields,e.fields)}CompareTo(e){return this===e?0:n(this,e)?this.tag===e.tag?d(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class vn{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+hn(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>l(e)));return s(n)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(n(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!f(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(n(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=p(e[n[r]],t[n[r]]);if(0!==i)return i}return 0}return-1}(this,e)}}class mn{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class wn{constructor(e,n,t,r,i,o,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=i,this.cases=o,this.enumCases=u}toString(){return kn(this)}GetHashCode(){return bn(this)}Equals(e){return Sn(this,e)}}function yn(e){return null!=e.generics?e.generics:[]}function bn(e){return s([o(e.fullname),...yn(e).map(bn)])}function Sn(e,n){return""===e.fullname?""===n.fullname&&c(Cn(e),Cn(n),(([e,n],[t,r])=>e===t&&Sn(n,r))):e.fullname===n.fullname&&c(yn(e),yn(n),Sn)}function kn(e){const n=null==e.generics||function(e){return e.fullname.endsWith("[]")}(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map((e=>kn(e))).join(",")+"]":e.fullname}function Cn(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}new wn("System.Object"),new wn("Microsoft.FSharp.Core.Unit"),new wn("System.Char"),new wn("System.String"),new wn("System.Boolean"),new wn("System.SByte"),new wn("System.Byte"),new wn("System.Int16"),new wn("System.UInt16"),new wn("System.Int32"),new wn("System.UInt32"),new wn("System.Single"),new wn("System.Double"),new wn("System.Decimal");function En(e,n){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase()))}function xn(e,n=0){const t={},r=n;function i(e){throw new Error("Cannot infer key and value of "+String(e))}function o(e,n,r){e=function(e,n){switch(n){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return En(e,"_");case 3:return En(e,"_").toUpperCase();case 4:return En(e,"-");default:return e}}(e,n),t[e]=r}for(let n of e){let e=0;if(null==n&&i(n),n instanceof gn){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:i(n);break;case 1:o(n[0],e,!0);break;case 2:const t=n[1];o(n[0],e,t);break;default:o(n[0],e,n.slice(1))}else"string"==typeof n?o(n,e,!0):i(n)}return t}class On extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token"]}}var An;!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(An||(An={}));const Tn=Symbol("numeric");function Pn(e,n){return"number"==typeof e?e.toPrecision(n):e[Tn]().toPrecision(n)}function Mn(e,n){return"number"==typeof e?e.toExponential(n):e[Tn]().toExponential(n)}function Dn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Tn]().toHex()}var Nn=null;try{Nn=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(H){}function Rn(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Un(e){return!0===(e&&e.__isLong__)}Rn.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Rn.prototype.Equals=function(e){return lt(this,e)},Rn.prototype.CompareTo=function(e){return _t(this,e)},Rn.prototype.toString=function(e){return it(this,e)},Rn.prototype.toJSON=function(){return it(this)},Rn.prototype[Tn]=function(){const e=this;return{multiply:n=>gt(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return it(e.unsigned?e:function(e,n,t){return t?function(e,n){return new Rn(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Rn(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},Rn.prototype.__isLong__,Object.defineProperty(Rn.prototype,"__isLong__",{value:!0});var In={},Hn={};function Ln(e,n){var t,r,i;return n?(i=0<=(e>>>=0)&&e<256)&&(r=Hn[e])?r:(t=Fn(e,(0|e)<0?-1:0,!0),i&&(Hn[e]=t),t):(i=-128<=(e|=0)&&e<128)&&(r=In[e])?r:(t=Fn(e,e<0?-1:0,!1),i&&(In[e]=t),t)}function jn(e,n){if(isNaN(e))return n?Yn:Jn;if(n){if(e<0)return Yn;if(e>=zn)return et}else{if(e<=-Gn)return nt;if(e+1>=Gn)return Xn}return e<0?ht(jn(-e,n)):Fn(e%Bn|0,e/Bn|0,n)}function Fn(e,n,t){return new Rn(e,n,t)}var Wn=Math.pow;function qn(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Jn;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return ht(qn(e.substring(1),n,t));for(var i=jn(Wn(t,8)),o=Jn,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);o=dt(s<8?gt(o,jn(Wn(t,s))):o=gt(o,i),jn(l))}return o.unsigned=n,o}function Vn(e,n){return"number"==typeof e?jn(e,n):"string"==typeof e?qn(e,n):Fn(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Bn=4294967296,zn=Bn*Bn,Gn=zn/2,$n=Ln(1<<24),Jn=Ln(0),Yn=Ln(0,!0),Zn=Ln(1),Kn=Ln(1,!0),Qn=Ln(-1),Xn=Fn(-1,2147483647,!1),et=Fn(-1,-1,!0),nt=Fn(0,-2147483648,!1);function tt(e){return e.unsigned?e.low>>>0:e.low}function rt(e){return e.unsigned?(e.high>>>0)*Bn+(e.low>>>0):e.high*Bn+(e.low>>>0)}function it(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(ot(e))return"0";if(ut(e)){if(lt(e,nt)){var t=jn(n),r=vt(e,t),i=pt(gt(r,t),e);return it(r,n)+tt(i).toString(n)}return"-"+it(ht(e),n)}for(var o=jn(Wn(n,6),e.unsigned),u=e,s="";;){var l=vt(u,o),c=(tt(pt(u,gt(l,o)))>>>0).toString(n);if(ot(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function ot(e){return 0===e.high&&0===e.low}function ut(e){return!e.unsigned&&e.high<0}function st(e){return 1==(1&e.low)}function lt(e,n){return Un(n)||(n=Vn(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function ct(e,n){return _t(e,n)<0}function at(e,n){return _t(e,n)>0}function ft(e,n){return _t(e,n)>=0}function _t(e,n){if(Un(n)||(n=Vn(n)),lt(e,n))return 0;var t=ut(e),r=ut(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:ut(pt(e,n))?-1:1}function ht(e){return!e.unsigned&<(e,nt)?nt:dt(function(e){return Fn(~e.low,~e.high,e.unsigned)}(e),Zn)}function dt(e,n){Un(n)||(n=Vn(n));var t=e.high>>>16,r=65535&e.high,i=e.low>>>16,o=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,_=0;return f+=(_+=o+(65535&n.low))>>>16,a+=(f+=i+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,Fn((f&=65535)<<16|(_&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function pt(e,n){return Un(n)||(n=Vn(n)),dt(e,ht(n))}function gt(e,n){if(ot(e))return e.unsigned?Yn:Jn;if(Un(n)||(n=Vn(n)),Nn)return Fn(Nn.mul(e.low,e.high,n.low,n.high),Nn.get_high(),e.unsigned);if(ot(n))return e.unsigned?Yn:Jn;if(lt(e,nt))return st(n)?nt:Jn;if(lt(n,nt))return st(e)?nt:Jn;if(ut(e))return ut(n)?gt(ht(e),ht(n)):ht(gt(ht(e),n));if(ut(n))return ht(gt(e,ht(n)));if(ct(e,$n)&&ct(n,$n))return jn(rt(e)*rt(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,i=e.low>>>16,o=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,_=0,h=0;return _+=(h+=o*c)>>>16,f+=(_+=i*c)>>>16,_&=65535,f+=(_+=o*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=i*l)>>>16,f&=65535,a+=(f+=o*s)>>>16,a+=t*c+r*l+i*s+o*u,Fn((_&=65535)<<16|(h&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function vt(e,n){if(Un(n)||(n=Vn(n)),ot(n))throw Error("division by zero");var t,r,i;if(Nn)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Fn((e.unsigned?Nn.div_u:Nn.div_s)(e.low,e.high,n.low,n.high),Nn.get_high(),e.unsigned):e;if(ot(e))return e.unsigned?Yn:Jn;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Fn(e.low,e.high,!0)}(n)),at(n,e))return Yn;if(at(n,function(e,n){if(Un(n)&&(n=tt(n)),0==(n&=63))return e;var t=e.high;return n<32?Fn(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Fn(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return Kn;i=Yn}else{if(lt(e,nt))return lt(n,Zn)||lt(n,Qn)?nt:lt(n,nt)?Zn:lt(t=function(e,n){return Un(n)&&(n=tt(n)),0==(n&=63)?e:n<32?Fn(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Fn(0,e.low<<n-32,e.unsigned)}(vt(function(e,n){return Un(n)&&(n=tt(n)),0==(n&=63)?e:n<32?Fn(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Fn(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Jn)?ut(n)?Zn:Qn:i=dt(t,vt(r=pt(e,gt(n,t)),n));if(lt(n,nt))return e.unsigned?Yn:Jn;if(ut(e))return ut(n)?vt(ht(e),ht(n)):ht(vt(ht(e),n));if(ut(n))return ht(vt(e,ht(n)));i=Jn}for(r=e;ft(r,n);){t=Math.max(1,Math.floor(rt(r)/rt(n)));for(var o=Math.ceil(Math.log(t)/Math.LN2),u=o<=48?1:Wn(2,o-48),s=jn(t),l=gt(s,n);ut(l)||at(l,r);)l=gt(s=jn(t-=u,e.unsigned),n);ot(s)&&(s=Zn),i=dt(i,s),r=pt(r,l)}return i}function mt(e){const n=e<0,r=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+t(~~(e/36e5),2)+":"+t(r,2)}function wt(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function yt(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const i=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?i%100:i;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const o=t?e.getUTCHours():e.getHours();r=o>12?o%12:o;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r}))}const bt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/;function St(e){return{input:e,cont:(n=e,e=>bt.test(n)?xt(n,e):e(n))};var n}function kt(e){return function(e,n){return"string"==typeof n?e(n):n.cont(e)}((e=>e),e)}function Ct(e,n,r,i,o,u){let s="";if(r=r||"",u=u||"",function(e){return"number"==typeof e||(null==e?void 0:e[Tn])}(e))switch("x"!==u.toLowerCase()&&(function(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}(e,0)?(e=function(e,n){return"number"==typeof e?-1*e:e[Tn]().multiply(-1)}(e),s="-"):r.indexOf(" ")>=0?s=" ":r.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),u){case"f":case"F":e=function(e,n){return"number"==typeof e?e.toFixed(n):e[Tn]().toFixed(n)}(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?Pn(e,o):Pn(e);break;case"e":case"E":e=null!=o?Mn(e,o):Mn(e);break;case"x":e=Dn(e);break;case"X":e=Dn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?function(e,n,r){return null!=e.offset?function(e,n){var t,r,i;const o=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return o.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+mt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return yt(o,n,!0);switch(n){case"D":case"d":return wt(o,"first");case"T":case"t":return wt(o,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+mt(n)}(o,null!==(i=e.offset)&&void 0!==i?i:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const r=1===e.kind;if("string"!=typeof n)return r?e.toUTCString():e.toLocaleString();if(1!==n.length)return yt(e,n,r);switch(n){case"D":case"d":return r?wt(e,"first"):e.toLocaleDateString();case"T":case"t":return r?wt(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return t(e.getFullYear(),4)+"-"+t(e.getMonth()+1,2)+"-"+t(e.getDate(),2)+"T"+t(e.getHours(),2)+":"+t(e.getMinutes(),2)+":"+t(e.getSeconds(),2)+"."+t(e.getMilliseconds(),3)+(n?mt(-6e4*e.getTimezoneOffset()):"")}}(e,r);default:throw new Error("Unrecognized Date print format")}}(e,n)}(e):hn(e);if(i="number"==typeof i?i:parseInt(i,10),isNaN(i))e=s+e;else{const n=r.indexOf("0")>=0,t=r.indexOf("-")>=0,o=t||!n?" ":"0";e="0"===o?s+(e=At(e,i-s.length,o,t)):At(s+e,i,o,t)}return n?n+e:e}function Et(e,n,t){return e.replace(bt,((e,r,i,o,u,s)=>{if(null!=t.contents)o=t.contents,t.contents=null;else if("*"===o){if(n<0)throw new Error("Non-negative number required");return t.contents=n,e}return Ct(n,r,i,o,u,s).replace(/%/g,"%%")}))}function xt(e,n,t=new mn(null)){return(...r)=>{let i=e;for(const e of r)i=Et(i,e,t);return bt.test(i)?xt(i,n,t):n(i.replace(/%%/g,"%"))}}function Ot(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}function At(e,n,t,r){t=t||" ",n-=e.length;for(let i=0;i<n;i++)e=r?e+t:t+e;return e}function Tt(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}var Pt={GetHashCode(){return s([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Tn](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},Mt=1e6,Dt="[big.js] ",Nt=Dt+"Invalid ",Rt=Nt+"decimal places",Ut=Nt+"rounding mode",It=Dt+"Division by zero",Ht=void 0,Lt=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function jt(e,n){var t,r,i;if(0===n&&1/n<0)n="-0";else if(!Lt.test(n+=""))throw Error(Nt+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),i=n.length,r=0;r<t&&r<i&&"0"==n.charAt(r);)++r;if(r==i)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<i;)e.c[t++]=+n.charAt(r++);return Ft(e,qt.DP,qt.RM)}function Ft(e,n,t,r){var i=e.c,o=e.e+n+1;if(o<i.length){if(1===t)r=i[o]>=5;else if(2===t)r=i[o]>5||5==i[o]&&(r||o<0||i[o+1]!==Ht||1&i[o-1]);else if(3===t){const e=i.findIndex(((e,n)=>n>=o&&e>0))<0;r=r||!e}else if(r=!1,0!==t)throw Error(Ut);if(o<1)i.length=1,r?(e.e=-n,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,r)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(t<0||t>3||t!==~~t)throw Error(Ut);return e}function Wt(e,n,t,r){var i,o,u=e.constructor,s=!e.c[0];if(t!==Ht){if(t!==~~t||t<(3==n)||t>Mt)throw Error(3==n?Nt+"precision":Rt);for(t=r-(e=new u(e)).e,e.c.length>++r&&Ft(e,t,u.RM),2==n&&(r=e.e+t+1);e.c.length<r;)e.c.push(0)}if(i=e.e,t=(o=e.c.join("")).length,2!=n&&(1==n||3==n&&r<=i||i<=u.NE||i>=u.PE))o=o.charAt(0)+(t>1?"."+o.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)o="0"+o;o="0."+o}else if(i>0)if(++i>t)for(i-=t;i--;)o+="0";else i<t&&(o=o.slice(0,i)+"."+o.slice(i));else t>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&(!s||4==n)?"-"+o:o}Pt.abs=function(){var e=new this.constructor(this);return e.s=1,e},Pt.cmp=function(e){var n,t=this.constructor,r=new t(this),i=(e=new t(e),r.c),o=e.c,u=r.s,s=e.s,l=r.e,c=e.e;if(!i[0]||!o[0])return i[0]?u:o[0]?-s:0;if(u!=s)return u;if(n=u<0,l!=c)return l>c^n?1:-1;for(s=Math.max(i.length,o.length),u=0;u<s;u++)if((l=u<i.length?i[u]:0)!=(c=u<o.length?o[u]:0))return l>c^n?1:-1;return 0},Pt.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),i=e.c,o=t.s==e.s?1:-1,u=n.DP;if(u!==~~u||u<0||u>Mt)throw Error(Rt);if(!i[0])throw Error(It);if(!r[0])return new n(0*o);var s,l,c,a,f,_=i.slice(),h=s=i.length,d=r.length,p=r.slice(0,s),g=p.length,v=e,m=v.c=[],w=0,y=u+(v.e=t.e-e.e)+1;for(v.s=o,o=y<0?0:y,_.unshift(0);g++<s;)p.push(0);do{for(c=0;c<10;c++){if(s!=(g=p.length))a=s>g?1:-1;else for(f=-1,a=0;++f<s;)if(i[f]!=p[f]){a=i[f]>p[f]?1:-1;break}if(!(a<0))break;for(l=g==s?i:_;g;){if(p[--g]<l[g]){for(f=g;f&&!p[--f];)p[f]=9;--p[f],p[g]+=10}p[g]-=l[g]}for(;!p[0];)p.shift()}m[w++]=a?c:++c,p[0]&&a?p[g]=r[h]||0:p=[r[h]]}while((h++<d||p[0]!==Ht)&&o--);return m[0]||1==w||(m.shift(),v.e--),w>y&&Ft(v,u,n.RM,p[0]!==Ht),v},Pt.eq=function(e){return!this.cmp(e)},Pt.gt=function(e){return this.cmp(e)>0},Pt.gte=function(e){return this.cmp(e)>-1},Pt.lt=function(e){return this.cmp(e)<0},Pt.lte=function(e){return this.cmp(e)<1},Pt.minus=Pt.sub=function(e){var n,t,r,i,o=this.constructor,u=new o(this),s=(e=new o(e),u.s),l=e.s;if(s!=l)return e.s=-l,u.plus(e);var c=u.c.slice(),a=u.e,f=e.c,_=e.e;if(!c[0]||!f[0])return f[0]?(e.s=-l,e):new o(c[0]?u:0);if(s=a-_){for((i=s<0)?(s=-s,r=c):(_=a,r=f),r.reverse(),l=s;l--;)r.push(0);r.reverse()}else for(t=((i=c.length<f.length)?c:f).length,s=l=0;l<t;l++)if(c[l]!=f[l]){i=c[l]<f[l];break}if(i&&(r=c,c=f,f=r,e.s=-e.s),(l=(t=f.length)-(n=c.length))>0)for(;l--;)c[n++]=0;for(l=n;t>s;){if(c[--t]<f[t]){for(n=t;n&&!c[--n];)c[n]=9;--c[n],c[t]+=10}c[t]-=f[t]}for(;0===c[--l];)c.pop();for(;0===c[0];)c.shift(),--_;return c[0]||(e.s=1,c=[_=0]),e.c=c,e.e=_,e},Pt.mod=function(e){var n,t=this.constructor,r=new t(this),i=(e=new t(e),r.s),o=e.s;if(!e.c[0])throw Error(It);return r.s=e.s=1,n=1==e.cmp(r),r.s=i,e.s=o,n?new t(r):(i=t.DP,o=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=i,t.RM=o,this.minus(r.times(e)))},Pt.plus=Pt.add=function(e){var n,t=this.constructor,r=new t(this),i=(e=new t(e),r.s),o=e.s;if(i!=o)return e.s=-o,r.minus(e);var u=r.e,s=r.c,l=e.e,c=e.c;if(!s[0]||!c[0])return c[0]?e:new t(s[0]?r:0*i);if(s=s.slice(),i=u-l){for(i>0?(l=u,n=c):(i=-i,n=s),n.reverse();i--;)n.push(0);n.reverse()}for(s.length-c.length<0&&(n=c,c=s,s=n),i=c.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+c[i]+o)/10|0;for(o&&(s.unshift(o),++l),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=l,e},Pt.pow=function(e){var n=this.constructor,t=new n(this),r=new n(1),i=new n(1),o=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(Nt+"exponent");for(o&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return o?i.div(r):r},Pt.round=function(e,n){var t=this.constructor;if(e===Ht)e=0;else if(e!==~~e||e<-Mt||e>Mt)throw Error(Rt);return Ft(new t(this),e,n===Ht?t.RM:n)},Pt.sqrt=function(){var e,n,t,r=this.constructor,i=new r(this),o=i.s,u=i.e,s=new r(.5);if(!i.c[0])return new r(i);if(o<0)throw Error(Dt+"No square root");0===(o=Math.sqrt(i+""))||o===1/0?((n=i.c.join("")).length+u&1||(n+="0"),u=((u+1)/2|0)-(u<0||1&u),e=new r(((o=Math.sqrt(n))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+u)):e=new r(o),u=e.e+(r.DP+=4);do{t=e,e=s.times(t.plus(i.div(t)))}while(t.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return Ft(e,r.DP-=4,r.RM)},Pt.times=Pt.mul=function(e){var n,t=this.constructor,r=new t(this),i=(e=new t(e),r.c),o=e.c,u=i.length,s=o.length,l=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!i[0]||!o[0])return new t(0*e.s);for(e.e=l+c,u<s&&(n=i,i=o,o=n,c=u,u=s,s=c),n=new Array(c=u+s);c--;)n[c]=0;for(l=s;l--;){for(s=0,c=u+l;c>l;)s=n[c]+o[l]*i[c-l-1]+s,n[c--]=s%10,s=s/10|0;n[c]=(n[c]+s)%10}for(s?++e.e:n.shift(),l=n.length;!n[--l];)n.pop();return e.c=n,e},Pt.toExponential=function(e){return Wt(this,1,e,e)},Pt.toFixed=function(e){return Wt(this,2,e,this.e+e)},Pt.toPrecision=function(e){return Wt(this,3,e,e-1)},Pt.toString=function(){return Wt(this)},Pt.valueOf=Pt.toJSON=function(){return Wt(this,4)};var qt=function e(){function n(t){var r=this;if(!(r instanceof n))return t===Ht?e():new n(t);t instanceof n?(r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if((e=Ft(e,28,0)).c.length>1&&!e.c[0]){let n=e.c.findIndex((e=>e));e.c=e.c.slice(n),e.e=e.e-n}}(r)):jt(r,t),r.constructor=n}return n.prototype=Pt,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.version="5.2.2",n}();const Vt=qt;new Vt(0),new Vt(1),new Vt(-1),new Vt("79228162514264337593543950335"),new Vt("-79228162514264337593543950335");class Bt{constructor(e){this.f=e}[Symbol.iterator](){return new Bt(this.f)}next(){var e;return this.iter=null!==(e=this.iter)&&void 0!==e?e:this.f(),this.iter.next()}toString(){return"seq ["+Array.from(this).join("; ")+"]"}}function zt(e){return new Bt(e)}function Gt(e,n){return Jt((()=>{let t=!1,r=[e[Symbol.iterator](),void 0];return Kt((()=>{var e,i;let o;if(!t){if(o=null===(e=r[0])||void 0===e?void 0:e.next(),null!=o&&!o.done)return[o.value,r];t=!0,r=[void 0,n[Symbol.iterator]()]}return o=null===(i=r[1])||void 0===i?void 0:i.next(),null==o||o.done?void 0:[o.value,r]}),r)}))}function $t(e,n){return function(e){return Jt((()=>{const n=e[Symbol.iterator]();let t;return Kt((e=>{let r=!1;for(;!r;)if(null==e){const t=n.next();t.done?r=!0:e=t.value[Symbol.iterator]()}else{const n=e.next();n.done?e=void 0:(t=n.value,r=!0)}return null!=e?[t,e]:void 0}),void 0)}))}(function(e,n){return Jt((()=>Kt((n=>{const t=n.next();return t.done?void 0:[e(t.value),n]}),n[Symbol.iterator]())))}(e,n))}function Jt(e){return zt((()=>e()[Symbol.iterator]()))}function Yt(e,n,t){if(function(e){return Array.isArray(e)||ArrayBuffer.isView(e)}(t))return t.reduce(e,n);{let r;for(let i=0,o=t[Symbol.iterator]();r=o.next(),!r.done;i++)n=e(n,r.value,i);return n}}function Zt(e,n){Yt(((n,t)=>{e(t)}),void 0,n)}function Kt(e,n){return zt((()=>{let t=n;const r={next(){const n=e(t);if(null!=n){const e=k(n);if(null!=e)return t=e[1],{done:!1,value:e[0]}}return{done:!0,value:void 0}}};return r}))}function Qt(e,n,t){return 0===function(e,n,t){if(null==n)return null==t?0:-1;if(null==t)return 1;{let e=0,o=0;const u=0|n.length,s=0|t.length;if(u>s)return 1;if(u<s)return-1;for(;e<u&&0===o;)r=n[e],i=t[e],o=p(r,i),e+=1;return 0|o}var r,i}(0,n,t)}function Xt(){return new pn}function er(e){return new pn(e,Xt())}function nr(e,n,t){for(;;){const r=e,i=n,o=t;if(null==o.tail)return i;e=r,n=r(i,o.head),t=o.tail}}function tr(e){return nr(((e,n)=>new pn(n,e)),new pn,e)}function rr(e,n){return tr(nr(((n,t)=>new pn(e(t),n)),new pn,n))}function ir(n){return function(n,t){let r=t;for(let t=function(n){if(e(n))return n.length;{let e=0;for(const t of n)e++;return e}}(n)-1;t>=0;t--)r=new pn(n[t],r);return r}(n,new pn)}Symbol.toStringTag,Symbol.iterator,Symbol.toStringTag,Symbol.iterator;const or=fn;function ur(e){return{Dispose(){e()}}}function sr(e){var n;n=e,Ee((()=>{const e=n();return()=>{e.Dispose()}}))}function lr(e,n){return or.useMemo(e,E(n,[]))}function cr(e){const n=(r=e,or.useRef(r)),t=(i=e=>n.current(e),o=[],or.useCallback(i,E(o,[])));var r,i,o,u,s;return u=()=>{n.current=e},s=e=>(u(),ur((()=>{}))),xe((()=>{const e=s();return()=>{e.Dispose()}})),t}const ar=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",(e=>{}),{passive:!0}),window.removeEventListener("testPassiveEventSupport",(e=>{})))}catch(e){}return!1})();function fr(e){return x((e=>e.passive&&!ar?{capture:e.capture,once:e.once,passive:!1}:e),e)}function _r(e){return null!=(n=e)?(e=>e.capture?{capture:!0}:void 0)(k(n)):void 0;var n}function hr(e,n){return 0===n.indexOf(e)?n:void 0}function dr(e,n){return Ot(n,e)?n:void 0}function pr(e,n){return function(e){return 1===e?e=>{let n,t,r,i,o,u;return n=hr("/",e),null!=n?(t=n,"#"+t):(r=hr("#/",e),null!=r?(i=r,i):(o=hr("#",e),null!=o?(u=o,"#/"+Tt(u,1,u.length-1)):"#/"+e))}:e=>{let n,t;return n=hr("/",e),null!=n?(t=n,t):"/"+e}}(n)(function(e,n){return Array.isArray(n)?n.join("/"):Array.from(n).join("/")}(0,rr((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function gr(e,n){return function(e){return tr(Yt(((e,n)=>new pn(n,e)),new pn,e))}($t((e=>{if("string"!=typeof(n=e)||/^\s*$/.test(n))return Xt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return Xt();if(null!=hr("?",n))return er(n);{const e=n.split("?");if(Qt(0,e,null)||1!==e.length){if(Qt(0,e,null)||2!==e.length)return Xt();if(""===e[1]){const n=e[0];return er(decodeURIComponent(n))}{const n=e[0],t=e[1];return ir([decodeURIComponent(n),"?"+t])}}{const n=e[0];return er(decodeURIComponent(n))}}}var n}),ir((null!=hr("#",e)?Tt(e,1,e.length-1):1!==n||null==dr("#",e)&&null==dr("#/",e)?e:"").split("/"))))}const vr=function(e,n,t,r){const i=or.memo(e,m(2,E(w(2,t),null)));return Zt((n=>{e.displayName=n}),C(n)),e=>or.createElement(i,function(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}(r,e))}((e=>{const n=cr((n=>{const t=E(e.onUrlChanged,(e=>{}));return function(e,n,t){return n(gr(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(E(e.hashMode,1),t)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,i=lr((()=>fr(r)),[r]),o=lr((()=>_r(r)),[r]),u=lr((()=>e=>{t(e)}),[t]);sr(cr((()=>(null==i?window.addEventListener(e,u):window.addEventListener(e,u,i),ur((()=>{null==o?window.removeEventListener(e,u):window.removeEventListener(e,u,o)}))))))}else{const e="popstate",t=n,r=void 0,i=lr((()=>fr(r)),[r]),o=lr((()=>_r(r)),[r]),u=lr((()=>e=>{t(e)}),[t]);sr(cr((()=>(null==i?window.addEventListener(e,u):window.addEventListener(e,u,i),ur((()=>{null==o?window.removeEventListener(e,u):window.removeEventListener(e,u,o)}))))))}const t="CUSTOM_NAVIGATION_EVENT",r=n,i=void 0,o=lr((()=>fr(i)),[i]),u=lr((()=>_r(i)),[i]),s=lr((()=>e=>{r(e)}),[r]);sr(cr((()=>(null==o?window.addEventListener(t,s):window.addEventListener(t,s,o),ur((()=>{null==u?window.removeEventListener(t,s):window.removeEventListener(t,s,u)}))))));const l=e.application;return null==l?null:l}),void 0,void 0,void 0);class mr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Token"]}}class wr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["QueryString"]}}class yr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function br(e){let n,t,r;switch(null!=e.tail?"oidc"===e.head&&null!=e.tail.tail?"callback"===e.tail.head?null!=e.tail.tail.tail&&null==e.tail.tail.tail.tail?(n=1,t=e.tail.tail.head):n=3:"silent-refresh"===e.tail.head&&null!=e.tail.tail.tail&&null==e.tail.tail.tail.tail?(n=2,r=e.tail.tail.head):n=3:n=3:n=0,n){case 0:{const e=window.location.search,n=new URLSearchParams(e),t=n.get("token");if(null==t)return new yr(0);{const e=t;return Zt((e=>{!function(e,n){sessionStorage.setItem("success-redirection-url",n)}(0,e)}),C(n.get("success-redirection-url"))),new yr(1,new mr(0,e))}}case 1:return new yr(2,new wr(0,t));case 2:return new yr(3,new wr(0,r));case 3:return new yr(4)}}class Sr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}class kr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class Cr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Started","Finished"]}}class Er extends vn{constructor(e){super(),this.AccessToken=e}}function xr(e){return new Er(e.access_token)}class Or extends vn{constructor(e){super(),this.Auth=e}}class Ar extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}class Tr extends vn{constructor(e,n){super(),this.CurrentPage=e,this.Auth=n}}class Pr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UrlChanged","AuthMsg"]}}class Mr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["DefaultChecked","DefaultValue","Accept","AcceptCharset","AccessKey","Action","AllowFullScreen","AllowTransparency","Alt","aria-atomic","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","Async","AutoComplete","AutoFocus","AutoPlay","Capture","CellPadding","CellSpacing","CharSet","Challenge","Checked","ClassID","ClassName","className","Cols","ColSpan","Content","ContentEditable","ContextMenu","Controls","Coords","CrossOrigin","data-toggle","DateTime","Default","Defer","Dir","Disabled","Download","Draggable","EncType","Form","FormAction","FormEncType","FormMethod","FormNoValidate","FormTarget","FrameBorder","Headers","Height","Hidden","High","Href","HrefLang","HtmlFor","HttpEquiv","Icon","Id","InputMode","Integrity","Is","KeyParams","KeyType","Kind","Label","Lang","List","Loop","Low","Manifest","MarginHeight","MarginWidth","Max","MaxLength","Media","MediaGroup","Method","Min","MinLength","Multiple","Muted","Name","NoValidate","Open","Optimum","Pattern","Placeholder","Poster","Preload","RadioGroup","ReadOnly","Rel","Required","Role","Rows","RowSpan","Sandbox","Scope","Scoped","Scrolling","Seamless","Selected","Shape","Size","Sizes","Span","SpellCheck","Src","SrcDoc","SrcLang","SrcSet","Start","Step","Summary","TabIndex","Target","Title","Type","UseMap","Value","value","Width","Wmode","Wrap","About","Datatype","Inlist","Prefix","Property","Resource","Typeof","Vocab","AutoCapitalize","AutoCorrect","AutoSave","ItemProp","ItemScope","ItemType","ItemID","ItemRef","Results","Security","Unselectable","Custom"]}}function Dr(e,n){return new Mr(64,Yt(((e,n)=>e+" "+n),e,function(e,n){return Jt((()=>Kt((n=>{let t=n.next();for(;!t.done;){const r=e(t.value);if(null!=r)return[k(r),n];t=n.next()}}),n[Symbol.iterator]())))}((e=>{const n=e[0];return e[1]&&"string"==typeof(t=n)&&0!==t.length?n:void 0;var t}),n)))}class Nr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Nr.prototype)}}function Rr(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new Nr);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(e)}}));else try{e(n)}catch(e){n.onError(e)}}}function Ur(e,n,t){!function(e,n){nr(((n,t)=>{e(t)}),void 0,n)}((t=>{try{t(n)}catch(n){e(n)}}),t)}function Ir(){return Xt()}function Hr(e,n){return rr((n=>t=>{n((n=>{t(e(n))}))}),n)}function Lr(e){return er((n=>{n(e)}))}function jr(e,n,t,r){return er((i=>{e(n).then((e=>i(t(e)))).catch((e=>i(r(e))))}))}new class{Bind(e,n){return function(e,n){return Rr((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(e)}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return Rr((n=>e()(n)))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While((()=>!r.done),this.Delay((()=>{const e=n(r.value);return r=t.next(),e})))}Return(e){return function(e){return Rr((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return Rr((t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})}))}TryWith(e,n){return Rr((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(e)}}})}))}Using(e,n){return this.TryFinally(n(e),(()=>e.Dispose()))}While(e,n){return e()?this.Bind(n,(()=>this.While(e,n))):this.Return(void 0)}Zero(){return Rr((e=>e.onSuccess(void 0)))}},new class{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}};class Fr extends gn{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Wr{constructor(e){var n,t;this.state=new Fr(0,(n=new Array(g(((e,n)=>h(e,n)),e,10)),t=g(((e,n)=>h(e,n)),e,10),n.fill(null,0,0+t)),0)}}function qr(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],i=n.fields[0],o=(r+1)%i.length|0;return e.state=o===t?new Fr(0,i,t):new Fr(1,i,t,o),S(i[r])}}function Vr(e,n){const t=e.state;if(1===t.tag){const o=0|t.fields[1],u=0|t.fields[2],s=t.fields[0];s[o]=n;const l=(o+1)%s.length|0;e.state=l===u?new Fr(1,(r=u,i=s,Array.from(Jt((()=>Gt(function(e,n){return zt((()=>{const t=n[Symbol.iterator]();for(let n=1;n<=e;n++)if(t.next().done)throw new Error("Seq has not enough elements");return t}))}(r,i),Jt((()=>Gt(function(e,n,t=!1){return Jt((()=>{const r=n[Symbol.iterator]();return Kt((n=>{if(n<e){const e=r.next();if(!e.done)return[e.value,n+1];if(!t)throw new Error("Seq has not enough elements")}}),0)}))}(r,i),Jt((()=>{return $t((e=>Jt((()=>[null]))),(e=i.length,Jt((()=>Kt((n=>n<=e?[n,n+1]:void 0),0)))));var e})))))))))),s.length,0):new Fr(1,s,l,u)}else{const r=0|t.fields[1],i=t.fields[0];i[r]=n;const o=(r+1)%i.length|0;e.state=new Fr(1,i,o,r)}var r,i}class Br extends vn{constructor(e,n,t,r,i,o,u){super(),this.init=e,this.update=n,this.subscribe=t,this.view=r,this.setState=i,this.onError=o,this.syncDispatch=u}}function zr(e,n){const t=n.init(e),r=t[0],i=new Wr(10);let o=!1,u=r;const s=function(e,n,t){if(null!=n){if(v in n){n=n.__CURRIED__;for(let e=0;e<t.length;e++)n=n(t[e]);return n}return e=>n.apply(void 0,t.concat([e]))}}(0,n.syncDispatch,[e=>{if(o)Vr(i,e);else{o=!0;let t=S(e);for(;null!=t;){const e=k(t);try{const t=n.update(e,u),r=t[0];n.setState(r,s),Ur((t=>{n.onError([kt(St("Error in command while handling: %A"))(e),t])}),s,t[1]),u=r}catch(t){n.onError([kt(St("Unable to process the message: %A"))(e),t])}t=qr(i)}o=!1}}]);var l,c;n.setState(r,s),Ur((e=>{n.onError(["Error intitializing:",e])}),s,(l=ir([(()=>{try{return n.subscribe(r)}catch(e){return n.onError(["Unable to subscribe:",e]),Ir()}})(),t[1]]),c=l,tr(Yt(((e,n)=>nr(((e,n)=>new pn(n,e)),e,n)),new pn,c))))}class Gr extends vn{constructor(e,n,t){super(),this.model=e,this.render=n,this.equal=t}}class $r extends z{constructor(e){super(e)}shouldComponentUpdate(e,n){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}const Jr=(()=>{const e={};return e.store=S(window.sessionStorage),e})();function Yr(){return new UserManager(function(){const e=function(e){return Ot(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),n={};return n.authority=A,n.client_id="apollo-bank-details-ui",n.redirect_uri=e+"#/oidc/callback?",n.response_type="id_token token",n.scope="openid profile",n.automaticSilentRenew=!0,n.silent_redirect_uri=S(e+"#/oidc/silent-refresh?"),n.post_logout_redirect_uri=e+"#/oidc/logout?",n.accessTokenExpiringNotificationTime=10,n.filterProtocolClaims=!0,n.loadUserInfo=!1,n.clockSkew=2592e3,n.userStore=new WebStorageStateStore(Jr),n}())}function Zr(e){return e.length>0?Tt(e,1):e}function Kr(){return Yr().getUser()}var Qr;!function(e){zr(void 0,e)}(("bank-details-app",Qr=function(e,n,t){return new Br((function(){const e=br(gr(window.location.hash,1)),n=function(){const e=br(gr(window.location.hash,1));return[new Or(new kr(0)),1===e.tag?Lr(new Ar(1,new Cr(0),e.fields[0])):2===e.tag?Lr(new Ar(2,new Cr(0),e.fields[0])):3===e.tag?Lr(new Ar(3,new Cr(0),e.fields[0])):Lr(new Ar(0,new Cr(0)))]}();return[new Tr(e,n[0]),Hr((e=>new Pr(1,e)),n[1])]}),n,(e=>Ir()),t,((e,n)=>{t(e,n)}),(e=>{var n,t;n=e[0],t=e[1],console.error(S(n),t)}),m(2,(e=>e)))}(0,((e,n)=>function(e,n){if(1===e.tag){const t=function(e,n){const t=e=>[new Or(new kr(2,new Sr(1,e))),Ir()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(kt(St("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[n,Ir()]:[new Or(new kr(1)),(r=e=>{return n=e,Yr().signinRedirect(S({extraQueryParams:{irt:n.fields[0]}}));var n},i=e.fields[1],o=n=>new Ar(1,new Cr(1,new Sr(1,n.message)),e.fields[1]),er((e=>{r(i).catch((n=>{e(o(n))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(kt(St("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new Or(new kr(2,new Sr(0,xr(e.fields[0].fields[0].fields[0])))),er((e=>{!function(e,n,t){history.pushState(void 0,"",pr(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(er(""))}))]:[new Or(new kr(1)),jr((e=>{return n=e,Yr().signinRedirectCallback(Zr(n.fields[0]));var n}),e.fields[1],(n=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new Ar(2,new Cr(1,new Sr(0,n)),e.fields[1]))),(n=>new Ar(2,new Cr(1,new Sr(1,n.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(kt(St("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?t("silent refresh expected a user but got none"):[new Or(new kr(2,new Sr(0,xr(e.fields[0].fields[0].fields[0])))),Ir()]:[n,jr((e=>{return n=e,Yr().signinSilentCallback(Zr(n.fields[0]));var n}),e.fields[1],(n=>new Ar(3,new Cr(1,new Sr(0,n)),e.fields[1])),(n=>new Ar(3,new Cr(1,new Sr(1,n.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(kt(St("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?t("expected a user but got none"):[new Or(new kr(2,new Sr(0,xr(e.fields[0].fields[0].fields[0])))),Ir()]:[new Or(new kr(1)),jr(Kr,void 0,(e=>new Ar(0,new Cr(1,new Sr(0,e)))),(e=>new Ar(0,new Cr(1,new Sr(1,e.message)))))];var r,i,o}(e.fields[0],n.Auth);return[new Tr(n.CurrentPage,t[0]),Hr((e=>new Pr(1,e)),t[1])]}return[new Tr(br(e.fields[0]),n.Auth),Ir()]}(e,n)),((e,n)=>function(e,n){let t;const r=[T,A];let i,o;switch(null!=r[0]&&null!=r[1]?(i=0,o=r[0]):i=1,i){case 0:switch(e.CurrentPage.tag){case 1:case 2:case 3:t=q("div",{},"Please wait...");break;case 4:t=q("h1",{},"Not found");break;default:{const n=e.Auth.Auth;let r,i;switch(2===n.tag&&0===n.fields[0].tag?(r=0,i=n.fields[0].fields[0]):r=1,r){case 0:u=[],t=q("bank-component",xn([new On(0,o),new On(1,i.AccessToken)],1),...u);break;case 1:t=q("h1",{},"Unauthorised")}}}break;case 1:t=q("h1",{},"Invalid attribute configuration")}var u,s;return vr({onUrlChanged:e=>{n(new Pr(0,e))},application:q(B,{},q("div",xn([(s=[["container-lg",!0],["p-5",!0]],Dr("",s))],1),t))})}(e,n))),function(e,n,t){return function(e,n){return new Br(n.init,n.update,n.subscribe,y(2,n.view),e,n.onError,n.syncDispatch)}(((r,i)=>{Xe(e(((e,n)=>e===n),m(2,function(e){return w(2,y(2,e.view))}(t)),r,i),document.getElementById(n))}),t)}(((e,n,t,r)=>function(e,n,t,r){return q($r,new Gr(t,(()=>n(t,r)),e))}(e,n,t,r)),"bank-details-app",Qr)))})();
|
1
|
+
(()=>{"use strict";function e(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function t(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function n(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class r{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function o(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new r(e[Symbol.iterator]())}function i(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function u(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function l(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}class s{static id(e){return s.idMap.has(e)||s.idMap.set(e,++s.count),s.idMap.get(e)}}function c(e){return 2654435761*e|0}function a(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function f(t){if(null==t)return 0;switch(typeof t){case"boolean":return t?1:0;case"number":return c(t);case"string":return function(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}(t);default:if(function(e){return"function"==typeof e.GetHashCode}(t))return t.GetHashCode();if(e(t))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=f(e[r]);return a(n)}(t);if(t instanceof Date)return function(e){return e.getTime()}(t);if(Object.getPrototypeOf(t).constructor===Object){const e=Object.values(t).map((e=>f(e)));return a(e)}return c(s.id(t))}}function _(e,t){return function(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}(e,t,d)}function d(t,n){return t===n||(null==t?null==n:null!=n&&"object"==typeof t&&(function(e){return"function"==typeof e.Equals}(t)?t.Equals(n):e(t)?e(n)&&_(t,n):t instanceof Date?n instanceof Date&&0===h(t,n):Object.getPrototypeOf(t).constructor===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!d(e[n[o]],t[r[o]]))return!1;return!0}(t,n)))}function h(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+l(e),r=t.getTime()+l(t)),n===r?0:n<r?-1:1}function p(e,t){return e===t?0:e<t?-1:1}function m(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,g)}function g(t,n){return t===n?0:null==t?null==n?0:-1:null==n?1:"object"!=typeof t?t<n?-1:1:function(e){return"function"==typeof e.CompareTo}(t)?t.CompareTo(n):e(t)?e(n)?m(t,n):-1:t instanceof Date?n instanceof Date?h(t,n):-1:Object.getPrototypeOf(t).constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const u=n[o];if(u!==r[o])return u<r[o]?-1:1;if(i=g(e[u],t[u]),0!==i)return i}return 0}(t,n):-1}function v(e,t,n){return e(t,n)>0?t:n}s.idMap=new WeakMap,s.count=0;const y=Symbol("curried");function w(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[y]=t,n}function b(e,t,n){return r=>1===t?n(...e.concat([r])):b(e.concat([r]),t-1,n)}function C(e,t){return null==t||1===t.length?t:y in t?t[y]:b([],e,t)}class S{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return f(this.value)}Equals(e){return null!=e&&d(this.value,e instanceof S?e.value:e)}CompareTo(e){return null==e?1:g(this.value,e instanceof S?e.value:e)}}function E(e){return null==e||e instanceof S?new S(e):e}function k(e){if(null==e)throw new Error("Option has no value");return e instanceof S?e.value:e}function x(e){return null==e?[]:[k(e)]}function I(e,t){return null!=e?k(e):t}function O(e,t){return null!=t?E(e(k(t))):void 0}const A=function(e){return null==e?void 0:e}(document.querySelector("#bank-details-app")),T=O((e=>e.getAttribute("data-identity-url")),A),N=O((e=>e.getAttribute("data-backend-url")),A);var M,P,U,D,R,H,L,j={},F=[],G=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function W(e,t){for(var n in t)e[n]=t[n];return e}function V(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,n){var r,o,i,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?M.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return z(e,u,r,o,null)}function z(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++U:o};return null==o&&null!=P.vnode&&P.vnode(i),i}function $(e){return e.children}function B(e,t){this.props=e,this.context=t}function J(e,t){if(null==t)return e.__?J(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?J(e):null}function Y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Y(e)}}function K(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!Z.__r++||H!==P.debounceRendering)&&((H=P.debounceRendering)||R)(Z)}function Z(){for(var e;Z.__r=D.length;)e=D.sort((function(e,t){return e.__v.__b-t.__v.__b})),D=[],e.some((function(e){var t,n,r,o,i,u;e.__d&&(i=(o=(t=e).__v).__e,(u=t.__P)&&(n=[],(r=W({},o)).__v=o.__v+1,ue(u,o,r,t.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?J(o):i,o.__h),le(n,o),o.__e!=i&&Y(o)))}))}function Q(e,t,n,r,o,i,u,l,s,c){var a,f,_,d,h,p,m,g=r&&r.__k||F,v=g.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(d=n.__k[a]=null==(d=t[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?z(null,d,null,null,d):Array.isArray(d)?z($,{children:d},null,null,null):d.__b>0?z(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(_=g[a])||_&&d.key==_.key&&d.type===_.type)g[a]=void 0;else for(f=0;f<v;f++){if((_=g[f])&&d.key==_.key&&d.type===_.type){g[f]=void 0;break}_=null}ue(e,d,_=_||j,o,i,u,l,s,c),h=d.__e,(f=d.ref)&&_.ref!=f&&(m||(m=[]),_.ref&&m.push(_.ref,null,d),m.push(f,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===_.__k?d.__d=s=X(d,s,e):s=te(e,d,_,g,h,s),"function"==typeof n.type&&(n.__d=s)):s&&_.__e==s&&s.parentNode!=e&&(s=J(_))}for(n.__e=p,a=v;a--;)null!=g[a]&&("function"==typeof n.type&&null!=g[a].__e&&g[a].__e==n.__d&&(n.__d=J(r,a+1)),ae(g[a],g[a]));if(m)for(a=0;a<m.length;a++)ce(m[a],m[++a],m[++a])}function X(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?X(r,t,n):te(n,r,r,o,r.__e,t));return t}function ee(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){ee(e,t)})):t.push(e)),t}function te(e,t,n,r,o,i){var u,l,s;if(void 0!==t.__d)u=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(l=i,s=0;(l=l.nextSibling)&&s<r.length;s+=2)if(l==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function ne(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||G.test(t)?n:n+"px"}function re(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ne(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ne(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?ie:oe,i):e.removeEventListener(t,i?ie:oe,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function oe(e){this.l[e.type+!1](P.event?P.event(e):e)}function ie(e){this.l[e.type+!0](P.event?P.event(e):e)}function ue(e,t,n,r,o,i,u,l,s){var c,a,f,_,d,h,p,m,g,v,y,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(s=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(c=P.__b)&&c(t);try{e:if("function"==typeof w){if(m=t.props,g=(c=w.contextType)&&r[c.__c],v=c?g?g.props.value:c.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:("prototype"in w&&w.prototype.render?t.__c=a=new w(m,v):(t.__c=a=new B(m,v),a.constructor=w,a.render=fe),g&&g.sub(a),a.props=m,a.state||(a.state={}),a.context=v,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=w.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=W({},a.__s)),W(a.__s,w.getDerivedStateFromProps(m,a.__s))),_=a.props,d=a.state,f)null==w.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==_&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,v),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,v)||t.__v===n.__v){a.props=m,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,v),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(_,d,h)}))}a.context=v,a.props=m,a.state=a.__s,(c=P.__r)&&c(t),a.__d=!1,a.__v=t,a.__P=e,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=W(W({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(_,d)),y=null!=c&&c.type===$&&null==c.key?c.props.children:c,Q(e,Array.isArray(y)?y:[y],t,n,r,o,i,u,l,s),a.base=t.__e,t.__h=null,a.__h.length&&u.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=se(n.__e,t,n,r,o,i,u,s);(c=P.diffed)&&c(t)}catch(e){t.__v=null,(s||null!=i)&&(t.__e=l,t.__h=!!s,i[i.indexOf(l)]=null),P.__e(e,t,n)}}function le(e,t){P.__c&&P.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){P.__e(e,t.__v)}}))}function se(e,t,n,r,o,i,u,l){var s,c,a,f=n.props,_=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((s=i[h])&&(s===e||(d?s.localName==d:3==s.nodeType))){e=s,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,_.is&&_),i=null,l=!1}if(null===d)f===_||l&&e.data===_||(e.data=_);else{if(i=i&&M.call(e.childNodes),c=(f=n.props||j).dangerouslySetInnerHTML,a=_.dangerouslySetInnerHTML,!l){if(null!=i)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||re(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||re(e,i,t[i],n[i],r)}(e,_,f,o,l),a)t.__k=[];else if(h=t.props.children,Q(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,u,i?i[0]:n.__k&&J(n,0),l),null!=i)for(h=i.length;h--;)null!=i[h]&&V(i[h]);l||("value"in _&&void 0!==(h=_.value)&&(h!==e.value||"progress"===d&&!h)&&re(e,"value",h,f.value,!1),"checked"in _&&void 0!==(h=_.checked)&&h!==e.checked&&re(e,"checked",h,f.checked,!1))}return e}function ce(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){P.__e(e,n)}}function ae(e,t,n){var r,o;if(P.unmount&&P.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ce(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){P.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ae(r[o],t,"function"!=typeof e.type);n||null==e.__e||V(e.__e),e.__e=e.__d=void 0}function fe(e,t,n){return this.constructor(e,n)}function _e(e,t,n){var r,o,i;P.__&&P.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],ue(t,e=(!r&&n||t).__k=q($,null,[e]),o||j,j,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?M.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),le(i,e)}function de(e,t){_e(e,t,de)}function he(e,t,n){var r,o,i,u=W({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];return arguments.length>2&&(u.children=arguments.length>3?M.call(arguments,2):n),z(e.type,u,r||e.key,o||e.ref,null)}M=F.slice,P={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},U=0,B.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof e&&(e=e(W({},n),this.props)),e&&W(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),K(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},B.prototype.render=$,D=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Z.__r=0,L=0;var pe,me,ge,ve=0,ye=[],we=P.__b,be=P.__r,Ce=P.diffed,Se=P.__c,Ee=P.unmount;function ke(e,t){P.__h&&P.__h(me,e,ve||t),ve=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xe(e,t,n){var r=ke(pe++,2);return r.t=e,r.__c||(r.__=[n?n(t):De(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=me),r.__}function Ie(e,t){var n=ke(pe++,3);!P.__s&&Ue(n.__H,t)&&(n.__=e,n.__H=t,me.__H.__h.push(n))}function Oe(e,t){var n=ke(pe++,4);!P.__s&&Ue(n.__H,t)&&(n.__=e,n.__H=t,me.__h.push(n))}function Ae(e,t){var n=ke(pe++,7);return Ue(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Te(){ye.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Me),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}})),ye=[]}P.__b=function(e){me=null,we&&we(e)},P.__r=function(e){be&&be(e),pe=0;var t=(me=e.__c).__H;t&&(t.__h.forEach(Me),t.__h.forEach(Pe),t.__h=[])},P.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==ye.push(t)&&ge===P.requestAnimationFrame||((ge=P.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),Ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ne&&(t=requestAnimationFrame(n))})(Te)),me=null},P.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Me),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],P.__e(n,e.__v)}})),Se&&Se(e,t)},P.unmount=function(e){Ee&&Ee(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Me)}catch(e){P.__e(e,t.__v)}};var Ne="function"==typeof requestAnimationFrame;function Me(e){var t=me;"function"==typeof e.__c&&e.__c(),me=t}function Pe(e){var t=me;e.__c=e.__(),me=t}function Ue(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function De(e,t){return"function"==typeof t?t(e):t}function Re(e,t){for(var n in t)e[n]=t[n];return e}function He(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Le(e){this.props=e}(Le.prototype=new B).isPureReactComponent=!0,Le.prototype.shouldComponentUpdate=function(e,t){return He(this.props,e)||He(this.state,t)};var je=P.__b;P.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),je&&je(e)};var Fe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Ge=function(e,t){return null==e?null:ee(ee(e).map(t))},We={map:Ge,forEach:Ge,count:function(e){return e?ee(e).length:0},only:function(e){var t=ee(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:ee},Ve=P.__e;P.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Ve(e,t,n)};var qe=P.unmount;function ze(){this.__u=0,this.t=null,this.__b=null}function $e(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Be(){this.u=null,this.o=null}P.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),qe&&qe(e)},(ze.prototype=new B).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=$e(r.__v),i=!1,u=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=u;var l=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},ze.prototype.componentWillUnmount=function(){this.t=[]},ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=Re({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&q($,null,e.fallback);return o&&(o.__h=null),[q($,null,t.__e?null:e.children),o]};var Je=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ye(e){return this.getChildContext=function(){return e.context},e.children}function Ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){_e(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),_e(q(Ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Be.prototype=new B).__e=function(e){var t=this,n=$e(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Je(t,e,r)):o()};n?n(i):i()}},Be.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Je(e,n,t)}))};var Ze="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xe="undefined"!=typeof document,et=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function tt(e,t,n){return null==t.__k&&(t.textContent=""),_e(e,t),"function"==typeof n&&n(),e?e.__c:null}B.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(B.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var nt=P.event;function rt(){}function ot(){return this.cancelBubble}function it(){return this.defaultPrevented}P.event=function(e){return nt&&(e=nt(e)),e.persist=rt,e.isPropagationStopped=ot,e.isDefaultPrevented=it,e.nativeEvent=e};var ut,lt={configurable:!0,get:function(){return this.class}},st=P.vnode;P.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var u=n[i];Xe&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==u||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!et(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&Qe.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[i]=u)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=ee(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=ee(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(lt.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",lt)),e.$$typeof=Ze,st&&st(e)};var ct=P.__r;P.__r=function(e){ct&&ct(e),ut=e.__c};var at={ReactCurrentDispatcher:{current:{readContext:function(e){return ut.__n[e.__c].props.value}}}};function ft(e){return!!e&&e.$$typeof===Ze}const _t={useState:function(e){return ve=1,xe(De,e)},useReducer:xe,useEffect:Ie,useLayoutEffect:Oe,useRef:function(e){return ve=5,Ae((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){ve=6,Oe((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Ae,useCallback:function(e,t){return ve=8,Ae((function(){return e}),t)},useContext:function(e){var t=me.context[e.__c],n=ke(pe++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__},useDebugValue:function(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)},version:"17.0.2",Children:We,render:tt,hydrate:function(e,t,n){return de(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(_e(null,e),!0)},createPortal:function(e,t){return q(Ke,{__v:e,i:t})},createElement:q,createContext:function(e,t){var n={__c:t="__cC"+L++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(K)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return q.bind(null,e)},cloneElement:function(e){return ft(e)?he.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:$,isValidElement:ft,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:B,PureComponent:Le,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:He(this.props,e)}function r(t){return this.shouldComponentUpdate=n,q(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=Re({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Fe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:$,Suspense:ze,SuspenseList:Be,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return q(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:at};function dt(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=dt(r);else{if(100===t){n+="; ...";break}n+="; "+dt(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+dt(n,t+1))).join("\n ")+" }":n.name}}return String(e)}class ht{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=dt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>dt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>f(e)));return e.splice(0,0,c(this.tag)),a(e)}Equals(e){return this===e||!!n(this,e)&&this.tag===e.tag&&_(this.fields,e.fields)}CompareTo(e){return this===e?0:n(this,e)?this.tag===e.tag?m(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class pt{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,t])=>e+" = "+dt(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>f(e)));return a(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(n(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!d(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(n(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=g(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}function mt(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function gt(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return mt(e,"_");case 3:return mt(e,"_").toUpperCase();case 4:return mt(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof ht){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}class vt extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token"]}}function yt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+u(~~(e/36e5),2)+":"+u(n,2)}function wt(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function bt(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}const Ct=Symbol("numeric");function St(e,t){return"number"==typeof e?e.toPrecision(t):e[Ct]().toPrecision(t)}function Et(e,t){return"number"==typeof e?e.toExponential(t):e[Ct]().toExponential(t)}function kt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Ct]().toHex()}function xt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}const It=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g;function Ot(e){return{input:e,cont:(t=e,e=>{It.lastIndex=0;const n=[],r=[];let o=0,i=It.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=It.lastIndex,It.lastIndex-=1,i=It.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Nt(e,n,r))})};var t}function At(e){return function(e,t){return"string"==typeof t?e(t):t.cont(e)}((e=>e),e)}function Tt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",function(e){return"number"==typeof e||(null==e?void 0:e[Ct])}(e))switch("x"!==o.toLowerCase()&&(function(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}(e,0)?(e=function(e,t){return"number"==typeof e?-1*e:e[Ct]().multiply(-1)}(e),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=function(e,t){return"number"==typeof e?e.toFixed(t):e[Ct]().toFixed(t)}(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?St(e,r):St(e);break;case"e":case"E":e=null!=r?Et(e,r):Et(e);break;case"x":e=kt(e);break;case"X":e=kt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?function(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+yt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return bt(i,t,!0);switch(t){case"D":case"d":return wt(i,"first");case"T":case"t":return wt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+yt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return bt(e,t,n);switch(t){case"D":case"d":return n?wt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?wt(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return u(e.getFullYear(),4)+"-"+u(e.getMonth()+1,2)+"-"+u(e.getDate(),2)+"T"+u(e.getHours(),2)+":"+u(e.getMinutes(),2)+":"+u(e.getSeconds(),2)+"."+u(e.getMilliseconds(),3)+(t?yt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}(e):dt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Ut(e,n-i.length,u,o)):Ut(i+e,n,u,o)}return e}function Nt(e,t,n,r="",o=-1){return(...i)=>{let u=r;const l=t.slice(),s=n.slice();for(const e of i){const[,,t,n,r,i]=s[0];let c=n;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=l[0],u+=Tt(e,t,c,r,i),l.splice(0,1),s.splice(0,1)}return 0===s.length?(u+=l[0],e(u)):Nt(e,l,s,u,o)}}function Mt(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Pt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Ut(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Dt(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}class Rt extends pt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Pt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1];if(d(n.head,r.head)){e=i,t=u;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,u=i.tail;if(null==u)return 0|o;{const l=u;if(r>18)return 0|o;e=r+1,t=(o<<1)+f(i.head)+631*r,n=l}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1],l=0|g(n.head,r.head);if(0===l){e=i,t=u;continue e}return 0|l}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Ht(this)}[Symbol.iterator](){return i(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return o(this)}}class Ht{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function Lt(){return new Rt(null,void 0)}function jt(e,t){return new Rt(e,t)}function Ft(e){return null==e.tail}function Gt(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Wt(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Vt(){return Lt()}function qt(e){return jt(e,Lt())}function zt(e){return Ft(e)}function $t(e){return Gt(e)}function Bt(e){return Wt(e)}function Jt(e,t,n){let r=t,o=n;for(;!Ft(o);)r=e(r,Gt(o)),o=Wt(o);return r}function Yt(e,t){Jt(((t,n)=>{e(n)}),void 0,t)}function Kt(e){return function(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=jt(e[t],n);return n}(e,Lt())}function Zt(e,t){const n=Lt(),r=Jt(((t,n)=>{let r;return r=new Rt(e(n),void 0),t.tail=r,r}),n,t),o=Lt();return r.tail=o,Wt(n)}function Qt(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,u=0|n.length;if(i>u)return!1;if(i<u)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}const Xt="The input sequence has an insufficient number of elements.";function en(){throw new Error("Enumeration has not started. Call MoveNext.")}function tn(){throw new Error("Enumeration already finished.")}class nn{constructor(e){this.f=e}toString(){let e=0,n="seq [";const r=o(this);try{for(;e<4&&r["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=dt(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{t(r)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return i(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class rn{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function on(e,t,n){return new rn(e,t,n)}function un(e,t,n){let r,o=!1,i=E(e());const u=()=>{if(null!=i){const e=k(i);try{n(e)}finally{i=void 0}}},l=()=>{try{u()}finally{r=void 0}};return on((()=>(o||en(),null!=r?k(r):tn())),(()=>{if(o||(o=!0),null!=i){const e=k(i);let n;try{n=t(e)}catch(e){throw l(),e}return null!=n?(r=n,!0):(l(),!1)}return!1}),u)}function ln(e){return function(e){return new nn(e)}(e)}function sn(e){return t="source",null==e&&function(e){throw new Error(e)}(t),o(e);var t}function cn(e){return ln((()=>o(e())))}function an(e){return ln((()=>function(e){let n,r,i,u=!1,l=!1;const s=()=>{if(l=!0,null!=r){const e=r;try{t(e)}finally{r=void 0}}if(null!=n){const e=n;try{t(e)}finally{n=void 0}}};return on((()=>(u?l&&tn():en(),null!=i?k(i):tn())),(()=>{let c;if(u||(u=!0),l)return!1;{let u;for(;null==u;){const l=[n,r];if(null!=l[0])if(null!=l[1]){const e=l[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=E(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{t(e)}finally{r=void 0}}else{const e=l[0];e["System.Collections.IEnumerator.MoveNext"]()?(c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),r=o(c)):(s(),u=!1)}else n=o(e)}return k(u)}}),(()=>{l||s()}))}(e)))}function fn(e){return cn((()=>function(e,t){const n=function(e,t){return"function"==typeof e?new e(t):new Array(t)}(void 0,1);return n[0]=e,n}(e)))}function _n(e,t,n){return ln((()=>un(e,t,n)))}function dn(e,t){return an([e,t])}function hn(e,n,r){const o=sn(r);try{let r=n;for(;o["System.Collections.IEnumerator.MoveNext"]();)r=e(r,o["System.Collections.Generic.IEnumerator`1.get_Current"]());return r}finally{t(o)}}function pn(e,t){hn(((t,n)=>{e(n)}),void 0,t)}function mn(e,n){return ln((()=>{const r=sn(n);try{for(let t=1;t<=e;t++)if(!r["System.Collections.IEnumerator.MoveNext"]())throw new Error(Xt+"\\nParameter name: source");return function(e,n){return on((()=>n["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>n["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{t(n)}finally{e()}}))}((()=>{}),r)}catch(e){throw t(r),e}}))}Symbol.iterator;const gn=_t;function vn(e){return{Dispose(){e()}}}function yn(e){var t;t=e,Ie((()=>{const e=t();return()=>{e.Dispose()}}))}function wn(e,t){const n=I(t,[]);return gn.useMemo(e,n)}function bn(e){const t=(r=e,gn.useRef(r)),n=function(e,n){const r=I([],[]);return gn.useCallback((e=>t.current(e)),r)}();var r,o,i;return o=()=>{t.current=e},i=e=>(o(),vn((()=>{}))),Oe((()=>{const e=i();return()=>{e.Dispose()}})),n}const Cn=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function Sn(e){return O((e=>e.passive&&!Cn?{capture:e.capture,once:e.once,passive:!1}:e),e)}function En(e){return null!=(t=e)?(e=>e.capture?{capture:!0}:void 0)(k(t)):void 0;var t}function kn(e,t){return 0===t.indexOf(e)?t:void 0}function xn(e,t){return Mt(t,e)?t:void 0}function In(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,u;return t=kn("/",e),null!=t?(n=t,"#"+n):(r=kn("#/",e),null!=r?(o=r,o):(i=kn("#",e),null!=i?(u=i,"#/"+Dt(u,1,u.length-1)):"#/"+e))}:e=>{let t,n;return t=kn("/",e),null!=t?(n=t,n):"/"+e}}(t)(Pt("/",Zt((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function On(e,t){return function(e,t){let n,r;const o=Lt();let i=o,u=t;for(;!Ft(u);){let t=e(Gt(u));for(;!Ft(t);)n=i,r=new Rt(Gt(t),void 0),n.tail=r,i=r,t=Wt(t);u=Wt(u)}const l=i,s=Lt();return l.tail=s,Wt(o)}((e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Vt();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+xt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Vt();if(null!=kn("?",t))return qt(t);{const e=t.split("?");if(Qt(((e,t)=>e===t),e,null)||1!==e.length){if(Qt(((e,t)=>e===t),e,null)||2!==e.length)return Vt();if(""===e[1]){const t=e[0];return qt(decodeURIComponent(t))}{const t=e[0],n=e[1];return Kt([decodeURIComponent(t),"?"+n])}}{const t=e[0];return qt(decodeURIComponent(t))}}}var t}),Kt(function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(xt),t=t.length>0?t:["\\s"];const u=[],l=new RegExp(t.join("|"),"g");let s=!0,c=0;do{const t=l.exec(e);if(null===t){const t=i?e.substring(c).trim():e.substring(c);(!o||t.length>0)&&u.push(t),s=!1}else{const r=i?e.substring(c,t.index).trim():e.substring(c,t.index);(!o||r.length>0)&&(null!=n&&u.length+1===n?(u.push(i?e.substring(c).trim():e.substring(c)),s=!1):u.push(r)),c=l.lastIndex}}while(s);return u}(null!=kn("#",e)?Dt(e,1,e.length-1):1!==t||null==xn("#",e)&&null==xn("#/",e)?e:"",["/"],null,0)))}const An=function(e,t,n,r){const o=gn.memo(e,w(2,I(C(2,n),null)));return pn((t=>{e.displayName=t}),x(t)),e=>{const t=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e);return gn.createElement(o,t)}}((e=>{const t=bn((t=>{const n=I(e.onUrlChanged,(e=>{}));!function(e,t,n){t(On(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(I(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=wn((()=>Sn(r)),[r]),i=wn((()=>En(r)),[r]),u=wn((()=>e=>{n(e)}),[n]);yn(bn((()=>{if(null==o)window.addEventListener(e,u);else{const t=o;window.addEventListener(e,u,t)}return vn((()=>{if(null==i)window.removeEventListener(e,u);else{const t=i;window.removeEventListener(e,u,t)}}))})))}else{const e="popstate",n=t,r=void 0,o=wn((()=>Sn(r)),[r]),i=wn((()=>En(r)),[r]),u=wn((()=>e=>{n(e)}),[n]);yn(bn((()=>{if(null==o)window.addEventListener(e,u);else{const t=o;window.addEventListener(e,u,t)}return vn((()=>{if(null==i)window.removeEventListener(e,u);else{const t=i;window.removeEventListener(e,u,t)}}))})))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=wn((()=>Sn(o)),[o]),u=wn((()=>En(o)),[o]),l=wn((()=>e=>{r(e)}),[r]);yn(bn((()=>{if(null==i)window.addEventListener(n,l);else{const e=i;window.addEventListener(n,l,e)}return vn((()=>{if(null==u)window.removeEventListener(n,l);else{const e=u;window.removeEventListener(n,l,e)}}))})));const s=e.application;return null==s?null:s}),void 0,void 0,void 0);class Tn extends pt{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class Nn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class Mn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DefaultChecked","DefaultValue","Accept","AcceptCharset","AccessKey","Action","AllowFullScreen","AllowTransparency","Alt","aria-atomic","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","Async","AutoComplete","AutoFocus","AutoPlay","Capture","CellPadding","CellSpacing","CharSet","Challenge","Checked","ClassID","ClassName","className","Cols","ColSpan","Content","ContentEditable","ContextMenu","Controls","Coords","CrossOrigin","data-toggle","DateTime","Default","Defer","Dir","Disabled","Download","Draggable","EncType","Form","FormAction","FormEncType","FormMethod","FormNoValidate","FormTarget","FrameBorder","Headers","Height","Hidden","High","Href","HrefLang","HtmlFor","HttpEquiv","Icon","Id","InputMode","Integrity","Is","KeyParams","KeyType","Kind","Label","Lang","List","Loop","Low","Manifest","MarginHeight","MarginWidth","Max","MaxLength","Media","MediaGroup","Method","Min","MinLength","Multiple","Muted","Name","NoValidate","Open","Optimum","Pattern","Placeholder","Poster","Preload","RadioGroup","ReadOnly","Rel","Required","Role","Rows","RowSpan","Sandbox","Scope","Scoped","Scrolling","Seamless","Selected","Shape","Size","Sizes","Span","SpellCheck","Src","SrcDoc","SrcLang","SrcSet","Start","Step","Summary","TabIndex","Target","Title","Type","UseMap","Value","value","Width","Wmode","Wrap","About","Datatype","Inlist","Prefix","Property","Resource","Typeof","Vocab","AutoCapitalize","AutoCorrect","AutoSave","ItemProp","ItemScope","ItemType","ItemID","ItemRef","Results","Security","Unselectable","Custom"]}}function Pn(e){return function(e,n){return new Mn(64,hn(((e,t)=>e+" "+t),"",(r=e=>{const t=e[0];return e[1]&&"string"==typeof(n=t)&&0!==n.length?t:void 0;var n},o=n,_n((()=>sn(o)),(e=>{let t;for(;null==t&&e["System.Collections.IEnumerator.MoveNext"]();)t=r(e["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}),(e=>{t(e)})))));var r,o}(0,e)}function Un(e,t,n){Yt((n=>{try{n(t)}catch(t){e(t)}}),n)}function Dn(){return Vt()}function Rn(e,t){return Zt((t=>n=>{t((t=>{n(e(t))}))}),t)}function Hn(e){return qt((t=>{t(e)}))}function Ln(e,t,n,r){return qt((o=>{e(t).then((e=>o(n(e)))).catch((e=>o(r(e))))}))}function jn(e,t,n,r,o){const i=function(e,t,n,r){const o=0|g(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|g(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return cn((()=>{return t=i,n=e,ln((()=>function(e,t){let n,r=t;return on((()=>{if(null!=n){const e=n[0];return n[1],e}return en()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Fn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Gn{constructor(e){var t,n;this.state=new Fn(0,(t=new Array(v(p,e,10)),n=v(p,e,10),t.fill(null,0,0+n)),0)}}function Wn(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Fn(0,o,n):new Fn(1,o,n,i),E(o[r])}}function Vn(e,n){const r=e.state;if(1===r.tag){const u=0|r.fields[1],l=0|r.fields[2],s=r.fields[0];s[u]=n;const c=(u+1)%s.length|0;e.state=c===l?new Fn(1,(o=l,i=s,Array.from(cn((()=>dn(mn(o,i),cn((()=>{return dn((e=o,n=i,r=()=>sn(n),u=(t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return E(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Xt+"\\nParameter name: source")}},l=e=>{t(e)},ln((()=>{let e=-1;return un(r,(t=>(e=e+1|0,u(e,t))),l)}))),cn((()=>{return e=e=>fn(null),0,1,r=i.length,n=jn(0,1,r,0,((e,t)=>e+t)),cn((()=>an(function(e,n){return _n((()=>sn(n)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?E(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{t(e)}))}(e,n))));var e,n,r})));var e,n,r,u,l}))))))),s.length,0):new Fn(1,s,c,l)}else{const t=0|r.fields[1],o=r.fields[0];o[t]=n;const i=(t+1)%o.length|0;e.state=new Fn(1,o,i,t)}var o,i}class qn extends pt{constructor(e,t,n,r,o,i,u){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=u}}function zn(n,r){const i=r.init(n),u=i[0],l=new Gn(10);let s=!1,c=u;const a=function(e,t,n){if(null!=t){if(y in t){t=t[y];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return b(n,1,t)}}(0,r.syncDispatch,[e=>{if(s)Vn(l,e);else{s=!0;let t=E(e);for(;null!=t;){const e=k(t);try{const t=r.update(e,c),n=t[0];r.setState(n,a),Un((t=>{r.onError([At(Ot("Error in command while handling: %A"))(e),t])}),a,t[1]),c=n}catch(t){r.onError([At(Ot("Unable to process the message: %A"))(e),t])}t=Wn(l)}s=!1}}]);r.setState(u,a),Un((e=>{r.onError(["Error intitializing:",e])}),a,function(n){const r=Lt();let i=r;const u=e=>{i=Jt(((e,t)=>{const n=new Rt(t,void 0);return e.tail=n,n}),i,e)};if(e(n))n.forEach(u);else if(n instanceof Rt)Yt(u,n);else{const e=o(n);try{for(;e["System.Collections.IEnumerator.MoveNext"]();)u(e["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{t(e)}}const l=i,s=Lt();return l.tail=s,Wt(r)}(Kt([(()=>{try{return r.subscribe(u)}catch(e){return r.onError(["Unable to subscribe:",e]),Dn()}})(),i[1]])))}class $n extends pt{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Bn extends B{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}class Jn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Token"]}}class Yn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["QueryString"]}}class Kn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function Zn(e){let t,n,r;switch(zt(e)?t=0:"oidc"===$t(e)?zt(Bt(e))?t=3:"callback"===$t(Bt(e))?zt(Bt(Bt(e)))?t=3:zt(Bt(Bt(Bt(e))))?(t=1,n=$t(Bt(Bt(e)))):t=3:"silent-refresh"===$t(Bt(e))?zt(Bt(Bt(e)))?t=3:zt(Bt(Bt(Bt(e))))?(t=2,r=$t(Bt(Bt(e)))):t=3:t=3:t=3,t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new Kn(0);{const e=n;return pn((e=>{!function(e,t){sessionStorage.setItem("success-redirection-url",t)}(0,e)}),x(t.get("success-redirection-url"))),new Kn(1,new Jn(0,e))}}case 1:return new Kn(2,new Yn(0,n));case 2:return new Kn(3,new Yn(0,r));case 3:return new Kn(4)}}class Qn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class Xn extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class er extends pt{constructor(e){super(),this.AccessToken=e}}function tr(e){return new er(e.access_token)}class nr extends pt{constructor(e){super(),this.Auth=e}}class rr extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}class or extends ht{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}const ir=(()=>{const e={};return e.store=E(window.sessionStorage),e})();function ur(){return new UserManager(function(){const e=function(e){return Mt(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=T,t.client_id="apollo-bank-details-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=E(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(ir),t}())}function lr(e){return e.length>0?Dt(e,1):e}function sr(e){return ur().signinRedirect(E({extraQueryParams:{irt:e.fields[0]}}))}function cr(e){return ur().signinRedirectCallback(lr(e.fields[0]))}function ar(e){return ur().signinSilentCallback(lr(e.fields[0]))}function fr(){return ur().getUser()}var _r;!function(e){zn(void 0,e)}(("bank-details-app",_r=function(e,t,n){return new qn((function(){const e=Zn(On(window.location.hash,1)),t=function(){const e=Zn(On(window.location.hash,1));return[new nr(new Qn(0)),1===e.tag?Hn(new rr(1,new Xn(0),e.fields[0])):2===e.tag?Hn(new rr(2,new Xn(0),e.fields[0])):3===e.tag?Hn(new rr(3,new Xn(0),e.fields[0])):Hn(new rr(0,new Xn(0)))]}();return[new Tn(e,t[0]),Rn((e=>new Nn(1,e)),t[1])]}),t,(e=>Dn()),n,((e,t)=>{n(e,t)}),(e=>{var t,n;t=e[0],n=e[1],console.error(E(t),n)}),w(2,(e=>e)))}(0,(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new nr(new Qn(2,new or(1,e))),Dn()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(At(Ot("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,Dn()]:[new nr(new Qn(1)),(r=sr,o=e.fields[1],i=t=>new rr(1,new Xn(1,new or(1,t.message)),e.fields[1]),qt((e=>{r(o).catch((t=>{e(i(t))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(At(Ot("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new nr(new Qn(2,new or(0,tr(e.fields[0].fields[0].fields[0])))),qt((e=>{!function(e,t,n){history.pushState(void 0,"",In(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(qt(""))}))]:[new nr(new Qn(1)),Ln(cr,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new rr(2,new Xn(1,new or(0,t)),e.fields[1]))),(t=>new rr(2,new Xn(1,new or(1,t.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(At(Ot("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new nr(new Qn(2,new or(0,tr(e.fields[0].fields[0].fields[0])))),Dn()]:[t,Ln(ar,e.fields[1],(t=>new rr(3,new Xn(1,new or(0,t)),e.fields[1])),(t=>new rr(3,new Xn(1,new or(1,t.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(At(Ot("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new nr(new Qn(2,new or(0,tr(e.fields[0].fields[0].fields[0])))),Dn()]:[new nr(new Qn(1)),Ln(fr,void 0,(e=>new rr(0,new Xn(1,new or(0,e)))),(e=>new rr(0,new Xn(1,new or(1,e.message)))))];var r,o,i}(e.fields[0],t.Auth);return[new Tn(t.CurrentPage,n[0]),Rn((e=>new Nn(1,e)),n[1])]}return[new Tn(Zn(e.fields[0]),t.Auth),Dn()]}),(function(e,t){let n,r,o;const i=[N,T];let u,l;switch(null!=i[0]&&null!=i[1]?(u=0,l=i[0]):u=1,u){case 0:switch(e.CurrentPage.tag){case 1:case 2:case 3:o=q("div",{},"Please wait...");break;case 4:o=q("h1",{},"Not found");break;default:{const t=e.Auth.Auth;let n,r;switch(2===t.tag&&0===t.fields[0].tag?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:s=[],o=q("bank-component",gt([new vt(0,l),new vt(1,r.AccessToken)],1),...s);break;case 1:o=q("h1",{},"Unauthorised")}}}break;case 1:o=q("h1",{},"Invalid attribute configuration")}var s;return An(function(e){const t={};for(const n of e)t[n[0]]=n[1];return t}(Kt([["onUrlChanged",e=>{t(new Nn(0,e))}],(n=qt((r=[Pn([["container-lg",!0],["p-5",!0]])],q("div",gt(r,1),o))),["application",q($,{},...n)])])))})),function(e,t,n){return function(e,t){return new qn(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}(((r,o)=>{tt(e((e=>t=>e===t),function(e){return C(2,e.view)}(n),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){const o=new $n(n,(()=>t(n,r)),e);return q(Bn,o)}(w(2,e),w(2,t),n,r)),"bank-details-app",_r)))})();
|
2
2
|
//# sourceMappingURL=bank-details-app.js.map
|