@flarehr/superhero-bank-details 3.1.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
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 Ko(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(ui(e),ui(t),(([e,t],[n,r])=>e===n&&$o(t,r))):e.fullname===t.fullname&&zt(Bo(e),Bo(t),$o)}function Vo(e,t,n,r){return new Uo(e,t,n,void 0,r)}function Wo(...e){return new Uo("",void 0,void 0,void 0,(()=>e))}const qo=new Uo("System.Object"),zo=(new Uo("Microsoft.FSharp.Core.Unit"),new Uo("System.Char"),new Uo("System.String")),Yo=new Uo("System.Boolean"),Zo=(new Uo("System.SByte"),new Uo("System.Byte"),new Uo("System.Int16"),new Uo("System.UInt16"),new Uo("System.Int32"));function Jo(e){if(Array.isArray(e))return e[0];if(e instanceof Uo){const t=Qo(e);if(null!=t)return Jo(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Ko(e){const t=Qo(e);return null!=t?Ko(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ko(e))).join(",")+"]"}function Xo(e){return null!=Qo(e)}function Qo(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ei(e){return null!=e.generics&&e.generics.length>0}function ti(e){return null!=e.enumCases&&e.enumCases.length>0}function ni(e){return null==e.generics?e:new Uo(e.fullname,e.generics.map((()=>qo)))}function ri(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function oi(e){if(ti(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function ii(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 si(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function ui(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function li(e){if(fi(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function ai(e){return e instanceof Uo?null!=e.cases:e instanceof ln}function ci(e){return e instanceof Uo?null!=e.fields:e instanceof an}function fi(e){return e.fullname.startsWith("System.Tuple")}function di(e){return null==e.fields?[]:e.fields}function hi(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 pi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function mi(e,t){return 0===t.tag?new pi(0,[e(t.fields[0])]):new pi(1,[t.fields[0]])}class gi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class _i extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wi extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class vi{constructor(){this.cache=new Map([])}}function yi(){return new vi}function bi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ci(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)}(bi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bi(t)}}yi(),yi();const Ei=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Si=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,xi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ti(e,t){try{return t.contents=function(e){function t(e){return e.replace(Si,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ei.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(Si.test(n))return t(n);if(xi.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 ki;function Oi(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 Ni(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&ki.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]=Oi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Oi(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 Ii(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 Ai(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 Ii(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ki||(ki={}));var Mi=null;try{Mi=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 Pi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Di(e){return!0===(e&&e.__isLong__)}Pi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Pi.prototype.Equals=function(e){return us(this,e)},Pi.prototype.CompareTo=function(e){return fs(this,e)},Pi.prototype.toString=function(e){return rs(this,e)},Pi.prototype.toJSON=function(){return rs(this)},Pi.prototype[wr]=function(){const e=this;return{multiply:t=>ms(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:()=>rs(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Pi(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 Pi(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)}},Pi.prototype.__isLong__,Object.defineProperty(Pi.prototype,"__isLong__",{value:!0});var Li={},Fi={};function Ri(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Fi[e])?r:(n=Hi(e,(0|e)<0?-1:0,!0),o&&(Fi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Li[e])?r:(n=Hi(e,e<0?-1:0,!1),o&&(Li[e]=n),n)}function ji(e,t){if(isNaN(e))return t?Yi:zi;if(t){if(e<0)return Yi;if(e>=Vi)return Qi}else{if(e<=-Wi)return es;if(e+1>=Wi)return Xi}return e<0?ds(ji(-e,t)):Hi(e%$i|0,e/$i|0,t)}function Hi(e,t,n){return new Pi(e,t,n)}var Ui=Math.pow;function Bi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return zi;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 ds(Bi(e.substring(1),t,n));for(var o=ji(Ui(n,8)),i=zi,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),n);i=hs(u<8?ms(i,ji(Ui(n,u))):i=ms(i,o),ji(l))}return i.unsigned=t,i}function Gi(e,t){return"number"==typeof e?ji(e,t):"string"==typeof e?Bi(e,t):Hi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var $i=4294967296,Vi=$i*$i,Wi=Vi/2,qi=Ri(1<<24),zi=Ri(0),Yi=Ri(0,!0),Zi=Ri(1),Ji=Ri(1,!0),Ki=Ri(-1),Xi=Hi(-1,2147483647,!1),Qi=Hi(-1,-1,!0),es=Hi(0,-2147483648,!1);function ts(e){return e.unsigned?e.low>>>0:e.low}function ns(e){return e.unsigned?(e.high>>>0)*$i+(e.low>>>0):e.high*$i+(e.low>>>0)}function rs(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(os(e))return"0";if(is(e)){if(us(e,es)){var n=ji(t),r=gs(e,n),o=ps(ms(r,n),e);return rs(r,t)+ts(o).toString(t)}return"-"+rs(ds(e),t)}for(var i=ji(Ui(t,6),e.unsigned),s=e,u="";;){var l=gs(s,i),a=(ts(ps(s,ms(l,i)))>>>0).toString(t);if(os(s=l))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function os(e){return 0===e.high&&0===e.low}function is(e){return!e.unsigned&&e.high<0}function ss(e){return 1==(1&e.low)}function us(e,t){return Di(t)||(t=Gi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ls(e,t){return fs(e,t)<0}function as(e,t){return fs(e,t)>0}function cs(e,t){return fs(e,t)>=0}function fs(e,t){if(Di(t)||(t=Gi(t)),us(e,t))return 0;var n=is(e),r=is(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:is(ps(e,t))?-1:1}function ds(e){return!e.unsigned&&us(e,es)?es:hs(function(e){return Hi(~e.low,~e.high,e.unsigned)}(e),Zi)}function hs(e,t){Di(t)||(t=Gi(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,Hi((f&=65535)<<16|(d&=65535),(a&=65535)<<16|(c&=65535),e.unsigned)}function ps(e,t){return Di(t)||(t=Gi(t)),hs(e,ds(t))}function ms(e,t){if(os(e))return e.unsigned?Yi:zi;if(Di(t)||(t=Gi(t)),Mi)return Hi(Mi.mul(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned);if(os(t))return e.unsigned?Yi:zi;if(us(e,es))return ss(t)?es:zi;if(us(t,es))return ss(e)?es:zi;if(is(e))return is(t)?ms(ds(e),ds(t)):ds(ms(ds(e),t));if(is(t))return ds(ms(e,ds(t)));if(ls(e,qi)&&ls(t,qi))return ji(ns(e)*ns(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,Hi((d&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function gs(e,t){if(Di(t)||(t=Gi(t)),os(t))throw Error("division by zero");var n,r,o;if(Mi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Hi((e.unsigned?Mi.div_u:Mi.div_s)(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned):e;if(os(e))return e.unsigned?Yi:zi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Hi(e.low,e.high,!0)}(t)),as(t,e))return Yi;if(as(t,function(e,t){if(Di(t)&&(t=ts(t)),0==(t&=63))return e;var n=e.high;return t<32?Hi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Hi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ji;o=Yi}else{if(us(e,es))return us(t,Zi)||us(t,Ki)?es:us(t,es)?Zi:us(n=function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Hi(0,e.low<<t-32,e.unsigned)}(gs(function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Hi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),zi)?is(t)?Zi:Ki:o=hs(n,gs(r=ps(e,ms(t,n)),t));if(us(t,es))return e.unsigned?Yi:zi;if(is(e))return is(t)?gs(ds(e),ds(t)):ds(gs(ds(e),t));if(is(t))return ds(gs(e,ds(t)));o=zi}for(r=e;cs(r,t);){n=Math.max(1,Math.floor(ns(r)/ns(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ui(2,i-48),u=ji(n),l=ms(u,t);is(l)||as(l,r);)l=ms(u=ji(n-=s,e.unsigned),t);os(u)&&(u=Zi),o=hs(o,u),r=ps(r,l)}return o}const _s=gs,ws=ns;function vs(e){return e<0?Math.ceil(e):Math.floor(e)}function ys(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return bs(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 bs(e){return ws(_s(e,1e4))}function Cs(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 ys(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*ys(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Es{constructor(e,t){this.k=e,this.v=t}}function Ss(e,t){return new Es(e,t)}function xs(e){return e.k}function Ts(e){return e.v}class ks extends Es{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function Os(e,t,n,r,o){return new ks(e,t,n,r,o)}function Ns(e){return e.left}function Is(e){return e.right}function As(e){return e.h}function Ms(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof ks){e=Ms(n+1,Ns(r)),t=Is(r);continue e}return n+1|0}return 0|n}}function Ps(e){return Ms(0,e)}function Ds(e,t,n,r){let o,i;o=null!=e?e instanceof ks?As(e):1:0,i=null!=r?r instanceof ks?As(r):1:0;const s=0|(o<i?i:o);return 0===s?Ss(t,n):Os(t,n,e,r,s+1)}function Ls(e,t,n,r){let o,i,s,u,l,a;if(l=null!=e?e instanceof ks?As(e):1:0,a=null!=r?r instanceof ks?As(r):1:0,a>l+2){const s=Tt(r);if(s instanceof ks){if(o=Ns(s),(null!=o?(i=o,i instanceof ks?As(i):1):0)>l+1){const r=Tt(Ns(s));if(r instanceof ks)return Ds(Ds(e,t,n,Ns(r)),xs(r),Ts(r),Ds(Is(r),xs(s),Ts(s),Is(s)));throw new Error("internal error: Map.rebalance")}return Ds(Ds(e,t,n,Ns(s)),xs(s),Ts(s),Is(s))}throw new Error("internal error: Map.rebalance")}if(l>a+2){const o=Tt(e);if(o instanceof ks){if(s=Is(o),(null!=s?(u=s,u instanceof ks?As(u):1):0)>a+1){const e=Tt(Is(o));if(e instanceof ks)return Ds(Ds(Ns(o),xs(o),Ts(o),Ns(e)),xs(e),Ts(e),Ds(Is(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ds(Ns(o),xs(o),Ts(o),Ds(Is(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ds(e,t,n,r)}function Fs(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,xs(o));return o instanceof ks?i<0?Ls(Fs(e,t,n,Ns(o)),xs(o),Ts(o),Is(o)):0===i?Os(t,n,Ns(o),Is(o),As(o)):Ls(Ns(o),xs(o),Ts(o),Fs(e,t,n,Is(o))):i<0?Os(t,n,void 0,r,2):0===i?Ss(t,n):Os(t,n,r,void 0,2)}return Ss(t,n)}function Rs(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,xs(i));if(0===s)return mo(Ts(i));if(i instanceof ks){e=r,t=o,n=s<0?Ns(i):Is(i);continue e}return}return}}function js(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof ks){js(n,Ns(r)),n(xs(r),Ts(r)),e=n,t=Is(r);continue e}n(xs(r),Ts(r))}break}}function Hs(e,t){js(e,t)}function Us(e,t){if(null!=t){const n=t;if(n instanceof ks){const t=Us(e,Ns(n)),r=e(xs(n),Ts(n)),o=Us(e,Is(n));return Os(xs(n),r,t,o,As(n))}return Ss(xs(n),e(xs(n),Ts(n)))}}function Bs(e,t){return Us(e,t)}function Gs(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=Fs(e,o[0],o[1],n)}return n}(e,t);if(t instanceof qr)return function(e,t){return so(((t,n)=>Fs(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=Fs(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{It(n)}}}class $s extends an{constructor(e,t){super(),this.stack=e,this.started=t}}function Vs(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 ks){e=ao([Ns(o),Ss(xs(o),Ts(o)),Is(o)],n);continue e}return t}e=n;continue e}}}function Ws(e){return new $s(Vs(to(e)),!1)}function qs(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 ks)throw new Error("Please report error: Map iterator, unexpected stack for current");return[xs(e),Ts(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zs(e){let t=Ws(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>qs(t),"System.Collections.IEnumerator.get_Current":()=>qs(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 ks)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vs(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=Ws(e)},Dispose(){}}}class Ys{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 Ys))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 zs(this.tree)}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zs(this.tree)}CompareTo(e){const t=this;if(e instanceof Ys)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 Xs(this,e[0])&&Zt(Js(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){!function(e,t,n){let r=n;Hs(((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|Ks(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ks(this)}get size(){return 0|Ks(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 Js(this,e)}has(e){return Xs(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 Zs(e,t){return new Ys(e,t)}function Js(e,t){return function(e,t,n){const r=Rs(e,t,n);if(null==r)throw new Error;return Tt(r)}(e.comparer,t,e.tree)}function Ks(e){return Ps(e.tree)}function Xs(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,xs(i));if(i instanceof ks){if(s<0){e=r,t=o,n=Ns(i);continue e}if(0===s)return!0;e=r,t=o,n=Is(i);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Qs(e,t,n){return function(e,t,n){return Zs(e.comparer,Fs(e.comparer,t,n,e.tree))}(n,e,t)}function eu(e,t){return function(e,t){return Rs(e.comparer,t,e.tree)}(t,e)}function tu(e,t){return function(e,t){return Zs(e.comparer,Bs(t,e.tree))}(t,e)}function nu(e){return function(e){return Zs(e,void 0)}(e)}class ru{constructor(e){this.k=e}}function ou(e){return new ru(e)}function iu(e){return e.k}class su extends ru{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function uu(e,t,n,r){return new su(e,t,n,r)}function lu(e){return e.left}function au(e){return e.right}function cu(e){return e.h}function fu(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof su){e=lu(r),t=fu(au(r),n+1);continue e}return n+1|0}return 0|n}}function du(e){return fu(e,0)}function hu(e,t,n){let r,o;r=null!=e?e instanceof su?cu(e):1:0,o=null!=n?n instanceof su?cu(n):1:0;const i=0|(r<o?o:r);return 0===i?ou(t):uu(t,e,n,i+1)}function pu(e,t,n){let r,o,i,s,u,l;if(u=null!=e?e instanceof su?cu(e):1:0,l=null!=n?n instanceof su?cu(n):1:0,l>u+2){const i=Tt(n);if(i instanceof su){if(r=lu(i),(null!=r?(o=r,o instanceof su?cu(o):1):0)>u+1){const n=Tt(lu(i));if(n instanceof su)return hu(hu(e,t,lu(n)),iu(n),hu(au(n),iu(i),au(i)));throw new Error("internal error: Set.rebalance")}return hu(hu(e,t,lu(i)),iu(i),au(i))}throw new Error("internal error: Set.rebalance")}if(u>l+2){const r=Tt(e);if(r instanceof su){if(i=au(r),(null!=i?(s=i,s instanceof su?cu(s):1):0)>l+1){const e=Tt(au(r));if(e instanceof su)return hu(hu(lu(r),iu(r),lu(e)),iu(e),hu(au(e),t,n));throw new Error("internal error: Set.rebalance")}return hu(lu(r),iu(r),hu(au(r),t,n))}throw new Error("internal error: Set.rebalance")}return hu(e,t,n)}function mu(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,iu(r));if(r instanceof su)return o<0?pu(mu(e,t,lu(r)),iu(r),au(r)):0===o?n:pu(lu(r),iu(r),mu(e,t,au(r)));{const o=0|e.Compare(t,iu(r));return o<0?uu(t,void 0,n,2):0===o?n:uu(t,n,void 0,2)}}return ou(t)}function gu(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,iu(i));if(i instanceof su){if(s<0){e=r,t=o,n=lu(i);continue e}if(0===s)return!0;e=r,t=o,n=au(i);continue e}return 0===s}return!1}}function _u(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof su){_u(n,lu(r)),n(iu(r)),e=n,t=au(r);continue e}n(iu(r))}break}}class wu extends an{constructor(e,t){super(),this.stack=e,this.started=t}}function vu(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 su){e=ao([lu(o),ou(iu(o)),au(o)],r);continue e}return t}e=r;continue e}}}function yu(e){return new wu(vu(to(e)),!1)}function bu(e){if(e.started){const t=e.stack;if(no(t))return function(){throw new Error("Enumeration already started")}();if(null!=ro(t))return iu(ro(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Cu(e){let t=yu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>bu(t),"System.Collections.IEnumerator.get_Current":()=>bu(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 su)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=vu(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=yu(e)},Dispose(){}}}function Eu(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 su)if(null==lu(s)){if(!(u instanceof su)){const l=0|r.Compare(iu(s),iu(u));if(0!==l)return 0|l;e=r,t=eo(au(s),oo(o)),n=eo(void 0,oo(i));continue e}if(null==lu(u)){const l=0|r.Compare(iu(s),iu(u));if(0!==l)return 0|l;e=r,t=eo(au(s),oo(o)),n=eo(au(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 su){e=r,t=ao([lu(l),uu(iu(l),void 0,au(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ou(iu(l))],u),n=i;continue e;case 1:if(c instanceof su){e=r,t=o,n=ao([lu(c),uu(iu(c),void 0,au(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ou(iu(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 su){e=r,t=ao([lu(l),uu(iu(l),void 0,au(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ou(iu(l))],u),n=i;continue e;case 1:if(c instanceof su){e=r,t=o,n=ao([lu(c),uu(iu(c),void 0,au(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ou(iu(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof su)){const l=0|r.Compare(iu(s),iu(u));if(0!==l)return 0|l;e=r,t=oo(o),n=oo(i);continue e}if(null==lu(u)){const l=0|r.Compare(iu(s),iu(u));if(0!==l)return 0|l;e=r,t=eo(void 0,oo(o)),n=eo(au(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 su){e=r,t=ao([lu(l),uu(iu(l),void 0,au(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ou(iu(l))],u),n=i;continue e;case 1:if(c instanceof su){e=r,t=o,n=ao([lu(c),uu(iu(c),void 0,au(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ou(iu(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 su){e=r,t=ao([lu(l),uu(iu(l),void 0,au(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ou(iu(l))],u),n=i;continue e;case 1:if(c instanceof su){e=r,t=o,n=ao([lu(c),uu(iu(c),void 0,au(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ou(iu(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 su){e=r,t=ao([lu(l),uu(iu(l),void 0,au(l),0)],u),n=i;continue e}e=r,t=ao([void 0,ou(iu(l))],u),n=i;continue e;case 1:if(c instanceof su){e=r,t=o,n=ao([lu(c),uu(iu(c),void 0,au(c),0)],a);continue e}e=r,t=o,n=ao([void 0,ou(iu(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,to(t),to(n))}function Su(e,t,n){let r=n;_u((e=>{t[r]=e,r=r+1|0}),e)}function xu(e,t){if(kt(t))return function(e,t){return Vr(((t,n)=>mu(e,n,t)),void 0,t)}(e,t);if(t instanceof qr)return function(e,t){return so(((t,n)=>mu(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=mu(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{It(n)}}}class Tu{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 Tu&&0===Eu(ku(this),Ou(this),Ou(e))}toString(){return"set ["+Fr("; ",Fo((e=>un(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Eu(ku(this),Ou(this),Ou(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 gu(ku(this),e,Ou(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){Su(Ou(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Nu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Nu(this)}GetEnumerator(){return Cu(Ou(this))}[Symbol.iterator](){return Lt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Cu(Ou(this))}get size(){return 0|Nu(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,gu(ku(t=this),n,Ou(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 ku(e){return e.comparer}function Ou(e){return e.tree}function Nu(e){return du(Ou(e))}function Iu(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 Au(e,t){const n=2===t.tag?Iu(t.fields[0],t.fields[1],!0):1===t.tag?Iu(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Iu(t.fields[0],t.fields[1],!0):4===t.tag?Iu(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]:Iu(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Mu(e,t,n){let r;if(r=sn(1,t,[e])(n),1===r.tag){const e=r.fields[0];return new pi(1,[Au(e[0],e[1])])}return new pi(0,[r.fields[0]])}function Pu(e,t){try{return Mu("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new pi(1,["Given an invalid JSON: "+e.message]);throw e}}const Du=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 pi(0,[(e+128&255)-128]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,8,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Lu=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 pi(0,[255&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,8,new cn((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Fu=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 pi(0,[(e+32768&65535)-32768]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,16,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Ru=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 pi(0,[65535&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,16,new cn((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},ju=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 pi(0,[~~e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,32,new cn((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Hu=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 pi(0,[e>>>0]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,32,new cn((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])};function Uu(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 pi(1,[[i,new _i(5,["a longer array. Need index `"+Ut(e)+"` but there are only `"+(o=n.length,Ut(o)+"` entries"),r])]])}return new pi(1,[[i,new _i(0,["an array",r])]])}function Bu(e,t,n){if(Array.isArray(n)){let r=-1;return mi(uo,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ut(r)+"]",o);return 0===i.tag?new pi(0,[eo(i.fields[0],n.fields[0])]):new pi(1,[i.fields[0]])}return n}),new pi(0,[Qr()]),n))}return new pi(1,[[t,new _i(0,["a list",n])]])}function Gu(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 pi(0,[i])):new pi(1,[s.fields[0]])}return n}),new pi(0,[Gr(new Array(o.length),0,o.length,null)]),o)}return new pi(1,[[t,new _i(0,["an array",n])]])}function $u(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new pi(1,[o.fields[0]])}function Vu(e,t){let n;const r=e;return n=e=>t=>Uu(0,r,e,t),e=>r=>$u(rn(3,(e=>{let n;const r=t;return n=e=>t=>Uu(1,r,e,t),t=>r=>$u(((t,n,r)=>new pi(0,[[e,t]])),rn(2,n),t,r)})),rn(2,n),e,r)}function Wu(e){return Zs(t={Compare:Qt},Gs(t,e));var t}function qu(e){return function(e,t){return new Tu(e,t)}(t={Compare:Qt},xu(t,e));var t}function zu(e,t,n,r){let o,i,s,u,l;return t.length!==r.length?new pi(1,[[n,new _i(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?mi((e=>eo(e,r.fields[0])),t(n)(e)):r),r,t,new pi(0,[Qr()]))}function Yu(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Jo(e)===r))}(0,si(n));if(null!=s){const n=s;return 0===i.length?new pi(0,[hi(n,[])]):mi((e=>hi(n,io(e))),zu("union fields",$r((n=>Ju(e,t,!1,n[1])),di(n),null),o,i))}return new pi(1,[[o,new _i(6,["Cannot find case "+r+" in "+Ko(n)])]])}function Zu(e,t,n,r){let o,i;const s=new cn(null);let u;const l=Ko(r);let a;if(u=Qs(l,s,e),ci(r)){const e=$r((e=>[Ci(t,Jo(e)),Ju(u,t,!1,e[1])]),ui(r),null);a=t=>n=>mi((e=>function(e,t){const n=ui(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 pi(1,[[t,new _i(0,["an object",n])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?mi((e=>eo(e,r.fields[0])),e[1](t+"."+o)(n[o])):r})(r,e)),o)}(0,e,new pi(0,[Qr()]))}(e,t,n))}else if(ai(r))a=e=>n=>{if("string"==typeof n)return Yu(u,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Yu(u,t,r,o[0],e,o.slice(1,o.length))}return new pi(1,[[e,new _i(0,["a string or array",n])]])};else{if(!n)throw new Error((o=Ko(r),i=Mr(Ir("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));a=e=>t=>new pi(1,[[e,new _i(2,["an extra coder for "+Ko(r),t])]])}return s.contents=a,a}function Ju(e,t,n,r){let o,i,s;const u=Ko(r),l=eu(u,e);if(null==l){if(Xo(r)){const n=Ju(e,t,!1,Qo(r));return e=>t=>Gu(rn(2,n),e,t)}if(ti(r)){const e=Ko(ri(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Du(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,e.toString())]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Lu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,e.toString())]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Fu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,Ht(e))]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Ru(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,e.toString())]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=ju(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,Ut(e))]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Hu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Po(e,oi(n),{Equals:(e,t)=>e===t,GetHashCode:$t})?new pi(0,[ii(n,e.toString())]):new pi(1,[[o,new _i(1,[Ko(n),i,"Unkown value provided for the enum"])]])}};{const e=Ko(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(ei(r)){if(fi(r)){const n=$r((n=>Ju(e,t,!1,n)),li(r),null);return e=>t=>Array.isArray(t)?mi((e=>io(e)),zu("tuple elements",n,e,t)):new pi(1,[[e,new _i(0,["an array",t])]])}{const u=Ko(ni(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Ju(e,t,!0,Bo(r)[0]),e=>t=>{return n=rn(2,o),r=e,null==(i=t)?new pi(0,[void 0]):mi(mo,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Ju(e,t,!1,Bo(r)[0]),e=>t=>Bu(rn(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Ju(e,t,!1,Bo(r)[0]),o=Ju(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 pi(1,[[n,new _i(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 pi(0,[eo([s.fields[0],e.fields[0]],o.fields[0])]):new pi(1,[e.fields[0]])}return new pi(1,[s.fields[0]])}return o}),new pi(0,[Qr()]),Object.keys(r))}(rn(2,n),rn(2,o),e,t),(s=Vu(rn(2,n),rn(2,o)),e=>t=>Bu(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 pi(1,[[n,new _i(7,[i])]]);{const s=Mu(n,rn(2,ro(o)),r);if(1===s.tag){e=oo(o),t=fo(i,to(s.fields[0]));continue e}return new pi(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 pi(1,[o.fields[0]]):new pi(0,[e(o.fields[0])])}(Wu,rn(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Ju(e,t,!1,Bo(r)[0]);return e=>t=>{const r=Gu(rn(2,n),e,t);return 0===r.tag?new pi(0,[qu(r.fields[0])]):new pi(1,[r.fields[0]])}}return Zu(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a boolean",r])]]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new pi(0,[void 0]):new pi(1,[[n,new _i(0,["null",r])]]);var n,r}:"System.String"===u?e=>t=>{return n=e,"string"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a string",r])]]);var n,r}:"System.SByte"===u?Du:"System.Byte"===u?Lu:"System.Int16"===u?Fu:"System.UInt16"===u?Ru:"System.Int32"===u?ju:"System.UInt32"===u?Hu:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a float",r])]]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(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 pi(0,[(n=r[1],1===n.kind?n:mr(n.getTime(),1))]):new pi(1,[[e,new _i(0,["a datetime",t])]])}var n;return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ii(-621355968e5,0);return n=[Ai(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a datetimeoffset",t])]])}return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Cs(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a timespan",t])]])}return new pi(1,[[e,new _i(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=[Ti(t,new cn((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a guid",t])]])}return new pi(1,[[e,new _i(0,["a guid",t])]])}(e,t):"System.Object"===u?e=>e=>new pi(0,[e]):Zu(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}function Ku(e,t,n){const r=go(t,new wi(0,[]));return Ju(function(e){return null!=e?tu(((e,t)=>new cn(t[1])),e.Coders):nu({Compare:Kt})}(n),r,!1,e)}class Xu extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xu.prototype)}}class Qu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Qu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function el(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xu);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 tl=new class{Bind(e,t){return function(e,t){return el((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 el((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 el((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return el((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 el((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 el((e=>e.onSuccess(void 0)))}};function nl(e){}const rl=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 ol(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Qu;e({onSuccess:t||nl,onError:n||nl,onCancel:r||nl,cancelToken:o||rl,trampoline:i})}(e,t)}(e,t)}class il extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class sl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Header"]}}class ul extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ll 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 al extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class cl 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 fl=new ll("",new il(0,[]),Qr(),!1,void 0,void 0,void 0,new ul(0,[]));function dl(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Hr(t,[e],void 0,0);var n}function hl(e){return new ll(e,fl.method,fl.headers,fl.withCredentials,fl.overridenMimeType,fl.overridenResponseType,fl.timeout,fl.content)}function pl(e,t){return new ll(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ml(e){return function(e){return el((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 al(0,[n.responseText]):new al("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(dl(":",e));return no(t)?void 0:[ro(t).toLocaleLowerCase(),Fr(":",oo(t)).trim()]}),dl("\r\n",n.getAllResponseHeaders())),l=Zs(c={Compare:Kt},Gs(c,a)),new cl(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 gl(e){return e}function _l(e){return Array.from(e)}function wl(e){return pr(e,"O")}function vl(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 vs(e/864e5)}(e)),o=Math.abs(function(e){return vs(e%864e5/36e5)}(e)),i=Math.abs(function(e){return vs(e%36e5/6e4)}(e)),s=Math.abs(function(e){return vs(e%6e4/1e3)}(e)),u=Math.abs(function(e){return vs(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 yl(){return null}function bl(e){return pr(e,"O")}function Cl(e,t,n,r){let o,i;const s=new cn(null);let u;const l=Ko(r);let a;if(u=Qs(l,s,e),ci(r)){const e=$r((e=>{const r=Ci(t,Jo(e)),o=El(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}}),ui(r),null);a=t=>Do(((e,n)=>n(t)(e)),{},e)}else{if(!ai(r))throw new Error((o=Ko(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=si(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 Jo(i);{const e=0|l,r=di(i),o=Gr(new Array(e+1),0,e+1,null);o[0]=Jo(i);for(let i=1;i<=e;i++){const e=El(u,t,n,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return s.contents=a,a}function El(e,t,n,r){const o=Ko(r),i=eu(o,e);if(null==i){if(Xo(r)){const o=El(e,t,n,Qo(r));return e=>_l(Fo(o,e))}if(ti(r)){const e=Ko(ri(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=Ko(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(ei(r)){if(fi(r)){const o=$r((r=>El(e,t,n,r)),li(r),null);return e=>{return _l((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=Ko(ni(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ft((()=>{return o=El(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=El(e,t,n,Bo(r)[0]);return e=>_l(Fo(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Bo(r)[0],i=El(e,t,n,Bo(r)[1]);if("System.String"===Ko(o)||"System.Guid"===Ko(o))return e=>Do(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=El(e,t,n,o);return r=s,e=>_l(Fo((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Cl(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?yl:"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?bl:"System.DateTimeOffset"===o?wl:"System.TimeSpan"===o?vl:"System.Guid"===o?gl:"System.Object"===o?e=>e:Cl(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Sl(e,t,n,r){const o=go(t,new wi(0,[])),i=go(r,!0);return El(function(e){return null!=e?tu(((e,t)=>new cn(t[0])),e.Coders):nu({Compare:Kt})}(n),o,i,e)}new cl(0,"","","",nu({Compare:Kt}),new al(0,[""]));class xl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Inherited","Default","Specific"]}}class Tl extends an{constructor(e,t,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=t,this.AllowPercentageSplit=n}}class kl extends an{constructor(e){super(),this.Message=e}}function Ol(e){return`${e}/bank-details/admin`}function Nl(e,t){return tl.Delay((()=>{let n,r;const o=(n=Mr(Ir("Bearer %s")),i=n(e),new sl(0,["Authorization",i]));var i;let s;r=function(e,t){return new ll(t.url,t.method,fo(t.headers,to(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}(o,t);const u=ml(r);return s=tl.Bind(u,(e=>tl.Return(new pi(0,[e])))),tl.Bind(s,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ml(r);return tl.Bind(e,(e=>tl.Return(new pi(0,[e]))))}return tl.Return(new pi(0,[e]))}}))}))}function Il(e,t){let n;const r=Pu(rn(2,Ku(Vo("BankDetails.AdminUI.Service.ErrorMessage",[],kl,(()=>[["Message",zo]])),new wi(1,[]),void 0)),t);return 0===r.tag?new pi(1,[r.fields[0].Message]):new pi(1,[(n=Mr(Ir("Error code: %d")),n(e))])}class Al{constructor(e,t,n,r){this.baseUrl=e,this.accessToken=t,this.partnerId=n,this.accountId=r}}function Ml(e,t){return n=e.baseUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,s=t.MaxAccounts,u=t.AllowPercentageSplit,tl.Delay((()=>{let e,t;const l=Ol(n);t=null==i?`${l}/partners/${o}/config`:`${l}/partners/${o}/accounts/${i}/config`;const a=new ul(1,[(e={AllowPercentageSplit:u,MaxAccounts:s},h=0,p=Sl(Wo(["AllowPercentageSplit",Yo],["MaxAccounts",Zo]),new wi(1,[]),void 0,void 0)(e),JSON.stringify(p,rn(2,null),mo(h)))]),c=Nl(r,pl(new il(2,[]),(f=a,d=hl(t),new ll(d.url,d.method,d.headers,d.withCredentials,d.overridenMimeType,d.overridenResponseType,d.timeout,f))));var f,d,h,p;return tl.Bind(c,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Il(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var n,r,o,i,s,u}class Pl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}const Dl=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 Ll{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Fl(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 Dl}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 Ll(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Rl(e,t){lo((t=>{t(e)}),t)}function jl(){return Qr()}function Hl(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 Ul(e){return to((t=>{t(e)}))}function Bl(e,t,n,r){return to((o=>{e(tl.Delay((()=>{return tl.Bind((e=t(n),el((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new gi(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new gi(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])),tl.Zero()):tl.Zero()}));var e})))}))}function Gl(e){Fl(0,(t=>{ol(e)}))}class $l extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["AccessRole"]}}function Vl(e){return new $l(0,[e])}class Wl extends an{constructor(e,t){super(),this.UserName=e,this.Roles=t}}function ql(e){return null!=(t=e.Roles,ho(new $l(0,["BankDetails.EditConfig"]),t,{Equals:Zt,GetHashCode:qt})?mo(void 0):void 0);var t}class zl 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 Yl 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 Jl extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Kl(){return new Jl(2,[new Pl(0,[void 0])])}function Xl(e,t,n,r){let o,i;return 5===n.tag?[new zl(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,0===n.fields[0].tag&&ql(e)),jl()]:6===n.tag?[r,Hl(co([Ul(new Jl(5,[new Yl(0,[])])),Ul(Kl())]))]:0===n.tag?[new zl((o=r.Config,new Tl(n.fields[0],o.ConfigOwnership,o.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:1===n.tag?[new zl((i=r.Config,new Tl(i.MaxAccounts,i.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:2===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new zl(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:[new zl(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:[new zl(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Bl((e=>{Gl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Nl(n,pl(new il(0,[]),hl((e=Ol(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){const t=Pu(rn(2,Ku(Vo("BankDetails.AdminUI.Service.Model",[],Tl,(()=>[["MaxAccounts",Zo],["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,xl)],["AllowPercentageSplit",Yo]])),new wi(1,[]),void 0)),e.responseText);return tl.Return(t)}{const t=Il(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Jl(2,[new Pl(1,[e])])))]:3===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new zl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:[new zl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Hl(co([Ul(new Jl(5,[new Yl(0,[])])),Ul(Kl())]))]:[r,Bl((e=>{Gl(e)}),(e=>Ml(t,e)),r.Config,(e=>new Jl(3,[new Pl(1,[e])])))]:4===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new zl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),jl()]:[new zl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Hl(co([Ul(new Jl(5,[new Yl(0,[])])),Ul(Kl())]))]:[r,Bl((e=>{Gl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Nl(n,pl(new il(4,[]),hl((e=Ol(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Il(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Jl(4,[new Pl(1,[e])])))]:8===n.tag?[r,Hl(co([Ul(new Jl(7,[!1])),Ul(new Jl(4,[new Pl(0,[void 0])]))]))]:[new zl(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),jl()]}var Ql;function ea(){return ea=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},ea.apply(this,arguments)}var ta;function na(){return na=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},na.apply(this,arguments)}var ra;function oa(){return oa=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},oa.apply(this,arguments)}function ia(e,t){return po.createElement(e,pn(t,1))}const sa=ia((function(e){return g("svg",ea({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),Ql||(Ql=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 ua=ia((function(e){return g("svg",na({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),ta||(ta=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()),la=ia((function(e){return g("svg",oa({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),ra||(ra=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 aa=$(null);aa.displayName="OpenClosedContext";var ca=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ca||{});function fa(){return fe(aa)}function da({value:e,children:t}){return St.createElement(aa.Provider,{value:e},t)}function ha(){let e=ue(!1);return Nn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function pa(e,...t){e&&t.length>0&&e.classList.add(...t)}function ma(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ga(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let _a=$(null);_a.displayName="TransitionContext";var wa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(wa||{});let va=$(null);function ya(e){return"children"in e?ya(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ba(e,t){let n=Ln(e),r=ue([]),o=ha(),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;!ya(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 Ca(){}va.displayName="NestingContext";let Ea=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Sa(e){var t;let n={};for(let r of Ea)n[r]=null!=(t=e[r])?t:Ca;return n}let xa=wn.RenderStrategy,Ta=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=fa();if(void 0===n&&null!==l&&(n=(l&ca.Open)===ca.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=ba((()=>{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(ya(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(va.Provider,{value:f},St.createElement(_a.Provider,{value:m},yn({ourProps:{...g,as:v,children:St.createElement(ka,{ref:u,...g,...i,beforeEnter:_,beforeLeave:w})},theirProps:{},defaultTag:v,features:xa,visible:"visible"===a,name:"Transition"})))})),ka=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(_a);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(va);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:ga(m.className),enter:ga(l),enterFrom:ga(a),enterTo:ga(c),entered:ga(f),leave:ga(d),leaveFrom:ga(h),leaveTo:ga(p)}),O=function(e){let t=ue(Sa(e));return ie((()=>{t.current=Sa(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=ha(),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(ca.Opening),O.current.beforeEnter()},leave:()=>{M.addFlag(ca.Closing),O.current.beforeLeave()},idle:()=>{}}))),D=Fn((e=>gn(e,{enter:()=>{M.removeFlag(ca.Opening),O.current.afterEnter()},leave:()=>{M.removeFlag(ca.Closing),O.current.afterLeave()},idle:()=>{}}))),L=ba((()=>{E("hidden"),T(g)}),S);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=ha(),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 ma(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),pa(e,...t.base,...u,...a),i.nextFrame((()=>{ma(e,...t.base,...u,...a),pa(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,(()=>(ma(e,...t.base,...u),pa(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&&!ya(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(va.Provider,{value:L},St.createElement(da,{value:gn(C,{visible:ca.Open,hidden:ca.Closed})|M.flags},yn({ourProps:R,theirProps:F,defaultTag:"div",features:xa,visible:"visible"===C,name:"Transition.Child"})))})),Oa=En((function(e,t){let n=null!==fe(_a),r=null!==fa();return St.createElement(St.Fragment,null,!n&&r?St.createElement(Ta,{ref:t,...e}):St.createElement(ka,{ref:t,...e}))})),Na=Object.assign(Ta,{Child:Oa,Root:Ta});class Ia extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","As","Show","Children"]}}class Aa 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 Ma(e){const t=pn(e,1);return g(Na.Child,t)}function Pa(e){return On.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Da=["[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 La,Fa=(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))(Fa||{}),Ra=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ra||{}),ja=((La=ja||{})[La.Previous=-1]="Previous",La[La.Next=1]="Next",La);var Ha=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ha||{});var Ua=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ua||{});function Ba(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 Ga=["textarea","input"].join(",");function $a(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(Da)).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,Ga))&&n}(u)&&u.select(),2}function Va(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 Wa=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Wa||{});function qa(...e){return ae((()=>Pa(...e)),[...e])}function za(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 Ya(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 Za(e){let t=Fn(e),n=ue(!1);ie((()=>(n.current=!1,()=>{n.current=!0,Xn((()=>{n.current&&t()}))})),[t])}function Ja(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 Ka=(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))(Ka||{});let Xa=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=qa(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=ue(ec.slice());return Ya((([e],[n])=>{!0===n&&!1===e&&Xn((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=ec.slice())}),[e,ec,t]),Fn((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Ya((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Ba(n())}),[t]),Za((()=>{t&&Ba(n())}))}({ownerDocument:l},Boolean(16&s));let a=function({ownerDocument:e,container:t,initialFocus:n},r){let o=ue(null),i=ha();return Ya((()=>{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?Ba(n.current):$a(s,Fa.First)===Ra.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=ha();za(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=Ja(n);t.current instanceof HTMLElement&&s.add(t.current);let u=r.current;if(!u)return;let l=e.target;l&&l instanceof HTMLElement?tc(s,l)?(r.current=l,Ba(l)):(e.preventDefault(),e.stopPropagation(),Ba(u)):Ba(r.current)}),!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:a},Boolean(8&s));let c=function(){let e=ue(0);return Va("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Fn((e=>{let t=n.current;t&&gn(c.current,{[Wa.Forwards]:()=>{$a(t,Fa.First,{skipElements:[e.relatedTarget]})},[Wa.Backwards]:()=>{$a(t,Fa.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=Ja(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(tc(t,r)||(h.current?$a(n.current,gn(c.current,{[Wa.Forwards]:()=>Fa.Next,[Wa.Backwards]:()=>Fa.Previous})|Fa.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Ba(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}))})),Qa=Object.assign(Xa,{features:Ka}),ec=[];function tc(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&&ec[0]!==e.target&&(ec.unshift(e.target),ec=ec.filter((e=>null!=e&&e.isConnected)),ec.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 nc=$(!1);function rc(e){return St.createElement(nc.Provider,{value:e.force},e.children)}let oc=v,ic=v,sc=$(null),uc=$(null),lc=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=qa(r),s=function(e){let t=fe(nc),n=fe(sc),r=qa(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(uc),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]),Za((()=>{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:oc,name:"Portal"}),u):null})),ac=En((function(e,t){let{target:n,...r}=e,o={ref:jn(t)};return St.createElement(sc.Provider,{value:n},yn({ourProps:o,theirProps:r,defaultTag:ic,name:"Popover.Group"}))})),cc=Object.assign(lc,{Group:ac}),fc=$((()=>{}));fc.displayName="StackContext";var dc=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(dc||{});function hc({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=fe(fc),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(fc.Provider,{value:s},e)}function pc(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:mc,useEffect:gc,useLayoutEffect:_c,useDebugValue:wc}=t;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const vc=(e=>e.useSyncExternalStore)(t);function yc(){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 bc(){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 Cc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ec=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:Cc(n)},o=[bc(),yc(),{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)}});Ec.subscribe((()=>{let e=Ec.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)&&Ec.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Ec.dispatch("TEARDOWN",n)}}));let Sc=new Map,xc=new Map;function Tc(e,t=!0){Nn((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=xc.get(r))?n:0;return xc.set(r,o+1),0!==o||(Sc.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=xc.get(r))?e:1;if(1===t?xc.delete(r):xc.set(r,t-1),1!==t)return;let n=Sc.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,Sc.delete(r))}}),[e,t])}var kc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kc||{}),Oc=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Oc||{});let Nc={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Ic=$(null);function Ac(e){let t=fe(Ic);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ac),t}return t}function Mc(e,t){return gn(t.type,Nc,e,t)}Ic.displayName="DialogContext";let Pc=wn.RenderStrategy|wn.Static,Dc=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=fa();void 0===i&&null!==d&&(i=(d&ca.Open)===ca.Open);let h=ue(null),p=jn(h,t),m=qa(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(Mc,{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(Ic),[T,k]=function(){let e=fe(uc),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(uc.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=qa(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&ca.Closing)===ca.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]);Tc(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]);Tc(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=Pa(e))?void 0:n.body)&&gn(t,{0:()=>e.matches(Da),1(){let t=e;for(;null!==t;){if(t.matches(Da))return!0;t=t.parentElement}return!1}})}(i,Ha.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}ie((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ue(null);pc("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),pc("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),pc("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),pc("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Va("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(O,b,!(!E||S));let R=!(S||0!==w);za(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 vc(e.subscribe,e.getSnapshot,e.getSnapshot)}(Ec),o=e?r.get(e):void 0,i=!!o&&o.count>0;Nn((()=>{if(e&&t)return Ec.dispatch("PUSH",e,n),()=>Ec.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(hc,{type:"Dialog",enabled:0===w,element:h,onUpdate:Fn(((e,t)=>{"Dialog"===t&&gn(e,{[dc.Add]:()=>f((e=>e+1)),[dc.Remove]:()=>f((e=>e-1))})}))},St.createElement(rc,{force:!0},St.createElement(cc,null,St.createElement(Ic.Provider,{value:U},St.createElement(cc.Group,{target:h},St.createElement(rc,{force:!1},St.createElement(H,{slot:B,name:"Dialog.Description"},St.createElement(Qa,{initialFocus:u,containers:O,features:E?gn(A,{parent:Qa.features.RestoreFocus,leaf:Qa.features.All&~Qa.features.FocusLock}):Qa.features.None},St.createElement(k,null,yn({ourProps:G,theirProps:a,slot:B,defaultTag:"div",features:Pc,visible:0===w,name:"Dialog"}))))))))),St.createElement(I,null))})),Lc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Ac("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(rc,{force:!0},St.createElement(cc,null,yn({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),Fc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Ac("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"})})),Rc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Ac("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"})})),jc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Ac("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"})})),Hc=Object.assign(Dc,{Backdrop:Lc,Panel:Fc,Overlay:Rc,Title:jc,Description:zn});class Uc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function Bc(e){const t=pn(e,1);return g(Hc,t)}class Gc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function $c(e){const t=pn(e,1);return g(Hc.Panel,t)}class Vc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function Wc(e){const t=pn(e,1);return g(Hc.Title,t)}class qc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","Warning"]}}class zc 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 Yc(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 Zc extends ln{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Jc{constructor(e){this.state=new Zc(0,[Gr(new Array(en(Kt,e,10)),0,en(Kt,e,10),null),0])}}function Kc(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 Zc(0,[o,n]):new Zc(1,[o,n,i]),mo(o[r])}}class Xc 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 Qc(e,t){const n=t.init(e),r=n[0],o=new Jc(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 Zc(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=Yc(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 Zc(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),Rl(u,n[1]),s=r}catch(r){t.onError([(n=Mr(Ir("Unable to process the message: %A")),n(e)),r])}r=Kc(o)}i=!1}}]);t.setState(r,u),Rl(u,fo((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),jl()}})(),n[1]))}function ef(e){return po.useState(e)}function tf(e,t){var n;n=e,ie((()=>{const e=n();return()=>{e.Dispose()}}),t)}class nf{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function rf(){return new nf}function of(e,t,n,r){Qc(t,function(e,t){return new Xc(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 sf(e,t){return function(e,t,n){const r=ef(rf)[0],o=ef((()=>of(e,t,r))),i=o[1];return tf((()=>{return function(e){return e.hasDisposedOnce}(r)&&i(of(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 uf(){return(uf=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 lf(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 af(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(lf,uf({},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[cf(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(hf,{name:a},l):r[i]=l}var c=n?g(hf,null,r):r;return g(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:U)(this._vdom,this._root)}function cf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ff(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[cf(e)]=n,this._vdom=G(this._vdom,r),U(this._vdom,this._root)}}function df(){U(this._vdom=null,this._root)}function hf(e,t){var n=this;return g("slot",uf({},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 pf(e){return 2===e.tag?"":`(${e})`}function mf(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 gf(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 ${pf(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 _f(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 wf(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 Jl(5,[new Yl(1,[])]))},children:po.Children.toArray([ua])})),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 Jl(7,[!0]))},children:po.Children.toArray([la])}))))):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 Jl(3,[new Pl(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 Jl(6,[]))}})))))))),["children",po.Children.toArray(Array.from(o))])])))],["children",po.Children.toArray(Array.from(r))])])))}function vf(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 ${pf(e)}`})],["children",po.Children.toArray(Array.from(t))])])))}function yf(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 pi(1,["Failed to identify the user"]);else{let e;const o=n[1];e=atob(o),t=Pu(rn(2,Ku(Wo(["Name",zo],["Roles",(r=zo,new Uo("[]",[r]))]),new wi(1,[]),void 0)),e)}var r;if(1===t.tag)return new Wl(void 0,Qr());{const e=t.fields[0];return new Wl(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)}(Vl,co(e.Roles)))}}(e.accessToken),r=(o=e.backendUrl,i=e.accessToken,s=e.partnerId,u=e.accountId,new Al(o,i,s,u));var o,i,s,u;const l=(a=function(e){let t;return[(t=new zl(new Tl(0,new xl(1,[]),!1),void 0,!0,new Yl(0,[]),!1,!1),new zl(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,ql(e))),Ul(Kl())]}(n),c=(e,t)=>Xl(n,r,e,t),sf((()=>function(e,t,n){return new Xc(e,t,(e=>jl()),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(_f,{msg:p}):null,null!=(m=n.Roles,ho(new $l(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=[vf(f.Config.ConfigOwnership),wf(f.Config.ConfigOwnership,f.ShowEditButton,d)],["children",po.Children.toArray(Array.from(e))])])))),To((()=>Mo(No(g(gf,{configOwnership:f.Config.ConfigOwnership,handleMaxAccountChanged:e=>{d(new Jl(0,[e]))},readOnly:!Zl(f),selected:f.Config.MaxAccounts})),To((()=>Mo(No(g(mf,{isChecked:f.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:Zl(f),onChange:e=>{d(new Jl(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(Na.Root,t)}(co([new Ia(0,["1"]),new Ia(2,[e.show]),new Ia(3,[[Bc(co([new Uc(1,["1"]),new Uc(0,["div"]),new Uc(2,["relative z-10"]),new Uc(4,[e.cancelButtonClick]),new Uc(5,[[Ma(co([new Aa(0,["1"]),new Aa(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new Aa(4,["ease-out duration-300"]),new Aa(5,["opacity-0"]),new Aa(6,["opacity-100"]),new Aa(7,["ease-in duration-200"]),new Aa(8,["opacity-100"]),new Aa(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=[Ma(co([new Aa(0,["1"]),new Aa(4,["ease-out duration-300"]),new Aa(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Aa(6,["opacity-100 translate-y-0 sm:scale-100"]),new Aa(7,["ease-in duration-200"]),new Aa(8,["opacity-100 translate-y-0 sm:scale-100"]),new Aa(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Aa(10,[[$c(co([new Gc(0,["1"]),new Gc(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 Gc(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=[Wc(co([new Vc(1,["1"]),new Vc(0,["h3"]),new Vc(2,["text-lg font-medium leading-6 text-gray-900"]),new Vc(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 zc(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",sa,"Reset",(()=>{e(new Jl(8,[]))}),new qc(1,[]),"Cancel",(()=>{e(new Jl(7,[!1]))})))}(d)):Oo(),To((()=>No(h)))))))))))))}))),["children",po.Children.toArray(Array.from(t))])]))):g(_f,{msg:"You do not have the appropriate permissions to view this information"});var m}var bf;bf=e=>g(yf,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=af,o.prototype.attributeChangedCallback=ff,o.prototype.disconnectedCallback=df,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)}(bf)})();
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:()=>Ze,isElement:()=>Ct,isFragment:()=>ft,isValidElement:()=>ct,lazy:()=>je,memo:()=>Te,render:()=>Ke,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,J=0,Y=[],K=[],Z=r.__b,X=r.__r,Q=r.diffed,ee=r.__c,te=r.unmount;function ne(e,t){r.__h&&r.__h(W,e,J||t),J=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:K}),n.__[e]}function re(e){return J=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 J=5,ae((function(){return{current:e}}),[])}function le(e,t,n){J=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 J=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=Y.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,Z&&Z(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=K,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!==Y.push(t)&&z===r.requestAnimationFrame||((z=r.requestAnimationFrame)||_e)(me)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==K&&(e.__=e.__V),e.i=void 0,e.__V=K}))),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,Je="undefined"!=typeof document,Ye=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ke(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ze(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||Je&&"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||Ye(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:Ke,hydrate:Ze,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 Vt(this.value)}Equals(e){return null!=e&&Jt(this.value,e instanceof xt?e.value:e)}CompareTo(e){return null==e?1:Xt(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)}Symbol.iterator;class Mt{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 Pt(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new Mt(e[Symbol.iterator]())}function Dt(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 Lt{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 Ft(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function Rt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function jt(e,t){return(e=e<0&&null!=t&&10!==t?65535+e+1:e).toString(t)}function Ht(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Ut{static id(e){return Ut.idMap.has(e)||Ut.idMap.set(e,++Ut.count),Ut.idMap.get(e)}}function Bt(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function Gt(e){return 2654435761*e|0}function $t(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function Vt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Gt(e);case"string":return Bt(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]=Vt(e[r]);return $t(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=>Vt(e)));return $t(t)}return Gt(Ut.id(e))}}function Wt(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 Gt(e);case"string":return Bt(e);default:return Gt(Ut.id(e))}}(e)}(e)}function qt(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 zt(e,t){return qt(e,t,Jt)}function Jt(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)&&zt(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===Yt(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]||!Jt(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function Yt(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Rt(e),r=t.getTime()+Rt(t)),n===r?0:n<r?-1:1}function Kt(e,t){return e===t?0:e<t?-1:1}function Zt(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,Xt)}function Xt(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)?Zt(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?Yt(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=Xt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function Qt(e,t,n){return e(t,n)>0?t:n}function en(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Ut.idMap=new WeakMap,Ut.count=0;const tn=Symbol("curried");function nn(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[tn]=n,r}function rn(e,t,n){return r=>1===t?n(...e.concat([r])):rn(e.concat([r]),t-1,n)}function on(e,t,n){if(null!=t){if(tn in t){t=t[tn];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return rn(n,e,t)}}function sn(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+=sn(r);else{if(100===t){n+="; ...";break}n+="; "+sn(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+" = "+sn(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class un{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=sn(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>sn(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Vt(e)));return e.splice(0,0,Gt(this.tag)),$t(e)}Equals(e){return this===e||!!At(this,e)&&this.tag===e.tag&&zt(this.fields,e.fields)}CompareTo(e){return this===e?0:At(this,e)?this.tag===e.tag?Zt(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class ln{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+" = "+sn(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Vt(e)));return $t(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(!Jt(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=Xt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class an{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 cn{constructor(e){this.message=e}}function fn(e){return function(e){return e instanceof cn||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}const dn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};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=dn.None){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 dn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case dn.SnakeCase:return hn(e,"_");case dn.SnakeCaseAllCaps:return hn(e,"_").toUpperCase();case dn.KebabCase:return hn(e,"-");case dn.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=dn.None;if(null==t&&o(t),t instanceof un){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 Jn(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 Yn(e,t){let[n,r]=re((()=>Jn(e)));return Nn((()=>{r(Jn(e))}),[e.type,e.as]),Nn((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var Kn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Kn||{});let Zn=En((function(e,t){let{features:n=1,...r}=e;return yn({ourProps:{ref:t,"aria-hidden":!(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&~n)&&!!(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:Yn(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(Zn,{features:Kn.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 un{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 un{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 un{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?"-":"+")+Ft(~~(e/36e5),2)+":"+Ft(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:Ft(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 Ft(e.getFullYear(),4)+"-"+Ft(e.getMonth()+1,2)+"-"+Ft(e.getDate(),2)+"T"+Ft(e.getHours(),2)+":"+Ft(e.getMinutes(),2)+":"+Ft(e.getSeconds(),2)+"."+Ft(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):sn(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&~r),i=!(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)}class Wr extends ln{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(Jt(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)+Vt(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|Xt(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 qr(this)}[Symbol.iterator](){return Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Pt(this)}}class qr{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 zr(){return new Wr(null,void 0)}function Jr(e,t){return new Wr(e,t)}function Yr(e){return null==e.tail}function Kr(e){if(null!=e.tail)return e.head;throw new Error(Ur+"\\nParameter name: list")}function Zr(e){const t=e.tail;if(null!=t)return t;throw new Error(Ur+"\\nParameter name: list")}function Xr(){return zr()}function Qr(e,t){return Jr(e,t)}function eo(e){return Jr(e,zr())}function to(e){return Yr(e)}function no(e){return Kr(e)}function ro(e){return Zr(e)}function oo(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(Yr(o))break;n[r]=Kr(o),e=r+1,t=Zr(o)}})(0,e),n}function io(e,t,n){let r=t,o=n;for(;!Yr(o);)r=e(r,no(o)),o=Zr(o);return r}function so(e){return io(((e,t)=>Jr(t,e)),zr(),e)}function uo(e,t){io(((t,n)=>{e(n)}),void 0,t)}function lo(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Jr(e[t],n);return n}function ao(e){return lo(e,zr())}function co(e,t){return io(((e,t)=>Jr(t,e)),t,so(e))}function fo(e,t,n){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Yr(o))return;if(e(Kr(o)))return r;t=r+1,n=Zr(o)}})(0,t)}((t=>n.Equals(e,t)),t)}const ho=St;function po(e){return null==e||e instanceof xt?new xt(e):e}function mo(e,t){return null!=e?Tt(e):t}const go="Enumeration already finished.",_o="Enumeration has not started. Call MoveNext.",wo="The input sequence has an insufficient number of elements.";function vo(){throw new Error(_o)}function yo(){throw new Error(go)}class bo{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Pt(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=sn(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 Dt(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Co{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 Eo(e,t,n){return new Co(e,t,n)}function So(e,t,n){let r,o=!1,i=po(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 Eo((()=>(o||vo(),null!=r?Tt(r):yo())),(()=>{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 xo(e){return function(e){return new bo(e)}(e)}function To(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Pt(e);var t}function ko(e){return xo((()=>Pt(e())))}function Oo(e){return xo((()=>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 Eo((()=>(o?i&&yo():vo(),null!=r?Tt(r):yo())),(()=>{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=po(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=Pt(u)):(s(),o=!1)}else t=Pt(e)}return Tt(o)}}),(()=>{i||s()}))}(e)))}function No(){return ko((()=>new Array(0)))}function Io(e){return ko((()=>function(e,t){const n=Br(null,1);return n[0]=e,n}(e)))}function Ao(e){return kt(e)?ao(e):e instanceof Wr?e:function(e){let t,n;if(kt(e))return ao(e);if(e instanceof Wr)return e;{const r=zr();let o=r;const i=Pt(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Wr(e,void 0),t.tail=n,o=n}}finally{It(i)}const s=o,u=zr();return s.tail=u,Zr(r)}}(e)}function Mo(e,t,n){return xo((()=>{let r=-1;return So(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Po(e,t){return Oo([e,t])}function Do(e,t,n){const r=To(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 Lo(e,t,n){const r=To(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 Fo(e,t){Lo(((t,n)=>{e(n)}),void 0,t)}function Ro(e,t){return n=()=>To(t),r=t=>t["System.Collections.IEnumerator.MoveNext"]()?po(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{It(e)},xo((()=>So(n,r,o)));var n,r,o}function jo(e){return ko((()=>function(e){return e.slice().reverse()}(function(e){return e instanceof Wr?oo(e):Array.from(e)}(e))))}function Ho(e,t){return xo((()=>{const n=To(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(wo+"\\nParameter name: source");return function(e,t){return Eo((()=>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}}))}Symbol.iterator;class Uo{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Bo{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 Xo(this)}GetHashCode(){return $o(this)}Equals(e){return Vo(this,e)}}function Go(e){return null!=e.generics?e.generics:[]}function $o(e){return $t([Bt(e.fullname),...Go(e).map($o)])}function Vo(e,t){return""===e.fullname?""===t.fullname&&qt(li(e),li(t),(([e,t],[n,r])=>e===n&&Vo(t,r))):e.fullname===t.fullname&&qt(Go(e),Go(t),Vo)}function Wo(e,t,n,r){return new Bo(e,t,n,void 0,r)}function qo(...e){return new Bo("",void 0,void 0,void 0,(()=>e))}const zo=new Bo("System.Object"),Jo=(new Bo("Microsoft.FSharp.Core.Unit"),new Bo("System.Char"),new Bo("System.String")),Yo=new Bo("System.Boolean"),Ko=(new Bo("System.SByte"),new Bo("System.Byte"),new Bo("System.Int16"),new Bo("System.UInt16"),new Bo("System.Int32"));function Zo(e){if(Array.isArray(e))return e[0];if(e instanceof Bo){const t=ei(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 Xo(e){const t=ei(e);return null!=t?Xo(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Xo(e))).join(",")+"]"}function Qo(e){return null!=ei(e)}function ei(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ti(e){return null!=e.generics&&e.generics.length>0}function ni(e){return null!=e.enumCases&&e.enumCases.length>0}function ri(e){return null==e.generics?e:new Bo(e.fullname,e.generics.map((()=>zo)))}function oi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function ii(e){if(ni(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function si(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 ui(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function li(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ai(e){if(di(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function ci(e){return e instanceof Bo?null!=e.cases:e instanceof un}function fi(e){return e instanceof Bo?null!=e.fields:e instanceof ln}function di(e){return e.fullname.startsWith("System.Tuple")}function hi(e){return null==e.fields?[]:e.fields}new Bo("System.UInt32"),new Bo("System.Int64"),new Bo("System.UInt64"),new Bo("System.Int128"),new Bo("System.UInt128"),new Bo("System.IntPtr"),new Bo("System.UIntPtr"),new Bo("System.Half"),new Bo("System.Single"),new Bo("System.Double"),new Bo("System.Decimal"),new Bo("System.Numerics.BigInteger");class pi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}function mi(e,t){return 0===t.tag?new pi(0,[e(t.fields[0])]):new pi(1,[t.fields[0]])}class gi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class _i extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wi extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class vi{constructor(){this.cache=new Map([])}}function yi(){return new vi}function bi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ci(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(-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)}(bi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bi(t)}}yi(),yi();const Ei=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Si=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,xi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ti(e,t){try{return t.contents=function(e){function t(e){return e.replace(Si,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ei.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(Si.test(n))return t(n);if(xi.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 ki;function Oi(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 Ni(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&ki.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]=Oi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Oi(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 Ii(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 Ai(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 Ii(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ki||(ki={}));var Mi=null;try{Mi=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 Pi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Di(e){return!0===(e&&e.__isLong__)}Pi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Pi.prototype.Equals=function(e){return us(this,e)},Pi.prototype.CompareTo=function(e){return fs(this,e)},Pi.prototype.toString=function(e){return rs(this,e)},Pi.prototype.toJSON=function(){return rs(this)},Pi.prototype[wr]=function(){const e=this;return{multiply:t=>ms(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:()=>rs(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Pi(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 Pi(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)}},Pi.prototype.__isLong__,Object.defineProperty(Pi.prototype,"__isLong__",{value:!0});var Li={},Fi={};function Ri(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Fi[e])?r:(n=Hi(e,(0|e)<0?-1:0,!0),o&&(Fi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Li[e])?r:(n=Hi(e,e<0?-1:0,!1),o&&(Li[e]=n),n)}function ji(e,t){if(isNaN(e))return t?Ji:zi;if(t){if(e<0)return Ji;if(e>=Vi)return Qi}else{if(e<=-Wi)return es;if(e+1>=Wi)return Xi}return e<0?ds(ji(-e,t)):Hi(e%$i|0,e/$i|0,t)}function Hi(e,t,n){return new Pi(e,t,n)}var Ui=Math.pow;function Bi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return zi;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 ds(Bi(e.substring(1),t,n));for(var o=ji(Ui(n,8)),i=zi,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),n);i=hs(u<8?ms(i,ji(Ui(n,u))):i=ms(i,o),ji(l))}return i.unsigned=t,i}function Gi(e,t){return"number"==typeof e?ji(e,t):"string"==typeof e?Bi(e,t):Hi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var $i=4294967296,Vi=$i*$i,Wi=Vi/2,qi=Ri(1<<24),zi=Ri(0),Ji=Ri(0,!0),Yi=Ri(1),Ki=Ri(1,!0),Zi=Ri(-1),Xi=Hi(-1,2147483647,!1),Qi=Hi(-1,-1,!0),es=Hi(0,-2147483648,!1);function ts(e){return e.unsigned?e.low>>>0:e.low}function ns(e){return e.unsigned?(e.high>>>0)*$i+(e.low>>>0):e.high*$i+(e.low>>>0)}function rs(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(os(e))return"0";if(is(e)){if(us(e,es)){var n=ji(t),r=gs(e,n),o=ps(ms(r,n),e);return rs(r,t)+ts(o).toString(t)}return"-"+rs(ds(e),t)}for(var i=ji(Ui(t,6),e.unsigned),s=e,u="";;){var l=gs(s,i),a=(ts(ps(s,ms(l,i)))>>>0).toString(t);if(os(s=l))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function os(e){return 0===e.high&&0===e.low}function is(e){return!e.unsigned&&e.high<0}function ss(e){return!(1&~e.low)}function us(e,t){return Di(t)||(t=Gi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ls(e,t){return fs(e,t)<0}function as(e,t){return fs(e,t)>0}function cs(e,t){return fs(e,t)>=0}function fs(e,t){if(Di(t)||(t=Gi(t)),us(e,t))return 0;var n=is(e),r=is(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:is(ps(e,t))?-1:1}function ds(e){return!e.unsigned&&us(e,es)?es:hs(function(e){return Hi(~e.low,~e.high,e.unsigned)}(e),Yi)}function hs(e,t){Di(t)||(t=Gi(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,Hi((f&=65535)<<16|(d&=65535),(a&=65535)<<16|(c&=65535),e.unsigned)}function ps(e,t){return Di(t)||(t=Gi(t)),hs(e,ds(t))}function ms(e,t){if(os(e))return e.unsigned?Ji:zi;if(Di(t)||(t=Gi(t)),Mi)return Hi(Mi.mul(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned);if(os(t))return e.unsigned?Ji:zi;if(us(e,es))return ss(t)?es:zi;if(us(t,es))return ss(e)?es:zi;if(is(e))return is(t)?ms(ds(e),ds(t)):ds(ms(ds(e),t));if(is(t))return ds(ms(e,ds(t)));if(ls(e,qi)&&ls(t,qi))return ji(ns(e)*ns(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,Hi((d&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function gs(e,t){if(Di(t)||(t=Gi(t)),os(t))throw Error("division by zero");var n,r,o;if(Mi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Hi((e.unsigned?Mi.div_u:Mi.div_s)(e.low,e.high,t.low,t.high),Mi.get_high(),e.unsigned):e;if(os(e))return e.unsigned?Ji:zi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Hi(e.low,e.high,!0)}(t)),as(t,e))return Ji;if(as(t,function(e,t){if(Di(t)&&(t=ts(t)),0==(t&=63))return e;var n=e.high;return t<32?Hi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Hi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ki;o=Ji}else{if(us(e,es))return us(t,Yi)||us(t,Zi)?es:us(t,es)?Yi:us(n=function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Hi(0,e.low<<t-32,e.unsigned)}(gs(function(e,t){return Di(t)&&(t=ts(t)),0==(t&=63)?e:t<32?Hi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Hi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),zi)?is(t)?Yi:Zi:o=hs(n,gs(r=ps(e,ms(t,n)),t));if(us(t,es))return e.unsigned?Ji:zi;if(is(e))return is(t)?gs(ds(e),ds(t)):ds(gs(ds(e),t));if(is(t))return ds(gs(e,ds(t)));o=zi}for(r=e;cs(r,t);){n=Math.max(1,Math.floor(ns(r)/ns(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ui(2,i-48),u=ji(n),l=ms(u,t);is(l)||as(l,r);)l=ms(u=ji(n-=s,e.unsigned),t);os(u)&&(u=Yi),o=hs(o,u),r=ps(r,l)}return o}const _s=gs,ws=ns;function vs(e){return e<0?Math.ceil(e):Math.floor(e)}function ys(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ws(_s(arguments[0],1e4));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 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 ys(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*ys(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 po(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 Wr)return function(e,t){return io(((t,n)=>Ls(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Pt(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 ln{constructor(e,t){super(),this.stack=e,this.started=t}}function $s(e){e:for(;;){const t=e;if(to(t))return Xr();{const n=ro(t),r=no(t);if(null!=r){const o=r;if(o instanceof Ts){e=lo([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(eo(e)),!1)}function Ws(e){if(e.started){const t=e.stack;if(to(t))return function(){throw new Error("enumeration already finished")}();if(null!=no(t)){const e=no(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(to(t))return!1;if(null!=no(t)){if(no(t)instanceof Ts)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=$s(ro(t)),!to(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!to(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=Pt(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Vt(e[0])),n=0|t(n,Vt(e[1]))}}finally{It(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zs))return!1;{const t=Pt(this);try{const n=Pt(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!(!Jt(r[0],o[0])||!Jt(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{It(n)}}finally{It(t)}}}toString(){return"map ["+Fr("; ",Ro((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):sn(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 Dt(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=To(t);try{const t=To(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:Xt(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 Zs(this,e[0])&&Jt(Ys(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|Ks(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ks(this)}get size(){return 0|Ks(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ro((e=>[e[0],e[1]]),this)}get(e){return Ys(this,e)}has(e){return Zs(this,e)}keys(){return Ro((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Ro((e=>e[1]),this)}forEach(e,t){const n=this;Fo((t=>{on(2,e,[t[1]])(t[0])(n)}),n)}}function Js(e,t){return new zs(e,t)}function Ys(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 Ks(e){return Ms(e.tree)}function Zs(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 Js(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 Js(e.comparer,Us(t,e.tree))}(t,e)}function tu(e){return function(e){return Js(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 ln{constructor(e,t){super(),this.stack=e,this.started=t}}function wu(e){e:for(;;){const t=e;if(to(t))return Xr();{const n=no(t),r=ro(t);if(null!=n){const o=n;if(o instanceof iu){e=lo([uu(o),ru(ou(o)),lu(o)],r);continue e}return t}e=r;continue e}}}function vu(e){return new _u(wu(eo(e)),!1)}function yu(e){if(e.started){const t=e.stack;if(to(t))return function(){throw new Error("Enumeration already started")}();if(null!=no(t))return ou(no(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(to(t))return!1;if(null!=no(t)){if(no(t)instanceof iu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wu(ro(t)),!to(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!to(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(to(o))return to(i)?0:-1;if(to(i))return 1;if(null!=no(i))if(null!=no(o)){const s=no(o),u=no(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=Qr(lu(s),ro(o)),n=Qr(void 0,ro(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=Qr(lu(s),ro(o)),n=Qr(lu(u),ro(i));continue e}{let s,u,l,a,c;switch(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([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(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([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=ro(o),n=ro(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=Qr(void 0,ro(o)),n=Qr(lu(u),ro(i));continue e}{let s,u,l,a,c;switch(to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([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(i),to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==no(o)){e=r,t=ro(o),n=ro(i);continue e}{let s,u,l,a,c;switch(no(o),to(o)?to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2:null!=no(o)?(s=0,u=ro(o),l=no(o)):to(i)?s=2:null!=no(i)?(s=1,a=ro(i),c=no(i)):s=2,s){case 0:if(l instanceof iu){e=r,t=lo([uu(l),su(ou(l),void 0,lu(l),0)],u),n=i;continue e}e=r,t=lo([void 0,ru(ou(l))],u),n=i;continue e;case 1:if(c instanceof iu){e=r,t=o,n=lo([uu(c),su(ou(c),void 0,lu(c),0)],a);continue e}e=r,t=o,n=lo([void 0,ru(ou(c))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,eo(t),eo(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 Wr)return function(e,t){return io(((t,n)=>pu(e,n,t)),void 0,t)}(e,t);{const n=Pt(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=Pt(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+Vt(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("; ",Ro((e=>sn(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 Dt(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 Ro((e=>e),this)}values(){return Ro((e=>e),this)}entries(){return Ro((e=>[e,e]),this)}forEach(e,t){const n=this;Fo((t=>{on(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=on(1,t,[e])(n),1===r.tag){const e=r.fields[0];return new pi(1,[Iu(e[0],e[1])])}return new pi(0,[r.fields[0]])}function Mu(e,t){try{return Au("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new pi(1,["Given an invalid JSON: "+e.message]);throw e}}function Pu(e,t){return"string"==typeof t?new pi(0,[t]):new pi(1,[[e,new _i(0,["a string",t])]])}const Du=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 pi(0,[(e+128&255)-128]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,8,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Lu=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 pi(0,[255&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,8,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Fu=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 pi(0,[(e+32768&65535)-32768]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,16,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Ru=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 pi(0,[65535&e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,16,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},ju=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 pi(0,[~~e]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!1,32,new an((()=>t),(e=>{t=0|e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])},Hu=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 pi(0,[e>>>0]):new pi(1,[[r,new _i(1,[n,e,"Value was either too large or too small for "+n])]]):new pi(1,[[r,new _i(1,[n,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,t=0;return e=[Ni(o,511,!0,32,new an((()=>t),(e=>{t=e}))),t],e[0]?new pi(0,[e[1]]):new pi(1,[[r,new _i(0,[n,o])]])}return new pi(1,[[r,new _i(0,[n,o])]])};function Uu(e,t,n,r){let o;const i=n+".["+Ht(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new pi(1,[[i,new _i(5,["a longer array. Need index `"+Ht(e)+"` but there are only `"+(o=n.length,Ht(o)+"` entries"),r])]])}return new pi(1,[[i,new _i(0,["an array",r])]])}function Bu(e,t,n){if(Array.isArray(n)){let r=-1;return mi(so,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ht(r)+"]",o);return 0===i.tag?new pi(0,[Qr(i.fields[0],n.fields[0])]):new pi(1,[i.fields[0]])}return n}),new pi(0,[Xr()]),n))}return new pi(1,[[t,new _i(0,["a list",n])]])}function Gu(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+".["+Ht(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new pi(0,[i])):new pi(1,[s.fields[0]])}return n}),new pi(0,[Gr(new Array(o.length),0,o.length,null)]),o)}return new pi(1,[[t,new _i(0,["an array",n])]])}function $u(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new pi(1,[o.fields[0]])}function Vu(e,t){let n;const r=e;return n=e=>t=>Uu(0,r,e,t),e=>r=>$u(nn(3,(e=>{let n;const r=t;return n=e=>t=>Uu(1,r,e,t),t=>r=>$u(((t,n,r)=>new pi(0,[[e,t]])),nn(2,n),t,r)})),nn(2,n),e,r)}function Wu(e){return Js(t={Compare:Xt},Bs(t,e));var t}function qu(e){return function(e,t){return new xu(e,t)}(t={Compare:Xt},Su(t,e));var t}function zu(e,t,n,r){let o,i,s;const u=t.length+e|0;if(u!==r.length)return new pi(1,[[n,new _i(6,[(o=0|r.length,i=Mr(Ir("Expected array of length %i but got %i")),s=i(u),s(o))])]]);{let o=new pi(0,[Xr()]);for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0];let u;u=Mr(Ir("%s[%i]"))(n)(i);const l=t[i-e],a=r[i];o=mi((e=>Qr(e,s)),l(u)(a))}return mi(so,o)}}function Ju(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Zo(e)===r))}(0,ui(n));if(null!=s){const n=s,r=$r((n=>Ku(e,t,!1,n[1])),hi(n),null);return mi((e=>function(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):{}}(n,oo(e))),0===r.length&&i.length<=1?new pi(0,[Xr()]):zu(1,r,o,i))}return new pi(1,[[o,new _i(6,["Cannot find case "+r+" in "+Xo(n)])]])}function Yu(e,t,n,r){let o,i;const s=new an(null);let u;const l=Xo(r);let a;if(u=""===l?e:Xs(l,s,e),fi(r)){const e=$r((e=>[Ci(t,Zo(e)),Ku(u,t,!1,e[1])]),li(r),null);a=t=>n=>mi((e=>function(e,t){const n=li(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,oo(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new pi(1,[[t,new _i(0,["an object",n])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?mi((e=>Qr(e,r.fields[0])),e[1](t+"."+o)(n[o])):r})(r,e)),o)}(0,e,new pi(0,[Xr()]))}(e,t,n))}else if(ci(r))a=e=>n=>{if("string"==typeof n)return Ju(u,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>Ju(u,t,r,n,e,s),0===(i=Pu(e+"[0]",s[0])).tag?o(i.fields[0]):new pi(1,[i.fields[0]])}return new pi(1,[[e,new _i(0,["a string or array",n])]]);var o,i};else{if(!n)throw new Error((o=Xo(r),i=Mr(Ir("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders")),i(o)));a=e=>t=>new pi(1,[[e,new _i(2,["an extra coder for "+Xo(r),t])]])}return s.contents=a,a}function Ku(e,t,n,r){let o,i,s,u;const l=Xo(r),a=Qs(l,e);if(null==a){if(Qo(r)){const n=Ku(e,t,!1,ei(r));return e=>t=>Gu(nn(2,n),e,t)}if(ni(r)){const e=Xo(oi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Du(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Lu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Fu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,jt(e))]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Ru(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=ju(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=0|s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,Ht(e))]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Hu(o)(i);if(1===s.tag)return new pi(1,[s.fields[0]]);{const e=s.fields[0];return Do(e,ii(n),{Equals:(e,t)=>e===t,GetHashCode:Gt})?new pi(0,[si(n,e.toString())]):new pi(1,[[o,new _i(1,[Xo(n),i,"Unkown value provided for the enum"])]])}};{const e=Xo(r),t=Pr(Ir("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following 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(ti(r)){if(di(r)){const n=$r((n=>Ku(e,t,!1,n)),ai(r),null);return e=>t=>Array.isArray(t)?mi((e=>oo(e)),zu(0,n,e,t)):new pi(1,[[e,new _i(0,["an array",t])]])}{const l=Xo(ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===l)return o=Ku(e,t,!0,Go(r)[0]),e=>t=>{return n=nn(2,o),r=e,null==(i=t)?new pi(0,[void 0]):mi(po,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===l)return i=Ku(e,t,!1,Go(r)[0]),e=>t=>Bu(nn(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===l)return s=Ku(e,t,!1,Go(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return mi(jo,Vr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ht(r)+"]",o);return 0===i.tag?new pi(0,[Po([i.fields[0]],n.fields[0])]):new pi(1,[i.fields[0]])}return n}),new pi(0,[[]]),n))}return new pi(1,[[t,new _i(0,["a seq",n])]])}(nn(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===l){const n=Ku(e,t,!1,Go(r)[0]),o=Ku(e,t,!1,Go(r)[1]);let i;const s=ao([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new pi(1,[[n,new _i(0,["an object",r])]]):Lo(((o,i)=>{if(0===o.tag){let s;if(s=on(1,e,[n])(i),0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new pi(0,[Qr([s.fields[0],e.fields[0]],o.fields[0])]):new pi(1,[e.fields[0]])}return new pi(1,[s.fields[0]])}return o}),new pi(0,[Xr()]),Object.keys(r))}(nn(2,n),nn(2,o),e,t),(u=Vu(nn(2,n),nn(2,o)),e=>t=>Bu(nn(2,u),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(to(o))return new pi(1,[[n,new _i(7,[i])]]);{const s=Au(n,nn(2,no(o)),r);if(1===s.tag){e=ro(o),t=co(i,eo(s.fields[0]));continue e}return new pi(0,[s.fields[0]])}}})(s,Xr());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new pi(1,[o.fields[0]]):new pi(0,[e(o.fields[0])])}(Wu,nn(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===l){const n=Ku(e,t,!1,Go(r)[0]);return e=>t=>{const r=Gu(nn(2,n),e,t);return 0===r.tag?new pi(0,[qu(r.fields[0])]):new pi(1,[r.fields[0]])}}return Yu(e,t,n,r)}}return"System.Boolean"===l?e=>t=>{return n=e,"boolean"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a boolean",r])]]);var n,r}:"Microsoft.FSharp.Core.Unit"===l?e=>t=>{return n=e,null==(r=t)?new pi(0,[void 0]):new pi(1,[[n,new _i(0,["null",r])]]);var n,r}:"System.String"===l?e=>t=>Pu(e,t):"System.Char"===l?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new pi(0,[n[0]]):new pi(1,[[e,new _i(0,["a single character string",t])]])}return new pi(1,[[e,new _i(0,["a char",t])]])}(e,t):"System.SByte"===l?Du:"System.Byte"===l?Lu:"System.Int16"===l?Fu:"System.UInt16"===l?Ru:"System.Int32"===l?ju:"System.UInt32"===l?Hu:"System.Double"===l?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a float",r])]]);var n,r}:"System.Single"===l?e=>t=>{return n=e,"number"==typeof(r=t)?new pi(0,[r]):new pi(1,[[n,new _i(0,["a float32",r])]]);var n,r}:"System.DateTime"===l?e=>t=>function(e,t){if("string"==typeof t){let r,o=mr(-621355968e5,0);return r=[_r(t,new an((()=>o),(e=>{o=e}))),o],r[0]?new pi(0,[(n=r[1],1===n.kind?n:mr(n.getTime(),1))]):new pi(1,[[e,new _i(0,["a datetime",t])]])}var n;return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.DateTimeOffset"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ii(-621355968e5,0);return n=[Ai(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a datetimeoffset",t])]])}return new pi(1,[[e,new _i(0,["a datetime",t])]])}(e,t):"System.TimeSpan"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[bs(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a timespan",t])]])}return new pi(1,[[e,new _i(0,["a timespan",t])]])}(e,t):"System.Guid"===l?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Ti(t,new an((()=>r),(e=>{r=e}))),r],n[0]?new pi(0,[n[1]]):new pi(1,[[e,new _i(0,["a guid",t])]])}return new pi(1,[[e,new _i(0,["a guid",t])]])}(e,t):"System.Object"===l?e=>e=>new pi(0,[e]):Yu(e,t,n,r)}{const e=a;return t=>n=>e.contents(t)(n)}}function Zu(e,t,n){const r=mo(t,new wi(0,[]));return Ku(function(e){return null!=e?eu(((e,t)=>new an(t[1])),e.Coders):tu({Compare:Kt})}(n),r,!1,e)}class Xu extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xu.prototype)}}class Qu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Qu.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function el(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xu);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(fn(e))}}));else try{e(t)}catch(e){t.onError(fn(e))}}}const tl=new class{Bind(e,t){return function(e,t){return el((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(fn(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 el((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 el((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return el((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 el((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(fn(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 el((e=>e.onSuccess(void 0)))}};function nl(e){}const rl=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 ol(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Qu;e({onSuccess:t||nl,onError:n||nl,onCancel:r||nl,cancelToken:o||rl,trampoline:i})}(e,t)}(e,t)}class il extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class sl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Header"]}}class ul extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ll extends ln{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 al extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class cl extends ln{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 fl=new ll("",new il(0,[]),Xr(),!1,void 0,void 0,void 0,new ul(0,[]));function dl(e,t){return"string"!=typeof(n=t)||0===n.length?new Array(0):Hr(t,[e],void 0,0);var n}function hl(e){return new ll(e,fl.method,fl.headers,fl.withCredentials,fl.overridenMimeType,fl.overridenResponseType,fl.timeout,fl.content)}function pl(e,t){return new ll(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ml(e){return function(e){return el((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 al(0,[n.responseText]):new al("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 Jt(null,null)?r:$r((e=>e),r,null)}((e=>{const t=ao(dl(":",e));return to(t)?void 0:[no(t).toLocaleLowerCase(),Fr(":",ro(t)).trim()]}),dl("\r\n",n.getAllResponseHeaders())),l=Js(c={Compare:Kt},Bs(c,a)),new cl(o,e,i,n.responseURL,l,s)))};const r=Pt(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(po(u.fields[0]));break;default:n.send()}}))}function gl(e){return e}new cl(0,"","","",tu({Compare:Kt}),new al(0,[""]));const _l=null;function wl(e){return Array.from(e)}function vl(e){return pr(e,"O")}function yl(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 vs(e/864e5)}(e)),o=Math.abs(function(e){return vs(e%864e5/36e5)}(e)),i=Math.abs(function(e){return vs(e%36e5/6e4)}(e)),s=Math.abs(function(e){return vs(e%6e4/1e3)}(e)),u=Math.abs(function(e){return vs(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ft(o,2)}:${Ft(i,2)}:${Ft(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+Ft(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 bl(){return null}function Cl(e){return pr(e,"O")}function El(e){return t=>{return function(e,t){return null!=e?Tt(e):_l}(null!=(n=t)?po(e(Tt(n))):void 0);var n}}function Sl(e,t,n,r){let o,i;const s=new an(null);let u;const l=Xo(r);let a;if(u=""===l?e:Xs(l,s,e),fi(r)){const e=$r((e=>{const r=Ci(t,Zo(e)),o=xl(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}}),li(r),null);a=t=>Lo(((e,n)=>n(t)(e)),{},e)}else{if(!ci(r))throw new Error((o=Xo(r),i=Mr(Ir("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders")),i(o)));a=e=>{const o=function(e,t){const n=ui(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=hi(i),o=Gr(new Array(e+1),0,e+1,null);o[0]=Zo(i);for(let i=1;i<=e;i++){const e=xl(u,t,n,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return s.contents=a,a}function xl(e,t,n,r){const o=Xo(r),i=Qs(o,e);if(null==i){if(Qo(r)){const o=xl(e,t,n,ei(r));return e=>wl(Ro(o,e))}if(ni(r)){const e=Xo(oi(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=Xo(r);return Pr(Ir("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(ti(r)){if(di(r)){const o=$r((r=>xl(e,t,n,r)),ai(r),null);return e=>{return wl((t=(e,t)=>o[e](t),n=e,Mo((()=>To(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?po(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{It(e)}))));var t,n}}{const o=Xo(ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Lt((()=>El(xl(e,t,n,Go(r)[0]))));return e=>null==e?_l:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=xl(e,t,n,Go(r)[0]);return e=>wl(Ro(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Go(r)[0],i=xl(e,t,n,Go(r)[1]);if("System.String"===Xo(o)||"System.Guid"===Xo(o))return e=>Lo(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=xl(e,t,n,o);return r=s,e=>wl(Ro((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Sl(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?bl:"System.String"===o?e=>e:"System.Char"===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?Cl:"System.DateTimeOffset"===o?vl:"System.TimeSpan"===o?yl:"System.Guid"===o?gl:"System.Object"===o?e=>e:Sl(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Tl(e,t,n,r){const o=mo(t,new wi(0,[])),i=mo(r,!0);return xl(function(e){return null!=e?eu(((e,t)=>new an(t[0])),e.Coders):tu({Compare:Kt})}(n),o,i,e)}class kl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Inherited","Default","Specific"]}}class Ol extends ln{constructor(e,t,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=t,this.AllowPercentageSplit=n}}class Nl extends ln{constructor(e){super(),this.Message=e}}function Il(e){return`${e}/bank-details/admin`}function Al(e,t){return tl.Delay((()=>{let n,r;const o=(n=Mr(Ir("Bearer %s")),i=n(e),new sl(0,["Authorization",i]));var i;let s;r=function(e,t){return new ll(t.url,t.method,co(t.headers,eo(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}(o,t);const u=ml(r);return s=tl.Bind(u,(e=>tl.Return(new pi(0,[e])))),tl.Bind(s,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ml(r);return tl.Bind(e,(e=>tl.Return(new pi(0,[e]))))}return tl.Return(new pi(0,[e]))}}))}))}function Ml(e,t){let n;const r=Mu(nn(2,Zu(Wo("BankDetails.AdminUI.Service.ErrorMessage",[],Nl,(()=>[["Message",Jo]])),new wi(1,[]),void 0)),t);return 0===r.tag?new pi(1,[r.fields[0].Message]):new pi(1,[(n=Mr(Ir("Error code: %d")),n(e))])}class Pl{constructor(e,t,n,r){this.baseUrl=e,this.accessToken=t,this.partnerId=n,this.accountId=r}}function Dl(e,t){return n=e.baseUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,s=t.MaxAccounts,u=t.AllowPercentageSplit,tl.Delay((()=>{let e,t;const l=Il(n);t=null==i?`${l}/partners/${o}/config`:`${l}/partners/${o}/accounts/${i}/config`;const a=new ul(1,[(e={AllowPercentageSplit:u,MaxAccounts:s},h=0,p=Tl(qo(["AllowPercentageSplit",Yo],["MaxAccounts",Ko]),new wi(1,[]),void 0,void 0)(e),JSON.stringify(p,nn(2,void 0),po(h)))]),c=Al(r,pl(new il(2,[]),(f=a,d=hl(t),new ll(d.url,d.method,d.headers,d.withCredentials,d.overridenMimeType,d.overridenResponseType,d.timeout,f))));var f,d,h,p;return tl.Bind(c,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var n,r,o,i,s,u}class Ll extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}const Fl=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)}},Rl=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 Fl}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}};class jl{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Hl(e,t){uo((t=>{t(e)}),t)}function Ul(){return Xr()}function Bl(e){return function(e){const t=zr();let n=t;const r=e=>{n=io(((e,t)=>{const n=new Wr(t,void 0);return e.tail=n,n}),n,e)};if(kt(e))e.forEach(r);else if(e instanceof Wr)uo(r,e);else{const t=Pt(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{It(t)}}const o=n,i=zr();return o.tail=i,Zr(t)}(e)}function Gl(e){return eo((t=>{t(e)}))}function $l(e,t,n,r){return eo((o=>{e(tl.Delay((()=>{return tl.Bind((e=t(n),el((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new gi(0,[e])}(e)),onError:e=>t.onSuccess(function(e){return new gi(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])),tl.Zero()):tl.Zero()}));var e})))}))}function Vl(e){!function(e,t){let n,r=new Rl(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new jl(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}(0,(t=>{ol(e)}))}class Wl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["AccessRole"]}}function ql(e){return new Wl(0,[e])}class zl extends ln{constructor(e,t){super(),this.UserName=e,this.Roles=t}}function Jl(e){return null!=(t=e.Roles,fo(new Wl(0,["BankDetails.EditConfig"]),t,{Equals:Jt,GetHashCode:Wt})?po(void 0):void 0);var t}class Yl extends ln{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 Kl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["View","Edit"]}}function Zl(e){return 0!==e.Mode.tag}class Xl extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Ql(){return new Xl(2,[new Ll(0,[void 0])])}function ea(e,t,n,r){let o,i;return 5===n.tag?[new Yl(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,0===n.fields[0].tag&&Jl(e)),Ul()]:6===n.tag?[r,Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:0===n.tag?[new Yl((o=r.Config,new Ol(n.fields[0],o.ConfigOwnership,o.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:1===n.tag?[new Yl((i=r.Config,new Ol(i.MaxAccounts,i.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:2===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),$l((e=>{Vl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Al(n,pl(new il(0,[]),hl((e=Il(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode){const t=Mu(nn(2,Zu(Wo("BankDetails.AdminUI.Service.Model",[],Ol,(()=>[["MaxAccounts",Ko],["ConfigOwnership",function(e,t,n,r){const o=new Bo("BankDetails.AdminUI.Service.ConfigOwnership",[],n,void 0,void 0,(()=>{const e=n.prototype.cases();return[[],[],[]].map(((t,n)=>new Uo(o,n,e[n],t)))}));return o}(0,0,kl)],["AllowPercentageSplit",Yo]])),new wi(1,[]),void 0)),e.responseText);return tl.Return(t)}{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Xl(2,[new Ll(1,[e])])))]:3===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:[r,$l((e=>{Vl(e)}),(e=>Dl(t,e)),r.Config,(e=>new Xl(3,[new Ll(1,[e])])))]:4===n.tag?1===n.fields[0].tag?1===n.fields[0].fields[0].tag?[new Yl(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Ul()]:[new Yl(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Bl(ao([Gl(new Xl(5,[new Kl(0,[])])),Gl(Ql())]))]:[r,$l((e=>{Vl(e)}),(()=>function(e){return t=e.baseUrl,n=e.accessToken,r=e.partnerId,o=e.accountId,tl.Delay((()=>{let e;const i=Al(n,pl(new il(4,[]),hl((e=Il(t),null==o?`${e}/partners/${r}/config`:`${e}/partners/${r}/accounts/${Tt(o)}/config`))));return tl.Bind(i,(e=>{const t=e;if(1===t.tag)return tl.Return(new pi(1,[t.fields[0]]));{const e=t.fields[0];if(200===e.statusCode)return tl.Return(new pi(0,[void 0]));{const t=Ml(e.statusCode,e.responseText);return tl.Return(t)}}}))}));var t,n,r,o}(t)),void 0,(e=>new Xl(4,[new Ll(1,[e])])))]:8===n.tag?[r,Bl(ao([Gl(new Xl(7,[!1])),Gl(new Xl(4,[new Ll(0,[void 0])]))]))]:[new Yl(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),Ul()]}var ta;function na(){return na=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},na.apply(this,arguments)}var ra;function oa(){return oa=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},oa.apply(this,arguments)}var ia;function sa(){return sa=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},sa.apply(this,arguments)}function ua(e,t){return ho.createElement(e,pn(t,1))}const la=ua((function(e){return g("svg",na({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),ta||(ta=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"})))}),eo(new class extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["ClassName"]}}(0,["h-6 w-6 text-red-500"])));const aa=ua((function(e){return g("svg",oa({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),ra||(ra=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"})))}),Xr()),ca=ua((function(e){return g("svg",sa({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),ia||(ia=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"})))}),Xr());let fa=$(null);fa.displayName="OpenClosedContext";var da=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(da||{});function ha(){return fe(fa)}function pa({value:e,children:t}){return St.createElement(fa.Provider,{value:e},t)}function ma(){let e=ue(!1);return Nn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ga(e,...t){e&&t.length>0&&e.classList.add(...t)}function _a(e,...t){e&&t.length>0&&e.classList.remove(...t)}function wa(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let va=$(null);va.displayName="TransitionContext";var ya=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ya||{});let ba=$(null);function Ca(e){return"children"in e?Ca(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ea(e,t){let n=Ln(e),r=ue([]),o=ma(),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;!Ca(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 Sa(){}ba.displayName="NestingContext";let xa=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ta(e){var t;let n={};for(let r of xa)n[r]=null!=(t=e[r])?t:Sa;return n}let ka=wn.RenderStrategy,Oa=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=ha();if(void 0===n&&null!==l&&(n=(l&da.Open)===da.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=Ea((()=>{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(Ca(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(ba.Provider,{value:f},St.createElement(va.Provider,{value:m},yn({ourProps:{...g,as:v,children:St.createElement(Na,{ref:u,...g,...i,beforeEnter:_,beforeLeave:w})},theirProps:{},defaultTag:v,features:ka,visible:"visible"===a,name:"Transition"})))})),Na=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(va);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(ba);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:wa(m.className),enter:wa(l),enterFrom:wa(a),enterTo:wa(c),entered:wa(f),leave:wa(d),leaveFrom:wa(h),leaveTo:wa(p)}),O=function(e){let t=ue(Ta(e));return ie((()=>{t.current=Ta(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=ma(),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(da.Opening),O.current.beforeEnter()},leave:()=>{M.addFlag(da.Closing),O.current.beforeLeave()},idle:()=>{}}))),D=Fn((e=>gn(e,{enter:()=>{M.removeFlag(da.Opening),O.current.afterEnter()},leave:()=>{M.removeFlag(da.Closing),O.current.afterLeave()},idle:()=>{}}))),L=Ea((()=>{E("hidden"),T(g)}),S);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=ma(),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 _a(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ga(e,...t.base,...u,...a),i.nextFrame((()=>{_a(e,...t.base,...u,...a),ga(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,(()=>(_a(e,...t.base,...u),ga(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&&!Ca(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(ba.Provider,{value:L},St.createElement(pa,{value:gn(C,{visible:da.Open,hidden:da.Closed})|M.flags},yn({ourProps:R,theirProps:F,defaultTag:"div",features:ka,visible:"visible"===C,name:"Transition.Child"})))})),Ia=En((function(e,t){let n=null!==fe(va),r=null!==ha();return St.createElement(St.Fragment,null,!n&&r?St.createElement(Oa,{ref:t,...e}):St.createElement(Na,{ref:t,...e}))})),Aa=Object.assign(Oa,{Child:Ia,Root:Oa});class Ma extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","As","Show","Children"]}}class Pa extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Da(e){const t=pn(e,1);return g(Aa.Child,t)}function La(e){return On.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Fa=["[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 Ra,ja=(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))(ja||{}),Ha=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ha||{}),Ua=((Ra=Ua||{})[Ra.Previous=-1]="Previous",Ra[Ra.Next=1]="Next",Ra);var Ba=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ba||{});var Ga=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ga||{});function $a(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 Va=["textarea","input"].join(",");function Wa(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(Fa)).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,Va))&&n}(u)&&u.select(),2}function qa(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 za=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(za||{});function Ja(...e){return ae((()=>La(...e)),[...e])}function Ya(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 Ka(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 Za(e){let t=Fn(e),n=ue(!1);ie((()=>(n.current=!1,()=>{n.current=!0,Xn((()=>{n.current&&t()}))})),[t])}function Xa(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 Qa=(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))(Qa||{});let ec=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=Ja(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=ue(nc.slice());return Ka((([e],[n])=>{!0===n&&!1===e&&Xn((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=nc.slice())}),[e,nc,t]),Fn((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Ka((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&$a(n())}),[t]),Za((()=>{t&&$a(n())}))}({ownerDocument:l},Boolean(16&s));let a=function({ownerDocument:e,container:t,initialFocus:n},r){let o=ue(null),i=ma();return Ka((()=>{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?$a(n.current):Wa(s,ja.First)===Ha.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=ma();Ya(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=Xa(n);t.current instanceof HTMLElement&&s.add(t.current);let u=r.current;if(!u)return;let l=e.target;l&&l instanceof HTMLElement?rc(s,l)?(r.current=l,$a(l)):(e.preventDefault(),e.stopPropagation(),$a(u)):$a(r.current)}),!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:a},Boolean(8&s));let c=function(){let e=ue(0);return qa("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Fn((e=>{let t=n.current;t&&gn(c.current,{[za.Forwards]:()=>{Wa(t,ja.First,{skipElements:[e.relatedTarget]})},[za.Backwards]:()=>{Wa(t,ja.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=Xa(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(rc(t,r)||(h.current?Wa(n.current,gn(c.current,{[za.Forwards]:()=>ja.Next,[za.Backwards]:()=>ja.Previous})|ja.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&$a(e.target)))}};return St.createElement(St.Fragment,null,Boolean(4&s)&&St.createElement(Zn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Kn.Focusable}),yn({ourProps:p,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&St.createElement(Zn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:Kn.Focusable}))})),tc=Object.assign(ec,{features:Qa}),nc=[];function rc(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&&nc[0]!==e.target&&(nc.unshift(e.target),nc=nc.filter((e=>null!=e&&e.isConnected)),nc.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 oc=$(!1);function ic(e){return St.createElement(oc.Provider,{value:e.force},e.children)}let sc=v,uc=v,lc=$(null),ac=$(null),cc=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=Ja(r),s=function(e){let t=fe(oc),n=fe(lc),r=Ja(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(ac),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]),Za((()=>{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:sc,name:"Portal"}),u):null})),fc=En((function(e,t){let{target:n,...r}=e,o={ref:jn(t)};return St.createElement(lc.Provider,{value:n},yn({ourProps:o,theirProps:r,defaultTag:uc,name:"Popover.Group"}))})),dc=Object.assign(cc,{Group:fc}),hc=$((()=>{}));hc.displayName="StackContext";var pc=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(pc||{});function mc({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=fe(hc),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(hc.Provider,{value:s},e)}function gc(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:_c,useEffect:wc,useLayoutEffect:vc,useDebugValue:yc}=t;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const bc=(e=>e.useSyncExternalStore)(t);function Cc(){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 Ec(){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 Sc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let xc=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:Sc(n)},o=[Ec(),Cc(),{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)}});xc.subscribe((()=>{let e=xc.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)&&xc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&xc.dispatch("TEARDOWN",n)}}));let Tc=new Map,kc=new Map;function Oc(e,t=!0){Nn((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=kc.get(r))?n:0;return kc.set(r,o+1),0!==o||(Tc.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=kc.get(r))?e:1;if(1===t?kc.delete(r):kc.set(r,t-1),1!==t)return;let n=Tc.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,Tc.delete(r))}}),[e,t])}var Nc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nc||{}),Ic=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ic||{});let Ac={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Mc=$(null);function Pc(e){let t=fe(Mc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pc),t}return t}function Dc(e,t){return gn(t.type,Ac,e,t)}Mc.displayName="DialogContext";let Lc=wn.RenderStrategy|wn.Static,Fc=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=ha();void 0===i&&null!==d&&(i=(d&da.Open)===da.Open);let h=ue(null),p=jn(h,t),m=Ja(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(Dc,{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(Mc),[T,k]=function(){let e=fe(ac),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(ac.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=Ja(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(Zn,{features:Kn.Hidden,ref:o})}),[o,n])}}({portals:T,defaultContainers:[null!=(n=v.panelRef.current)?n:h.current]}),A=S?"parent":"leaf",M=null!==d&&(d&da.Closing)===da.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]);Oc(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]);Oc(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=La(e))?void 0:n.body)&&gn(t,{0:()=>e.matches(Fa),1(){let t=e;for(;null!==t;){if(t.matches(Fa))return!0;t=t.parentElement}return!1}})}(i,Ba.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}ie((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ue(null);gc("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),gc("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),gc("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),gc("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),qa("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}(O,b,!(!E||S));let R=!(S||0!==w);Ya(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 bc(e.subscribe,e.getSnapshot,e.getSnapshot)}(xc),o=e?r.get(e):void 0,i=!!o&&o.count>0;Nn((()=>{if(e&&t)return xc.dispatch("PUSH",e,n),()=>xc.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(mc,{type:"Dialog",enabled:0===w,element:h,onUpdate:Fn(((e,t)=>{"Dialog"===t&&gn(e,{[pc.Add]:()=>f((e=>e+1)),[pc.Remove]:()=>f((e=>e-1))})}))},St.createElement(ic,{force:!0},St.createElement(dc,null,St.createElement(Mc.Provider,{value:U},St.createElement(dc.Group,{target:h},St.createElement(ic,{force:!1},St.createElement(H,{slot:B,name:"Dialog.Description"},St.createElement(tc,{initialFocus:u,containers:O,features:E?gn(A,{parent:tc.features.RestoreFocus,leaf:tc.features.All&~tc.features.FocusLock}):tc.features.None},St.createElement(k,null,yn({ourProps:G,theirProps:a,slot:B,defaultTag:"div",features:Lc,visible:0===w,name:"Dialog"}))))))))),St.createElement(I,null))})),Rc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Pc("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(ic,{force:!0},St.createElement(dc,null,yn({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),jc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Pc("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"})})),Hc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Pc("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"})})),Uc=En((function(e,t){let n=Mn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Pc("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"})})),Bc=Object.assign(Fc,{Backdrop:Rc,Panel:jc,Overlay:Hc,Title:Uc,Description:zn});class Gc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function $c(e){const t=pn(e,1);return g(Bc,t)}class Vc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Key","ClassName","Children"]}}function Wc(e){const t=pn(e,1);return g(Bc.Panel,t)}class qc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["As","Key","ClassName","Children"]}}function zc(e){const t=pn(e,1);return g(Bc.Title,t)}class Jc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Primary","Warning"]}}class Yc extends ln{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 Kc(e,t,n,r,o){const i=function(e,t,n,r){const o=0|Xt(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|Xt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return ko((()=>{return t=i,n=e,xo((()=>function(e,t){let n,r=t;return Eo((()=>{if(null!=n){const e=n[0];return n[1],e}return vo()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Zc extends un{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Xc{constructor(e){this.state=new Zc(0,[Gr(new Array(Qt(Kt,e,10)),0,Qt(Kt,e,10),null),0])}}function Qc(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 Zc(0,[o,n]):new Zc(1,[o,n,i]),po(o[r])}}class ef extends ln{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 tf(e,t){const n=t.init(e),r=n[0],o=new Xc(10);let i=!1,s=r;const u=on(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 Zc(1,l===s?[(r=s,o=u,Array.from(ko((()=>Po(Ho(r,o),ko((()=>{return Po((e=r,t=o,Mo((()=>To(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return po(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(wo+"\\nParameter name: source")}}),(e=>{It(e)}))),ko((()=>{return t=e=>Io(null),e=o.length,n=Kc(0,1,e,0,((e,t)=>e+t)),ko((()=>Oo(Ro(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 Zc(1,[o,i,r])}var r,o}(o,e);else{i=!0;let r=po(e);for(;null!=r;){const e=Tt(r);try{const n=t.update(e,s),r=n[0];t.setState(r,u),Hl(u,n[1]),s=r}catch(r){t.onError([(n=Mr(Ir("Unable to process the message: %A")),n(e)),r])}r=Qc(o)}i=!1}}]);t.setState(r,u),Hl(u,co((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Ul()}})(),n[1]))}const nf=(e,t)=>{ie((()=>{const t=e();return()=>{t.Dispose()}}),t)};function rf(e){return ho.useState(e)}class of{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function sf(){return new of}function uf(e,t,n,r){tf(t,function(e,t){return new ef(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=po(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 lf(e,t,n){const r=rf(sf)[0],o=rf((()=>uf(e,t,r))),i=o[1];return function(e,t){nf(e,t)}((()=>{return function(e){return e.hasDisposedOnce}(r)&&i(uf(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}),mo(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)}]}function af(){return(af=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 cf(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 ff(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(cf,af({},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[df(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(mf,{name:a},l):r[i]=l}var c=n?g(mf,null,r):r;return g(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:U)(this._vdom,this._root)}function df(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function hf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[df(e)]=n,this._vdom=G(this._vdom,r),U(this._vdom,this._root)}}function pf(){U(this._vdom=null,this._root)}function mf(e,t){var n=this;return g("slot",af({},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 gf(e){return 2===e.tag?"":`(${e})`}function _f(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return g("div",en(ao([["className","mt-3"],(t=[cr(eo(new ar(0,[[sr(ao([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(ao([new ur(0,["ml-3"]),new ur(1,[[g("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))]])))],["children",ho.Children.toArray(Array.from(t))])])))}function wf(e){let t;return g("div",en(ao([["className","mt-4"],(t=[g("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${gf(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",ho.Children.toArray(Array.from(t))])])))}function vf(e){let t;return g("div",en(ao([["className","text-sm font-medium text-gray-900 my-5"],(t=[g("span",{children:[e.msg]})],["children",ho.Children.toArray(Array.from(t))])])))}function yf(e,t,n){let r,o;const i=2===e.tag&&t?"":"hidden";return g("div",en(ao([["className","flex-1"],(r=[g("div",en(ao([["className","flex flex-row space-x-2"],(o=Ao(ko((()=>t?Po(Io(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 Xl(5,[new Kl(1,[])]))},children:ho.Children.toArray([aa])})),ko((()=>Io(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 Xl(7,[!0]))},children:ho.Children.toArray([ca])}))))):Po(Io(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 Xl(3,[new Ll(0,[void 0])]))}})),ko((()=>Io(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 Xl(6,[]))}})))))))),["children",ho.Children.toArray(Array.from(o))])])))],["children",ho.Children.toArray(Array.from(r))])])))}function bf(e){let t;return g("div",en(ao([["className","flex-1"],(t=[g("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${gf(e)}`})],["children",ho.Children.toArray(Array.from(t))])])))}function Cf(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 pi(1,["Failed to identify the user"]);else{let e;const o=n[1];e=atob(o),t=Mu(nn(2,Zu(qo(["Name",Jo],["Roles",(r=Jo,new Bo("[]",[r]))]),new wi(1,[]),void 0)),e)}var r;if(1===t.tag)return new zl(void 0,Xr());{const e=t.fields[0];return new zl(e.Name,function(e,t){const n=zr(),r=io(((t,n)=>{const r=new Wr(e(n),void 0);return t.tail=r,r}),n,t),o=zr();return r.tail=o,Zr(n)}(ql,ao(e.Roles)))}}(e.accessToken),r=(o=e.backendUrl,i=e.accessToken,s=e.partnerId,u=e.accountId,new Pl(o,i,s,u));var o,i,s,u;const l=(a=function(e){let t;return[(t=new Yl(new Ol(0,new kl(1,[]),!1),void 0,!0,new Kl(0,[]),!1,!1),new Yl(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,Jl(e))),Gl(Ql())]}(n),c=(e,t)=>ea(n,r,e,t),function(e,t){return lf(e,void 0,t)}((()=>function(e,t,n){return new ef(e,t,(e=>Ul()),n,nn(2,(e=>{const t=on(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(po(t),n)}),nn(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(vf,{msg:p}):null,null!=(m=n.Roles,fo(new Wl(0,["BankDetails.Access"]),m,{Equals:Jt,GetHashCode:Wt})?po(void 0):void 0)?f.IsLoading?null==f.Error?g("div",{children:["Please wait"]}):h:g("div",en(ao([["className","mt-5"],(t=Ao(ko((()=>{let e;return Po(Io(g("div",en(ao([["className","flex"],(e=[bf(f.Config.ConfigOwnership),yf(f.Config.ConfigOwnership,f.ShowEditButton,d)],["children",ho.Children.toArray(Array.from(e))])])))),ko((()=>Po(Io(g(wf,{configOwnership:f.Config.ConfigOwnership,handleMaxAccountChanged:e=>{d(new Xl(0,[e]))},readOnly:!Zl(f),selected:f.Config.MaxAccounts})),ko((()=>Po(Io(g(_f,{isChecked:f.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:Zl(f),onChange:e=>{d(new Xl(1,[e]))}})),ko((()=>Po(f.ShowConfirmationDialog?Io(function(e){return function(e){let t,n,r,o;return function(e){const t=pn(e,1);return g(Aa.Root,t)}(ao([new Ma(0,["1"]),new Ma(2,[e.show]),new Ma(3,[[$c(ao([new Gc(1,["1"]),new Gc(0,["div"]),new Gc(2,["relative z-10"]),new Gc(4,[e.cancelButtonClick]),new Gc(5,[[Da(ao([new Pa(0,["1"]),new Pa(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new Pa(4,["ease-out duration-300"]),new Pa(5,["opacity-0"]),new Pa(6,["opacity-100"]),new Pa(7,["ease-in duration-200"]),new Pa(8,["opacity-100"]),new Pa(9,["opacity-0"])])),g("div",en(ao([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[g("div",en(ao([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Da(ao([new Pa(0,["1"]),new Pa(4,["ease-out duration-300"]),new Pa(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Pa(6,["opacity-100 translate-y-0 sm:scale-100"]),new Pa(7,["ease-in duration-200"]),new Pa(8,["opacity-100 translate-y-0 sm:scale-100"]),new Pa(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new Pa(10,[[Wc(ao([new Vc(0,["1"]),new Vc(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 Vc(2,[[g("div",en(ao([["key","1"],["className","sm:flex sm:items-start"],(r=Ao(ko((()=>{let t,n;return Po((t=e.dialogIcon,null==t?No():(n=t,Io(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:ho.Children.toArray([n])})))),ko((()=>{let t,n;return Io(g("div",en(ao([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(t=[zc(ao([new qc(1,["1"]),new qc(0,["h3"]),new qc(2,["text-lg font-medium leading-6 text-gray-900"]),new qc(3,[[g("span",{children:e.title,key:"1"})]])])),g("div",en(ao([["className","mt-2"],["key","2"],(n=[g("p",{className:"text-sm text-gray-500",children:e.message})],["children",ho.Children.toArray(Array.from(n))])])))],["children",ho.Children.toArray(Array.from(t))])]))))})))}))),["children",ho.Children.toArray(Array.from(r))])]))),g("div",en(ao([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Ao(ko((()=>Po(Io(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})),ko((()=>Io(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",ho.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",ho.Children.toArray(Array.from(n))])])))],["children",ho.Children.toArray(Array.from(t))])])))]])]))]])]))}(new Yc(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",la,"Reset",(()=>{e(new Xl(8,[]))}),new Jc(1,[]),"Cancel",(()=>{e(new Xl(7,[!1]))})))}(d)):No(),ko((()=>Io(h)))))))))))))}))),["children",ho.Children.toArray(Array.from(t))])]))):g(vf,{msg:"You do not have the appropriate permissions to view this information"});var m}var Ef;Ef=e=>g(Cf,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=ff,o.prototype.attributeChangedCallback=hf,o.prototype.disconnectedCallback=pf,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)}(Ef)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-bank-details",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Flare Superhero Bank Details Components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [