@flarehr/apollo-super-selection-app 0.4.58064 → 0.4.58157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var Zn,O,ia,Wt,Io,aa,bs,Vs,ys,Ss,ua,zn={},la=[],Gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ir=Array.isArray;function yt(e,t){for(var n in t)e[n]=t[n];return e}function ca(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Zn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return Rn(e,i,r,s,null)}function Rn(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++ia,__i:-1,__u:0};return s==null&&O.vnode!=null&&O.vnode(o),o}function da(){return{current:null}}function Ee(e){return e.children}function et(e,t){this.props=e,this.context=t}function gn(e,t){if(t==null)return e.__?gn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?gn(e):null}function fa(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return fa(e)}}function vs(e){(!e.__d&&(e.__d=!0)&&Wt.push(e)&&!vr.__r++||Io!==O.debounceRendering)&&((Io=O.debounceRendering)||aa)(vr)}function vr(){var e,t,n,r,s,o,i,a;for(Wt.sort(bs);e=Wt.shift();)e.__d&&(t=Wt.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=yt({},s)).__v=s.__v+1,O.vnode&&O.vnode(r),Os(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??gn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,pa(i,r,a),r.__e!=o&&fa(r)),Wt.length>t&&Wt.sort(bs));vr.__r=0}function ma(e,t,n,r,s,o,i,a,u,l,f){var c,w,h,p,_,b=r&&r.__k||la,g=t.length;for(n.__d=u,jl(n,t,b),u=n.__d,c=0;c<g;c++)(h=n.__k[c])!=null&&(w=h.__i===-1?zn:b[h.__i]||zn,h.__i=c,Os(e,h,w,s,o,i,a,u,l,f),p=h.__e,h.ref&&w.ref!=h.ref&&(w.ref&&Ls(w.ref,null,h),f.push(h.ref,h.__c||p,h)),_==null&&p!=null&&(_=p),65536&h.__u||w.__k===h.__k?u=ha(h,u,e):typeof h.type=="function"&&h.__d!==void 0?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=u,n.__e=_}function jl(e,t,n){var r,s,o,i,a,u=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<u;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Rn(null,s,null,null,null):Ir(s)?Rn(Ee,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Rn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,o=null,(a=s.__i=Wl(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?c--:a==i+1?c++:(a>i?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<l;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=gn(o)),wa(o,o))}function ha(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=ha(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=gn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ft(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ir(e)?e.some(function(n){Ft(n,t)}):t.push(e)),t}function Wl(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,u=t[n];if(u===null||u&&s==u.key&&o===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((u=t[i])&&!(131072&u.__u)&&s==u.key&&o===u.type)return i;i--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&s==u.key&&o===u.type)return a;a++}}return-1}function Do(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Gl.test(t)?n:n+"px"}function lr(e,t,n,r,s){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Do(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Do(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Vs,e.addEventListener(t,o?Ss:ys,o)):e.removeEventListener(t,o?Ss:ys,o);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Bo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Vs++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Os(e,t,n,r,s,o,i,a,u,l){var f,c,w,h,p,_,b,g,A,v,Y,fe,qe,Rt,Ut,Et,Fe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof Fe=="function")try{if(g=t.props,A="prototype"in Fe&&Fe.prototype.render,v=(f=Fe.contextType)&&r[f.__c],Y=f?v?v.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(A?t.__c=c=new Fe(g,Y):(t.__c=c=new et(g,Y),c.constructor=Fe,c.render=Jl),v&&v.sub(c),c.props=g,c.state||(c.state={}),c.context=Y,c.__n=r,w=c.__d=!0,c.__h=[],c._sb=[]),A&&c.__s==null&&(c.__s=c.state),A&&Fe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=yt({},c.__s)),yt(c.__s,Fe.getDerivedStateFromProps(g,c.__s))),h=c.props,p=c.state,c.__v=t,w)A&&Fe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),A&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(A&&Fe.getDerivedStateFromProps==null&&g!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(g,Y),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(g,c.__s,Y)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ur){ur&&(ur.__=t)}),fe=0;fe<c._sb.length;fe++)c.__h.push(c._sb[fe]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(g,c.__s,Y),A&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,p,_)})}if(c.context=Y,c.props=g,c.__P=e,c.__e=!1,qe=O.__r,Rt=0,A){for(c.state=c.__s,c.__d=!1,qe&&qe(t),f=c.render(c.props,c.state,c.context),Ut=0;Ut<c._sb.length;Ut++)c.__h.push(c._sb[Ut]);c._sb=[]}else do c.__d=!1,qe&&qe(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Rt<25);c.state=c.__s,c.getChildContext!=null&&(r=yt(yt({},r),c.getChildContext())),A&&!w&&c.getSnapshotBeforeUpdate!=null&&(_=c.getSnapshotBeforeUpdate(h,p)),ma(e,Ir(Et=f!=null&&f.type===Ee&&f.key==null?f.props.children:f)?Et:[Et],t,n,r,s,o,i,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),b&&(c.__E=c.__=null)}catch(ur){if(t.__v=null,u||o!=null){for(t.__u|=u?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;O.__e(ur,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ql(n.__e,t,n,r,s,o,i,u,l);(f=O.diffed)&&f(t)}function pa(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ls(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){O.__e(o,s.__v)}})}function ql(e,t,n,r,s,o,i,a,u){var l,f,c,w,h,p,_,b=n.props,g=t.props,A=t.type;if(A==="svg"?s="http://www.w3.org/2000/svg":A==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!A&&(A?h.localName===A:h.nodeType===3)){e=h,o[l]=null;break}}if(e==null){if(A===null)return document.createTextNode(g);e=document.createElementNS(s,A,g.is&&g),a&&(O.__m&&O.__m(t,o),a=!1),o=null}if(A===null)b===g||a&&e.data===g||(e.data=g);else{if(o=o&&Zn.call(e.childNodes),b=n.props||zn,!a&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(h=e.attributes[l]).name]=h.value;for(l in b)if(h=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=h;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;lr(e,l,null,h,s)}}for(l in g)h=g[l],l=="children"?w=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?p=h:l=="checked"?_=h:a&&typeof h!="function"||b[l]===h||lr(e,l,h,b[l],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ma(e,Ir(w)?w:[w],t,n,r,A==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&gn(n,0),a,u),o!=null)for(l=o.length;l--;)ca(o[l]);a||(l="value",A==="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[l]||A==="progress"&&!p||A==="option"&&p!==b[l])&&lr(e,l,p,b[l],s),l="checked",_!==void 0&&_!==e[l]&&lr(e,l,_,b[l],s))}return e}function Ls(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){O.__e(s,n)}}function wa(e,t,n){var r,s;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ls(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){O.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&wa(r[s],t,n||typeof e.type!="function");n||ca(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Jl(e,t,n){return this.constructor(e,n)}function Ot(e,t,n){var r,s,o,i;O.__&&O.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Os(t,e=(!r&&n||t).__k=m(Ee,null,[e]),s||zn,zn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Zn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),pa(o,e,i)}function Ps(e,t){Ot(e,t,Ps)}function Rs(e,t,n){var r,s,o,i,a=yt({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Zn.call(arguments,2):n),Rn(e.type,a,r||e.key,s||e.ref,null)}function _a(e,t){var n={__c:t="__cC"+ua++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(a){a.__e=!0,vs(a)})},this.sub=function(i){s.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Zn=la.slice,O={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},ia=0,et.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=yt({},this.state),typeof e=="function"&&(e=e(yt({},n),this.props)),e&&yt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),vs(this))},et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),vs(this))},et.prototype.render=Ee,Wt=[],aa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bs=function(e,t){return e.__v.__b-t.__v.__b},vr.__r=0,Vs=0,ys=Bo(!1),Ss=Bo(!0),ua=0;var xt,J,os,Vo,bn=0,ga=[],te=O,Oo=te.__b,Lo=te.__r,Po=te.diffed,Ro=te.__c,Uo=te.unmount,Ho=te.__;function tn(e,t){te.__h&&te.__h(J,e,bn||t),bn=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xn(e){return bn=1,Dr(ba,e)}function Dr(e,t,n){var r=tn(xt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ba(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var s=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(w){return!!w.__c});if(f.every(function(w){return!w.__N}))return!o||o.call(this,a,u,l);var c=!1;return f.forEach(function(w){if(w.__N){var h=w.__[0];w.__=w.__N,w.__N=void 0,h!==w.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!o||o.call(this,a,u,l))};J.u=!0;var o=J.shouldComponentUpdate,i=J.componentWillUpdate;J.componentWillUpdate=function(a,u,l){if(this.__e){var f=o;o=void 0,s(a,u,l),o=f}i&&i.call(this,a,u,l)},J.shouldComponentUpdate=s}return r.__N||r.__}function An(e,t){var n=tn(xt++,3);!te.__s&&qs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Nn(e,t){var n=tn(xt++,4);!te.__s&&qs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function Us(e){return bn=5,Kn(function(){return{current:e}},[])}function Hs(e,t,n){bn=6,Nn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Kn(e,t){var n=tn(xt++,7);return qs(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function zs(e,t){return bn=8,Kn(function(){return e},t)}function Gs(e){var t=J.context[e.__c],n=tn(xt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function js(e,t){te.useDebugValue&&te.useDebugValue(t?t(e):e)}function Zl(e){var t=tn(xt++,10),n=xn();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ws(){var e=tn(xt++,11);if(!e.__){for(var t=J.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Kl(){for(var e;e=ga.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gr),e.__H.__h.forEach(Fs),e.__H.__h=[]}catch(t){e.__H.__h=[],te.__e(t,e.__v)}}te.__b=function(e){J=null,Oo&&Oo(e)},te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ho&&Ho(e,t)},te.__r=function(e){Lo&&Lo(e),xt=0;var t=(J=e.__c).__H;t&&(os===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(gr),t.__h.forEach(Fs),t.__h=[],xt=0)),os=J},te.diffed=function(e){Po&&Po(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ga.push(t)!==1&&Vo===te.requestAnimationFrame||((Vo=te.requestAnimationFrame)||Yl)(Kl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),os=J=null},te.__c=function(e,t){t.some(function(n){try{n.__h.forEach(gr),n.__h=n.__h.filter(function(r){return!r.__||Fs(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],te.__e(r,n.__v)}}),Ro&&Ro(e,t)},te.unmount=function(e){Uo&&Uo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{gr(r)}catch(s){t=s}}),n.__H=void 0,t&&te.__e(t,n.__v))};var zo=typeof requestAnimationFrame=="function";function Yl(e){var t,n=function(){clearTimeout(r),zo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);zo&&(t=requestAnimationFrame(n))}function gr(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function Fs(e){var t=J;e.__c=e.__(),J=t}function qs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ba(e,t){return typeof t=="function"?t(e):t}function ya(e,t){for(var n in t)e[n]=t[n];return e}function Cs(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fr(e,t){this.props=e,this.context=t}function Sa(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:Cs(this.props,s)}function r(s){return this.shouldComponentUpdate=n,m(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fr.prototype=new et).isPureReactComponent=!0,Fr.prototype.shouldComponentUpdate=function(e,t){return Cs(this.props,e)||Cs(this.state,t)};var Go=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Go&&Go(e)};var Ql=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function va(e){function t(n){var r=ya({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ql,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var jo=function(e,t){return e==null?null:Ft(Ft(e).map(t))},Fa={map:jo,forEach:jo,count:function(e){return e?Ft(e).length:0},only:function(e){var t=Ft(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ft},Xl=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Xl(e,t,n,r)};var Wo=O.unmount;function Ca(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ya({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ca(r,t,n)})),e}function xa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xa(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Un(){this.__u=0,this.t=null,this.__b=null}function Aa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Na(e){var t,n,r;function s(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return m(n,o)}return s.displayName="Lazy",s.__f=!0,s}function ln(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Wo&&Wo(e)},(Un.prototype=new et).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Aa(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=xa(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Un.prototype.componentWillUnmount=function(){this.t=[]},Un.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]=Ca(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&m(Ee,null,e.fallback);return s&&(s.__u&=-33),[m(Ee,null,t.__a?null:e.children),s]};var qo=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!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 ec(e){return this.getChildContext=function(){return e.context},e.children}function tc(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ot(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:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ot(m(ec,{context:t.context},e.__v),t.l)}function ka(e,t){var n=m(tc,{__v:e,i:t});return n.containerInfo=t,n}(ln.prototype=new et).__a=function(e){var t=this,n=Aa(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),qo(t,e,r)):s()};n?n(o):o()}},ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ft(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ln.prototype.componentDidUpdate=ln.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){qo(e,n,t)})};var Ea=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,nc=/^(?: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]/,rc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sc=/[A-Z0-9]/g,oc=typeof document<"u",ic=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ma(e,t,n){return t.__k==null&&(t.textContent=""),Ot(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ta(e,t,n){return Ps(e,t),typeof n=="function"&&n(),e?e.__c:null}et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Jo=O.event;function ac(){}function uc(){return this.cancelBubble}function lc(){return this.defaultPrevented}O.event=function(e){return Jo&&(e=Jo(e)),e.persist=ac,e.isPropagationStopped=uc,e.isDefaultPrevented=lc,e.nativeEvent=e};var Js,cc={enumerable:!1,configurable:!0,get:function(){return this.class}},Zo=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||oc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var u=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?i="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||ic(n.type)?u==="onfocus"?i="onfocusin":u==="onblur"?i="onfocusout":rc.test(i)&&(i=u):u=i="oninput":o&&nc.test(i)?i=i.replace(sc,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&s[i=u]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Ft(n.children).forEach(function(l){l.props.selected=s.value.indexOf(l.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Ft(n.children).forEach(function(l){l.props.selected=s.multiple?s.defaultValue.indexOf(l.props.value)!=-1:s.defaultValue==l.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",cc)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Ea,Zo&&Zo(e)};var Ko=O.__r;O.__r=function(e){Ko&&Ko(e),Js=e.__c};var Yo=O.diffed;O.diffed=function(e){Yo&&Yo(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Js=null};var $a={ReactCurrentDispatcher:{current:{readContext:function(e){return Js.__n[e.__c].props.value},useCallback:zs,useContext:Gs,useDebugValue:js,useDeferredValue:Ks,useEffect:An,useId:Ws,useImperativeHandle:Hs,useInsertionEffect:Qs,useLayoutEffect:Nn,useMemo:Kn,useReducer:Dr,useRef:Us,useState:xn,useSyncExternalStore:Xs,useTransition:Ys}}},dc="18.3.1";function Ia(e){return m.bind(null,e)}function Yn(e){return!!e&&e.$$typeof===Ea}function Da(e){return Yn(e)&&e.type===Ee}function Ba(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Va(e){return Yn(e)?Rs.apply(null,arguments):e}function Oa(e){return!!e.__k&&(Ot(null,e),!0)}function La(e){return e&&(e.base||e.nodeType===1&&e)||null}var Pa=function(e,t){return e(t)},Ra=function(e,t){return e(t)},Ua=Ee;function Zs(e){e()}function Ks(e){return e}function Ys(){return[!1,Zs]}var Qs=Nn,Ha=Yn;function Xs(e,t){var n=t(),r=xn({h:{__:n,v:t}}),s=r[0].h,o=r[1];return Nn(function(){s.__=n,s.v=t,is(s)&&o({h:s})},[e,n,t]),An(function(){return is(s)&&o({h:s}),e(function(){is(s)&&o({h:s})})},[e]),n}function is(e){var t,n,r=e.v,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var za={useState:xn,useId:Ws,useReducer:Dr,useEffect:An,useLayoutEffect:Nn,useInsertionEffect:Qs,useTransition:Ys,useDeferredValue:Ks,useSyncExternalStore:Xs,startTransition:Zs,useRef:Us,useImperativeHandle:Hs,useMemo:Kn,useCallback:zs,useContext:Gs,useDebugValue:js,version:"18.3.1",Children:Fa,render:Ma,hydrate:Ta,unmountComponentAtNode:Oa,createPortal:ka,createElement:m,createContext:_a,createFactory:Ia,cloneElement:Va,createRef:da,Fragment:Ee,isValidElement:Yn,isElement:Ha,isFragment:Da,isMemo:Ba,findDOMNode:La,Component:et,PureComponent:Fr,memo:Sa,forwardRef:va,flushSync:Ra,unstable_batchedUpdates:Pa,StrictMode:Ua,Suspense:Un,SuspenseList:ln,lazy:Na,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$a};const fc=Object.freeze(Object.defineProperty({__proto__:null,Children:Fa,Component:et,Fragment:Ee,PureComponent:Fr,StrictMode:Ua,Suspense:Un,SuspenseList:ln,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$a,cloneElement:Va,createContext:_a,createElement:m,createFactory:Ia,createPortal:ka,createRef:da,default:za,findDOMNode:La,flushSync:Ra,forwardRef:va,hydrate:Ta,isElement:Ha,isFragment:Da,isMemo:Ba,isValidElement:Yn,lazy:Na,memo:Sa,render:Ma,startTransition:Zs,unmountComponentAtNode:Oa,unstable_batchedUpdates:Pa,useCallback:zs,useContext:Gs,useDebugValue:js,useDeferredValue:Ks,useEffect:An,useErrorBoundary:Zl,useId:Ws,useImperativeHandle:Hs,useInsertionEffect:Qs,useLayoutEffect:Nn,useMemo:Kn,useReducer:Dr,useRef:Us,useState:xn,useSyncExternalStore:Xs,useTransition:Ys,version:dc},Symbol.toStringTag,{value:"Module"})),mc=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-l-4{border-left-width:4px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-primary-focus:focus{--tw-ring-color: var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}`;function tt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function hc(e){return e!=null&&typeof e.GetEnumerator=="function"}function pc(e){return e!=null&&typeof e.CompareTo=="function"}function wc(e){return e!=null&&typeof e.Equals=="function"}function _c(e){return e!=null&&typeof e.GetHashCode=="function"}function xs(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){xs(e)&&e.Dispose()}function ve(){return null}function Cr(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class gc{constructor(t){this.iter=t,this.current=ve()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function se(e){return hc(e)?e.GetEnumerator():new gc(e[Symbol.iterator]())}function Br(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class bc{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function G(e,t){return e.toString(10).padStart(t,"0")}function yc(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Qo(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Sc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Jt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Bt{static id(t){return Bt.idMap.has(t)||Bt.idMap.set(t,++Bt.count),Bt.idMap.get(t)}}Bt.idMap=new WeakMap;Bt.count=0;function eo(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function gt(e){return e*2654435761|0}function vc(e){return eo(e.toString(32))}function Qn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function Fc(e){return e.getTime()}function Cc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=At(e[r]);return Qn(n)}function At(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return gt(e);case"bigint":return vc(e);case"string":return eo(e);default:{if(_c(e))return e.GetHashCode();if(tt(e))return Cc(e);if(e instanceof Date)return Fc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>At(r));return Qn(n)}else return gt(Bt.id(e))}}}function As(e,t,n){if(e==null)return t==null;if(t==null||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 Ga(e,t){return As(e,t,de)}function xc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!de(e[n[s]],t[r[s]]))return!1;return!0}function de(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:wc(e)?e.Equals(t):tt(e)?tt(t)&&Ga(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ja(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&xc(e,t)}function ja(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Qo(e),r=t.getTime()+Qo(t)),n===r?0:n<r?-1:1}function Xn(e,t){return e===t?0:e<t?-1:1}function Ac(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Wa(e,t){return Ac(e,t,Ge)}function Nc(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=Ge(e[i],t[i]),o!==0)return o}return 0}function Ge(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:pc(e)?e.CompareTo(t):tt(e)?tt(t)?Wa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ja(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Nc(e,t):-1}function F(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function kc(e){tt(e)?e.splice(0):e.clear()}const Vr=new WeakMap;function j(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Vr.set(t,e),t}function L(e){return Vr.get(e)??(t=>n=>e(t,n))}function Ns(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Vr.set(t,e),t}function as(e){return Vr.get(e)??(t=>n=>r=>e(t,n,r))}function Ec(e){let t=0,n="[";for(const r of e){if(t===0)n+=nt(r);else if(t===100){n+="; ...";break}else n+="; "+nt(r);t++}return n+"]"}function nt(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Ec(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+nt(o,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Mc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=nt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>nt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class N{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Mc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>At(n));return t.splice(0,0,gt(this.tag)),Qn(t)}Equals(t){return this===t?!0:Cr(this,t)&&this.tag===t.tag?Ga(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Cr(this,t)?this.tag===t.tag?Wa(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Tc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function $c(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+nt(n)).join(`
3
- `)+" }"}function Ic(e){const t=Object.values(e).map(n=>At(n));return Qn(t)}function Dc(e,t){if(e===t)return!0;if(Cr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!de(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Bc(e,t){if(e===t)return 0;if(Cr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=Ge(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class I{toJSON(){return Tc(this)}toString(){return $c(this)}GetHashCode(){return Ic(this)}Equals(t){return Dc(this,t)}CompareTo(t){return Bc(this,t)}}class We{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Vc{constructor(t){this.message=t}}function Oc(e){return e instanceof Vc||e instanceof Error}function Lc(e){return e instanceof Promise}function xr(e){return Oc(e)||Lc(e)?e:new Error(String(e))}const to=nt(mc),y=za,kn=Symbol("numeric");function qa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[kn])}function Pc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ks(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[kn]().multiply(t)}function br(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[kn]().toFixed(t)}function Ar(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[kn]().toPrecision(t)}function Nr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[kn]().toExponential(t)}function kr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[kn]().toHex()}const Rc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Hc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zc=["January","February","March","April","May","June","July","August","September","October","November","December"];function $e(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function Xo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Gc(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function no(e,t,n){let r=0,s=0,o="";const i=n?er(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=$e(t,r,"d"),r+=s,s){case 1:o+=ti(i);break;case 2:o+=G(ti(i),2);break;case 3:o+=Rc[si(i)];break;case 4:o+=Uc[si(i)];break}break;case"f":if(s=$e(t,r,"f"),r+=s,s<=3){const b=10**(3-s);o+=G(Math.floor(dr(i)/b),s)}else s<=7&&(o+=(""+dr(i)).padEnd(s,"0"));break;case"F":if(s=$e(t,r,"F"),r+=s,s<=3){const b=10**(3-s),g=Math.floor(dr(i)/b);g!=0&&(o+=G(g,s))}else if(s<=7){const b=dr(i);b!=0&&(o+=G(b,3))}break;case"g":s=$e(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=$e(t,r,"h"),r+=s,s){case 1:o+=cr(i)%12;break;case 2:o+=G(cr(i)%12,2);break}break;case"H":switch(s=$e(t,r,"H"),r+=s,s){case 1:o+=cr(i);break;case 2:o+=G(cr(i),2);break}break;case"K":switch(s=$e(t,r,"K"),r+=s,s){case 1:switch(ei(i)){case 1:o+="Z";break;case 2:o+=mn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=$e(t,r,"m"),r+=s,s){case 1:o+=ni(i);break;case 2:o+=G(ni(i),2);break}break;case"M":switch(s=$e(t,r,"M"),r+=s,s){case 1:o+=fr(i);break;case 2:o+=G(fr(i),2);break;case 3:o+=Hc[fr(i)-1];break;case 4:o+=zc[fr(i)-1];break}break;case"s":switch(s=$e(t,r,"s"),r+=s,s){case 1:o+=ri(i);break;case 2:o+=G(ri(i),2);break}break;case"t":switch(s=$e(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=$e(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=G(i.getFullYear()%100,2);break;case 3:o+=G(i.getFullYear(),3);break;case 4:o+=G(i.getFullYear(),4);break;case 5:o+=G(i.getFullYear(),5);break}break;case"z":s=$e(t,r,"z"),r+=s;let u="";switch(ei(i)){case 1:u="+00:00";break;case 2:u=mn(i.getTimezoneOffset()*-6e4);break;case 0:u=mn(Xc(i).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(s){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${G(f,2)}`;break;default:o+=`${l}${G(f,2)}:${G(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[w,h]=Gc(t,r);o+=w,r+=h;break;case"%":const p=Xo(t,r);if(p>=0&&p!==37)r+=2,o+=no(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const _=Xo(t,r);if(_>=0)r+=2,o+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function ei(e){return e.kind||0}function mn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+G(n,2)+":"+G(r,2)}function Er(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function jc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return G(e.getFullYear(),4)+"-"+G(e.getMonth()+1,2)+"-"+G(e.getDate(),2)+"T"+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)+(n?mn(e.getTimezoneOffset()*-6e4):"")}}function Wc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+mn(t)}function qc(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+mn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Er(n,"first");case"T":case"t":return Er(n,"second");case"O":case"o":return Wc(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return no(n,t,!0)}function Jc(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Er(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Er(e,"second"):e.toLocaleTimeString();case"O":case"o":return jc(e,n);default:throw new Error("Unrecognized Date print format")}else return no(e,t,n)}function Or(e,t,n){return e.offset!=null?qc(e,t):Jc(e,t)}function er(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Zc(){return er(-621355968e5,1)}function Ja(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),u=parseInt(a[0],10);i=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&u<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Kc(e,t=!1){const[n,r]=Ja(e),s=r!=null?t&&r==="Z"?1:2:0;return er(n.getTime(),s)}function Yc(e,t){try{return t.contents=Kc(e),!0}catch{return!1}}function Qc(e){return e.kind===1?e:er(e.getTime(),1)}function Xc(e){return e.kind===2?e:er(e.getTime(),2)}function ti(e){return e.kind===1?e.getUTCDate():e.getDate()}function cr(e){return e.kind===1?e.getUTCHours():e.getHours()}function dr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function ni(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function fr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ri(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function si(e){return e.kind===1?e.getUTCDay():e.getDay()}function Za(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ro(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ed(e,t,n=0){return e.lastIndex=n,e.test(t)}function oi(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function so(e,t,n,r,s=0){function o(){let i=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Za(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),u=oi(e,a),l=oi.length>r?(i=u[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+l.replace(e,n)+t.substring(s+l.length)}else return t.replace(e,n)}const Vn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,td=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ka(e,t){return Pc(e,t)<0}function je(e){return{input:e,cont:rd(e)}}function oo(e,t){return typeof t=="string"?e(t):t.cont(e)}function Lr(e){return oo(t=>console.log(t),e)}function yn(e){return oo(t=>t,e)}function Ya(e){return oo(t=>{throw new Error(t)},e)}function nd(e,t,n,r,s){let o="";if(t=t||"",s=s||"",qa(e))switch(s.toLowerCase()!=="x"&&(Ka(e,0)?(e=ks(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=br(e,r);break;case"g":case"G":e=r!=null?Ar(e,r):Ar(e);break;case"e":case"E":e=r!=null?Nr(e,r):Nr(e);break;case"x":e=kr(e);break;case"X":e=kr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Or(e):e=nt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!i?" ":"0";u==="0"?(e=Gn(e,n-o.length,u,a),e=o+e):e=Gn(o+e,n,u,a)}return e}function Qa(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),u=n.slice();for(const l of o){const[,,f,c,w,h]=u[0];let p=c;if(s>=0)p=s,s=-1;else if(p==="*"){if(l<0)throw new Error("Non-negative number required");s=l;continue}i+=a[0],i+=nd(l,f,p,w,h),a.splice(0,1),u.splice(0,1)}return u.length===0?(i+=a[0],e(i)):Qa(e,a,u,i,s)}}function rd(e){return t=>{Vn.lastIndex=0;const n=[],r=[];let s=0,o=Vn.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=Vn.lastIndex,Vn.lastIndex-=1,o=Vn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),Qa(t,n,r))}}function sd(e,...t){let n;return n=e,n.replace(td,(r,s,o,i,a,u)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[s];if(qa(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=br(l,a);break;case"g":case"G":l=a!=null?Ar(l,a):Ar(l);break;case"e":case"E":l=a!=null?Nr(l,a):Nr(l);break;case"p":case"P":a=a??2,l=br(ks(l,100),a)+" %";break;case"d":case"D":l=a!=null?us(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?us(kr(l),a,"0"):kr(l),i==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,w,h)=>{Ka(l,0)&&(l=ks(l,-1),f="-"),h=h==null?"":h.substring(1),l=br(l,Math.max(h.length,0));let[p,_]=l.split(".");_||(_="");const b=w.replace(/,/g,"").replace(/^#+/,"").length;p=us(p,b,"0");const g=h.replace(/#+$/,"").length;if(g>_.length?_=id(_,g,"0"):g<_.length&&(_=_.substring(0,g)+_.substring(g).replace(/0+$/,"")),w.indexOf(",")>0){const A=p.length%3,v=Math.floor(p.length/3);let Y=A>0?p.substr(0,A)+(v>0?",":""):"";for(let fe=0;fe<v;fe++)Y+=p.substr(A+fe*3,3)+(fe<v-1?",":"");p=Y}return _.length>0?p+"."+_:p}),l=f+l}}else l instanceof Date?l=Or(l,u||i):l=nt(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=Gn(String(l),Math.abs(o)," ",o<0)),l})}function od(e){return typeof e!="string"||e.length===0}function Xa(e){return typeof e!="string"||/^\s*$/.test(e)}function P(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Gn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function us(e,t,n){return Gn(e,t,n)}function id(e,t,n){return Gn(e,t,n,!0)}function ad(e,t,n){return e.replace(new RegExp(ro(t),"g"),n)}function ud(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ro),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(l).trim():e.substring(l);(!s||c.length>0)&&i.push(c),u=!1}else{const c=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(l).trim():e.substring(l)),u=!1):i.push(c)),l=a.lastIndex}}while(u);return i}function ld(e,...t){if(t.length===0)return e.trim();const n="["+ro(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Kt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return At(this.value)}Equals(t){return t==null?!1:de(this.value,t instanceof Kt?t.value:t)}CompareTo(t){return t==null?1:Ge(this.value,t instanceof Kt?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof Kt?e.value:e}function It(e){return e instanceof Kt?e.value:e}function Se(e){return e==null||e instanceof Kt?new Kt(e):e}function eu(e){return e==null?[]:[C(e)]}function Ue(e,t){return e!=null?C(e):t}function cd(e,t){return e!=null?C(e):t()}function tr(e,t){return t!=null?Se(e(C(t))):void 0}class dd{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Re{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Q(this)}GetHashCode(){return tu(this)}Equals(t){return Es(this,t)}}function Ve(e){return e.generics!=null?e.generics:[]}function tu(e){const t=eo(e.fullname),n=Ve(e).map(tu);return Qn([t,...n])}function Es(e,t){return e.fullname===""?t.fullname===""&&As(jn(e),jn(t),([n,r],[s,o])=>n===s&&Es(r,o)):e.fullname===t.fullname&&As(Ve(e),Ve(t),Es)}function ii(e,t,n,r){return new Re(e,t,n,r)}function _e(e,t,n,r){return new Re(e,t,n,void 0,r)}function fd(...e){return new Re("",void 0,void 0,void 0,()=>e)}function md(e,t,n,r){const s=new Re(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new dd(s,a,o[a],i))});return s}function ue(e){return new Re("Microsoft.FSharp.Core.FSharpOption`1",[e])}function io(e){return new Re("Microsoft.FSharp.Collections.FSharpList`1",[e])}const hd=new Re("System.Object"),B=new Re("System.String"),ht=new Re("System.Boolean");function hn(e){if(Array.isArray(e))return e[0];if(e instanceof Re){const t=nr(e);if(t!=null)return hn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Q(e){const t=nr(e);return t!=null?Q(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Q(n)).join(",")+"]"}function nu(e){return nr(e)!=null}function nr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function ru(e){return e.generics!=null&&e.generics.length>0}function ao(e){return e.enumCases!=null&&e.enumCases.length>0}function su(e){return e.generics==null?e:new Re(e.fullname,e.generics.map(()=>hd))}function ou(e){var t;return(t=e.generics)==null?void 0:t[0]}function nn(e){if(ao(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function pd(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function rn(e,t){const n=parseInt(t,10);return pd(e,isNaN(n)?t:n)[1]}function iu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function jn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function au(e){if(uo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function uu(e){return e instanceof Re?e.cases!=null:e instanceof N}function lu(e){return e instanceof Re?e.fields!=null:e instanceof I}function uo(e){return e.fullname.startsWith("System.Tuple")}function wd(e,t){const r=iu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function cu(e){return e.fields==null?[]:e.fields}function _d(e,t){return e[t[0]]}function gd(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function bd(e,t){const n=jn(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,o],i)=>(r[s]=t[i],r),{})}function yd(e,t){return e}const Sd="The index was outside the range of elements in the collection.",du="Collection was empty.";function fu(e,t){return new Array(t)}function Ms(e,t){return e>t?e:t}function vd(e,t){return e<t?e:t}function Pr(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function En(e,t,n){const r=t.length|0,s=fu(n,r);for(let o=0;o<=r-1;o++)pt(s,o,e(re(o,t)));return s}function Fd(e,t){const n=fu(t,1);return pt(n,0,e),n}function Cd(e){return e.slice().reverse()}function xd(e,t){return t.find(e)}function mu(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(re(s,t));if(o!=null){const i=C(o);r.push(i)}}return de(n,ve())?r:En(s=>s,r,n)}function Rr(e,t,n){const r=e;return n.reduce(r,t)}function re(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function pt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function hu(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class pe extends I{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+P("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,u=i.tail,l=a.tail;if(u!=null)if(l!=null){const f=C(u),c=C(l);if(de(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,u=o,l=u.tail;if(l!=null){const f=C(l);if(i>18)return a|0;r=i+1,s=(a<<1)+At(u.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,u=i.tail,l=a.tail;if(u!=null)if(l!=null){const f=C(u),c=C(l),w=Ge(i.head,a.head)|0;if(w===0){s=f,o=c;continue e}else return w|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return Nd(this)}[Symbol.iterator](){return Br(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return se(this)}}class Ad{constructor(t){this.xs=t,this.it=this.xs,this.current=ve()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=C(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ve()}Dispose(){}}function Nd(e){return new Ad(e)}function ie(){return new pe(ve(),void 0)}function rr(e,t){return new pe(e,t)}function Lt(e){return e.tail==null}function pu(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=C(i);continue e}else return s|0}})(0,e)|0}function Yt(e){if(e.tail!=null)return e.head;throw new Error(du+"\\nParameter name: list")}function we(e){const t=e.tail;if(t!=null)return C(t);throw new Error(du+"\\nParameter name: list")}function kd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=C(a);continue e}else throw new Error(Sd+"\\nParameter name: index")}})(0,e)}function le(){return ie()}function Oe(e,t){return rr(e,t)}function T(e){return rr(e,ie())}function H(e){return Lt(e)}function Zt(e){return pu(e)}function D(e){return Yt(e)}function U(e){return we(e)}function Mn(e){const t=pu(e)|0,n=Pr(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!Lt(a)){pt(n,i,Yt(a)),s=i+1,o=we(a);continue e}break}})(0,e),n}function st(e,t,n){let r=t,s=n;for(;!Lt(s);)r=e(r,D(s)),s=we(s);return r}function lo(e){return st((t,n)=>rr(n,t),ie(),e)}function Ed(e,t,n){return hu(e,Mn(t),n)}function Md(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,u=o,l=i;if(Lt(l))return u;s=a+1,o=e(a,u,Yt(l)),i=we(l);continue e}})(0,t,n)}function Td(e,t,n,r){let s=t,o=n,i=r;for(;!Lt(o)&&!Lt(i);)s=e(s,Yt(o),Yt(i)),o=we(o),i=we(i);return s}function Qt(e,t){st((n,r)=>{e(r)},void 0,t)}function ee(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=rr(re(r,e),n);return n}function S(e){return ee(e,ie())}function $d(e){let t,n;if(tt(e))return S(e);if(e instanceof pe)return e;{const r=ie();let s=r;const o=se(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new pe(u,void 0),t.tail=n,n)}}finally{Z(o)}const i=s,a=ie();return i.tail=a,we(r)}}function Id(e){const t=ie();let n=t;const r=i=>{n=st((a,u)=>{const l=new pe(u,void 0);return a.tail=l,l},n,i)};if(tt(e))e.forEach(r);else if(e instanceof pe)Qt(r,e);else{const i=se(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Z(i)}}const s=n,o=ie();return s.tail=o,we(t)}function co(e,t){return st((n,r)=>rr(r,n),t,lo(e))}function Dd(e,t){const n=ie(),r=Md((o,i,a)=>{const u=new pe(e(o,a),void 0);return i.tail=u,u},n,t),s=ie();return r.tail=s,we(n)}function Xt(e,t){const n=ie(),r=st((o,i)=>{const a=new pe(e(i),void 0);return o.tail=a,a},n,t),s=ie();return r.tail=s,we(n)}function Bd(e,t){return(r=>{e:for(;;){const s=r;if(Lt(s))return;{const o=e(Yt(s));if(o==null){r=we(s);continue e}else return o}}})(t)}function Vd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(Lt(i))return;if(e(Yt(i)))return o;r=o+1,s=we(i);continue e}})(0,t)}function Wn(e,t){return kd(t,e)}function Od(e,t){const n=ie(),r=st((o,i)=>{if(e(i)){const a=new pe(i,void 0);return o.tail=a,a}else return o},n,t),s=ie();return r.tail=s,we(n)}function Ld(e,t){const n=ie(),r=ie(),s=n,o=st((u,l)=>{let f,c;const w=u[0],h=u[1];return e(l)?[(f=new pe(l,void 0),w.tail=f,f),h]:[w,(c=new pe(l,void 0),h.tail=c,c)]},[s,r],t),i=ie();o[0].tail=i;const a=ie();return o[1].tail=a,[we(s),we(r)]}function Pd(e,t){const n=ie(),r=st((o,i)=>{const a=e(i);if(a==null)return o;{const u=new pe(C(a),void 0);return o.tail=u,u}},n,t),s=ie();return r.tail=s,we(n)}function wu(e,t){return st((n,r)=>n&&e(r),!0,t)}function Rd(e,t){const n=Mn(t);return n.sort(e),S(n)}function Ud(e,t,n){return Rd((r,s)=>n.Compare(e(r),e(s)),t)}class Hd extends I{constructor(t){super(),this.SmsfChoice=t}}function zd(){return _e("SuperSelection.UI.Backend.Dto.SMSFChoiceResponse",[],Hd,()=>[["SmsfChoice",ue(jd())]])}class Gd extends I{constructor(t,n,r,s,o,i,a,u,l){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=u,this.MemberFamilyName=l}}function jd(){return _e("SuperSelection.UI.Backend.Dto.SMSFChoiceDto",[],Gd,()=>[["Abn",B],["FundName",B],["FundAddress",qd()],["Bsb",B],["BankAccountName",B],["BankAccountNumber",B],["ElectronicServiceAddress",B],["MemberFirstName",ue(B)],["MemberFamilyName",ue(B)]])}class Wd extends I{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function qd(){return _e("SuperSelection.UI.Backend.Dto.AustralianFundAddressDto",[],Wd,()=>[["AddressLine1",B],["AddressLine2",ue(B)],["City",B],["State",B],["Postcode",B]])}class Jd extends I{constructor(t){super(),this.BankDetails=t}}function Zd(){return _e("SuperSelection.UI.Backend.Dto.BsbLookupResponse",[],Jd,()=>[["BankDetails",ue(Yd())]])}class Kd extends I{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function Yd(){return _e("SuperSelection.UI.Backend.Dto.BankDetailsDto",[],Kd,()=>[["Bsb",B],["Bank",B],["Branch",B]])}class Qd extends I{constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function Xd(){return _e("SuperSelection.UI.Backend.Dto.OwnFundChoiceDto",[],Qd,()=>[["Usi",B],["FundName",B],["MemberNumber",B],["MemberFirstName",ue(B)],["MemberFamilyName",ue(B)]])}class ef extends I{constructor(t){super(),this.OwnFundChoice=t}}function tf(){return _e("SuperSelection.UI.Backend.Dto.OwnFundChoiceResponse",[],ef,()=>[["OwnFundChoice",ue(Xd())]])}class nf extends I{constructor(t){super(),this.EmployersDefaultFund=t}}function rf(){return _e("SuperSelection.UI.Backend.Dto.DefaultFundResponse",[],nf,()=>[["EmployersDefaultFund",ue(of())]])}class sf extends I{constructor(t,n){super(),this.FundUsi=t,this.FundName=n}}function of(){return _e("SuperSelection.UI.Backend.Dto.DefaultFundDetailDto",[],sf,()=>[["FundUsi",B],["FundName",B]])}class af extends I{constructor(t,n){super(),this.Data=t,this.Result=n}}function uf(){return _e("SuperSelection.UI.Backend.Dto.AustralianSuperFundListDto",[],af,()=>[["Data",io(ff())],["Result",cf()]])}class lf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function cf(){return md("SuperSelection.UI.Backend.Dto.AustralianSuperFundListResultDto",[],lf,()=>[[],[]])}class df extends I{constructor(t,n,r,s,o,i,a,u){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=u}}function ff(){return _e("SuperSelection.UI.Backend.Dto.AustralianSuperFundDto",[],df,()=>[["Abn",B],["FundName",B],["Usi",B],["ProductName",B],["ContributionRestriction",ht],["DateFrom",ii("System.DateTimeOffset")],["DateTo",ii("System.DateTimeOffset")],["IsActive",ue(ht)]])}class mf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperSelection","SuperCampaign"]}}class hf extends I{constructor(t,n,r,s){super(),this.PlacementId=t,this.ShownFunds=n,this.PromotedDefaultFundPosition=r,this.PromotedFundsConfigSource=s}}class ai extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault"]}}class _u extends I{constructor(t,n,r,s){super(),this.FundUsi=t,this.FundName=n,this.PageName=r,this.SuperCampaignEnabled=s}}function pf(){return _e("SuperSelection.UI.Backend.Dto.SuperFundPdsViewedDetail",[],_u,()=>[["FundUsi",ue(B)],["FundName",B],["PageName",B],["SuperCampaignEnabled",ht]])}class gu extends I{constructor(t,n,r,s,o,i,a,u,l){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=u,this.IsDefaultExclusive=l}}function wf(){return _e("SuperSelection.UI.Backend.Dto.ViewedPromotedFundDetail",[],gu,()=>[["FundUsi",ue(B)],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",io(B)],["DefaultFundUsiSet",ue(B)],["SuperCampaignEnabled",ht],["PlacementId",B],["SourceOfJoin",ue(B)],["IsDefaultExclusive",ue(ht)]])}class bu extends I{constructor(t,n,r,s,o,i,a,u,l){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=u,this.IsDefaultExclusive=l}}function _f(){return _e("SuperSelection.UI.Backend.Dto.ViewedPromotedDefaultFundDetail",[],bu,()=>[["FundUsi",B],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",io(B)],["DefaultFundUsiSet",ue(B)],["SuperCampaignEnabled",ht],["PlacementId",B],["SourceOfJoin",ue(B)],["IsDefaultExclusive",ue(ht)]])}class yu extends I{constructor(t,n){super(),this.IsDefinedBenefitsEligible=t,this.SuperCampaignEnabled=n}}function gf(){return _e("SuperSelection.UI.Backend.Dto.SuperFundDisclaimerViewedDetail",[],yu,()=>[["IsDefinedBenefitsEligible",B],["SuperCampaignEnabled",ht]])}class Su extends I{constructor(t){super(),this.SuperCampaignEnabled=t}}function bf(){return _e("SuperSelection.UI.Backend.Dto.SuperFundDisclaimerAcceptedDetail",[],Su,()=>[["SuperCampaignEnabled",ht]])}class ui extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PromotedFund","PromotedDefaultFund"]}}class Mt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperFundPdsViewed","SuperFundDetailViewed","SuperFundDisclaimerViewed","SuperFundDisclaimerAccepted","SuperCampaignActivationSucceeded","SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class li extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class ci extends I{constructor(t,n){super(),this.Type=t,this.Reason=n}}function yf(e){return new d(0,[e])}function vu(e){return new d(1,[e])}class d extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function wt(e,t){return t.tag===0?yf(e(t.fields[0])):vu(t.fields[0])}function Sf(e,t){return t.tag===0?e(t.fields[0]):vu(t.fields[0])}class vf{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class sr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,sr.prototype)}}class fo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>fo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function St(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new sr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(xr(n))}});else try{e(t)}catch(n){t.onError(xr(n))}}}function Ff(e,t){return St(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(xr(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Cf(e){return St(t=>t.onSuccess(e))}class xf{Bind(t,n){return Ff(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return St(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return Cf(t)}ReturnFrom(t){return t}TryFinally(t,n){return St(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return St(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(xr(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return St(t=>t.onSuccess(void 0))}}const k=new xf;function Af(e){return new Fu(0,[e])}function Nf(e){return new Fu(1,[e])}class Fu extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function kf(e){return Af(e)}function Ef(e){return Nf(e)}function ls(e){}function Mf(e){return xu(t=>e.then(t[0]).catch(n=>(n instanceof sr?t[2]:t[1])(n)))}const Tf=new vf;function Cu(e){return St(t=>{e({onSuccess:n=>t.onSuccess(kf(n)),onError:n=>t.onSuccess(Ef(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function xu(e){return St(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Au(e){return St(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new sr)})})}function $f(e,t){return If(e,t)}function Nu(e,t){return $f(e,t)}function If(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new fo;e({onSuccess:t||ls,onError:ls,onCancel:ls,cancelToken:s||Tf,trampoline:o})}class Df{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function Bf(e,t){t.Subscribe(new Df(e))}class Vf{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Lf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class Of extends Vf{}function Lf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class Pf{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new Of}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,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}}function Rf(e,t){console.error(Se(e),t)}function Uf(e,t){let n,r=new Pf(e);r.AutoReset=!1,n=r,Bf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function di(e,t,n){Qt(r=>{try{r(t)}catch(s){e(s)}},n)}function x(){return le()}function en(e,t){return Xt(n=>r=>{n(s=>{r(e(s))})},t)}function pn(e){return Id(e)}function rt(e){return T(e)}function Hf(e,t,n,r,s){return T(o=>{e(k.Delay(()=>k.Bind(Cu(t(n)),i=>{const a=i;return o(a.tag===1?s(a.fields[0]):r(a.fields[0])),k.Zero()})))})}function Vt(e,t,n,r){return T(s=>{e(k.Delay(()=>k.Bind(Cu(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),k.Zero()})))})}function vt(e){Uf(1,t=>{Nu(e)})}class zf extends I{constructor(t,n,r,s,o,i,a,u,l,f,c,w,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=u,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=w,this.BankAccountNumber=h}}function mo(e,t){const n={detail:t};return new CustomEvent(e,n)}const Gf=mo("smsf-loaded",{sender:"super-smsf"}),jf=mo("smsf-cancelled",{sender:"super-smsf"});function Wf(e){return mo("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:It(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class ho extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function po(e){let t;t=e.tag===1?jf:e.tag===2?Wf(e.fields[0]):Gf,document.dispatchEvent(t)}function qf(e){return rt(t=>{po(new ho(2,[e]))})}function Jf(){return rt(e=>{po(new ho(0,[]))})}function Zf(){return rt(e=>{po(new ho(1,[]))})}class Ye extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ku extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Pn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class or extends I{constructor(t,n,r,s,o,i,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=u}}class un extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Eu extends I{constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function Kf(e){throw new Error(e)}const Yf="Enumeration already finished.",Qf="Enumeration has not started. Call MoveNext.",Mu="The input sequence has an insufficient number of elements.",Xf="Reset is not supported on this enumerator.";function em(){throw new Error(Xf)}function wo(){throw new Error(Qf)}function Ts(){throw new Error(Yf)}class tm{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=se(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+nt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Br(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function nm(e){return new tm(e)}class rm{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"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"(){em()}Dispose(){this.dispose()}}function Ur(e,t,n){return new rm(e,t,n)}function sm(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=C(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=C(t);try{Z(a)}finally{t=void 0}}};return Ur(()=>(r?s&&Ts():wo(),o!=null?C(o):Ts()),()=>{let a;if(r||(r=!0),s)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=C(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=Se(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{Z(c)}finally{n=void 0}}else{const c=C(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),se(a)):(i(),u=!1)}else t=se(e)}return C(u)}},()=>{s||i()})}function om(e,t){return Ur(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Tu(e,t,n){let r=!1,s,o=Se(e());const i=()=>{if(o!=null){const u=C(o);try{n(u)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return Ur(()=>(r||wo(),s!=null?C(s):Ts()),()=>{if(r||(r=!0),o!=null){const u=C(o);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(s=l,!0):(a(),!1)}else return!1},i)}function im(e,t){let n,r=t;return Ur(()=>{if(n!=null){const s=C(n)[0];return C(n)[1],s}else return wo()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function am(e,t){t==null&&Kf(e)}function Tn(e){return nm(e)}function Pt(e){return am("source",e),se(e)}function M(e){return Tn(()=>se(e()))}function $u(e){return Tn(()=>sm(e))}function um(e,t){return Tn(()=>im(e,t))}function ce(){return M(()=>new Array(0))}function $(e){return M(()=>Fd(e))}function lm(e){return e instanceof pe?Mn(e):Array.from(e)}function X(e){return tt(e)?S(e):e instanceof pe?e:$d(e)}function cm(e,t,n){return Tn(()=>Tu(e,t,n))}function Iu(e,t,n){return Tn(()=>{let r=-1;return Tu(e,s=>(r=r+1|0,t(r,s)),n)})}function W(e,t){return $u([e,t])}function dm(e,t,n){const r=Pt(t);try{const s=Pt(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{Z(s)}}finally{Z(r)}}function sn(e,t,n){const r=Pt(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function Hr(e,t,n){const r=Pt(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function zr(e,t){Hr((n,r)=>{e(r)},void 0,t)}function ke(e,t){return cm(()=>Pt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Se(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function fm(e,t){return Iu(()=>Pt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Se(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function mm(e){return M(()=>Cd(lm(e)))}function hm(e,t){return Tn(()=>{const n=Pt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Mu+"\\nParameter name: source");return om(()=>{},n)}catch(r){throw Z(n),r}})}function pm(e,t){return Iu(()=>Pt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Se(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Mu+"\\nParameter name: source")}else return},n=>{Z(n)})}function wm(e,t){return M(()=>$u(ke(e,t)))}class Du{constructor(t,n){this.k=t,this.v=n}}function Mr(e,t){return new Du(e,t)}function ye(e){return e.k}function Le(e){return e.v}class ae extends Du{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function yr(e,t,n,r,s){return new ae(e,t,n,r,s)}function ge(e){return e.left}function be(e){return e.right}function qt(e){return e.h}function Bu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof ae){const o=s;e=Bu(n+1,ge(o)),t=be(o);continue e}else return n+1|0}else return n|0}}function _m(e){return Bu(0,e)}function Je(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=C(a);i=c instanceof ae?(s=c,qt(s)):1}else i=0;let u;const l=r;if(l!=null){const c=C(l);u=c instanceof ae?(o=c,qt(o)):1}else u=0;const f=(i<u?u:i)|0;return f===0?Mr(t,n):yr(t,n,e,r,f+1)}function fi(e,t,n,r){let s,o,i,a,u,l,f,c,w;const h=e;if(h!=null){const b=C(h);w=b instanceof ae?(s=b,qt(s)):1}else w=0;let p;const _=r;if(_!=null){const b=C(_);p=b instanceof ae?(o=b,qt(o)):1}else p=0;if(p>w+2){const b=C(r);if(b instanceof ae){const g=b;if(i=ge(g),(i!=null?(a=C(i),a instanceof ae?(u=a,qt(u)):1):0)>w+1){const A=C(ge(g));if(A instanceof ae){const v=A;return Je(Je(e,t,n,ge(v)),ye(v),Le(v),Je(be(v),ye(g),Le(g),be(g)))}else throw new Error("internal error: Map.rebalance")}else return Je(Je(e,t,n,ge(g)),ye(g),Le(g),be(g))}else throw new Error("internal error: Map.rebalance")}else if(w>p+2){const b=C(e);if(b instanceof ae){const g=b;if(l=be(g),(l!=null?(f=C(l),f instanceof ae?(c=f,qt(c)):1):0)>p+1){const A=C(be(g));if(A instanceof ae){const v=A;return Je(Je(ge(g),ye(g),Le(g),ge(v)),ye(v),Le(v),Je(be(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Je(ge(g),ye(g),Le(g),Je(be(g),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Je(e,t,n,r)}function Sn(e,t,n,r){if(r!=null){const s=C(r),o=e.Compare(t,ye(s))|0;if(s instanceof ae){const i=s;return o<0?fi(Sn(e,t,n,ge(i)),ye(i),Le(i),be(i)):o===0?yr(t,n,ge(i),be(i),qt(i)):fi(ge(i),ye(i),Le(i),Sn(e,t,n,be(i)))}else return o<0?yr(t,n,void 0,r,2):o===0?Mr(t,n):yr(t,n,r,void 0,2)}else return Mr(t,n)}function Vu(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,ye(i))|0;if(a===0)return Se(Le(i));if(i instanceof ae){const u=i;e=r,t=s,n=a<0?ge(u):be(u);continue e}else return}else return}}function gm(e,t,n){const r=Vu(e,t,n);if(r==null)throw new Error;return C(r)}function bm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,ye(i))|0;if(i instanceof ae){const u=i;if(a<0){e=r,t=s,n=ge(u);continue e}else{if(a===0)return!0;e=r,t=s,n=be(u);continue e}}else return a===0}else return!1}}function Ou(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof ae){const o=s;Ou(n,ge(o)),n(ye(o),Le(o)),e=n,t=be(o);continue e}else n(ye(s),Le(s))}break}}function ym(e,t){Ou(e,t)}function Sm(e,t,n){let r=n;ym((s,o)=>{pt(t,r,[s,o]),r=r+1|0},e)}function vm(e,t){return st((n,r)=>Sn(e,r[0],r[1],n),void 0,t)}function Fm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Sn(r,i[0],i[1],s),n=o;continue e}else return s}}function Cm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=re(r,t);n=Sn(e,s[0],s[1],n)}return n}function Lu(e,t){if(tt(t))return Cm(e,t);if(t instanceof pe)return vm(e,t);{const n=se(t);try{return Fm(e,void 0,n)}finally{Z(n)}}}class xm extends I{constructor(t,n){super(),this.stack=t,this.started=n}}function Pu(e){e:for(;;){const t=e;if(H(t))return le();{const n=U(t),r=D(t);if(r!=null){const s=C(r);if(s instanceof ae){const o=s;e=ee([ge(o),Mr(ye(o),Le(o)),be(o)],n);continue e}else return t}else{e=n;continue e}}}}function mi(e){return new xm(Pu(T(e)),!1)}function Am(){throw new Error("enumeration not started")}function Nm(){throw new Error("enumeration already finished")}function hi(e){if(e.started){const t=e.stack;if(H(t))return Nm();if(D(t)!=null){const n=C(D(t));if(n instanceof ae)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ye(n),Le(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Am()}function km(e){if(e.started){const t=e.stack;if(H(t))return!1;if(D(t)!=null){if(C(D(t))instanceof ae)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Pu(U(t)),!H(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function pi(e){let t=mi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return hi(t)},"System.Collections.IEnumerator.get_Current"(){return hi(t)},"System.Collections.IEnumerator.MoveNext"(){return km(t)},"System.Collections.IEnumerator.Reset"(){t=mi(e)},Dispose(){}}}class Tr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return $m(this)|0}Equals(t){const n=this;if(t instanceof Tr){const r=t,s=se(n);try{const o=se(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const u=s["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return de(u[0],l[0])&&de(u[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{Z(o)}}finally{Z(s)}}else return!1}toString(){return"map ["+P("; ",ke(n=>sd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return pi(this.tree)}[Symbol.iterator](){return Br(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pi(this.tree)}CompareTo(t){const n=this;if(t instanceof Tr)return dm((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:Ge(s[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return _i(n,t[0])&&de(wi(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Sm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return cs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return cs(this)|0}get size(){return cs(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return wi(this,t)}has(t){return _i(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;zr(s=>{t(s[1],s[0],r)},r)}}function Gr(e,t){return new Tr(e,t)}function Em(e){return Gr(e,void 0)}function Mm(e,t,n){return Gr(e.comparer,Sn(e.comparer,t,n,e.tree))}function wi(e,t){return gm(e.comparer,t,e.tree)}function cs(e){return _m(e.tree)}function _i(e,t){return bm(e.comparer,t,e.tree)}function Tm(e,t){return Vu(e.comparer,t,e.tree)}function $m(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=se(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,At(s[0]))|0,n=t(n,At(s[1]))|0}}finally{Z(r)}return n|0}function Ru(e,t,n){return Mm(n,e,t)}function Uu(e,t){return Tm(t,e)}function Im(e,t){return Gr(t,Lu(t,e))}function Dm(e,t){return Gr(t,Lu(t,e))}function _o(e){return Em(e)}function mr(e){return new ku("Content-Type",e)}function Bm(e){return new ku("Authorization",e)}const Ht=new or("",new Ye(0,[]),le(),!1,void 0,void 0,void 0,new Pn(0,[]));new Eu(0,"","","",_o({Compare:Xn}),new un(0,[""]));function gi(e,t){return od(t)?new Array(0):ud(t,[e],void 0,0)}function Vm(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"}}function ot(e){return new or(e,Ht.method,Ht.headers,Ht.withCredentials,Ht.overridenMimeType,Ht.overridenResponseType,Ht.timeout,Ht.content)}function it(e,t){return new or(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ce(e,t){return new or(t.url,t.method,co(t.headers,T(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function hr(e,t){return new or(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function at(e){return xu(t=>{const n=new XMLHttpRequest;n.open(Vm(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,w,h,p;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,w=(h=n.responseType,h===""?new un(0,[n.responseText]):h==="text"?new un(0,[n.responseText]):h==="arraybuffer"?new un(2,[n.response]):h==="blob"?new un(1,[n.response]):new un(3,[n.response])),p=Dm(mu(_=>{const b=S(gi(":",_));if(!H(b))return[D(b).toLocaleLowerCase(),P(":",U(b)).trim()]},gi(`\r
4
- `,n.getAllResponseHeaders())),{Compare:Xn}),new Eu(f,u,c,n.responseURL,p,w)))};const r=se(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{Z(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const u=s;n.overrideMimeType(u)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const u=i|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Se(a.fields[0]));break}case 3:{n.send(Se(a.fields[0]));break}case 2:{n.send(Se(a.fields[0]));break}default:n.send()}})}class E extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Pe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function bi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Hu(e,t){switch(e.tag){case 2:return so(bi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bi(t)}}const Om=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,yi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Lm=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pm(e){function t(r){return r.replace(yi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Om.test(n))return ld(n,"{","}","(",")");if(yi.test(n))return t(n);if(Lm.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Rm(e,t){try{return t.contents=Pm(e),!0}catch{return!1}}function ds(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var $s;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})($s||($s={}));function Um(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Si(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 Hm(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.")}}function zm(e,t){if(t&$s.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}}function Gm(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||zm(o,t),!Hm(n).test(i))return Um(s,n)}return null}function jm(e,t,n,r,s){const o=Gm(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,u]=Si(!0,r);!n&&o.radix!==10&&i>=a&&i<=u&&(i=i<<32-r>>32-r);const[l,f]=Si(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function $n(e,t,n,r,s){try{return s.contents=jm(e,t,n,r),!0}catch{return!1}}function zu(e,t){Wm(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Wm(e){if(e!=null&&e!==0){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.")}}function qm(){return zu(-621355968e5,0)}function Jm(e){const[t,n]=Ja(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return zu(t.getTime(),r)}function Zm(e,t){try{return t.contents=Jm(e),!0}catch{return!1}}function ir(e){return e<0?Math.ceil(e):Math.floor(e)}function vi(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return Km(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function Km(e){return Number(BigInt(e)/10000n)}function Ym(e){return ir(e/864e5)}function Qm(e){return ir(e%864e5/36e5)}function Xm(e){return ir(e%36e5/6e4)}function eh(e){return ir(e%6e4/1e3)}function th(e){return ir(e%1e3)}function nh(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Ym(e)),s=Math.abs(Qm(e)),o=Math.abs(Xm(e)),i=Math.abs(eh(e)),a=Math.abs(th(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:G(s,2)}:${G(o,2)}:${G(i,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+G(a,3):"."+yc(a,3,7)}`}function rh(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return vi(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*vi(s,u,l,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function sh(e,t){try{return t.contents=rh(e),!0}catch{return!1}}class Gu{constructor(t){this.k=t}}function Ie(e){return new Gu(e)}function V(e){return e.k}class z extends Gu{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function De(e,t,n,r){return new z(e,t,n,r)}function K(e){return e.left}function q(e){return e.right}function cn(e){return e.h}function ju(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=K(o),t=ju(q(o),r+1);continue e}else return r+1|0}else return r|0}}function oh(e){return ju(e,0)}function Ze(e,t,n){let r,s,o;const i=e;if(i!=null){const f=C(i);o=f instanceof z?(r=f,cn(r)):1}else o=0;let a;const u=n;if(u!=null){const f=C(u);a=f instanceof z?(s=f,cn(s)):1}else a=0;const l=(o<a?a:o)|0;return l===0?Ie(t):De(t,e,n,l+1)}function Fi(e,t,n){let r,s,o,i,a,u,l,f,c;const w=e;if(w!=null){const _=C(w);c=_ instanceof z?(r=_,cn(r)):1}else c=0;let h;const p=n;if(p!=null){const _=C(p);h=_ instanceof z?(s=_,cn(s)):1}else h=0;if(h>c+2){const _=C(n);if(_ instanceof z){const b=_;if(o=K(b),(o!=null?(i=C(o),i instanceof z?(a=i,cn(a)):1):0)>c+1){const g=C(K(b));if(g instanceof z){const A=g;return Ze(Ze(e,t,K(A)),V(A),Ze(q(A),V(b),q(b)))}else throw new Error("internal error: Set.rebalance")}else return Ze(Ze(e,t,K(b)),V(b),q(b))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const _=C(e);if(_ instanceof z){const b=_;if(u=q(b),(u!=null?(l=C(u),l instanceof z?(f=l,cn(f)):1):0)>h+1){const g=C(q(b));if(g instanceof z){const A=g;return Ze(Ze(K(b),V(b),K(A)),V(A),Ze(q(A),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ze(K(b),V(b),Ze(q(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ze(e,t,n)}function vn(e,t,n){if(n!=null){const r=C(n),s=e.Compare(t,V(r))|0;if(r instanceof z){const o=r;return s<0?Fi(vn(e,t,K(o)),V(o),q(o)):s===0?n:Fi(K(o),V(o),vn(e,t,q(o)))}else{const o=e.Compare(t,V(r))|0;return o<0?De(t,void 0,n,2):o===0?n:De(t,n,void 0,2)}}else return Ie(t)}function Wu(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,V(i))|0;if(i instanceof z){const u=i;if(a<0){e=r,t=s,n=K(u);continue e}else{if(a===0)return!0;e=r,t=s,n=q(u);continue e}}else return a===0}else return!1}}function qu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof z){const o=s;qu(n,K(o)),n(V(o)),e=n,t=q(o);continue e}else n(V(s))}break}}class ih extends I{constructor(t,n){super(),this.stack=t,this.started=n}}function Ju(e){e:for(;;){const t=e;if(H(t))return le();{const n=D(t),r=U(t);if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=ee([K(o),Ie(V(o)),q(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ci(e){return new ih(Ju(T(e)),!1)}function ah(){throw new Error("Enumeration not started")}function uh(){throw new Error("Enumeration already started")}function xi(e){if(e.started){const t=e.stack;if(H(t))return uh();if(D(t)!=null){const n=C(D(t));return V(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ah()}function lh(e){if(e.started){const t=e.stack;if(H(t))return!1;if(D(t)!=null){if(C(D(t))instanceof z)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ju(U(t)),!H(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function Ai(e){let t=Ci(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xi(t)},"System.Collections.IEnumerator.get_Current"(){return xi(t)},"System.Collections.IEnumerator.MoveNext"(){return lh(t)},"System.Collections.IEnumerator.Reset"(){t=Ci(e)},Dispose(){}}}function ch(e,t,n){e:for(;;){const r=e,s=t,o=n;if(H(s))return H(o)?0:-1;if(H(o))return 1;if(D(o)!=null)if(D(s)!=null){const i=C(D(s)),a=C(D(o));if(i instanceof z){const u=i;if(K(u)==null)if(a instanceof z){const l=a;if(K(l)==null){const f=r.Compare(V(u),V(l))|0;if(f!==0)return f|0;e=r,t=Oe(q(u),U(s)),n=Oe(q(l),U(o));continue e}else{let f,c,w,h,p;switch(H(s)?H(o)?f=2:D(o)!=null?(f=1,h=U(o),p=C(D(o))):f=2:D(s)!=null?(f=0,c=U(s),w=C(D(s))):H(o)?f=2:D(o)!=null?(f=1,h=U(o),p=C(D(o))):f=2,f){case 0:if(w instanceof z){const _=w;e=r,t=ee([K(_),De(V(_),void 0,q(_),0)],c),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(w))],c),n=o;continue e}case 1:if(p instanceof z){const _=p;e=r,t=s,n=ee([K(_),De(V(_),void 0,q(_),0)],h);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(p))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(V(u),V(a))|0;if(l!==0)return l|0;e=r,t=Oe(q(u),U(s)),n=Oe(void 0,U(o));continue e}else{let l,f,c,w,h;switch(H(s)?H(o)?l=2:D(o)!=null?(l=1,w=U(o),h=C(D(o))):l=2:D(s)!=null?(l=0,f=U(s),c=C(D(s))):H(o)?l=2:D(o)!=null?(l=1,w=U(o),h=C(D(o))):l=2,l){case 0:if(c instanceof z){const p=c;e=r,t=ee([K(p),De(V(p),void 0,q(p),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(c))],f),n=o;continue e}case 1:if(h instanceof z){const p=h;e=r,t=s,n=ee([K(p),De(V(p),void 0,q(p),0)],w);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(h))],w);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof z){const u=a;if(K(u)==null){const l=r.Compare(V(i),V(u))|0;if(l!==0)return l|0;e=r,t=Oe(void 0,U(s)),n=Oe(q(u),U(o));continue e}else{let l,f,c,w,h;switch(H(s)?H(o)?l=2:D(o)!=null?(l=1,w=U(o),h=C(D(o))):l=2:D(s)!=null?(l=0,f=U(s),c=C(D(s))):H(o)?l=2:D(o)!=null?(l=1,w=U(o),h=C(D(o))):l=2,l){case 0:if(c instanceof z){const p=c;e=r,t=ee([K(p),De(V(p),void 0,q(p),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(c))],f),n=o;continue e}case 1:if(h instanceof z){const p=h;e=r,t=s,n=ee([K(p),De(V(p),void 0,q(p),0)],w);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(h))],w);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(V(i),V(a))|0;if(u!==0)return u|0;e=r,t=U(s),n=U(o);continue e}}else{C(D(o));let i,a,u,l,f;switch(H(s)?H(o)?i=2:D(o)!=null?(i=1,l=U(o),f=C(D(o))):i=2:D(s)!=null?(i=0,a=U(s),u=C(D(s))):H(o)?i=2:D(o)!=null?(i=1,l=U(o),f=C(D(o))):i=2,i){case 0:if(u instanceof z){const c=u;e=r,t=ee([K(c),De(V(c),void 0,q(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(u))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),De(V(c),void 0,q(c),0)],l);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(s)!=null){C(D(s));let i,a,u,l,f;switch(H(s)?H(o)?i=2:D(o)!=null?(i=1,l=U(o),f=C(D(o))):i=2:D(s)!=null?(i=0,a=U(s),u=C(D(s))):H(o)?i=2:D(o)!=null?(i=1,l=U(o),f=C(D(o))):i=2,i){case 0:if(u instanceof z){const c=u;e=r,t=ee([K(c),De(V(c),void 0,q(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(u))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),De(V(c),void 0,q(c),0)],l);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(s),n=U(o);continue e}}}function Ni(e,t,n){return t==null?n==null?0:-1:n==null?1:ch(e,T(t),T(n))|0}function dh(e,t,n){let r=n;qu(s=>{pt(t,r,s),r=r+1|0},e)}function fh(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=vn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function mh(e,t){return Rr((n,r)=>vn(e,r,n),void 0,t)}function hh(e,t){return st((n,r)=>vn(e,r,n),void 0,t)}function Zu(e,t){if(tt(t))return mh(e,t);if(t instanceof pe)return hh(e,t);{const n=se(t);try{return fh(e,void 0,n)}finally{Z(n)}}}class go{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return _h(this)|0}Equals(t){let n;const r=this;return t instanceof go&&(n=t,Ni(wn(r),Qe(r),Qe(n))===0)}toString(){return"set ["+P("; ",ke(n=>nt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ni(wn(n),Qe(n),Qe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Wu(wn(n),t,Qe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){dh(Qe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return fs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return fs(this)|0}GetEnumerator(){return Ai(Qe(this))}[Symbol.iterator](){return Br(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ai(Qe(this))}get size(){return fs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Ku(this,t)}keys(){return ke(n=>n,this)}values(){return ke(n=>n,this)}entries(){return ke(n=>[n,n],this)}forEach(t,n){const r=this;zr(s=>{t(s,s,r)},r)}}function jr(e,t){return new go(e,t)}function wn(e){return e.comparer}function Qe(e){return e.tree}function ph(e){return jr(e,void 0)}function wh(e,t){return jr(wn(e),vn(wn(e),t,Qe(e)))}function fs(e){return oh(Qe(e))}function Ku(e,t){return Wu(wn(e),t,Qe(e))}function _h(e){let t=0;const n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+At(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function Is(e,t){return Ku(t,e)}function gh(e,t){return wh(t,e)}function bh(e){return ph(e)}function yh(e,t){return jr(t,Zu(t,e))}function Sh(e,t){return jr(t,Zu(t,e))}function On(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var Qn,O,la,Jt,Vo,ca,da,fa,Ls,Ss,vs,ma,Wn={},ha=[],Ql=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xn=Array.isArray;function ft(e,t){for(var n in t)e[n]=t[n];return e}function Ps(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Qn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return zn(e,i,r,s,null)}function zn(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++la,__i:-1,__u:0};return s==null&&O.vnode!=null&&O.vnode(o),o}function pa(){return{current:null}}function Fe(e){return e.children}function et(e,t){this.props=e,this.context=t}function yn(e,t){if(t==null)return e.__?yn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?yn(e):null}function wa(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return wa(e)}}function Fs(e){(!e.__d&&(e.__d=!0)&&Jt.push(e)&&!Cr.__r++||Vo!=O.debounceRendering)&&((Vo=O.debounceRendering)||ca)(Cr)}function Cr(){for(var e,t,n,r,s,o,i,a=1;Jt.length;)Jt.length>a&&Jt.sort(da),e=Jt.shift(),a=Jt.length,e.__d&&(n=void 0,r=void 0,s=(r=(t=e).__v).__e,o=[],i=[],t.__P&&((n=ft({},r)).__v=r.__v+1,O.vnode&&O.vnode(n),Rs(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[s]:null,o,s??yn(r),!!(32&r.__u),i),n.__v=r.__v,n.__.__k[n.__i]=n,ba(o,n,i),r.__e=r.__=null,n.__e!=s&&wa(n)));Cr.__r=0}function _a(e,t,n,r,s,o,i,a,l,u,f){var c,h,p,w,_,b,g,x=r&&r.__k||ha,v=t.length;for(l=Xl(n,t,x,l,v),c=0;c<v;c++)(p=n.__k[c])!=null&&(h=p.__i==-1?Wn:x[p.__i]||Wn,p.__i=c,b=Rs(e,p,h,s,o,i,a,l,u,f),w=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&Us(h.ref,null,p),f.push(p.ref,p.__c||w,p)),_==null&&w!=null&&(_=w),(g=!!(4&p.__u))||h.__k===p.__k?l=ga(p,l,e,g):typeof p.type=="function"&&b!==void 0?l=b:w&&(l=w.nextSibling),p.__u&=-7);return n.__e=_,l}function Xl(e,t,n,r,s){var o,i,a,l,u,f=n.length,c=f,h=0;for(e.__k=new Array(s),o=0;o<s;o++)(i=t[o])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[o]=zn(null,i,null,null,null):Xn(i)?i=e.__k[o]=zn(Fe,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=e.__k[o]=zn(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[o]=i,l=o+h,i.__=e,i.__b=e.__b+1,a=null,(u=i.__i=ec(i,n,l,c))!=-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(s>f?h--:s<f&&h++),typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,i.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<f;o++)(a=n[o])!=null&&!(2&a.__u)&&(a.__e==r&&(r=yn(a)),Sa(a,a));return r}function ga(e,t,n,r){var s,o;if(typeof e.type=="function"){for(s=e.__k,o=0;s&&o<s.length;o++)s[o]&&(s[o].__=e,t=ga(s[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=yn(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(Xn(e)?e.some(function(n){Ct(n,t)}):t.push(e)),t}function ec(e,t,n,r){var s,o,i,a=e.key,l=e.type,u=t[n],f=u!=null&&(2&u.__u)==0;if(u===null&&a==null||f&&a==u.key&&l==u.type)return n;if(r>(f?1:0)){for(s=n-1,o=n+1;s>=0||o<t.length;)if((u=t[i=s>=0?s--:o++])!=null&&!(2&u.__u)&&a==u.key&&l==u.type)return i}return-1}function Oo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ql.test(t)?n:n+"px"}function dr(e,t,n,r,s){var o,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Oo(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Oo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(fa,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Ls,e.addEventListener(t,o?vs:Ss,o)):e.removeEventListener(t,o?vs:Ss,o);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Lo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ls++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Rs(e,t,n,r,s,o,i,a,l,u){var f,c,h,p,w,_,b,g,x,v,Q,de,Je,Ut,Ht,st,zt,ot=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof ot=="function")try{if(g=t.props,x="prototype"in ot&&ot.prototype.render,v=(f=ot.contextType)&&r[f.__c],Q=f?v?v.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(x?t.__c=c=new ot(g,Q):(t.__c=c=new et(g,Q),c.constructor=ot,c.render=nc),v&&v.sub(c),c.state||(c.state={}),c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),x&&c.__s==null&&(c.__s=c.state),x&&ot.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ft({},c.__s)),ft(c.__s,ot.getDerivedStateFromProps(g,c.__s))),p=c.props,w=c.state,c.__v=t,h)x&&ot.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),x&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(x&&ot.getDerivedStateFromProps==null&&g!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(g,Q),t.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(g,c.__s,Q)===!1){for(t.__v!=n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(rn){rn&&(rn.__=t)}),de=0;de<c._sb.length;de++)c.__h.push(c._sb[de]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(g,c.__s,Q),x&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,w,_)})}if(c.context=Q,c.props=g,c.__P=e,c.__e=!1,Je=O.__r,Ut=0,x){for(c.state=c.__s,c.__d=!1,Je&&Je(t),f=c.render(c.props,c.state,c.context),Ht=0;Ht<c._sb.length;Ht++)c.__h.push(c._sb[Ht]);c._sb=[]}else do c.__d=!1,Je&&Je(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Ut<25);c.state=c.__s,c.getChildContext!=null&&(r=ft(ft({},r),c.getChildContext())),x&&!h&&c.getSnapshotBeforeUpdate!=null&&(_=c.getSnapshotBeforeUpdate(p,w)),st=f,f!=null&&f.type===Fe&&f.key==null&&(st=ya(f.props.children)),a=_a(e,Xn(st)?st:[st],t,n,r,s,o,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),b&&(c.__E=c.__=null)}catch(rn){if(t.__v=null,l||o!=null)if(rn.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(zt=o.length;zt--;)Ps(o[zt]);Cs(t)}else t.__e=n.__e,t.__k=n.__k,rn.then||Cs(t);O.__e(rn,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=tc(n.__e,t,n,r,s,o,i,l,u);return(f=O.diffed)&&f(t),128&t.__u?void 0:a}function Cs(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Cs)}function ba(e,t,n){for(var r=0;r<n.length;r++)Us(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){O.__e(o,s.__v)}})}function ya(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Xn(e)?e.map(ya):ft({},e)}function tc(e,t,n,r,s,o,i,a,l){var u,f,c,h,p,w,_,b=n.props||Wn,g=t.props,x=t.type;if(x=="svg"?s="http://www.w3.org/2000/svg":x=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!x&&(x?p.localName==x:p.nodeType==3)){e=p,o[u]=null;break}}if(e==null){if(x==null)return document.createTextNode(g);e=document.createElementNS(s,x,g.is&&g),a&&(O.__m&&O.__m(t,o),a=!1),o=null}if(x==null)b===g||a&&e.data==g||(e.data=g);else{if(o=o&&Qn.call(e.childNodes),!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(p=e.attributes[u]).name]=p.value;for(u in b)if(p=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=p;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;dr(e,u,null,p,s)}}for(u in g)p=g[u],u=="children"?h=p:u=="dangerouslySetInnerHTML"?f=p:u=="value"?w=p:u=="checked"?_=p:a&&typeof p!="function"||b[u]===p||dr(e,u,p,b[u],s);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),_a(t.type=="template"?e.content:e,Xn(h)?h:[h],t,n,r,x=="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&yn(n,0),a,l),o!=null)for(u=o.length;u--;)Ps(o[u]);a||(u="value",x=="progress"&&w==null?e.removeAttribute("value"):w!=null&&(w!==e[u]||x=="progress"&&!w||x=="option"&&w!=b[u])&&dr(e,u,w,b[u],s),u="checked",_!=null&&_!=e[u]&&dr(e,u,_,b[u],s))}return e}function Us(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){O.__e(s,n)}}function Sa(e,t,n){var r,s;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Us(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){O.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Sa(r[s],t,n||typeof e.type!="function");n||Ps(e.__e),e.__c=e.__=e.__e=void 0}function nc(e,t,n){return this.constructor(e,n)}function Lt(e,t,n){var r,s,o,i;t==document&&(t=document.documentElement),O.__&&O.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Rs(t,e=(!r&&n||t).__k=m(Fe,null,[e]),s||Wn,Wn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Qn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),ba(o,e,i)}function Hs(e,t){Lt(e,t,Hs)}function zs(e,t,n){var r,s,o,i,a=ft({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!=null?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Qn.call(arguments,2):n),zn(e.type,a,r||e.key,s||e.ref,null)}function va(e){function t(n){var r,s;return this.getChildContext||(r=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(i){i.__e=!0,Fs(i)})},this.sub=function(o){r.add(o);var i=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),i&&i.call(o)}}),n.children}return t.__c="__cC"+ma++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Qn=ha.slice,O={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},la=0,et.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ft({},this.state),typeof e=="function"&&(e=e(ft({},n),this.props)),e&&ft(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fs(this))},et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fs(this))},et.prototype.render=Fe,Jt=[],ca=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,da=function(e,t){return e.__v.__b-t.__v.__b},Cr.__r=0,fa=/(PointerCapture)$|Capture$/i,Ls=0,Ss=Lo(!1),vs=Lo(!0),ma=0;var At,q,is,Po,Sn=0,Fa=[],te=O,Ro=te.__b,Uo=te.__r,Ho=te.diffed,zo=te.__c,Go=te.unmount,jo=te.__;function nn(e,t){te.__h&&te.__h(q,e,Sn||t),Sn=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Nn(e){return Sn=1,Vr(Ca,e)}function Vr(e,t,n){var r=nn(At++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ca(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=q,!q.__f)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!o||o.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(c=!0)}}),o&&o.call(this,a,l,u)||c};q.__f=!0;var o=q.shouldComponentUpdate,i=q.componentWillUpdate;q.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,s(a,l,u),o=f}i&&i.call(this,a,l,u)},q.shouldComponentUpdate=s}return r.__N||r.__}function kn(e,t){var n=nn(At++,3);!te.__s&&Ks(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function En(e,t){var n=nn(At++,4);!te.__s&&Ks(n.__H,t)&&(n.__=e,n.u=t,q.__h.push(n))}function Gs(e){return Sn=5,er(function(){return{current:e}},[])}function js(e,t,n){Sn=6,En(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function er(e,t){var n=nn(At++,7);return Ks(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ws(e,t){return Sn=8,er(function(){return e},t)}function Js(e){var t=q.context[e.__c],n=nn(At++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__}function qs(e,t){te.useDebugValue&&te.useDebugValue(t?t(e):e)}function rc(e){var t=nn(At++,10),n=Nn();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Zs(){var e=nn(At++,11);if(!e.__){for(var t=q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function sc(){for(var e;e=Fa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yr),e.__H.__h.forEach(xs),e.__H.__h=[]}catch(t){e.__H.__h=[],te.__e(t,e.__v)}}te.__b=function(e){q=null,Ro&&Ro(e)},te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jo&&jo(e,t)},te.__r=function(e){Uo&&Uo(e),At=0;var t=(q=e.__c).__H;t&&(is===q?(t.__h=[],q.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(yr),t.__h.forEach(xs),t.__h=[],At=0)),is=q},te.diffed=function(e){Ho&&Ho(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fa.push(t)!==1&&Po===te.requestAnimationFrame||((Po=te.requestAnimationFrame)||oc)(sc)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),is=q=null},te.__c=function(e,t){t.some(function(n){try{n.__h.forEach(yr),n.__h=n.__h.filter(function(r){return!r.__||xs(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],te.__e(r,n.__v)}}),zo&&zo(e,t)},te.unmount=function(e){Go&&Go(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{yr(r)}catch(s){t=s}}),n.__H=void 0,t&&te.__e(t,n.__v))};var Wo=typeof requestAnimationFrame=="function";function oc(e){var t,n=function(){clearTimeout(r),Wo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Wo&&(t=requestAnimationFrame(n))}function yr(e){var t=q,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),q=t}function xs(e){var t=q;e.__c=e.__(),q=t}function Ks(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ca(e,t){return typeof t=="function"?t(e):t}function xa(e,t){for(var n in t)e[n]=t[n];return e}function As(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ys(e,t){var n=t(),r=Nn({t:{__:n,u:t}}),s=r[0].t,o=r[1];return En(function(){s.__=n,s.u=t,as(s)&&o({t:s})},[e,n,t]),kn(function(){return as(s)&&o({t:s}),e(function(){as(s)&&o({t:s})})},[e]),n}function as(e){var t,n,r=e.u,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Qs(e){e()}function Xs(e){return e}function eo(){return[!1,Qs]}var to=En;function xr(e,t){this.props=e,this.context=t}function Aa(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:As(this.props,s)}function r(s){return this.shouldComponentUpdate=n,m(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(xr.prototype=new et).isPureReactComponent=!0,xr.prototype.shouldComponentUpdate=function(e,t){return As(this.props,e)||As(this.state,t)};var Jo=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Jo&&Jo(e)};var ic=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Na(e){function t(n){var r=xa({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ic,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var qo=function(e,t){return e==null?null:Ct(Ct(e).map(t))},ka={map:qo,forEach:qo,count:function(e){return e?Ct(e).length:0},only:function(e){var t=Ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ct},ac=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}ac(e,t,n,r)};var Zo=O.unmount;function Ea(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=xa({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ea(r,t,n)})),e}function Ma(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ma(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Gn(){this.__u=0,this.o=null,this.__b=null}function Ta(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $a(e){var t,n,r,s=null;function o(i){if(t||(t=e()).then(function(a){a&&(s=a.default||a),r=!0},function(a){n=a,r=!0}),n)throw n;if(!r)throw t;return s?m(s,i):null}return o.displayName="Lazy",o.__f=!0,o}function dn(){this.i=null,this.l=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Zo&&Zo(e)},(Gn.prototype=new et).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var s=Ta(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ma(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Gn.prototype.componentWillUnmount=function(){this.o=[]},Gn.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]=Ea(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&m(Fe,null,e.fallback);return s&&(s.__u&=-33),[m(Fe,null,t.__a?null:e.children),s]};var Ko=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function uc(e){return this.getChildContext=function(){return e.context},e.children}function lc(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Lt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(s,o){this.childNodes.push(s),t.h.insertBefore(s,o)},removeChild:function(s){this.childNodes.splice(this.childNodes.indexOf(s)>>>1,1),t.h.removeChild(s)}}}Lt(m(uc,{context:t.context},e.__v),t.v)}function Ia(e,t){var n=m(lc,{__v:e,h:t});return n.containerInfo=t,n}(dn.prototype=new et).__a=function(e){var t=this,n=Ta(t.__v),r=t.l.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),Ko(t,e,r)):s()};n?n(o):o()}},dn.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ct(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},dn.prototype.componentDidUpdate=dn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ko(e,n,t)})};var Da=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,cc=/^(?: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]/,dc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fc=/[A-Z0-9]/g,mc=typeof document<"u",hc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ba(e,t,n){return t.__k==null&&(t.textContent=""),Lt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Va(e,t,n){return Hs(e,t),typeof n=="function"&&n(),e?e.__c:null}et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Yo=O.event;function pc(){}function wc(){return this.cancelBubble}function _c(){return this.defaultPrevented}O.event=function(e){return Yo&&(e=Yo(e)),e.persist=pc,e.isPropagationStopped=wc,e.isDefaultPrevented=_c,e.nativeEvent=e};var no,gc={enumerable:!1,configurable:!0,get:function(){return this.class}},Qo=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||mc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||hc(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":dc.test(i)&&(i=l):l=i="oninput":o&&cc.test(i)?i=i.replace(fc,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Ct(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Ct(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",gc)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Da,Qo&&Qo(e)};var Xo=O.__r;O.__r=function(e){Xo&&Xo(e),no=e.__c};var ei=O.diffed;O.diffed=function(e){ei&&ei(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),no=null};var Oa={ReactCurrentDispatcher:{current:{readContext:function(e){return no.__n[e.__c].props.value},useCallback:Ws,useContext:Js,useDebugValue:qs,useDeferredValue:Xs,useEffect:kn,useId:Zs,useImperativeHandle:js,useInsertionEffect:to,useLayoutEffect:En,useMemo:er,useReducer:Vr,useRef:Gs,useState:Nn,useSyncExternalStore:Ys,useTransition:eo}}},bc="18.3.1";function La(e){return m.bind(null,e)}function tr(e){return!!e&&e.$$typeof===Da}function Pa(e){return tr(e)&&e.type===Fe}function Ra(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ua(e){return tr(e)?zs.apply(null,arguments):e}function Ha(e){return!!e.__k&&(Lt(null,e),!0)}function za(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ga=function(e,t){return e(t)},ja=function(e,t){return e(t)},Wa=Fe,Ja=tr,qa={useState:Nn,useId:Zs,useReducer:Vr,useEffect:kn,useLayoutEffect:En,useInsertionEffect:to,useTransition:eo,useDeferredValue:Xs,useSyncExternalStore:Ys,startTransition:Qs,useRef:Gs,useImperativeHandle:js,useMemo:er,useCallback:Ws,useContext:Js,useDebugValue:qs,version:"18.3.1",Children:ka,render:Ba,hydrate:Va,unmountComponentAtNode:Ha,createPortal:Ia,createElement:m,createContext:va,createFactory:La,cloneElement:Ua,createRef:pa,Fragment:Fe,isValidElement:tr,isElement:Ja,isFragment:Pa,isMemo:Ra,findDOMNode:za,Component:et,PureComponent:xr,memo:Aa,forwardRef:Na,flushSync:ja,unstable_batchedUpdates:Ga,StrictMode:Wa,Suspense:Gn,SuspenseList:dn,lazy:$a,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Oa};const yc=Object.freeze(Object.defineProperty({__proto__:null,Children:ka,Component:et,Fragment:Fe,PureComponent:xr,StrictMode:Wa,Suspense:Gn,SuspenseList:dn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Oa,cloneElement:Ua,createContext:va,createElement:m,createFactory:La,createPortal:Ia,createRef:pa,default:qa,findDOMNode:za,flushSync:ja,forwardRef:Na,hydrate:Va,isElement:Ja,isFragment:Pa,isMemo:Ra,isValidElement:tr,lazy:$a,memo:Aa,render:Ba,startTransition:Qs,unmountComponentAtNode:Ha,unstable_batchedUpdates:Ga,useCallback:Ws,useContext:Js,useDebugValue:qs,useDeferredValue:Xs,useEffect:kn,useErrorBoundary:rc,useId:Zs,useImperativeHandle:js,useInsertionEffect:to,useLayoutEffect:En,useMemo:er,useReducer:Vr,useRef:Gs,useState:Nn,useSyncExternalStore:Ys,useTransition:eo,version:bc},Symbol.toStringTag,{value:"Module"})),Sc=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-l-4{border-left-width:4px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-primary-focus:focus{--tw-ring-color: var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}`;function tt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function vc(e){return e!=null&&typeof e.GetEnumerator=="function"}function Fc(e){return e!=null&&typeof e.CompareTo=="function"}function Cc(e){return e!=null&&typeof e.Equals=="function"}function xc(e){return e!=null&&typeof e.GetHashCode=="function"}function Ns(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){Ns(e)&&e.Dispose()}function Ce(){return null}function Ar(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Ac{constructor(t){this.iter=t,this.current=Ce()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function se(e){return vc(e)?e.GetEnumerator():new Ac(e[Symbol.iterator]())}function Or(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Nc{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function G(e,t){return e.toString(10).padStart(t,"0")}function kc(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function ti(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Ec(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Zt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Bt{static id(t){return Bt.idMap.has(t)||Bt.idMap.set(t,++Bt.count),Bt.idMap.get(t)}}Bt.idMap=new WeakMap;Bt.count=0;function ro(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function yt(e){return e*2654435761|0}function Mc(e){return ro(e.toString(32))}function nr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function Tc(e){return e.getTime()}function $c(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Nt(e[r]);return nr(n)}function Nt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return yt(e);case"bigint":return Mc(e);case"string":return ro(e);default:{if(xc(e))return e.GetHashCode();if(tt(e))return $c(e);if(e instanceof Date)return Tc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Nt(r));return nr(n)}else return yt(Bt.id(e))}}}function ks(e,t,n){if(e==null)return t==null;if(t==null||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 Za(e,t){return ks(e,t,he)}function Ic(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!he(e[n[s]],t[r[s]]))return!1;return!0}function he(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Cc(e)?e.Equals(t):tt(e)?tt(t)&&Za(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ka(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Ic(e,t)}function Ka(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ti(e),r=t.getTime()+ti(t)),n===r?0:n<r?-1:1}function rr(e,t){return e===t?0:e<t?-1:1}function Dc(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Ya(e,t){return Dc(e,t,je)}function Bc(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=je(e[i],t[i]),o!==0)return o}return 0}function je(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Fc(e)?e.CompareTo(t):tt(e)?tt(t)?Ya(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ka(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Bc(e,t):-1}function F(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Vc(e){tt(e)?e.splice(0):e.clear()}const Lr=new WeakMap;function j(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Lr.set(t,e),t}function L(e){return Lr.get(e)??(t=>n=>e(t,n))}function Es(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Lr.set(t,e),t}function us(e){return Lr.get(e)??(t=>n=>r=>e(t,n,r))}function Oc(e){let t=0,n="[";for(const r of e){if(t===0)n+=nt(r);else if(t===100){n+="; ...";break}else n+="; "+nt(r);t++}return n+"]"}function nt(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Oc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+nt(o,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Lc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=nt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>nt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class N{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Lc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Nt(n));return t.splice(0,0,yt(this.tag)),nr(t)}Equals(t){return this===t?!0:Ar(this,t)&&this.tag===t.tag?Za(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ar(this,t)?this.tag===t.tag?Ya(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Pc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Rc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+nt(n)).join(`
3
+ `)+" }"}function Uc(e){const t=Object.values(e).map(n=>Nt(n));return nr(t)}function Hc(e,t){if(e===t)return!0;if(Ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!he(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function zc(e,t){if(e===t)return 0;if(Ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=je(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class ${toJSON(){return Pc(this)}toString(){return Rc(this)}GetHashCode(){return Uc(this)}Equals(t){return Hc(this,t)}CompareTo(t){return zc(this,t)}}class We{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Gc{constructor(t){this.message=t}}function jc(e){return e instanceof Gc||e instanceof Error}function Wc(e){return e instanceof Promise}function Nr(e){return jc(e)||Wc(e)?e:new Error(String(e))}const so=nt(Sc),y=qa,Mn=Symbol("numeric");function Qa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Mn])}function Jc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ms(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Mn]().multiply(t)}function Sr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Mn]().toFixed(t)}function kr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Mn]().toPrecision(t)}function Er(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Mn]().toExponential(t)}function Mr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Mn]().toHex()}const qc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Zc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Kc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Yc=["January","February","March","April","May","June","July","August","September","October","November","December"];function $e(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function ni(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Qc(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function oo(e,t,n){let r=0,s=0,o="";const i=n?sr(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=$e(t,r,"d"),r+=s,s){case 1:o+=si(i);break;case 2:o+=G(si(i),2);break;case 3:o+=qc[ai(i)];break;case 4:o+=Zc[ai(i)];break}break;case"f":if(s=$e(t,r,"f"),r+=s,s<=3){const b=10**(3-s);o+=G(Math.floor(mr(i)/b),s)}else s<=7&&(o+=(""+mr(i)).padEnd(s,"0"));break;case"F":if(s=$e(t,r,"F"),r+=s,s<=3){const b=10**(3-s),g=Math.floor(mr(i)/b);g!=0&&(o+=G(g,s))}else if(s<=7){const b=mr(i);b!=0&&(o+=G(b,3))}break;case"g":s=$e(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=$e(t,r,"h"),r+=s,s){case 1:o+=fr(i)%12;break;case 2:o+=G(fr(i)%12,2);break}break;case"H":switch(s=$e(t,r,"H"),r+=s,s){case 1:o+=fr(i);break;case 2:o+=G(fr(i),2);break}break;case"K":switch(s=$e(t,r,"K"),r+=s,s){case 1:switch(ri(i)){case 1:o+="Z";break;case 2:o+=pn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=$e(t,r,"m"),r+=s,s){case 1:o+=oi(i);break;case 2:o+=G(oi(i),2);break}break;case"M":switch(s=$e(t,r,"M"),r+=s,s){case 1:o+=hr(i);break;case 2:o+=G(hr(i),2);break;case 3:o+=Kc[hr(i)-1];break;case 4:o+=Yc[hr(i)-1];break}break;case"s":switch(s=$e(t,r,"s"),r+=s,s){case 1:o+=ii(i);break;case 2:o+=G(ii(i),2);break}break;case"t":switch(s=$e(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=$e(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=G(i.getFullYear()%100,2);break;case 3:o+=G(i.getFullYear(),3);break;case 4:o+=G(i.getFullYear(),4);break;case 5:o+=G(i.getFullYear(),5);break}break;case"z":s=$e(t,r,"z"),r+=s;let l="";switch(ri(i)){case 1:l="+00:00";break;case 2:l=pn(i.getTimezoneOffset()*-6e4);break;case 0:l=pn(ad(i).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${G(f,2)}`;break;default:o+=`${u}${G(f,2)}:${G(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[h,p]=Qc(t,r);o+=h,r+=p;break;case"%":const w=ni(t,r);if(w>=0&&w!==37)r+=2,o+=oo(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const _=ni(t,r);if(_>=0)r+=2,o+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function ri(e){return e.kind||0}function pn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+G(n,2)+":"+G(r,2)}function Tr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Xc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return G(e.getFullYear(),4)+"-"+G(e.getMonth()+1,2)+"-"+G(e.getDate(),2)+"T"+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)+(n?pn(e.getTimezoneOffset()*-6e4):"")}}function ed(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+pn(t)}function td(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+pn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Tr(n,"first");case"T":case"t":return Tr(n,"second");case"O":case"o":return ed(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return oo(n,t,!0)}function nd(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Tr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Tr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Xc(e,n);default:throw new Error("Unrecognized Date print format")}else return oo(e,t,n)}function Pr(e,t,n){return e.offset!=null?td(e,t):nd(e,t)}function sr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function rd(){return sr(-621355968e5,1)}function Xa(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function sd(e,t=!1){const[n,r]=Xa(e),s=r!=null?t&&r==="Z"?1:2:0;return sr(n.getTime(),s)}function od(e,t){try{return t.contents=sd(e),!0}catch{return!1}}function id(e){return e.kind===1?e:sr(e.getTime(),1)}function ad(e){return e.kind===2?e:sr(e.getTime(),2)}function si(e){return e.kind===1?e.getUTCDate():e.getDate()}function fr(e){return e.kind===1?e.getUTCHours():e.getHours()}function mr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function oi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function hr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ii(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ai(e){return e.kind===1?e.getUTCDay():e.getDay()}function eu(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function io(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ud(e,t,n=0){return e.lastIndex=n,e.test(t)}function ui(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function ao(e,t,n,r,s=0){function o(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=eu(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),l=ui(e,a),u=ui.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const Ln=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ld=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function tu(e,t){return Jc(e,t)<0}function pe(e){return{input:e,cont:dd(e)}}function uo(e,t){return typeof t=="string"?e(t):t.cont(e)}function Vt(e){return uo(t=>console.log(t),e)}function vn(e){return uo(t=>t,e)}function nu(e){return uo(t=>{throw new Error(t)},e)}function cd(e,t,n,r,s){let o="";if(t=t||"",s=s||"",Qa(e))switch(s.toLowerCase()!=="x"&&(tu(e,0)?(e=Ms(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=Sr(e,r);break;case"g":case"G":e=r!=null?kr(e,r):kr(e);break;case"e":case"E":e=r!=null?Er(e,r):Er(e);break;case"x":e=Mr(e);break;case"X":e=Mr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Pr(e):e=nt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Jn(e,n-o.length,l,a),e=o+e):e=Jn(o+e,n,l,a)}return e}function ru(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,h,p]=l[0];let w=c;if(s>=0)w=s,s=-1;else if(w==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}i+=a[0],i+=cd(u,f,w,h,p),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):ru(e,a,l,i,s)}}function dd(e){return t=>{Ln.lastIndex=0;const n=[],r=[];let s=0,o=Ln.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=Ln.lastIndex,Ln.lastIndex-=1,o=Ln.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),ru(t,n,r))}}function fd(e,...t){let n;return n=e,n.replace(ld,(r,s,o,i,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Qa(u))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,u=Sr(u,a);break;case"g":case"G":u=a!=null?kr(u,a):kr(u);break;case"e":case"E":u=a!=null?Er(u,a):Er(u);break;case"p":case"P":a=a??2,u=Sr(Ms(u,100),a)+" %";break;case"d":case"D":u=a!=null?ls(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ls(Mr(u),a,"0"):Mr(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,p)=>{tu(u,0)&&(u=Ms(u,-1),f="-"),p=p==null?"":p.substring(1),u=Sr(u,Math.max(p.length,0));let[w,_]=u.split(".");_||(_="");const b=h.replace(/,/g,"").replace(/^#+/,"").length;w=ls(w,b,"0");const g=p.replace(/#+$/,"").length;if(g>_.length?_=hd(_,g,"0"):g<_.length&&(_=_.substring(0,g)+_.substring(g).replace(/0+$/,"")),h.indexOf(",")>0){const x=w.length%3,v=Math.floor(w.length/3);let Q=x>0?w.substr(0,x)+(v>0?",":""):"";for(let de=0;de<v;de++)Q+=w.substr(x+de*3,3)+(de<v-1?",":"");w=Q}return _.length>0?w+"."+_:w}),u=f+u}}else u instanceof Date?u=Pr(u,l||i):u=nt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Jn(String(u),Math.abs(o)," ",o<0)),u})}function md(e){return typeof e!="string"||e.length===0}function su(e){return typeof e!="string"||/^\s*$/.test(e)}function P(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Jn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function ls(e,t,n){return Jn(e,t,n)}function hd(e,t,n){return Jn(e,t,n,!0)}function pd(e,t,n){return e.replace(new RegExp(io(t),"g"),n)}function wd(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(io),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&i.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(u).trim():e.substring(u)),l=!1):i.push(c)),u=a.lastIndex}}while(l);return i}function _d(e,...t){if(t.length===0)return e.trim();const n="["+io(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Yt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Nt(this.value)}Equals(t){return t==null?!1:he(this.value,t instanceof Yt?t.value:t)}CompareTo(t){return t==null?1:je(this.value,t instanceof Yt?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof Yt?e.value:e}function It(e){return e instanceof Yt?e.value:e}function we(e){return e==null||e instanceof Yt?new Yt(e):e}function ou(e){return e==null?[]:[C(e)]}function He(e,t){return e!=null?C(e):t}function gd(e,t){return e!=null?C(e):t()}function or(e,t){return t!=null?we(e(C(t))):void 0}class bd{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Re{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Y(this)}GetHashCode(){return iu(this)}Equals(t){return Ts(this,t)}}function Ve(e){return e.generics!=null?e.generics:[]}function iu(e){const t=ro(e.fullname),n=Ve(e).map(iu);return nr([t,...n])}function Ts(e,t){return e.fullname===""?t.fullname===""&&ks(qn(e),qn(t),([n,r],[s,o])=>n===s&&Ts(r,o)):e.fullname===t.fullname&&ks(Ve(e),Ve(t),Ts)}function li(e,t,n,r){return new Re(e,t,n,r)}function be(e,t,n,r){return new Re(e,t,n,void 0,r)}function yd(...e){return new Re("",void 0,void 0,void 0,()=>e)}function Sd(e,t,n,r){const s=new Re(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new bd(s,a,o[a],i))});return s}function ue(e){return new Re("Microsoft.FSharp.Core.FSharpOption`1",[e])}function lo(e){return new Re("Microsoft.FSharp.Collections.FSharpList`1",[e])}const vd=new Re("System.Object"),B=new Re("System.String"),wt=new Re("System.Boolean");function wn(e){if(Array.isArray(e))return e[0];if(e instanceof Re){const t=ir(e);if(t!=null)return wn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Y(e){const t=ir(e);return t!=null?Y(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Y(n)).join(",")+"]"}function au(e){return ir(e)!=null}function ir(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function uu(e){return e.generics!=null&&e.generics.length>0}function co(e){return e.enumCases!=null&&e.enumCases.length>0}function lu(e){return e.generics==null?e:new Re(e.fullname,e.generics.map(()=>vd))}function cu(e){var t;return(t=e.generics)==null?void 0:t[0]}function sn(e){if(co(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Fd(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function on(e,t){const n=parseInt(t,10);return Fd(e,isNaN(n)?t:n)[1]}function du(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function qn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function fu(e){if(fo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function mu(e){return e instanceof Re?e.cases!=null:e instanceof N}function hu(e){return e instanceof Re?e.fields!=null:e instanceof $}function fo(e){return e.fullname.startsWith("System.Tuple")}function Cd(e,t){const r=du(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function pu(e){return e.fields==null?[]:e.fields}function xd(e,t){return e[t[0]]}function Ad(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Nd(e,t){const n=qn(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,o],i)=>(r[s]=t[i],r),{})}function kd(e,t){return e}const Ed="The index was outside the range of elements in the collection.",wu="Collection was empty.";function _u(e,t){return new Array(t)}function $s(e,t){return e>t?e:t}function Md(e,t){return e<t?e:t}function Rr(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function Tn(e,t,n){const r=t.length|0,s=_u(n,r);for(let o=0;o<=r-1;o++)_t(s,o,e(re(o,t)));return s}function Td(e,t){const n=_u(t,1);return _t(n,0,e),n}function $d(e){return e.slice().reverse()}function Id(e,t){return t.find(e)}function gu(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(re(s,t));if(o!=null){const i=C(o);r.push(i)}}return he(n,Ce())?r:Tn(s=>s,r,n)}function Ur(e,t,n){const r=e;return n.reduce(r,t)}function re(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function _t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function bu(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class _e extends ${constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+P("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u);if(he(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,l=o,u=l.tail;if(u!=null){const f=C(u);if(i>18)return a|0;r=i+1,s=(a<<1)+Nt(l.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u),h=je(i.head,a.head)|0;if(h===0){s=f,o=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Bd(this)}[Symbol.iterator](){return Or(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return se(this)}}class Dd{constructor(t){this.xs=t,this.it=this.xs,this.current=Ce()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=C(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Ce()}Dispose(){}}function Bd(e){return new Dd(e)}function ie(){return new _e(Ce(),void 0)}function ar(e,t){return new _e(e,t)}function Pt(e){return e.tail==null}function yu(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=C(i);continue e}else return s|0}})(0,e)|0}function Qt(e){if(e.tail!=null)return e.head;throw new Error(wu+"\\nParameter name: list")}function ge(e){const t=e.tail;if(t!=null)return C(t);throw new Error(wu+"\\nParameter name: list")}function Vd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=C(a);continue e}else throw new Error(Ed+"\\nParameter name: index")}})(0,e)}function ce(){return ie()}function Oe(e,t){return ar(e,t)}function D(e){return ar(e,ie())}function H(e){return Pt(e)}function Kt(e){return yu(e)}function I(e){return Qt(e)}function U(e){return ge(e)}function $n(e){const t=yu(e)|0,n=Rr(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!Pt(a)){_t(n,i,Qt(a)),s=i+1,o=ge(a);continue e}break}})(0,e),n}function rt(e,t,n){let r=t,s=n;for(;!Pt(s);)r=e(r,I(s)),s=ge(s);return r}function mo(e){return rt((t,n)=>ar(n,t),ie(),e)}function Od(e,t,n){return bu(e,$n(t),n)}function Ld(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,l=o,u=i;if(Pt(u))return l;s=a+1,o=e(a,l,Qt(u)),i=ge(u);continue e}})(0,t,n)}function Pd(e,t,n,r){let s=t,o=n,i=r;for(;!Pt(o)&&!Pt(i);)s=e(s,Qt(o),Qt(i)),o=ge(o),i=ge(i);return s}function Xt(e,t){rt((n,r)=>{e(r)},void 0,t)}function ee(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ar(re(r,e),n);return n}function S(e){return ee(e,ie())}function Rd(e){let t,n;if(tt(e))return S(e);if(e instanceof _e)return e;{const r=ie();let s=r;const o=se(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new _e(l,void 0),t.tail=n,n)}}finally{Z(o)}const i=s,a=ie();return i.tail=a,ge(r)}}function Ud(e){const t=ie();let n=t;const r=i=>{n=rt((a,l)=>{const u=new _e(l,void 0);return a.tail=u,u},n,i)};if(tt(e))e.forEach(r);else if(e instanceof _e)Xt(r,e);else{const i=se(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Z(i)}}const s=n,o=ie();return s.tail=o,ge(t)}function ho(e,t){return rt((n,r)=>ar(r,n),t,mo(e))}function Hd(e,t){const n=ie(),r=Ld((o,i,a)=>{const l=new _e(e(o,a),void 0);return i.tail=l,l},n,t),s=ie();return r.tail=s,ge(n)}function en(e,t){const n=ie(),r=rt((o,i)=>{const a=new _e(e(i),void 0);return o.tail=a,a},n,t),s=ie();return r.tail=s,ge(n)}function zd(e,t){return(r=>{e:for(;;){const s=r;if(Pt(s))return;{const o=e(Qt(s));if(o==null){r=ge(s);continue e}else return o}}})(t)}function Gd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(Pt(i))return;if(e(Qt(i)))return o;r=o+1,s=ge(i);continue e}})(0,t)}function Zn(e,t){return Vd(t,e)}function jd(e,t){const n=ie(),r=rt((o,i)=>{if(e(i)){const a=new _e(i,void 0);return o.tail=a,a}else return o},n,t),s=ie();return r.tail=s,ge(n)}function Wd(e,t){const n=ie(),r=ie(),s=n,o=rt((l,u)=>{let f,c;const h=l[0],p=l[1];return e(u)?[(f=new _e(u,void 0),h.tail=f,f),p]:[h,(c=new _e(u,void 0),p.tail=c,c)]},[s,r],t),i=ie();o[0].tail=i;const a=ie();return o[1].tail=a,[ge(s),ge(r)]}function Jd(e,t){const n=ie(),r=rt((o,i)=>{const a=e(i);if(a==null)return o;{const l=new _e(C(a),void 0);return o.tail=l,l}},n,t),s=ie();return r.tail=s,ge(n)}function Su(e,t){return rt((n,r)=>n&&e(r),!0,t)}function qd(e,t){const n=$n(t);return n.sort(e),S(n)}function Zd(e,t,n){return qd((r,s)=>n.Compare(e(r),e(s)),t)}class Kd extends ${constructor(t){super(),this.SmsfChoice=t}}function Yd(){return be("SuperSelection.UI.ApiClient.Dto.SMSFChoiceResponse",[],Kd,()=>[["SmsfChoice",ue(Xd())]])}class Qd extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=l,this.MemberFamilyName=u}}function Xd(){return be("SuperSelection.UI.ApiClient.Dto.SMSFChoiceDto",[],Qd,()=>[["Abn",B],["FundName",B],["FundAddress",tf()],["Bsb",B],["BankAccountName",B],["BankAccountNumber",B],["ElectronicServiceAddress",B],["MemberFirstName",ue(B)],["MemberFamilyName",ue(B)]])}class ef extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function tf(){return be("SuperSelection.UI.ApiClient.Dto.AustralianFundAddressDto",[],ef,()=>[["AddressLine1",B],["AddressLine2",ue(B)],["City",B],["State",B],["Postcode",B]])}class nf extends ${constructor(t){super(),this.BankDetails=t}}function rf(){return be("SuperSelection.UI.ApiClient.Dto.BsbLookupResponse",[],nf,()=>[["BankDetails",ue(of())]])}class sf extends ${constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function of(){return be("SuperSelection.UI.ApiClient.Dto.BankDetailsDto",[],sf,()=>[["Bsb",B],["Bank",B],["Branch",B]])}class af extends ${constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function uf(){return be("SuperSelection.UI.ApiClient.Dto.OwnFundChoiceDto",[],af,()=>[["Usi",B],["FundName",B],["MemberNumber",B],["MemberFirstName",ue(B)],["MemberFamilyName",ue(B)]])}class lf extends ${constructor(t){super(),this.OwnFundChoice=t}}function cf(){return be("SuperSelection.UI.ApiClient.Dto.OwnFundChoiceResponse",[],lf,()=>[["OwnFundChoice",ue(uf())]])}class df extends ${constructor(t){super(),this.EmployersDefaultFund=t}}function ff(){return be("SuperSelection.UI.ApiClient.Dto.DefaultFundResponse",[],df,()=>[["EmployersDefaultFund",ue(hf())]])}class mf extends ${constructor(t,n){super(),this.FundUsi=t,this.FundName=n}}function hf(){return be("SuperSelection.UI.ApiClient.Dto.DefaultFundDetailDto",[],mf,()=>[["FundUsi",B],["FundName",B]])}class pf extends ${constructor(t,n){super(),this.Data=t,this.Result=n}}function wf(){return be("SuperSelection.UI.ApiClient.Dto.AustralianSuperFundListDto",[],pf,()=>[["Data",lo(yf())],["Result",gf()]])}class _f extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function gf(){return Sd("SuperSelection.UI.ApiClient.Dto.AustralianSuperFundListResultDto",[],_f,()=>[[],[]])}class bf extends ${constructor(t,n,r,s,o,i,a,l){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=l}}function yf(){return be("SuperSelection.UI.ApiClient.Dto.AustralianSuperFundDto",[],bf,()=>[["Abn",B],["FundName",B],["Usi",B],["ProductName",B],["ContributionRestriction",wt],["DateFrom",li("System.DateTimeOffset")],["DateTo",li("System.DateTimeOffset")],["IsActive",ue(wt)]])}class Sf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperSelection","SuperCampaign"]}}class vf extends ${constructor(t,n,r,s){super(),this.PlacementId=t,this.ShownFunds=n,this.PromotedDefaultFundPosition=r,this.PromotedFundsConfigSource=s}}class ci extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault"]}}class vu extends ${constructor(t,n,r,s){super(),this.FundUsi=t,this.FundName=n,this.PageName=r,this.SuperCampaignEnabled=s}}function Ff(){return be("SuperSelection.UI.ApiClient.Dto.SuperFundPdsViewedDetail",[],vu,()=>[["FundUsi",ue(B)],["FundName",B],["PageName",B],["SuperCampaignEnabled",wt]])}class Fu extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function Cf(){return be("SuperSelection.UI.ApiClient.Dto.ViewedPromotedFundDetail",[],Fu,()=>[["FundUsi",ue(B)],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",lo(B)],["DefaultFundUsiSet",ue(B)],["SuperCampaignEnabled",wt],["PlacementId",B],["SourceOfJoin",ue(B)],["IsDefaultExclusive",ue(wt)]])}class Cu extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function xf(){return be("SuperSelection.UI.ApiClient.Dto.ViewedPromotedDefaultFundDetail",[],Cu,()=>[["FundUsi",B],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",lo(B)],["DefaultFundUsiSet",ue(B)],["SuperCampaignEnabled",wt],["PlacementId",B],["SourceOfJoin",ue(B)],["IsDefaultExclusive",ue(wt)]])}class xu extends ${constructor(t,n){super(),this.IsDefinedBenefitsEligible=t,this.SuperCampaignEnabled=n}}function Af(){return be("SuperSelection.UI.ApiClient.Dto.SuperFundDisclaimerViewedDetail",[],xu,()=>[["IsDefinedBenefitsEligible",B],["SuperCampaignEnabled",wt]])}class Au extends ${constructor(t){super(),this.SuperCampaignEnabled=t}}function Nf(){return be("SuperSelection.UI.ApiClient.Dto.SuperFundDisclaimerAcceptedDetail",[],Au,()=>[["SuperCampaignEnabled",wt]])}class di extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PromotedFund","PromotedDefaultFund"]}}class Mt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperFundPdsViewed","SuperFundDetailViewed","SuperFundDisclaimerViewed","SuperFundDisclaimerAccepted","SuperCampaignActivationSucceeded","SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class fi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class mi extends ${constructor(t,n){super(),this.Type=t,this.Reason=n}}function kf(e){return new d(0,[e])}function Nu(e){return new d(1,[e])}class d extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gt(e,t){return t.tag===0?kf(e(t.fields[0])):Nu(t.fields[0])}function Ef(e,t){return t.tag===0?e(t.fields[0]):Nu(t.fields[0])}class Mf{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class ur extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ur.prototype)}}class po{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>po.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function vt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ur);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Nr(n))}});else try{e(t)}catch(n){t.onError(Nr(n))}}}function Tf(e,t){return vt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Nr(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function $f(e){return vt(t=>t.onSuccess(e))}class If{Bind(t,n){return Tf(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return vt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return $f(t)}ReturnFrom(t){return t}TryFinally(t,n){return vt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return vt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(Nr(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return vt(t=>t.onSuccess(void 0))}}const k=new If;function Df(e){return new ku(0,[e])}function Bf(e){return new ku(1,[e])}class ku extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Vf(e){return Df(e)}function Of(e){return Bf(e)}function cs(e){}function Lf(e){return Mu(t=>e.then(t[0]).catch(n=>(n instanceof ur?t[2]:t[1])(n)))}const Pf=new Mf;function Eu(e){return vt(t=>{e({onSuccess:n=>t.onSuccess(Vf(n)),onError:n=>t.onSuccess(Of(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Mu(e){return vt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Tu(e){return vt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ur)})})}function Rf(e,t){return Uf(e,t)}function $u(e,t){return Rf(e,t)}function Uf(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new po;e({onSuccess:t||cs,onError:cs,onCancel:cs,cancelToken:s||Pf,trampoline:o})}class Hf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function zf(e,t){t.Subscribe(new Hf(e))}class Gf{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Wf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class jf extends Gf{}function Wf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class Jf{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new jf}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,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}}function qf(e,t){console.error(we(e),t)}function Zf(e,t){let n,r=new Jf(e);r.AutoReset=!1,n=r,zf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function hi(e,t,n){Xt(r=>{try{r(t)}catch(s){e(s)}},n)}function A(){return ce()}function tn(e,t){return en(n=>r=>{n(s=>{r(e(s))})},t)}function _n(e){return Ud(e)}function ke(e){return D(e)}function Kf(e,t,n,r,s){return D(o=>{e(k.Delay(()=>k.Bind(Eu(t(n)),i=>{const a=i;return o(a.tag===1?s(a.fields[0]):r(a.fields[0])),k.Zero()})))})}function Ot(e,t,n,r){return D(s=>{e(k.Delay(()=>k.Bind(Eu(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),k.Zero()})))})}function Ft(e){Zf(1,t=>{$u(e)})}class Yf extends ${constructor(t,n,r,s,o,i,a,l,u,f,c,h,p){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=h,this.BankAccountNumber=p}}function wo(e,t){const n={detail:t};return new CustomEvent(e,n)}const Qf=wo("smsf-loaded",{sender:"super-smsf"}),Xf=wo("smsf-cancelled",{sender:"super-smsf"});function em(e){return wo("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:It(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class _o extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function go(e){let t;t=e.tag===1?Xf:e.tag===2?em(e.fields[0]):Qf,document.dispatchEvent(t)}function tm(e){return ke(t=>{go(new _o(2,[e]))})}function nm(){return ke(e=>{go(new _o(0,[]))})}function rm(){return ke(e=>{go(new _o(1,[]))})}class Ye extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Iu extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Un extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class lr extends ${constructor(t,n,r,s,o,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=l}}class cn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Du extends ${constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function sm(e){throw new Error(e)}const om="Enumeration already finished.",im="Enumeration has not started. Call MoveNext.",Bu="The input sequence has an insufficient number of elements.",am="Reset is not supported on this enumerator.";function um(){throw new Error(am)}function bo(){throw new Error(im)}function Is(){throw new Error(om)}class lm{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=se(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+nt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Or(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function cm(e){return new lm(e)}class dm{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"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"(){um()}Dispose(){this.dispose()}}function Hr(e,t,n){return new dm(e,t,n)}function fm(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=C(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=C(t);try{Z(a)}finally{t=void 0}}};return Hr(()=>(r?s&&Is():bo(),o!=null?C(o):Is()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=C(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=we(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Z(c)}finally{n=void 0}}else{const c=C(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),se(a)):(i(),l=!1)}else t=se(e)}return C(l)}},()=>{s||i()})}function mm(e,t){return Hr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Vu(e,t,n){let r=!1,s,o=we(e());const i=()=>{if(o!=null){const l=C(o);try{n(l)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return Hr(()=>(r||bo(),s!=null?C(s):Is()),()=>{if(r||(r=!0),o!=null){const l=C(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},i)}function hm(e,t){let n,r=t;return Hr(()=>{if(n!=null){const s=C(n)[0];return C(n)[1],s}else return bo()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function pm(e,t){t==null&&sm(e)}function In(e){return cm(e)}function Rt(e){return pm("source",e),se(e)}function M(e){return In(()=>se(e()))}function Ou(e){return In(()=>fm(e))}function wm(e,t){return In(()=>hm(e,t))}function le(){return M(()=>new Array(0))}function T(e){return M(()=>Td(e))}function _m(e){return e instanceof _e?$n(e):Array.from(e)}function X(e){return tt(e)?S(e):e instanceof _e?e:Rd(e)}function gm(e,t,n){return In(()=>Vu(e,t,n))}function Lu(e,t,n){return In(()=>{let r=-1;return Vu(e,s=>(r=r+1|0,t(r,s)),n)})}function W(e,t){return Ou([e,t])}function bm(e,t,n){const r=Rt(t);try{const s=Rt(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{Z(s)}}finally{Z(r)}}function an(e,t,n){const r=Rt(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function zr(e,t,n){const r=Rt(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function Gr(e,t){zr((n,r)=>{e(r)},void 0,t)}function Ee(e,t){return gm(()=>Rt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?we(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function ym(e,t){return Lu(()=>Rt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?we(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function Sm(e){return M(()=>$d(_m(e)))}function vm(e,t){return In(()=>{const n=Rt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bu+"\\nParameter name: source");return mm(()=>{},n)}catch(r){throw Z(n),r}})}function Fm(e,t){return Lu(()=>Rt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return we(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bu+"\\nParameter name: source")}else return},n=>{Z(n)})}function Cm(e,t){return M(()=>Ou(Ee(e,t)))}class Pu{constructor(t,n){this.k=t,this.v=n}}function $r(e,t){return new Pu(e,t)}function ve(e){return e.k}function Le(e){return e.v}class ae extends Pu{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function vr(e,t,n,r,s){return new ae(e,t,n,r,s)}function ye(e){return e.left}function Se(e){return e.right}function qt(e){return e.h}function Ru(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof ae){const o=s;e=Ru(n+1,ye(o)),t=Se(o);continue e}else return n+1|0}else return n|0}}function xm(e){return Ru(0,e)}function qe(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=C(a);i=c instanceof ae?(s=c,qt(s)):1}else i=0;let l;const u=r;if(u!=null){const c=C(u);l=c instanceof ae?(o=c,qt(o)):1}else l=0;const f=(i<l?l:i)|0;return f===0?$r(t,n):vr(t,n,e,r,f+1)}function pi(e,t,n,r){let s,o,i,a,l,u,f,c,h;const p=e;if(p!=null){const b=C(p);h=b instanceof ae?(s=b,qt(s)):1}else h=0;let w;const _=r;if(_!=null){const b=C(_);w=b instanceof ae?(o=b,qt(o)):1}else w=0;if(w>h+2){const b=C(r);if(b instanceof ae){const g=b;if(i=ye(g),(i!=null?(a=C(i),a instanceof ae?(l=a,qt(l)):1):0)>h+1){const x=C(ye(g));if(x instanceof ae){const v=x;return qe(qe(e,t,n,ye(v)),ve(v),Le(v),qe(Se(v),ve(g),Le(g),Se(g)))}else throw new Error("internal error: Map.rebalance")}else return qe(qe(e,t,n,ye(g)),ve(g),Le(g),Se(g))}else throw new Error("internal error: Map.rebalance")}else if(h>w+2){const b=C(e);if(b instanceof ae){const g=b;if(u=Se(g),(u!=null?(f=C(u),f instanceof ae?(c=f,qt(c)):1):0)>w+1){const x=C(Se(g));if(x instanceof ae){const v=x;return qe(qe(ye(g),ve(g),Le(g),ye(v)),ve(v),Le(v),qe(Se(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qe(ye(g),ve(g),Le(g),qe(Se(g),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qe(e,t,n,r)}function Fn(e,t,n,r){if(r!=null){const s=C(r),o=e.Compare(t,ve(s))|0;if(s instanceof ae){const i=s;return o<0?pi(Fn(e,t,n,ye(i)),ve(i),Le(i),Se(i)):o===0?vr(t,n,ye(i),Se(i),qt(i)):pi(ye(i),ve(i),Le(i),Fn(e,t,n,Se(i)))}else return o<0?vr(t,n,void 0,r,2):o===0?$r(t,n):vr(t,n,r,void 0,2)}else return $r(t,n)}function Uu(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,ve(i))|0;if(a===0)return we(Le(i));if(i instanceof ae){const l=i;e=r,t=s,n=a<0?ye(l):Se(l);continue e}else return}else return}}function Am(e,t,n){const r=Uu(e,t,n);if(r==null)throw new Error;return C(r)}function Nm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,ve(i))|0;if(i instanceof ae){const l=i;if(a<0){e=r,t=s,n=ye(l);continue e}else{if(a===0)return!0;e=r,t=s,n=Se(l);continue e}}else return a===0}else return!1}}function Hu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof ae){const o=s;Hu(n,ye(o)),n(ve(o),Le(o)),e=n,t=Se(o);continue e}else n(ve(s),Le(s))}break}}function km(e,t){Hu(e,t)}function Em(e,t,n){let r=n;km((s,o)=>{_t(t,r,[s,o]),r=r+1|0},e)}function Mm(e,t){return rt((n,r)=>Fn(e,r[0],r[1],n),void 0,t)}function Tm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Fn(r,i[0],i[1],s),n=o;continue e}else return s}}function $m(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=re(r,t);n=Fn(e,s[0],s[1],n)}return n}function zu(e,t){if(tt(t))return $m(e,t);if(t instanceof _e)return Mm(e,t);{const n=se(t);try{return Tm(e,void 0,n)}finally{Z(n)}}}class Im extends ${constructor(t,n){super(),this.stack=t,this.started=n}}function Gu(e){e:for(;;){const t=e;if(H(t))return ce();{const n=U(t),r=I(t);if(r!=null){const s=C(r);if(s instanceof ae){const o=s;e=ee([ye(o),$r(ve(o),Le(o)),Se(o)],n);continue e}else return t}else{e=n;continue e}}}}function wi(e){return new Im(Gu(D(e)),!1)}function Dm(){throw new Error("enumeration not started")}function Bm(){throw new Error("enumeration already finished")}function _i(e){if(e.started){const t=e.stack;if(H(t))return Bm();if(I(t)!=null){const n=C(I(t));if(n instanceof ae)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ve(n),Le(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Dm()}function Vm(e){if(e.started){const t=e.stack;if(H(t))return!1;if(I(t)!=null){if(C(I(t))instanceof ae)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Gu(U(t)),!H(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function gi(e){let t=wi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _i(t)},"System.Collections.IEnumerator.get_Current"(){return _i(t)},"System.Collections.IEnumerator.MoveNext"(){return Vm(t)},"System.Collections.IEnumerator.Reset"(){t=wi(e)},Dispose(){}}}class Ir{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Rm(this)|0}Equals(t){const n=this;if(t instanceof Ir){const r=t,s=se(n);try{const o=se(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return he(l[0],u[0])&&he(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{Z(o)}}finally{Z(s)}}else return!1}toString(){return"map ["+P("; ",Ee(n=>fd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return gi(this.tree)}[Symbol.iterator](){return Or(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return gi(this.tree)}CompareTo(t){const n=this;if(t instanceof Ir)return bm((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:je(s[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return yi(n,t[0])&&he(bi(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Em(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ds(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ds(this)|0}get size(){return ds(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ee(n=>[n[0],n[1]],this)}get(t){return bi(this,t)}has(t){return yi(this,t)}keys(){return Ee(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ee(n=>n[1],this)}forEach(t,n){const r=this;Gr(s=>{t(s[1],s[0],r)},r)}}function jr(e,t){return new Ir(e,t)}function Om(e){return jr(e,void 0)}function Lm(e,t,n){return jr(e.comparer,Fn(e.comparer,t,n,e.tree))}function bi(e,t){return Am(e.comparer,t,e.tree)}function ds(e){return xm(e.tree)}function yi(e,t){return Nm(e.comparer,t,e.tree)}function Pm(e,t){return Uu(e.comparer,t,e.tree)}function Rm(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=se(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Nt(s[0]))|0,n=t(n,Nt(s[1]))|0}}finally{Z(r)}return n|0}function ju(e,t,n){return Lm(n,e,t)}function Wu(e,t){return Pm(t,e)}function Um(e,t){return jr(t,zu(t,e))}function Hm(e,t){return jr(t,zu(t,e))}function yo(e){return Om(e)}function pr(e){return new Iu("Content-Type",e)}function zm(e){return new Iu("Authorization",e)}const Gt=new lr("",new Ye(0,[]),ce(),!1,void 0,void 0,void 0,new Un(0,[]));new Du(0,"","","",yo({Compare:rr}),new cn(0,[""]));function Si(e,t){return md(t)?new Array(0):wd(t,[e],void 0,0)}function Gm(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"}}function it(e){return new lr(e,Gt.method,Gt.headers,Gt.withCredentials,Gt.overridenMimeType,Gt.overridenResponseType,Gt.timeout,Gt.content)}function at(e,t){return new lr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xe(e,t){return new lr(t.url,t.method,ho(t.headers,D(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function wr(e,t){return new lr(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ut(e){return Mu(t=>{const n=new XMLHttpRequest;n.open(Gm(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,h,p,w;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(p=n.responseType,p===""?new cn(0,[n.responseText]):p==="text"?new cn(0,[n.responseText]):p==="arraybuffer"?new cn(2,[n.response]):p==="blob"?new cn(1,[n.response]):new cn(3,[n.response])),w=Hm(gu(_=>{const b=S(Si(":",_));if(!H(b))return[I(b).toLocaleLowerCase(),P(":",U(b)).trim()]},Si(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:rr}),new Du(f,l,c,n.responseURL,w,h)))};const r=se(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Z(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(we(a.fields[0]));break}case 3:{n.send(we(a.fields[0]));break}case 2:{n.send(we(a.fields[0]));break}default:n.send()}})}class E extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Pe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function vi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ju(e,t){switch(e.tag){case 2:return ao(vi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return vi(t)}}const jm=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Fi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Wm=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Jm(e){function t(r){return r.replace(Fi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(jm.test(n))return _d(n,"{","}","(",")");if(Fi.test(n))return t(n);if(Wm.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function qm(e,t){try{return t.contents=Jm(e),!0}catch{return!1}}function fs(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var Ds;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Ds||(Ds={}));function Zm(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Ci(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 Km(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.")}}function Ym(e,t){if(t&Ds.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}}function Qm(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||Ym(o,t),!Km(n).test(i))return Zm(s,n)}return null}function Xm(e,t,n,r,s){const o=Qm(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,l]=Ci(!0,r);!n&&o.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[u,f]=Ci(n,r);if(i>=u&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Dn(e,t,n,r,s){try{return s.contents=Xm(e,t,n,r),!0}catch{return!1}}function qu(e,t){eh(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function eh(e){if(e!=null&&e!==0){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.")}}function th(){return qu(-621355968e5,0)}function nh(e){const[t,n]=Xa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return qu(t.getTime(),r)}function rh(e,t){try{return t.contents=nh(e),!0}catch{return!1}}function cr(e){return e<0?Math.ceil(e):Math.floor(e)}function xi(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return sh(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function sh(e){return Number(BigInt(e)/10000n)}function oh(e){return cr(e/864e5)}function ih(e){return cr(e%864e5/36e5)}function ah(e){return cr(e%36e5/6e4)}function uh(e){return cr(e%6e4/1e3)}function lh(e){return cr(e%1e3)}function ch(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(oh(e)),s=Math.abs(ih(e)),o=Math.abs(ah(e)),i=Math.abs(uh(e)),a=Math.abs(lh(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:G(s,2)}:${G(o,2)}:${G(i,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+G(a,3):"."+kc(a,3,7)}`}function dh(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return xi(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*xi(s,l,u,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function fh(e,t){try{return t.contents=dh(e),!0}catch{return!1}}class Zu{constructor(t){this.k=t}}function Ie(e){return new Zu(e)}function V(e){return e.k}class z extends Zu{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function De(e,t,n,r){return new z(e,t,n,r)}function K(e){return e.left}function J(e){return e.right}function fn(e){return e.h}function Ku(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=K(o),t=Ku(J(o),r+1);continue e}else return r+1|0}else return r|0}}function mh(e){return Ku(e,0)}function Ze(e,t,n){let r,s,o;const i=e;if(i!=null){const f=C(i);o=f instanceof z?(r=f,fn(r)):1}else o=0;let a;const l=n;if(l!=null){const f=C(l);a=f instanceof z?(s=f,fn(s)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ie(t):De(t,e,n,u+1)}function Ai(e,t,n){let r,s,o,i,a,l,u,f,c;const h=e;if(h!=null){const _=C(h);c=_ instanceof z?(r=_,fn(r)):1}else c=0;let p;const w=n;if(w!=null){const _=C(w);p=_ instanceof z?(s=_,fn(s)):1}else p=0;if(p>c+2){const _=C(n);if(_ instanceof z){const b=_;if(o=K(b),(o!=null?(i=C(o),i instanceof z?(a=i,fn(a)):1):0)>c+1){const g=C(K(b));if(g instanceof z){const x=g;return Ze(Ze(e,t,K(x)),V(x),Ze(J(x),V(b),J(b)))}else throw new Error("internal error: Set.rebalance")}else return Ze(Ze(e,t,K(b)),V(b),J(b))}else throw new Error("internal error: Set.rebalance")}else if(c>p+2){const _=C(e);if(_ instanceof z){const b=_;if(l=J(b),(l!=null?(u=C(l),u instanceof z?(f=u,fn(f)):1):0)>p+1){const g=C(J(b));if(g instanceof z){const x=g;return Ze(Ze(K(b),V(b),K(x)),V(x),Ze(J(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ze(K(b),V(b),Ze(J(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ze(e,t,n)}function Cn(e,t,n){if(n!=null){const r=C(n),s=e.Compare(t,V(r))|0;if(r instanceof z){const o=r;return s<0?Ai(Cn(e,t,K(o)),V(o),J(o)):s===0?n:Ai(K(o),V(o),Cn(e,t,J(o)))}else{const o=e.Compare(t,V(r))|0;return o<0?De(t,void 0,n,2):o===0?n:De(t,n,void 0,2)}}else return Ie(t)}function Yu(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,V(i))|0;if(i instanceof z){const l=i;if(a<0){e=r,t=s,n=K(l);continue e}else{if(a===0)return!0;e=r,t=s,n=J(l);continue e}}else return a===0}else return!1}}function Qu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof z){const o=s;Qu(n,K(o)),n(V(o)),e=n,t=J(o);continue e}else n(V(s))}break}}class hh extends ${constructor(t,n){super(),this.stack=t,this.started=n}}function Xu(e){e:for(;;){const t=e;if(H(t))return ce();{const n=I(t),r=U(t);if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=ee([K(o),Ie(V(o)),J(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ni(e){return new hh(Xu(D(e)),!1)}function ph(){throw new Error("Enumeration not started")}function wh(){throw new Error("Enumeration already started")}function ki(e){if(e.started){const t=e.stack;if(H(t))return wh();if(I(t)!=null){const n=C(I(t));return V(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ph()}function _h(e){if(e.started){const t=e.stack;if(H(t))return!1;if(I(t)!=null){if(C(I(t))instanceof z)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Xu(U(t)),!H(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function Ei(e){let t=Ni(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ki(t)},"System.Collections.IEnumerator.get_Current"(){return ki(t)},"System.Collections.IEnumerator.MoveNext"(){return _h(t)},"System.Collections.IEnumerator.Reset"(){t=Ni(e)},Dispose(){}}}function gh(e,t,n){e:for(;;){const r=e,s=t,o=n;if(H(s))return H(o)?0:-1;if(H(o))return 1;if(I(o)!=null)if(I(s)!=null){const i=C(I(s)),a=C(I(o));if(i instanceof z){const l=i;if(K(l)==null)if(a instanceof z){const u=a;if(K(u)==null){const f=r.Compare(V(l),V(u))|0;if(f!==0)return f|0;e=r,t=Oe(J(l),U(s)),n=Oe(J(u),U(o));continue e}else{let f,c,h,p,w;switch(H(s)?H(o)?f=2:I(o)!=null?(f=1,p=U(o),w=C(I(o))):f=2:I(s)!=null?(f=0,c=U(s),h=C(I(s))):H(o)?f=2:I(o)!=null?(f=1,p=U(o),w=C(I(o))):f=2,f){case 0:if(h instanceof z){const _=h;e=r,t=ee([K(_),De(V(_),void 0,J(_),0)],c),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(h))],c),n=o;continue e}case 1:if(w instanceof z){const _=w;e=r,t=s,n=ee([K(_),De(V(_),void 0,J(_),0)],p);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(w))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(V(l),V(a))|0;if(u!==0)return u|0;e=r,t=Oe(J(l),U(s)),n=Oe(void 0,U(o));continue e}else{let u,f,c,h,p;switch(H(s)?H(o)?u=2:I(o)!=null?(u=1,h=U(o),p=C(I(o))):u=2:I(s)!=null?(u=0,f=U(s),c=C(I(s))):H(o)?u=2:I(o)!=null?(u=1,h=U(o),p=C(I(o))):u=2,u){case 0:if(c instanceof z){const w=c;e=r,t=ee([K(w),De(V(w),void 0,J(w),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(c))],f),n=o;continue e}case 1:if(p instanceof z){const w=p;e=r,t=s,n=ee([K(w),De(V(w),void 0,J(w),0)],h);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(p))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof z){const l=a;if(K(l)==null){const u=r.Compare(V(i),V(l))|0;if(u!==0)return u|0;e=r,t=Oe(void 0,U(s)),n=Oe(J(l),U(o));continue e}else{let u,f,c,h,p;switch(H(s)?H(o)?u=2:I(o)!=null?(u=1,h=U(o),p=C(I(o))):u=2:I(s)!=null?(u=0,f=U(s),c=C(I(s))):H(o)?u=2:I(o)!=null?(u=1,h=U(o),p=C(I(o))):u=2,u){case 0:if(c instanceof z){const w=c;e=r,t=ee([K(w),De(V(w),void 0,J(w),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(c))],f),n=o;continue e}case 1:if(p instanceof z){const w=p;e=r,t=s,n=ee([K(w),De(V(w),void 0,J(w),0)],h);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(p))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(V(i),V(a))|0;if(l!==0)return l|0;e=r,t=U(s),n=U(o);continue e}}else{C(I(o));let i,a,l,u,f;switch(H(s)?H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2:I(s)!=null?(i=0,a=U(s),l=C(I(s))):H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2,i){case 0:if(l instanceof z){const c=l;e=r,t=ee([K(c),De(V(c),void 0,J(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(l))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),De(V(c),void 0,J(c),0)],u);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(I(s)!=null){C(I(s));let i,a,l,u,f;switch(H(s)?H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2:I(s)!=null?(i=0,a=U(s),l=C(I(s))):H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2,i){case 0:if(l instanceof z){const c=l;e=r,t=ee([K(c),De(V(c),void 0,J(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Ie(V(l))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),De(V(c),void 0,J(c),0)],u);continue e}else{e=r,t=s,n=ee([void 0,Ie(V(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(s),n=U(o);continue e}}}function Mi(e,t,n){return t==null?n==null?0:-1:n==null?1:gh(e,D(t),D(n))|0}function bh(e,t,n){let r=n;Qu(s=>{_t(t,r,s),r=r+1|0},e)}function yh(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Cn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function Sh(e,t){return Ur((n,r)=>Cn(e,r,n),void 0,t)}function vh(e,t){return rt((n,r)=>Cn(e,r,n),void 0,t)}function el(e,t){if(tt(t))return Sh(e,t);if(t instanceof _e)return vh(e,t);{const n=se(t);try{return yh(e,void 0,n)}finally{Z(n)}}}class So{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return xh(this)|0}Equals(t){let n;const r=this;return t instanceof So&&(n=t,Mi(gn(r),Qe(r),Qe(n))===0)}toString(){return"set ["+P("; ",Ee(n=>nt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Mi(gn(n),Qe(n),Qe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Yu(gn(n),t,Qe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){bh(Qe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ms(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ms(this)|0}GetEnumerator(){return Ei(Qe(this))}[Symbol.iterator](){return Or(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ei(Qe(this))}get size(){return ms(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return tl(this,t)}keys(){return Ee(n=>n,this)}values(){return Ee(n=>n,this)}entries(){return Ee(n=>[n,n],this)}forEach(t,n){const r=this;Gr(s=>{t(s,s,r)},r)}}function Wr(e,t){return new So(e,t)}function gn(e){return e.comparer}function Qe(e){return e.tree}function Fh(e){return Wr(e,void 0)}function Ch(e,t){return Wr(gn(e),Cn(gn(e),t,Qe(e)))}function ms(e){return mh(Qe(e))}function tl(e,t){return Yu(gn(e),t,Qe(e))}function xh(e){let t=0;const n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Nt(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function Bs(e,t){return tl(t,e)}function Ah(e,t){return Ch(t,e)}function Nh(e){return Fh(e)}function kh(e,t){return Wr(t,el(t,e))}function Eh(e,t){return Wr(t,el(t,e))}function Pn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
- `:" ")}}function vh(e,t){const n=t.tag===2?On(t.fields[0],t.fields[1],!0):t.tag===1?On(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?On(t.fields[0],t.fields[1],!0):t.tag===4?On(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function Mh(e,t){const n=t.tag===2?Pn(t.fields[0],t.fields[1],!0):t.tag===1?Pn(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?Pn(t.fields[0],t.fields[1],!0):t.tag===4?Pn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
8
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
9
 
10
10
  `+P(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:On(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Yu(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new d(1,[vh(s[0],s[1])])}else return new d(0,[r.fields[0]])}function on(e,t){try{return Yu("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Qu(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new E(0,["a string",t])]])}function Fh(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new E(0,["a single character string",t])]])}else return new d(1,[[e,new E(0,["a char",t])]])}function Ch(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Rm(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a guid",t])]])}else return new d(1,[[e,new E(0,["a guid",t])]])}function xh(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new E(0,["null",t])]])}const ki=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new d(0,[(s+128&255)-128]):new d(1,[[n,new E(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new E(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!1,8,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["a sbyte",r])]])}else return new d(1,[[n,new E(0,["a sbyte",r])]])},Ei=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new d(0,[s&255]):new d(1,[[n,new E(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new E(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!0,8,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["a byte",r])]])}else return new d(1,[[n,new E(0,["a byte",r])]])},Mi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new d(0,[(s+32768&65535)-32768]):new d(1,[[n,new E(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new E(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!1,16,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an int16",r])]])}else return new d(1,[[n,new E(0,["an int16",r])]])},Ti=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new d(0,[s&65535]):new d(1,[[n,new E(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new E(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!0,16,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an uint16",r])]])}else return new d(1,[[n,new E(0,["an uint16",r])]])},$i=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new d(0,[~~s]):new d(1,[[n,new E(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new E(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!1,32,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an int",r])]])}else return new d(1,[[n,new E(0,["an int",r])]])},Ii=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new d(0,[s>>>0]):new d(1,[[n,new E(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new E(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[$n(r,511,!0,32,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an uint32",r])]])}else return new d(1,[[n,new E(0,["an uint32",r])]])};function Ah(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new E(0,["a boolean",t])]])}function Nh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new E(0,["a float",t])]])}function kh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new E(0,["a float32",t])]])}function Eh(e,t){if(typeof t=="string"){let n,r=Zc();return n=[Yc(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[Qc(n[1])]):new d(1,[[e,new E(0,["a datetime",t])]])}else return new d(1,[[e,new E(0,["a datetime",t])]])}function Mh(e,t){if(typeof t=="string"){let n,r=qm();return n=[Zm(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new E(0,["a datetime",t])]])}function Th(e,t){if(typeof t=="string"){let n,r=0;return n=[sh(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a timespan",t])]])}else return new d(1,[[e,new E(0,["a timespan",t])]])}function Di(e,t,n,r){let s;const o=n+".["+Jt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,re(e,i)):new d(1,[[o,new E(5,["a longer array. Need index `"+Jt(e)+"` but there are only `"+(s=i.length,Jt(s))+"` entries",r])]])}else return new d(1,[[o,new E(0,["an array",r])]])}function $h(e,t,n){return n==null?new d(0,[void 0]):wt(Se,e(t,n))}function Bi(e,t,n){if(Array.isArray(n)){let r=-1;return wt(lo,Rr((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Jt(r)+"]",o);return i.tag===0?new d(0,[Oe(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[le()]),n))}else return new d(1,[[t,new E(0,["a list",n])]])}function Ih(e,t,n){if(Array.isArray(n)){let r=-1;return wt(mm,Rr((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Jt(r)+"]",o);return i.tag===0?new d(0,[W([i.fields[0]],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[[]]),n))}else return new d(1,[[t,new E(0,["a seq",n])]])}function Vi(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return Rr((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],u=e(t+".["+Jt(r)+"]",i);return u.tag===0?(pt(a,r,u.fields[0]),new d(0,[a])):new d(1,[u.fields[0]])}else return o},new d(0,[Pr(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new E(0,["an array",n])]])}function Dh(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(H(i))return new d(1,[[t,new E(7,[a])]]);{const u=Yu(t,j(D(i)),n);if(u.tag===1){s=U(i),o=co(a,T(u.fields[0]));continue e}else return new d(0,[u.fields[0]])}}})(e,le())}function Bh(e,t,n){return new d(0,[e])}function Oi(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new d(1,[s.fields[0]])}function Vh(e,t,n,r){const s=t(n,r);return s.tag===1?new d(1,[s.fields[0]]):new d(0,[e(s.fields[0])])}function Oh(e,t){let n;const r=e;return n=s=>o=>Di(0,r,s,o),s=>o=>Oi(Ns(i=>{let a;const u=t;return a=l=>f=>Di(1,u,l,f),l=>f=>Oi((c,w,h)=>Bh([i,c]),j(a),l,f)}),j(n),s,o)}function Lh(e){return Im(e,{Compare:Ge})}function Ph(e){return Sh(e,{Compare:Ge})}function Rh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?hu((r,s)=>{const o=r[0];return s.tag===0?wt(i=>Oe(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[le()])):new d(1,[[t,new E(0,["an object",n])]])}function Uh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Hr((s,o)=>{if(s.tag===0){const i=e(n,o);if(i.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new d(0,[Oe([i.fields[0],a.fields[0]],s.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return s},new d(0,[le()]),Object.keys(r)):new d(1,[[n,new E(0,["an object",r])]])}function Xu(e,t,n,r){let s;const o=t.length+e|0;if(o!==r.length)return new d(1,[[n,new E(6,[(s=r.length|0,yn(je("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[le()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const u=i.fields[0],l=yn(je("%s[%i]"))(n)(a),f=re(a-e,t),c=re(a,r);i=wt(w=>Oe(w,u),f(l)(c))}return wt(lo,i)}}function Li(e,t,n,r,s,o){const i=xd(a=>hn(a)===r,iu(n));if(i!=null){const a=i,u=En(l=>Xe(e,t,!1,l[1]),cu(a));return wt(l=>gd(a,Mn(l)),u.length===0&&o.length<=1?new d(0,[le()]):Xu(1,u,s,o))}else return new d(1,[[s,new E(6,["Cannot find case "+r+" in "+Q(n)])]])}function Pi(e,t,n,r){let s;const o=new We(ve());let i;const a=Q(r);i=a===""?e:Ru(a,o,e);let u;if(lu(r)){const l=En(f=>[Hu(t,hn(f)),Xe(i,t,!1,f[1])],jn(r));u=f=>c=>wt(w=>bd(r,Mn(w)),Rh(l,f,c))}else if(uu(r))u=l=>f=>{if(typeof f=="string")return Li(i,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Sf(w=>Li(i,t,r,w,l,c),Qu(l+"[0]",re(0,c)))}else return new d(1,[[l,new E(0,["a string or array",f])]])};else if(n)u=l=>f=>new d(1,[[l,new E(2,["an extra coder for "+Q(r),f])]]);else throw new Error((s=Q(r),yn(je(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Pn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function nl(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new d(1,[Mh(s[0],s[1])])}else return new d(0,[r.fields[0]])}function un(e,t){try{return nl("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function rl(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new E(0,["a string",t])]])}function Th(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new E(0,["a single character string",t])]])}else return new d(1,[[e,new E(0,["a char",t])]])}function $h(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[qm(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a guid",t])]])}else return new d(1,[[e,new E(0,["a guid",t])]])}function Ih(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new E(0,["null",t])]])}const Ti=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new d(0,[(s+128&255)-128]):new d(1,[[n,new E(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new E(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!1,8,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["a sbyte",r])]])}else return new d(1,[[n,new E(0,["a sbyte",r])]])},$i=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new d(0,[s&255]):new d(1,[[n,new E(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new E(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!0,8,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["a byte",r])]])}else return new d(1,[[n,new E(0,["a byte",r])]])},Ii=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new d(0,[(s+32768&65535)-32768]):new d(1,[[n,new E(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new E(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!1,16,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an int16",r])]])}else return new d(1,[[n,new E(0,["an int16",r])]])},Di=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new d(0,[s&65535]):new d(1,[[n,new E(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new E(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!0,16,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an uint16",r])]])}else return new d(1,[[n,new E(0,["an uint16",r])]])},Bi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new d(0,[~~s]):new d(1,[[n,new E(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new E(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!1,32,new We(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an int",r])]])}else return new d(1,[[n,new E(0,["an int",r])]])},Vi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new d(0,[s>>>0]):new d(1,[[n,new E(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new E(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[Dn(r,511,!0,32,new We(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new E(0,["an uint32",r])]])}else return new d(1,[[n,new E(0,["an uint32",r])]])};function Dh(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new E(0,["a boolean",t])]])}function Bh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new E(0,["a float",t])]])}function Vh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new E(0,["a float32",t])]])}function Oh(e,t){if(typeof t=="string"){let n,r=rd();return n=[od(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[id(n[1])]):new d(1,[[e,new E(0,["a datetime",t])]])}else return new d(1,[[e,new E(0,["a datetime",t])]])}function Lh(e,t){if(typeof t=="string"){let n,r=th();return n=[rh(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new E(0,["a datetime",t])]])}function Ph(e,t){if(typeof t=="string"){let n,r=0;return n=[fh(t,new We(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new E(0,["a timespan",t])]])}else return new d(1,[[e,new E(0,["a timespan",t])]])}function Oi(e,t,n,r){let s;const o=n+".["+Zt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,re(e,i)):new d(1,[[o,new E(5,["a longer array. Need index `"+Zt(e)+"` but there are only `"+(s=i.length,Zt(s))+"` entries",r])]])}else return new d(1,[[o,new E(0,["an array",r])]])}function Rh(e,t,n){return n==null?new d(0,[void 0]):gt(we,e(t,n))}function Li(e,t,n){if(Array.isArray(n)){let r=-1;return gt(mo,Ur((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Zt(r)+"]",o);return i.tag===0?new d(0,[Oe(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[ce()]),n))}else return new d(1,[[t,new E(0,["a list",n])]])}function Uh(e,t,n){if(Array.isArray(n)){let r=-1;return gt(Sm,Ur((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Zt(r)+"]",o);return i.tag===0?new d(0,[W([i.fields[0]],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[[]]),n))}else return new d(1,[[t,new E(0,["a seq",n])]])}function Pi(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return Ur((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+Zt(r)+"]",i);return l.tag===0?(_t(a,r,l.fields[0]),new d(0,[a])):new d(1,[l.fields[0]])}else return o},new d(0,[Rr(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new E(0,["an array",n])]])}function Hh(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(H(i))return new d(1,[[t,new E(7,[a])]]);{const l=nl(t,j(I(i)),n);if(l.tag===1){s=U(i),o=ho(a,D(l.fields[0]));continue e}else return new d(0,[l.fields[0]])}}})(e,ce())}function zh(e,t,n){return new d(0,[e])}function Ri(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new d(1,[s.fields[0]])}function Gh(e,t,n,r){const s=t(n,r);return s.tag===1?new d(1,[s.fields[0]]):new d(0,[e(s.fields[0])])}function jh(e,t){let n;const r=e;return n=s=>o=>Oi(0,r,s,o),s=>o=>Ri(Es(i=>{let a;const l=t;return a=u=>f=>Oi(1,l,u,f),u=>f=>Ri((c,h,p)=>zh([i,c]),j(a),u,f)}),j(n),s,o)}function Wh(e){return Um(e,{Compare:je})}function Jh(e){return Eh(e,{Compare:je})}function qh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?bu((r,s)=>{const o=r[0];return s.tag===0?gt(i=>Oe(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[ce()])):new d(1,[[t,new E(0,["an object",n])]])}function Zh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?zr((s,o)=>{if(s.tag===0){const i=e(n,o);if(i.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new d(0,[Oe([i.fields[0],a.fields[0]],s.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return s},new d(0,[ce()]),Object.keys(r)):new d(1,[[n,new E(0,["an object",r])]])}function sl(e,t,n,r){let s;const o=t.length+e|0;if(o!==r.length)return new d(1,[[n,new E(6,[(s=r.length|0,vn(pe("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],u=vn(pe("%s[%i]"))(n)(a),f=re(a-e,t),c=re(a,r);i=gt(h=>Oe(h,l),f(u)(c))}return gt(mo,i)}}function Ui(e,t,n,r,s,o){const i=Id(a=>wn(a)===r,du(n));if(i!=null){const a=i,l=Tn(u=>Xe(e,t,!1,u[1]),pu(a));return gt(u=>Ad(a,$n(u)),l.length===0&&o.length<=1?new d(0,[ce()]):sl(1,l,s,o))}else return new d(1,[[s,new E(6,["Cannot find case "+r+" in "+Y(n)])]])}function Hi(e,t,n,r){let s;const o=new We(Ce());let i;const a=Y(r);i=a===""?e:ju(a,o,e);let l;if(hu(r)){const u=Tn(f=>[Ju(t,wn(f)),Xe(i,t,!1,f[1])],qn(r));l=f=>c=>gt(h=>Nd(r,$n(h)),qh(u,f,c))}else if(mu(r))l=u=>f=>{if(typeof f=="string")return Ui(i,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Ef(h=>Ui(i,t,r,h,u,c),rl(u+"[0]",re(0,c)))}else return new d(1,[[u,new E(0,["a string or array",f])]])};else if(n)l=u=>f=>new d(1,[[u,new E(2,["an extra coder for "+Y(r),f])]]);else throw new Error((s=Y(r),vn(pe(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
13
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=u,u}function Xe(e,t,n,r){let s,o,i,a;const u=Q(r),l=Uu(u,e);if(l==null)if(nu(r)){const f=Xe(e,t,!1,nr(r));return c=>w=>Vi(j(f),c,w)}else if(ao(r))switch(Q(ou(r))){case"System.SByte":return c=>w=>{const h=r,p=c,_=w,b=ki(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,g.toString())]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>w=>{const h=r,p=c,_=w,b=Ei(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,g.toString())]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>w=>{const h=r,p=c,_=w,b=Mi(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,Sc(g))]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>w=>{const h=r,p=c,_=w,b=Ti(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,g.toString())]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>w=>{const h=r,p=c,_=w,b=$i(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,Jt(g))]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>w=>{const h=r,p=c,_=w,b=Ii(p)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return sn(g,nn(h),{Equals:(A,v)=>A===v,GetHashCode:gt})?new d(0,[rn(h,g.toString())]):new d(1,[[p,new E(1,[Q(h),_,"Unkown value provided for the enum"])]])}};default:{const c=Q(r),w=Ya(je(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function Xe(e,t,n,r){let s,o,i,a;const l=Y(r),u=Wu(l,e);if(u==null)if(au(r)){const f=Xe(e,t,!1,ir(r));return c=>h=>Pi(j(f),c,h)}else if(co(r))switch(Y(cu(r))){case"System.SByte":return c=>h=>{const p=r,w=c,_=h,b=Ti(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,g.toString())]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const p=r,w=c,_=h,b=$i(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,g.toString())]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const p=r,w=c,_=h,b=Ii(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,Ec(g))]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const p=r,w=c,_=h,b=Di(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,g.toString())]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const p=r,w=c,_=h,b=Bi(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0]|0;return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,Zt(g))]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const p=r,w=c,_=h,b=Vi(w)(_);if(b.tag===1)return new d(1,[b.fields[0]]);{const g=b.fields[0];return an(g,sn(p),{Equals:(x,v)=>x===v,GetHashCode:yt})?new d(0,[on(p,g.toString())]):new d(1,[[w,new E(1,[Y(p),_,"Unkown value provided for the enum"])]])}};default:{const c=Y(r),h=nu(pe(`Cannot generate auto decoder for %s.
15
15
  Thoth.Json.Net only support the following enum types:
16
16
  - sbyte
17
17
  - byte
@@ -20,9 +20,9 @@ Thoth.Json.Net only support the following enum types:
20
20
  - int
21
21
  - uint32
22
22
  If you can't use one of these types, please pass an extra decoder.
23
- `))(c);return h=>w(h)}}else if(ru(r))if(uo(r)){const f=En(c=>Xe(e,t,!1,c),au(r));return c=>w=>Array.isArray(w)?wt(h=>yd(Mn(h)),Xu(0,f,c,w)):new d(1,[[c,new E(0,["an array",w])]])}else switch(Q(su(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Xe(e,t,!0,re(0,Ve(r))),c=>w=>$h(j(s),c,w);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Xe(e,t,!1,re(0,Ve(r))),c=>w=>Bi(j(o),c,w);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Xe(e,t,!1,re(0,Ve(r))),c=>w=>Ih(j(i),c,w);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Xe(e,t,!1,re(0,Ve(r))),w=Xe(e,t,!1,re(1,Ve(r)));let h;const p=S([_=>b=>Uh(j(c),j(w),_,b),(a=Oh(j(c),j(w)),_=>b=>Bi(j(a),_,b))]);return h=_=>b=>Dh(p,_,b),_=>b=>Vh(Lh,j(h),_,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Xe(e,t,!1,re(0,Ve(r)));return w=>h=>{const p=Vi(j(c),w,h);return p.tag===0?new d(0,[Ph(p.fields[0])]):new d(1,[p.fields[0]])}}default:return Pi(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>Ah(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>xh(f,c);case"System.String":return f=>c=>Qu(f,c);case"System.Char":return f=>c=>Fh(f,c);case"System.SByte":return ki;case"System.Byte":return Ei;case"System.Int16":return Mi;case"System.UInt16":return Ti;case"System.Int32":return $i;case"System.UInt32":return Ii;case"System.Double":return f=>c=>Nh(f,c);case"System.Single":return f=>c=>kh(f,c);case"System.DateTime":return f=>c=>Eh(f,c);case"System.DateTimeOffset":return f=>c=>Mh(f,c);case"System.TimeSpan":return f=>c=>Th(f,c);case"System.Guid":return f=>c=>Ch(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return Pi(e,t,n,r)}else{const f=l;return c=>w=>f.contents(c)(w)}}function Hh(e){return _o({Compare:Xn})}function an(e,t,n){const r=Ue(t,new Pe(0,[]));return Xe(Hh(),r,!1,e)}function zh(e){return e}const el=ve();function ze(e){const t={},n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t[r[0]]=r[1]}}finally{Z(n)}return t}function Gh(e){return Array.from(e)}function pr(e){return Array.from(e)}function jh(e){return Or(e,"O")}function Wh(e){return nh(e)}function qh(){return ve()}function Jh(e){return Or(e,"O")}function Wr(e,t){return JSON.stringify(t,void 0,Se(e))}function Zh(e){return t=>cd(tr(e,t),()=>el)}function Ri(e,t,n,r){let s;const o=new We(ve());let i;const a=Q(r);i=a===""?e:Ru(a,o,e);let u;if(lu(r)){const l=En(f=>{const c=Hu(t,hn(f)),w=bt(i,t,n,f[1]);return h=>p=>{const _=_d(h,f);return(!n||n&&_!=null)&&(p[c]=w(_)),p}},jn(r));u=f=>Hr((c,w)=>w(f)(c),{},l)}else if(uu(r))u=l=>{const f=wd(l,r),c=f[0],w=f[1],h=w.length|0;if(h===0)return hn(c);{const p=h|0,_=cu(c),b=Pr(new Array(p+1),0,p+1,null);pt(b,0,hn(c));for(let g=1;g<=p;g++){const A=bt(i,t,n,re(g-1,_)[1]);pt(b,g,A(re(g-1,w)))}return b}};else throw new Error((s=Q(r),yn(je(`Cannot generate auto encoder for %s. Please pass an extra encoder.
23
+ `))(c);return p=>h(p)}}else if(uu(r))if(fo(r)){const f=Tn(c=>Xe(e,t,!1,c),fu(r));return c=>h=>Array.isArray(h)?gt(p=>kd($n(p)),sl(0,f,c,h)):new d(1,[[c,new E(0,["an array",h])]])}else switch(Y(lu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Xe(e,t,!0,re(0,Ve(r))),c=>h=>Rh(j(s),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Xe(e,t,!1,re(0,Ve(r))),c=>h=>Li(j(o),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Xe(e,t,!1,re(0,Ve(r))),c=>h=>Uh(j(i),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Xe(e,t,!1,re(0,Ve(r))),h=Xe(e,t,!1,re(1,Ve(r)));let p;const w=S([_=>b=>Zh(j(c),j(h),_,b),(a=jh(j(c),j(h)),_=>b=>Li(j(a),_,b))]);return p=_=>b=>Hh(w,_,b),_=>b=>Gh(Wh,j(p),_,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Xe(e,t,!1,re(0,Ve(r)));return h=>p=>{const w=Pi(j(c),h,p);return w.tag===0?new d(0,[Jh(w.fields[0])]):new d(1,[w.fields[0]])}}default:return Hi(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>Dh(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Ih(f,c);case"System.String":return f=>c=>rl(f,c);case"System.Char":return f=>c=>Th(f,c);case"System.SByte":return Ti;case"System.Byte":return $i;case"System.Int16":return Ii;case"System.UInt16":return Di;case"System.Int32":return Bi;case"System.UInt32":return Vi;case"System.Double":return f=>c=>Bh(f,c);case"System.Single":return f=>c=>Vh(f,c);case"System.DateTime":return f=>c=>Oh(f,c);case"System.DateTimeOffset":return f=>c=>Lh(f,c);case"System.TimeSpan":return f=>c=>Ph(f,c);case"System.Guid":return f=>c=>$h(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return Hi(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function Kh(e){return yo({Compare:rr})}function ln(e,t,n){const r=He(t,new Pe(0,[]));return Xe(Kh(),r,!1,e)}function Yh(e){return e}const ol=Ce();function Ge(e){const t={},n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t[r[0]]=r[1]}}finally{Z(n)}return t}function Qh(e){return Array.from(e)}function _r(e){return Array.from(e)}function Xh(e){return Pr(e,"O")}function e0(e){return ch(e)}function t0(){return Ce()}function n0(e){return Pr(e,"O")}function Jr(e,t){return JSON.stringify(t,void 0,we(e))}function r0(e){return t=>gd(or(e,t),()=>ol)}function zi(e,t,n,r){let s;const o=new We(Ce());let i;const a=Y(r);i=a===""?e:ju(a,o,e);let l;if(hu(r)){const u=Tn(f=>{const c=Ju(t,wn(f)),h=St(i,t,n,f[1]);return p=>w=>{const _=xd(p,f);return(!n||n&&_!=null)&&(w[c]=h(_)),w}},qn(r));l=f=>zr((c,h)=>h(f)(c),{},u)}else if(mu(r))l=u=>{const f=Cd(u,r),c=f[0],h=f[1],p=h.length|0;if(p===0)return wn(c);{const w=p|0,_=pu(c),b=Rr(new Array(w+1),0,w+1,null);_t(b,0,wn(c));for(let g=1;g<=w;g++){const x=St(i,t,n,re(g-1,_)[1]);_t(b,g,x(re(g-1,h)))}return b}};else throw new Error((s=Y(r),vn(pe(`Cannot generate auto encoder for %s. Please pass an extra encoder.
24
24
 
25
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=u,u}function bt(e,t,n,r){const s=Q(r),o=Uu(s,e);if(o==null)if(nu(r)){const i=bt(e,t,n,nr(r));return a=>pr(ke(i,a))}else if(ao(r))switch(Q(ou(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Q(r);return Ya(je(`Cannot generate auto encoder for %s.
25
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function St(e,t,n,r){const s=Y(r),o=Wu(s,e);if(o==null)if(au(r)){const i=St(e,t,n,ir(r));return a=>_r(Ee(i,a))}else if(co(r))switch(Y(cu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Y(r);return nu(pe(`Cannot generate auto encoder for %s.
26
26
  Thoth.Json.Net only support the following enum types:
27
27
  - sbyte
28
28
  - byte
@@ -34,12 +34,12 @@ Thoth.Json.Net only support the following enum types:
34
34
  If you can't use one of these types, please pass an extra encoder.
35
35
 
36
36
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
37
- `))(a)}}else if(ru(r))if(uo(r)){const i=En(a=>bt(e,t,n,a),au(r));return a=>pr(fm((u,l)=>re(u,i)(l),a))}else{const i=Q(su(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new bc(()=>Zh(bt(e,t,n,re(0,Ve(r)))));return u=>u==null?el:a.Value(u)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=bt(e,t,n,re(0,Ve(r)));return u=>pr(ke(a,u))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=re(0,Ve(r)),u=bt(e,t,n,re(1,Ve(r)));if(Q(a)==="System.String"||Q(a)==="System.Guid")return l=>Hr((f,c)=>{const w=c;return f[w[0]]=u(w[1]),f},{},l);{let l;return l=bt(e,t,n,a),c=>pr(ke(w=>{const h=w;return[l(h[0]),u(h[1])]},c))}}else return Ri(e,t,n,r)}else switch(s){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return qh;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return Jh;case"System.DateTimeOffset":return jh;case"System.TimeSpan":return Wh;case"System.Guid":return zh;case"System.Object":return i=>i;default:return Ri(e,t,n,r)}else{const i=o;return a=>i.contents(a)}}function Kh(e){return _o({Compare:Xn})}function Hn(e,t,n,r){const s=Ue(t,new Pe(0,[])),o=Ue(r,!0);return bt(Kh(),s,o,e)}function Ui(e,t){return ze([["fundId",e],["placementId",t]])}function Yh(e){return Wr(0,e.tag===1?ze([["promotedDefault",Ui(e.fields[0],e.fields[1])]]):ze([["promoted",Ui(e.fields[0],e.fields[1])]]))}function Qh(e){return e.tag===1?ze([["PromotedDefaultFund",Hn(_f(),new Pe(1,[]),void 0,void 0)(e.fields[0])]]):ze([["PromotedFund",Hn(wf(),new Pe(1,[]),void 0,void 0)(e.fields[0])]])}function zt(e,t){return ze([["event",ze([[e,t]])]])}function Xh(e){return Wr(0,e.tag===1?zt("SuperFundDetailViewed",Qh(e.fields[0])):e.tag===2?zt("SuperFundDisclaimerViewed",Hn(gf(),new Pe(1,[]),void 0,void 0)(e.fields[0])):e.tag===3?zt("SuperFundDisclaimerAccepted",Hn(bf(),new Pe(1,[]),void 0,void 0)(e.fields[0])):e.tag===4?zt("SuperCampaignActivationSucceeded",ze([])):e.tag===5?zt("SuperCampaignActivationFailed",ze([["reason",e.fields[0]]])):e.tag===6?zt("SuperCampaignOperationFailed",ze([["reason",e.fields[0]]])):zt("SuperFundPdsViewed",Hn(pf(),new Pe(1,[]),void 0,void 0)(e.fields[0])))}function e0(e){return e.tag===1?"superCampaign":"superSelection"}function t0(e){return Wr(0,ze(X(M(()=>W($(["shownFunds",Gh(Xt(t=>t,e.ShownFunds))]),M(()=>W($(["promotedFundsConfigSource",e0(e.PromotedFundsConfigSource)]),M(()=>W($(["placementId",e.PlacementId]),M(()=>{const t=e.PromotedDefaultFundPosition;return t==null?ce():$(["promotedDefaultFundPosition",t])}))))))))))}function n0(e){return e.tag===1?"SuperCampaignOperationFailed":"SuperCampaignActivationFailed"}function r0(e){return Wr(0,ze([["type",n0(e.Type)],["reason",e.Reason]]))}class s0{constructor(t,n){this.baseUrl=`${t}/super-selection/backend`,this.authHeader=Bm(`Bearer ${n}`)}get GetSmsfChoice(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/super-choice/smsf`)))),n=>{const r=n;return r.statusCode===200?k.Return(on(j(an(zd(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve SMSF choice"]))})))}get BsbLookup(){const t=this;return n=>k.Delay(()=>k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)))),r=>{const s=r;return s.statusCode===200?k.Return(on(j(an(Zd(),new Pe(1,[]))),s.responseText)):k.Return(new d(1,["Failed to lookup BSB"]))}))}get IsRegulatedFundAbn(){const t=this;return n=>k.Delay(()=>k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)))),r=>{const s=r;return s.statusCode===200?k.Return(wt(o=>!o.Result,on(j(an(fd(["Result",ht]),new Pe(1,[]))),s.responseText))):k.Return(new d(1,["Failed to query ABN"]))}))}get GetOwnFundChoice(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/super-choice/byof`)))),n=>{const r=n;return r.statusCode===200?k.Return(on(j(an(tf(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve own fund choice"]))})))}get GetDefaultFund(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/super-choice/default`)))),n=>{const r=n;return r.statusCode===200?k.Return(on(j(an(rf(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve default fund choice"]))})))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Tt(t,5,k.Delay(()=>{const s=r==null?"":`&maxRecordCount=${r}`;return k.Bind(at(Ce(t.authHeader,it(new Ye(0,[]),ot(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${s}`)))),o=>{const i=o;return i.statusCode===200?k.Return(on(j(an(uf(),new Pe(1,[]))),i.responseText)):k.Return(new d(1,["Failed to retrieve fund list"]))})}))}}ClickPromotedTile(t){const n=this;return Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(at((r=(s=Ce(n.authHeader,it(new Ye(1,[]),ot(`${n.baseUrl}/v1.0/click-promoted-tile`))),Ce(mr("application/json"),s)),hr(new Pn(1,[Yh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track click promoted tile"]))})}))}PostSuperCampaignError(t){const n=this;return Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(at((r=(s=Ce(n.authHeader,it(new Ye(1,[]),ot(`${n.baseUrl}/v1.0/super-campaign/errors`))),Ce(mr("application/json"),s)),hr(new Pn(1,[r0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to post super campaign error"]))})}))}TrackAnalyticsEvent(t){const n=this;return Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(at((r=(s=Ce(n.authHeader,it(new Ye(1,[]),ot(`${n.baseUrl}/v1.0/analytics-events`))),Ce(mr("application/json"),s)),hr(new Pn(1,[Xh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track analytics event"]))})}))}ViewSuperFundPanel(t){const n=this;return Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(at((r=(s=Ce(n.authHeader,it(new Ye(1,[]),ot(`${n.baseUrl}/v1.0/view-super-fund-panel`))),Ce(mr("application/json"),s)),hr(new Pn(1,[t0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track view super fund panel"]))})}))}}function qr(e,t){return new s0(e,t)}function Tt(e,t,n){const r=s=>k.Delay(()=>k.Bind(n,o=>{const i=o;return i.tag===1?s>1?k.Bind(Au(1e3),()=>k.ReturnFrom(r(s-1))):k.Return(new d(1,[i.fields[0]])):k.Return(new d(0,[i.fields[0]]))}));return r(t)}function o0(){return le()}function bo(e){return P("/",e)}function i0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+bo(t),n])}function tl(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+bo(t),r])}}function a0(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+bo(n),s]);return}}function u0(e,t){Qt(n=>{tl(e,n[0],n[1])},t)}function Hi(e,t,n,r,s,o){return Qt(i=>{i0(e,i)},n),Qt(i=>{tl(e,i[0],i[1])},r),co(s,Pd(i=>a0(e,t,i[0],i[1]),o))}function l0(){return[le(),bh({Compare:Ge}),le()]}function c0(e,t,n,r,s){return Is(e,r)?[Oe(e,n),r,s]:[n,gh(e,r),Oe([e,t],s)]}function d0(e){return Ed((t,n)=>c0(t[0],t[1],n[0],n[1],n[2]),e,l0())}const f0=le();function zi(e,t){const n=yh(Xt(i=>i[0],e),{Compare:Ge}),r=d0(t),s=r[1],o=r[0];if(n.Equals(s))return[o,le(),e,le()];{const i=Ld(a=>Is(a[0],s),e);return[o,i[1],i[0],Od(a=>!Is(a[0],n),r[2])]}}function m0(e,t,n,r){const s=Ge(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=Ge(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function h0(e,t,n,r,s){const o=m0(t,n,r,s);return M(()=>um(o,e))}function nl(e,t,n){return h0(e,t,n,0,(r,s)=>r+s)}class _n extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class p0{constructor(t){this.state=new _n(0,[Pr(new Array(Ms(t,10)),0,Ms(t,10),null),0])}}function w0(e){return new p0(e)}function Gi(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new _n(0,[s,n]):e.state=new _n(1,[s,n,o]),Se(re(r,s))}else return}function _0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];pt(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new _n(1,[g0(e,s,o),o.length,0]):e.state=new _n(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];pt(s,r,t);const o=(r+1)%s.length|0;e.state=new _n(1,[s,o,r])}}function g0(e,t,n){return Array.from(M(()=>W(hm(t,n),M(()=>W(pm(t,n),M(()=>wm(r=>$(ve()),nl(0,1,n.length))))))))}class ar extends I{constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function In(e,t,n){return new ar(e,t,r=>o0(),n,j(r=>{const s=L(n)(r);return o=>{s(o)}}),r=>{Rf(r[0],r[1])},[r=>!1,r=>{}])}function b0(e,t){return new ar(t.init,t.update,e,t.view,t.setState,t.onError,t.termination)}function y0(e,t,n){return new ar(n.init,n.update,n.subscribe,n.view,n.setState,n.onError,[e,t])}function S0(e,t){return new ar(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function v0(e){return e.init}function F0(e,t,n,r,s,o,i){const a=L(e)(i.init),u=as(t)(L(i.update)),l=as(n)(L(i.view)),f=as(r)(L(i.setState));return new ar(a,j(u),L(s)(i.subscribe),j(l),j(f),i.onError,o(i.termination))}function C0(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,u=w0(10);let l=!1,f=o,c=f0,w=!1;const h=b=>{w||(_0(u,b),l||(l=!0,_(),l=!1))},p=L(e)(h),_=()=>{let b,g=Gi(u);for(;!w&&g!=null;){const A=C(g);if(a[0](A))u0(n.onError,c),a[1](f),w=!0;else{const v=n.update(A,f),Y=v[0],fe=n.subscribe(Y);n.setState(Y,p),di(qe=>{n.onError([yn(je("Error handling the message: %A"))(A),qe])},p,v[1]),f=Y,c=(b=zi(c,fe),Hi(n.onError,p,b[0],b[1],b[2],b[3])),g=Gi(u)}}};l=!0,n.setState(o,p),di(b=>{n.onError([yn(je("Error intitializing:")),b])},p,s[1]),c=(r=zi(c,i),Hi(n.onError,p,r[0],r[1],r[2],r[3])),_(),l=!1}function x0(e,t){C0(j(n=>n),e,t)}function A0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var rl={exports:{}},sl={};const N0=A0(fc);/**
37
+ `))(a)}}else if(uu(r))if(fo(r)){const i=Tn(a=>St(e,t,n,a),fu(r));return a=>_r(ym((l,u)=>re(l,i)(u),a))}else{const i=Y(lu(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Nc(()=>r0(St(e,t,n,re(0,Ve(r)))));return l=>l==null?ol:a.Value(l)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=St(e,t,n,re(0,Ve(r)));return l=>_r(Ee(a,l))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=re(0,Ve(r)),l=St(e,t,n,re(1,Ve(r)));if(Y(a)==="System.String"||Y(a)==="System.Guid")return u=>zr((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=St(e,t,n,a),c=>_r(Ee(h=>{const p=h;return[u(p[0]),l(p[1])]},c))}}else return zi(e,t,n,r)}else switch(s){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return t0;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return n0;case"System.DateTimeOffset":return Xh;case"System.TimeSpan":return e0;case"System.Guid":return Yh;case"System.Object":return i=>i;default:return zi(e,t,n,r)}else{const i=o;return a=>i.contents(a)}}function s0(e){return yo({Compare:rr})}function jn(e,t,n,r){const s=He(t,new Pe(0,[])),o=He(r,!0);return St(s0(),s,o,e)}function Gi(e,t){return Ge([["fundId",e],["placementId",t]])}function o0(e){return Jr(0,e.tag===1?Ge([["promotedDefault",Gi(e.fields[0],e.fields[1])]]):Ge([["promoted",Gi(e.fields[0],e.fields[1])]]))}function i0(e){return e.tag===1?Ge([["PromotedDefaultFund",jn(xf(),new Pe(1,[]),void 0,void 0)(e.fields[0])]]):Ge([["PromotedFund",jn(Cf(),new Pe(1,[]),void 0,void 0)(e.fields[0])]])}function jt(e,t){return Ge([["event",Ge([[e,t]])]])}function a0(e){return Jr(0,e.tag===1?jt("SuperFundDetailViewed",i0(e.fields[0])):e.tag===2?jt("SuperFundDisclaimerViewed",jn(Af(),new Pe(1,[]),void 0,void 0)(e.fields[0])):e.tag===3?jt("SuperFundDisclaimerAccepted",jn(Nf(),new Pe(1,[]),void 0,void 0)(e.fields[0])):e.tag===4?jt("SuperCampaignActivationSucceeded",Ge([])):e.tag===5?jt("SuperCampaignActivationFailed",Ge([["reason",e.fields[0]]])):e.tag===6?jt("SuperCampaignOperationFailed",Ge([["reason",e.fields[0]]])):jt("SuperFundPdsViewed",jn(Ff(),new Pe(1,[]),void 0,void 0)(e.fields[0])))}function u0(e){return e.tag===1?"superCampaign":"superSelection"}function l0(e){return Jr(0,Ge(X(M(()=>W(T(["shownFunds",Qh(en(t=>t,e.ShownFunds))]),M(()=>W(T(["promotedFundsConfigSource",u0(e.PromotedFundsConfigSource)]),M(()=>W(T(["placementId",e.PlacementId]),M(()=>{const t=e.PromotedDefaultFundPosition;return t==null?le():T(["promotedDefaultFundPosition",t])}))))))))))}function c0(e){return e.tag===1?"SuperCampaignOperationFailed":"SuperCampaignActivationFailed"}function d0(e){return Jr(0,Ge([["type",c0(e.Type)],["reason",e.Reason]]))}class f0{constructor(t,n){this.baseUrl=`${t}/super-selection/backend`,this.authHeader=zm(`Bearer ${n}`)}get GetSmsfChoice(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/super-choice/smsf`)))),n=>{const r=n;return r.statusCode===200?k.Return(un(j(ln(Yd(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve SMSF choice"]))})))}get BsbLookup(){const t=this;return n=>k.Delay(()=>k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)))),r=>{const s=r;return s.statusCode===200?k.Return(un(j(ln(rf(),new Pe(1,[]))),s.responseText)):k.Return(new d(1,["Failed to lookup BSB"]))}))}get IsRegulatedFundAbn(){const t=this;return n=>k.Delay(()=>k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)))),r=>{const s=r;return s.statusCode===200?k.Return(gt(o=>!o.Result,un(j(ln(yd(["Result",wt]),new Pe(1,[]))),s.responseText))):k.Return(new d(1,["Failed to query ABN"]))}))}get GetOwnFundChoice(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/super-choice/byof`)))),n=>{const r=n;return r.statusCode===200?k.Return(un(j(ln(cf(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve own fund choice"]))})))}get GetDefaultFund(){const t=this;return()=>Tt(t,5,k.Delay(()=>k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/super-choice/default`)))),n=>{const r=n;return r.statusCode===200?k.Return(un(j(ln(ff(),new Pe(1,[]))),r.responseText)):k.Return(new d(1,["Failed to retrieve default fund choice"]))})))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Tt(t,5,k.Delay(()=>{const s=r==null?"":`&maxRecordCount=${r}`;return k.Bind(ut(xe(t.authHeader,at(new Ye(0,[]),it(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${s}`)))),o=>{const i=o;return i.statusCode===200?k.Return(un(j(ln(wf(),new Pe(1,[]))),i.responseText)):k.Return(new d(1,["Failed to retrieve fund list"]))})}))}}ClickPromotedTile(t){const n=this;return Vt(pe("[BackendService] /v1.0/click-promoted-tile")),Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(ut((r=(s=xe(n.authHeader,at(new Ye(1,[]),it(`${n.baseUrl}/v1.0/click-promoted-tile`))),xe(pr("application/json"),s)),wr(new Un(1,[o0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track click promoted tile"]))})}))}PostSuperCampaignError(t){const n=this;return Vt(pe("[BackendService] /v1.0/super-campaign/errors")),Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(ut((r=(s=xe(n.authHeader,at(new Ye(1,[]),it(`${n.baseUrl}/v1.0/super-campaign/errors`))),xe(pr("application/json"),s)),wr(new Un(1,[d0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to post super campaign error"]))})}))}TrackAnalyticsEvent(t){const n=this;return Vt(pe("[BackendService] /v1.0/analytics-events : event: %A"))(t),Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(ut((r=(s=xe(n.authHeader,at(new Ye(1,[]),it(`${n.baseUrl}/v1.0/analytics-events`))),xe(pr("application/json"),s)),wr(new Un(1,[a0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track analytics event"]))})}))}ViewSuperFundPanel(t){const n=this;return Vt(pe("[BackendService] Tracking view super fund panel: %A"))(t),Tt(n,5,k.Delay(()=>{let r,s;return k.Bind(ut((r=(s=xe(n.authHeader,at(new Ye(1,[]),it(`${n.baseUrl}/v1.0/view-super-fund-panel`))),xe(pr("application/json"),s)),wr(new Un(1,[l0(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?k.Return(new d(0,[void 0])):k.Return(new d(1,["Failed to track view super fund panel"]))})}))}}function qr(e,t){return new f0(e,t)}function Tt(e,t,n){const r=s=>k.Delay(()=>k.Bind(n,o=>{const i=o;return i.tag===1?s>1?k.Bind(Tu(1e3),()=>k.ReturnFrom(r(s-1))):k.Return(new d(1,[i.fields[0]])):k.Return(new d(0,[i.fields[0]]))}));return r(t)}function m0(){return ce()}function vo(e){return P("/",e)}function h0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+vo(t),n])}function il(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+vo(t),r])}}function p0(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+vo(n),s]);return}}function w0(e,t){Xt(n=>{il(e,n[0],n[1])},t)}function ji(e,t,n,r,s,o){return Xt(i=>{h0(e,i)},n),Xt(i=>{il(e,i[0],i[1])},r),ho(s,Jd(i=>p0(e,t,i[0],i[1]),o))}function _0(){return[ce(),Nh({Compare:je}),ce()]}function g0(e,t,n,r,s){return Bs(e,r)?[Oe(e,n),r,s]:[n,Ah(e,r),Oe([e,t],s)]}function b0(e){return Od((t,n)=>g0(t[0],t[1],n[0],n[1],n[2]),e,_0())}const y0=ce();function Wi(e,t){const n=kh(en(i=>i[0],e),{Compare:je}),r=b0(t),s=r[1],o=r[0];if(n.Equals(s))return[o,ce(),e,ce()];{const i=Wd(a=>Bs(a[0],s),e);return[o,i[1],i[0],jd(a=>!Bs(a[0],n),r[2])]}}function S0(e,t,n,r){const s=je(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=je(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function v0(e,t,n,r,s){const o=S0(t,n,r,s);return M(()=>wm(o,e))}function al(e,t,n){return v0(e,t,n,0,(r,s)=>r+s)}class bn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class F0{constructor(t){this.state=new bn(0,[Rr(new Array($s(t,10)),0,$s(t,10),null),0])}}function C0(e){return new F0(e)}function Ji(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new bn(0,[s,n]):e.state=new bn(1,[s,n,o]),we(re(r,s))}else return}function x0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];_t(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new bn(1,[A0(e,s,o),o.length,0]):e.state=new bn(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];_t(s,r,t);const o=(r+1)%s.length|0;e.state=new bn(1,[s,o,r])}}function A0(e,t,n){return Array.from(M(()=>W(vm(t,n),M(()=>W(Fm(t,n),M(()=>Cm(r=>T(Ce()),al(0,1,n.length))))))))}class Fo extends ${constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function Bn(e,t,n){return new Fo(e,t,r=>m0(),n,j(r=>{const s=L(n)(r);return o=>{s(o)}}),r=>{qf(r[0],r[1])},[r=>!1,r=>{}])}function N0(e,t){return new Fo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function k0(e){return e.init}function E0(e,t,n,r,s,o,i){const a=L(e)(i.init),l=us(t)(L(i.update)),u=us(n)(L(i.view)),f=us(r)(L(i.setState));return new Fo(a,j(l),L(s)(i.subscribe),j(u),j(f),i.onError,o(i.termination))}function M0(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,l=C0(10);let u=!1,f=o,c=y0,h=!1;const p=b=>{h||(x0(l,b),u||(u=!0,_(),u=!1))},w=L(e)(p),_=()=>{let b,g=Ji(l);for(;!h&&g!=null;){const x=C(g);if(a[0](x))w0(n.onError,c),a[1](f),h=!0;else{const v=n.update(x,f),Q=v[0],de=n.subscribe(Q);n.setState(Q,w),hi(Je=>{n.onError([vn(pe("Error handling the message: %A"))(x),Je])},w,v[1]),f=Q,c=(b=Wi(c,de),ji(n.onError,w,b[0],b[1],b[2],b[3])),g=Ji(l)}}};u=!0,n.setState(o,w),hi(b=>{n.onError([vn(pe("Error intitializing:")),b])},w,s[1]),c=(r=Wi(c,i),ji(n.onError,w,r[0],r[1],r[2],r[3])),_(),u=!1}function T0(e,t){M0(j(n=>n),e,t)}function $0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var ul={exports:{}},ll={};const I0=$0(yc);/**
38
38
  * @license React
39
- * use-sync-external-store-shim.production.min.js
39
+ * use-sync-external-store-shim.production.js
40
40
  *
41
- * Copyright (c) Facebook, Inc. and its affiliates.
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var Fn=N0;function k0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E0=typeof Object.is=="function"?Object.is:k0,M0=Fn.useState,T0=Fn.useEffect,$0=Fn.useLayoutEffect,I0=Fn.useDebugValue;function D0(e,t){var n=t(),r=M0({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return $0(function(){s.value=n,s.getSnapshot=t,ms(s)&&o({inst:s})},[e,n,t]),T0(function(){return ms(s)&&o({inst:s}),e(function(){ms(s)&&o({inst:s})})},[e]),I0(n),n}function ms(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!E0(e,n)}catch{return!0}}function B0(e,t){return t()}var V0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?B0:D0;sl.useSyncExternalStore=Fn.useSyncExternalStore!==void 0?Fn.useSyncExternalStore:V0;rl.exports=sl;var O0=rl.exports;class L0{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=v0(s)(this.arg);let u=a[0],l=a[1];i=[[u,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],l],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const w=xs(this.state[0]);return x0(this.arg,S0((h,p)=>{const _=this.state;this.finalDispatch=p,this.state=[h,_[1],!0,o],h!==_[0]&&f()},F0((h,p)=>{const _=this.cmd;return this.cmd=x(),[this.state[0],_]},(h,p,_)=>h(p)(this.state[0]),Ns(h=>h),Ns(h=>h),j(h=>h),h=>[p=>h[0](p)?!0:w&&c,p=>{const _=p;xs(_)?Z(_):h[1](p)}],s))),()=>{c=!0}}}}function ji(e,t,n){return new L0(e,t,n)}function P0(e){return e.state}function R0(e){return e.subscribe}function U0(e,t,n){return de(e.arg,t)?!de(e.dependencies,n):!0}function Dn(e,t,n){const r=xn(()=>ji(e,t,n)),s=r[0];U0(s,t,n)&&r[1](ji(e,t,n));const o=O0.useSyncExternalStore(R0(s),()=>P0(s)),i=o[2],a=o[3],u=o[1];return An(()=>{if(i&&a.length>0){let l=se(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{u(f)})}}finally{Z(l)}kc(a)}},[i,a]),[o[0],u]}function Me(e,t){return Xa(t)?new d(1,[`${e} is required`]):new d(0,[t])}function Nt(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function yo(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Jr(e){return e.trim()}function So(e){return so(e,"\\s+","")}function Bn(e,t,n){return ed(Za(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function H0(e){return so(e,"[^0-9]","")}class dt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class vo extends I{constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class Ae extends I{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Te(e,t){return new vo(Ue(t,""),!1,e,void 0)}function ol(e,t){let n;return new vo(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function he(e){let t;return new vo(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function Zr(e){const t=e.target,n=H0(t.value);return t.value=n,n}let z0=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function il(e){let t;const n=Me("Fund name",Jr(e));return t=n.tag===1?new d(1,[n.fields[0]]):Nt("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new z0(t.fields[0])])}function al(e){return Te(il,e)}function G0(e){return e.fields[0]}class j0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function Kr(e){const t=X(ke(s=>~~s.charCodeAt(0)-48,e.split(""))),n=S([10,1,3,5,7,9,11,13,15,17,19]),r=wu(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=Zt(t)===Zt(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=Td((i,a,u)=>i+a*u,0,Dd((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new j0(e)])}}}function W0(e){return e.fields[0]}class q0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function ul(e){let t;const n=Me("Fund ESA",Jr(e));return t=n.tag===1?new d(1,[n.fields[0]]):Nt("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new q0(t.fields[0])])}function ll(e){return Te(ul,e)}function J0(e){return e.fields[0]}class Z0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function cl(e){let t;const n=Me("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):Nt("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Z0(t.fields[0])])}function dl(e){return Te(cl,e)}function K0(e){return e.fields[0]}class Y0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function fl(e){if(Xa(e))return new d(0,[void 0]);{const t=Nt("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Y0(t.fields[0])])}}function ml(e){return Te(fl,e)}function Q0(e){if(e!=null)return e.fields[0]}class X0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function hl(e){const t=Me("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new X0(t.fields[0])])}function pl(e){return Te(hl,e)}function ep(e){return e.fields[0]}class $t extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function wl(e){const t=Me("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new $t(0,[])]);case"QLD":return new d(0,[new $t(1,[])]);case"ACT":return new d(0,[new $t(2,[])]);case"VIC":return new d(0,[new $t(3,[])]);case"TAS":return new d(0,[new $t(4,[])]);case"WA":return new d(0,[new $t(5,[])]);case"SA":return new d(0,[new $t(6,[])]);case"NT":return new d(0,[new $t(7,[])]);default:return new d(1,["Select a state'"])}}function _l(e){return Te(wl,e)}function tp(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class np extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function gl(e){let t,n;const r=Me("Postcode",So(e));return n=r.tag===1?new d(1,[r.fields[0]]):Nt("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):yo("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new np(t.fields[0])])}function bl(e){return Te(gl,e)}function rp(e){return e.fields[0]}let sp=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const op="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function yl(e){let t;const n=Me("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Bn("Member given name(s)",op,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new sp(t.fields[0])])}function Sl(e){return Te(yl,e)}function ip(e){return e.fields[0]}let ap=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const up="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function vl(e){let t;const n=Me("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Bn("Last Name",up,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ap(t.fields[0])])}function Fl(e){return Te(vl,e)}function lp(e){return e.fields[0]}class cp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function Cl(e){let t;const n=Me("Account name",Jr(e));return t=n.tag===1?new d(1,[n.fields[0]]):Nt("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new cp(t.fields[0])])}function xl(e){return Te(Cl,e)}function dp(e){return e.fields[0]}class fp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function Yr(e){let t,n,r;const s=Me("BSB",So(e));return r=s.tag===1?new d(1,[s.fields[0]]):Nt("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):yo("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Bn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new fp(t.fields[0])])}function mp(e){return e.fields[0]}class hp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function Al(e){let t,n,r;const s=Me("Account Number",So(e));return r=s.tag===1?new d(1,[s.fields[0]]):Nt("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):yo("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Bn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new hp(t.fields[0])])}function Nl(e){return Te(Al,e)}function pp(e){return e.fields[0]}class wp extends I{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class _p extends I{constructor(t,n,r,s,o,i,a,u,l,f,c,w,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=u,this.MemberFirstName=l,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=w,this.BankAccountNumber=h}}const gp=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),bp=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([gp])}),m("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()])));function kt(e){if(e==null)return ve();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Qr(e){return X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))}function yp(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Qr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Sp(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:P(" ",Qr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function vp(e,t){return m("input",{placeholder:"Address line 1",type:"text",className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Fp(e,t){return m("input",{placeholder:"Address line 2 (optional)",type:"text",className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Cp(e,t){return m("input",{placeholder:"City/suburb",type:"text",className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function xp(e,t){let n;return m("div",F(S([["className","flex-1 min-w-0"],(n=[m("input",{placeholder:"Postcode",type:"text",required:!0,className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(Zr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function Ap(e,t){let n;const r=m("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=Xt(o=>m("option",{value:o,children:o,selected:t.Field.Value===o}),S(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return m("div",F(S([["className","w-1/2 flex-1 min-w-0"],(n=[m("select",{className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),id:"state",required:!0,children:y.Children.toArray(Array.from(Oe(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function Np(e){let t,n,r,s;const o=a=>a.IsTouched;s=wu(a=>a,S([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=Bd(a=>a,S([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),m("div",F(S([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[vp(s,e.AddressLine1),Fp(s,e.AddressLine2),Cp(s,e.City),m("div",F(S([["className","flex -space-x-px"],(r=[xp(s,e.Postcode),Ap(s,e.AddressState)],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),kt(s?i:void 0)],["children",y.Children.toArray(Array.from(t))])])))}function kp(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Qr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ep(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Qr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Mp(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:P(" ",X(M(()=>W($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Tp(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:P(" ",X(M(()=>W($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),onKeyUp:s=>{e.OnChange(Zr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),kt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function $p(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?ce():$(["onClick",t]),M(()=>{let r;return $((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function Ip(e){let t,n,r;return m("div",F(T((t=[m("a",F(S([["href","/"],(n=[m("div",F(T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}let Wi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},qn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},ft=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},He=class extends I{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function kl(e,t){if(e==null)return[new He("",!1,new ft(0,[]),void 0),x()];{const n=e,r=Kr(n);return r.tag===1?[new He(n,!1,new ft(3,[]),r.fields[0]),x()]:[new He(n,!1,new ft(1,[]),void 0),T(s=>{s(new qn(1,[new dt(0,[void 0])]))})]}}function Dp(e,t){const n=Kr(e.RawValue);return n.tag===1?[new He(e.RawValue,e.IsTouched,new ft(3,[]),n.fields[0]),x()]:t?[new He(e.RawValue,e.IsTouched,new ft(3,[]),"The supplied ABN is for a regulated fund"),x()]:[new He(e.RawValue,e.IsTouched,new ft(2,[n.fields[0]]),e.ErrorMessage),x()]}function El(e){const t=Kr(e.RawValue);return t.tag===1?[new He(e.RawValue,!0,e.Value,t.fields[0]),x()]:[new He(e.RawValue,!0,e.Value,e.ErrorMessage),x()]}function Bp(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new He(n.RawValue,n.IsTouched,new ft(3,[]),"Something went wrong when validating your fund ABN"),x()]:Dp(n,t.fields[0].fields[0].fields[0]):[n,Vt(r=>{vt(r)},e,n.RawValue,r=>new qn(1,[new dt(1,[r])]))];if(t.fields[0].tag===1)return El(n);{const r=Kr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new He(t.fields[0].fields[0],n.IsTouched,new ft(0,[]),r.fields[0]),x()]:[new He(t.fields[0].fields[0],n.IsTouched,new ft(0,[]),void 0),x()]:t.fields[0].fields[0]===n.RawValue?[n,x()]:[new He(t.fields[0].fields[0],n.IsTouched,new ft(1,[]),void 0),T(s=>{s(new qn(1,[new dt(0,[void 0])]))})]}}function Vp(e){let t,n;const r=e.dispatch,s=e.state,o=u=>{r(new qn(0,[new Wi(0,[u])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>i?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),onKeyUp:u=>{o(Zr(u))},onBlur:u=>{r(new qn(0,[new Wi(1,[])]))},onChange:u=>{o(u.target.value)}}),kt(s.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))];return m(Ee,{},...a)}class Op extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Lp(e){return e.fields[0]}function Pp(e){return new Op(`${e.Bank} - ${e.Branch}`)}let qi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Jn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class Ct extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let mt=class extends I{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Ml(e,t){if(e==null)return[new mt("",!1,new Ct(0,[]),void 0),x()];{const n=e,r=Yr(n);return r.tag===1?[new mt(n,!1,new Ct(3,[]),r.fields[0]),x()]:[new mt(n,!1,new Ct(1,[]),void 0),T(s=>{s(new Jn(1,[new dt(0,[void 0])]))})]}}function Ji(e){return new mt(e.RawValue,e.IsTouched,new Ct(3,[]),"Unable to identify the bank using the provided BSB number")}function Rp(e,t){let n;const r=Yr(e.RawValue);return n=r.tag===1?[new Ct(3,[]),r.fields[0]]:[new Ct(2,[[r.fields[0],Pp(t)]]),void 0],new mt(e.RawValue,e.IsTouched,n[0],n[1])}function Tl(e){const t=Yr(e.RawValue);return t.tag===1?[new mt(e.RawValue,!0,e.Value,t.fields[0]),x()]:[new mt(e.RawValue,!0,e.Value,e.ErrorMessage),x()]}function Up(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Ji(n),x()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Rp(n,r),x()]:[Ji(n),x()]}}else return[n,Vt(r=>{vt(r)},e,n.RawValue,r=>new Jn(1,[new dt(1,[r])]))];else{if(t.fields[0].tag===1)return Tl(n);{const r=Yr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new mt(t.fields[0].fields[0],n.IsTouched,new Ct(0,[]),r.fields[0]),x()]:[new mt(t.fields[0].fields[0],n.IsTouched,new Ct(0,[]),void 0),x()]:t.fields[0].fields[0]===n.RawValue?[n,x()]:[new mt(t.fields[0].fields[0],n.IsTouched,new Ct(1,[]),void 0),T(s=>{s(new Jn(1,[new dt(0,[void 0])]))})]}}}function Hp(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),m("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Lp(e),"data-testid":"bank-name"})],["children",y.Children.toArray(Array.from(t))])])))}function zp(e){const t=e.dispatch,n=e.state,r=i=>{t(new Jn(0,[new qi(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=X(M(()=>{let i,a;return W($(m("div",F(S([["className","mt-3"],(i=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),m("div",F(S([["className","mt-1"],(a=[m("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>s?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))),onKeyUp:u=>{r(Zr(u))},onBlur:u=>{t(new Jn(0,[new qi(1,[])]))},onChange:u=>{r(u.target.value)}}),kt(n.ErrorMessage)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))),M(()=>{const u=n.Value;switch(u.tag){case 2:return $(Hp(u.fields[0][1]));default:return $(ve())}}))}));return m(Ee,{},...o)}let Zi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},R=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},me=class extends I{constructor(t,n,r,s,o,i,a,u,l,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=u,this.BankAccountNumber=l,this.BankName=f}};class Dt extends I{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const Gp=(()=>{let e;const t=kl(void 0);e=[t[0],en(s=>new R(1,[s]),t[1])];let n;const r=Ml(void 0);return n=[r[0],en(s=>new R(11,[s]),r[1])],[new me(al(void 0),e[0],ll(void 0),new Dt(dl(void 0),ml(void 0),pl(void 0),_l(void 0),bl(void 0)),Sl(void 0),Fl(void 0),xl(void 0),n[0],Nl(void 0),void 0),pn(S([e[1],n[1]]))]})();function jp(e){let t;const n=kl(e.Abn);t=[n[0],en(o=>new R(1,[o]),n[1])];let r;const s=Ml(e.Bsb);return r=[s[0],en(o=>new R(11,[o]),s[1])],[new me(al(e.FundName),t[0],ll(e.ElectronicServiceAddress),new Dt(dl(e.FundAddress.AddressLine1),ml(e.FundAddress.AddressLine2),pl(e.FundAddress.City),_l(e.FundAddress.State),bl(e.FundAddress.Postcode)),Sl(e.MemberFirstName),Fl(e.MemberFamilyName),xl(e.BankAccountName),r[0],Nl(e.BankAccountNumber),void 0),pn(S([t[1],r[1]]))]}function Wp(e){let t;return Ue((t=e,t==null?void 0:jp(t)),Gp)}function $l(e){let t;const n=il(e.FundName.Value);if(t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[T("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=ul(e.FundEsa.Value);if(o=i.tag===1?new d(1,[T(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const u=cl(e.FundAddress.AddressLine1.Value);if(a=u.tag===1?new d(1,[T(u.fields[0])]):new d(0,[u.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=fl(e.FundAddress.AddressLine2.Value);if(l=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let c;const w=hl(e.FundAddress.City.Value);if(c=w.tag===1?new d(1,[T(w.fields[0])]):new d(0,[w.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let h;const p=wl(e.FundAddress.AddressState.Value);if(h=p.tag===1?new d(1,[T(p.fields[0])]):new d(0,[p.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let _;const b=gl(e.FundAddress.Postcode.Value);if(_=b.tag===1?new d(1,[T(b.fields[0])]):new d(0,[b.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let g;const A=yl(e.MemberFirstName.Value);if(g=A.tag===1?new d(1,[T(A.fields[0])]):new d(0,[A.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let v;const Y=vl(e.MemberLastName.Value);if(v=Y.tag===1?new d(1,[T(Y.fields[0])]):new d(0,[Y.fields[0]]),v.tag===1)return new d(1,[v.fields[0]]);{let fe;const qe=Cl(e.BankAccountName.Value);if(fe=qe.tag===1?new d(1,[T(qe.fields[0])]):new d(0,[qe.fields[0]]),fe.tag===1)return new d(1,[fe.fields[0]]);{let Rt;const Ut=e.BankAccountBsb.Value;if(Rt=Ut.tag===2?new d(0,[Ut.fields[0][0]]):new d(1,[T("Bank BSB is invalid")]),Rt.tag===1)return new d(1,[Rt.fields[0]]);{let Et;const Fe=Al(e.BankAccountNumber.Value);return Et=Fe.tag===1?new d(1,[T(Fe.fields[0])]):new d(0,[Fe.fields[0]]),Et.tag===1?new d(1,[Et.fields[0]]):new d(0,[new _p(t.fields[0],r.fields[0],o.fields[0],a.fields[0],l.fields[0],c.fields[0],h.fields[0],_.fields[0],g.fields[0],v.fields[0],fe.fields[0],Rt.fields[0],Et.fields[0])])}}}}}}}}}}}}}function qp(e){return new me(he(e.FundName),El(e.FundAbn)[0],he(e.FundEsa),new Dt(he(e.FundAddress.AddressLine1),he(e.FundAddress.AddressLine2),he(e.FundAddress.City),he(e.FundAddress.AddressState),he(e.FundAddress.Postcode)),he(e.MemberFirstName),he(e.MemberLastName),he(e.BankAccountName),Tl(e.BankAccountBsb)[0],he(e.BankAccountNumber),e.BankName)}function Ke(e,t,n){return n(e.tag===1?he(t):ol(t,e.fields[0]))}function Jp(e,t,n){switch(t.tag){case 1:{const r=Bp(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new me(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),en(s=>new R(1,[s]),r[1])]}case 2:return[Ke(t.fields[0],n.FundEsa,r=>new me(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),x()];case 3:return[Ke(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new me(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),x()];case 4:return[Ke(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new me(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),x()];case 5:return[Ke(t.fields[0],n.FundAddress.City,r=>{let s;return new me(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),x()];case 6:return[Ke(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new me(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),x()];case 7:return[Ke(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new me(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),x()];case 8:return[Ke(t.fields[0],n.MemberFirstName,r=>new me(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),x()];case 9:return[Ke(t.fields[0],n.MemberLastName,r=>new me(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),x()];case 10:return[Ke(t.fields[0],n.BankAccountName,r=>new me(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),x()];case 11:{const r=Up(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new me(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),en(s=>new R(11,[s]),r[1])]}case 12:return[Ke(t.fields[0],n.BankAccountNumber,r=>new me(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),x()];case 13:{const r=$l(n);if(r.tag===1)return[qp(n),x()];{const s=r.fields[0];return[n,qf(new zf(G0(s.FundName),W0(s.FundAbn),J0(s.FundEsa),K0(s.FundAddressLine1),Q0(s.FundAddressLine2),ep(s.FundCity),tp(s.FundState),rp(s.FundPostcode),ip(s.MemberFirstName),lp(s.MemberLastName),dp(s.BankAccountName),mp(s.BankAccountBsb),pp(s.BankAccountNumber)))]}}case 14:return[n,Zf()];default:return[Ke(t.fields[0],n.FundName,r=>new me(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),x()]}}function Zp(e){let t,n,r,s,o,i,a;const u=e.smsfChoice,l=e.backendService;let f;const c=Wp(u);f=Dn(()=>In(()=>c,(v,Y)=>Jp(l,v,Y),(v,Y)=>{}),void 0,void 0);const w=f[0],h=f[1],p=(v,Y)=>{h(v(new Zi(1,[])))},_=(v,Y)=>{h(v(new Zi(0,[Y])))};let b;b=$l(w).tag!==1;const A=T(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),bp,m("div",F(T((r=[(s=S([yp(new Ae(w.FundName,L(p)(v=>new R(0,[v])),L(_)(v=>new R(0,[v])))),m(Vp,{state:w.FundAbn,dispatch:v=>{h(new R(1,[v]))}}),Sp(new Ae(w.FundEsa,L(p)(v=>new R(2,[v])),L(_)(v=>new R(2,[v])))),Np(new wp(new Ae(w.FundAddress.AddressLine1,L(p)(v=>new R(3,[v])),L(_)(v=>new R(3,[v]))),new Ae(w.FundAddress.AddressLine2,L(p)(v=>new R(4,[v])),L(_)(v=>new R(4,[v]))),new Ae(w.FundAddress.City,L(p)(v=>new R(5,[v])),L(_)(v=>new R(5,[v]))),new Ae(w.FundAddress.AddressState,L(p)(v=>new R(6,[v])),L(_)(v=>new R(6,[v]))),new Ae(w.FundAddress.Postcode,L(p)(v=>new R(7,[v])),L(_)(v=>new R(7,[v]))))),m("div",F(S([["className","flex space-x-4"],(o=[kp(new Ae(w.MemberFirstName,L(p)(v=>new R(8,[v])),L(_)(v=>new R(8,[v])))),Ep(new Ae(w.MemberLastName,L(p)(v=>new R(9,[v])),L(_)(v=>new R(9,[v]))))],["children",y.Children.toArray(Array.from(o))])]))),m("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Mp(new Ae(w.BankAccountName,L(p)(v=>new R(10,[v])),L(_)(v=>new R(10,[v])))),m(zp,{state:w.BankAccountBsb,dispatch:v=>{h(new R(11,[v]))}}),Tp(new Ae(w.BankAccountNumber,L(p)(v=>new R(12,[v])),L(_)(v=>new R(12,[v]))))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[$p(b,v=>{v.preventDefault(),h(new R(13,[]))}),Ip(v=>{v.preventDefault(),h(new R(14,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(A))})}const Kp=m("svg",F(S([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=S([m("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),m("g",F(S([["clipPath","url(#clip0_153_10600)"],(e=S([m("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",F(S([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),m("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(e))])]))),(n=T(m("clipPath",F(S([["id","clip0_153_10600"],(r=T(m("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",y.Children.toArray(Array.from(r))])])))),m("defs",{children:y.Children.toArray(Array.from(n))}))]);return["children",y.Children.toArray(Array.from(s))]})()])));function Yp(e){return m("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function Il(e){let t,n,r,s;return m("div",F(S([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[Kp,Yp("Something went wrong"),m("div",F(S([["className","justify-start items-center"],(r=[m("p",F(S([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),m("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))}function Xr(e,t){let n;return m("div",F(S([["className",P(" ",["animate-pulse w-full relative",e,t])],(n=[m("div",{className:P(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}const Qp=Xr("h-9","max-w-96"),Ki=Xr("h-6","max-w-96"),Xp=Xr("h-80","max-w-96"),ew=Xr("h-10","max-w-48"),Fo=(()=>{let e,t,n;const r=[m("div",F(S([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[m("div",F(S([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[Qp,m("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:y.Children.toArray([Ki,Ki])})],["children",y.Children.toArray(Array.from(n))])]))),Xp,ew],["children",y.Children.toArray(Array.from(t))])])))];return m(Ee,{},...r)})();function Co(){return(Co=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}).apply(this,arguments)}var tw=["context","children"];function nw(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},u=Object.keys(r);for(i=0;i<u.length;i++)s.indexOf(o=u[i])>=0||(a[o]=r[o]);return a}(e,tw);return Rs(t,n)}function rw(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(nw,Co({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var s=[],o={},i=0,a=n.attributes,u=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[Dl(a[i].name)]=a[i].value);for(i=u.length;i--;){var l=t(u[i],null),f=u[i].slot;f?o[f]=m(Yi,{name:f},l):s[i]=l}var c=r?m(Yi,null,s):s;return m(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ps:Ot)(this._vdom,this._root)}function Dl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function sw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Dl(e)]=n,this._vdom=Rs(this._vdom,r),Ot(this._vdom,this._root)}}function ow(){Ot(this._vdom=null,this._root)}function Yi(e,t){var n=this;return m("slot",Co({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function iw(e,t,n,r){function s(){var o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=rw,s.prototype.attributeChangedCallback=sw,s.prototype.disconnectedCallback=ow,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom.props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s)}function es(e,t){iw(e,t,void 0,{shadow:!0})}function aw(e){let t;const n=S([m("style",{children:[to]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}let Bl=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Ds=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function uw(){return[new Ds(0,[]),T(e=>{e(new Bl(0,[]))})]}function lw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Ds(2,[]),x()]:[new Ds(1,[t.fields[0].fields[0].SmsfChoice]),Jf()]:[n,Vt(r=>{vt(r)},e,void 0,r=>new Bl(1,[r]))]}function cw(e){let t,n;const r=qr(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>lw(n,o,i)),Dn(()=>In(uw,j(t),(o,i)=>{}),void 0,void 0))[0];return aw(s.tag===1?m(Zp,{backendService:r,smsfChoice:It(s.fields[0])}):s.tag===2?Il("We are unable to load the Self Managed Super Fund form at this time."):Fo)}function dw(){es(e=>m(cw,e),"apollo-super-smsf")}class fw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function $r(e){return e.fields[0]}function Qi(e){return new fw(e)}class mw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function Cn(e){return e.fields[0]}function Xi(e){return new mw(e)}class hw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function Vl(e){let t;const n=Me("Member number",Jr(e));return t=n.tag===1?new d(1,[n.fields[0]]):Nt("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new hw(t.fields[0])])}function pw(e){return Te(Vl,e)}function ww(e){return e.fields[0]}class _w extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const gw="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Ol(e){let t;const n=Me("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):Bn("Member given name(s)",gw,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new _w(t.fields[0])])}function bw(e){return Te(Ol,e)}function yw(e){return e.fields[0]}class Sw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const vw="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Ll(e){let t;const n=Me("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):Bn("Last Name",vw,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Sw(t.fields[0])])}function Fw(e){return Te(Ll,e)}function Cw(e){return e.fields[0]}class xw extends I{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const Aw=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Nw=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([Aw])}),m("div",F(S([["className","ml-2"],(t=[m("ul",F(S([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[m("li",{children:["Make sure you are a current member of the fund before completing this step."]}),m("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function ts(e){if(e==null)return ve();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function xo(e){return X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce()))))}function kw(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:P(" ",xo(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ts(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ew(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",xo(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ts(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Mw(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",xo(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ts(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Tw(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?ce():$(["onClick",t]),M(()=>{let r;return $((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function $w(e){let t,n,r;return m("div",F(T((t=[m("a",F(S([["href","/"],(n=[m("div",F(T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}class dn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let Be=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class Gt extends I{constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class _t extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class xe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let ne=class extends I{constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function Iw(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=Wn(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return Ue(tr(n=>`${$r(n[0])} (${Cn(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${$r(t[0])} (${Cn(n)})`}}}function Dw(e){return tr(t=>t[0],e.ValidatedFund)}function Bw(e){return tr(t=>t[1],e.ValidatedFund)}function Vw(e){return new ne(!1,!1,void 0,new xe(0,[]),e,void 0)}function Pl(e){return[new ne(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),x()]}function Ow(e,t,n){let r,s,o,i;const a=u=>k.Delay(()=>k.Bind(Au(500),()=>k.Return(u)));switch(t.tag){case 1:return Pl(n);case 2:{const u=n.ValidatedFund,l=n.SearchState;let f,c,w,h;switch(u!=null&&l.tag===3&&l.fields[1].tag===0?(f=0,l.fields[0],c=l.fields[1].fields[0],w=u[0],h=u[1]):f=1,f){case 0:{const p=new Gt(c.Funds,Vd(_=>_.Usi===Cn(h),c.Funds));return[new ne(n.IsTouched,!0,n.SearchCorrelationId,new xe(3,[`${$r(w)} (${Cn(h)})`,new _t(0,[p])]),n.ValidatedFund,n.ErrorMessage),x()]}default:return[new ne(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),x()]}}case 3:{const u=n.SearchState;let l,f,c;switch(u.tag===3&&u.fields[1].tag===0?(l=0,f=u.fields[1].fields[0],c=u.fields[0]):l=1,l){case 0:if(Zt(f.Funds)===0)return de(t.fields[0],new dn(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),x()]:[n,x()];{const w=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(w==null)return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(3,[c,new _t(0,[new Gt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),x()];{const h=w|0;return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(3,[c,new _t(0,[new Gt(f.Funds,vd(Zt(f.Funds)-1,h+1))])]),n.ValidatedFund,n.ErrorMessage),x()]}case 0:if(w!=null){const h=Wn(w,f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[Qi(h.ProductName),Xi(h.Usi)],void 0),x()]}else return[n,x()];case 3:return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),x()];default:return w==null?[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(3,[c,new _t(0,[new Gt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),x()]:[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(3,[c,new _t(0,[new Gt(f.Funds,Ms(0,w-1))])]),n.ValidatedFund,n.ErrorMessage),x()]}}default:return de(t.fields[0],new dn(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),x()]:[n,x()]}}case 4:{const u=n.SearchState;let l,f,c;switch(u.tag===3&&u.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<Zt(u.fields[1].fields[0].Funds)?(l=0,f=u.fields[1].fields[0],c=u.fields[0]):l=1,l){case 0:if(t.fields[1]){const w=Wn(t.fields[0],f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[Qi(w.ProductName),Xi(w.Usi)],void 0),x()]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(3,[c,new _t(0,[new Gt(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),x()];default:return[n,x()]}}case 5:if(t.fields[0].tag===1)if(de(n.SearchCorrelationId,t.fields[1])){const u=n.SearchState;return u.tag===2?[new ne(n.IsTouched,n.HasFocus,void 0,new xe(3,[u.fields[0],t.fields[0].fields[0].tag===1?new _t(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new _t(0,[new Gt(Ud(l=>l.ProductName,r.Data,{Compare:Xn}),void 0)]):new _t(1,[]))]),n.ValidatedFund,n.ErrorMessage),x()]:[new ne(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),x()]}else return[n,x()];else return[n,de(n.SearchCorrelationId,t.fields[1])?Vt(u=>{vt(u)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],u=>{const l=(f=>[new dt(1,[f]),t.fields[1]])(u);return new Be(5,[l[0],l[1]])}):x()];default:{const u=n.SearchState;let l;switch(u.tag){case 2:{u.fields[0]!==t.fields[0]?(l=1,u.fields[0]):l=2;break}case 3:{t.fields[0]!==u.fields[0]?(l=3,u.fields[0]):l=4;break}default:l=0}switch(l){case 0:if(t.fields[0].length>=3){const f=ds();return[new ne(n.IsTouched,n.HasFocus,f,new xe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Vt(c=>{vt(c)},a,(s=[new dt(0,[[t.fields[0],25]]),f],new Be(5,[s[0],s[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new xe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),x()];case 1:if(t.fields[0].length>=3){const f=ds();return[new ne(n.IsTouched,n.HasFocus,f,new xe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Vt(c=>{vt(c)},a,(o=[new dt(0,[[t.fields[0],25]]),f],new Be(5,[o[0],o[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new xe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),x()];case 2:return[n,x()];case 3:if(t.fields[0].length>=3){const f=ds();return[new ne(n.IsTouched,n.HasFocus,f,new xe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Vt(c=>{vt(c)},a,(i=[new dt(0,[[t.fields[0],25]]),f],new Be(5,[i[0],i[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new xe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),x()];default:return[n,x()]}}}}function Lw(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),m("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Cn(e),"data-testid":"fund-usi"})],["children",y.Children.toArray(Array.from(t))])])))}function Ln(e){return m("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function Pw(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{Zt(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return Ln("Start typing to find the results");case 1:return Ln("Searching...");case 2:return Ln("Keep typing to narrow down your search.");case 3:return Ln("Search failed.");case 4:return Ln("No items match your search");default:return m("div",F(T((n=X(M(()=>ke(i=>m("div",{className:P(" ",X(M(()=>W($("cursor-pointer text-wrap py-1.5 pl-4"),M(()=>de(o.SelectedIndex,i)?$("bg-primary-light"):ce()))))),onClick:a=>{let u;t((u=[i,!0],new Be(4,[u[0],u[1]])))},onMouseEnter:a=>{let u;t((u=[i,!1],new Be(4,[u[0],u[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${Wn(i,o.Funds).ProductName} (${Wn(i,o.Funds).Usi})`}),nl(0,1,Zt(o.Funds)-1)))),["children",y.Children.toArray(Array.from(n))]))))}}function Rw(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=y.useRef(void 0),o=[n.HasFocus];y.useEffect(()=>{n.HasFocus===!1&&zr(a=>{a.blur()},eu(s.current))},o);const i=X(M(()=>{let a,u;return W($(m("div",F(S([["className","relative mt-3"],(a=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),m("div",F(S([["className","mt-1"],["onBlur",l=>{t(new Be(1,[]))}],(u=X(M(()=>W($(m("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:Iw(n),inputMode:"search",className:P(" ",X(M(()=>W($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>W(r?$("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ce(),M(()=>r&&!n.HasFocus?$("text-red-900"):ce()))))))),onKeyUp:l=>{switch(l.key){case"Enter":{t(new Be(3,[new dn(0,[])]));break}case"ArrowDown":{t(new Be(3,[new dn(1,[])]));break}case"ArrowUp":{t(new Be(3,[new dn(2,[])]));break}case"Escape":{t(new Be(3,[new dn(3,[])]));break}}l.preventDefault()},onChange:l=>{t(new Be(0,[l.target.value]))},onFocus:l=>{t(new Be(2,[]))},ref:s})),M(()=>{let l,f;return n.HasFocus?$(m("div",F(S([(l="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",l]),(f=[Pw(n,t)],["children",y.Children.toArray(Array.from(f))])])))):$(ts(n.ErrorMessage))})))),["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])])))),M(()=>{const l=n.ValidatedFund;return l!=null?$(Lw(l[1])):$(ve())}))}));return m(Ee,{},...i)}class Uw extends I{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function Ao(e,t){const n={detail:t};return new CustomEvent(e,n)}const Hw=Ao("byof-loaded",{sender:"super-byof"}),zw=Ao("byof-cancelled",{sender:"super-byof"});function Gw(e){return Ao("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class No extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function ko(e){let t;t=e.tag===1?zw:e.tag===2?Gw(e.fields[0]):Hw,document.dispatchEvent(t)}function jw(e,t){ko(new No(2,[e]))}function Ww(e){ko(new No(0,[]))}function qw(e){ko(new No(1,[]))}class ea extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let lt=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},fn=class extends I{constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}};const Jw=new fn(Vw(void 0),pw(void 0),bw(void 0),Fw(void 0));function Zw(){return[Jw,rt(e=>{Ww()})]}function Rl(e){let t,n;const r=Dw(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=Bw(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[T(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const u=Vl(e.MemberNumber.Value);if(a=u.tag===1?new d(1,[T(u.fields[0])]):new d(0,[u.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let l;const f=Ol(e.MemberFirstName.Value);if(l=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),l.tag===1)return new d(1,[l.fields[0]]);{let c;const w=Ll(e.MemberLastName.Value);return c=w.tag===1?new d(1,[T(w.fields[0])]):new d(0,[w.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new xw(t.fields[0],s.fields[0],a.fields[0],l.fields[0],c.fields[0])])}}}}}function Kw(e){return new fn(Pl(e.Fund)[0],he(e.MemberNumber),he(e.MemberFirstName),he(e.MemberLastName))}function hs(e,t,n){return n(e.tag===1?he(t):ol(t,e.fields[0]))}function Yw(e,t,n){switch(t.tag){case 1:return[hs(t.fields[0],n.MemberNumber,r=>new fn(n.Fund,r,n.MemberFirstName,n.MemberLastName)),x()];case 2:return[hs(t.fields[0],n.MemberFirstName,r=>new fn(n.Fund,n.MemberNumber,r,n.MemberLastName)),x()];case 3:return[hs(t.fields[0],n.MemberLastName,r=>new fn(n.Fund,n.MemberNumber,n.MemberFirstName,r)),x()];case 4:{const r=Rl(n);if(r.tag===1)return[Kw(n),x()];{const s=r.fields[0],o=new Uw($r(s.FundName),Cn(s.FundUsi),ww(s.MemberNumber),yw(s.MemberFirstName),Cw(s.MemberLastName));return[n,rt(i=>{jw(o)})]}}case 5:return[n,rt(r=>{qw()})];default:{const r=Ow(e.GetAustralianFundList,t.fields[0],n.Fund);return[new fn(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),en(s=>new lt(0,[s]),r[1])]}}}function Qw(e){let t,n,r,s,o,i,a;const u=e.backendService,l=Dn(()=>In(Zw,(g,A)=>Yw(u,g,A),(g,A)=>{}),void 0,void 0),f=l[0],c=l[1],w=(g,A)=>{c(g(new ea(1,[])))},h=(g,A)=>{c(g(new ea(0,[A])))};let p;p=Rl(f).tag!==1;const b=T(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Nw,m("div",F(T((r=[(s=S([m(Rw,{state:f.Fund,dispatch:g=>{c(new lt(0,[g]))}}),kw(new Ae(f.MemberNumber,L(w)(g=>new lt(1,[g])),L(h)(g=>new lt(1,[g])))),m("div",F(S([["className","flex space-x-4"],(o=[Ew(new Ae(f.MemberFirstName,L(w)(g=>new lt(2,[g])),L(h)(g=>new lt(2,[g])))),Mw(new Ae(f.MemberLastName,L(w)(g=>new lt(3,[g])),L(h)(g=>new lt(3,[g]))))],["children",y.Children.toArray(Array.from(o))])])))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[Tw(p,g=>{g.preventDefault(),c(new lt(4,[]))}),$w(g=>{g.preventDefault(),c(new lt(5,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(b))})}function Xw(e){let t;const n=S([m("style",{children:[to]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}function e_(e){let t;return Xw((t=qr(e.backendUrl,e.accessToken),m(Qw,{backendService:t})))}function t_(){es(e=>m(e_,e),"apollo-super-byof")}class n_ extends I{constructor(t){super(),this.FundUsi=t}}class r_ extends I{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}function Eo(e,t){const n={detail:t};return new CustomEvent(e,n)}function s_(e){return Eo("default-fund-loaded",{fundUsi:It(e.FundUsi),sender:"super-default-fund"})}const o_=Eo("default-fund-cancelled",{sender:"super-default-fund"});function i_(e){return Eo("default-fund-completed",{fundName:e.FundName,fundUsi:e.FundUsi,sender:"super-default-fund"})}class Mo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function To(e){let t;t=e.tag===1?o_:e.tag===2?i_(e.fields[0]):s_(e.fields[0]),document.dispatchEvent(t)}function a_(e,t){To(new Mo(2,[e]))}function u_(e,t){To(new Mo(0,[e]))}function l_(e){To(new Mo(1,[]))}let ta=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Submit","Cancel"]}};class c_ extends I{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}class na extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoEmployerDefault","ValidDefaultFund"]}}let ra=class extends I{constructor(t){super(),this.EmployersDefaultFund=t}};function d_(e,t){const n=s=>{let o;return rt((o=new n_(s),i=>{u_(o)}))},r=e.EmployersDefaultFund;if(r!=null){const s=r;return[new ra(new na(1,[new c_(s.FundName,s.FundUsi)])),n(s.FundUsi)]}else return[new ra(new na(0,[])),n(void 0)]}function f_(e,t){if(e.tag===1)return[t,rt(n=>{l_()})];{const n=t.EmployersDefaultFund;if(n.tag===1){const r=n.fields[0],s=new r_(r.FundName,r.FundUsi);return[t,rt(o=>{a_(s)})]}else return[t,x()]}}const m_=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(m("path",F(S([["fillRule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),h_=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([m_])}),m("div",F(S([["className","ml-3 text-sm text-yellow-700 leading-5"],(t=[m("span",F(T((n="It looks like your employer has not specified a default fund, please contact them if you'd like to use your company's default fund.",["children",n]))))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function sa(e,t){let n,r;return m("div",F(S([["className","mt-3"],(n=[m("label",{className:"text-sm font-medium text-gray-700",children:e}),m("div",F(S([(r="mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm",["className",r]),["children",t]])))],["children",y.Children.toArray(Array.from(n))])])))}const p_=m("div",F(S([["className","text-sm text-gray-700"],(()=>{let e;const t=[m("label",{className:"font-semibold text-gray-900",children:"By clicking “Continue”, you acknowledge that:"}),m("ul",F(S([["className","list-disc list-outside pl-5"],(e=[m("li",{className:"mt-2",children:"you are choosing to join your employer's default super fund;"}),m("li",{className:"mt-2",children:"your employer will open a new account for you with their default super fund; and"}),m("li",{className:"mt-2",children:"your application to join is subject to Trustee approval."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()]))),w_=m("div",{className:"mt-8 mb-8 h-px w-full bg-gray-200"});function __(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("button",{className:P(" ",X(M(()=>W($("w-full inline-flex justify-center py-2 px-4 text-sm font-medium rounded-lg transition-all text-white"),M(()=>$(e?"cursor-pointer bg-primary-base hover:bg-primary-hover":"cursor-not-allowed bg-primary-disabled")))))),"data-testid":"continue-button",disabled:!e,onClick:t,children:"Continue"})],["children",y.Children.toArray(Array.from(n))])])))}function g_(e){let t;const n=T(m("button",F(S([(t="w-full inline-flex justify-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 cursor-pointer",["className",t]),["data-testid","back-button"],["onClick",e],["children","Back"]]))));return m("div",{children:y.Children.toArray(Array.from(n))})}function b_(e){let t,n,r;const s=Dn(()=>In(()=>d_(e),f_,(l,f)=>{}),void 0,void 0),o=s[0],i=s[1],a=o.EmployersDefaultFund.tag===1,u=S([m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(t=X(M(()=>W($(m("p",{className:"sm:text-lg font-bold mb-3",children:"Fund details"})),M(()=>{let l;const f=o.EmployersDefaultFund;if(f.tag===1){const c=f.fields[0];return $((l=S([sa("Fund Name",c.FundName),sa("Fund USI",c.FundUsi),w_,p_]),m("div",{children:y.Children.toArray(Array.from(l))})))}else return $(h_)})))),["children",y.Children.toArray(Array.from(t))])]))),m("div",F(S([["className","flex justify-center mt-8"],(n=[m("div",F(S([["className","sm:max-w-320 w-full"],(r=X(M(()=>W(a?$(__(a,l=>{l.preventDefault(),i(new ta(0,[]))})):ce(),M(()=>$(g_(l=>{l.preventDefault(),i(new ta(1,[]))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]);return m("div",{children:y.Children.toArray(Array.from(u))})}function y_(e){let t;const n=S([m("style",{children:[to]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}class Ul extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedDefaultChoice"]}}class Bs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function S_(){return[new Bs(0,[]),T(e=>{e(new Ul(0,[]))})]}function v_(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Bs(2,[]),x()]:[new Bs(1,[t.fields[0].fields[0]]),x()]:[n,Vt(r=>{vt(r)},e,void 0,r=>new Ul(1,[r]))]}function F_(e){let t,n;const s=(t=(n=qr(e.backendUrl,e.accessToken).GetDefaultFund,o=>i=>v_(n,o,i)),Dn(()=>In(S_,j(t),(o,i)=>{}),void 0,void 0))[0];return y_(s.tag===2?Il("We are unable to load the Default Fund form at this time."):s.tag===1?m(b_,s.fields[0]):Fo)}function C_(){es(e=>m(F_,e),"apollo-super-default-fund")}const x_=(e,t)=>{An(()=>{const n=e();return()=>{n.Dispose()}},t)};function A_(e){return{Dispose(){zr(t=>{Z(t)},eu(e))}}}function N_(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),x_(()=>A_(n.current?void 0:(n.current=!0,t.current=Se(e()),r.current?t.current:void 0)),[])}class oa extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failed"]}}function k_(e){return`${e}/super-campaign/cdn/app/apollo-super-campaign.js`}function E_(e){return k.Delay(()=>k.TryWith(k.Delay(()=>{const t=k_(e);return k.Bind(Mf(import(t)),n=>k.Return(new oa(0,[])))}),t=>k.Return(new oa(1,[`Problem loading script from ${e}: ${t.message}`]))))}class ps extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin"]}}class ws extends I{constructor(t,n,r,s,o,i,a,u,l){super(),this.FundType=t,this.FundId=n,this.FundUsi=r,this.FundName=s,this.MemberNumber=o,this.MemberFirstName=i,this.MemberFamilyName=a,this.SourceOfJoin=u,this.IsDefaultExclusive=l}}function ns(e,t){const n={detail:t};return new CustomEvent(e,n)}function M_(e){switch(e.tag){case 1:return"PromotedDefault";case 2:return"PromotedDefaultWithJoin";default:return"Promoted"}}const T_=ns("promoted-fund-loaded",{sender:"super-promoted-fund"}),$_=ns("promoted-fund-cancelled",{sender:"super-promoted-fund"});function I_(e){return ns("super-campaign-load-failed",{reason:e,sender:"super-promoted-fund"})}function D_(e){return ns("promoted-fund-completed",{fundId:e.FundId,fundName:e.FundName,fundType:M_(e.FundType),fundUsi:e.FundUsi,isDefaultExclusive:It(e.IsDefaultExclusive),memberFamilyName:It(e.MemberFamilyName),memberFirstName:It(e.MemberFirstName),memberNumber:It(e.MemberNumber),sender:"super-promoted-fund",sourceOfJoin:It(e.SourceOfJoin)})}class rs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed","LoadFailed"]}}function ss(e){let t;t=e.tag===1?$_:e.tag===2?D_(e.fields[0]):e.tag===3?I_(e.fields[0]):T_,document.dispatchEvent(t)}function B_(e,t){ss(new rs(2,[e]))}function V_(e){ss(new rs(0,[]))}function O_(e){ss(new rs(1,[]))}function L_(e){ss(new rs(3,[e]))}class _s extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","DefinedBenefits"]}}class P_ extends I{constructor(t,n){super(),this.FundId=t,this.FundType=n}}class R_ extends I{constructor(t,n,r,s,o,i,a,u){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=u}}class U_ extends I{constructor(t,n,r,s,o){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.SourceOfJoin=s,this.IsDefaultExclusive=o}}class H_ extends I{constructor(t,n,r,s,o,i,a,u){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=u}}class z_ extends I{constructor(t,n,r,s,o,i,a,u){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberElectContributionRatePreTax=o,this.MemberElectContributionRatePostTax=i,this.SourceOfJoin=a,this.IsDefaultExclusive=u}}class wr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin","DefinedBenefits"]}}function Hl(e){switch(e){case"promoted":return new _s(0,[]);case"promoted-default":return new _s(1,[]);case"defined-benefits":return new _s(2,[]);default:return}}function G_(e){return tr(t=>new P_(e.fundId,t),Hl(e.fundType))}function j_(e){return S(mu(G_,e))}function W_(e){switch(e.fundType){case"Promoted":return new wr(0,[new R_(e.fundId,e.fundName,e.usi,Ue(e.memberNumber,""),e.memberFirstName,e.memberFamilyName,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefault":return new wr(1,[new U_(e.fundId,e.fundName,e.usi,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefaultWithJoin":return new wr(2,[new H_(e.fundId,e.fundName,e.usi,Ue(e.memberNumber,""),Ue(e.memberFirstName,""),Ue(e.memberFamilyName,""),e.sourceOfJoin,e.isDefaultExclusive)]);case"DefinedBenefits":{const n=e.memberElectContributionRatePreTax,r=e.memberElectContributionRatePostTax;let s,o,i;switch(n!=null&&r!=null?(s=0,o=r,i=n):s=1,s){case 0:return new wr(3,[new z_(e.fundId,e.fundName,e.usi,Ue(e.memberNumber,""),i,o,e.sourceOfJoin,e.isDefaultExclusive)]);default:return}}default:return}}class Sr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotLoaded","Loaded","Failed"]}}class Ne extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignLoaded","SuperCampaignLoadFailed","SuperCampaignFailed","ChooseAnotherFundRequested","FundPanelShown","FundTileClicked","FundPdsViewed","DisclaimerViewed","DisclaimerAccepted","PromotedFundJoined","BackendCallCompleted","Terminate"]}}class q_ extends I{constructor(t,n,r,s,o,i){super(),this.FundId=t,this.FundUsi=n,this.FundName=r,this.FundType=s,this.SourceOfJoin=o,this.IsDefaultExclusive=i}}class jt extends I{constructor(t,n,r,s,o){super(),this.Status=t,this.IsListentingToSuperCampaignEvents=n,this.ShownFunds=r,this.DefaultFundUsiSet=s,this.IsDefinedBenefitsEligible=o}}function J_(){return[new jt(new Sr(0,[]),!0,le(),void 0,void 0),x()]}function gs(e){return ad(e," ","")}function Z_(e){switch(e.tag){case 1:{const t=e.fields[0];return new ws(new ps(1,[]),t.FundId,gs(t.Usi),t.FundName,void 0,void 0,void 0,t.SourceOfJoin,t.IsDefaultExclusive)}case 2:{const t=e.fields[0];return new ws(new ps(2,[]),t.FundId,gs(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}case 3:return;default:{const t=e.fields[0];return new ws(new ps(0,[]),t.FundId,gs(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}}}function ct(e){return Hf(t=>{vt(t)},()=>e,void 0,t=>new Ne(10,[]),t=>new Ne(10,[]))}function K_(e){return pn(Xt(ct,e))}function Y_(e,t,n){let r;switch(Lr(je("[Update]: %A"))(t),t.tag){case 1:{const s=t.fields[0],o=new ci(new li(0,[]),s);return[new jt(new Sr(2,[s]),!1,n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),pn(S([ct(e.TrackAnalyticsEvent(new Mt(5,[s]))),ct(e.PostSuperCampaignError(o))]))]}case 2:{const s=t.fields[0],o=new ci(new li(1,[]),s);return[new jt(new Sr(2,[s]),n.IsListentingToSuperCampaignEvents,n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),pn(S([ct(e.TrackAnalyticsEvent(new Mt(6,[s]))),ct(e.PostSuperCampaignError(o))]))]}case 3:return[new jt(n.Status,!1,n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),T(s=>{s(new Ne(11,[]))})];case 4:{const s=t.fields[0],o=new hf("panel",Xt(i=>i.FundId,s),void 0,new mf(1,[]));return[new jt(n.Status,n.IsListentingToSuperCampaignEvents,s,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),ct(e.ViewSuperFundPanel(o))]}case 5:{const s=t.fields[0],o=Xt(u=>u.FundId,n.ShownFunds),i=s.FundType.tag===1?new ai(1,[s.FundId,"panel"]):new ai(0,[s.FundId,"panel"]),a=s.FundType.tag===1?new Mt(1,[new ui(1,[new bu(Ue(s.FundUsi,""),s.FundName,s.FundId,o,n.DefaultFundUsiSet,!0,"panel",s.SourceOfJoin,s.IsDefaultExclusive)])]):new Mt(1,[new ui(0,[new gu(s.FundUsi,s.FundName,s.FundId,o,n.DefaultFundUsiSet,!0,"panel",s.SourceOfJoin,s.IsDefaultExclusive)])]);return[n,K_(S([e.ClickPromotedTile(i),e.TrackAnalyticsEvent(a)]))]}case 6:{const s=new Mt(0,[new _u(t.fields[0],t.fields[1],t.fields[2],!0)]);return[n,ct(e.TrackAnalyticsEvent(s))]}case 7:{const s=new Mt(2,[new yu((r=n.IsDefinedBenefitsEligible,r==null?"Not set":r?"True":"False"),!0)]);return[n,ct(e.TrackAnalyticsEvent(s))]}case 8:{const s=new Mt(3,[new Su(!0)]);return[n,ct(e.TrackAnalyticsEvent(s))]}case 9:{const s=Z_(t.fields[0]);if(s==null)return[n,x()];{const o=s;return[new jt(n.Status,!1,n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),rt(i=>{B_(o)})]}}case 10:return[n,x()];case 11:return[n,x()];default:{const s=ct(e.TrackAnalyticsEvent(new Mt(4,[void 0])));return[new jt(new Sr(1,[]),n.IsListentingToSuperCampaignEvents,n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),pn(S([rt(o=>{V_()}),s]))]}}}class oe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignLoaded","SuperCampaignLoadFailed","SuperCampaignFailed","ChooseAnotherFundRequested","FundPanelShown","FundTileClicked","FundPdsViewed","DisclaimerViewed","DisclaimerAccepted","PromotedFundJoined"]}}function $o(e){switch(e.tag){case 1:return"super-campaign-load-failed";case 2:return"super-campaign-failed";case 3:return"choose-another-fund-requested";case 4:return"fund-panel-shown";case 5:return"fund-tile-clicked";case 6:return"fund-pds-viewed";case 7:return"disclaimer-viewed";case 8:return"disclaimer-accepted";case 9:return"promoted-fund-joined";default:return"super-campaign-loaded"}}function Q_(e){switch(e){case"super-campaign-loaded":return new oe(0,[]);case"super-campaign-load-failed":return new oe(1,[]);case"super-campaign-failed":return new oe(2,[]);case"choose-another-fund-requested":return new oe(3,[]);case"fund-panel-shown":return new oe(4,[]);case"fund-tile-clicked":return new oe(5,[]);case"fund-pds-viewed":return new oe(6,[]);case"disclaimer-viewed":return new oe(7,[]);case"disclaimer-accepted":return new oe(8,[]);case"promoted-fund-joined":return new oe(9,[]);default:return}}const zl=S([new oe(0,[]),new oe(1,[]),new oe(2,[]),new oe(3,[]),new oe(4,[]),new oe(5,[]),new oe(6,[]),new oe(7,[]),new oe(8,[]),new oe(9,[])]);function ut(e){return e==="super-campaign"?!0:e==="super-campaign"}function X_(e,t,n){let r,s,o,i,a,u,l,f,c,w;const h=$o(t);switch(Lr(je("[EventSubscription] Handling event: %s"))(h),t.tag){case 1:{const p=n.detail;p!=null&&ut((r=p,r.sender))&&e(new Ne(1,[p.reason]));break}case 2:{const p=n.detail;p!=null&&ut((s=p,s.sender))&&e(new Ne(2,[p.reason]));break}case 3:{const p=n.detail;p!=null&&ut((o=p,o.sender))&&e(new Ne(3,[]));break}case 4:{const p=n.detail;p!=null&&ut((i=p,i.sender))&&e(new Ne(4,[j_(p.shownFunds)]));break}case 5:{const p=n.detail;if(p!=null&&ut((a=p,a.sender))){const _=p,b=Hl(_.fundType);if(b!=null){const g=b;e(new Ne(5,[new q_(_.fundId,_.fundUsi,_.fundName,g,_.sourceOfJoin,_.isDefaultExclusive)]))}}break}case 6:{const p=n.detail;if(p!=null&&ut((u=p,u.sender))){const _=p;e(new Ne(6,[_.fundUsi,_.fundName,_.pageName]))}break}case 7:{const p=n.detail;p!=null&&ut((l=p,l.sender))&&e(new Ne(7,[]));break}case 8:{const p=n.detail;p!=null&&ut((f=p,f.sender))&&e(new Ne(8,[]));break}case 9:{const p=n.detail;if(p!=null&&ut((c=p,c.sender))){const _=W_(p.fundJoinInfo);_==null||e(new Ne(9,[_]))}break}default:{const p=n.detail;p!=null&&ut((w=p,w.sender))&&e(new Ne(0,[]))}}}function eg(e,t){const n=Q_(t.type);n==null||X_(e,n,t)}function tg(e){Lr(je("[EventSubscription] Subscribing to SuperCampaign events")),Qt(t=>{document.addEventListener($o(t),e)},zl)}function ng(e){Lr(je("[EventSubscription] Unsubscribing from SuperCampaign events")),Qt(t=>{document.removeEventListener($o(t),e)},zl)}function rg(e){return e.IsListentingToSuperCampaignEvents?T([T("super-campaign"),t=>{const n=r=>{eg(t,r)};return tg(n),{Dispose(){ng(n)}}}]):le()}function sg(e){let t;const n=qr(e.backendUrl,e.accessToken);return Dn(()=>y0(r=>de(new Ne(11,[]),r),r=>{O_()},b0(rg,In(J_,(r,s)=>Y_(n,r,s),(r,s)=>{}))),void 0,void 0),m("div",F(T((t=[y.createElement("apollo-super-campaign",{"backend-url":e.backendUrl,"access-token":e.accessToken})],["children",y.Children.toArray(Array.from(t))]))))}class _r extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Loading","Loaded","Failed"]}}function og(e){const t=y.useState(new _r(0,[])),n=t[1],r=t[0];switch(N_(()=>(n(new _r(1,[])),Nu(k.Delay(()=>k.Bind(E_(e.backendUrl),s=>{if(s.tag===1){const o=s.fields[0];return n(new _r(3,[o])),L_(o),k.Zero()}else return n(new _r(2,[])),k.Zero()}))),{Dispose(){}})),r.tag){case 2:return m(sg,{accessToken:e.accessToken,backendUrl:e.backendUrl});case 3:return ve();default:return Fo}}function ig(){es(e=>m(og,e),"apollo-super-promoted-fund")}dw();t_();C_();ig();
45
+ */var xn=I0;function D0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var B0=typeof Object.is=="function"?Object.is:D0,V0=xn.useState,O0=xn.useEffect,L0=xn.useLayoutEffect,P0=xn.useDebugValue;function R0(e,t){var n=t(),r=V0({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return L0(function(){s.value=n,s.getSnapshot=t,hs(s)&&o({inst:s})},[e,n,t]),O0(function(){return hs(s)&&o({inst:s}),e(function(){hs(s)&&o({inst:s})})},[e]),P0(n),n}function hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!B0(e,n)}catch{return!0}}function U0(e,t){return t()}var H0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?U0:R0;ll.useSyncExternalStore=xn.useSyncExternalStore!==void 0?xn.useSyncExternalStore:H0;ul.exports=ll;var z0=ul.exports;class G0{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=k0(s)(this.arg);let l=a[0],u=a[1];i=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const h=Ns(this.state[0]);return T0(this.arg,N0((p,w)=>{const _=this.state;this.finalDispatch=w,this.state=[p,_[1],!0,o],p!==_[0]&&f()},E0((p,w)=>{const _=this.cmd;return this.cmd=A(),[this.state[0],_]},(p,w,_)=>p(w)(this.state[0]),Es(p=>p),Es(p=>p),j(p=>p),p=>[w=>p[0](w)?!0:h&&c,w=>{const _=w;Ns(_)?Z(_):p[1](w)}],s))),()=>{c=!0}}}}function qi(e,t,n){return new G0(e,t,n)}function j0(e){return e.state}function W0(e){return e.subscribe}function J0(e,t,n){return he(e.arg,t)?!he(e.dependencies,n):!0}function Vn(e,t,n){const r=Nn(()=>qi(e,t,n)),s=r[0];J0(s,t,n)&&r[1](qi(e,t,n));const o=z0.useSyncExternalStore(W0(s),()=>j0(s)),i=o[2],a=o[3],l=o[1];return kn(()=>{if(i&&a.length>0){let u=se(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Z(u)}Vc(a)}},[i,a]),[o[0],l]}function Me(e,t){return su(t)?new d(1,[`${e} is required`]):new d(0,[t])}function kt(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Co(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Zr(e){return e.trim()}function xo(e){return ao(e,"\\s+","")}function On(e,t,n){return ud(eu(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function q0(e){return ao(e,"[^0-9]","")}class mt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Ao extends ${constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class Ne extends ${constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Te(e,t){return new Ao(He(t,""),!1,e,void 0)}function cl(e,t){let n;return new Ao(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function me(e){let t;return new Ao(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function Kr(e){const t=e.target,n=q0(t.value);return t.value=n,n}let Z0=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function dl(e){let t;const n=Me("Fund name",Zr(e));return t=n.tag===1?new d(1,[n.fields[0]]):kt("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Z0(t.fields[0])])}function fl(e){return Te(dl,e)}function K0(e){return e.fields[0]}class Y0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function Yr(e){const t=X(Ee(s=>~~s.charCodeAt(0)-48,e.split(""))),n=S([10,1,3,5,7,9,11,13,15,17,19]),r=Su(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=Kt(t)===Kt(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=Pd((i,a,l)=>i+a*l,0,Hd((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new Y0(e)])}}}function Q0(e){return e.fields[0]}class X0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function ml(e){let t;const n=Me("Fund ESA",Zr(e));return t=n.tag===1?new d(1,[n.fields[0]]):kt("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new X0(t.fields[0])])}function hl(e){return Te(ml,e)}function ep(e){return e.fields[0]}class tp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function pl(e){let t;const n=Me("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):kt("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new tp(t.fields[0])])}function wl(e){return Te(pl,e)}function np(e){return e.fields[0]}class rp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function _l(e){if(su(e))return new d(0,[void 0]);{const t=kt("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new rp(t.fields[0])])}}function gl(e){return Te(_l,e)}function sp(e){if(e!=null)return e.fields[0]}class op extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function bl(e){const t=Me("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new op(t.fields[0])])}function yl(e){return Te(bl,e)}function ip(e){return e.fields[0]}class $t extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function Sl(e){const t=Me("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new $t(0,[])]);case"QLD":return new d(0,[new $t(1,[])]);case"ACT":return new d(0,[new $t(2,[])]);case"VIC":return new d(0,[new $t(3,[])]);case"TAS":return new d(0,[new $t(4,[])]);case"WA":return new d(0,[new $t(5,[])]);case"SA":return new d(0,[new $t(6,[])]);case"NT":return new d(0,[new $t(7,[])]);default:return new d(1,["Select a state'"])}}function vl(e){return Te(Sl,e)}function ap(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class up extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function Fl(e){let t,n;const r=Me("Postcode",xo(e));return n=r.tag===1?new d(1,[r.fields[0]]):kt("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Co("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new up(t.fields[0])])}function Cl(e){return Te(Fl,e)}function lp(e){return e.fields[0]}let cp=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const dp="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function xl(e){let t;const n=Me("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):On("Member given name(s)",dp,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new cp(t.fields[0])])}function Al(e){return Te(xl,e)}function fp(e){return e.fields[0]}let mp=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const hp="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Nl(e){let t;const n=Me("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):On("Last Name",hp,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new mp(t.fields[0])])}function kl(e){return Te(Nl,e)}function pp(e){return e.fields[0]}class wp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function El(e){let t;const n=Me("Account name",Zr(e));return t=n.tag===1?new d(1,[n.fields[0]]):kt("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new wp(t.fields[0])])}function Ml(e){return Te(El,e)}function _p(e){return e.fields[0]}class gp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function Qr(e){let t,n,r;const s=Me("BSB",xo(e));return r=s.tag===1?new d(1,[s.fields[0]]):kt("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Co("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):On("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new gp(t.fields[0])])}function bp(e){return e.fields[0]}class yp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function Tl(e){let t,n,r;const s=Me("Account Number",xo(e));return r=s.tag===1?new d(1,[s.fields[0]]):kt("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Co("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):On("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new yp(t.fields[0])])}function $l(e){return Te(Tl,e)}function Sp(e){return e.fields[0]}class vp extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class Fp extends ${constructor(t,n,r,s,o,i,a,l,u,f,c,h,p){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=h,this.BankAccountNumber=p}}const Cp=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),xp=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([Cp])}),m("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()])));function Et(e){if(e==null)return Ce();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Xr(e){return X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))}function Ap(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Xr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Np(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:P(" ",Xr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function kp(e,t){return m("input",{placeholder:"Address line 1",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ep(e,t){return m("input",{placeholder:"Address line 2 (optional)",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Mp(e,t){return m("input",{placeholder:"City/suburb",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Tp(e,t){let n;return m("div",F(S([["className","flex-1 min-w-0"],(n=[m("input",{placeholder:"Postcode",type:"text",required:!0,className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(Kr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function $p(e,t){let n;const r=m("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=en(o=>m("option",{value:o,children:o,selected:t.Field.Value===o}),S(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return m("div",F(S([["className","w-1/2 flex-1 min-w-0"],(n=[m("select",{className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),id:"state",required:!0,children:y.Children.toArray(Array.from(Oe(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function Ip(e){let t,n,r,s;const o=a=>a.IsTouched;s=Su(a=>a,S([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=zd(a=>a,S([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),m("div",F(S([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[kp(s,e.AddressLine1),Ep(s,e.AddressLine2),Mp(s,e.City),m("div",F(S([["className","flex -space-x-px"],(r=[Tp(s,e.Postcode),$p(s,e.AddressState)],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),Et(s?i:void 0)],["children",y.Children.toArray(Array.from(t))])])))}function Dp(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Xr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Bp(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Xr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Vp(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Op(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),onKeyUp:s=>{e.OnChange(Kr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),Et(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Lp(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?le():T(["onClick",t]),M(()=>{let r;return T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function Pp(e){let t,n,r;return m("div",F(D((t=[m("a",F(S([["href","/"],(n=[m("div",F(D((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}let Zi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Kn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},ht=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},ze=class extends ${constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Il(e,t){if(e==null)return[new ze("",!1,new ht(0,[]),void 0),A()];{const n=e,r=Yr(n);return r.tag===1?[new ze(n,!1,new ht(3,[]),r.fields[0]),A()]:[new ze(n,!1,new ht(1,[]),void 0),D(s=>{s(new Kn(1,[new mt(0,[void 0])]))})]}}function Rp(e,t){const n=Yr(e.RawValue);return n.tag===1?[new ze(e.RawValue,e.IsTouched,new ht(3,[]),n.fields[0]),A()]:t?[new ze(e.RawValue,e.IsTouched,new ht(3,[]),"The supplied ABN is for a regulated fund"),A()]:[new ze(e.RawValue,e.IsTouched,new ht(2,[n.fields[0]]),e.ErrorMessage),A()]}function Dl(e){const t=Yr(e.RawValue);return t.tag===1?[new ze(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new ze(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function Up(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ze(n.RawValue,n.IsTouched,new ht(3,[]),"Something went wrong when validating your fund ABN"),A()]:Rp(n,t.fields[0].fields[0].fields[0]):[n,Ot(r=>{Ft(r)},e,n.RawValue,r=>new Kn(1,[new mt(1,[r])]))];if(t.fields[0].tag===1)return Dl(n);{const r=Yr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new ze(t.fields[0].fields[0],n.IsTouched,new ht(0,[]),r.fields[0]),A()]:[new ze(t.fields[0].fields[0],n.IsTouched,new ht(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new ze(t.fields[0].fields[0],n.IsTouched,new ht(1,[]),void 0),D(s=>{s(new Kn(1,[new mt(0,[void 0])]))})]}}function Hp(e){let t,n;const r=e.dispatch,s=e.state,o=l=>{r(new Kn(0,[new Zi(0,[l])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>i?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),onKeyUp:l=>{o(Kr(l))},onBlur:l=>{r(new Kn(0,[new Zi(1,[])]))},onChange:l=>{o(l.target.value)}}),Et(s.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))];return m(Fe,{},...a)}class zp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Gp(e){return e.fields[0]}function jp(e){return new zp(`${e.Bank} - ${e.Branch}`)}let Ki=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Yn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class xt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let pt=class extends ${constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function Bl(e,t){if(e==null)return[new pt("",!1,new xt(0,[]),void 0),A()];{const n=e,r=Qr(n);return r.tag===1?[new pt(n,!1,new xt(3,[]),r.fields[0]),A()]:[new pt(n,!1,new xt(1,[]),void 0),D(s=>{s(new Yn(1,[new mt(0,[void 0])]))})]}}function Yi(e){return new pt(e.RawValue,e.IsTouched,new xt(3,[]),"Unable to identify the bank using the provided BSB number")}function Wp(e,t){let n;const r=Qr(e.RawValue);return n=r.tag===1?[new xt(3,[]),r.fields[0]]:[new xt(2,[[r.fields[0],jp(t)]]),void 0],new pt(e.RawValue,e.IsTouched,n[0],n[1])}function Vl(e){const t=Qr(e.RawValue);return t.tag===1?[new pt(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new pt(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function Jp(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Yi(n),A()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Wp(n,r),A()]:[Yi(n),A()]}}else return[n,Ot(r=>{Ft(r)},e,n.RawValue,r=>new Yn(1,[new mt(1,[r])]))];else{if(t.fields[0].tag===1)return Vl(n);{const r=Qr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new pt(t.fields[0].fields[0],n.IsTouched,new xt(0,[]),r.fields[0]),A()]:[new pt(t.fields[0].fields[0],n.IsTouched,new xt(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new pt(t.fields[0].fields[0],n.IsTouched,new xt(1,[]),void 0),D(s=>{s(new Yn(1,[new mt(0,[void 0])]))})]}}}function qp(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),m("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Gp(e),"data-testid":"bank-name"})],["children",y.Children.toArray(Array.from(t))])])))}function Zp(e){const t=e.dispatch,n=e.state,r=i=>{t(new Yn(0,[new Ki(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=X(M(()=>{let i,a;return W(T(m("div",F(S([["className","mt-3"],(i=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),m("div",F(S([["className","mt-1"],(a=[m("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>s?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))),onKeyUp:l=>{r(Kr(l))},onBlur:l=>{t(new Yn(0,[new Ki(1,[])]))},onChange:l=>{r(l.target.value)}}),Et(n.ErrorMessage)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))),M(()=>{const l=n.Value;switch(l.tag){case 2:return T(qp(l.fields[0][1]));default:return T(Ce())}}))}));return m(Fe,{},...o)}let Qi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},R=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},fe=class extends ${constructor(t,n,r,s,o,i,a,l,u,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=l,this.BankAccountNumber=u,this.BankName=f}};class Dt extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const Kp=(()=>{let e;const t=Il(void 0);e=[t[0],tn(s=>new R(1,[s]),t[1])];let n;const r=Bl(void 0);return n=[r[0],tn(s=>new R(11,[s]),r[1])],[new fe(fl(void 0),e[0],hl(void 0),new Dt(wl(void 0),gl(void 0),yl(void 0),vl(void 0),Cl(void 0)),Al(void 0),kl(void 0),Ml(void 0),n[0],$l(void 0),void 0),_n(S([e[1],n[1]]))]})();function Yp(e){let t;const n=Il(e.Abn);t=[n[0],tn(o=>new R(1,[o]),n[1])];let r;const s=Bl(e.Bsb);return r=[s[0],tn(o=>new R(11,[o]),s[1])],[new fe(fl(e.FundName),t[0],hl(e.ElectronicServiceAddress),new Dt(wl(e.FundAddress.AddressLine1),gl(e.FundAddress.AddressLine2),yl(e.FundAddress.City),vl(e.FundAddress.State),Cl(e.FundAddress.Postcode)),Al(e.MemberFirstName),kl(e.MemberFamilyName),Ml(e.BankAccountName),r[0],$l(e.BankAccountNumber),void 0),_n(S([t[1],r[1]]))]}function Qp(e){let t;return He((t=e,t==null?void 0:Yp(t)),Kp)}function Ol(e){let t;const n=dl(e.FundName.Value);if(t=n.tag===1?new d(1,[D(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[D("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=ml(e.FundEsa.Value);if(o=i.tag===1?new d(1,[D(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const l=pl(e.FundAddress.AddressLine1.Value);if(a=l.tag===1?new d(1,[D(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=_l(e.FundAddress.AddressLine2.Value);if(u=f.tag===1?new d(1,[D(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const h=bl(e.FundAddress.City.Value);if(c=h.tag===1?new d(1,[D(h.fields[0])]):new d(0,[h.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let p;const w=Sl(e.FundAddress.AddressState.Value);if(p=w.tag===1?new d(1,[D(w.fields[0])]):new d(0,[w.fields[0]]),p.tag===1)return new d(1,[p.fields[0]]);{let _;const b=Fl(e.FundAddress.Postcode.Value);if(_=b.tag===1?new d(1,[D(b.fields[0])]):new d(0,[b.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let g;const x=xl(e.MemberFirstName.Value);if(g=x.tag===1?new d(1,[D(x.fields[0])]):new d(0,[x.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let v;const Q=Nl(e.MemberLastName.Value);if(v=Q.tag===1?new d(1,[D(Q.fields[0])]):new d(0,[Q.fields[0]]),v.tag===1)return new d(1,[v.fields[0]]);{let de;const Je=El(e.BankAccountName.Value);if(de=Je.tag===1?new d(1,[D(Je.fields[0])]):new d(0,[Je.fields[0]]),de.tag===1)return new d(1,[de.fields[0]]);{let Ut;const Ht=e.BankAccountBsb.Value;if(Ut=Ht.tag===2?new d(0,[Ht.fields[0][0]]):new d(1,[D("Bank BSB is invalid")]),Ut.tag===1)return new d(1,[Ut.fields[0]]);{let st;const zt=Tl(e.BankAccountNumber.Value);return st=zt.tag===1?new d(1,[D(zt.fields[0])]):new d(0,[zt.fields[0]]),st.tag===1?new d(1,[st.fields[0]]):new d(0,[new Fp(t.fields[0],r.fields[0],o.fields[0],a.fields[0],u.fields[0],c.fields[0],p.fields[0],_.fields[0],g.fields[0],v.fields[0],de.fields[0],Ut.fields[0],st.fields[0])])}}}}}}}}}}}}}function Xp(e){return new fe(me(e.FundName),Dl(e.FundAbn)[0],me(e.FundEsa),new Dt(me(e.FundAddress.AddressLine1),me(e.FundAddress.AddressLine2),me(e.FundAddress.City),me(e.FundAddress.AddressState),me(e.FundAddress.Postcode)),me(e.MemberFirstName),me(e.MemberLastName),me(e.BankAccountName),Vl(e.BankAccountBsb)[0],me(e.BankAccountNumber),e.BankName)}function Ke(e,t,n){return n(e.tag===1?me(t):cl(t,e.fields[0]))}function ew(e,t,n){switch(t.tag){case 1:{const r=Up(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new fe(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),tn(s=>new R(1,[s]),r[1])]}case 2:return[Ke(t.fields[0],n.FundEsa,r=>new fe(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 3:return[Ke(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new fe(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 4:return[Ke(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new fe(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 5:return[Ke(t.fields[0],n.FundAddress.City,r=>{let s;return new fe(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 6:return[Ke(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new fe(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 7:return[Ke(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new fe(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new Dt(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 8:return[Ke(t.fields[0],n.MemberFirstName,r=>new fe(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 9:return[Ke(t.fields[0],n.MemberLastName,r=>new fe(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 10:return[Ke(t.fields[0],n.BankAccountName,r=>new fe(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 11:{const r=Jp(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new fe(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),tn(s=>new R(11,[s]),r[1])]}case 12:return[Ke(t.fields[0],n.BankAccountNumber,r=>new fe(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),A()];case 13:{const r=Ol(n);if(r.tag===1)return[Xp(n),A()];{const s=r.fields[0];return[n,tm(new Yf(K0(s.FundName),Q0(s.FundAbn),ep(s.FundEsa),np(s.FundAddressLine1),sp(s.FundAddressLine2),ip(s.FundCity),ap(s.FundState),lp(s.FundPostcode),fp(s.MemberFirstName),pp(s.MemberLastName),_p(s.BankAccountName),bp(s.BankAccountBsb),Sp(s.BankAccountNumber)))]}}case 14:return[n,rm()];default:return[Ke(t.fields[0],n.FundName,r=>new fe(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()]}}function tw(e){let t,n,r,s,o,i,a;const l=e.smsfChoice,u=e.backendService;let f;const c=Qp(l);f=Vn(()=>Bn(()=>c,(v,Q)=>ew(u,v,Q),(v,Q)=>{}),void 0,void 0);const h=f[0],p=f[1],w=(v,Q)=>{p(v(new Qi(1,[])))},_=(v,Q)=>{p(v(new Qi(0,[Q])))};let b;b=Ol(h).tag!==1;const x=D(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),xp,m("div",F(D((r=[(s=S([Ap(new Ne(h.FundName,L(w)(v=>new R(0,[v])),L(_)(v=>new R(0,[v])))),m(Hp,{state:h.FundAbn,dispatch:v=>{p(new R(1,[v]))}}),Np(new Ne(h.FundEsa,L(w)(v=>new R(2,[v])),L(_)(v=>new R(2,[v])))),Ip(new vp(new Ne(h.FundAddress.AddressLine1,L(w)(v=>new R(3,[v])),L(_)(v=>new R(3,[v]))),new Ne(h.FundAddress.AddressLine2,L(w)(v=>new R(4,[v])),L(_)(v=>new R(4,[v]))),new Ne(h.FundAddress.City,L(w)(v=>new R(5,[v])),L(_)(v=>new R(5,[v]))),new Ne(h.FundAddress.AddressState,L(w)(v=>new R(6,[v])),L(_)(v=>new R(6,[v]))),new Ne(h.FundAddress.Postcode,L(w)(v=>new R(7,[v])),L(_)(v=>new R(7,[v]))))),m("div",F(S([["className","flex space-x-4"],(o=[Dp(new Ne(h.MemberFirstName,L(w)(v=>new R(8,[v])),L(_)(v=>new R(8,[v])))),Bp(new Ne(h.MemberLastName,L(w)(v=>new R(9,[v])),L(_)(v=>new R(9,[v]))))],["children",y.Children.toArray(Array.from(o))])]))),m("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Vp(new Ne(h.BankAccountName,L(w)(v=>new R(10,[v])),L(_)(v=>new R(10,[v])))),m(Zp,{state:h.BankAccountBsb,dispatch:v=>{p(new R(11,[v]))}}),Op(new Ne(h.BankAccountNumber,L(w)(v=>new R(12,[v])),L(_)(v=>new R(12,[v]))))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[Lp(b,v=>{v.preventDefault(),p(new R(13,[]))}),Pp(v=>{v.preventDefault(),p(new R(14,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(x))})}const nw=m("svg",F(S([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=S([m("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),m("g",F(S([["clipPath","url(#clip0_153_10600)"],(e=S([m("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",F(S([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),m("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(e))])]))),(n=D(m("clipPath",F(S([["id","clip0_153_10600"],(r=D(m("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",y.Children.toArray(Array.from(r))])])))),m("defs",{children:y.Children.toArray(Array.from(n))}))]);return["children",y.Children.toArray(Array.from(s))]})()])));function rw(e){return m("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function Ll(e){let t,n,r,s;return m("div",F(S([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[nw,rw("Something went wrong"),m("div",F(S([["className","justify-start items-center"],(r=[m("p",F(S([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),m("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))}function es(e,t){let n;return m("div",F(S([["className",P(" ",["animate-pulse w-full relative",e,t])],(n=[m("div",{className:P(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}const sw=es("h-9","max-w-96"),Xi=es("h-6","max-w-96"),ow=es("h-80","max-w-96"),iw=es("h-10","max-w-48"),No=(()=>{let e,t,n;const r=[m("div",F(S([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[m("div",F(S([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[sw,m("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:y.Children.toArray([Xi,Xi])})],["children",y.Children.toArray(Array.from(n))])]))),ow,iw],["children",y.Children.toArray(Array.from(t))])])))];return m(Fe,{},...r)})();function Dr(){return Dr=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},Dr.apply(this,arguments)}function Pl(e,t){if(e==null)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(s[n]=e[n]);return s}var aw=["context","children"],uw=["useFragment"];function lw(e,t,n,r){function s(){var o,i=Reflect.construct(HTMLElement,[],s);return i._vdomComponent=e,r&&r.shadow?(i._root=i.attachShadow({mode:r.mode||"open",serializable:(o=r.serializable)!=null&&o}),r.adoptedStyleSheets&&(i._root.adoptedStyleSheets=r.adoptedStyleSheets)):i._root=i,i}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=function(){dw.call(this,r)},s.prototype.attributeChangedCallback=fw,s.prototype.disconnectedCallback=mw,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,e.formAssociated&&(s.formAssociated=!0),n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom?this._vdom.props[o]:this._props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i);var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s),s}function cw(e){this.getChildContext=function(){return e.context};var t=e.children,n=Pl(e,aw);return zs(t,n)}function dw(e){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=m(cw,Dr({},this._props,{context:t.detail.context}),Ul(this,this._vdomComponent,e)),(this.hasAttribute("hydrate")?Hs:Lt)(this._vdom,this._root)}function Rl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function fw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Rl(e)]=n,this._vdom=zs(this._vdom,r),Lt(this._vdom,this._root)}}function mw(){Lt(this._vdom=null,this._root)}function ea(e,t){var n=this,r=e.useFragment,s=Pl(e,uw);return m(r?Fe:"slot",Dr({},s,{ref:function(o){o?(n.ref=o,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},o.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Ul(e,t,n){if(e.nodeType===3)return e.data;if(e.nodeType!==1)return null;var r=[],s={},o=0,i=e.attributes,a=e.childNodes;for(o=i.length;o--;)i[o].name!=="slot"&&(s[i[o].name]=i[o].value,s[Rl(i[o].name)]=i[o].value);for(o=a.length;o--;){var l=Ul(a[o],null,n),u=a[o].slot;u?s[u]=m(ea,{name:u},l):r[o]=l}var f=!(!n||!n.shadow),c=t?m(ea,{useFragment:!f},r):r;return!f&&t&&(e.innerHTML=""),m(t||e.nodeName.toLowerCase(),s,c)}function ts(e,t){lw(e,t,void 0,{shadow:!0})}function hw(e){let t;const n=S([m("style",{children:[so]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}let Hl=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Vs=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function pw(){return[new Vs(0,[]),D(e=>{e(new Hl(0,[]))})]}function ww(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Vs(2,[]),A()]:[new Vs(1,[t.fields[0].fields[0].SmsfChoice]),nm()]:[n,Ot(r=>{Ft(r)},e,void 0,r=>new Hl(1,[r]))]}function _w(e){let t,n;const r=qr(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>ww(n,o,i)),Vn(()=>Bn(pw,j(t),(o,i)=>{}),void 0,void 0))[0];return hw(s.tag===1?m(tw,{backendService:r,smsfChoice:It(s.fields[0])}):s.tag===2?Ll("We are unable to load the Self Managed Super Fund form at this time."):No)}function gw(){ts(e=>m(_w,e),"apollo-super-smsf")}class bw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function Br(e){return e.fields[0]}function ta(e){return new bw(e)}class yw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function An(e){return e.fields[0]}function na(e){return new yw(e)}class Sw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function zl(e){let t;const n=Me("Member number",Zr(e));return t=n.tag===1?new d(1,[n.fields[0]]):kt("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Sw(t.fields[0])])}function vw(e){return Te(zl,e)}function Fw(e){return e.fields[0]}class Cw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const xw="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Gl(e){let t;const n=Me("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):On("Member given name(s)",xw,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Cw(t.fields[0])])}function Aw(e){return Te(Gl,e)}function Nw(e){return e.fields[0]}class kw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const Ew="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function jl(e){let t;const n=Me("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):On("Last Name",Ew,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new kw(t.fields[0])])}function Mw(e){return Te(jl,e)}function Tw(e){return e.fields[0]}class $w extends ${constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const Iw=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Dw=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([Iw])}),m("div",F(S([["className","ml-2"],(t=[m("ul",F(S([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[m("li",{children:["Make sure you are a current member of the fund before completing this step."]}),m("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function ns(e){if(e==null)return Ce();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function ko(e){return X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le()))))}function Bw(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:P(" ",ko(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ns(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Vw(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",ko(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ns(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ow(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",ko(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),ns(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Lw(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?le():T(["onClick",t]),M(()=>{let r;return T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function Pw(e){let t,n,r;return m("div",F(D((t=[m("a",F(S([["href","/"],(n=[m("div",F(D((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}class mn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let Be=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class Wt extends ${constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class bt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class Ae extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let ne=class extends ${constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function Rw(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=Zn(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return He(or(n=>`${Br(n[0])} (${An(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${Br(t[0])} (${An(n)})`}}}function Uw(e){return or(t=>t[0],e.ValidatedFund)}function Hw(e){return or(t=>t[1],e.ValidatedFund)}function zw(e){return new ne(!1,!1,void 0,new Ae(0,[]),e,void 0)}function Wl(e){return[new ne(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),A()]}function Gw(e,t,n){let r,s,o,i;const a=l=>k.Delay(()=>k.Bind(Tu(500),()=>k.Return(l)));switch(t.tag){case 1:return Wl(n);case 2:{const l=n.ValidatedFund,u=n.SearchState;let f,c,h,p;switch(l!=null&&u.tag===3&&u.fields[1].tag===0?(f=0,u.fields[0],c=u.fields[1].fields[0],h=l[0],p=l[1]):f=1,f){case 0:{const w=new Wt(c.Funds,Gd(_=>_.Usi===An(p),c.Funds));return[new ne(n.IsTouched,!0,n.SearchCorrelationId,new Ae(3,[`${Br(h)} (${An(p)})`,new bt(0,[w])]),n.ValidatedFund,n.ErrorMessage),A()]}default:return[new ne(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}}case 3:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(Kt(f.Funds)===0)return he(t.fields[0],new mn(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()];{const h=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(h==null)return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(3,[c,new bt(0,[new Wt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()];{const p=h|0;return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(3,[c,new bt(0,[new Wt(f.Funds,Md(Kt(f.Funds)-1,p+1))])]),n.ValidatedFund,n.ErrorMessage),A()]}case 0:if(h!=null){const p=Zn(h,f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[ta(p.ProductName),na(p.Usi)],void 0),A()]}else return[n,A()];case 3:return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()];default:return h==null?[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(3,[c,new bt(0,[new Wt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()]:[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(3,[c,new bt(0,[new Wt(f.Funds,$s(0,h-1))])]),n.ValidatedFund,n.ErrorMessage),A()]}}default:return he(t.fields[0],new mn(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()]}}case 4:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<Kt(l.fields[1].fields[0].Funds)?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(t.fields[1]){const h=Zn(t.fields[0],f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[ta(h.ProductName),na(h.Usi)],void 0),A()]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(3,[c,new bt(0,[new Wt(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}case 5:if(t.fields[0].tag===1)if(he(n.SearchCorrelationId,t.fields[1])){const l=n.SearchState;return l.tag===2?[new ne(n.IsTouched,n.HasFocus,void 0,new Ae(3,[l.fields[0],t.fields[0].fields[0].tag===1?new bt(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new bt(0,[new Wt(Zd(u=>u.ProductName,r.Data,{Compare:rr}),void 0)]):new bt(1,[]))]),n.ValidatedFund,n.ErrorMessage),A()]:[new ne(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}else return[n,A()];else return[n,he(n.SearchCorrelationId,t.fields[1])?Ot(l=>{Ft(l)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],l=>{const u=(f=>[new mt(1,[f]),t.fields[1]])(l);return new Be(5,[u[0],u[1]])}):A()];default:{const l=n.SearchState;let u;switch(l.tag){case 2:{l.fields[0]!==t.fields[0]?(u=1,l.fields[0]):u=2;break}case 3:{t.fields[0]!==l.fields[0]?(u=3,l.fields[0]):u=4;break}default:u=0}switch(u){case 0:if(t.fields[0].length>=3){const f=fs();return[new ne(n.IsTouched,n.HasFocus,f,new Ae(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ot(c=>{Ft(c)},a,(s=[new mt(0,[[t.fields[0],25]]),f],new Be(5,[s[0],s[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Ae(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 1:if(t.fields[0].length>=3){const f=fs();return[new ne(n.IsTouched,n.HasFocus,f,new Ae(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ot(c=>{Ft(c)},a,(o=[new mt(0,[[t.fields[0],25]]),f],new Be(5,[o[0],o[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new Ae(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 2:return[n,A()];case 3:if(t.fields[0].length>=3){const f=fs();return[new ne(n.IsTouched,n.HasFocus,f,new Ae(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Ot(c=>{Ft(c)},a,(i=[new mt(0,[[t.fields[0],25]]),f],new Be(5,[i[0],i[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new Ae(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}}}function jw(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),m("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:An(e),"data-testid":"fund-usi"})],["children",y.Children.toArray(Array.from(t))])])))}function Rn(e){return m("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function Ww(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{Kt(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return Rn("Start typing to find the results");case 1:return Rn("Searching...");case 2:return Rn("Keep typing to narrow down your search.");case 3:return Rn("Search failed.");case 4:return Rn("No items match your search");default:return m("div",F(D((n=X(M(()=>Ee(i=>m("div",{className:P(" ",X(M(()=>W(T("cursor-pointer text-wrap py-1.5 pl-4"),M(()=>he(o.SelectedIndex,i)?T("bg-primary-light"):le()))))),onClick:a=>{let l;t((l=[i,!0],new Be(4,[l[0],l[1]])))},onMouseEnter:a=>{let l;t((l=[i,!1],new Be(4,[l[0],l[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${Zn(i,o.Funds).ProductName} (${Zn(i,o.Funds).Usi})`}),al(0,1,Kt(o.Funds)-1)))),["children",y.Children.toArray(Array.from(n))]))))}}function Jw(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=y.useRef(void 0),o=[n.HasFocus];y.useEffect(()=>{n.HasFocus===!1&&Gr(a=>{a.blur()},ou(s.current))},o);const i=X(M(()=>{let a,l;return W(T(m("div",F(S([["className","relative mt-3"],(a=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),m("div",F(S([["className","mt-1"],["onBlur",u=>{t(new Be(1,[]))}],(l=X(M(()=>W(T(m("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:Rw(n),inputMode:"search",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>W(r?T("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):le(),M(()=>r&&!n.HasFocus?T("text-red-900"):le()))))))),onKeyUp:u=>{switch(u.key){case"Enter":{t(new Be(3,[new mn(0,[])]));break}case"ArrowDown":{t(new Be(3,[new mn(1,[])]));break}case"ArrowUp":{t(new Be(3,[new mn(2,[])]));break}case"Escape":{t(new Be(3,[new mn(3,[])]));break}}u.preventDefault()},onChange:u=>{t(new Be(0,[u.target.value]))},onFocus:u=>{t(new Be(2,[]))},ref:s})),M(()=>{let u,f;return n.HasFocus?T(m("div",F(S([(u="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",u]),(f=[Ww(n,t)],["children",y.Children.toArray(Array.from(f))])])))):T(ns(n.ErrorMessage))})))),["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(a))])])))),M(()=>{const u=n.ValidatedFund;return u!=null?T(jw(u[1])):T(Ce())}))}));return m(Fe,{},...i)}class qw extends ${constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function Eo(e,t){const n={detail:t};return new CustomEvent(e,n)}const Zw=Eo("byof-loaded",{sender:"super-byof"}),Kw=Eo("byof-cancelled",{sender:"super-byof"});function Yw(e){return Eo("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class Mo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function To(e){let t;t=e.tag===1?Kw:e.tag===2?Yw(e.fields[0]):Zw,document.dispatchEvent(t)}function Qw(e,t){To(new Mo(2,[e]))}function Xw(e){To(new Mo(0,[]))}function e_(e){To(new Mo(1,[]))}class ra extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let ct=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},hn=class extends ${constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}};const t_=new hn(zw(void 0),vw(void 0),Aw(void 0),Mw(void 0));function n_(){return[t_,ke(e=>{Xw()})]}function Jl(e){let t,n;const r=Uw(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[D(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=Hw(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[D(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const l=zl(e.MemberNumber.Value);if(a=l.tag===1?new d(1,[D(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=Gl(e.MemberFirstName.Value);if(u=f.tag===1?new d(1,[D(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const h=jl(e.MemberLastName.Value);return c=h.tag===1?new d(1,[D(h.fields[0])]):new d(0,[h.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new $w(t.fields[0],s.fields[0],a.fields[0],u.fields[0],c.fields[0])])}}}}}function r_(e){return new hn(Wl(e.Fund)[0],me(e.MemberNumber),me(e.MemberFirstName),me(e.MemberLastName))}function ps(e,t,n){return n(e.tag===1?me(t):cl(t,e.fields[0]))}function s_(e,t,n){switch(t.tag){case 1:return[ps(t.fields[0],n.MemberNumber,r=>new hn(n.Fund,r,n.MemberFirstName,n.MemberLastName)),A()];case 2:return[ps(t.fields[0],n.MemberFirstName,r=>new hn(n.Fund,n.MemberNumber,r,n.MemberLastName)),A()];case 3:return[ps(t.fields[0],n.MemberLastName,r=>new hn(n.Fund,n.MemberNumber,n.MemberFirstName,r)),A()];case 4:{const r=Jl(n);if(r.tag===1)return[r_(n),A()];{const s=r.fields[0],o=new qw(Br(s.FundName),An(s.FundUsi),Fw(s.MemberNumber),Nw(s.MemberFirstName),Tw(s.MemberLastName));return[n,ke(i=>{Qw(o)})]}}case 5:return[n,ke(r=>{e_()})];default:{const r=Gw(e.GetAustralianFundList,t.fields[0],n.Fund);return[new hn(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),tn(s=>new ct(0,[s]),r[1])]}}}function o_(e){let t,n,r,s,o,i,a;const l=e.backendService,u=Vn(()=>Bn(n_,(g,x)=>s_(l,g,x),(g,x)=>{}),void 0,void 0),f=u[0],c=u[1],h=(g,x)=>{c(g(new ra(1,[])))},p=(g,x)=>{c(g(new ra(0,[x])))};let w;w=Jl(f).tag!==1;const b=D(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Dw,m("div",F(D((r=[(s=S([m(Jw,{state:f.Fund,dispatch:g=>{c(new ct(0,[g]))}}),Bw(new Ne(f.MemberNumber,L(h)(g=>new ct(1,[g])),L(p)(g=>new ct(1,[g])))),m("div",F(S([["className","flex space-x-4"],(o=[Vw(new Ne(f.MemberFirstName,L(h)(g=>new ct(2,[g])),L(p)(g=>new ct(2,[g])))),Ow(new Ne(f.MemberLastName,L(h)(g=>new ct(3,[g])),L(p)(g=>new ct(3,[g]))))],["children",y.Children.toArray(Array.from(o))])])))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[Lw(w,g=>{g.preventDefault(),c(new ct(4,[]))}),Pw(g=>{g.preventDefault(),c(new ct(5,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(b))})}function i_(e){let t;const n=S([m("style",{children:[so]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}function a_(e){let t;return i_((t=qr(e.backendUrl,e.accessToken),m(o_,{backendService:t})))}function u_(){ts(e=>m(a_,e),"apollo-super-byof")}class l_ extends ${constructor(t){super(),this.FundUsi=t}}class c_ extends ${constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}function $o(e,t){const n={detail:t};return new CustomEvent(e,n)}function d_(e){return $o("default-fund-loaded",{fundUsi:It(e.FundUsi),sender:"super-default-fund"})}const f_=$o("default-fund-cancelled",{sender:"super-default-fund"});function m_(e){return $o("default-fund-completed",{fundName:e.FundName,fundUsi:e.FundUsi,sender:"super-default-fund"})}class Io extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Do(e){let t;t=e.tag===1?f_:e.tag===2?m_(e.fields[0]):d_(e.fields[0]),document.dispatchEvent(t)}function h_(e,t){Do(new Io(2,[e]))}function p_(e,t){Do(new Io(0,[e]))}function w_(e){Do(new Io(1,[]))}let sa=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Submit","Cancel"]}};class __ extends ${constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}class oa extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoEmployerDefault","ValidDefaultFund"]}}let ia=class extends ${constructor(t){super(),this.EmployersDefaultFund=t}};function g_(e,t){const n=s=>{let o;return ke((o=new l_(s),i=>{p_(o)}))},r=e.EmployersDefaultFund;if(r!=null){const s=r;return[new ia(new oa(1,[new __(s.FundName,s.FundUsi)])),n(s.FundUsi)]}else return[new ia(new oa(0,[])),n(void 0)]}function b_(e,t){if(e.tag===1)return[t,ke(n=>{w_()})];{const n=t.EmployersDefaultFund;if(n.tag===1){const r=n.fields[0],s=new c_(r.FundName,r.FundUsi);return[t,ke(o=>{h_(s)})]}else return[t,A()]}}const y_=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fillRule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),S_=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([y_])}),m("div",F(S([["className","ml-3 text-sm text-yellow-700 leading-5"],(t=[m("span",F(D((n="It looks like your employer has not specified a default fund, please contact them if you'd like to use your company's default fund.",["children",n]))))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function aa(e,t){let n,r;return m("div",F(S([["className","mt-3"],(n=[m("label",{className:"text-sm font-medium text-gray-700",children:e}),m("div",F(S([(r="mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm",["className",r]),["children",t]])))],["children",y.Children.toArray(Array.from(n))])])))}const v_=m("div",F(S([["className","text-sm text-gray-700"],(()=>{let e;const t=[m("label",{className:"font-semibold text-gray-900",children:"By clicking “Continue”, you acknowledge that:"}),m("ul",F(S([["className","list-disc list-outside pl-5"],(e=[m("li",{className:"mt-2",children:"you are choosing to join your employer's default super fund;"}),m("li",{className:"mt-2",children:"your employer will open a new account for you with their default super fund; and"}),m("li",{className:"mt-2",children:"your application to join is subject to Trustee approval."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()]))),F_=m("div",{className:"mt-8 mb-8 h-px w-full bg-gray-200"});function C_(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("button",{className:P(" ",X(M(()=>W(T("w-full inline-flex justify-center py-2 px-4 text-sm font-medium rounded-lg transition-all text-white"),M(()=>T(e?"cursor-pointer bg-primary-base hover:bg-primary-hover":"cursor-not-allowed bg-primary-disabled")))))),"data-testid":"continue-button",disabled:!e,onClick:t,children:"Continue"})],["children",y.Children.toArray(Array.from(n))])])))}function x_(e){let t;const n=D(m("button",F(S([(t="w-full inline-flex justify-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 cursor-pointer",["className",t]),["data-testid","back-button"],["onClick",e],["children","Back"]]))));return m("div",{children:y.Children.toArray(Array.from(n))})}function A_(e){let t,n,r;const s=Vn(()=>Bn(()=>g_(e),b_,(u,f)=>{}),void 0,void 0),o=s[0],i=s[1],a=o.EmployersDefaultFund.tag===1,l=S([m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(t=X(M(()=>W(T(m("p",{className:"sm:text-lg font-bold mb-3",children:"Fund details"})),M(()=>{let u;const f=o.EmployersDefaultFund;if(f.tag===1){const c=f.fields[0];return T((u=S([aa("Fund Name",c.FundName),aa("Fund USI",c.FundUsi),F_,v_]),m("div",{children:y.Children.toArray(Array.from(u))})))}else return T(S_)})))),["children",y.Children.toArray(Array.from(t))])]))),m("div",F(S([["className","flex justify-center mt-8"],(n=[m("div",F(S([["className","sm:max-w-320 w-full"],(r=X(M(()=>W(a?T(C_(a,u=>{u.preventDefault(),i(new sa(0,[]))})):le(),M(()=>T(x_(u=>{u.preventDefault(),i(new sa(1,[]))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]);return m("div",{children:y.Children.toArray(Array.from(l))})}function N_(e){let t;const n=S([m("style",{children:[so]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}class ql extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedDefaultChoice"]}}class Os extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function k_(){return[new Os(0,[]),D(e=>{e(new ql(0,[]))})]}function E_(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Os(2,[]),A()]:[new Os(1,[t.fields[0].fields[0]]),A()]:[n,Ot(r=>{Ft(r)},e,void 0,r=>new ql(1,[r]))]}function M_(e){let t,n;const s=(t=(n=qr(e.backendUrl,e.accessToken).GetDefaultFund,o=>i=>E_(n,o,i)),Vn(()=>Bn(k_,j(t),(o,i)=>{}),void 0,void 0))[0];return N_(s.tag===2?Ll("We are unable to load the Default Fund form at this time."):s.tag===1?m(A_,s.fields[0]):No)}function T_(){ts(e=>m(M_,e),"apollo-super-default-fund")}const Zl=(e,t)=>{kn(()=>{const n=e();return()=>{n.Dispose()}},t)};function $_(e){return{Dispose(){Gr(t=>{Z(t)},ou(e))}}}function I_(e){return{Dispose(){e()}}}function D_(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),Zl(()=>$_(n.current?void 0:(n.current=!0,t.current=we(e()),r.current?t.current:void 0)),[])}class ua extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failed"]}}function B_(e){return`${e}/super-campaign/cdn/app/apollo-super-campaign.js`}function V_(e){return k.Delay(()=>k.TryWith(k.Delay(()=>{const t=B_(e);return k.Bind(Lf(import(t)),n=>k.Return(new ua(0,[])))}),t=>k.Return(new ua(1,[`Problem loading script from ${e}: ${t.message}`]))))}class ws extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin"]}}class _s extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundType=t,this.FundId=n,this.FundUsi=r,this.FundName=s,this.MemberNumber=o,this.MemberFirstName=i,this.MemberFamilyName=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function rs(e,t){const n={detail:t};return new CustomEvent(e,n)}function O_(e){switch(e.tag){case 1:return"PromotedDefault";case 2:return"PromotedDefaultWithJoin";default:return"Promoted"}}const L_=rs("promoted-fund-loaded",{sender:"super-promoted-fund"}),P_=rs("promoted-fund-cancelled",{sender:"super-promoted-fund"});function R_(e){return rs("super-campaign-load-failed",{reason:e,sender:"super-promoted-fund"})}function U_(e){return rs("promoted-fund-completed",{fundId:e.FundId,fundName:e.FundName,fundType:O_(e.FundType),fundUsi:e.FundUsi,isDefaultExclusive:It(e.IsDefaultExclusive),memberFamilyName:It(e.MemberFamilyName),memberFirstName:It(e.MemberFirstName),memberNumber:It(e.MemberNumber),sender:"super-promoted-fund",sourceOfJoin:It(e.SourceOfJoin)})}class ss extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed","LoadFailed"]}}function os(e){let t;t=e.tag===1?P_:e.tag===2?U_(e.fields[0]):e.tag===3?R_(e.fields[0]):L_,document.dispatchEvent(t)}function H_(e,t){os(new ss(2,[e]))}function z_(e){os(new ss(0,[]))}function gs(e){os(new ss(1,[]))}function G_(e){os(new ss(3,[e]))}class bs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","DefinedBenefits"]}}class j_ extends ${constructor(t,n){super(),this.FundId=t,this.FundType=n}}class W_ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class J_ extends ${constructor(t,n,r,s,o){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.SourceOfJoin=s,this.IsDefaultExclusive=o}}class q_ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class Z_ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberElectContributionRatePreTax=o,this.MemberElectContributionRatePostTax=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class gr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin","DefinedBenefits"]}}function Kl(e){switch(e){case"promoted":return new bs(0,[]);case"promoted-default":return new bs(1,[]);case"defined-benefits":return new bs(2,[]);default:return}}function K_(e){return or(t=>new j_(e.fundId,t),Kl(e.fundType))}function Y_(e){return S(gu(K_,e))}function Q_(e){switch(e.fundType){case"Promoted":return new gr(0,[new W_(e.fundId,e.fundName,e.usi,He(e.memberNumber,""),e.memberFirstName,e.memberFamilyName,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefault":return new gr(1,[new J_(e.fundId,e.fundName,e.usi,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefaultWithJoin":return new gr(2,[new q_(e.fundId,e.fundName,e.usi,He(e.memberNumber,""),He(e.memberFirstName,""),He(e.memberFamilyName,""),e.sourceOfJoin,e.isDefaultExclusive)]);case"DefinedBenefits":{const n=e.memberElectContributionRatePreTax,r=e.memberElectContributionRatePostTax;let s,o,i;switch(n!=null&&r!=null?(s=0,o=r,i=n):s=1,s){case 0:return new gr(3,[new Z_(e.fundId,e.fundName,e.usi,He(e.memberNumber,""),i,o,e.sourceOfJoin,e.isDefaultExclusive)]);default:return}}default:return}}class Fr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotLoaded","Loaded","Failed"]}}class Ue extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignLoaded","SuperCampaignLoadFailed","SuperCampaignFailed","ChooseAnotherFundRequested","FundPanelShown","FundTileClicked","FundPdsViewed","DisclaimerViewed","DisclaimerAccepted","PromotedFundJoined","BackendCallCompleted"]}}class X_ extends ${constructor(t,n,r,s,o,i){super(),this.FundId=t,this.FundUsi=n,this.FundName=r,this.FundType=s,this.SourceOfJoin=o,this.IsDefaultExclusive=i}}class Hn extends ${constructor(t,n,r,s){super(),this.Status=t,this.ShownFunds=n,this.DefaultFundUsiSet=r,this.IsDefinedBenefitsEligible=s}}function eg(){return Vt(pe("[PromotedFund] State.init")),[new Hn(new Fr(0,[]),ce(),void 0,void 0),A()]}function ys(e){return pd(e," ","")}function tg(e){switch(e.tag){case 1:{const t=e.fields[0];return new _s(new ws(1,[]),t.FundId,ys(t.Usi),t.FundName,void 0,void 0,void 0,t.SourceOfJoin,t.IsDefaultExclusive)}case 2:{const t=e.fields[0];return new _s(new ws(2,[]),t.FundId,ys(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}case 3:return;default:{const t=e.fields[0];return new _s(new ws(0,[]),t.FundId,ys(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}}}function dt(e){return Kf(t=>{Ft(t)},()=>e,void 0,t=>new Ue(10,[]),t=>new Ue(10,[]))}function ng(e){return _n(en(dt,e))}function rg(e,t,n){let r;switch(t.tag){case 1:{const s=t.fields[0],o=new mi(new fi(0,[]),s);return[new Hn(new Fr(2,[s]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),_n(S([dt(e.TrackAnalyticsEvent(new Mt(5,[s]))),dt(e.PostSuperCampaignError(o)),ke(i=>{gs()})]))]}case 2:{const s=t.fields[0],o=new mi(new fi(1,[]),s);return[new Hn(new Fr(2,[s]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),_n(S([dt(e.TrackAnalyticsEvent(new Mt(6,[s]))),dt(e.PostSuperCampaignError(o)),ke(i=>{gs()})]))]}case 3:return[n,ke(s=>{gs()})];case 4:{const s=t.fields[0],o=new vf("panel",en(i=>i.FundId,s),void 0,new Sf(1,[]));return[new Hn(n.Status,s,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),dt(e.ViewSuperFundPanel(o))]}case 5:{const s=t.fields[0],o=en(l=>l.FundId,n.ShownFunds),i=s.FundType.tag===1?new ci(1,[s.FundId,"panel"]):new ci(0,[s.FundId,"panel"]),a=s.FundType.tag===1?new Mt(1,[new di(1,[new Cu(He(s.FundUsi,""),s.FundName,s.FundId,o,n.DefaultFundUsiSet,!0,"panel",s.SourceOfJoin,s.IsDefaultExclusive)])]):new Mt(1,[new di(0,[new Fu(s.FundUsi,s.FundName,s.FundId,o,n.DefaultFundUsiSet,!0,"panel",s.SourceOfJoin,s.IsDefaultExclusive)])]);return[n,ng(S([e.ClickPromotedTile(i),e.TrackAnalyticsEvent(a)]))]}case 6:{const s=new Mt(0,[new vu(t.fields[0],t.fields[1],t.fields[2],!0)]);return[n,dt(e.TrackAnalyticsEvent(s))]}case 7:{const s=new Mt(2,[new xu((r=n.IsDefinedBenefitsEligible,r==null?"Not set":r?"True":"False"),!0)]);return[n,dt(e.TrackAnalyticsEvent(s))]}case 8:{const s=new Mt(3,[new Au(!0)]);return[n,dt(e.TrackAnalyticsEvent(s))]}case 9:{const s=tg(t.fields[0]);if(s==null)return[n,A()];{const o=s;return[n,ke(i=>{H_(o)})]}}case 10:return[n,A()];default:{const s=dt(e.TrackAnalyticsEvent(new Mt(4,[void 0])));return[new Hn(new Fr(1,[]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),_n(S([ke(o=>{z_()}),s]))]}}}class oe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignLoaded","SuperCampaignLoadFailed","SuperCampaignFailed","ChooseAnotherFundRequested","FundPanelShown","FundTileClicked","FundPdsViewed","DisclaimerViewed","DisclaimerAccepted","PromotedFundJoined"]}}function Bo(e){switch(e.tag){case 1:return"super-campaign-load-failed";case 2:return"super-campaign-failed";case 3:return"choose-another-fund-requested";case 4:return"fund-panel-shown";case 5:return"fund-tile-clicked";case 6:return"fund-pds-viewed";case 7:return"disclaimer-viewed";case 8:return"disclaimer-accepted";case 9:return"promoted-fund-joined";default:return"super-campaign-loaded"}}function sg(e){switch(e){case"super-campaign-loaded":return new oe(0,[]);case"super-campaign-load-failed":return new oe(1,[]);case"super-campaign-failed":return new oe(2,[]);case"choose-another-fund-requested":return new oe(3,[]);case"fund-panel-shown":return new oe(4,[]);case"fund-tile-clicked":return new oe(5,[]);case"fund-pds-viewed":return new oe(6,[]);case"disclaimer-viewed":return new oe(7,[]);case"disclaimer-accepted":return new oe(8,[]);case"promoted-fund-joined":return new oe(9,[]);default:return}}const Yl=S([new oe(0,[]),new oe(1,[]),new oe(2,[]),new oe(3,[]),new oe(4,[]),new oe(5,[]),new oe(6,[]),new oe(7,[]),new oe(8,[]),new oe(9,[])]);function lt(e){return e==="super-campaign"?!0:e==="super-campaign"}function og(e,t,n){let r,s,o,i,a,l,u,f,c,h;const p=Bo(t);switch(Vt(pe("[EventSubscription] Handling event: %s"))(p),t.tag){case 1:{const w=n.detail;w!=null&&lt((r=w,r.sender))&&e(new Ue(1,[w.reason]));break}case 2:{const w=n.detail;w!=null&&lt((s=w,s.sender))&&e(new Ue(2,[w.reason]));break}case 3:{const w=n.detail;w!=null&&lt((o=w,o.sender))&&e(new Ue(3,[]));break}case 4:{const w=n.detail;w!=null&&lt((i=w,i.sender))&&e(new Ue(4,[Y_(w.shownFunds)]));break}case 5:{const w=n.detail;if(w!=null&&lt((a=w,a.sender))){const _=w,b=Kl(_.fundType);if(b!=null){const g=b;e(new Ue(5,[new X_(_.fundId,_.fundUsi,_.fundName,g,_.sourceOfJoin,_.isDefaultExclusive)]))}}break}case 6:{const w=n.detail;if(w!=null&&lt((l=w,l.sender))){const _=w;e(new Ue(6,[_.fundUsi,_.fundName,_.pageName]))}break}case 7:{const w=n.detail;w!=null&&lt((u=w,u.sender))&&e(new Ue(7,[]));break}case 8:{const w=n.detail;w!=null&&lt((f=w,f.sender))&&e(new Ue(8,[]));break}case 9:{const w=n.detail;if(w!=null&&lt((c=w,c.sender))){const _=Q_(w.fundJoinInfo);_==null||e(new Ue(9,[_]))}break}default:{const w=n.detail;w!=null&&lt((h=w,h.sender))&&e(new Ue(0,[]))}}}function ig(e,t){const n=sg(t.type);n==null||og(e,n,t)}function ag(e){Vt(pe("[EventSubscription] Subscribing to SuperCampaign events")),Xt(t=>{document.addEventListener(Bo(t),e)},Yl)}function ug(e){Vt(pe("[EventSubscription] Unsubscribing from SuperCampaign events")),Xt(t=>{document.removeEventListener(Bo(t),e)},Yl)}function lg(e){let t;console.warn(we("[PromotedFund] render"));const n=Vn(()=>Bn(eg,(r,s)=>rg(e.backendService,r,s),(r,s)=>{}),void 0,[]);return Zl(()=>{const r=s=>{ig(n[1],s)};return ag(r),I_(()=>{ug(r)})},[]),m("div",F(D((t=[y.createElement("apollo-super-campaign",{"backend-url":e.backendUrl,"access-token":e.accessToken})],["children",y.Children.toArray(Array.from(t))]))))}class br extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Loading","Loaded","Failed"]}}function cg(e){const t=y.useState(new br(0,[])),n=t[1],r=t[0];switch(D_(()=>(n(new br(1,[])),$u(k.Delay(()=>k.Bind(V_(e.backendUrl),s=>{if(s.tag===1){const o=s.fields[0];return n(new br(3,[o])),G_(o),k.Zero()}else return n(new br(2,[])),k.Zero()}))),{Dispose(){}})),r.tag){case 2:return m(lg,{accessToken:e.accessToken,backendService:qr(e.backendUrl,e.accessToken),backendUrl:e.backendUrl});case 3:return Ce();default:return No}}function dg(){ts(e=>m(cg,e),"apollo-super-promoted-fund")}gw();u_();T_();dg();