@flarehr/superhero-bank-details 0.1.1219 → 0.1.1227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e,n,t,r,o,i,u={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return h(n,s,o,i,null)}function h(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function d(e){return e.children}function _(e,n){this.props=e,this.context=n}function p(e,n){if(null==n)return e.__?p(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?p(e):null}function m(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 m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!w.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||setTimeout)(w)}function w(){for(var e;w.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=c({},o)).__v=o.__v+1,T(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?p(o):i,o.__h),I(t,o),o.__e!=i&&m(o)))}))}function y(e,n,t,r,o,i,l,c,a,f){var _,m,g,w,y,b,S,E=r&&r.__k||s,x=E.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(w=t.__k[_]=null==(w=n[_])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(d,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)){if(w.__=t,w.__b=t.__b+1,null===(g=E[_])||g&&w.key==g.key&&w.type===g.type)E[_]=void 0;else for(m=0;m<x;m++){if((g=E[m])&&w.key==g.key&&w.type===g.type){E[m]=void 0;break}g=null}T(e,w,g=g||u,o,i,l,c,a,f),y=w.__e,(m=w.ref)&&g.ref!=m&&(S||(S=[]),g.ref&&S.push(g.ref,null,w),S.push(m,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===g.__k?w.__d=a=v(w,a,e):a=C(e,w,g,E,y,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=p(g))}for(t.__e=b,_=x;_--;)null!=E[_]&&N(E[_],E[_]);if(S)for(_=0;_<S.length;_++)M(S[_],S[++_],S[++_])}function v(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?v(r,n,t):C(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function S(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||l.test(n)?t:t+"px"}function E(e,n,t,r,o){var i;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||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?k:x,i):e.removeEventListener(n,i?k:x,i);else if("dangerouslySetInnerHTML"!==n){if(o)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&&-1==n.indexOf("-")?e.removeAttribute(n):e.setAttribute(n,t))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function k(e){this.l[e.type+!0](n.event?n.event(e):e)}function T(e,t,r,o,i,u,s,l,a){var f,h,p,m,g,w,v,b,C,S,E,x,k,T,I,M=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(a=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof M){if(b=t.props,C=(f=M.contextType)&&o[f.__c],S=f?C?C.props.value:f.__:o,r.__c?v=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(b,S):(t.__c=h=new _(b,S),h.constructor=M,h.render=A),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=S,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=c({},h.__s)),c(h.__s,M.getDerivedStateFromProps(b,h.__s))),m=h.props,g=h.state,p)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&b!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,S)||t.__v===r.__v){for(h.props=b,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,w)}))}if(h.context=S,h.props=b,h.__v=t,h.__P=e,x=n.__r,k=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(o=c(c({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(m,g)),I=null!=f&&f.type===d&&null==f.key?f.props.children:f,y(e,Array.isArray(I)?I:[I],t,r,o,i,u,s,l,a),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=O(r.__e,t,r,o,i,u,s,a);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(a||null!=u)&&(t.__e=l,t.__h=!!a,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function I(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function O(n,t,r,o,i,s,l,c){var f,h,d,_=r.props,m=t.props,g=t.type,w=0;if("svg"===g&&(i=!0),null!=s)for(;w<s.length;w++)if((f=s[w])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){n=f,s[w]=null;break}if(null==n){if(null===g)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)_===m||c&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),h=(_=r.props||u).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!c){if(null!=s)for(_={},w=0;w<n.attributes.length;w++)_[n.attributes[w].name]=n.attributes[w].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||E(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||E(e,i,n[i],t[i],r)}(n,m,_,i,c),d)t.__k=[];else if(w=t.props.children,y(n,Array.isArray(w)?w:[w],t,r,o,i&&"foreignObject"!==g,s,l,s?s[0]:r.__k&&p(r,0),c),null!=s)for(w=s.length;w--;)null!=s[w]&&a(s[w]);c||("value"in m&&void 0!==(w=m.value)&&(w!==n.value||"progress"===g&&!w||"option"===g&&w!==_.value)&&E(n,"value",w,_.value,!1),"checked"in m&&void 0!==(w=m.checked)&&w!==n.checked&&E(n,"checked",w,_.checked,!1))}return n}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function N(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||a(e.__e),e.__=e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function D(t,r,o){var i,s,l;n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=f(d,null,[t]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:s?s.__e:r.firstChild,i),I(l,t)}function R(e,n){D(e,n,R)}function P(n,t,r){var o,i,u,s=c({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),h(n.type,s,o||n.key,i||n.ref,null)}e=s.slice,n={__e:function(e,n,t,r){for(var o,i,u;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),u=o.__d),u)return o.__E=o}catch(n){e=n}throw e}},t=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},t),this.props)),e&&c(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),g(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},_.prototype.render=d,r=[],w.__r=0,i=0;var G,U,$,H,F=0,j=[],B=[],L=n.__b,V=n.__r,q=n.diffed,W=n.__c,z=n.unmount;function J(e,t){n.__h&&n.__h(U,e,F||t),F=0;var r=U.__H||(U.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:B}),r.__[e]}function Z(e){return F=1,Y(ue,e)}function Y(e,n,t){var r=J(G++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ue(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=U,!U.u)){U.u=!0;var o=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,n,t){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,n,t);var u=!1;return i.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}})),!(!u&&r.__c.props===e)&&(!o||o.call(this,e,n,t))}}return r.__N||r.__}function X(e,t){var r=J(G++,3);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__H.__h.push(r))}function K(e,t){var r=J(G++,4);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__h.push(r))}function Q(e,n){var t=J(G++,7);return ie(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function ee(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){U=null,L&&L(e)},n.__r=function(e){V&&V(e),G=0;var n=(U=e.__c).__H;n&&($===U?(n.__h=[],U.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(n.__h.forEach(re),n.__h.forEach(oe),n.__h=[])),$=U},n.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||te)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),$=U=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),W&&W(e,t)},n.unmount=function(e){z&&z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var ne="function"==typeof requestAnimationFrame;function te(e){var n,t=function(){clearTimeout(r),ne&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);ne&&(n=requestAnimationFrame(t))}function re(e){var n=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=n}function oe(e){var n=U;e.__c=e.__(),U=n}function ie(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ue(e,n){return"function"==typeof n?n(e):n}function se(e,n){for(var t in n)e[t]=n[t];return e}function le(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 ce(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function ae(e){this.props=e}(ae.prototype=new _).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,n){return le(this.props,e)||le(this.state,n)};var fe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,de=function(e,n){return null==e?null:b(b(e).map(n))},_e={map:de,forEach:de,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},pe=n.__e;n.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);pe(e,n,t,r)};var me=n.unmount;function ge(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=se({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ge(e,n,t)}))),e}function we(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return we(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function ye(){this.__u=0,this.t=null,this.__b=null}function ve(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function be(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),me&&me(e)},(ye.prototype=new _).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=ve(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=we(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},ye.prototype.componentWillUnmount=function(){this.t=[]},ye.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]=ge(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&f(d,null,e.fallback);return o&&(o.__h=null),[f(d,null,n.__a?null:e.children),o]};var Ce=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 Se(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var n=this,t=e.i;n.componentWillUnmount=function(){D(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)}}),D(f(Se,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(be.prototype=new _).__a=function(e){var n=this,t=ve(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ce(n,e,r)):o()};t?t(i):i()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(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},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ce(e,t,n)}))};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Te="undefined"!=typeof document,Ie=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Oe=n.event;function Me(){}function Ne(){return this.cancelBubble}function Ae(){return this.defaultPrevented}n.event=function(e){return Oe&&(e=Oe(e)),e.persist=Me,e.isPropagationStopped=Ne,e.isDefaultPrevented=Ae,e.nativeEvent=e};var De,Re={configurable:!0,get:function(){return this.class}},Pe=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Te&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Ie(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(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,t.class!=t.className&&(Re.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Re))}e.$$typeof=xe,Pe&&Pe(e)};var Ge=n.__r;n.__r=function(e){Ge&&Ge(e),De=e.__c};var Ue={ReactCurrentDispatcher:{current:{readContext:function(e){return De.__n[e.__c].props.value}}}};function $e(e){return!!e&&e.$$typeof===xe}function He(e){e()}var Fe={useState:Z,useId:function(){var e=J(G++,11);if(!e.__){for(var n=U.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:Y,useEffect:X,useLayoutEffect:K,useInsertionEffect:K,useTransition:function(){return[!1,He]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=Z({h:{__:t,v:n}}),o=r[0].h,i=r[1];return K((function(){o.__=t,o.v=n,ce(o.__,n())||i({h:o})}),[e,t,n]),X((function(){return ce(o.__,o.v())||i({h:o}),e((function(){ce(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:He,useRef:function(e){return F=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){F=6,K((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:Q,useCallback:function(e,n){return F=8,Q((function(){return e}),n)},useContext:function(e){var n=U.context[e.__c],t=J(G++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(U)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:_e,render:function(e,n,t){return null==n.__k&&(n.textContent=""),D(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return R(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,n){var t=f(Ee,{__v:e,i:n});return t.containerInfo=n,t},createElement:f,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(g)},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 f.bind(null,e)},cloneElement:function(e){return $e(e)?P.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:$e,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ae,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:le(this.props,e)}function r(n){return this.shouldComponentUpdate=t,f(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n){var t=se({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=he,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:d,Suspense:ye,SuspenseList:be,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return f(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ue};const je=Fe,Be=f;function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){return null!=e&&"function"==typeof e.GetHashCode}function qe(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function We(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class ze{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class Je{constructor(e){this.iter=e,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.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ze(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new Je(e[Symbol.iterator]())}function Ye(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Xe{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Ke(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Qe(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function en(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class nn{static id(e){return nn.idMap.has(e)||nn.idMap.set(e,++nn.count),nn.idMap.get(e)}}function tn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function rn(e){return 2654435761*e|0}function on(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function un(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return rn(e);case"string":return tn(e);default:if(Ve(e))return e.GetHashCode();if(Le(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=un(e[r]);return on(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){const n=Object.values(e).map((e=>un(e)));return on(n)}return rn(nn.id(e))}}function sn(e){return function(e){return Ve(e)?e.GetHashCode():function(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return rn(e);case"string":return tn(e);default:return rn(nn.id(e))}}(e)}(e)}function ln(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 cn(e,n){return ln(e,n,an)}function an(e,n){var t;return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):Le(e)?Le(n)&&cn(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===fn(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.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 o=0;o<t.length;o++)if(t[o]!==r[o]||!an(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function fn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Qe(e),r=n.getTime()+Qe(n)),t===r?0:t<r?-1:1}function hn(e,n){return e===n?0:e<n?-1:1}function dn(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,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,_n)}function _n(e,n){var t;return e===n?0:null==e?null==n?0:-1:null==n?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(n):Le(e)?Le(n)?dn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?fn(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.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 o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=_n(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function pn(e){const n={};for(const t of e)n[t[0]]=t[1];return n}nn.idMap=new WeakMap,nn.count=0;const mn=Symbol("curried");function gn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[mn]=n,t}function wn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Ke(~~(e/36e5),2)+":"+Ke(t,2)}function yn(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 vn(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;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 i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;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:Ke(r,n.length)}))}function bn(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+wn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return vn(i,n,!0);switch(n){case"D":case"d":return yn(i,"first");case"T":case"t":return yn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+wn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return vn(e,n,t);switch(n){case"D":case"d":return t?yn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?yn(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 Ke(e.getFullYear(),4)+"-"+Ke(e.getMonth()+1,2)+"-"+Ke(e.getDate(),2)+"T"+Ke(e.getHours(),2)+":"+Ke(e.getMinutes(),2)+":"+Ke(e.getSeconds(),2)+"."+Ke(e.getMilliseconds(),3)+(n?wn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function Cn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Sn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function En(e,n){try{return n.contents=function(e,n=!1){const[t,r]=Sn(e),o=null!=r?n&&"Z"===r?1:2:0;return Cn(t.getTime(),o)}(e),!0}catch(e){return!1}}const xn=Symbol("numeric");function kn(e){return"number"==typeof e||(null==e?void 0:e[xn])}function Tn(e,n){return"number"==typeof e?e*n:e[xn]().multiply(n)}function In(e,n){return"number"==typeof e?e.toFixed(n):e[xn]().toFixed(n)}function On(e,n){return"number"==typeof e?e.toPrecision(n):e[xn]().toPrecision(n)}function Mn(e,n){return"number"==typeof e?e.toExponential(n):e[xn]().toExponential(n)}function Nn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[xn]().toHex()}function An(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Dn(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Rn(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=Rn(r);else{if(100===n){t+="; ...";break}t+="; "+Rn(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+Rn(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Pn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t,r=!0;return 1===n.length?(t=Rn(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>Rn(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>un(e)));return e.splice(0,0,rn(this.tag)),on(e)}Equals(e){return this===e||!!We(this,e)&&this.tag===e.tag&&cn(this.fields,e.fields)}CompareTo(e){return this===e?0:We(this,e)?this.tag===e.tag?dn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Gn{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+" = "+Rn(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>un(e)));return on(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!an(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=_n(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Un{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 $n{constructor(e){this.message=e}}function Hn(e){return function(e){return e instanceof $n||e instanceof Error}(e)?e:new Error(String(e))}const Fn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Bn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Ln(e){return{input:e,cont:(n=e,e=>{Fn.lastIndex=0;const t=[],r=[];let o=0,i=Fn.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Fn.lastIndex,Fn.lastIndex-=1,i=Fn.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Jn(e,t,r))})};var n}function Vn(e,n){return"string"==typeof n?e(n):n.cont(e)}function qn(e){return Vn((e=>e),e)}function Wn(e){return Vn((e=>{throw new Error(e)}),e)}function zn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",kn(e))switch("x"!==o.toLowerCase()&&(Bn(e,0)?(e=Tn(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=In(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?On(e,r):On(e);break;case"e":case"E":e=null!=r?Mn(e,r):Mn(e);break;case"x":e=Nn(e);break;case"X":e=Nn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?bn(e):Rn(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Yn(e,t-i.length,u,o)):Yn(i+e,t,u,o)}return e}function Jn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=zn(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):Jn(e,s,l,u,o)}}function Zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Yn(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function Xn(e,n,t){return Yn(e,n,t)}function Kn(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(An),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}const Qn="Collection was empty.";class et{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return un(this.value)}Equals(e){return null!=e&&an(this.value,e instanceof et?e.value:e)}CompareTo(e){return null==e?1:_n(this.value,e instanceof et?e.value:e)}}function nt(e){return null==e||e instanceof et?new et(e):e}function tt(e){if(null==e)throw new Error("Option has no value");return e instanceof et?e.value:e}function rt(e,n){return null!=e?tt(e):n}function ot(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function it(e,n,t){const r=0|n.length,o=function(e,n){return"function"==typeof e?new e(n):new Array(n)}(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function ut(e,n,t){return t.reduce(e,n)}function st(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class lt extends Gn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+Zn("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i;if(an(t.head,r.head)){e=u,n=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+un(i.head)+631*r,t=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const u=o,s=i,l=0|_n(t.head,r.head);if(0===l){e=u,n=s;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ct(this)}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ze(this)}}class ct{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,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function at(){return new lt(null,void 0)}function ft(e,n){return new lt(e,n)}function ht(e){return null==e.tail}function dt(e){if(null!=e.tail)return e.head;throw new Error(Qn+"\\nParameter name: list")}function _t(e){const n=e.tail;if(null!=n)return n;throw new Error(Qn+"\\nParameter name: list")}function pt(){return at()}function mt(e,n){return ft(e,n)}function gt(e){return ft(e,at())}function wt(e){return ht(e)}function yt(e){return dt(e)}function vt(e){return _t(e)}function bt(e){const n=0|function(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}(e),t=ot(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ht(o))break;t[r]=dt(o),e=r+1,n=_t(o)}})(0,e),t}function Ct(e,n,t){let r=n,o=t;for(;!ht(o);)r=e(r,dt(o)),o=_t(o);return r}function St(e){return Ct(((e,n)=>ft(n,e)),at(),e)}function Et(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=ft(e[n],t);return t}function xt(e){return Et(e,at())}function kt(e,n){return Ct(((e,n)=>ft(n,e)),n,St(e))}class Tt{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class It{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return $t(this)}GetHashCode(){return Mt(this)}Equals(e){return Nt(this,e)}}function Ot(e){return null!=e.generics?e.generics:[]}function Mt(e){return on([tn(e.fullname),...Ot(e).map(Mt)])}function Nt(e,n){return""===e.fullname?""===n.fullname&&ln(Jt(e),Jt(n),(([e,n],[t,r])=>e===t&&Nt(n,r))):e.fullname===n.fullname&&ln(Ot(e),Ot(n),Nt)}function At(...e){return new It("",void 0,void 0,void 0,(()=>e))}const Dt=new It("System.Object"),Rt=(new It("Microsoft.FSharp.Core.Unit"),new It("System.Char"),new It("System.String")),Pt=new It("System.Boolean"),Gt=(new It("System.SByte"),new It("System.Byte"),new It("System.Int16"),new It("System.UInt16"),new It("System.Int32"));function Ut(e){if(Array.isArray(e))return e[0];if(e instanceof It){const n=Ft(e);if(null!=n)return Ut(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function $t(e){const n=Ft(e);return null!=n?$t(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>$t(e))).join(",")+"]"}function Ht(e){return null!=Ft(e)}function Ft(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function jt(e){return null!=e.generics&&e.generics.length>0}function Bt(e){return null!=e.enumCases&&e.enumCases.length>0}function Lt(e){return null==e.generics?e:new It(e.fullname,e.generics.map((()=>Dt)))}function Vt(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}function qt(e){if(Bt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Wt(e,n){const t=parseInt(n,10);return function(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(t)?n:t)[1]}function zt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Zt(e){if(Kt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Yt(e){return e instanceof It?null!=e.cases:e instanceof Pn}function Xt(e){return e instanceof It?null!=e.fields:e instanceof Gn}function Kt(e){return e.fullname.startsWith("System.Tuple")}function Qt(e){return null==e.fields?[]:e.fields}function er(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,n):{}}new It("System.UInt32"),new It("System.Int64"),new It("System.UInt64"),new It("System.Numerics.BigInteger"),new It("System.IntPtr"),new It("System.UIntPtr"),new It("System.Single"),new It("System.Double"),new It("System.Decimal");class nr extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function tr(e,n){return 0===n.tag?new nr(0,[e(n.fields[0])]):new nr(1,[n.fields[0]])}class rr extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class or extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ir{constructor(){this.cache=new Map([])}}function ur(){return new ir}function sr(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function lr(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=function(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Dn(e,u),l=Dn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(sr(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return sr(n)}}ur(),ur();const cr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ar=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,fr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function hr(e,n){try{return n.contents=function(e){function n(e){return e.replace(ar,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(cr.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+An(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(ar.test(t))return n(t);if(fr.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var dr;function _r(e,n){switch(n){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function pr(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&dr.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=_r(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=_r(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function mr(e,n){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function gr(e,n){try{return n.contents=function(e){const[n,t]=Sn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return mr(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(dr||(dr={}));var wr=null;try{wr=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(s){}function yr(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function vr(e){return!0===(e&&e.__isLong__)}yr.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},yr.prototype.Equals=function(e){return zr(this,e)},yr.prototype.CompareTo=function(e){return Xr(this,e)},yr.prototype.toString=function(e){return Lr(this,e)},yr.prototype.toJSON=function(){return Lr(this)},yr.prototype[xn]=function(){const e=this;return{multiply:n=>no(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 Lr(e.unsigned?e:function(e,n,t){return t?function(e,n){return new yr(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 yr(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}}},yr.prototype.__isLong__,Object.defineProperty(yr.prototype,"__isLong__",{value:!0});var br={},Cr={};function Sr(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=Cr[e])?r:(t=xr(e,(0|e)<0?-1:0,!0),o&&(Cr[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=br[e])?r:(t=xr(e,e<0?-1:0,!1),o&&(br[e]=t),t)}function Er(e,n){if(isNaN(e))return n?Rr:Dr;if(n){if(e<0)return Rr;if(e>=Mr)return Hr}else{if(e<=-Nr)return Fr;if(e+1>=Nr)return $r}return e<0?Kr(Er(-e,n)):xr(e%Or|0,e/Or|0,n)}function xr(e,n,t){return new yr(e,n,t)}var kr=Math.pow;function Tr(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Dr;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 Kr(Tr(e.substring(1),n,t));for(var o=Er(kr(t,8)),i=Dr,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=Qr(s<8?no(i,Er(kr(t,s))):i=no(i,o),Er(l))}return i.unsigned=n,i}function Ir(e,n){return"number"==typeof e?Er(e,n):"string"==typeof e?Tr(e,n):xr(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Or=4294967296,Mr=Or*Or,Nr=Mr/2,Ar=Sr(1<<24),Dr=Sr(0),Rr=Sr(0,!0),Pr=Sr(1),Gr=Sr(1,!0),Ur=Sr(-1),$r=xr(-1,2147483647,!1),Hr=xr(-1,-1,!0),Fr=xr(0,-2147483648,!1);function jr(e){return e.unsigned?e.low>>>0:e.low}function Br(e){return e.unsigned?(e.high>>>0)*Or+(e.low>>>0):e.high*Or+(e.low>>>0)}function Lr(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Vr(e))return"0";if(qr(e)){if(zr(e,Fr)){var t=Er(n),r=to(e,t),o=eo(no(r,t),e);return Lr(r,n)+jr(o).toString(n)}return"-"+Lr(Kr(e),n)}for(var i=Er(kr(n,6),e.unsigned),u=e,s="";;){var l=to(u,i),c=(jr(eo(u,no(l,i)))>>>0).toString(n);if(Vr(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function Vr(e){return 0===e.high&&0===e.low}function qr(e){return!e.unsigned&&e.high<0}function Wr(e){return 1==(1&e.low)}function zr(e,n){return vr(n)||(n=Ir(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function Jr(e,n){return Xr(e,n)<0}function Zr(e,n){return Xr(e,n)>0}function Yr(e,n){return Xr(e,n)>=0}function Xr(e,n){if(vr(n)||(n=Ir(n)),zr(e,n))return 0;var t=qr(e),r=qr(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:qr(eo(e,n))?-1:1}function Kr(e){return!e.unsigned&&zr(e,Fr)?Fr:Qr(function(e){return xr(~e.low,~e.high,e.unsigned)}(e),Pr)}function Qr(e,n){vr(n)||(n=Ir(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,xr((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function eo(e,n){return vr(n)||(n=Ir(n)),Qr(e,Kr(n))}function no(e,n){if(Vr(e))return e.unsigned?Rr:Dr;if(vr(n)||(n=Ir(n)),wr)return xr(wr.mul(e.low,e.high,n.low,n.high),wr.get_high(),e.unsigned);if(Vr(n))return e.unsigned?Rr:Dr;if(zr(e,Fr))return Wr(n)?Fr:Dr;if(zr(n,Fr))return Wr(e)?Fr:Dr;if(qr(e))return qr(n)?no(Kr(e),Kr(n)):Kr(no(Kr(e),n));if(qr(n))return Kr(no(e,Kr(n)));if(Jr(e,Ar)&&Jr(n,Ar))return Er(Br(e)*Br(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,xr((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function to(e,n){if(vr(n)||(n=Ir(n)),Vr(n))throw Error("division by zero");var t,r,o;if(wr)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?xr((e.unsigned?wr.div_u:wr.div_s)(e.low,e.high,n.low,n.high),wr.get_high(),e.unsigned):e;if(Vr(e))return e.unsigned?Rr:Dr;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:xr(e.low,e.high,!0)}(n)),Zr(n,e))return Rr;if(Zr(n,function(e,n){if(vr(n)&&(n=jr(n)),0==(n&=63))return e;var t=e.high;return n<32?xr(e.low>>>n|t<<32-n,t>>>n,e.unsigned):xr(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return Gr;o=Rr}else{if(zr(e,Fr))return zr(n,Pr)||zr(n,Ur)?Fr:zr(n,Fr)?Pr:zr(t=function(e,n){return vr(n)&&(n=jr(n)),0==(n&=63)?e:n<32?xr(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):xr(0,e.low<<n-32,e.unsigned)}(to(function(e,n){return vr(n)&&(n=jr(n)),0==(n&=63)?e:n<32?xr(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):xr(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Dr)?qr(n)?Pr:Ur:o=Qr(t,to(r=eo(e,no(n,t)),n));if(zr(n,Fr))return e.unsigned?Rr:Dr;if(qr(e))return qr(n)?to(Kr(e),Kr(n)):Kr(to(Kr(e),n));if(qr(n))return Kr(to(e,Kr(n)));o=Dr}for(r=e;Yr(r,n);){t=Math.max(1,Math.floor(Br(r)/Br(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:kr(2,i-48),s=Er(t),l=no(s,n);qr(l)||Zr(l,r);)l=no(s=Er(t-=u,e.unsigned),n);Vr(s)&&(s=Pr),o=Qr(o,s),r=eo(r,l)}return o}const ro=to,oo=Br;function io(e){return e<0?Math.ceil(e):Math.floor(e)}function uo(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return so(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function so(e){return oo(ro(e,1e4))}function lo(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return uo(n,0,0,0,0)}if(t>0){const n=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,u=+n[4],s=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*uo(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class co{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Ze(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=Rn(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{qe(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class ao{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"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 fo(e,n,t){let r,o=!1,i=nt(e());const u=()=>{if(null!=i){const e=tt(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return function(e,n,t){return new ao(e,n,t)}((()=>(o||function(){throw new Error("Enumeration has not started. Call MoveNext.")}(),null!=r?tt(r):function(){throw new Error("Enumeration already finished.")}())),(()=>{if(o||(o=!0),null!=i){const e=tt(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function ho(e){return function(e){return new co(e)}(e)}function _o(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Ze(e);var n}function po(e,n,t){const r=_o(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function mo(e,n,t){const r=_o(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function go(e,n){mo(((n,t)=>{e(t)}),void 0,n)}function wo(e,n){return t=()=>_o(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?nt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{qe(e)},ho((()=>fo(t,r,o)));var t,r,o}function yo(e,n){return t=()=>_o(n),r=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?nt(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{qe(e)},ho((()=>{let e=-1;return fo(t,(n=>(e=e+1|0,r(e,n))),o)}));var t,r,o}class vo{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}class bo{constructor(e,n){this.k=e,this.v=n}}function Co(e,n){return new bo(e,n)}function So(e){return e.k}function Eo(e){return e.v}class xo extends bo{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function ko(e,n,t,r,o){return new xo(e,n,t,r,o)}function To(e){return e.left}function Io(e){return e.right}function Oo(e){return e.h}function Mo(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof xo){e=Mo(t+1,To(r)),n=Io(r);continue e}return t+1|0}return 0|t}}function No(e){return Mo(0,e)}function Ao(e,n,t,r){let o,i;o=null!=e?e instanceof xo?Oo(e):1:0,i=null!=r?r instanceof xo?Oo(r):1:0;const u=0|(o<i?i:o);return 0===u?Co(n,t):ko(n,t,e,r,u+1)}function Do(e,n,t,r){let o,i,u,s,l,c;if(l=null!=e?e instanceof xo?Oo(e):1:0,c=null!=r?r instanceof xo?Oo(r):1:0,c>l+2){const u=tt(r);if(u instanceof xo){if(o=To(u),(null!=o?(i=o,i instanceof xo?Oo(i):1):0)>l+1){const r=tt(To(u));if(r instanceof xo)return Ao(Ao(e,n,t,To(r)),So(r),Eo(r),Ao(Io(r),So(u),Eo(u),Io(u)));throw new Error("internal error: Map.rebalance")}return Ao(Ao(e,n,t,To(u)),So(u),Eo(u),Io(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=tt(e);if(o instanceof xo){if(u=Io(o),(null!=u?(s=u,s instanceof xo?Oo(s):1):0)>c+1){const e=tt(Io(o));if(e instanceof xo)return Ao(Ao(To(o),So(o),Eo(o),To(e)),So(e),Eo(e),Ao(Io(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Ao(To(o),So(o),Eo(o),Ao(Io(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Ao(e,n,t,r)}function Ro(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,So(o));return o instanceof xo?i<0?Do(Ro(e,n,t,To(o)),So(o),Eo(o),Io(o)):0===i?ko(n,t,To(o),Io(o),Oo(o)):Do(To(o),So(o),Eo(o),Ro(e,n,t,Io(o))):i<0?ko(n,t,void 0,r,2):0===i?Co(n,t):ko(n,t,r,void 0,2)}return Co(n,t)}function Po(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,So(i));if(0===u)return nt(Eo(i));if(i instanceof xo){e=r,n=o,t=u<0?To(i):Io(i);continue e}return}return}}function Go(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof xo){Go(t,To(r)),t(So(r),Eo(r)),e=t,n=Io(r);continue e}t(So(r),Eo(r))}break}}function Uo(e,n){Go(e,n)}function $o(e,n){if(null!=n){const t=n;if(t instanceof xo){const n=$o(e,To(t)),r=e(So(t),Eo(t)),o=$o(e,Io(t));return ko(So(t),r,n,o,Oo(t))}return Co(So(t),e(So(t),Eo(t)))}}function Ho(e,n){return $o(e,n)}function Fo(e,n){if(Le(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ro(e,o[0],o[1],t)}return t}(e,n);if(n instanceof lt)return function(e,n){return Ct(((n,t)=>Ro(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Ze(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Ro(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{qe(t)}}}class jo extends Gn{constructor(e,n){super(),this.stack=e,this.started=n}}function Bo(e){e:for(;;){const n=e;if(wt(n))return pt();{const t=vt(n),r=yt(n);if(null!=r){const o=r;if(o instanceof xo){e=Et([To(o),Co(So(o),Eo(o)),Io(o)],t);continue e}return n}e=t;continue e}}}function Lo(e){return new jo(Bo(gt(e)),!1)}function Vo(e){if(e.started){const n=e.stack;if(wt(n))return function(){throw new Error("enumeration already finished")}();if(null!=yt(n)){const e=yt(n);if(e instanceof xo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[So(e),Eo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function qo(e){let n=Lo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Vo(n),"System.Collections.IEnumerator.get_Current":()=>Vo(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(wt(n))return!1;if(null!=yt(n)){if(yt(n)instanceof xo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Bo(vt(n)),!wt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!wt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Lo(e)},Dispose(){}}}class Wo{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,un(e[0])),t=0|n(t,un(e[1]))}}finally{qe(r)}return 0|t}(this)}Equals(e){if(!(e instanceof Wo))return!1;{const n=Ze(this);try{const t=Ze(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!an(r[0],o[0])||!an(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(t)}}finally{qe(n)}}}toString(){return"map ["+Zn("; ",wo((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(jn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(kn(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=In(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?On(s,i):On(s);break;case"e":case"E":s=null!=i?Mn(s,i):Mn(s);break;case"p":case"P":i=null!=i?i:2,s=In(Tn(s,100),i)+" %";break;case"d":case"D":s=null!=i?Xn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Xn(Nn(s),i,"0"):Nn(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Bn(s,0)&&(s=Tn(s,-1),e="-"),r=null==r?"":r.substring(1),s=In(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Xn(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const u=r.replace(/#+$/,"").length;if(u>i.length?i=function(e,n,t){return Yn(e,n,"0",!0)}(i,u):u<i.length&&(i=i.substring(0,u)+i.substring(u).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o})),s=e+s}}else s=s instanceof Date?bn(s,u||o):Rn(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Yn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return qo(this.tree)}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return qo(this.tree)}CompareTo(e){const n=this;if(e instanceof Wo)return 0|function(e,n,t){const r=_o(n);try{const n=_o(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{qe(n)}}finally{qe(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:_n(e[1],t[1]))}),n,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Yo(this,e[0])&&an(Jo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Uo(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Zo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Zo(this)}get size(){return 0|Zo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return wo((e=>[e[0],e[1]]),this)}get(e){return Jo(this,e)}has(e){return Yo(this,e)}keys(){return wo((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return wo((e=>e[1]),this)}forEach(e,n){const t=this;go((n=>{e(n[1],n[0],t)}),t)}}function zo(e,n){return new Wo(e,n)}function Jo(e,n){return function(e,n,t){const r=Po(e,n,t);if(null==r)throw new Error;return tt(r)}(e.comparer,n,e.tree)}function Zo(e){return No(e.tree)}function Yo(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,So(i));if(i instanceof xo){if(u<0){e=r,n=o,t=To(i);continue e}if(0===u)return!0;e=r,n=o,t=Io(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function Xo(e,n,t){return function(e,n,t){return zo(e.comparer,Ro(e.comparer,n,t,e.tree))}(t,e,n)}function Ko(e,n){return function(e,n){return Po(e.comparer,n,e.tree)}(n,e)}function Qo(e,n){return function(e,n){return zo(e.comparer,Ho(n,e.tree))}(n,e)}function ei(e){return function(e){return zo(e,void 0)}(e)}class ni{constructor(e){this.k=e}}function ti(e){return new ni(e)}function ri(e){return e.k}class oi extends ni{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function ii(e,n,t,r){return new oi(e,n,t,r)}function ui(e){return e.left}function si(e){return e.right}function li(e){return e.h}function ci(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof oi){e=ui(r),n=ci(si(r),t+1);continue e}return t+1|0}return 0|t}}function ai(e){return ci(e,0)}function fi(e,n,t){let r,o;r=null!=e?e instanceof oi?li(e):1:0,o=null!=t?t instanceof oi?li(t):1:0;const i=0|(r<o?o:r);return 0===i?ti(n):ii(n,e,t,i+1)}function hi(e,n,t){let r,o,i,u,s,l;if(s=null!=e?e instanceof oi?li(e):1:0,l=null!=t?t instanceof oi?li(t):1:0,l>s+2){const i=tt(t);if(i instanceof oi){if(r=ui(i),(null!=r?(o=r,o instanceof oi?li(o):1):0)>s+1){const t=tt(ui(i));if(t instanceof oi)return fi(fi(e,n,ui(t)),ri(t),fi(si(t),ri(i),si(i)));throw new Error("internal error: Set.rebalance")}return fi(fi(e,n,ui(i)),ri(i),si(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=tt(e);if(r instanceof oi){if(i=si(r),(null!=i?(u=i,u instanceof oi?li(u):1):0)>l+1){const e=tt(si(r));if(e instanceof oi)return fi(fi(ui(r),ri(r),ui(e)),ri(e),fi(si(e),n,t));throw new Error("internal error: Set.rebalance")}return fi(ui(r),ri(r),fi(si(r),n,t))}throw new Error("internal error: Set.rebalance")}return fi(e,n,t)}function di(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ri(r));if(r instanceof oi)return o<0?hi(di(e,n,ui(r)),ri(r),si(r)):0===o?t:hi(ui(r),ri(r),di(e,n,si(r)));{const o=0|e.Compare(n,ri(r));return o<0?ii(n,void 0,t,2):0===o?t:ii(n,t,void 0,2)}}return ti(n)}function _i(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,ri(i));if(i instanceof oi){if(u<0){e=r,n=o,t=ui(i);continue e}if(0===u)return!0;e=r,n=o,t=si(i);continue e}return 0===u}return!1}}function pi(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof oi){pi(t,ui(r)),t(ri(r)),e=t,n=si(r);continue e}t(ri(r))}break}}class mi extends Gn{constructor(e,n){super(),this.stack=e,this.started=n}}function gi(e){e:for(;;){const n=e;if(wt(n))return pt();{const t=yt(n),r=vt(n);if(null!=t){const o=t;if(o instanceof oi){e=Et([ui(o),ti(ri(o)),si(o)],r);continue e}return n}e=r;continue e}}}function wi(e){return new mi(gi(gt(e)),!1)}function yi(e){if(e.started){const n=e.stack;if(wt(n))return function(){throw new Error("Enumeration already started")}();if(null!=yt(n))return ri(yt(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function vi(e){let n=wi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>yi(n),"System.Collections.IEnumerator.get_Current":()=>yi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(wt(n))return!1;if(null!=yt(n)){if(yt(n)instanceof oi)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=gi(vt(n)),!wt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!wt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=wi(e)},Dispose(){}}}function bi(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(wt(o))return wt(i)?0:-1;if(wt(i))return 1;if(null!=yt(i))if(null!=yt(o)){const u=yt(o),s=yt(i);if(u instanceof oi)if(null==ui(u)){if(!(s instanceof oi)){const l=0|r.Compare(ri(u),ri(s));if(0!==l)return 0|l;e=r,n=mt(si(u),vt(o)),t=mt(void 0,vt(i));continue e}if(null==ui(s)){const l=0|r.Compare(ri(u),ri(s));if(0!==l)return 0|l;e=r,n=mt(si(u),vt(o)),t=mt(si(s),vt(i));continue e}{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof oi){e=r,n=Et([ui(l),ii(ri(l),void 0,si(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ti(ri(l))],s),t=i;continue e;case 1:if(a instanceof oi){e=r,n=o,t=Et([ui(a),ii(ri(a),void 0,si(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ti(ri(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof oi){e=r,n=Et([ui(l),ii(ri(l),void 0,si(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ti(ri(l))],s),t=i;continue e;case 1:if(a instanceof oi){e=r,n=o,t=Et([ui(a),ii(ri(a),void 0,si(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ti(ri(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(s instanceof oi)){const l=0|r.Compare(ri(u),ri(s));if(0!==l)return 0|l;e=r,n=vt(o),t=vt(i);continue e}if(null==ui(s)){const l=0|r.Compare(ri(u),ri(s));if(0!==l)return 0|l;e=r,n=mt(void 0,vt(o)),t=mt(si(s),vt(i));continue e}{let u,s,l,c,a;switch(wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof oi){e=r,n=Et([ui(l),ii(ri(l),void 0,si(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ti(ri(l))],s),t=i;continue e;case 1:if(a instanceof oi){e=r,n=o,t=Et([ui(a),ii(ri(a),void 0,si(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ti(ri(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,l,c,a;switch(yt(i),wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof oi){e=r,n=Et([ui(l),ii(ri(l),void 0,si(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ti(ri(l))],s),t=i;continue e;case 1:if(a instanceof oi){e=r,n=o,t=Et([ui(a),ii(ri(a),void 0,si(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ti(ri(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==yt(o)){e=r,n=vt(o),t=vt(i);continue e}{let u,s,l,c,a;switch(yt(o),wt(o)?wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2:null!=yt(o)?(u=0,s=vt(o),l=yt(o)):wt(i)?u=2:null!=yt(i)?(u=1,c=vt(i),a=yt(i)):u=2,u){case 0:if(l instanceof oi){e=r,n=Et([ui(l),ii(ri(l),void 0,si(l),0)],s),t=i;continue e}e=r,n=Et([void 0,ti(ri(l))],s),t=i;continue e;case 1:if(a instanceof oi){e=r,n=o,t=Et([ui(a),ii(ri(a),void 0,si(a),0)],c);continue e}e=r,n=o,t=Et([void 0,ti(ri(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,gt(n),gt(t))}function Ci(e,n,t){let r=t;pi((e=>{n[r]=e,r=r+1|0}),e)}function Si(e,n){if(Le(n))return function(e,n){return ut(((n,t)=>di(e,t,n)),void 0,n)}(e,n);if(n instanceof lt)return function(e,n){return Ct(((n,t)=>di(e,t,n)),void 0,n)}(e,n);{const t=Ze(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=di(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{qe(t)}}}class Ei{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=Ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|n(t,un(r["System.Collections.Generic.IEnumerator`1.get_Current"]()))}finally{qe(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Ei&&0===bi(xi(this),ki(this),ki(e))}toString(){return"set ["+Zn("; ",wo((e=>Rn(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|bi(xi(this),ki(this),ki(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return _i(xi(this),e,ki(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){Ci(ki(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ti(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ti(this)}GetEnumerator(){return vi(ki(this))}[Symbol.iterator](){return Ye(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return vi(ki(this))}get size(){return 0|Ti(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,n){return _i(xi(e),n,ki(e))}(this,e)}keys(){return wo((e=>e),this)}values(){return wo((e=>e),this)}entries(){return wo((e=>[e,e]),this)}forEach(e,n){const t=this;go((n=>{e(n,n,t)}),t)}}function xi(e){return e.comparer}function ki(e){return e.tree}function Ti(e){return ai(ki(e))}function Ii(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function Oi(e,n){const t=2===n.tag?Ii(n.fields[0],n.fields[1],!0):1===n.tag?Ii(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Ii(n.fields[0],n.fields[1],!0):4===n.tag?Ii(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+Zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:Ii(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function Mi(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new nr(1,[Oi(e[0],e[1])])}return new nr(0,[r.fields[0]])}function Ni(e,n){try{return Mi("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new nr(1,["Given an invalid JSON: "+e.message]);throw e}}const Ai=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new nr(0,[(e+128&255)-128]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!1,8,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])},Di=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new nr(0,[255&e]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!0,8,new Un((()=>n),(e=>{n=e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])},Ri=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new nr(0,[(e+32768&65535)-32768]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!1,16,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])},Pi=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new nr(0,[65535&e]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!0,16,new Un((()=>n),(e=>{n=e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])},Gi=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new nr(0,[~~e]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!1,32,new Un((()=>n),(e=>{n=0|e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])},Ui=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new nr(0,[e>>>0]):new nr(1,[[r,new rr(1,[t,e,"Value was either too large or too small for "+t])]]):new nr(1,[[r,new rr(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[pr(o,511,!0,32,new Un((()=>n),(e=>{n=e}))),n],e[0]?new nr(0,[e[1]]):new nr(1,[[r,new rr(0,[t,o])]])}return new nr(1,[[r,new rr(0,[t,o])]])};function $i(e,n,t,r){let o;const i=t+".["+en(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new nr(1,[[i,new rr(5,["a longer array. Need index `"+en(e)+"` but there are only `"+(o=t.length,en(o)+"` entries"),r])]])}return new nr(1,[[i,new rr(0,["an array",r])]])}function Hi(e,n,t){if(Array.isArray(t)){let r=-1;return tr(St,ut(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+en(r)+"]",o);return 0===i.tag?new nr(0,[mt(i.fields[0],t.fields[0])]):new nr(1,[i.fields[0]])}return t}),new nr(0,[pt()]),t))}return new nr(1,[[n,new rr(0,["a list",t])]])}function Fi(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ut(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+en(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new nr(0,[i])):new nr(1,[u.fields[0]])}return t}),new nr(0,[ot(new Array(o.length),0,o.length,null)]),o)}return new nr(1,[[n,new rr(0,["an array",t])]])}function ji(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new nr(1,[o.fields[0]])}function Bi(e,n){let t;const r=e;return t=e=>n=>$i(0,r,e,n),e=>r=>ji(gn(3,(e=>{let t;const r=n;return t=e=>n=>$i(1,r,e,n),n=>r=>ji(((n,t,r)=>new nr(0,[[e,n]])),gn(2,t),n,r)})),gn(2,t),e,r)}function Li(e){return zo(n={Compare:_n},Fo(n,e));var n}function Vi(e){return function(e,n){return new Ei(e,n)}(n={Compare:_n},Si(n,e));var n}function qi(e,n,t,r){let o,i;return n.length!==r.length?new nr(1,[[t,new rr(6,[(o=0|r.length,i=0|n.length,qn(Ln("Expected %i %s but got %i"))(i)(e)(o))])]]):st(((e,n,r)=>0===r.tag?tr((e=>mt(e,r.fields[0])),n(t)(e)):r),r,n,new nr(0,[pt()]))}function Wi(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>Ut(e)===r))}(0,zt(t));if(null!=u){const t=u;return 0===i.length?new nr(0,[er(t,[])]):tr((e=>er(t,bt(e))),qi("union fields",it((t=>Ji(e,n,!1,t[1])),Qt(t),null),o,i))}return new nr(1,[[o,new rr(6,["Cannot find case "+r+" in "+$t(t)])]])}function zi(e,n,t,r){let o;const i=new Un(null),u=Xo($t(r),i,e);let s;if(Xt(r)){const e=it((e=>[lr(n,Ut(e)),Ji(u,n,!1,e[1])]),Jt(r),null);s=n=>t=>tr((e=>function(e,n){const t=Jt(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce(((e,[t,r],o)=>(e[t]=n[o],e)),{})}(r,bt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new nr(1,[[n,new rr(0,["an object",t])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?tr((e=>mt(e,r.fields[0])),e[1](n+"."+o)(t[o])):r})(r,e)),o)}(0,e,new nr(0,[pt()]))}(e,n,t))}else if(Yt(r))s=e=>t=>{if("string"==typeof t)return Wi(u,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return Wi(u,n,r,o[0],e,o.slice(1,o.length))}return new nr(1,[[e,new rr(0,["a string or array",t])]])};else{if(!t)throw new Error((o=$t(r),qn(Ln("Cannot generate auto decoder for %s. Please pass an extra decoder."))(o)));s=e=>n=>new nr(1,[[e,new rr(2,["an extra coder for "+$t(r),n])]])}return i.contents=s,s}function Ji(e,n,t,r){let o,i,u;const s=$t(r),l=Ko(s,e);if(null==l){if(Ht(r)){const t=Ji(e,n,!1,Ft(r));return e=>n=>Fi(gn(2,t),e,n)}if(Bt(r)){const e=$t(Vt(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=Ai(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=0|u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,e.toString())]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=Di(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,e.toString())]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=Ri(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=0|u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,(s=e,(s=s<0&&null!=l&&10!==l?65535+s+1:s).toString(l)))]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}var s,l};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Pi(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,e.toString())]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Gi(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=0|u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,en(e))]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=Ui(o)(i);if(1===u.tag)return new nr(1,[u.fields[0]]);{const e=u.fields[0];return po(e,qt(t),{Equals:(e,n)=>e===n,GetHashCode:rn})?new nr(0,[Wt(t,e.toString())]):new nr(1,[[o,new rr(1,[$t(t),i,"Unkown value provided for the enum"])]])}};{const e=$t(r),n=Wn(Ln("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(jt(r)){if(Kt(r)){const t=it((t=>Ji(e,n,!1,t)),Zt(r),null);return e=>n=>Array.isArray(n)?tr((e=>bt(e)),qi("tuple elements",t,e,n)):new nr(1,[[e,new rr(0,["an array",n])]])}{const s=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=Ji(e,n,!0,Ot(r)[0]),e=>n=>{return t=gn(2,o),r=e,null==(i=n)?new nr(0,[void 0]):tr(nt,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=Ji(e,n,!1,Ot(r)[0]),e=>n=>Hi(gn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=Ji(e,n,!1,Ot(r)[0]),o=Ji(e,n,!1,Ot(r)[1]);let i;const s=xt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new nr(1,[[t,new rr(0,["an object",r])]]):mo(((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new nr(0,[mt([u.fields[0],e.fields[0]],o.fields[0])]):new nr(1,[e.fields[0]])}return new nr(1,[u.fields[0]])}return o}),new nr(0,[pt()]),Object.keys(r))}(gn(2,t),gn(2,o),e,n),(u=Bi(gn(2,t),gn(2,o)),e=>n=>Hi(gn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(wt(o))return new nr(1,[[t,new rr(7,[i])]]);{const u=Mi(t,gn(2,yt(o)),r);if(1===u.tag){e=vt(o),n=kt(i,gt(u.fields[0]));continue e}return new nr(0,[u.fields[0]])}}})(s,pt());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new nr(1,[o.fields[0]]):new nr(0,[e(o.fields[0])])}(Li,gn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=Ji(e,n,!1,Ot(r)[0]);return e=>n=>{const r=Fi(gn(2,t),e,n);return 0===r.tag?new nr(0,[Vi(r.fields[0])]):new nr(1,[r.fields[0]])}}return zi(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new nr(0,[r]):new nr(1,[[t,new rr(0,["a boolean",r])]]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new nr(0,[void 0]):new nr(1,[[t,new rr(0,["null",r])]]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new nr(0,[r]):new nr(1,[[t,new rr(0,["a string",r])]]);var t,r}:"System.SByte"===s?Ai:"System.Byte"===s?Di:"System.Int16"===s?Ri:"System.UInt16"===s?Pi:"System.Int32"===s?Gi:"System.UInt32"===s?Ui:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new nr(0,[r]):new nr(1,[[t,new rr(0,["a float",r])]]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new nr(0,[r]):new nr(1,[[t,new rr(0,["a float32",r])]]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=Cn(-621355968e5,0);return r=[En(n,new Un((()=>o),(e=>{o=e}))),o],r[0]?new nr(0,[(t=r[1],1===t.kind?t:Cn(t.getTime(),1))]):new nr(1,[[e,new rr(0,["a datetime",n])]])}var t;return new nr(1,[[e,new rr(0,["a datetime",n])]])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=mr(-621355968e5,0);return t=[gr(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new nr(0,[t[1]]):new nr(1,[[e,new rr(0,["a datetimeoffset",n])]])}return new nr(1,[[e,new rr(0,["a datetime",n])]])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[lo(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new nr(0,[t[1]]):new nr(1,[[e,new rr(0,["a timespan",n])]])}return new nr(1,[[e,new rr(0,["a timespan",n])]])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[hr(n,new Un((()=>r),(e=>{r=e}))),r],t[0]?new nr(0,[t[1]]):new nr(1,[[e,new rr(0,["a guid",n])]])}return new nr(1,[[e,new rr(0,["a guid",n])]])}(e,n):"System.Object"===s?e=>e=>new nr(0,[e]):zi(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function Zi(e,n,t){const r=rt(n,new or(0,[]));return Ji(function(e){return null!=e?Qo(((e,n)=>new Un(n[1])),e.Coders):ei({Compare:hn})}(t),r,!1,e)}class Yi extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["AccessRole"]}}function Xi(e){return new Yi(0,[e])}function Ki(e){return function(e,n,t){return null!=function(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(ht(o))return;if(e(dt(o)))return r;n=r+1,t=_t(o)}})(0,n)}((n=>t.Equals(e,n)),n)}(new Yi(0,["BankDetails.Access"]),e,{Equals:an,GetHashCode:sn})?nt(void 0):void 0}class Qi extends Gn{constructor(e,n){super(),this.UserName=e,this.Roles=n}}class eu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Inherited","Default","Specific"]}}class nu extends Gn{constructor(e,n,t){super(),this.MaxAccounts=0|e,this.ConfigOwnership=n,this.AllowPercentageSplit=t}}const tu=(e,n)=>{X((()=>{const n=e();return()=>{n.Dispose()}}),n)};function ru(e){return{Dispose(){e()}}}function ou(e){return je.useRef(e)}function iu(e){const n=ou(e),t=function(e,t){const r=rt([],[]);return je.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),ru((()=>{}))),K((()=>{const e=o();return()=>{e.Dispose()}})),t}function uu(e){return je.useState(e)}class su{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)}}}Dispose(){}}class lu extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,lu.prototype)}}class cu{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>cu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function au(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new lu);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(Hn(e))}}));else try{e(n)}catch(e){n.onError(Hn(e))}}}const fu=new class{Bind(e,n){return function(e,n){return au((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(Hn(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 au((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 au((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return au((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 au((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(Hn(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 au((e=>e.onSuccess(void 0)))}};function hu(e){}const du=new su;function _u(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new cu;e({onSuccess:n||hu,onError:t||hu,onCancel:r||hu,cancelToken:o||du,trampoline:i})}(e,n)}(e,n)}class pu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function mu(e,n){const t=ou(function(e){const n=new su(!1);return n}());return tu((()=>ru((()=>{t.current.cancel()}))),[]),iu((r=>{var o,i;null!=(i=t.current)&&i.isCancelled||_u((o=r,fu.Delay((()=>fu.TryWith(fu.Delay((()=>(n(new pu(1,[])),fu.Bind(e(o),(e=>(n(new pu(2,[e])),fu.Zero())))))),(e=>(n(new pu(3,[e])),fu.Zero())))))),t.current)}))}class gu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class wu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Header"]}}class yu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class vu extends Gn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class bu extends Pn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Cu extends Gn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const Su=new vu("",new gu(0,[]),pt(),!1,void 0,void 0,void 0,new yu(0,[]));function Eu(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:Kn(n,[e],null,0);var t}function xu(e){return new vu(e,Su.method,Su.headers,Su.withCredentials,Su.overridenMimeType,Su.overridenResponseType,Su.timeout,Su.content)}function ku(e,n){return new vu(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Tu(e){return function(e){return au((n=>e([n.onSuccess,n.onError,n.onCancel])))}((n=>{const t=new XMLHttpRequest;t.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),t.onreadystatechange=()=>{let e,r,o,i,u,s;var l,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new bu(0,[t.responseText]):new bu("arraybuffer"===s?2:"blob"===s?1:3,[t.response]),new Cu(o,e,i,(l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=tt(o);r.push(e)}}return an(null,null)?r:it((e=>e),r,null)}((e=>{const n=xt(Eu(":",e));return wt(n)?void 0:[yt(n).toLocaleLowerCase(),Zn(":",vt(n)).trim()]}),Eu("\r\n",t.getAllResponseHeaders())),zo(c={Compare:hn},Fo(c,l))),u)))};const r=Ze(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=e.content;0===e.method.tag?t.send(nt(void 0)):1===s.tag||3===s.tag||2===s.tag?t.send(nt(s.fields[0])):t.send(nt(void 0))}))}function Iu(e){return e}function Ou(e){return Array.from(e)}function Mu(e){return bn(e,"O")}function Nu(e){return function(e,n="c",t){if(-1===["c","g","G"].indexOf(n))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return io(e/864e5)}(e)),o=Math.abs(function(e){return io(e%864e5/36e5)}(e)),i=Math.abs(function(e){return io(e%36e5/6e4)}(e)),u=Math.abs(function(e){return io(e%6e4/1e3)}(e)),s=Math.abs(function(e){return io(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==n&&"g"!==n?"c"===n?r+".":r+":":""}${"g"===n?o:Ke(o,2)}:${Ke(i,2)}:${Ke(u,2)}${0!==s||"c"!==n&&"g"!==n?"g"===n?"."+Ke(s,3):"."+function(e,n,t){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function Au(){return null}function Du(e){return bn(e,"O")}function Ru(e,n){return JSON.stringify(n,gn(2,null),nt(e))}function Pu(e,n,t,r){let o;const i=new Un(null),u=Xo($t(r),i,e);let s;if(Xt(r)){const e=it((e=>{const r=lr(n,Ut(e)),o=Gu(u,n,t,e[1]);return n=>i=>{const u=function(e,n){return e[n[0]]}(n,e);return(!t||t&&null!=u)&&(i[r]=o(u)),i}}),Jt(r),null);s=n=>mo(((e,t)=>t(n)(e)),{},e)}else{if(!Yt(r))throw new Error((o=$t(r),qn(Ln("Cannot generate auto encoder for %s. Please pass an extra encoder."))(o)));s=e=>{const o=function(e,n){const t=zt(n)[e.tag];if(null==t)throw new Error(`Cannot find case ${e.name} in union type`);return[t,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Ut(i);{const e=0|l,r=Qt(i),o=ot(new Array(e+1),0,e+1,null);o[0]=Ut(i);for(let i=1;i<=e;i++){const e=Gu(u,n,t,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return i.contents=s,s}function Gu(e,n,t,r){const o=$t(r),i=Ko(o,e);if(null==i){if(Ht(r)){const o=Gu(e,n,t,Ft(r));return e=>Ou(wo(o,e))}if(Bt(r)){const e=$t(Vt(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=$t(r);return Wn(Ln("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(jt(r)){if(Kt(r)){const o=it((r=>Gu(e,n,t,r)),Zt(r),null);return e=>Ou(yo(((e,n)=>o[e](n)),e))}{const o=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Xe((()=>{return o=Gu(e,n,t,Ot(r)[0]),e=>{return function(e,n){return null!=e?tt(e):null}(null!=(n=e)?nt(o(tt(n))):void 0);var n};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Gu(e,n,t,Ot(r)[0]);return e=>Ou(wo(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Ot(r)[0],i=Gu(e,n,t,Ot(r)[1]);if("System.String"===$t(o)||"System.Guid"===$t(o))return e=>mo(((e,n)=>{const t=n;return e[t[0]]=i(t[1]),e}),{},e);{let r;const u=Gu(e,n,t,o);return r=u,e=>Ou(wo((e=>{const n=e;return[r(n[0]),i(n[1])]}),e))}}return Pu(e,n,t,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Au:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Du:"System.DateTimeOffset"===o?Mu:"System.TimeSpan"===o?Nu:"System.Guid"===o?Iu:"System.Object"===o?e=>e:Pu(e,n,t,r)}{const e=i;return n=>e.contents(n)}}function Uu(e,n,t,r){const o=rt(n,new or(0,[])),i=rt(r,!0);return Gu(function(e){return null!=e?Qo(((e,n)=>new Un(n[0])),e.Coders):ei({Compare:hn})}(t),o,i,e)}function $u(e){return`${e}/bank-details/admin`}function Hu(e,n){return fu.Delay((()=>{const t=(r=function(e){return new wu(0,["Authorization",e])}(qn(Ln("Bearer %s"))(e)),new vu((o=n).url,o.method,kt(o.headers,gt(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;let i;const u=Tu(t);return i=fu.Bind(u,(e=>fu.Return(new nr(0,[e])))),fu.Bind(i,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=Tu(t);return fu.Bind(e,(e=>fu.Return(new nr(0,[e]))))}return fu.Return(new nr(0,[e]))}}))}))}new Cu(0,"","",ei({Compare:hn}),new bu(0,[""]));function Fu(){return(Fu=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ju(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return P(n,t)}function Bu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(ju,Fu({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[Lu(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=f(Wu,{name:c},l):r[i]=l}var a=t?f(Wu,null,r):r;return f(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?R:D)(this._vdom,this._root)}function Lu(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function Vu(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[Lu(e)]=t,this._vdom=P(this._vdom,r),D(this._vdom,this._root)}}function qu(){D(this._vdom=null,this._root)}function Wu(e,n){var t=this;return f("slot",Fu({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function zu(e){let n;return Be("div",pn(xt([["className","py-10"],(n=[Be("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${t=e.configOwnership,2===t.tag?"":`(${t})`}: `}),Be("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:n=>{const t=n.target.valueAsNumber;null==t||Number.isNaN(t)||e.handleMaxAccountChanged(function(e,n=0){const t=Math.pow(10,n),r=+(n?e*t:e).toFixed(8),o=Math.floor(r),i=r-o,u=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return n?u/t:u}(t))}})],["children",je.Children.toArray(Array.from(n))])])));var t}function Ju(e){let n;const t=e.msg;return Be("div",pn(xt([["className","text-sm font-medium text-gray-900 my-5"],(n=[Be("span",{children:[t]})],["children",je.Children.toArray(Array.from(n))])])))}function Zu(e){let n;const t=function(e){let n;const t=Kn(null==e?"":e,["."],null,0);if(null==t||3!==t.length)n=new nr(1,["Failed to identify the user"]);else{let e;const o=t[1];e=atob(o),n=Ni(gn(2,Zi(At(["Name",Rt],["Roles",(r=Rt,new It("[]",[r]))]),new or(1,[]),void 0)),e)}var r;if(1===n.tag)return new Qi(void 0,pt());{const e=n.fields[0];return new Qi(e.Name,function(e,n){const t=at(),r=Ct(((n,t)=>{const r=new lt(e(t),void 0);return n.tail=r,r}),t,n),o=at();return r.tail=o,_t(t)}(Xi,xt(e.Roles)))}}(e.accessToken),r=uu(new nu(0,new eu(1,[]),!1)),o=r[1],i=r[0],u=uu(new pu(0,[])),s=u[1],l=u[0],c=e=>{o(new nu(e,i.ConfigOwnership,i.AllowPercentageSplit))},a=()=>fu.Delay((()=>{const n=(t=e.backendUrl,r=e.accessToken,u=e.partnerId,s=e.accountId,fu.Delay((()=>{const e=Hu(r,ku(new gu(0,[]),xu((n=$u(t),null==s?`${n}/partners/${u}/config`:`${n}/partners/${u}/accounts/${tt(s)}/config`))));var n;return fu.Bind(e,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=n.fields[0];if(200===e.statusCode){const n=Ni(gn(2,Zi(new It("Types.Model",[],nu,void 0,(()=>[["MaxAccounts",Gt],["ConfigOwnership",function(e,n,t,r){const o=new It("Types.ConfigOwnership",[],t,void 0,void 0,(()=>{const e=t.prototype.cases();return[[],[],[]].map(((n,t)=>new Tt(o,t,e[t],n)))}));return o}(0,0,eu)],["AllowPercentageSplit",Pt]])),new or(1,[]),void 0)),e.responseText);return fu.Return(n)}return fu.Return(new nr(1,[e.responseText]))}}))})));var t,r,u,s;return fu.Bind(n,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=n.fields[0];o(new nu(e.MaxAccounts,e.ConfigOwnership,i.AllowPercentageSplit));const t=new nr(0,[void 0]);return fu.Return(t)}}))})),h=mu(a,s),d=mu((()=>fu.Delay((()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,u=e.accountId,s=i.MaxAccounts,l=i.AllowPercentageSplit,fu.Delay((()=>{let e;const n=(i=$u(t),null==u?`${i}/partners/${o}/config`:`${i}/partners/${o}/accounts/${u}/config`);var i;const c=Hu(r,ku(new gu(2,[]),(a=new yu(1,[(e={AllowPercentageSplit:l,MaxAccounts:s},Ru(0,Uu(At(["AllowPercentageSplit",Pt],["MaxAccounts",Gt]),new or(1,[]),void 0,void 0)(e)))]),f=xu(n),new vu(f.url,f.method,f.headers,f.withCredentials,f.overridenMimeType,f.overridenResponseType,f.timeout,a))));var a,f;return fu.Bind(c,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=n.fields[0];return 200===e.statusCode?fu.Return(new nr(0,[void 0])):fu.Return(new nr(1,[e.responseText]))}}))})));var t,r,o,u,s,l;return fu.Bind(n,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=a();return fu.Bind(e,(e=>{let n;const t=e;return n=1===t.tag?new nr(1,[t.fields[0]]):new nr(0,[void 0]),fu.Return(n)}))}}))}))),s),_=mu((()=>fu.Delay((()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,fu.Delay((()=>{const e=Hu(r,ku(new gu(4,[]),xu((n=$u(t),null==i?`${n}/partners/${o}/config`:`${n}/partners/${o}/accounts/${tt(i)}/config`))));var n;return fu.Bind(e,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=n.fields[0];return 200===e.statusCode?fu.Return(new nr(0,[void 0])):fu.Return(new nr(1,[e.responseText]))}}))})));var t,r,o,i;return fu.Bind(n,(e=>{const n=e;if(1===n.tag)return fu.Return(new nr(1,[n.fields[0]]));{const e=a();return fu.Bind(e,(e=>{let n;const t=e;return n=1===t.tag?new nr(1,[t.fields[0]]):new nr(0,[void 0]),fu.Return(n)}))}}))}))),s);let p,m,g,w;switch(function(e,n){tu((n=>(e(),ru((()=>{})))),[])}(h),2===l.tag?1===l.fields[0].tag?(m=0,g=l.fields[0].fields[0]):m=2:3===l.tag?(m=1,w=l.fields[0]):m=2,m){case 0:p=f(Ju,{msg:g});break;case 1:p=f(Ju,{msg:Rn(w)});break;case 2:p=null}if(null!=Ki(t.Roles)){const e=xt([f(zu,{configOwnership:i.ConfigOwnership,handleMaxAccountChanged:c,selected:i.MaxAccounts}),Be("div",pn(gt((n=[Be("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Update",onClick:e=>{d()}}),Be("button",{className:"inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none",type:"button",children:"Reset",onClick:e=>{_()}}),p],["children",je.Children.toArray(Array.from(n))]))))]);return Be("div",{children:je.Children.toArray(Array.from(e))})}return f(Ju,{msg:"You do not have the appropriate permissions to view this information"})}new class{constructor(){}},function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Bu,o.prototype.attributeChangedCallback=Vu,o.prototype.disconnectedCallback=qu,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-bank-details",o)}((e=>f(Zu,e)))})();
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Children:()=>Ae,Component:()=>y,Fragment:()=>v,PureComponent:()=>xe,StrictMode:()=>_t,Suspense:()=>Fe,SuspenseList:()=>He,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>ut,cloneElement:()=>dt,createContext:()=>$,createElement:()=>g,createFactory:()=>at,createPortal:()=>$e,createRef:()=>w,default:()=>St,findDOMNode:()=>pt,flushSync:()=>gt,forwardRef:()=>Ne,hydrate:()=>Ke,isElement:()=>Ct,isFragment:()=>ft,isValidElement:()=>ct,lazy:()=>je,memo:()=>Te,render:()=>Je,startTransition:()=>wt,unmountComponentAtNode:()=>ht,unstable_batchedUpdates:()=>mt,useCallback:()=>ce,useContext:()=>fe,useDebugValue:()=>de,useDeferredValue:()=>vt,useEffect:()=>ie,useErrorBoundary:()=>he,useId:()=>pe,useImperativeHandle:()=>le,useInsertionEffect:()=>bt,useLayoutEffect:()=>se,useMemo:()=>ae,useReducer:()=>oe,useRef:()=>ue,useState:()=>re,useSyncExternalStore:()=>Et,useTransition:()=>yt,version:()=>lt});var n,r,o,i,s,u,l,a,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,s,u={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===u[s]&&(u[s]=e.defaultProps[s]);return _(e,u,o,i,null)}function _(e,t,n,i,s){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=r.vnode&&r.vnode(u),u}function w(){return{current:null}}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(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.__d||n.__e;return"function"==typeof e.type?b(e):null}function C(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 C(e)}}function E(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){var e,t,n,r,o,s,u,a,c;for(i.sort(l);e=i.shift();)e.__d&&(t=i.length,r=void 0,o=void 0,s=void 0,a=(u=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=p({},u)).__v=u.__v+1,D(c,u,s,n.__n,void 0!==c.ownerSVGElement,null!=u.__h?[a]:null,r,null==a?b(u):a,u.__h,o),L(r,u,o),u.__e!=a&&C(u)),i.length>t&&i.sort(l));S.__r=0}function x(e,t,n,r,o,i,s,u,l,a,d){var p,m,g,w,y,C,E,S,x,k=0,I=r&&r.__k||f,A=I.length,M=A,P=t.length;for(n.__k=[],p=0;p<P;p++)null!=(w=n.__k[p]=null==(w=t[p])||"boolean"==typeof w||"function"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?_(null,w,null,null,w):h(w)?_(v,{children:w},null,null,null):w.__b>0?_(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)?(w.__=n,w.__b=n.__b+1,-1===(S=N(w,I,E=p+k,M))?g=c:(g=I[S]||c,I[S]=void 0,M--),D(e,w,g,o,i,s,u,l,a,d),y=w.__e,(m=w.ref)&&g.ref!=m&&(g.ref&&R(g.ref,null,w),d.push(m,w.__c||y,w)),null!=y&&(null==C&&(C=y),(x=g===c||null===g.__v)?-1==S&&k--:S!==E&&(S===E+1?k++:S>E?M>P-E?k+=S-E:k--:k=S<E&&S==E-1?S-E:0),E=p+k,"function"!=typeof w.type||S===E&&g.__k!==w.__k?"function"==typeof w.type||S===E&&!x?void 0!==w.__d?(l=w.__d,w.__d=void 0):l=y.nextSibling:l=O(e,y,l):l=T(w,l,e),"function"==typeof n.type&&(n.__d=l))):(g=I[p])&&null==g.key&&g.__e&&(g.__e==l&&(g.__=r,l=b(g)),j(g,g,!1),I[p]=null);for(n.__e=C,p=A;p--;)null!=I[p]&&("function"==typeof n.type&&null!=I[p].__e&&I[p].__e==n.__d&&(n.__d=I[p].__e.nextSibling),j(I[p],I[p]))}function T(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?T(r,t,n):O(n,r.__e,t));return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function O(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function N(e,t,n,r){var o=e.key,i=e.type,s=n-1,u=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l?1:0))for(;s>=0||u<t.length;){if(s>=0){if((l=t[s])&&o==l.key&&i===l.type)return s;s--}if(u<t.length){if((l=t[u])&&o==l.key&&i===l.type)return u;u++}}return-1}function I(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function A(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||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?P:M,i)):e.removeEventListener(t,i?P:M,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function M(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(r.event?r.event(e):e)}function P(e){return this.l[e.type+!0](r.event?r.event(e):e)}function D(e,t,n,o,i,s,u,l,a,c){var f,d,m,g,_,w,b,C,E,S,T,k,O,N,I,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(f=r.__b)&&f(t);e:if("function"==typeof A)try{if(C=t.props,E=(f=A.contextType)&&o[f.__c],S=f?E?E.props.value:f.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(C,S):(t.__c=d=new y(C,S),d.constructor=A,d.render=H),E&&E.sub(d),d.props=C,d.state||(d.state={}),d.context=S,d.__n=o,m=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,A.getDerivedStateFromProps(C,d.__s))),g=d.props,_=d.state,d.__v=t,m)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&C!==g&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(C,S),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(C,d.__s,S)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=C,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(C,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(g,_,w)}))}if(d.context=S,d.props=C,d.__P=e,d.__e=!1,k=r.__r,O=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(t),f=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,k&&k(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++O<25);d.state=d.__s,null!=d.getChildContext&&(o=p(p({},o),d.getChildContext())),m||null==d.getSnapshotBeforeUpdate||(w=d.getSnapshotBeforeUpdate(g,_)),x(e,h(I=null!=f&&f.type===v&&null==f.key?f.props.children:f)?I:[I],t,n,o,i,s,u,l,a,c),d.base=t.__e,t.__h=null,d.__h.length&&u.push(d),b&&(d.__E=d.__=null)}catch(e){t.__v=null,(a||null!=s)&&(t.__e=l,t.__h=!!a,s[s.indexOf(l)]=null),r.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=F(n.__e,t,n,o,i,s,u,a,c);(f=r.diffed)&&f(t)}function L(e,t,n){for(var o=0;o<n.length;o++)R(n[o],n[++o],n[++o]);r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function F(e,t,r,o,i,s,u,l,a){var f,d,p,g=r.props,_=t.props,w=t.type,v=0;if("svg"===w&&(i=!0),null!=s)for(;v<s.length;v++)if((f=s[v])&&"setAttribute"in f==!!w&&(w?f.localName===w:3===f.nodeType)){e=f,s[v]=null;break}if(null==e){if(null===w)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,_.is&&_),s=null,l=!1}if(null===w)g===_||l&&e.data===_||(e.data=_);else{if(s=s&&n.call(e.childNodes),d=(g=r.props||c).dangerouslySetInnerHTML,p=_.dangerouslySetInnerHTML,!l){if(null!=s)for(g={},v=0;v<e.attributes.length;v++)g[e.attributes[v].name]=e.attributes[v].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(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]||A(e,i,t[i],n[i],r)}(e,_,g,i,l),p)t.__k=[];else if(x(e,h(v=t.props.children)?v:[v],t,r,o,i&&"foreignObject"!==w,s,u,s?s[0]:r.__k&&b(r,0),l,a),null!=s)for(v=s.length;v--;)null!=s[v]&&m(s[v]);l||("value"in _&&void 0!==(v=_.value)&&(v!==e.value||"progress"===w&&!v||"option"===w&&v!==g.value)&&A(e,"value",v,g.value,!1),"checked"in _&&void 0!==(v=_.checked)&&v!==e.checked&&A(e,"checked",v,g.checked,!1))}return e}function R(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||R(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,n||"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__=e.__e=e.__d=void 0}function H(e,t,n){return this.constructor(e,n)}function U(e,t,o){var i,s,u,l;r.__&&r.__(e,t),s=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],l=[],D(t,e=(!i&&o||t).__k=g(v,null,[e]),s||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:s?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:s?s.__e:t.firstChild,i,l),L(u,e,l)}function B(e,t){U(e,t,B)}function G(e,t,r){var o,i,s,u,l=p({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=void 0===t[s]&&void 0!==u?u[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),_(e.type,l,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+a++,__: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((function(e){e.__e=!0,E(e)}))},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}n=f.slice,r={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},y.prototype.render=v,i=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,a=0;var V,W,q,z,Y=0,Z=[],J=[],K=r.__b,X=r.__r,Q=r.diffed,ee=r.__c,te=r.unmount;function ne(e,t){r.__h&&r.__h(W,e,Y||t),Y=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:J}),n.__[e]}function re(e){return Y=1,oe(be,e)}function oe(e,t,n){var r=ne(V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):be(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};W.u=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},W.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,t){var n=ne(V++,3);!r.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function se(e,t){var n=ne(V++,4);!r.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function ue(e){return Y=5,ae((function(){return{current:e}}),[])}function le(e,t,n){Y=6,se((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ae(e,t){var n=ne(V++,7);return ye(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ce(e,t){return Y=8,ae((function(){return e}),t)}function fe(e){var t=W.context[e.__c],n=ne(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(W)),t.props.value):e.__}function de(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function he(e){var t=ne(V++,10),n=re();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){var e=ne(V++,11);if(!e.__){for(var t=W.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function me(){for(var e;e=Z.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(we),e.__H.__h.forEach(ve),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}}r.__b=function(e){W=null,K&&K(e)},r.__r=function(e){X&&X(e),V=0;var t=(W=e.__c).__H;t&&(q===W?(t.__h=[],W.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=J,e.__N=e.i=void 0}))):(t.__h.forEach(we),t.__h.forEach(ve),t.__h=[],V=0)),q=W},r.diffed=function(e){Q&&Q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Z.push(t)&&z===r.requestAnimationFrame||((z=r.requestAnimationFrame)||_e)(me)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==J&&(e.__=e.__V),e.i=void 0,e.__V=J}))),q=W=null},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(we),e.__h=e.__h.filter((function(e){return!e.__||ve(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),ee&&ee(e,t)},r.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{we(e)}catch(e){t=e}})),n.__H=void 0,t&&r.__e(t,n.__v))};var ge="function"==typeof requestAnimationFrame;function _e(e){var t,n=function(){clearTimeout(r),ge&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ge&&(t=requestAnimationFrame(n))}function we(e){var t=W,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),W=t}function ve(e){var t=W;e.__c=e.__(),W=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function be(e,t){return"function"==typeof t?t(e):t}function Ce(e,t){for(var n in t)e[n]=t[n];return e}function Ee(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 Se(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function xe(e){this.props=e}function Te(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:Ee(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(xe.prototype=new y).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return Ee(this.props,e)||Ee(this.state,t)};var ke=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ke&&ke(e)};var Oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ne(e){function t(t){var n=Ce({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Oe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ie=function(e,t){return null==e?null:k(k(e).map(t))},Ae={map:Ie,forEach:Ie,count:function(e){return e?k(e).length:0},only:function(e){var t=k(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:k},Me=r.__e;r.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Me(e,t,n,r)};var Pe=r.unmount;function De(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Ce({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)}))),e}function Le(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Le(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Fe(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function je(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 g(n,o)}return o.displayName="Lazy",o.__f=!0,o}function He(){this.u=null,this.o=null}r.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Pe&&Pe(e)},(Fe.prototype=new y).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Re(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Le(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Fe.prototype.componentWillUnmount=function(){this.t=[]},Fe.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]=De(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(v,null,e.fallback);return o&&(o.__h=null),[g(v,null,t.__a?null:e.children),o]};var Ue=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 Be(e){return this.getChildContext=function(){return e.context},e.children}function Ge(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),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)}}),U(g(Be,{context:t.context},e.__v),t.l)}function $e(e,t){var n=g(Ge,{__v:e,i:t});return n.containerInfo=t,n}(He.prototype=new y).__a=function(e){var t=this,n=Re(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ue(t,e,r)):o()};n?n(i):i()}},He.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(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},He.prototype.componentDidUpdate=He.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ue(e,n,t)}))};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,We=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ze=/[A-Z0-9]/g,Ye="undefined"!=typeof document,Ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Je(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ke(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null}y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=r.event;function Qe(){}function et(){return this.cancelBubble}function tt(){return this.defaultPrevented}r.event=function(e){return Xe&&(e=Xe(e)),e.persist=Qe,e.isPropagationStopped=et,e.isDefaultPrevented=tt,e.nativeEvent=e};var nt,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},ot=r.vnode;r.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Ye&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ze(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":qe.test(o)?o=s:-1===n.indexOf("-")&&We.test(o)?o=o.replace(ze,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=k(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=k(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ve,ot&&ot(e)};var it=r.__r;r.__r=function(e){it&&it(e),nt=e.__c};var st=r.diffed;r.diffed=function(e){st&&st(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),nt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return nt.__n[e.__c].props.value}}}},lt="17.0.2";function at(e){return g.bind(null,e)}function ct(e){return!!e&&e.$$typeof===Ve}function ft(e){return ct(e)&&e.type===v}function dt(e){return ct(e)?G.apply(null,arguments):e}function ht(e){return!!e.__k&&(U(null,e),!0)}function pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var mt=function(e,t){return e(t)},gt=function(e,t){return e(t)},_t=v;function wt(e){e()}function vt(e){return e}function yt(){return[!1,wt]}var bt=se,Ct=ct;function Et(e,t){var n=t(),r=re({h:{__:n,v:t}}),o=r[0].h,i=r[1];return se((function(){o.__=n,o.v=t,Se(o.__,t())||i({h:o})}),[e,n,t]),ie((function(){return Se(o.__,o.v())||i({h:o}),e((function(){Se(o.__,o.v())||i({h:o})}))}),[e]),n}var St={useState:re,useId:pe,useReducer:oe,useEffect:ie,useLayoutEffect:se,useInsertionEffect:bt,useTransition:yt,useDeferredValue:vt,useSyncExternalStore:Et,startTransition:wt,useRef:ue,useImperativeHandle:le,useMemo:ae,useCallback:ce,useContext:fe,useDebugValue:de,version:"17.0.2",Children:Ae,render:Je,hydrate:Ke,unmountComponentAtNode:ht,createPortal:$e,createElement:g,createContext:$,createFactory:at,cloneElement:dt,createRef:w,Fragment:v,isValidElement:ct,isElement:Ct,isFragment:ft,findDOMNode:pt,Component:y,PureComponent:xe,memo:Te,forwardRef:Ne,flushSync:gt,unstable_batchedUpdates:mt,StrictMode:_t,Suspense:Fe,SuspenseList:He,lazy:je,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut};class xt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Wt(this.value)}Equals(e){return null!=e&&Zt(this.value,e instanceof xt?e.value:e)}CompareTo(e){return null==e?1:Qt(this.value,e instanceof xt?e.value:e)}}function Tt(e){if(null==e)throw new Error("Option has no value");return e instanceof xt?e.value:e}function kt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ot(e){return null!=e&&"function"==typeof e.GetHashCode}function Nt(e){return null!=e&&"function"==typeof e.Dispose}function It(e){Nt(e)&&e.Dispose()}function At(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Mt{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class Pt{constructor(e){this.iter=e,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.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Dt(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new Pt(e[Symbol.iterator]())}function Lt(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Ft{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Rt(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function jt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Ht(e,t){return(e=e<0&&null!=t&&10!==t?65535+e+1:e).toString(t)}function Ut(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Bt{static id(e){return Bt.idMap.has(e)||Bt.idMap.set(e,++Bt.count),Bt.idMap.get(e)}}function Gt(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function $t(e){return 2654435761*e|0}function Vt(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function Wt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return $t(e);case"string":return Gt(e);default:if(Ot(e))return e.GetHashCode();if(kt(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Wt(e[r]);return Vt(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>Wt(e)));return Vt(t)}return $t(Bt.id(e))}}function qt(e){return function(e){return Ot(e)?e.GetHashCode():function(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return $t(e);case"string":return Gt(e);default:return $t(Bt.id(e))}}(e)}(e)}function zt(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}function Yt(e,t){return zt(e,t,Zt)}function Zt(e,t){var n;return e===t||(null==e?null==t:null!=t&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(t):kt(e)?kt(t)&&Yt(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===Jt(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.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]||!Zt(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function Jt(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+jt(e),r=t.getTime()+jt(t)),n===r?0:n<r?-1:1}function Kt(e,t){return e===t?0:e<t?-1:1}function Xt(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,Qt)}function Qt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(t):kt(e)?kt(t)?Xt(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?Jt(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.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 s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=Qt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function en(e,t,n){return e(t,n)>0?t:n}function tn(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Bt.idMap=new WeakMap,Bt.count=0;const nn=Symbol("curried");function rn(e,t){if(null==t)return t;const n=Tt(t);if(n.length>1)return n;const r=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return r[nn]=n,r}function on(e,t,n){return r=>1===t?n(...e.concat([r])):on(e.concat([r]),t-1,n)}function sn(e,t,n){if(null!=t){if(nn in t){t=t[nn];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return on(n,e,t)}}function un(e,t=0){var n,r;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+=un(r);else{if(100===t){n+="; ...";break}n+="; "+un(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+un(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class ln{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=un(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>un(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Wt(e)));return e.splice(0,0,$t(this.tag)),Vt(e)}Equals(e){return this===e||!!At(this,e)&&this.tag===e.tag&&Yt(this.fields,e.fields)}CompareTo(e){return this===e?0:At(this,e)?this.tag===e.tag?Xt(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class an{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+" = "+un(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Wt(e)));return Vt(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(At(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Zt(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(At(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Qt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class cn{get contents(){return this.getter()}set contents(e){this.setter(e)}constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}}class fn{constructor(e){this.message=e}}function dn(e){return function(e){return e instanceof fn||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}function hn(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 pn(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 hn(e,"_");case 3:return hn(e,"_").toUpperCase();case 4:return hn(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof ln){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}function mn(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function gn(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gn),r}var _n,wn=((_n=wn||{})[_n.None=0]="None",_n[_n.RenderStrategy=1]="RenderStrategy",_n[_n.Static=2]="Static",_n),vn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vn||{});function yn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let u=Cn(t,e);if(i)return bn(u,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=u;if(e)return bn(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=u;return gn(e?0:1,{0:()=>null,1:()=>bn({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return bn(u,n,r,s)}function bn(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...u}=xn(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},a="function"==typeof i?i(t):i;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let c={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(c["data-headlessui-state"]=n.join(" "))}if(o===v&&Object.keys(Sn(u)).length>0){if(!ct(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=a.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>mn(null==e?void 0:e.className(...t),u.className):mn(null==e?void 0:e.className,u.className),n=t?{className:t}:{};return dt(a,Object.assign({},Cn(a.props,Sn(xn(u,["ref"]))),c,l,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(a.ref,l.ref),n))}return g(o,Object.assign({},xn(u,["ref"]),o!==v&&l,o!==v&&c),a)}function Cn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function En(e){var t;return Object.assign(Ne(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Sn(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function xn(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Tn=Object.defineProperty,kn=(e,t,n)=>(((e,t,n)=>{t in e?Tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let On=new class{constructor(){kn(this,"current",this.detect()),kn(this,"handoffState","pending"),kn(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Nn=(e,t)=>{On.isServer?ie(e,t):se(e,t)};function In(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(t)((()=>()=>{}),(()=>!1),(()=>!e))}(),[n,r]=re(On.isHandoffComplete);return n&&!1===On.isHandoffComplete&&r(!1),ie((()=>{!0!==n&&r(!0)}),[n]),ie((()=>On.handoff()),[]),!e&&n}var An;let Mn=null!=(An=St.useId)?An:function(){let e=In(),[t,n]=St.useState(e?()=>On.nextId():null);return Nn((()=>{null===t&&n(On.nextId())}),[t]),null!=t?""+t:void 0};var Pn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Pn||{});function Dn(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}function Ln(e){let t=ue(e);return Nn((()=>{t.current=e}),[e]),t}let Fn=function(e){let t=Ln(e);return St.useCallback(((...e)=>t.current(...e)),[t])},Rn=Symbol();function jn(...e){let t=ue(e);ie((()=>{t.current=e}),[e]);let n=Fn((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Rn])))?void 0:n}let Hn=$(null);function Un(){let e=fe(Hn);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Un),e}return e}let Bn=En((function(e,t){let n=Mn(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Un(),u=jn(t);Nn((()=>s.register(r)),[r,s.register]);let l={ref:u,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),yn({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:"label",name:s.name||"Label"})})),Gn=Object.assign(Bn,{}),$n=$(null);function Vn(){let e=fe($n);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Vn),e}return e}function Wn(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,ae((()=>function(e){let n=Fn((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=ae((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return St.createElement($n.Provider,{value:r},e.children)}),[t])]}let qn=En((function(e,t){let n=Mn(),{id:r=`headlessui-description-${n}`,...o}=e,i=Vn(),s=jn(t);return Nn((()=>i.register(r)),[r,i.register]),yn({ourProps:{ref:s,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),zn=Object.assign(qn,{});function Yn(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Zn(e,t){let[n,r]=re((()=>Yn(e)));return Nn((()=>{r(Yn(e))}),[e.type,e.as]),Nn((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var Jn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Jn||{});let Kn=En((function(e,t){let{features:n=1,...r}=e;return yn({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Xn(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Qn(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Xn((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Qn();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function er(){let[e]=re(Qn);return ie((()=>()=>e.dispose()),[e]),e}let tr=$(null);tr.displayName="GroupContext";let nr=v,rr=En((function(e,t){let n=Mn(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:u,value:l,form:a,...c}=e,f=fe(tr),d=ue(null),h=jn(d,t,null===f?null:f.setSwitch),[p,m]=function(e,t,n){let[r,o]=re(n),i=void 0!==e,s=ue(i),u=ue(!1),l=ue(!1);return!i||s.current||u.current?!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Fn((e=>(i||o(e),null==t?void 0:t(e))))]}(o,s,i),g=Fn((()=>null==m?void 0:m(!p))),_=Fn((e=>{if(Dn(e.currentTarget))return e.preventDefault();e.preventDefault(),g()})),w=Fn((e=>{e.key===Pn.Space?(e.preventDefault(),g()):e.key===Pn.Enter&&function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget)})),v=Fn((e=>e.preventDefault())),y=ae((()=>({checked:p})),[p]),b={id:r,ref:h,role:"switch",type:Zn(e,d),tabIndex:0,"aria-checked":p,"aria-labelledby":null==f?void 0:f.labelledby,"aria-describedby":null==f?void 0:f.describedby,onClick:_,onKeyUp:w,onKeyPress:v},C=er();return ie((()=>{var e;let t=null==(e=d.current)?void 0:e.closest("form");t&&void 0!==i&&C.addEventListener(t,"reset",(()=>{m(i)}))}),[d,m]),St.createElement(St.Fragment,null,null!=u&&p&&St.createElement(Kn,{features:Jn.Hidden,...Sn({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:a,checked:p,name:u,value:l})}),yn({ourProps:b,theirProps:c,slot:y,defaultTag:"button",name:"Switch"}))})),or=Object.assign(rr,{Group:function(e){var t;let[n,r]=re(null),[o,i]=function(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,ae((()=>function(e){let n=Fn((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=ae((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return St.createElement(Hn.Provider,{value:r},e.children)}),[t])]}(),[s,u]=Wn(),l=ae((()=>({switch:n,setSwitch:r,labelledby:o,describedby:s})),[n,r,o,s]),a=e;return St.createElement(u,{name:"Switch.Description"},St.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(t=l.switch)?void 0:t.id,onClick(e){n&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},St.createElement(tr.Provider,{value:l},yn({ourProps:{},theirProps:a,defaultTag:nr,name:"Switch.Group"}))))},Label:Gn,Description:zn});class ir extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Checked","OnChange","ClassName","Children"]}}function sr(e){const t=pn(e,1);return g(or,t)}class ur extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["ClassName","Children"]}}function lr(e){const t=pn(e,1);return g(or.Label,t)}class ar extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Children"]}}function cr(e){const t=pn(e,1);return g(or.Group,t)}function fr(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Rt(~~(e/36e5),2)+":"+Rt(n,2)}function dr(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 hr(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:Rt(r,t.length)}))}function pr(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," ")+fr(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return hr(i,t,!0);switch(t){case"D":case"d":return dr(i,"first");case"T":case"t":return dr(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+fr(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 hr(e,t,n);switch(t){case"D":case"d":return n?dr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?dr(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 Rt(e.getFullYear(),4)+"-"+Rt(e.getMonth()+1,2)+"-"+Rt(e.getDate(),2)+"T"+Rt(e.getHours(),2)+":"+Rt(e.getMinutes(),2)+":"+Rt(e.getSeconds(),2)+"."+Rt(e.getMilliseconds(),3)+(t?fr(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function mr(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function gr(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function _r(e,t){try{return t.contents=function(e,t=!1){const[n,r]=gr(e),o=null!=r?t&&"Z"===r?1:2:0;return mr(n.getTime(),o)}(e),!0}catch(e){return!1}}const wr=Symbol("numeric");function vr(e){return"number"==typeof e||(null==e?void 0:e[wr])}function yr(e,t){return"number"==typeof e?e*t:e[wr]().multiply(t)}function br(e,t){return"number"==typeof e?e.toFixed(t):e[wr]().toFixed(t)}function Cr(e,t){return"number"==typeof e?e.toPrecision(t):e[wr]().toPrecision(t)}function Er(e,t){return"number"==typeof e?e.toExponential(t):e[wr]().toExponential(t)}function Sr(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[wr]().toHex()}function xr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Tr(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const kr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Or=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Nr(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ir(e){return{input:e,cont:(t=e,e=>{kr.lastIndex=0;const n=[],r=[];let o=0,i=kr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=kr.lastIndex,kr.lastIndex-=1,i=kr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Lr(e,n,r))})};var t}function Ar(e,t){return"string"==typeof t?e(t):t.cont(e)}function Mr(e){return Ar((e=>e),e)}function Pr(e){return Ar((e=>{throw new Error(e)}),e)}function Dr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",vr(e))switch("x"!==o.toLowerCase()&&(Nr(e,0)?(e=yr(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=br(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Cr(e,r):Cr(e);break;case"e":case"E":e=null!=r?Er(e,r):Er(e);break;case"x":e=Sr(e);break;case"X":e=Sr(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?pr(e):un(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,s=o||!r?" ":"0";e="0"===s?i+(e=Rr(e,n-i.length,s,o)):Rr(i+e,n,s,o)}return e}function Lr(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),l=n.slice();for(const e of i){const[,,t,n,r,i]=l[0];let a=n;if(o>=0)a=o,o=-1;else if("*"===a){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Dr(e,t,a,r,i),u.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=u[0],e(s)):Lr(e,u,l,s,o)}}function Fr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Rr(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 jr(e,t,n){return Rr(e,t,n)}function Hr(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(xr),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let l=!0,a=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(a).trim():e.substring(a);(!o||t.length>0)&&s.push(t),l=!1}else{const r=i?e.substring(a,t.index).trim():e.substring(a,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(a).trim():e.substring(a)),l=!1):s.push(r)),a=u.lastIndex}}while(l);return s}const Ur="Collection was empty.";function Br(e,t){return"function"==typeof e?new e(t):new Array(t)}function Gr(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function $r(e,t,n){const r=0|t.length,o=Br(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Vr(e,t,n){return n.reduce(e,t)}function Wr(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class qr extends an{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Fr("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const s=o,u=i;if(Zt(n.head,r.head)){e=s,t=u;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+Wt(i.head)+631*r,n=u}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const s=o,u=i,l=0|Qt(n.head,r.head);if(0===l){e=s,t=u;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new zr(this)}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Dt(this)}}class zr{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 Yr(){return new qr(null,void 0)}function Zr(e,t){return new qr(e,t)}function Jr(e){return null==e.tail}function Kr(e){if(null!=e.tail)return e.head;throw new Error(Ur+"\\nParameter name: list")}function Xr(e){const t=e.tail;if(null!=t)return t;throw new Error(Ur+"\\nParameter name: list")}function Qr(){return Yr()}function eo(e,t){return Zr(e,t)}function to(e){return Zr(e,Yr())}function no(e){return Jr(e)}function ro(e){return Kr(e)}function oo(e){return Xr(e)}function io(e){const t=0|function(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}(e),n=Gr(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Jr(o))break;n[r]=Kr(o),e=r+1,t=Xr(o)}})(0,e),n}function so(e,t,n){let r=t,o=n;for(;!Jr(o);)r=e(r,ro(o)),o=Xr(o);return r}function uo(e){return so(((e,t)=>Zr(t,e)),Yr(),e)}function lo(e,t){so(((t,n)=>{e(n)}),void 0,t)}function ao(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Zr(e[t],n);return n}function co(e){return ao(e,Yr())}function fo(e,t){return so(((e,t)=>Zr(t,e)),t,uo(e))}function ho(e,t,n){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Jr(o))return;if(e(Kr(o)))return r;t=r+1,n=Xr(o)}})(0,t)}((t=>n.Equals(e,t)),t)}const po=St;function mo(e){return null==e||e instanceof xt?new xt(e):e}function go(e,t){return null!=e?Tt(e):t}const _o="The input sequence has an insufficient number of elements.";function wo(){throw new Error("Enumeration has not started. Call MoveNext.")}function vo(){throw new Error("Enumeration already finished.")}class yo{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Dt(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=un(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{It(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class bo{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 Co(e,t,n){return new bo(e,t,n)}function Eo(e,t,n){let r,o=!1,i=mo(e());const s=()=>{if(null!=i){const e=Tt(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Co((()=>(o||wo(),null!=r?Tt(r):vo())),(()=>{if(o||(o=!0),null!=i){const e=Tt(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function So(e){return function(e){return new yo(e)}(e)}function xo(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Dt(e);var t}function To(e){return So((()=>Dt(e())))}function ko(e){return So((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{It(e)}finally{n=void 0}}if(null!=t){const e=t;try{It(e)}finally{t=void 0}}};return Co((()=>(o?i&&vo():wo(),null!=r?Tt(r):vo())),(()=>{let u;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=t;if(null!=i)if(null!=n){const e=n;if(e["System.Collections.IEnumerator.MoveNext"]())r=mo(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{It(e)}finally{n=void 0}}else{const e=i;e["System.Collections.IEnumerator.MoveNext"]()?(u=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Dt(u)):(s(),o=!1)}else t=Dt(e)}return Tt(o)}}),(()=>{i||s()}))}(e)))}function Oo(){return To((()=>new Array(0)))}function No(e){return To((()=>function(e,t){const n=Br(null,1);return n[0]=e,n}(e)))}function Io(e){return kt(e)?co(e):e instanceof qr?e:function(e){let t,n;if(kt(e))return co(e);if(e instanceof qr)return e;{const r=Yr();let o=r;const i=Dt(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new qr(e,void 0),t.tail=n,o=n}}finally{It(i)}const s=o,u=Yr();return s.tail=u,Xr(r)}}(e)}function Ao(e,t,n){return So((()=>{let r=-1;return Eo(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Mo(e,t){return ko([e,t])}function Po(e,t,n){const r=xo(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{It(r)}}function Do(e,t,n){const r=xo(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{It(r)}}function Lo(e,t){Do(((t,n)=>{e(n)}),void 0,t)}function Fo(e,t){return n=()=>xo(t),r=t=>t["System.Collections.IEnumerator.MoveNext"]()?mo(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{It(e)},So((()=>Eo(n,r,o)));var n,r,o}class Ro{constructor(e,t){this.cleanup=e,this.res=t}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function jo(e,t){return So((()=>{const n=xo(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(_o+"\\nParameter name: source");return function(e,t){return Co((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{It(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw It(n),e}}))}class Ho{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Uo{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Jo(this)}GetHashCode(){return Go(this)}Equals(e){return $o(this,e)}}function Bo(e){return null!=e.generics?e.generics:[]}function Go(e){return Vt([Gt(e.fullname),...Bo(e).map(Go)])}function $o(e,t){return""===e.fullname?""===t.fullname&&zt(si(e),si(t),(([e,t],[n,r])=>e===n&&$o(t,r))):e.fullname===t.fullname&&zt(Bo(e),Bo(t),$o)}function Vo(...e){return new Uo("",void 0,void 0,void 0,(()=>e))}const Wo=new Uo("System.Object"),qo=(new Uo("Microsoft.FSharp.Core.Unit"),new Uo("System.Char"),new Uo("System.String")),zo=new Uo("System.Boolean"),Yo=(new Uo("System.SByte"),new Uo("System.Byte"),new Uo("System.Int16"),new Uo("System.UInt16"),new Uo("System.Int32"));function Zo(e){if(Array.isArray(e))return e[0];if(e instanceof Uo){const t=Xo(e);if(null!=t)return Zo(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Jo(e){const t=Xo(e);return null!=t?Jo(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Jo(e))).join(",")+"]"}function Ko(e){return null!=Xo(e)}function Xo(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Qo(e){return null!=e.generics&&e.generics.length>0}function ei(e){return null!=e.enumCases&&e.enumCases.length>0}function ti(e){return null==e.generics?e:new Uo(e.fullname,e.generics.map((()=>Wo)))}function ni(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function ri(e){if(ei(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function oi(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function ii(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function si(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ui(e){if(ci(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function li(e){return e instanceof Uo?null!=e.cases:e instanceof ln}function ai(e){return e instanceof Uo?null!=e.fields:e instanceof an}function ci(e){return e.fullname.startsWith("System.Tuple")}function fi(e){return null==e.fields?[]:e.fields}function di(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,t):{}}new Uo("System.UInt32"),new Uo("System.Int64"),new Uo("System.UInt64"),new Uo("System.Int128"),new Uo("System.UInt128"),new Uo("System.IntPtr"),new Uo("System.UIntPtr"),new Uo("System.Half"),new Uo("System.Single"),new Uo("System.Double"),new Uo("System.Decimal"),new Uo("System.Numerics.BigInteger");class hi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function pi(e,t){return 0===t.tag?new hi(0,[e(t.fields[0])]):new hi(1,[t.fields[0]])}class mi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class gi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class _i extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class wi{constructor(){this.cache=new Map([])}}function vi(){return new wi}function yi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function bi(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=Tr(e,s),l=Tr.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}return t.replace(e,n)}(yi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return yi(t)}}vi(),vi();const Ci=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ei=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Si=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function xi(e,t){try{return t.contents=function(e){function t(e){return e.replace(Ei,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ci.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+xr(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Ei.test(n))return t(n);if(Si.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var Ti;function ki(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Oi(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&Ti.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=ki(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=ki(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function Ni(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Ii(e,t){try{return t.contents=function(e){const[t,n]=gr(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Ni(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Ti||(Ti={}));var Ai=null;try{Ai=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(a){}function Mi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Pi(e){return!0===(e&&e.__isLong__)}Mi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Mi.prototype.Equals=function(e){return ss(this,e)},Mi.prototype.CompareTo=function(e){return cs(this,e)},Mi.prototype.toString=function(e){return ns(this,e)},Mi.prototype.toJSON=function(){return ns(this)},Mi.prototype[wr]=function(){const e=this;return{multiply:t=>ps(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>ns(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Mi(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new Mi(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}(function(e,t){return t?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(e):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(e)}(e),!0),16)}},Mi.prototype.__isLong__,Object.defineProperty(Mi.prototype,"__isLong__",{value:!0});var Di={},Li={};function Fi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Li[e])?r:(n=ji(e,(0|e)<0?-1:0,!0),o&&(Li[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Di[e])?r:(n=ji(e,e<0?-1:0,!1),o&&(Di[e]=n),n)}function Ri(e,t){if(isNaN(e))return t?zi:qi;if(t){if(e<0)return zi;if(e>=$i)return Xi}else{if(e<=-Vi)return Qi;if(e+1>=Vi)return Ki}return e<0?fs(Ri(-e,t)):ji(e%Gi|0,e/Gi|0,t)}function ji(e,t,n){return new Mi(e,t,n)}var Hi=Math.pow;function Ui(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return qi;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return fs(Ui(e.substring(1),t,n));for(var o=Ri(Hi(n,8)),i=qi,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),n);i=ds(u<8?ps(i,Ri(Hi(n,u))):i=ps(i,o),Ri(l))}return i.unsigned=t,i}function Bi(e,t){return"number"==typeof e?Ri(e,t):"string"==typeof e?Ui(e,t):ji(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Gi=4294967296,$i=Gi*Gi,Vi=$i/2,Wi=Fi(1<<24),qi=Fi(0),zi=Fi(0,!0),Yi=Fi(1),Zi=Fi(1,!0),Ji=Fi(-1),Ki=ji(-1,2147483647,!1),Xi=ji(-1,-1,!0),Qi=ji(0,-2147483648,!1);function es(e){return e.unsigned?e.low>>>0:e.low}function ts(e){return e.unsigned?(e.high>>>0)*Gi+(e.low>>>0):e.high*Gi+(e.low>>>0)}function ns(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(rs(e))return"0";if(os(e)){if(ss(e,Qi)){var n=Ri(t),r=ms(e,n),o=hs(ps(r,n),e);return ns(r,t)+es(o).toString(t)}return"-"+ns(fs(e),t)}for(var i=Ri(Hi(t,6),e.unsigned),s=e,u="";;){var l=ms(s,i),a=(es(hs(s,ps(l,i)))>>>0).toString(t);if(rs(s=l))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function rs(e){return 0===e.high&&0===e.low}function os(e){return!e.unsigned&&e.high<0}function is(e){return 1==(1&e.low)}function ss(e,t){return Pi(t)||(t=Bi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function us(e,t){return cs(e,t)<0}function ls(e,t){return cs(e,t)>0}function as(e,t){return cs(e,t)>=0}function cs(e,t){if(Pi(t)||(t=Bi(t)),ss(e,t))return 0;var n=os(e),r=os(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:os(hs(e,t))?-1:1}function fs(e){return!e.unsigned&&ss(e,Qi)?Qi:ds(function(e){return ji(~e.low,~e.high,e.unsigned)}(e),Yi)}function ds(e,t){Pi(t)||(t=Bi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+l)>>>16,a+=(c+=r+u)>>>16,a+=n+s,ji((f&=65535)<<16|(d&=65535),(a&=65535)<<16|(c&=65535),e.unsigned)}function hs(e,t){return Pi(t)||(t=Bi(t)),ds(e,fs(t))}function ps(e,t){if(rs(e))return e.unsigned?zi:qi;if(Pi(t)||(t=Bi(t)),Ai)return ji(Ai.mul(e.low,e.high,t.low,t.high),Ai.get_high(),e.unsigned);if(rs(t))return e.unsigned?zi:qi;if(ss(e,Qi))return is(t)?Qi:qi;if(ss(t,Qi))return is(e)?Qi:qi;if(os(e))return os(t)?ps(fs(e),fs(t)):fs(ps(fs(e),t));if(os(t))return fs(ps(e,fs(t)));if(us(e,Wi)&&us(t,Wi))return Ri(ts(e)*ts(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=65535&t.low,c=0,f=0,d=0,h=0;return d+=(h+=i*a)>>>16,f+=(d+=o*a)>>>16,d&=65535,f+=(d+=i*l)>>>16,c+=(f+=r*a)>>>16,f&=65535,c+=(f+=o*l)>>>16,f&=65535,c+=(f+=i*u)>>>16,c+=n*a+r*l+o*u+i*s,ji((d&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function ms(e,t){if(Pi(t)||(t=Bi(t)),rs(t))throw Error("division by zero");var n,r,o;if(Ai)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?ji((e.unsigned?Ai.div_u:Ai.div_s)(e.low,e.high,t.low,t.high),Ai.get_high(),e.unsigned):e;if(rs(e))return e.unsigned?zi:qi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:ji(e.low,e.high,!0)}(t)),ls(t,e))return zi;if(ls(t,function(e,t){if(Pi(t)&&(t=es(t)),0==(t&=63))return e;var n=e.high;return t<32?ji(e.low>>>t|n<<32-t,n>>>t,e.unsigned):ji(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Zi;o=zi}else{if(ss(e,Qi))return ss(t,Yi)||ss(t,Ji)?Qi:ss(t,Qi)?Yi:ss(n=function(e,t){return Pi(t)&&(t=es(t)),0==(t&=63)?e:t<32?ji(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ji(0,e.low<<t-32,e.unsigned)}(ms(function(e,t){return Pi(t)&&(t=es(t)),0==(t&=63)?e:t<32?ji(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ji(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),qi)?os(t)?Yi:Ji:o=ds(n,ms(r=hs(e,ps(t,n)),t));if(ss(t,Qi))return e.unsigned?zi:qi;if(os(e))return os(t)?ms(fs(e),fs(t)):fs(ms(fs(e),t));if(os(t))return fs(ms(e,fs(t)));o=qi}for(r=e;as(r,t);){n=Math.max(1,Math.floor(ts(r)/ts(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Hi(2,i-48),u=Ri(n),l=ps(u,t);os(l)||ls(l,r);)l=ps(u=Ri(n-=s,e.unsigned),t);rs(u)&&(u=Yi),o=ds(o,u),r=hs(r,l)}return o}const gs=ms,_s=ts;function ws(e){return e<0?Math.ceil(e):Math.floor(e)}function vs(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ys(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function ys(e){return _s(gs(e,1e4))}function bs(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return vs(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*vs(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Cs{constructor(e,t){this.k=e,this.v=t}}function Es(e,t){return new Cs(e,t)}function Ss(e){return e.k}function xs(e){return e.v}class Ts extends Cs{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ks(e,t,n,r,o){return new Ts(e,t,n,r,o)}function Os(e){return e.left}function Ns(e){return e.right}function Is(e){return e.h}function As(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Ts){e=As(n+1,Os(r)),t=Ns(r);continue e}return n+1|0}return 0|n}}function Ms(e){return As(0,e)}function Ps(e,t,n,r){let o,i;o=null!=e?e instanceof Ts?Is(e):1:0,i=null!=r?r instanceof Ts?Is(r):1:0;const s=0|(o<i?i:o);return 0===s?Es(t,n):ks(t,n,e,r,s+1)}function Ds(e,t,n,r){let o,i,s,u,l,a;if(l=null!=e?e instanceof Ts?Is(e):1:0,a=null!=r?r instanceof Ts?Is(r):1:0,a>l+2){const s=Tt(r);if(s instanceof Ts){if(o=Os(s),(null!=o?(i=o,i instanceof Ts?Is(i):1):0)>l+1){const r=Tt(Os(s));if(r instanceof Ts)return Ps(Ps(e,t,n,Os(r)),Ss(r),xs(r),Ps(Ns(r),Ss(s),xs(s),Ns(s)));throw new Error("internal error: Map.rebalance")}return Ps(Ps(e,t,n,Os(s)),Ss(s),xs(s),Ns(s))}throw new Error("internal error: Map.rebalance")}if(l>a+2){const o=Tt(e);if(o instanceof Ts){if(s=Ns(o),(null!=s?(u=s,u instanceof Ts?Is(u):1):0)>a+1){const e=Tt(Ns(o));if(e instanceof Ts)return Ps(Ps(Os(o),Ss(o),xs(o),Os(e)),Ss(e),xs(e),Ps(Ns(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ps(Os(o),Ss(o),xs(o),Ps(Ns(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ps(e,t,n,r)}function Ls(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Ss(o));return o instanceof Ts?i<0?Ds(Ls(e,t,n,Os(o)),Ss(o),xs(o),Ns(o)):0===i?ks(t,n,Os(o),Ns(o),Is(o)):Ds(Os(o),Ss(o),xs(o),Ls(e,t,n,Ns(o))):i<0?ks(t,n,void 0,r,2):0===i?Es(t,n):ks(t,n,r,void 0,2)}return Es(t,n)}function Fs(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Ss(i));if(0===s)return mo(xs(i));if(i instanceof Ts){e=r,t=o,n=s<0?Os(i):Ns(i);continue e}return}return}}function Rs(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Ts){Rs(n,Os(r)),n(Ss(r),xs(r)),e=n,t=Ns(r);continue e}n(Ss(r),xs(r))}break}}function js(e,t){Rs(e,t)}function Hs(e,t){if(null!=t){const n=t;if(n instanceof Ts){const t=Hs(e,Os(n)),r=e(Ss(n),xs(n)),o=Hs(e,Ns(n));return ks(Ss(n),r,t,o,Is(n))}return Es(Ss(n),e(Ss(n),xs(n)))}}function Us(e,t){return Hs(e,t)}function Bs(e,t){if(kt(t))return function(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ls(e,o[0],o[1],n)}return n}(e,t);if(t instanceof qr)return function(e,t){return so(((t,n)=>Ls(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Dt(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Ls(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{It(n)}}}class Gs extends an{constructor(e,t){super(),this.stack=e,this.started=t}}function $s(e){e:for(;;){const t=e;if(no(t))return Qr();{const n=oo(t),r=ro(t);if(null!=r){const o=r;if(o instanceof Ts){e=ao([Os(o),Es(Ss(o),xs(o)),Ns(o)],n);continue e}return t}e=n;continue e}}}function Vs(e){return new Gs($s(to(e)),!1)}function Ws(e){if(e.started){const t=e.stack;if(no(t))return function(){throw new Error("enumeration already finished")}();if(null!=ro(t)){const e=ro(t);if(e instanceof Ts)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ss(e),xs(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function qs(e){let t=Vs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ws(t),"System.Collections.IEnumerator.get_Current":()=>Ws(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(no(t))return!1;if(null!=ro(t)){if(ro(t)instanceof Ts)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=$s(oo(t)),!no(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!no(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Vs(e)},Dispose(){}}}class zs{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Dt(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Wt(e[0])),n=0|t(n,Wt(e[1]))}}finally{It(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zs))return!1;{const t=Dt(this);try{const n=Dt(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Zt(r[0],o[0])||!Zt(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{It(n)}}finally{It(t)}}}toString(){return"map ["+Fr("; ",Fo((e=>function(e,...t){let n;return"object"==typeof e?(n=String(t[0]),t.shift()):n=e,n.replace(Or,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[n];if(vr(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=br(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Cr(u,i):Cr(u);break;case"e":case"E":u=null!=i?Er(u,i):Er(u);break;case"p":case"P":i=null!=i?i:2,u=br(yr(u,100),i)+" %";break;case"d":case"D":u=null!=i?jr(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?jr(Sr(u),i,"0"):Sr(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Nr(u,0)&&(u=yr(u,-1),e="-"),r=null==r?"":r.substring(1),u=br(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=jr(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Rr(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?pr(u,s||o):un(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Rr(String(u),Math.abs(r)," ",r<0)),u}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return qs(this.tree)}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return qs(this.tree)}CompareTo(e){const t=this;if(e instanceof zs)return 0|function(e,t,n){const r=xo(t);try{const t=xo(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{It(t)}}finally{It(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:Qt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ks(this,e[0])&&Zt(Zs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){!function(e,t,n){let r=n;js(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Js(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Js(this)}get size(){return 0|Js(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Fo((e=>[e[0],e[1]]),this)}get(e){return Zs(this,e)}has(e){return Ks(this,e)}keys(){return Fo((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Fo((e=>e[1]),this)}forEach(e,t){const n=this;Lo((t=>{sn(2,e,[t[1]])(t[0])(n)}),n)}}function Ys(e,t){return new zs(e,t)}function Zs(e,t){return function(e,t,n){const r=Fs(e,t,n);if(null==r)throw new Error;return Tt(r)}(e.comparer,t,e.tree)}function Js(e){return Ms(e.tree)}function Ks(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Ss(i));if(i instanceof Ts){if(s<0){e=r,t=o,n=Os(i);continue e}if(0===s)return!0;e=r,t=o,n=Ns(i);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Xs(e,t,n){return function(e,t,n){return Ys(e.comparer,Ls(e.comparer,t,n,e.tree))}(n,e,t)}function Qs(e,t){return function(e,t){return Fs(e.comparer,t,e.tree)}(t,e)}function eu(e,t){return function(e,t){return Ys(e.comparer,Us(t,e.tree))}(t,e)}function tu(e){return function(e){return Ys(e,void 0)}(e)}class nu{constructor(e){this.k=e}}function ru(e){return new nu(e)}function ou(e){return e.k}class iu extends nu{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function su(e,t,n,r){return new iu(e,t,n,r)}function uu(e){return e.left}function lu(e){return e.right}function au(e){return e.h}function cu(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof iu){e=uu(r),t=cu(lu(r),n+1);continue e}return n+1|0}return 0|n}}function fu(e){return cu(e,0)}function du(e,t,n){let r,o;r=null!=e?e instanceof iu?au(e):1:0,o=null!=n?n instanceof iu?au(n):1:0;const i=0|(r<o?o:r);return 0===i?ru(t):su(t,e,n,i+1)}function hu(e,t,n){let r,o,i,s,u,l;if(u=null!=e?e instanceof iu?au(e):1:0,l=null!=n?n instanceof iu?au(n):1:0,l>u+2){const i=Tt(n);if(i instanceof iu){if(r=uu(i),(null!=r?(o=r,o instanceof iu?au(o):1):0)>u+1){const n=Tt(uu(i));if(n instanceof iu)return du(du(e,t,uu(n)),ou(n),du(lu(n),ou(i),lu(i)));throw new Error("internal error: Set.rebalance")}return du(du(e,t,uu(i)),ou(i),lu(i))}throw new Error("internal error: Set.rebalance")}if(u>l+2){const r=Tt(e);if(r instanceof iu){if(i=lu(r),(null!=i?(s=i,s instanceof iu?au(s):1):0)>l+1){const e=Tt(lu(r));if(e instanceof iu)return du(du(uu(r),ou(r),uu(e)),ou(e),du(lu(e),t,n));throw new Error("internal error: Set.rebalance")}return du(uu(r),ou(r),du(lu(r),t,n))}throw new Error("internal error: Set.rebalance")}return du(e,t,n)}function pu(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,ou(r));if(r instanceof iu)return o<0?hu(pu(e,t,uu(r)),ou(r),lu(r)):0===o?n:hu(uu(r),ou(r),pu(e,t,lu(r)));{const o=0|e.Compare(t,ou(r));return o<0?su(t,void 0,n,2):0===o?n:su(t,n,void 0,2)}}return ru(t)}function mu(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,ou(i));if(i instanceof iu){if(s<0){e=r,t=o,n=uu(i);continue e}if(0===s)return!0;e=r,t=o,n=lu(i);continue e}return 0===s}return!1}}function gu(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof iu){gu(n,uu(r)),n(ou(r)),e=n,t=lu(r);continue e}n(ou(r))}break}}class _u extends an{constructor(e,t){super(),this.stack=e,this.started=t}}function wu(e){e:for(;;){const t=e;if(no(t))return Qr();{const n=ro(t),r=oo(t);if(null!=n){const o=n;if(o instanceof iu){e=ao([uu(o),ru(ou(o)),lu(o)],r);continue e}return t}e=r;continue e}}}function vu(e){return new _u(wu(to(e)),!1)}function yu(e){if(e.started){const t=e.stack;if(no(t))return function(){throw new Error("Enumeration already started")}();if(null!=ro(t))return ou(ro(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function bu(e){let t=vu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>yu(t),"System.Collections.IEnumerator.get_Current":()=>yu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(no(t))return!1;if(null!=ro(t)){if(ro(t)instanceof iu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wu(oo(t)),!no(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!no(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=vu(e)},Dispose(){}}}function Cu(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(no(o))return no(i)?0:-1;if(no(i))return 1;if(null!=ro(i))if(null!=ro(o)){const s=ro(o),u=ro(i);if(s instanceof iu)if(null==uu(s)){if(!(u instanceof iu)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=eo(lu(s),oo(o)),n=eo(void 0,oo(i));continue e}if(null==uu(u)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=eo(lu(s),oo(o)),n=eo(lu(u),oo(i));continue e}{let s,u,l,a,c;switch(no(o)?no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2:null!=ro(o)?(s=0,u=oo(o),l=ro(o)):no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=ao([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=ao([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let s,u,l,a,c;switch(no(o)?no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2:null!=ro(o)?(s=0,u=oo(o),l=ro(o)):no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=ao([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=ao([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof iu)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=oo(o),n=oo(i);continue e}if(null==uu(u)){const l=0|r.Compare(ou(s),ou(u));if(0!==l)return 0|l;e=r,t=eo(void 0,oo(o)),n=eo(lu(u),oo(i));continue e}{let s,u,l,a,c;switch(no(o)?no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2:null!=ro(o)?(s=0,u=oo(o),l=ro(o)):no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=ao([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=ao([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let s,u,l,a,c;switch(ro(i),no(o)?no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2:null!=ro(o)?(s=0,u=oo(o),l=ro(o)):no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=ao([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=ao([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==ro(o)){e=r,t=oo(o),n=oo(i);continue e}{let s,u,l,a,c;switch(ro(o),no(o)?no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2:null!=ro(o)?(s=0,u=oo(o),l=ro(o)):no(i)?s=2:null!=ro(i)?(s=1,a=oo(i),c=ro(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=ao([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=ao([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,to(t),to(n))}function Eu(e,t,n){let r=n;gu((e=>{t[r]=e,r=r+1|0}),e)}function Su(e,t){if(kt(t))return function(e,t){return Vr(((t,n)=>pu(e,n,t)),void 0,t)}(e,t);if(t instanceof qr)return function(e,t){return so(((t,n)=>pu(e,n,t)),void 0,t)}(e,t);{const n=Dt(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=pu(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{It(n)}}}class xu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=Dt(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+Wt(n["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{It(n)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof xu&&0===Cu(Tu(this),ku(this),ku(e))}toString(){return"set ["+Fr("; ",Fo((e=>un(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Cu(Tu(this),ku(this),ku(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return mu(Tu(this),e,ku(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){Eu(ku(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ou(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ou(this)}GetEnumerator(){return bu(ku(this))}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return bu(ku(this))}get size(){return 0|Ou(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return n=e,mu(Tu(t=this),n,ku(t));var t,n}keys(){return Fo((e=>e),this)}values(){return Fo((e=>e),this)}entries(){return Fo((e=>[e,e]),this)}forEach(e,t){const n=this;Lo((t=>{sn(2,e,[t])(t)(n)}),n)}}function Tu(e){return e.comparer}function ku(e){return e.tree}function Ou(e){return fu(ku(e))}function Nu(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function Iu(e,t){const n=2===t.tag?Nu(t.fields[0],t.fields[1],!0):1===t.tag?Nu(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Nu(t.fields[0],t.fields[1],!0):4===t.tag?Nu(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Fr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Nu(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Au(e,t,n){let r;if(r=sn(1,t,[e])(n),1===r.tag){const e=r.fields[0];return new hi(1,[Iu(e[0],e[1])])}return new hi(0,[r.fields[0]])}function Mu(e,t){try{return Au("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new hi(1,["Given an invalid JSON: "+e.message]);throw e}}const Pu=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new hi(0,[(e+128&255)-128]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!1,8,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])},Du=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new hi(0,[255&e]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!0,8,new cn((()=>t),(e=>{t=e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])},Lu=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new hi(0,[(e+32768&65535)-32768]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!1,16,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])},Fu=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new hi(0,[65535&e]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!0,16,new cn((()=>t),(e=>{t=e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])},Ru=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new hi(0,[~~e]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!1,32,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])},ju=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new hi(0,[e>>>0]):new hi(1,[[r,new gi(1,[n,e,"Value was either too large or too small for "+n])]]):new hi(1,[[r,new gi(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Oi(o,511,!0,32,new cn((()=>t),(e=>{t=e}))),t],e[0]?new hi(0,[e[1]]):new hi(1,[[r,new gi(0,[n,o])]])}return new hi(1,[[r,new gi(0,[n,o])]])};function Hu(e,t,n,r){let o;const i=n+".["+Ut(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new hi(1,[[i,new gi(5,["a longer array. Need index `"+Ut(e)+"` but there are only `"+(o=n.length,Ut(o)+"` entries"),r])]])}return new hi(1,[[i,new gi(0,["an array",r])]])}function Uu(e,t,n){if(Array.isArray(n)){let r=-1;return pi(uo,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ut(r)+"]",o);return 0===i.tag?new hi(0,[eo(i.fields[0],n.fields[0])]):new hi(1,[i.fields[0]])}return n}),new hi(0,[Qr()]),n))}return new hi(1,[[t,new gi(0,["a list",n])]])}function Bu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+Ut(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new hi(0,[i])):new hi(1,[s.fields[0]])}return n}),new hi(0,[Gr(new Array(o.length),0,o.length,null)]),o)}return new hi(1,[[t,new gi(0,["an array",n])]])}function Gu(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new hi(1,[o.fields[0]])}function $u(e,t){let n;const r=e;return n=e=>t=>Hu(0,r,e,t),e=>r=>Gu(rn(3,(e=>{let n;const r=t;return n=e=>t=>Hu(1,r,e,t),t=>r=>Gu(((t,n,r)=>new hi(0,[[e,t]])),rn(2,n),t,r)})),rn(2,n),e,r)}function Vu(e){return Ys(t={Compare:Qt},Bs(t,e));var t}function Wu(e){return function(e,t){return new xu(e,t)}(t={Compare:Qt},Su(t,e));var t}function qu(e,t,n,r){let o,i,s,u,l;return t.length!==r.length?new hi(1,[[n,new gi(6,[(o=0|t.length,i=0|r.length,s=Mr(Ir("Expected %i %s but got %i")),u=s(o),l=u(e),l(i))])]]):Wr(((e,t,r)=>0===r.tag?pi((e=>eo(e,r.fields[0])),t(n)(e)):r),r,t,new hi(0,[Qr()]))}function zu(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Zo(e)===r))}(0,ii(n));if(null!=s){const n=s;return 0===i.length?new hi(0,[di(n,[])]):pi((e=>di(n,io(e))),qu("union fields",$r((n=>Zu(e,t,!1,n[1])),fi(n),null),o,i))}return new hi(1,[[o,new gi(6,["Cannot find case "+r+" in "+Jo(n)])]])}function Yu(e,t,n,r){let o,i;const s=new cn(null);let u;const l=Jo(r);let a;if(u=Xs(l,s,e),ai(r)){const e=$r((e=>[bi(t,Zo(e)),Zu(u,t,!1,e[1])]),si(r),null);a=t=>n=>pi((e=>function(e,t){const n=si(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,io(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new hi(1,[[t,new gi(0,["an object",n])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?pi((e=>eo(e,r.fields[0])),e[1](t+"."+o)(n[o])):r})(r,e)),o)}(0,e,new hi(0,[Qr()]))}(e,t,n))}else if(li(r))a=e=>n=>{if("string"==typeof n)return zu(u,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return zu(u,t,r,o[0],e,o.slice(1,o.length))}return new hi(1,[[e,new gi(0,["a string or array",n])]])};else{if(!n)throw new Error((o=Jo(r),i=Mr(Ir("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));a=e=>t=>new hi(1,[[e,new gi(2,["an extra coder for "+Jo(r),t])]])}return s.contents=a,a}function Zu(e,t,n,r){let o,i,s;const u=Jo(r),l=Qs(u,e);if(null==l){if(Ko(r)){const n=Zu(e,t,!1,Xo(r));return e=>t=>Bu(rn(2,n),e,t)}if(ei(r)){const e=Jo(ni(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Pu(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,e.toString())]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Du(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,e.toString())]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Lu(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,Ht(e))]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Fu(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,e.toString())]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Ru(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,Ut(e))]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ju(o)(i);if(1===s.tag)return new hi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,ri(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new hi(0,[oi(n,e.toString())]):new hi(1,[[o,new gi(1,[Jo(n),i,"Unkown value provided for the enum"])]])}};{const e=Jo(r),t=Pr(Ir("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Qo(r)){if(ci(r)){const n=$r((n=>Zu(e,t,!1,n)),ui(r),null);return e=>t=>Array.isArray(t)?pi((e=>io(e)),qu("tuple elements",n,e,t)):new hi(1,[[e,new gi(0,["an array",t])]])}{const u=Jo(ti(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Zu(e,t,!0,Bo(r)[0]),e=>t=>{return n=rn(2,o),r=e,null==(i=t)?new hi(0,[void 0]):pi(mo,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Zu(e,t,!1,Bo(r)[0]),e=>t=>Uu(rn(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Zu(e,t,!1,Bo(r)[0]),o=Zu(e,t,!1,Bo(r)[1]);let i;const u=co([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new hi(1,[[n,new gi(0,["an object",r])]]):Do(((o,i)=>{if(0===o.tag){let s;if(s=sn(1,e,[n])(i),0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new hi(0,[eo([s.fields[0],e.fields[0]],o.fields[0])]):new hi(1,[e.fields[0]])}return new hi(1,[s.fields[0]])}return o}),new hi(0,[Qr()]),Object.keys(r))}(rn(2,n),rn(2,o),e,t),(s=$u(rn(2,n),rn(2,o)),e=>t=>Uu(rn(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(no(o))return new hi(1,[[n,new gi(7,[i])]]);{const s=Au(n,rn(2,ro(o)),r);if(1===s.tag){e=oo(o),t=fo(i,to(s.fields[0]));continue e}return new hi(0,[s.fields[0]])}}})(u,Qr());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new hi(1,[o.fields[0]]):new hi(0,[e(o.fields[0])])}(Vu,rn(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Zu(e,t,!1,Bo(r)[0]);return e=>t=>{const r=Bu(rn(2,n),e,t);return 0===r.tag?new hi(0,[Wu(r.fields[0])]):new hi(1,[r.fields[0]])}}return Yu(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new hi(0,[r]):new hi(1,[[n,new gi(0,["a boolean",r])]]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new hi(0,[void 0]):new hi(1,[[n,new gi(0,["null",r])]]);var n,r}:"System.String"===u?e=>t=>{return n=e,"string"==typeof(r=t)?new hi(0,[r]):new hi(1,[[n,new gi(0,["a string",r])]]);var n,r}:"System.SByte"===u?Pu:"System.Byte"===u?Du:"System.Int16"===u?Lu:"System.UInt16"===u?Fu:"System.Int32"===u?Ru:"System.UInt32"===u?ju:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new hi(0,[r]):new hi(1,[[n,new gi(0,["a float",r])]]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new hi(0,[r]):new hi(1,[[n,new gi(0,["a float32",r])]]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=mr(-621355968e5,0);return r=[_r(t,new cn((()=>o),(e=>{o=e}))),o],r[0]?new hi(0,[(n=r[1],1===n.kind?n:mr(n.getTime(),1))]):new hi(1,[[e,new gi(0,["a datetime",t])]])}var n;return new hi(1,[[e,new gi(0,["a datetime",t])]])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ni(-621355968e5,0);return n=[Ii(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new hi(0,[n[1]]):new hi(1,[[e,new gi(0,["a datetimeoffset",t])]])}return new hi(1,[[e,new gi(0,["a datetime",t])]])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[bs(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new hi(0,[n[1]]):new hi(1,[[e,new gi(0,["a timespan",t])]])}return new hi(1,[[e,new gi(0,["a timespan",t])]])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[xi(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new hi(0,[n[1]]):new hi(1,[[e,new gi(0,["a guid",t])]])}return new hi(1,[[e,new gi(0,["a guid",t])]])}(e,t):"System.Object"===u?e=>e=>new hi(0,[e]):Yu(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}function Ju(e,t,n){const r=go(t,new _i(0,[]));return Zu(function(e){return null!=e?eu(((e,t)=>new cn(t[1])),e.Coders):tu({Compare:Kt})}(n),r,!1,e)}class Ku extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ku.prototype)}}class Xu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Xu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Qu(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ku);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(dn(e))}}));else try{e(t)}catch(e){t.onError(dn(e))}}}const el=new class{Bind(e,t){return function(e,t){return Qu((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(dn(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Qu((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Qu((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Qu((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Qu((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(dn(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Qu((e=>e.onSuccess(void 0)))}};function tl(e){}const nl=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 t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}};function rl(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Xu;e({onSuccess:t||tl,onError:n||tl,onCancel:r||tl,cancelToken:o||nl,trampoline:i})}(e,t)}(e,t)}class ol extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class il extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Header"]}}class sl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ul extends an{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class ll extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class al extends an{constructor(e,t,n,r,o,i){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseUrl=r,this.responseHeaders=o,this.content=i}}const cl=new ul("",new ol(0,[]),Qr(),!1,void 0,void 0,void 0,new sl(0,[]));function fl(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Hr(t,[e],void 0,0);var n}function dl(e){return new ul(e,cl.method,cl.headers,cl.withCredentials,cl.overridenMimeType,cl.overridenResponseType,cl.timeout,cl.content)}function hl(e,t){return new ul(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function pl(e){return function(e){return Qu((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,u,l;var a,c;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new ll(0,[n.responseText]):new ll("arraybuffer"===u?2:"blob"===u?1:3,[n.response]),a=function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=Tt(o);r.push(e)}}return Zt(null,null)?r:$r((e=>e),r,null)}((e=>{const t=co(fl(":",e));return no(t)?void 0:[ro(t).toLocaleLowerCase(),Fr(":",oo(t)).trim()]}),fl("\r\n",n.getAllResponseHeaders())),l=Ys(c={Compare:Kt},Bs(c,a)),new al(o,e,i,n.responseURL,l,s)))};const r=Dt(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{It(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const u=e.content;switch(u.tag){case 1:case 3:case 2:n.send(mo(u.fields[0]));break;default:n.send()}}))}function ml(e){return e}function gl(e){return Array.from(e)}function _l(e){return pr(e,"O")}function wl(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return ws(e/864e5)}(e)),o=Math.abs(function(e){return ws(e%864e5/36e5)}(e)),i=Math.abs(function(e){return ws(e%36e5/6e4)}(e)),s=Math.abs(function(e){return ws(e%6e4/1e3)}(e)),u=Math.abs(function(e){return ws(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Rt(o,2)}:${Rt(i,2)}:${Rt(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+Rt(u,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(u):""}`}(e)}function vl(){return null}function yl(e){return pr(e,"O")}function bl(e,t,n,r){let o,i;const s=new cn(null);let u;const l=Jo(r);let a;if(u=Xs(l,s,e),ai(r)){const e=$r((e=>{const r=bi(t,Zo(e)),o=Cl(u,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),si(r),null);a=t=>Do(((e,n)=>n(t)(e)),{},e)}else{if(!li(r))throw new Error((o=Jo(r),i=Mr(Ir("Cannot generate auto encoder for %s. Please pass an extra encoder.")),i(o)));a=e=>{const o=function(e,t){const n=ii(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Zo(i);{const e=0|l,r=fi(i),o=Gr(new Array(e+1),0,e+1,null);o[0]=Zo(i);for(let i=1;i<=e;i++){const e=Cl(u,t,n,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return s.contents=a,a}function Cl(e,t,n,r){const o=Jo(r),i=Qs(o,e);if(null==i){if(Ko(r)){const o=Cl(e,t,n,Xo(r));return e=>gl(Fo(o,e))}if(ei(r)){const e=Jo(ni(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Jo(r);return Pr(Ir("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(Qo(r)){if(ci(r)){const o=$r((r=>Cl(e,t,n,r)),ui(r),null);return e=>{return gl((t=(e,t)=>o[e](t),n=e,Ao((()=>xo(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?mo(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{It(e)}))));var t,n}}{const o=Jo(ti(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ft((()=>{return o=Cl(e,t,n,Bo(r)[0]),e=>{return function(e,t){return null!=e?Tt(e):null}(null!=(t=e)?mo(o(Tt(t))):void 0);var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Cl(e,t,n,Bo(r)[0]);return e=>gl(Fo(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Bo(r)[0],i=Cl(e,t,n,Bo(r)[1]);if("System.String"===Jo(o)||"System.Guid"===Jo(o))return e=>Do(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Cl(e,t,n,o);return r=s,e=>gl(Fo((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return bl(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?vl:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?yl:"System.DateTimeOffset"===o?_l:"System.TimeSpan"===o?wl:"System.Guid"===o?ml:"System.Object"===o?e=>e:bl(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function El(e,t,n,r){const o=go(t,new _i(0,[])),i=go(r,!0);return Cl(function(e){return null!=e?eu(((e,t)=>new cn(t[0])),e.Coders):tu({Compare:Kt})}(n),o,i,e)}new al(0,"","","",tu({Compare:Kt}),new ll(0,[""]));class Sl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Inherited","Default","Specific"]}}class xl extends an{constructor(e,t,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=t,this.AllowPercentageSplit=n}}function Tl(e){return`${e}/bank-details/admin`}function kl(e,t){return el.Delay((()=>{let n,r;const o=(n=Mr(Ir("Bearer %s")),i=n(e),new il(0,["Authorization",i]));var i;let s;r=function(e,t){return new ul(t.url,t.method,fo(t.headers,to(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}(o,t);const u=pl(r);return s=el.Bind(u,(e=>el.Return(new hi(0,[e])))),el.Bind(s,(e=>{const t=e;if(1===t.tag)return el.Return(new hi(1,[t.fields[0]]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=pl(r);return el.Bind(e,(e=>el.Return(new hi(0,[e]))))}return el.Return(new hi(0,[e]))}}))}))}class Ol{constructor(e,t,n,r){this.baseUrl=e,this.accessToken=t,this.partnerId=n,this.accountId=r}}function Nl(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,el.Delay((()=>{let e;const i=kl(n,hl(new ol(0,[]),dl((e=Tl(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return el.Bind(i,(e=>{const t=e;if(1===t.tag)return el.Return(new hi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){const t=Mu(rn(2,Ju(new Uo("BankDetails.AdminUI.Service.Model",[],xl,void 0,(()=>[["MaxAccounts",Yo],["ConfigOwnership",function(e,t,n,r){const o=new Uo("BankDetails.AdminUI.Service.ConfigOwnership",[],n,void 0,void 0,(()=>{const e=n.prototype.cases();return[[],[],[]].map(((t,n)=>new Ho(o,n,e[n],t)))}));return o}(0,0,Sl)],["AllowPercentageSplit",zo]])),new _i(1,[]),void 0)),e.responseText);return el.Return(t)}return el.Return(new hi(1,[e.responseText]))}}))}));var t,n,r,o}function Il(e,t){return n=e.baseUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,s=t.MaxAccounts,u=t.AllowPercentageSplit,el.Delay((()=>{let e,t;const l=Tl(n);t=null==i?`${l}/partners/${o}/config`:`${l}/partners/${o}/accounts/${i}/config`;const a=new sl(1,[(e={AllowPercentageSplit:u,MaxAccounts:s},h=0,p=El(Vo(["AllowPercentageSplit",zo],["MaxAccounts",Yo]),new _i(1,[]),void 0,void 0)(e),JSON.stringify(p,rn(2,null),mo(h)))]),c=kl(r,hl(new ol(2,[]),(f=a,d=dl(t),new ul(d.url,d.method,d.headers,d.withCredentials,d.overridenMimeType,d.overridenResponseType,d.timeout,f))));var f,d,h,p;return el.Bind(c,(e=>{const t=e;if(1===t.tag)return el.Return(new hi(1,[t.fields[0]]));{const e=t.fields[0];return 200===e.statusCode?el.Return(new hi(0,[void 0])):el.Return(new hi(1,[e.responseText]))}}))}));var n,r,o,i,s,u}class Al extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}const Ml=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class Pl{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Dl(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Ml}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Pl(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ll(e,t){lo((t=>{t(e)}),t)}function Fl(){return Qr()}function Rl(e){return function(e){const t=Yr();let n=t;const r=e=>{n=so(((e,t)=>{const n=new qr(t,void 0);return e.tail=n,n}),n,e)};if(kt(e))e.forEach(r);else if(e instanceof qr)lo(r,e);else{const t=Dt(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{It(t)}}const o=n,i=Yr();return o.tail=i,Xr(t)}(e)}function jl(e){return to((t=>{t(e)}))}function Hl(e,t,n,r){return to((o=>{e(el.Delay((()=>{return el.Bind((e=t(n),Qu((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new mi(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new mi(1,[e])}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return 0===t.tag?(o(r(t.fields[0])),el.Zero()):el.Zero()}));var e})))}))}function Ul(e){Dl(0,(t=>{rl(e)}))}class Bl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["AccessRole"]}}function Gl(e){return new Bl(0,[e])}class $l extends an{constructor(e,t){super(),this.UserName=e,this.Roles=t}}function Vl(e){return null!=(t=e.Roles,ho(new Bl(0,["BankDetails.EditConfig"]),t,{Equals:Zt,GetHashCode:qt})?mo(void 0):void 0);var t}class Wl extends an{constructor(e,t,n,r,o,i){super(),this.Config=e,this.Error=t,this.IsLoading=n,this.Mode=r,this.ShowConfirmationDialog=o,this.ShowEditButton=i}}class ql extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["View","Edit"]}}function zl(e){return 0!==e.Mode.tag}class Yl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Zl(){return new Yl(2,[new Al(0,[void 0])])}var Jl;function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kl.apply(this,arguments)}var Xl;function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ql.apply(this,arguments)}var ea;function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(this,arguments)}function na(e,t){return po.createElement(e,pn(t,1))}const ra=na((function(e){return g("svg",Kl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600"},e),Jl||(Jl=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})))}),to(new class extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["ClassName"]}}(0,["h-6 w-6 text-red-500"])));const oa=na((function(e){return g("svg",Ql({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},e),Xl||(Xl=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})))}),Qr()),ia=na((function(e){return g("svg",ta({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6"},e),ea||(ea=g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})))}),Qr());let sa=$(null);sa.displayName="OpenClosedContext";var ua=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ua||{});function la(){return fe(sa)}function aa({value:e,children:t}){return St.createElement(sa.Provider,{value:e},t)}function ca(){let e=ue(!1);return Nn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function fa(e,...t){e&&t.length>0&&e.classList.add(...t)}function da(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ha(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let pa=$(null);pa.displayName="TransitionContext";var ma=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ma||{});let ga=$(null);function _a(e){return"children"in e?_a(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function wa(e,t){let n=Ln(e),r=ue([]),o=ca(),i=er(),s=Fn(((e,t=vn.Hidden)=>{let s=r.current.findIndex((({el:t})=>t===e));-1!==s&&(gn(t,{[vn.Unmount](){r.current.splice(s,1)},[vn.Hidden](){r.current[s].state="hidden"}}),i.microTask((()=>{var e;!_a(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),u=Fn((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,vn.Unmount)})),l=ue([]),a=ue(Promise.resolve()),c=ue({enter:[],leave:[],idle:[]}),f=Fn(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(c.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?a.current=a.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),d=Fn(((e,t,n)=>{Promise.all(c.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return ae((()=>({children:r,register:u,unregister:s,onStart:f,onStop:d,wait:a,chains:c})),[u,s,r,f,d,c,a])}function va(){}ga.displayName="NestingContext";let ya=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ba(e){var t;let n={};for(let r of ya)n[r]=null!=(t=e[r])?t:va;return n}let Ca=wn.RenderStrategy,Ea=En((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=ue(null),u=jn(s,t);In();let l=la();if(void 0===n&&null!==l&&(n=(l&ua.Open)===ua.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,c]=re(n?"visible":"hidden"),f=wa((()=>{c("hidden")})),[d,h]=re(!0),p=ue([n]);Nn((()=>{!1!==d&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))}),[p,n]);let m=ae((()=>({show:n,appear:r,initial:d})),[n,r,d]);ie((()=>{if(n)c("visible");else if(_a(f)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&c("hidden")}else c("hidden")}),[n,f]);let g={unmount:o},_=Fn((()=>{var t;d&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),w=Fn((()=>{var t;d&&h(!1),null==(t=e.beforeLeave)||t.call(e)}));return St.createElement(ga.Provider,{value:f},St.createElement(pa.Provider,{value:m},yn({ourProps:{...g,as:v,children:St.createElement(Sa,{ref:u,...g,...i,beforeEnter:_,beforeLeave:w})},theirProps:{},defaultTag:v,features:Ca,visible:"visible"===a,name:"Transition"})))})),Sa=En((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:u,enter:l,enterFrom:a,enterTo:c,entered:f,leave:d,leaveFrom:h,leaveTo:p,...m}=e,g=ue(null),_=jn(g,t),w=null==(n=m.unmount)||n?vn.Unmount:vn.Hidden,{show:v,appear:y,initial:b}=function(){let e=fe(pa);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,E]=re(v?"visible":"hidden"),S=function(){let e=fe(ga);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:x,unregister:T}=S;ie((()=>x(g)),[x,g]),ie((()=>{if(w===vn.Hidden&&g.current)return v&&"visible"!==C?void E("visible"):gn(C,{hidden:()=>T(g),visible:()=>x(g)})}),[C,g,x,T,v,w]);let k=Ln({base:ha(m.className),enter:ha(l),enterFrom:ha(a),enterTo:ha(c),entered:ha(f),leave:ha(d),leaveFrom:ha(h),leaveTo:ha(p)}),O=function(e){let t=ue(ba(e));return ie((()=>{t.current=ba(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:u}),N=In();ie((()=>{if(N&&"visible"===C&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,C,N]);let I=y&&v&&b,A=!N||b&&!y?"idle":v?"enter":"leave",M=function(e=0){let[t,n]=re(e),r=ca(),o=ce((e=>{r.current&&n((t=>t|e))}),[t,r]),i=ce((e=>Boolean(t&e)),[t]),s=ce((e=>{r.current&&n((t=>t&~e))}),[n,r]),u=ce((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:u}}(0),P=Fn((e=>gn(e,{enter:()=>{M.addFlag(ua.Opening),O.current.beforeEnter()},leave:()=>{M.addFlag(ua.Closing),O.current.beforeLeave()},idle:()=>{}}))),D=Fn((e=>gn(e,{enter:()=>{M.removeFlag(ua.Opening),O.current.afterEnter()},leave:()=>{M.removeFlag(ua.Closing),O.current.afterLeave()},idle:()=>{}}))),L=wa((()=>{E("hidden"),T(g)}),S);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=ca(),u=er(),l=Ln(n);Nn((()=>{e&&(l.current="enter")}),[e]),Nn((()=>{let e=Qn();u.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&s.current)return e.dispose(),o.current(l.current),e.add(function(e,t,n,r){let o=n?"enter":"leave",i=Qn(),s=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let u=gn(o,{enter:()=>t.enter,leave:()=>t.leave}),l=gn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=gn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return da(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),fa(e,...t.base,...u,...a),i.nextFrame((()=>{da(e,...t.base,...u,...a),fa(e,...t.base,...u,...l),function(e,t){let n=Qn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),u=i+s;if(0!==u){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),u),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(da(e,...t.base,...u),fa(e,...t.base,...t.entered),s())))})),i.dispose}(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:I,container:g,classes:k,direction:A,onStart:Ln((e=>{L.onStart(g,e,P)})),onStop:Ln((e=>{L.onStop(g,e,D),"leave"===e&&!_a(L)&&(E("hidden"),T(g))}))});let F=m,R={ref:_};return I?F={...F,className:mn(m.className,...k.current.enter,...k.current.enterFrom)}:(F.className=mn(m.className,null==(r=g.current)?void 0:r.className),""===F.className&&delete F.className),St.createElement(ga.Provider,{value:L},St.createElement(aa,{value:gn(C,{visible:ua.Open,hidden:ua.Closed})|M.flags},yn({ourProps:R,theirProps:F,defaultTag:"div",features:Ca,visible:"visible"===C,name:"Transition.Child"})))})),xa=En((function(e,t){let n=null!==fe(pa),r=null!==la();return St.createElement(St.Fragment,null,!n&&r?St.createElement(Ea,{ref:t,...e}):St.createElement(Sa,{ref:t,...e}))})),Ta=Object.assign(Ea,{Child:xa,Root:Ea});class ka extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","As","Show","Children"]}}class Oa extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Na(e){const t=pn(e,1);return g(Ta.Child,t)}function Ia(e){return On.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Aa=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ma,Pa=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Pa||{}),Da=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Da||{}),La=((Ma=La||{})[Ma.Previous=-1]="Previous",Ma[Ma.Next=1]="Next",Ma);var Fa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Fa||{});var Ra=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ra||{});function ja(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Ha=["textarea","input"].join(",");function Ua(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Aa)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let u,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},f=0,d=s.length;do{if(f>=d||f+d<=0)return 0;let e=a+f;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}u=s[e],null==u||u.focus(c),f+=l}while(u!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Ha))&&n}(u)&&u.select(),2}function Ba(e,t,n){let r=Ln(t);ie((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Ga=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ga||{});function $a(...e){return ae((()=>Ia(...e)),[...e])}function Va(e,t,n,r){let o=Ln(n);ie((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function Wa(e,t){let n=ue([]),r=Fn(e);ie((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}function qa(e){let t=Fn(e),n=ue(!1);ie((()=>(n.current=!1,()=>{n.current=!0,Xn((()=>{n.current&&t()}))})),[t])}function za(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var Ya=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Ya||{});let Za=En((function(e,t){let n=ue(null),r=jn(n,t),{initialFocus:o,containers:i,features:s=30,...u}=e;In()||(s=1);let l=$a(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=ue(Ka.slice());return Wa((([e],[n])=>{!0===n&&!1===e&&Xn((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=Ka.slice())}),[e,Ka,t]),Fn((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Wa((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&ja(n())}),[t]),qa((()=>{t&&ja(n())}))}({ownerDocument:l},Boolean(16&s));let a=function({ownerDocument:e,container:t,initialFocus:n},r){let o=ue(null),i=ca();return Wa((()=>{if(!r)return;let s=t.current;s&&Xn((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(s.contains(t))return void(o.current=t);null!=n&&n.current?ja(n.current):Ua(s,Pa.First)===Da.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:l,container:n,initialFocus:o},Boolean(2&s));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=ca();Va(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=za(n);t.current instanceof HTMLElement&&s.add(t.current);let u=r.current;if(!u)return;let l=e.target;l&&l instanceof HTMLElement?Xa(s,l)?(r.current=l,ja(l)):(e.preventDefault(),e.stopPropagation(),ja(u)):ja(r.current)}),!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:a},Boolean(8&s));let c=function(){let e=ue(0);return Ba("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Fn((e=>{let t=n.current;t&&gn(c.current,{[Ga.Forwards]:()=>{Ua(t,Pa.First,{skipElements:[e.relatedTarget]})},[Ga.Backwards]:()=>{Ua(t,Pa.Last,{skipElements:[e.relatedTarget]})}})})),d=er(),h=ue(!1),p={ref:r,onKeyDown(e){"Tab"==e.key&&(h.current=!0,d.requestAnimationFrame((()=>{h.current=!1})))},onBlur(e){let t=za(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(Xa(t,r)||(h.current?Ua(n.current,gn(c.current,{[Ga.Forwards]:()=>Pa.Next,[Ga.Backwards]:()=>Pa.Previous})|Pa.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&ja(e.target)))}};return St.createElement(St.Fragment,null,Boolean(4&s)&&St.createElement(Kn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Jn.Focusable}),yn({ourProps:p,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&St.createElement(Kn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Jn.Focusable}))})),Ja=Object.assign(Za,{features:Ya}),Ka=[];function Xa(e,t){for(let n of e)if(n.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&Ka[0]!==e.target&&(Ka.unshift(e.target),Ka=Ka.filter((e=>null!=e&&e.isConnected)),Ka.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();let Qa=$(!1);function ec(e){return St.createElement(Qa.Provider,{value:e.force},e.children)}let tc=v,nc=v,rc=$(null),oc=$(null),ic=En((function(e,t){let n=e,r=ue(null),o=jn(function(e,t=!0){return Object.assign(e,{[Rn]:t})}((e=>{r.current=e})),t),i=$a(r),s=function(e){let t=fe(Qa),n=fe(rc),r=$a(e),[o,i]=re((()=>{if(!t&&null!==n||On.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return ie((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),ie((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[u]=re((()=>{var e;return On.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),l=fe(oc),a=In();return Nn((()=>{!s||!u||s.contains(u)||(u.setAttribute("data-headlessui-portal",""),s.appendChild(u))}),[s,u]),Nn((()=>{if(u&&l)return l.register(u)}),[l,u]),qa((()=>{var e;!s||!u||(u instanceof Node&&s.contains(u)&&s.removeChild(u),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),a&&s&&u?$e(yn({ourProps:{ref:o},theirProps:n,defaultTag:tc,name:"Portal"}),u):null})),sc=En((function(e,t){let{target:n,...r}=e,o={ref:jn(t)};return St.createElement(rc.Provider,{value:n},yn({ourProps:o,theirProps:r,defaultTag:nc,name:"Popover.Group"}))})),uc=Object.assign(ic,{Group:sc}),lc=$((()=>{}));lc.displayName="StackContext";var ac=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ac||{});function cc({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=fe(lc),s=Fn(((...e)=>{null==t||t(...e),i(...e)}));return Nn((()=>{let e=void 0===o||!0===o;return e&&s(0,n,r),()=>{e&&s(1,n,r)}}),[s,n,r,o]),St.createElement(lc.Provider,{value:s},e)}function fc(e,t,n){let r=Ln(t);ie((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}"function"==typeof Object.is&&Object.is;const{useState:dc,useEffect:hc,useLayoutEffect:pc,useDebugValue:mc}=t;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const gc=(e=>e.useSyncExternalStore)(t);function _c(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function wc(){if(!(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0))return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=Qn();e.style(t.documentElement,"scroll-behavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let r=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=t.querySelector(i);s&&!o(s)&&(r=s)}catch{}}),!0),n.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!o(e.target)&&e.preventDefault()}),{passive:!1}),n.add((()=>{window.scrollTo(0,window.pageYOffset+e),r&&r.isConnected&&(r.scrollIntoView({block:"nearest"}),r=null)}))}))}}}function vc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let yc=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Qn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:vc(n)},o=[wc(),_c(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});yc.subscribe((()=>{let e=yc.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&yc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&yc.dispatch("TEARDOWN",n)}}));let bc=new Map,Cc=new Map;function Ec(e,t=!0){Nn((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=Cc.get(r))?n:0;return Cc.set(r,o+1),0!==o||(bc.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=Cc.get(r))?e:1;if(1===t?Cc.delete(r):Cc.set(r,t-1),1!==t)return;let n=bc.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,bc.delete(r))}}),[e,t])}var Sc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Sc||{}),xc=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(xc||{});let Tc={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},kc=$(null);function Oc(e){let t=fe(kc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Oc),t}return t}function Nc(e,t){return gn(t.type,Tc,e,t)}kc.displayName="DialogContext";let Ic=wn.RenderStrategy|wn.Static,Ac=En((function(e,t){var n;let r=Mn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:u,__demoMode:l=!1,...a}=e,[c,f]=re(0),d=la();void 0===i&&null!==d&&(i=(d&ua.Open)===ua.Open);let h=ue(null),p=jn(h,t),m=$a(h),g=e.hasOwnProperty("open")||null!==d,_=e.hasOwnProperty("onClose");if(!g&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let w=i?0:1,[v,y]=oe(Nc,{titleId:null,descriptionId:null,panelRef:{current:null}}),b=Fn((()=>s(!1))),C=Fn((e=>y({type:0,id:e}))),E=!!In()&&!l&&0===w,S=c>1,x=null!==fe(kc),[T,k]=function(){let e=fe(oc),t=ue([]),n=Fn((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=Fn((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),o=ae((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,ae((()=>function({children:e}){return St.createElement(oc.Provider,{value:o},e)}),[o])]}(),{resolveContainers:O,mainTreeNodeRef:N,MainTreeNode:I}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=ue(null!=(r=null==n?void 0:n.current)?r:null),i=$a(o),s=Fn((()=>{var n;let r=[];for(let t of e)null!==t&&(t instanceof HTMLElement?r.push(t):"current"in t&&t.current instanceof HTMLElement&&r.push(t.current));if(null!=t&&t.current)for(let e of t.current)r.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||r.some((t=>e.contains(t)))||r.push(e));return r}));return{resolveContainers:s,contains:Fn((e=>s().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:ae((()=>function(){return null!=n?null:St.createElement(Kn,{features:Jn.Hidden,ref:o})}),[o,n])}}({portals:T,defaultContainers:[null!=(n=v.panelRef.current)?n:h.current]}),A=S?"parent":"leaf",M=null!==d&&(d&ua.Closing)===ua.Closing,P=!x&&!M&&E,D=ce((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==m?void 0:m.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(N.current)&&e instanceof HTMLElement)))?t:null}),[N]);Ec(D,P);let L=!!S||E,F=ce((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==m?void 0:m.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(N.current)&&e instanceof HTMLElement)))?t:null}),[N]);Ec(F,L),function(e,t,n=!0){let r=ue(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=Ia(e))?void 0:n.body)&&gn(t,{0:()=>e.matches(Aa),1(){let t=e;for(;null!==t;){if(t.matches(Aa))return!0;t=t.parentElement}return!1}})}(i,Fa.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}ie((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ue(null);fc("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),fc("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),fc("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),fc("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Ba("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(O,b,!(!E||S));let R=!(S||0!==w);Va(null==m?void 0:m.defaultView,"keydown",(e=>{R&&(e.defaultPrevented||e.key===Pn.Escape&&(e.preventDefault(),e.stopPropagation(),b()))})),function(e,t,n=(()=>[document.body])){!function(e,t,n){let r=function(e){return gc(e.subscribe,e.getSnapshot,e.getSnapshot)}(yc),o=e?r.get(e):void 0,i=!!o&&o.count>0;Nn((()=>{if(e&&t)return yc.dispatch("PUSH",e,n),()=>yc.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(m,!(M||0!==w||x),O),ie((()=>{if(0!==w||!h.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&b()}}));return e.observe(h.current),()=>e.disconnect()}),[w,h,b]);let[j,H]=Wn(),U=ae((()=>[{dialogState:w,close:b,setTitleId:C},v]),[w,v,b,C]),B=ae((()=>({open:0===w})),[w]),G={ref:p,id:o,role:"dialog","aria-modal":0===w||void 0,"aria-labelledby":v.titleId,"aria-describedby":j};return St.createElement(cc,{type:"Dialog",enabled:0===w,element:h,onUpdate:Fn(((e,t)=>{"Dialog"===t&&gn(e,{[ac.Add]:()=>f((e=>e+1)),[ac.Remove]:()=>f((e=>e-1))})}))},St.createElement(ec,{force:!0},St.createElement(uc,null,St.createElement(kc.Provider,{value:U},St.createElement(uc.Group,{target:h},St.createElement(ec,{force:!1},St.createElement(H,{slot:B,name:"Dialog.Description"},St.createElement(Ja,{initialFocus:u,containers:O,features:E?gn(A,{parent:Ja.features.RestoreFocus,leaf:Ja.features.All&~Ja.features.FocusLock}):Ja.features.None},St.createElement(k,null,yn({ourProps:G,theirProps:a,slot:B,defaultTag:"div",features:Ic,visible:0===w,name:"Dialog"}))))))))),St.createElement(I,null))})),Mc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Oc("Dialog.Backdrop"),u=jn(t);ie((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let l=ae((()=>({open:0===i})),[i]);return St.createElement(ec,{force:!0},St.createElement(uc,null,yn({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),Pc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Oc("Dialog.Panel"),u=jn(t,s.panelRef),l=ae((()=>({open:0===i})),[i]);return yn({ourProps:{ref:u,id:r,onClick:Fn((e=>{e.stopPropagation()}))},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Panel"})})),Dc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Oc("Dialog.Overlay");return yn({ourProps:{ref:jn(t),id:r,"aria-hidden":!0,onClick:Fn((e=>{if(e.target===e.currentTarget){if(Dn(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}))},theirProps:o,slot:ae((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Lc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Oc("Dialog.Title"),u=jn(t);ie((()=>(s(r),()=>s(null))),[r,s]);let l=ae((()=>({open:0===i})),[i]);return yn({ourProps:{ref:u,id:r},theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),Fc=Object.assign(Ac,{Backdrop:Mc,Panel:Pc,Overlay:Dc,Title:Lc,Description:zn});class Rc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function jc(e){const t=pn(e,1);return g(Fc,t)}class Hc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function Uc(e){const t=pn(e,1);return g(Fc.Panel,t)}class Bc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function Gc(e){const t=pn(e,1);return g(Fc.Title,t)}class $c extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","Warning"]}}class Vc extends an{constructor(e,t,n,r,o,i,s,u,l){super(),this.show=e,this.title=t,this.message=n,this.dialogIcon=r,this.okButtonText=o,this.okButtonClick=i,this.okButtonThem=s,this.cancelButtonText=u,this.cancelButtonClick=l}}function Wc(e,t,n,r,o){const i=function(e,t,n,r){const o=0|Qt(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|Qt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return To((()=>{return t=i,n=e,So((()=>function(e,t){let n,r=t;return Co((()=>{if(null!=n){const e=n[0];return n[1],e}return wo()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class qc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class zc{constructor(e){this.state=new qc(0,[Gr(new Array(en(Kt,e,10)),0,en(Kt,e,10),null),0])}}function Yc(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 qc(0,[o,n]):new qc(1,[o,n,i]),mo(o[r])}}class Zc extends an{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function Jc(e,t){const n=t.init(e),r=n[0],o=new zc(10);let i=!1,s=r;const u=sn(1,t.syncDispatch,[e=>{let n;if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],u=n.fields[0];u[i]=t;const l=(i+1)%u.length|0;e.state=new qc(1,l===s?[(r=s,o=u,Array.from(To((()=>Mo(jo(r,o),To((()=>{return Mo((e=r,t=o,Ao((()=>xo(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return mo(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(_o+"\\nParameter name: source")}}),(e=>{It(e)}))),To((()=>{return t=e=>No(null),e=o.length,n=Wc(0,1,e,0,((e,t)=>e+t)),To((()=>ko(Fo(t,n))));var e,t,n})));var e,t}))))))),u.length,0]:[u,l,s])}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new qc(1,[o,i,r])}var r,o}(o,e);else{i=!0;let r=mo(e);for(;null!=r;){const e=Tt(r);try{const n=t.update(e,s),r=n[0];t.setState(r,u),Ll(u,n[1]),s=r}catch(r){t.onError([(n=Mr(Ir("Unable to process the message: %A")),n(e)),r])}r=Yc(o)}i=!1}}]);t.setState(r,u),Ll(u,fo((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Fl()}})(),n[1]))}function Kc(e){return po.useState(e)}function Xc(e,t){var n;n=e,ie((()=>{const e=n();return()=>{e.Dispose()}}),t)}class Qc{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function ef(){return new Qc}function tf(e,t,n,r){Jc(t,function(e,t){return new Zc(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=mo(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return Tt(o);throw new Error("Elmish program has not initialized")}function nf(e,t){return function(e,t,n){const r=Kc(ef)[0],o=Kc((()=>tf(e,t,r))),i=o[1];return Xc((()=>{return function(e){return e.hasDisposedOnce}(r)&&i(tf(e,t,r)),n=()=>{!function(e){const t=e.state;if(null!=t){const e=Tt(t);Nt(e)&&It(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)},{Dispose(){n()}};var n}),go(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function rf(){return(rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function of(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return G(t,n)}function sf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(of,rf({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[uf(s[i].name)]=s[i].value);for(i=u.length;i--;){var l=e(u[i],null),a=u[i].slot;a?o[a]=g(cf,{name:a},l):r[i]=l}var c=n?g(cf,null,r):r;return g(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:U)(this._vdom,this._root)}function uf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function lf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[uf(e)]=n,this._vdom=G(this._vdom,r),U(this._vdom,this._root)}}function af(){U(this._vdom=null,this._root)}function cf(e,t){var n=this;return g("slot",rf({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function ff(e){return 2===e.tag?"":`(${e})`}function df(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return g("div",tn(co([["className","mt-3"],(t=[cr(to(new ar(0,[[sr(co([new ir(0,[i]),new ir(1,[e=>{r&&n(e)}]),new ir(2,[(i?"bg-gray-900":"bg-gray-300")+" relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2"]),new ir(3,[[g("span",{className:(i?"translate-x-5":"translate-x-0")+" pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"})]])])),lr(co([new ur(0,["ml-3"]),new ur(1,[[g("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))]])))],["children",po.Children.toArray(Array.from(t))])])))}function hf(e){let t;return g("div",tn(co([["className","mt-4"],(t=[g("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${ff(e.configOwnership)}: `}),g("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:t=>{const n=t.target.valueAsNumber;null==n||Number.isNaN(n)||e.handleMaxAccountChanged(function(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return t?s/n:s}(n))},disabled:e.readOnly})],["children",po.Children.toArray(Array.from(t))])])))}function pf(e){let t;return g("div",tn(co([["className","text-sm font-medium text-gray-900 my-5"],(t=[g("span",{children:[e.msg]})],["children",po.Children.toArray(Array.from(t))])])))}function mf(e,t,n){let r,o;const i=2===e.tag&&t?"":"hidden";return g("div",tn(co([["className","flex-1"],(r=[g("div",tn(co([["className","flex flex-row space-x-2"],(o=Io(To((()=>t?Mo(No(g("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",onClick:e=>{n(new Yl(5,[new ql(1,[])]))},children:po.Children.toArray([oa])})),To((()=>No(g("button",{className:` ${i} inline-flex items-center rounded border border-transparent bg-red-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,type:"button",children:"Reset",onClick:e=>{n(new Yl(7,[!0]))},children:po.Children.toArray([ia])}))))):Mo(No(g("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 py-2 px-4 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Save",onClick:e=>{n(new Yl(3,[new Al(0,[void 0])]))}})),To((()=>No(g("button",{className:"inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300",type:"button",children:"Cancel",onClick:e=>{n(new Yl(6,[]))}})))))))),["children",po.Children.toArray(Array.from(o))])])))],["children",po.Children.toArray(Array.from(r))])])))}function gf(e){let t;return g("div",tn(co([["className","flex-1"],(t=[g("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${ff(e)}`})],["children",po.Children.toArray(Array.from(t))])])))}function _f(e){let t;const n=function(e){let t;const n=Hr(null==e?"":e,["."],void 0,0);if(null==n||3!==n.length)t=new hi(1,["Failed to identify the user"]);else{let e;const o=n[1];e=atob(o),t=Mu(rn(2,Ju(Vo(["Name",qo],["Roles",(r=qo,new Uo("[]",[r]))]),new _i(1,[]),void 0)),e)}var r;if(1===t.tag)return new $l(void 0,Qr());{const e=t.fields[0];return new $l(e.Name,function(e,t){const n=Yr(),r=so(((t,n)=>{const r=new qr(e(n),void 0);return t.tail=r,r}),n,t),o=Yr();return r.tail=o,Xr(n)}(Gl,co(e.Roles)))}}(e.accessToken),r=(o=e.backendUrl,i=e.accessToken,s=e.partnerId,u=e.accountId,new Ol(o,i,s,u));var o,i,s,u;const l=(a=function(e){let t;return[(t=new Wl(new xl(0,new Sl(1,[]),!1),void 0,!0,new ql(0,[]),!1,!1),new Wl(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,Vl(e))),jl(Zl())]}(n),c=(e,t)=>function(e,t,n,r){let o,i;return 5===n.tag?[new Wl(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,0===n.fields[0].tag&&Vl(e)),Fl()]:6===n.tag?[r,Rl(co([jl(new Yl(5,[new ql(0,[])])),jl(Zl())]))]:0===n.tag?[new Wl((o=r.Config,new xl(n.fields[0],o.ConfigOwnership,o.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:1===n.tag?[new Wl((i=r.Config,new xl(i.MaxAccounts,i.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:2===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Wl(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:[new Wl(n.fields[0].fields[0].fields[0],r.Error,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:[new Wl(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Hl((e=>{Ul(e)}),(()=>Nl(t)),void 0,(e=>new Yl(2,[new Al(1,[e])])))]:3===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Wl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:[r,Rl(co([jl(new Yl(5,[new ql(0,[])])),jl(Zl())]))]:[r,Hl((e=>{Ul(e)}),(e=>Il(t,e)),r.Config,(e=>new Yl(3,[new Al(1,[e])])))]:4===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Wl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Fl()]:[r,Rl(co([jl(new Yl(5,[new ql(0,[])])),jl(Zl())]))]:[r,Hl((e=>{Ul(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,el.Delay((()=>{let e;const i=kl(n,hl(new ol(4,[]),dl((e=Tl(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return el.Bind(i,(e=>{const t=e;if(1===t.tag)return el.Return(new hi(1,[t.fields[0]]));{const e=t.fields[0];return 200===e.statusCode?el.Return(new hi(0,[void 0])):el.Return(new hi(1,[e.responseText]))}}))}));var t,n,r,o}(t)),void 0,(e=>new Yl(4,[new Al(1,[e])])))]:8===n.tag?[r,Rl(co([jl(new Yl(7,[!1])),jl(new Yl(4,[new Al(0,[void 0])]))]))]:[new Wl(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),Fl()]}(n,r,e,t),nf((()=>function(e,t,n){return new Zc(e,t,(e=>Fl()),n,rn(2,(e=>{const t=sn(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(mo(t),n)}),rn(2,(e=>e)))}((()=>a),c,((e,t)=>{}))),undefined));var a,c;const f=l[0],d=l[1];let h;const p=f.Error;return h=null!=p?g(pf,{msg:p}):null,null!=(m=n.Roles,ho(new Bl(0,["BankDetails.Access"]),m,{Equals:Zt,GetHashCode:qt})?mo(void 0):void 0)?f.IsLoading?null==f.Error?g("div",{children:["Please wait"]}):h:g("div",tn(co([["className","mt-5"],(t=Io(To((()=>{let e;return Mo(No(g("div",tn(co([["className","flex"],(e=[gf(f.Config.ConfigOwnership),mf(f.Config.ConfigOwnership,f.ShowEditButton,d)],["children",po.Children.toArray(Array.from(e))])])))),To((()=>Mo(No(g(hf,{configOwnership:f.Config.ConfigOwnership,handleMaxAccountChanged:e=>{d(new Yl(0,[e]))},readOnly:!zl(f),selected:f.Config.MaxAccounts})),To((()=>Mo(No(g(df,{isChecked:f.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:zl(f),onChange:e=>{d(new Yl(1,[e]))}})),To((()=>Mo(f.ShowConfirmationDialog?No(function(e){return function(e){let t,n,r,o;return function(e){const t=pn(e,1);return g(Ta.Root,t)}(co([new ka(0,["1"]),new ka(2,[e.show]),new ka(3,[[jc(co([new Rc(1,["1"]),new Rc(0,["div"]),new Rc(2,["relative z-10"]),new Rc(4,[e.cancelButtonClick]),new Rc(5,[[Na(co([new Oa(0,["1"]),new Oa(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new Oa(4,["ease-out duration-300"]),new Oa(5,["opacity-0"]),new Oa(6,["opacity-100"]),new Oa(7,["ease-in duration-200"]),new Oa(8,["opacity-100"]),new Oa(9,["opacity-0"])])),g("div",tn(co([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[g("div",tn(co([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Na(co([new Oa(0,["1"]),new Oa(4,["ease-out duration-300"]),new Oa(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Oa(6,["opacity-100 translate-y-0 sm:scale-100"]),new Oa(7,["ease-in duration-200"]),new Oa(8,["opacity-100 translate-y-0 sm:scale-100"]),new Oa(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Oa(10,[[Uc(co([new Hc(0,["1"]),new Hc(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Hc(2,[[g("div",tn(co([["key","1"],["className","sm:flex sm:items-start"],(r=Io(To((()=>{let t,n;return Mo((t=e.dialogIcon,null==t?Oo():(n=t,No(g("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:po.Children.toArray([n])})))),To((()=>{let t,n;return No(g("div",tn(co([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(t=[Gc(co([new Bc(1,["1"]),new Bc(0,["h3"]),new Bc(2,["text-lg font-medium leading-6 text-gray-900"]),new Bc(3,[[g("span",{children:e.title,key:"1"})]])])),g("div",tn(co([["className","mt-2"],["key","2"],(n=[g("p",{className:"text-sm text-gray-500",children:e.message})],["children",po.Children.toArray(Array.from(n))])])))],["children",po.Children.toArray(Array.from(t))])]))))})))}))),["children",po.Children.toArray(Array.from(r))])]))),g("div",tn(co([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Io(To((()=>Mo(No(g("button",{key:"Ok",type:"button",className:1===e.okButtonThem.tag?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:t=>{e.okButtonClick()},children:e.okButtonText})),To((()=>No(g("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:t=>{e.cancelButtonClick()},children:e.cancelButtonText})))))))),["children",po.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",po.Children.toArray(Array.from(n))])])))],["children",po.Children.toArray(Array.from(t))])])))]])]))]])]))}(new Vc(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",ra,"Reset",(()=>{e(new Yl(8,[]))}),new $c(1,[]),"Cancel",(()=>{e(new Yl(7,[!1]))})))}(d)):Oo(),To((()=>No(h)))))))))))))}))),["children",po.Children.toArray(Array.from(t))])]))):g(pf,{msg:"You do not have the appropriate permissions to view this information"});var m}var wf;wf=e=>g(_f,e),function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=sf,o.prototype.attributeChangedCallback=lf,o.prototype.disconnectedCallback=af,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("superhero-bank-details",o)}(wf)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-bank-details",
3
- "version": "0.1.1219",
3
+ "version": "0.1.1227",
4
4
  "description": "Flare Superhero Bank Details Components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -11,10 +11,12 @@
11
11
  "build": "dotnet fable ./ && webpack --mode production --node-env production"
12
12
  },
13
13
  "dependencies": {
14
- "preact": "^10.6.6",
14
+ "@headlessui/react": "^1.7.8",
15
+ "preact": "^10.13.1",
15
16
  "preact-custom-element": "^4.2.1"
16
17
  },
17
18
  "devDependencies": {
19
+ "@svgr/webpack": "^8.1.0",
18
20
  "html-webpack-plugin": "^5.5.0",
19
21
  "source-map-loader": "^4.0.1",
20
22
  "webpack": "^5.69.1",