@flarehr/apollo-personal-details-app 0.1.2214 → 0.1.2217

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.
@@ -0,0 +1,45 @@
1
+ (function(){"use strict";var ln,O,os,bt,ss,is,Or,Pr,Rr,Vr,us,cn={},as=[],hl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,zn=Array.isArray;function it(e,t){for(var n in t)e[n]=t[n];return e}function ls(e){var t=e.parentNode;t&&t.removeChild(e)}function C(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?ln.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return fn(e,i,r,o,null)}function fn(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++os,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(s),s}function cs(){return{current:null}}function Ye(e){return e.children}function He(e,t){this.props=e,this.context=t}function St(e,t){if(t==null)return e.__?St(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"?St(e):null}function fs(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 fs(e)}}function Lr(e){(!e.__d&&(e.__d=!0)&&bt.push(e)&&!Wn.__r++||ss!==O.debounceRendering)&&((ss=O.debounceRendering)||is)(Wn)}function Wn(){var e,t,n,r,o,s,i,u;for(bt.sort(Or);e=bt.shift();)e.__d&&(t=bt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],u=[],n.__P&&((r=it({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),Hr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??St(o),!!(32&o.__u),u),r.__v=o.__v,r.__.__k[r.__i]=r,ms(i,r,u),r.__e!=s&&fs(r)),bt.length>t&&bt.sort(Or));Wn.__r=0}function $s(e,t,n,r,o,s,i,u,a,l,f){var c,h,d,p,m,_=r&&r.__k||as,y=t.length;for(n.__d=a,pl(n,t,_),a=n.__d,c=0;c<y;c++)(d=n.__k[c])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?cn:_[d.__i]||cn,d.__i=c,Hr(e,d,h,o,s,i,u,a,l,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Br(h.ref,null,d),f.push(d.ref,d.__c||p,d)),m==null&&p!=null&&(m=p),65536&d.__u||h.__k===d.__k?a=ds(d,a,e):typeof d.type=="function"&&d.__d!==void 0?a=d.__d:p&&(a=p.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=a,n.__e=m}function pl(e,t,n){var r,o,s,i,u,a=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<a;r++)i=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?fn(null,o,null,null,null):zn(o)?fn(Ye,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?fn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=ml(o,n,i,f),o.__i=u,s=null,u!==-1&&(f--,(s=n[u])&&(s.__u|=131072)),s==null||s.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==i&&(u==i-1?c--:u==i+1?c++:u>i?f>a-i?c+=u-i:c--:u<i&&(u==i-c?c-=u-i:c++),u!==r+c&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=St(s)),Gr(s,s,!1),n[i]=null,f--);if(f)for(r=0;r<l;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=St(s)),Gr(s,s))}function ds(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ds(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=St(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(zn(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function ml(e,t,n,r){var o=e.key,s=e.type,i=n-1,u=n+1,a=t[n];if(a===null||a&&o==a.key&&s===a.type&&!(131072&a.__u))return n;if(r>(a!=null&&!(131072&a.__u)?1:0))for(;i>=0||u<t.length;){if(i>=0){if((a=t[i])&&!(131072&a.__u)&&o==a.key&&s===a.type)return i;i--}if(u<t.length){if((a=t[u])&&!(131072&a.__u)&&o==a.key&&s===a.type)return u;u++}}return-1}function hs(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hl.test(t)?n:n+"px"}function qn(e,t,n,r,o){var s;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||hs(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||hs(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=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+s]=n,n?r?n.u=r.u:(n.u=Pr,e.addEventListener(t,s?Vr:Rr,s)):e.removeEventListener(t,s?Vr:Rr,s);else{if(o=="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 ps(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Pr++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Hr(e,t,n,r,o,s,i,u,a,l){var f,c,h,d,p,m,_,y,E,T,U,Oe,mt,yt,jn,rs,st=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),s=[u=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof st=="function")try{if(y=t.props,E="prototype"in st&&st.prototype.render,T=(f=st.contextType)&&r[f.__c],U=f?T?T.props.value:f.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:(E?t.__c=c=new st(y,U):(t.__c=c=new He(y,U),c.constructor=st,c.render=wl),T&&T.sub(c),c.props=y,c.state||(c.state={}),c.context=U,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),E&&c.__s==null&&(c.__s=c.state),E&&st.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=it({},c.__s)),it(c.__s,st.getDerivedStateFromProps(y,c.__s))),d=c.props,p=c.state,c.__v=t,h)E&&st.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),E&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(E&&st.getDerivedStateFromProps==null&&y!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,U),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,U)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Dr){Dr&&(Dr.__=t)}),Oe=0;Oe<c._sb.length;Oe++)c.__h.push(c._sb[Oe]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,U),E&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,m)})}if(c.context=U,c.props=y,c.__P=e,c.__e=!1,mt=O.__r,yt=0,E){for(c.state=c.__s,c.__d=!1,mt&&mt(t),f=c.render(c.props,c.state,c.context),jn=0;jn<c._sb.length;jn++)c.__h.push(c._sb[jn]);c._sb=[]}else do c.__d=!1,mt&&mt(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++yt<25);c.state=c.__s,c.getChildContext!=null&&(r=it(it({},r),c.getChildContext())),E&&!h&&c.getSnapshotBeforeUpdate!=null&&(m=c.getSnapshotBeforeUpdate(d,p)),$s(e,zn(rs=f!=null&&f.type===Ye&&f.key==null?f.props.children:f)?rs:[rs],t,n,r,o,s,i,u,a,l),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),_&&(c.__E=c.__=null)}catch(Dr){if(t.__v=null,a||s!=null){for(t.__u|=a?160:32;u&&u.nodeType===8&&u.nextSibling;)u=u.nextSibling;s[s.indexOf(u)]=null,t.__e=u}else t.__e=n.__e,t.__k=n.__k;O.__e(Dr,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_l(n.__e,t,n,r,o,s,i,a,l);(f=O.diffed)&&f(t)}function ms(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Br(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){O.__e(s,o.__v)}})}function _l(e,t,n,r,o,s,i,u,a){var l,f,c,h,d,p,m,_=n.props,y=t.props,E=t.type;if(E==="svg"?o="http://www.w3.org/2000/svg":E==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((d=s[l])&&"setAttribute"in d==!!E&&(E?d.localName===E:d.nodeType===3)){e=d,s[l]=null;break}}if(e==null){if(E===null)return document.createTextNode(y);e=document.createElementNS(o,E,y.is&&y),s=null,u=!1}if(E===null)_===y||u&&e.data===y||(e.data=y);else{if(s=s&&ln.call(e.childNodes),_=n.props||cn,!u&&s!=null)for(_={},l=0;l<e.attributes.length;l++)_[(d=e.attributes[l]).name]=d.value;for(l in _)if(d=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=d;else if(l!=="key"&&!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;qn(e,l,null,d,o)}}for(l in y)d=y[l],l=="children"?h=d:l=="dangerouslySetInnerHTML"?f=d:l=="value"?p=d:l=="checked"?m=d:l==="key"||u&&typeof d!="function"||_[l]===d||qn(e,l,d,_[l],o);if(f)u||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),$s(e,zn(h)?h:[h],t,n,r,E==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&St(n,0),u,a),s!=null)for(l=s.length;l--;)s[l]!=null&&ls(s[l]);u||(l="value",p!==void 0&&(p!==e[l]||E==="progress"&&!p||E==="option"&&p!==_[l])&&qn(e,l,p,_[l],o),l="checked",m!==void 0&&m!==e[l]&&qn(e,l,m,_[l],o))}return e}function Br(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(o){O.__e(o,n)}}function Gr(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Br(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){O.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Gr(r[o],t,n||typeof e.type!="function");n||e.__e==null||ls(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wl(e,t,n){return this.constructor(e,n)}function _t(e,t,n){var r,o,s,i;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Hr(t,e=(!r&&n||t).__k=C(Ye,null,[e]),o||cn,cn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ln.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),ms(s,e,i)}function Ur(e,t){_t(e,t,Ur)}function jr(e,t,n){var r,o,s,i,u=it({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:u[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?ln.call(arguments,2):n),fn(e.type,u,r||e.key,o||e.ref,null)}function _s(e,t){var n={__c:t="__cC"+us++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(u){u.__e=!0,Lr(u)})},this.sub=function(i){o.push(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.splice(o.indexOf(i),1),u&&u.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ln=as.slice,O={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},os=0,He.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=it({},this.state),typeof e=="function"&&(e=e(it({},n),this.props)),e&&it(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Lr(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Lr(this))},He.prototype.render=Ye,bt=[],is=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Or=function(e,t){return e.__v.__b-t.__v.__b},Wn.__r=0,Pr=0,Rr=ps(!1),Vr=ps(!0),us=0;var at,H,zr,ws,Vt=0,gs=[],Z=O,ys=Z.__b,bs=Z.__r,Ss=Z.diffed,Cs=Z.__c,vs=Z.unmount,Es=Z.__;function Ct(e,t){Z.__h&&Z.__h(H,e,Vt||t),Vt=0;var n=H.__H||(H.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function vt(e){return Vt=1,Zn(ks,e)}function Zn(e,t,n){var r=Ct(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ks(void 0,t),function(u){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,u);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=H,!H.u)){var o=function(u,a,l){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!s||s.call(this,u,a,l);var c=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),!(!c&&r.__c.props===u)&&(!s||s.call(this,u,a,l))};H.u=!0;var s=H.shouldComponentUpdate,i=H.componentWillUpdate;H.componentWillUpdate=function(u,a,l){if(this.__e){var f=s;s=void 0,o(u,a,l),s=f}i&&i.call(this,u,a,l)},H.shouldComponentUpdate=o}return r.__N||r.__}function Et(e,t){var n=Ct(at++,3);!Z.__s&&Xr(n.__H,t)&&(n.__=e,n.i=t,H.__H.__h.push(n))}function xt(e,t){var n=Ct(at++,4);!Z.__s&&Xr(n.__H,t)&&(n.__=e,n.i=t,H.__h.push(n))}function $n(e){return Vt=5,dn(function(){return{current:e}},[])}function Wr(e,t,n){Vt=6,xt(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 dn(e,t){var n=Ct(at++,7);return Xr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function qr(e,t){return Vt=8,dn(function(){return e},t)}function Zr(e){var t=H.context[e.__c],n=Ct(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(H)),t.props.value):e.__}function Jr(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function gl(e){var t=Ct(at++,10),n=vt();return t.__=e,H.componentDidCatch||(H.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Yr(){var e=Ct(at++,11);if(!e.__){for(var t=H.__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 yl(){for(var e;e=gs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jn),e.__H.__h.forEach(Kr),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){H=null,ys&&ys(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Es&&Es(e,t)},Z.__r=function(e){bs&&bs(e),at=0;var t=(H=e.__c).__H;t&&(zr===H?(t.__h=[],H.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Jn),t.__h.forEach(Kr),t.__h=[],at=0)),zr=H},Z.diffed=function(e){Ss&&Ss(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gs.push(t)!==1&&ws===Z.requestAnimationFrame||((ws=Z.requestAnimationFrame)||bl)(yl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),zr=H=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Jn),n.__h=n.__h.filter(function(r){return!r.__||Kr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),Cs&&Cs(e,t)},Z.unmount=function(e){vs&&vs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Jn(r)}catch(o){t=o}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var xs=typeof requestAnimationFrame=="function";function bl(e){var t,n=function(){clearTimeout(r),xs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xs&&(t=requestAnimationFrame(n))}function Jn(e){var t=H,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),H=t}function Kr(e){var t=H;e.__c=e.__(),H=t}function Xr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ks(e,t){return typeof t=="function"?t(e):t}function Ms(e,t){for(var n in t)e[n]=t[n];return e}function Qr(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 Yn(e,t){this.props=e,this.context=t}function Ts(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Qr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,C(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yn.prototype=new He).isPureReactComponent=!0,Yn.prototype.shouldComponentUpdate=function(e,t){return Qr(this.props,e)||Qr(this.state,t)};var Ns=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ns&&Ns(e)};var Sl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function As(e){function t(n){var r=Ms({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Sl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Is=function(e,t){return e==null?null:ut(ut(e).map(t))},Fs={map:Is,forEach:Is,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Cl=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Cl(e,t,n,r)};var Ds=O.unmount;function Os(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=Ms({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Os(r,t,n)})),e}function Ps(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ps(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 hn(){this.__u=0,this.t=null,this.__b=null}function Rs(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vs(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return C(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){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),Ds&&Ds(e)},(hn.prototype=new He).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Rs(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(u):u())};n.__R=i;var u=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=Ps(a,a.__c.__P,a.__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)},hn.prototype.componentWillUnmount=function(){this.t=[]},hn.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]=Os(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&C(Ye,null,e.fallback);return o&&(o.__u&=-33),[C(Ye,null,t.__a?null:e.children),o]};var Ls=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 vl(e){return this.getChildContext=function(){return e.context},e.children}function El(e){var t=this,n=e.i;t.componentWillUnmount=function(){_t(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,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),_t(C(vl,{context:t.context},e.__v),t.l)}function Hs(e,t){var n=C(El,{__v:e,i:t});return n.containerInfo=t,n}(Lt.prototype=new He).__a=function(e){var t=this,n=Rs(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Ls(t,e,r)):o()};n?n(s):s()}},Lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(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},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ls(e,n,t)})};var Bs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xl=/^(?: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]/,kl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ml=/[A-Z0-9]/g,Tl=typeof document<"u",Nl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gs(e,t,n){return t.__k==null&&(t.textContent=""),_t(e,t),typeof n=="function"&&n(),e?e.__c:null}function Us(e,t,n){return Ur(e,t),typeof n=="function"&&n(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var js=O.event;function Al(){}function Il(){return this.cancelBubble}function Fl(){return this.defaultPrevented}O.event=function(e){return js&&(e=js(e)),e.persist=Al,e.isPropagationStopped=Il,e.isDefaultPrevented=Fl,e.nativeEvent=e};var eo,Dl={enumerable:!1,configurable:!0,get:function(){return this.class}},zs=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},s=r.indexOf("-")===-1;for(var i in n){var u=n[i];if(!(i==="value"&&"defaultValue"in n&&u==null||Tl&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&u===!0?u="":a==="translate"&&u==="no"?u=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Nl(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":kl.test(i)&&(i=a):a=i="oninput":s&&xl.test(i)?i=i.replace(Ml,"-$&").toLowerCase():u===null&&(u=void 0),a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=u}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Dl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Bs,zs&&zs(e)};var Ws=O.__r;O.__r=function(e){Ws&&Ws(e),eo=e.__c};var qs=O.diffed;O.diffed=function(e){qs&&qs(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),eo=null};var Zs={ReactCurrentDispatcher:{current:{readContext:function(e){return eo.__n[e.__c].props.value},useCallback:qr,useContext:Zr,useDebugValue:Jr,useDeferredValue:no,useEffect:Et,useId:Yr,useImperativeHandle:Wr,useInsertionEffect:oo,useLayoutEffect:xt,useMemo:dn,useReducer:Zn,useRef:$n,useState:vt,useSyncExternalStore:so,useTransition:ro}}},Ol="17.0.2";function Js(e){return C.bind(null,e)}function pn(e){return!!e&&e.$$typeof===Bs}function Ys(e){return pn(e)&&e.type===Ye}function Ks(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Xs(e){return pn(e)?jr.apply(null,arguments):e}function Qs(e){return!!e.__k&&(_t(null,e),!0)}function ei(e){return e&&(e.base||e.nodeType===1&&e)||null}var ti=function(e,t){return e(t)},ni=function(e,t){return e(t)},ri=Ye;function to(e){e()}function no(e){return e}function ro(){return[!1,to]}var oo=xt,oi=pn;function so(e,t){var n=t(),r=vt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return xt(function(){o.__=n,o.v=t,io(o)&&s({h:o})},[e,n,t]),Et(function(){return io(o)&&s({h:o}),e(function(){io(o)&&s({h:o})})},[e]),n}function io(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var si={useState:vt,useId:Yr,useReducer:Zn,useEffect:Et,useLayoutEffect:xt,useInsertionEffect:oo,useTransition:ro,useDeferredValue:no,useSyncExternalStore:so,startTransition:to,useRef:$n,useImperativeHandle:Wr,useMemo:dn,useCallback:qr,useContext:Zr,useDebugValue:Jr,version:"17.0.2",Children:Fs,render:Gs,hydrate:Us,unmountComponentAtNode:Qs,createPortal:Hs,createElement:C,createContext:_s,createFactory:Js,cloneElement:Xs,createRef:cs,Fragment:Ye,isValidElement:pn,isElement:oi,isFragment:Ys,isMemo:Ks,findDOMNode:ei,Component:He,PureComponent:Yn,memo:Ts,forwardRef:As,flushSync:ni,unstable_batchedUpdates:ti,StrictMode:ri,Suspense:hn,SuspenseList:Lt,lazy:Vs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs};const Pl=Object.freeze(Object.defineProperty({__proto__:null,Children:Fs,Component:He,Fragment:Ye,PureComponent:Yn,StrictMode:ri,Suspense:hn,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zs,cloneElement:Xs,createContext:_s,createElement:C,createFactory:Js,createPortal:Hs,createRef:cs,default:si,findDOMNode:ei,flushSync:ni,forwardRef:As,hydrate:Us,isElement:oi,isFragment:Ys,isMemo:Ks,isValidElement:pn,lazy:Vs,memo:Ts,render:Gs,startTransition:to,unmountComponentAtNode:Qs,unstable_batchedUpdates:ti,useCallback:qr,useContext:Zr,useDebugValue:Jr,useDeferredValue:no,useEffect:Et,useErrorBoundary:gl,useId:Yr,useImperativeHandle:Wr,useInsertionEffect:oo,useLayoutEffect:xt,useMemo:dn,useReducer:Zn,useRef:$n,useState:vt,useSyncExternalStore:so,useTransition:ro,version:Ol},Symbol.toStringTag,{value:"Module"})),Ht=Symbol("numeric");function ii(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ht])}function Rl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function uo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ht]().multiply(t)}function Kn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ht]().toFixed(t)}function Xn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ht]().toPrecision(t)}function Qn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ht]().toExponential(t)}function er(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ht]().toHex()}function Ke(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Vl(e){return e!=null&&typeof e.GetEnumerator=="function"}function Ll(e){return e!=null&&typeof e.CompareTo=="function"}function Hl(e){return e!=null&&typeof e.Equals=="function"}function ui(e){return e!=null&&typeof e.GetHashCode=="function"}function ao(e){return e!=null&&typeof e.Dispose=="function"}function L(e){ao(e)&&e.Dispose()}function ge(){return null}function tr(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 Bl{constructor(t){this.iter=t,this.current=ge()}"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 q(e){return Vl(e)?e.GetEnumerator():new Bl(e[Symbol.iterator]())}function mn(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 Gl{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 V(e,t){return e.toString(10).padStart(t,"0")}function Ul(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function ai(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function jl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Be(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class lt{static id(t){return lt.idMap.has(t)||lt.idMap.set(t,++lt.count),lt.idMap.get(t)}}lt.idMap=new WeakMap,lt.count=0;function _n(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ge(e){return e*2654435761|0}function li(e){return _n(e.toString(32))}function wn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function zl(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ge(e);case"bigint":return li(e);case"string":return _n(e);default:return Ge(lt.id(e))}}function Wl(e){return ui(e)?e.GetHashCode():zl(e)}function ql(e){return e.getTime()}function Zl(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xe(e[r]);return wn(n)}function Xe(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ge(e);case"bigint":return li(e);case"string":return _n(e);default:{if(ui(e))return e.GetHashCode();if(Ke(e))return Zl(e);if(e instanceof Date)return ql(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xe(r));return wn(n)}else return Ge(lt.id(e))}}}function ci(e){return Wl(e)}function lo(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 fi(e,t){return lo(e,t,pe)}function Jl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!pe(e[n[o]],t[r[o]]))return!1;return!0}function pe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Hl(e)?e.Equals(t):Ke(e)?Ke(t)&&fi(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&co(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Jl(e,t)}function co(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ai(e),r=t.getTime()+ai(t)),n===r?0:n<r?-1:1}function nr(e,t){return e===t?0:e<t?-1:1}function Yl(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,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function $i(e,t){return Yl(e,t,Pe)}function Kl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=Pe(e[i],t[i]),s!==0)return s}return 0}function Pe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Ll(e)?e.CompareTo(t):Ke(e)?Ke(t)?$i(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?co(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Kl(e,t):-1}function B(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Xl(e){Ke(e)?e.splice(0):e.clear()}const rr=new WeakMap;function A(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return rr.set(t,e),t}function Re(e){return rr.get(e)??(t=>n=>e(t,n))}function Bt(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return rr.set(t,e),t}function J(e){return rr.get(e)??(t=>n=>r=>e(t,n,r))}function Ql(e){let t=0,n="[";for(const r of e){if(t===0)n+=ve(r);else if(t===100){n+="; ...";break}else n+="; "+ve(r);t++}return n+"]"}function ve(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 Ql(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+ve(s,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function ec(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ve(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ve(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class j{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ec(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Xe(n));return t.splice(0,0,Ge(this.tag)),wn(t)}Equals(t){return this===t?!0:tr(this,t)&&this.tag===t.tag?fi(this.fields,t.fields):!1}CompareTo(t){return this===t?0:tr(this,t)?this.tag===t.tag?$i(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 nc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ve(n)).join(`
3
+ `)+" }"}function rc(e){const t=Object.values(e).map(n=>Xe(n));return wn(t)}function oc(e,t){if(e===t)return!0;if(tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function sc(e,t){if(e===t)return 0;if(tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Pe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ne{toJSON(){return tc(this)}toString(){return nc(this)}GetHashCode(){return rc(this)}Equals(t){return oc(this,t)}CompareTo(t){return sc(this,t)}}class me{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 ic{constructor(t){this.message=t}}function uc(e){return e instanceof ic||e instanceof Error}function ac(e){return e instanceof Promise}function or(e){return uc(e)||ac(e)?e:new Error(String(e))}const lc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],cc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$c=["January","February","March","April","May","June","July","August","September","October","November","December"];function xe(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function di(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function dc(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function fo(e,t,n){let r=0,o=0,s="";const i=n?Qe(e.getTime(),1):e;for(;r<t.length;){const u=t[r];switch(u){case"d":switch(o=xe(t,r,"d"),r+=o,o){case 1:s+=yn(i);break;case 2:s+=V(yn(i),2);break;case 3:s+=lc[bi(i)];break;case 4:s+=cc[bi(i)];break}break;case"f":if(o=xe(t,r,"f"),r+=o,o<=3){const _=10**(3-o);s+=V(Math.floor(Sn(i)/_),o)}else o<=7&&(s+=(""+Sn(i)).padEnd(o,"0"));break;case"F":if(o=xe(t,r,"F"),r+=o,o<=3){const _=10**(3-o),y=Math.floor(Sn(i)/_);y!=0&&(s+=V(y,o))}else if(o<=7){const _=Sn(i);_!=0&&(s+=V(_,3))}break;case"g":o=xe(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=xe(t,r,"h"),r+=o,o){case 1:s+=bn(i)%12;break;case 2:s+=V(bn(i)%12,2);break}break;case"H":switch(o=xe(t,r,"H"),r+=o,o){case 1:s+=bn(i);break;case 2:s+=V(bn(i),2);break}break;case"K":switch(o=xe(t,r,"K"),r+=o,o){case 1:switch(hi(i)){case 1:s+="Z";break;case 2:s+=Gt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=xe(t,r,"m"),r+=o,o){case 1:s+=$o(i);break;case 2:s+=V($o(i),2);break}break;case"M":switch(o=xe(t,r,"M"),r+=o,o){case 1:s+=kt(i);break;case 2:s+=V(kt(i),2);break;case 3:s+=fc[kt(i)-1];break;case 4:s+=$c[kt(i)-1];break}break;case"s":switch(o=xe(t,r,"s"),r+=o,o){case 1:s+=ho(i);break;case 2:s+=V(ho(i),2);break}break;case"t":switch(o=xe(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=xe(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=V(i.getFullYear()%100,2);break;case 3:s+=V(i.getFullYear(),3);break;case 4:s+=V(i.getFullYear(),4);break;case 5:s+=V(i.getFullYear(),5);break}break;case"z":o=xe(t,r,"z"),r+=o;let a="";switch(hi(i)){case 1:a="+00:00";break;case 2:a=Gt(i.getTimezoneOffset()*-6e4);break;case 0:a=Gt(vc(i).getTimezoneOffset()*-6e4);break}const l=a[0]==="-"?"-":"+",f=parseInt(a.substring(1,3),10),c=parseInt(a.substring(4,6),10);switch(o){case 1:s+=`${l}${f}`;break;case 2:s+=`${l}${V(f,2)}`;break;default:s+=`${l}${V(f,2)}:${V(c,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,d]=dc(t,r);s+=h,r+=d;break;case"%":const p=di(t,r);if(p>=0&&p!==37)r+=2,s+=fo(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const m=di(t,r);if(m>=0)r+=2,s+=String.fromCharCode(m);else throw new Error("Invalid format string");break;default:r++,s+=u;break}}return s}function hi(e){return e.kind||0}function Gt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+V(n,2)+":"+V(r,2)}function sr(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 hc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return V(e.getFullYear(),4)+"-"+V(e.getMonth()+1,2)+"-"+V(e.getDate(),2)+"T"+V(e.getHours(),2)+":"+V(e.getMinutes(),2)+":"+V(e.getSeconds(),2)+"."+V(e.getMilliseconds(),3)+(n?Gt(e.getTimezoneOffset()*-6e4):"")}}function pc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Gt(t)}function mc(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," ")+Gt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return sr(n,"first");case"T":case"t":return sr(n,"second");case"O":case"o":return pc(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return fo(n,t,!0)}function _c(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?sr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?sr(e,"second"):e.toLocaleTimeString();case"O":case"o":return hc(e,n);default:throw new Error("Unrecognized Date print format")}else return fo(e,t,n)}function gn(e,t,n){return e.offset!=null?mc(e,t):_c(e,t)}function Qe(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function pi(){return Qe(-621355968e5,1)}function mi(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 o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const u=o[2].split(":"),a=parseInt(u[0],10);i=a*3600+parseInt(u[1]||"0",10)*60+parseFloat(u[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&a<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const u=new Date;s=new Date(u.getUTCFullYear()+"/"+(u.getUTCMonth()+1)+"/"+u.getUTCDate())}if(o[4]==="Z")r="Z";else{let u=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(u*=-1),r=u,i-=u*60}}else if(o[1]!=null)s=new Date(o[1]);else{const u=new Date;s=new Date(u.getFullYear()+"/"+(u.getMonth()+1)+"/"+u.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function wc(e,t=!1){const[n,r]=mi(e),o=r!=null?t&&r==="Z"?1:2:0;return Qe(n.getTime(),o)}function _i(e,t){try{return t.contents=wc(e),!0}catch{return!1}}function wi(e,t,n,r=0,o=0,s=0,i=0,u){const a=u===1?new Date(Date.UTC(e,t-1,n,r,o,s,i)):new Date(e,t-1,n,r,o,s,i);e<=99&&(u===1?a.setUTCFullYear(e,t-1,n):a.setFullYear(e,t-1,n));const l=a.getTime();if(isNaN(l))throw new Error("The parameters describe an unrepresentable Date.");return Qe(l,u)}function gc(){return Qe(Date.now(),2)}function yc(){return Qe(Date.now(),1)}function bc(){return yi(gc())}function gi(e){return e%4===0&&e%100!==0||e%400===0}function Sc(e,t){return t===2?gi(e)?29:28:t>=8?t%2===0?31:30:t%2===0?30:31}function Cc(e){return e.kind===1?e:Qe(e.getTime(),1)}function vc(e){return e.kind===2?e:Qe(e.getTime(),2)}function yi(e){return wi(Ut(e),kt(e),yn(e),0,0,0,0,e.kind)}function yn(e){return e.kind===1?e.getUTCDate():e.getDate()}function bn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Sn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function $o(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function kt(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ho(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ut(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function bi(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ec(e,t){const n=Qe(e.getTime()+t,e.kind);if(e.kind!==1){const r=e.getTimezoneOffset(),o=n.getTimezoneOffset();return r!==o?Qe(n.getTime()+(o-r)*6e4,e.kind):n}else return n}function xc(e,t){return Ec(e,t*864e5)}function kc(e,t){const n=kt(e),r=Ut(e)+t,o=Sc(r,n),s=Math.min(o,yn(e));return wi(r,n,s,bn(e),$o(e),ho(e),Sn(e),e.kind)}const Mc=co;function ir(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 po(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ur(e,t,n=0){return e.lastIndex=n,e.exec(t)}function Si(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 o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function Tc(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const u=[],a=arguments.length,l=typeof arguments[a-1]!="string";let f=l?a-3:a-2;for(let c=0;c<f;c++)u.push(arguments[c]);u.index=arguments[f++],u.input=arguments[f++],l&&(u.groups=arguments[f]),i=n(u)}return i}if(typeof e=="string"){const i=e;e=ir(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const u=t.substring(o),a=Si(e,u),l=Si.length>r?(i=a[r-1],u.substring(0,i.index+i[0].length)):u;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const Cn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Nc=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ci(e,t){return Rl(e,t)<0}function jt(e,t,n){function r(s){return s===!0||s===1||s===3||s===5}function o(s){return s===4||s===5}return e==null?t==null?0:-1:t==null?1:o(n)?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t))}function Ac(...e){switch(e.length){case 2:return jt(e[0],e[1],!1);case 3:return jt(e[0],e[1],e[2]);case 4:return jt(e[0],e[1],e[2]===!0);case 5:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return jt(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]===!0);default:throw new Error("String.compare: Unsupported number of parameters")}}function Ve(e){return{input:e,cont:Fc(e)}}function vi(e,t){return typeof t=="string"?e(t):t.cont(e)}function et(e){return vi(t=>t,e)}function Ei(e){return vi(t=>{throw new Error(t)},e)}function Ic(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ii(e))switch(o.toLowerCase()!=="x"&&(Ci(e,0)?(e=uo(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Kn(e,r);break;case"g":case"G":e=r!=null?Xn(e,r):Xn(e);break;case"e":case"E":e=r!=null?Qn(e,r):Qn(e);break;case"x":e=er(e);break;case"X":e=er(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=gn(e):e=ve(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,u=t.indexOf("-")>=0,a=u||!i?" ":"0";a==="0"?(e=vn(e,n-s.length,a,u),e=s+e):e=vn(s+e,n,a,u)}return e}function xi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const u=t.slice(),a=n.slice();for(const l of s){const[,,f,c,h,d]=a[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}i+=u[0],i+=Ic(l,f,p,h,d),u.splice(0,1),a.splice(0,1)}return a.length===0?(i+=u[0],e(i)):xi(e,u,a,i,o)}}function Fc(e){return t=>{Cn.lastIndex=0;const n=[],r=[];let o=0,s=Cn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Cn.lastIndex,Cn.lastIndex-=1,s=Cn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),xi(t,n,r))}}function ki(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Nc,(r,o,s,i,u,a)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(ii(l))switch(u=u==null?null:parseInt(u,10),i){case"f":case"F":u=u??2,l=Kn(l,u);break;case"g":case"G":l=u!=null?Xn(l,u):Xn(l);break;case"e":case"E":l=u!=null?Qn(l,u):Qn(l);break;case"p":case"P":u=u??2,l=Kn(uo(l,100),u)+" %";break;case"d":case"D":l=u!=null?_o(String(l),u,"0"):String(l);break;case"x":case"X":l=u!=null?_o(er(l),u,"0"):er(l),i==="X"&&(l=l.toUpperCase());break;default:if(a){let f="";l=a.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Ci(l,0)&&(l=uo(l,-1),f="-"),d=d==null?"":d.substring(1),l=Kn(l,Math.max(d.length,0));let[p,m]=l.split(".");m||(m="");const _=h.replace(/,/g,"").replace(/^#+/,"").length;p=_o(p,_,"0");const y=d.replace(/#+$/,"").length;if(y>m.length?m=Oc(m,y,"0"):y<m.length&&(m=m.substring(0,y)+m.substring(y).replace(/0+$/,"")),h.indexOf(",")>0){const E=p.length%3,T=Math.floor(p.length/3);let U=E>0?p.substr(0,E)+(T>0?",":""):"";for(let Oe=0;Oe<T;Oe++)U+=p.substr(E+Oe*3,3)+(Oe<T-1?",":"");p=U}return m.length>0?p+"."+m:p}),l=f+l}}else l instanceof Date?l=gn(l,a||i):l=ve(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=vn(String(l),Math.abs(s)," ",s<0)),l})}function Dc(e){return typeof e!="string"||e.length===0}function mo(e){return typeof e!="string"||/^\s*$/.test(e)}function M(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function vn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function _o(e,t,n){return vn(e,t,n)}function Oc(e,t,n){return vn(e,t,n,!0)}function Mi(e,t,n){return e.replace(new RegExp(po(t),"g"),n)}function Pc(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 o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(po),t=t.length>0?t:["\\s"];const i=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const f=u.exec(e);if(f===null){const c=s?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&i.push(c),a=!1}else{const c=s?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(l).trim():e.substring(l)),a=!1):i.push(c)),l=u.lastIndex}}while(a);return i}function Rc(e,...t){if(t.length===0)return e.trim();const n="["+po(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function ar(e,t){return t.split("").filter(n=>e(n)).join("")}function Ti(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}function wo(){return(wo=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 Vc=["context","children"];function Lc(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,u={},a=Object.keys(r);for(i=0;i<a.length;i++)o.indexOf(s=a[i])>=0||(u[s]=r[s]);return u}(e,Vc);return jr(t,n)}function Hc(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(Lc,wo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,u=n.attributes,a=n.childNodes;for(i=u.length;i--;)u[i].name!=="slot"&&(s[u[i].name]=u[i].value,s[Ni(u[i].name)]=u[i].value);for(i=a.length;i--;){var l=t(a[i],null),f=a[i].slot;f?s[f]=C(Ai,{name:f},l):o[i]=l}var c=r?C(Ai,null,o):o;return C(r||n.nodeName.toLowerCase(),s,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ur:_t)(this._vdom,this._root)}function Ni(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Bc(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Ni(e)]=n,this._vdom=jr(this._vdom,r),_t(this._vdom,this._root)}}function Gc(){_t(this._vdom=null,this._root)}function Ai(e,t){var n=this;return C("slot",wo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Uc(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Hc,o.prototype.attributeChangedCallback=Bc,o.prototype.disconnectedCallback=Gc,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var u=typeof i;i!=null&&u!=="string"&&u!=="boolean"&&u!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}class Ii{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,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,lr.prototype)}}class go{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>go.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ct(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new lr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(or(n))}});else try{e(t)}catch(n){t.onError(or(n))}}}function jc(e,t){return ct(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(or(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function zc(e){return ct(t=>t.onSuccess(e))}class Wc{Bind(t,n){return jc(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ct(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return zc(t)}ReturnFrom(t){return t}TryFinally(t,n){return ct(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return ct(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(or(s))}}})})}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 ct(t=>t.onSuccess(void 0))}}const N=new Wc;class qc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class tt{constructor(t,n,r,o,s,i,u){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=u}toString(){return W(this)}GetHashCode(){return Fi(this)}Equals(t){return yo(this,t)}}function ke(e){return e.generics!=null?e.generics:[]}function Fi(e){const t=_n(e.fullname),n=ke(e).map(Fi);return wn([t,...n])}function yo(e,t){return e.fullname===""?t.fullname===""&&lo(kn(e),kn(t),([n,r],[o,s])=>n===o&&yo(r,s)):e.fullname===t.fullname&&lo(ke(e),ke(t),yo)}function En(e,t,n,r){return new tt(e,t,n,void 0,r)}function cr(e,t,n,r){const o=new tt(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,u)=>new qc(o,u,s[u],i))});return o}function ft(e){return new tt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Di(e){return new tt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Zc=new tt("System.Object"),Y=new tt("System.String");function zt(e){if(Array.isArray(e))return e[0];if(e instanceof tt){const t=xn(e);if(t!=null)return zt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function W(e){const t=xn(e);return t!=null?W(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>W(n)).join(",")+"]"}function Oi(e){return xn(e)!=null}function xn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Pi(e){return e.generics!=null&&e.generics.length>0}function bo(e){return e.enumCases!=null&&e.enumCases.length>0}function Ri(e){return e.generics==null?e:new tt(e.fullname,e.generics.map(()=>Zc))}function Vi(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wt(e){if(bo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Jc(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 qt(e,t){const n=parseInt(t,10);return Jc(e,isNaN(n)?t:n)[1]}function fr(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function kn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Li(e){if(So(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Hi(e){return e instanceof tt?e.cases!=null:e instanceof j}function Bi(e){return e instanceof tt?e.fields!=null:e instanceof ne}function So(e){return e.fullname.startsWith("System.Tuple")}function Yc(e,t){const r=fr(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Gi(e){return e.fields==null?[]:e.fields}function Kc(e,t){return e[t[0]]}function pp(e){return e}function Co(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 Xc(e,t){const n=kn(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,[o,s],i)=>(r[o]=t[i],r),{})}function Qc(e,t){return e}class Mt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xe(this.value)}Equals(t){return t==null?!1:pe(this.value,t instanceof Mt?t.value:t)}CompareTo(t){return t==null?1:Pe(this.value,t instanceof Mt?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof Mt?e.value:e}function Ui(e){return e instanceof Mt?e.value:e}function $e(e){return e==null||e instanceof Mt?new Mt(e):e}function ji(e){return e??void 0}function $r(e){return e==null?[]:[S(e)]}function ye(e,t){return e!=null?S(e):t}function ef(e,t){return e!=null?S(e):t()}function zi(e,t){return t!=null?$e(e(S(t))):void 0}function tf(e){return new Wi(0,[e])}function nf(e){return new Wi(1,[e])}class Wi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function rf(e){return tf(e)}function of(e){return nf(e)}function vo(e){}function qi(e){return new Ii(!1)}function Zi(e){e.cancel()}function sf(e){return e!=null&&e.isCancelled}const uf=new Ii;function af(e){return ct(t=>{e({onSuccess:n=>t.onSuccess(rf(n)),onError:n=>t.onSuccess(of(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function lf(e){return ct(t=>e([t.onSuccess,t.onError,t.onCancel]))}function cf(e){return ct(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new lr)})})}function ff(e,t){return $f(e,t)}function Eo(e,t){return ff(e,t)}function $f(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new go;e({onSuccess:t||vo,onError:vo,onCancel:vo,cancelToken:o||uf,trampoline:s})}class Mn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ji extends j{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class xo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Tn extends ne{constructor(t,n,r,o,s,i,u,a){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=u,this.content=a}}class Zt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Yi extends ne{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}const df="The index was outside the range of elements in the collection.",Ki="Collection was empty.";function Xi(e,t){return new Array(t)}function Qi(e,t){return e>t?e:t}function hf(e,t){return e<t?e:t}function dr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Jt(e,t,n){const r=t.length|0,o=Xi(n,r);for(let s=0;s<=r-1;s++)Ue(o,s,e(ee(s,t)));return o}function pf(e,t){const n=Xi(t,1);return Ue(n,0,e),n}function mf(e){return e.slice().reverse()}function _f(e,t){return t.find(e)}function wf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ee(o,t));if(s!=null){const i=S(s);r.push(i)}}return pe(n,ge())?r:Jt(o=>o,r,n)}function hr(e,t,n){const r=e;return n.reduce(r,t)}function ee(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 Ue(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 eu(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Ee extends ne{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+M("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,u=s,a=i.tail,l=u.tail;if(a!=null)if(l!=null){const f=S(a),c=S(l);if(pe(i.head,u.head)){o=f,s=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,u=o,a=s,l=a.tail;if(l!=null){const f=S(l);if(i>18)return u|0;r=i+1,o=(u<<1)+Xe(a.head)+631*i,s=f;continue e}else return u|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,u=s,a=i.tail,l=u.tail;if(a!=null)if(l!=null){const f=S(a),c=S(l),h=Pe(i.head,u.head)|0;if(h===0){o=f,s=c;continue e}else return h|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return yf(this)}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return q(this)}}class gf{constructor(t){this.xs=t,this.it=this.xs,this.current=ge()}"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=S(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=ge()}Dispose(){}}function yf(e){return new gf(e)}function de(){return new Ee(ge(),void 0)}function Nn(e,t){return new Ee(e,t)}function Tt(e){return e.tail==null}function tu(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=S(i);continue e}else return o|0}})(0,e)|0}function Yt(e){if(e.tail!=null)return e.head;throw new Error(Ki+"\\nParameter name: list")}function Me(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Ki+"\\nParameter name: list")}function bf(e,t){return((r,o)=>{for(;;){const s=o;if(s.tail!=null)return s.head;throw new Error(df+"\\nParameter name: index")}})(0,e)}function K(){return de()}function Te(e,t){return Nn(e,t)}function se(e){return Nn(e,de())}function D(e){return Tt(e)}function nu(e){return tu(e)}function k(e){return Yt(e)}function Sf(e){if(!Tt(e))return $e(Yt(e))}function F(e){return Me(e)}function An(e){const t=tu(e)|0,n=dr(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,u=s;if(!Tt(u)){Ue(n,i,Yt(u)),o=i+1,s=Me(u);continue e}break}})(0,e),n}function $t(e,t,n){let r=t,o=n;for(;!Tt(o);)r=e(r,k(o)),o=Me(o);return r}function pr(e){return $t((t,n)=>Nn(n,t),de(),e)}function Cf(e,t,n){return eu(e,An(t),n)}function vf(e,t,n){return((o,s,i)=>{e:for(;;){const u=o,a=s,l=i;if(Tt(l))return a;o=u+1,s=e(u,a,Yt(l)),i=Me(l);continue e}})(0,t,n)}function mr(e,t){$t((n,r)=>{e(r)},void 0,t)}function X(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Nn(ee(r,e),n);return n}function v(e){return X(e,de())}function ko(e){let t,n;if(Ke(e))return v(e);if(e instanceof Ee)return e;{const r=de();let o=r;const s=q(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Ee(a,void 0),t.tail=n,n)}}finally{L(s)}const i=o,u=de();return i.tail=u,Me(r)}}function _r(e,t){return $t((n,r)=>Nn(r,n),t,pr(e))}function Ef(e,t){const n=de(),r=vf((s,i,u)=>{const a=new Ee(e(s,u),void 0);return i.tail=a,a},n,t),o=de();return r.tail=o,Me(n)}function In(e,t){const n=de(),r=$t((s,i)=>{const u=new Ee(e(i),void 0);return s.tail=u,u},n,t),o=de();return r.tail=o,Me(n)}function Fn(e,t){return(r=>{e:for(;;){const o=r;if(Tt(o))return;{const s=e(Yt(o));if(s==null){r=Me(o);continue e}else return s}}})(t)}function ru(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(Tt(i))return;if(e(Yt(i)))return s;r=s+1,o=Me(i);continue e}})(0,t)}function xf(e,t){return bf(t)}function kf(e,t){const n=de(),r=$t((s,i)=>{if(e(i)){const u=new Ee(i,void 0);return s.tail=u,u}else return s},n,t),o=de();return r.tail=o,Me(n)}function Mf(e,t){const n=de(),r=de(),o=n,s=$t((a,l)=>{let f,c;const h=a[0],d=a[1];return e(l)?[(f=new Ee(l,void 0),h.tail=f,f),d]:[h,(c=new Ee(l,void 0),d.tail=c,c)]},[o,r],t),i=de();s[0].tail=i;const u=de();return s[1].tail=u,[Me(o),Me(r)]}function ou(e,t){const n=de(),r=$t((s,i)=>{const u=e(i);if(u==null)return s;{const a=new Ee(S(u),void 0);return s.tail=a,a}},n,t),o=de();return r.tail=o,Me(n)}function Tf(e,t,n){return ru(r=>n.Equals(e,r),t)!=null}function Nf(e,t){return ru(e,t)!=null}function Af(e){throw new Error(e)}const If="Enumeration already finished.",Ff="Enumeration has not started. Call MoveNext.",su="The input sequence has an insufficient number of elements.",Df="Reset is not supported on this enumerator.";function Of(){throw new Error(Df)}function Mo(){throw new Error(Ff)}function To(){throw new Error(If)}class Pf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=q(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ve(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{L(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Rf(e){return new Pf(e)}class Vf{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"(){Of()}Dispose(){this.dispose()}}function wr(e,t,n){return new Vf(e,t,n)}function Lf(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const u=S(n);try{L(u)}finally{n=void 0}}if(t!=null){const u=S(t);try{L(u)}finally{t=void 0}}};return wr(()=>(r?o&&To():Mo(),s!=null?S(s):To()),()=>{let u;if(r||(r=!0),o)return!1;{let a;for(;a==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=S(f);if(c["System.Collections.IEnumerator.MoveNext"]())s=$e(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),a=!0;else try{L(c)}finally{n=void 0}}else{const c=S(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(u=c["System.Collections.Generic.IEnumerator`1.get_Current"](),q(u)):(i(),a=!1)}else t=q(e)}return S(a)}},()=>{o||i()})}function Hf(e,t){return wr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{L(t)}finally{}})}function iu(e,t,n){let r=!1,o,s=$e(e());const i=()=>{if(s!=null){const a=S(s);try{n(a)}finally{s=void 0}}},u=()=>{try{i()}finally{o=void 0}};return wr(()=>(r||Mo(),o!=null?S(o):To()),()=>{if(r||(r=!0),s!=null){const a=S(s);let l;try{l=t(a)}catch(f){throw u(),f}return l!=null?(o=l,!0):(u(),!1)}else return!1},i)}function Bf(e,t){let n,r=t;return wr(()=>{if(n!=null){const o=S(n)[0];return S(n)[1],o}else return Mo()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function Gf(e,t){t==null&&Af(e)}function Kt(e){return Rf(e)}function dt(e){return Gf("source",e),q(e)}function w(e){return Kt(()=>q(e()))}function No(e){return Kt(()=>Lf(e))}function Uf(e,t){return Kt(()=>Bf(e,t))}function uu(){return w(()=>new Array(0))}function g(e){return w(()=>pf(e))}function mp(e){return e}function jf(e){return e instanceof Ee?An(e):Array.from(e)}function te(e){return Ke(e)?v(e):e instanceof Ee?e:ko(e)}function au(e,t,n){return Kt(()=>iu(e,t,n))}function lu(e,t,n){return Kt(()=>{let r=-1;return iu(e,o=>(r=r+1|0,t(r,o)),n)})}function b(e,t){return No([e,t])}function zf(e,t){return au(()=>dt(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{L(n)})}function Wf(e,t,n){const r=dt(t);try{const o=dt(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&u;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:u?-1:0)|0}finally{L(o)}}finally{L(r)}}function Nt(e,t,n){const r=dt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function qf(e,t){return zf(n=>{if(e(n))return $e(n)},t)}function Dn(e,t,n){const r=dt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{L(r)}}function At(e,t){Dn((n,r)=>{e(r)},void 0,t)}function Zf(e,t){Dn((n,r)=>(e(n,r),n+1|0),0,t)}function he(e,t){return au(()=>dt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?$e(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function Jf(e,t){return lu(()=>dt(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?$e(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{L(n)})}function Yf(e){return w(()=>mf(jf(e)))}function Kf(e,t){return Kt(()=>{const n=dt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(su+"\\nParameter name: source");return Hf(()=>{},n)}catch(r){throw L(n),r}})}function Xf(e,t){return lu(()=>dt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return $e(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(su+"\\nParameter name: source")}else return},n=>{L(n)})}function Ao(e,t){return w(()=>No(he(e,t)))}class cu{constructor(t,n){this.k=t,this.v=n}}function gr(e,t){return new cu(e,t)}function be(e){return e.k}function Ne(e){return e.v}class ce extends cu{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function yr(e,t,n,r,o){return new ce(e,t,n,r,o)}function Se(e){return e.left}function Ce(e){return e.right}function It(e){return e.h}function _p(){}function fu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ce){const s=o;e=fu(n+1,Se(s)),t=Ce(s);continue e}else return n+1|0}else return n|0}}function Qf(e){return fu(0,e)}function je(e,t,n,r){let o,s,i;const u=e;if(u!=null){const c=S(u);i=c instanceof ce?(o=c,It(o)):1}else i=0;let a;const l=r;if(l!=null){const c=S(l);a=c instanceof ce?(s=c,It(s)):1}else a=0;const f=(i<a?a:i)|0;return f===0?gr(t,n):yr(t,n,e,r,f+1)}function $u(e,t,n,r){let o,s,i,u,a,l,f,c,h;const d=e;if(d!=null){const _=S(d);h=_ instanceof ce?(o=_,It(o)):1}else h=0;let p;const m=r;if(m!=null){const _=S(m);p=_ instanceof ce?(s=_,It(s)):1}else p=0;if(p>h+2){const _=S(r);if(_ instanceof ce){const y=_;if(i=Se(y),(i!=null?(u=S(i),u instanceof ce?(a=u,It(a)):1):0)>h+1){const E=S(Se(y));if(E instanceof ce){const T=E;return je(je(e,t,n,Se(T)),be(T),Ne(T),je(Ce(T),be(y),Ne(y),Ce(y)))}else throw new Error("internal error: Map.rebalance")}else return je(je(e,t,n,Se(y)),be(y),Ne(y),Ce(y))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const _=S(e);if(_ instanceof ce){const y=_;if(l=Ce(y),(l!=null?(f=S(l),f instanceof ce?(c=f,It(c)):1):0)>p+1){const E=S(Ce(y));if(E instanceof ce){const T=E;return je(je(Se(y),be(y),Ne(y),Se(T)),be(T),Ne(T),je(Ce(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return je(Se(y),be(y),Ne(y),je(Ce(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return je(e,t,n,r)}function Xt(e,t,n,r){if(r!=null){const o=S(r),s=e.Compare(t,be(o))|0;if(o instanceof ce){const i=o;return s<0?$u(Xt(e,t,n,Se(i)),be(i),Ne(i),Ce(i)):s===0?yr(t,n,Se(i),Ce(i),It(i)):$u(Se(i),be(i),Ne(i),Xt(e,t,n,Ce(i)))}else return s<0?yr(t,n,void 0,r,2):s===0?gr(t,n):yr(t,n,r,void 0,2)}else return gr(t,n)}function du(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,be(i))|0;if(u===0)return $e(Ne(i));if(i instanceof ce){const a=i;e=r,t=o,n=u<0?Se(a):Ce(a);continue e}else return}else return}}function e$(e,t,n){const r=du(e,t,n);if(r==null)throw new Error;return S(r)}function t$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,be(i))|0;if(i instanceof ce){const a=i;if(u<0){e=r,t=o,n=Se(a);continue e}else{if(u===0)return!0;e=r,t=o,n=Ce(a);continue e}}else return u===0}else return!1}}function hu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ce){const s=o;hu(n,Se(s)),n(be(s),Ne(s)),e=n,t=Ce(s);continue e}else n(be(o),Ne(o))}break}}function n$(e,t){hu(e,t)}function r$(e,t,n){let r=n;n$((o,s)=>{Ue(t,r,[o,s]),r=r+1|0},e)}function o$(e,t){return $t((n,r)=>Xt(e,r[0],r[1],n),void 0,t)}function s$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Xt(r,i[0],i[1],o),n=s;continue e}else return o}}function i$(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ee(r,t);n=Xt(e,o[0],o[1],n)}return n}function pu(e,t){if(Ke(t))return i$(e,t);if(t instanceof Ee)return o$(e,t);{const n=q(t);try{return s$(e,void 0,n)}finally{L(n)}}}class u$ extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function mu(e){e:for(;;){const t=e;if(D(t))return K();{const n=F(t),r=k(t);if(r!=null){const o=S(r);if(o instanceof ce){const s=o;e=X([Se(s),gr(be(s),Ne(s)),Ce(s)],n);continue e}else return t}else{e=n;continue e}}}}function _u(e){return new u$(mu(se(e)),!1)}function a$(){throw new Error("enumeration not started")}function l$(){throw new Error("enumeration already finished")}function wu(e){if(e.started){const t=e.stack;if(D(t))return l$();if(k(t)!=null){const n=S(k(t));if(n instanceof ce)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ne(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return a$()}function c$(e){if(e.started){const t=e.stack;if(D(t))return!1;if(k(t)!=null){if(S(k(t))instanceof ce)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=mu(F(t)),!D(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function gu(e){let t=_u(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wu(t)},"System.Collections.IEnumerator.get_Current"(){return wu(t)},"System.Collections.IEnumerator.MoveNext"(){return c$(t)},"System.Collections.IEnumerator.Reset"(){t=_u(e)},Dispose(){}}}class br{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return h$(this)|0}Equals(t){const n=this;if(t instanceof br){const r=t,o=q(n);try{const s=q(r);try{const i=()=>{const u=o["System.Collections.IEnumerator.MoveNext"]();if(u===s["System.Collections.IEnumerator.MoveNext"]())if(u){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return pe(a[0],l[0])&&pe(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{L(s)}}finally{L(o)}}else return!1}toString(){return"map ["+M("; ",he(n=>ki("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return gu(this.tree)}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return gu(this.tree)}CompareTo(t){const n=this;if(t instanceof br)return Wf((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Pe(o[1],s[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 bu(n,t[0])&&pe(yu(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){r$(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Io(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Io(this)|0}get size(){return Io(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return he(n=>[n[0],n[1]],this)}get(t){return yu(this,t)}has(t){return bu(this,t)}keys(){return he(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return he(n=>n[1],this)}forEach(t,n){const r=this;At(o=>{t(o[1],o[0],r)},r)}}function Sr(e,t){return new br(e,t)}function f$(e){return Sr(e,void 0)}function $$(e,t,n){return Sr(e.comparer,Xt(e.comparer,t,n,e.tree))}function yu(e,t){return e$(e.comparer,t,e.tree)}function Io(e){return Qf(e.tree)}function bu(e,t){return t$(e.comparer,t,e.tree)}function d$(e,t){return du(e.comparer,t,e.tree)}function h$(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=q(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xe(o[0]))|0,n=t(n,Xe(o[1]))|0}}finally{L(r)}return n|0}function Su(e,t,n){return $$(n,e,t)}function Cu(e,t){return d$(t,e)}function p$(e,t){return Sr(t,pu(t,e))}function m$(e,t){return Sr(t,pu(t,e))}function Fo(e){return f$(e)}function vu(e){return new Ji("Content-Type",e)}function _$(e){return new Ji("Authorization",e)}const Ft=new Tn("",new Mn(0,[]),K(),!1,void 0,void 0,void 0,new xo(0,[]));new Yi(0,"","","",Fo({Compare:nr}),new Zt(0,[""]));function Eu(e,t){return Dc(t)?new Array(0):Pc(t,[e],void 0,0)}function w$(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 Cr(e){return new Tn(e,Ft.method,Ft.headers,Ft.withCredentials,Ft.overridenMimeType,Ft.overridenResponseType,Ft.timeout,Ft.content)}function vr(e,t){return new Tn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Do(e,t){return new Tn(t.url,t.method,_r(t.headers,se(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xu(e,t){return new Tn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ku(e){return lf(t=>{const n=new XMLHttpRequest;n.open(w$(e.method),e.url),n.onreadystatechange=()=>{let a,l,f,c,h,d,p;n.readyState===4&&t[0]((a=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new Zt(0,[n.responseText]):d==="text"?new Zt(0,[n.responseText]):d==="arraybuffer"?new Zt(2,[n.response]):d==="blob"?new Zt(1,[n.response]):new Zt(3,[n.response])),p=m$(wf(m=>{const _=v(Eu(":",m));if(!D(_))return[k(_).toLocaleLowerCase(),M(":",F(_)).trim()]},Eu(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:nr}),new Yi(f,a,c,n.responseURL,p,h)))};const r=q(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(a.fields[0],a.fields[1])}}finally{L(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const a=o;n.overrideMimeType(a)}const s=e.overridenResponseType;if(s!=null)switch(s.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 a=i|0;n.timeout=a|0}const u=e.content;switch(u.tag){case 1:{n.send($e(u.fields[0]));break}case 3:{n.send($e(u.fields[0]));break}case 2:{n.send($e(u.fields[0]));break}default:n.send()}})}function g$(e){return new $(0,[e])}function Mu(e){return new $(1,[e])}class $ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ze(e,t){return t.tag===0?g$(e(t.fields[0])):Mu(t.fields[0])}function Tu(e,t){return t.tag===0?e(t.fields[0]):Mu(t.fields[0])}function Er(e){if(!mo(e))return e}function Nu(e){let t,n=pi();if(t=[_i(e,new me(()=>n,r=>{n=r})),n],t[0])return t[1]}function Au(e,t){Uc(e,t,void 0,{shadow:!0})}function xr(e,t){return N.Delay(()=>{const n=Do(_$(et(Ve("Bearer %s"))(e)),t);let r;const o=ku(n);return r=N.Bind(o,s=>N.Return(new $(0,[s]))),N.Bind(r,s=>{const i=s;if(i.tag===1)return N.Return(new $(1,[i.fields[0]]));{const u=i.fields[0];if(u.statusCode===429||u.statusCode>=500){const a=ku(n);return N.Bind(a,l=>N.Return(new $(0,[l])))}else return N.Return(new $(0,[u]))}})})}function ie(e,t,n){return Fn(r=>{if(r.indexOf(e)===0)return Mi(r,e,t)},n)}function wt(e){return Mi(e,"’","'")}var Oo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Oo||(Oo={}));function y$(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Iu(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 b$(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 S$(e,t){if(t&Oo.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 C$(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||S$(s,t),!b$(n).test(i))return y$(o,n)}return null}function Fu(e,t,n,r,o){const s=C$(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[u,a]=Iu(!0,r);!n&&s.radix!==10&&i>=u&&i<=a&&(i=i<<32-r>>32-r);const[l,f]=Iu(n,r);if(i>=l&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Dt(e,t,n,r,o){try{return o.contents=Fu(e,t,n,r),!0}catch{return!1}}function v$(e){return e===-2147483648?e:-e}function E$(e,t){const n=ur(ir(e),t);if(n!=null)return F(te(w(()=>he(r=>r||"",n))))}function Po(e){let t,n=0;if(t=[Dt(e,511,!1,32,new me(()=>n,r=>{n=r|0})),n],t[0])return t[1]}function Ae(e,t,n){if(n>=e&&n<=t)return $e(void 0)}function Du(e){return gi(e)}function x$(e,t){const n=E$("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(n!=null){const r=n;let o,s,i,u;switch(D(r)||D(F(r))||D(F(F(r)))?o=1:D(F(F(F(r))))?(o=0,s=k(F(F(r))),i=k(F(r)),u=k(r)):o=1,o){case 0:{const a=[u,i,s];let l,f,c,h;const d=Po(a[0]);if(d!=null){const p=Po(a[1]);if(p!=null){const m=Po(a[2]);m!=null?(l=0,f=m,c=p,h=d):l=1}else l=1}else l=1;switch(l){case 0:return new $(0,[[h,c,f]]);default:return new $(1,[e])}}default:return new $(1,[e])}}else return new $(1,[e])}function k$(e,t,n){const r=x$(e,n);if(r.tag===1)return new $(1,[r.fields[0]]);{const o=r.fields[0],s=o[0]|0,i=o[1]|0,u=o[2]|0;if(s<=0)return new $(1,[e]);{let a;switch(i===2&&Ae(1,29,u)!=null&&Du(s)?a=0:a=1,a){case 0:return new $(0,[t(s,i,u)]);default:{let l;switch(i===2&&Ae(1,28,u)!=null?Du(s)?l=1:l=0:l=1,l){case 0:return new $(0,[t(s,i,u)]);default:{let f;switch(i){case 1:{Ae(1,31,u)!=null?f=0:f=1;break}case 3:{Ae(1,31,u)!=null?f=0:f=1;break}case 5:{Ae(1,31,u)!=null?f=0:f=1;break}case 7:{Ae(1,31,u)!=null?f=0:f=1;break}case 8:{Ae(1,31,u)!=null?f=0:f=1;break}case 10:{Ae(1,31,u)!=null?f=0:f=1;break}case 12:{Ae(1,31,u)!=null?f=0:f=1;break}default:f=1}switch(f){case 0:return new $(0,[t(s,i,u)]);default:{let c;switch(i){case 4:{Ae(1,30,u)!=null?c=0:c=1;break}case 6:{Ae(1,30,u)!=null?c=0:c=1;break}case 9:{Ae(1,30,u)!=null?c=0:c=1;break}case 11:{Ae(1,30,u)!=null?c=0:c=1;break}default:c=1}switch(c){case 0:return new $(0,[t(s,i,u)]);default:return new $(1,[e])}}}}}}}}}}function M$(e,t){return k$(e,(n,r,o)=>{},t)}class Qt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class T$ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}function N$(){return cr("DomainPrimitives.Relationship",[],T$,()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]])}function A$(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}class I$ extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}function F$(){return cr("DomainPrimitives.AuState",[],I$,()=>[[],[],[],[],[],[],[],[]])}const D$=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ou=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,O$=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function P$(e){function t(r){return r.replace(Ou,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(D$.test(n))return Rc(n,"{","}","(",")");if(Ou.test(n))return t(n);if(O$.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 R$(e,t){try{return t.contents=P$(e),!0}catch{return!1}}class Pu extends ne{constructor(t,n,r){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r}}function Ru(){return En("Dto.Primitives.Name",[],Pu,()=>[["FirstName",Y],["MiddleName",ft(Y)],["LastName",Y]])}function V$(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}class Ro extends ne{constructor(t,n,r,o,s,i){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=o,this.Postcode=s,this.CountryCode=i}}function Vo(){return En("Dto.Primitives.Address",[],Ro,()=>[["AddressLine1",Y],["AddressLine2",ft(Y)],["City",Y],["State",Y],["Postcode",Y],["CountryCode",Y]])}class Vu extends ne{constructor(t,n,r,o,s){super(),this.FullName=t,this.Relationship=n,this.MobilePhone=r,this.Email=o,this.Address=s}}function Lu(){return En("Dto.Primitives.EmergencyContactDto",[],Vu,()=>[["FullName",Y],["Relationship",Y],["MobilePhone",Y],["Email",ft(Y)],["Address",ft(Vo())]])}class L$ extends ne{constructor(t){super(),this.Unused=t}}new L$(void 0);const H$="#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡",B$="1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@";function G$(){const t=[...H$].map(s=>(s.codePointAt(0)??0)-35),n=[...B$].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),o=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let i=r.length,u=0;for(;i-u>1;){const a=Math.floor((i+u)/2),l=r[a];if(s<l)i=a;else if(s===l){i=u=a;break}else l<s&&(u=a)}return o[u]}}const U$=256,j$=G$();function z$(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const kr=e=>q$(e,0);function W$(e,t){const n=z$(e,t);return j$(n)}function q$(e,t){return(1<<W$(e,t)&U$)!==0}class nt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Saving","Loading"]}}function en(e){return e.tag===1?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function Lo(e){return ve(e)}function Ho(){return In(e=>[e,Lo(e)],ko(he(e=>Co(e,[]),fr(F$()))))}function On(e){return Fn(t=>{if(t[1]===e)return t[0]},Ho())}function Z$(e){return e.indexOf("+")===0?e:`+${e}`}function Hu(e){return e.indexOf("04")===0?`+61${Ti(e,1)}`:Z$(e)}const Bu=Hu;function Bo(e){return Hu(ar(kr,e))}function J$(e,t,n){e:for(;;){const r=e,o=t,s=n;if(D(s)){const i=r;return i.tag===1?new $(1,[i.fields[0]]):new $(0,[pr(i.fields[0])])}else{let i;const u=o(k(s));if(u.tag===1)i=new $(1,[u.fields[0]]);else{const a=r;i=a.tag===1?new $(1,[a.fields[0]]):new $(0,[Te(u.fields[0],a.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=F(s);continue e}}}function Y$(e,t){return J$(new $(0,[K()]),e,t)}class _e extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class Gu extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Over100","Under13"]}}function Pn(e){return mo(e)?new $(1,[new _e(0,[])]):new $(0,[void 0])}function K$(e){return ar(kr,e)===e?new $(0,[void 0]):new $(1,[new _e(4,[])])}function Rn(e,t){return t.length>e?new $(1,[new _e(1,[e])]):new $(0,[void 0])}function X$(e,t){const n=xc(e,1);let r;const o=Ut(n)-Ut(t)|0;r=Mc(yi(t),kc(n,v$(o)))>0?o-1:o;const s=r>=13?new $(0,[void 0]):new $(1,[new _e(8,[new Gu(1,[])])]);if(s.tag===1)return new $(1,[s.fields[0]]);{const i=r<100?new $(0,[void 0]):new $(1,[new _e(8,[new Gu(0,[])])]);return i.tag===1?new $(1,[i.fields[0]]):new $(0,[void 0])}}function Mr(e,t){return ur(ir(e),t)!=null?new $(0,[void 0]):new $(1,[new _e(3,[])])}function Q$(e){return M$(new _e(7,[]),e)}function ed(e){return e.length<=320&&!(e.indexOf("..")>=0)&&!(e.indexOf(".@")>=0)&&ur(/^[A-Z0-9][A-Z0-9._%+'-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/gui,e)!=null?new $(0,[void 0]):new $(1,[new _e(6,[])])}function Tr(e,t){return t.indexOf(e)===0?new $(1,[new _e(10,[e])]):new $(0,[void 0])}function gt(e,t){const n=Y$(r=>r(t),e);return n.tag===1?new $(1,[n.fields[0]]):new $(0,[void 0])}const Go=e=>gt(v([Pn,t=>Rn(60,t),t=>Tr("-",t),t=>Tr("'",t),t=>Mr("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e);function td(e){return e!=null?gt(v([t=>Rn(60,t),t=>Tr("-",t),t=>Tr("'",t),t=>Mr("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",t)]),e):new $(0,[void 0])}const Uu=e=>gt(v([Pn,t=>Rn(60,t),t=>Mr("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",t)]),e),ju=e=>gt(v([Pn,ed]),e);function nd(e){return e!=null?gt(se(ju),e):new $(0,[void 0])}function rd(e){return t=>gt(se(n=>X$(e,n)),t)}function od(e){return rd(yc())(e)}const zu=e=>gt(v([Pn,t=>Rn(60,t),t=>Mr("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",t)]),e),Wu=e=>gt(v([Pn,t=>Rn(4,t),K$]),e);function Vn(e){return e<0?Math.ceil(e):Math.floor(e)}function qu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return sd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function sd(e){return Number(BigInt(e)/10000n)}function id(e){return Vn(e/864e5)}function ud(e){return Vn(e%864e5/36e5)}function ad(e){return Vn(e%36e5/6e4)}function ld(e){return Vn(e%6e4/1e3)}function cd(e){return Vn(e%1e3)}function fd(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(id(e)),o=Math.abs(ud(e)),s=Math.abs(ad(e)),i=Math.abs(ld(e)),u=Math.abs(cd(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:V(o,2)}:${V(s,2)}:${V(i,2)}${u===0&&(t==="c"||t==="g")?"":t==="g"?"."+V(u,3):"."+Ul(u,3,7)}`}function $d(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 qu(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 o=0,s=0,i=0;const u=r[1]!=null&&r[1]==="-"?-1:1,a=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return u*qu(o,a,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function dd(e,t){try{return t.contents=$d(e),!0}catch{return!1}}function hd(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function pd(e,t){return t.has(e)?!1:(t.add(e),!0)}function Zu(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class x extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ot extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ju(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Yu(e,t){switch(e.tag){case 2:return Tc(Ju(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ju(t)}}function md(e){return e}const Ku=ge();function Nr(e){return Array.from(e)}function _d(e){return gn(e,"O")}function wd(e){return fd(e)}function gd(){return ge()}function yd(e){return gn(e,"O")}function Xu(e,t){return JSON.stringify(t,void 0,$e(e))}function bd(e){return t=>ef(zi(e,t),()=>Ku)}function Qu(e,t,n,r){let o;const s=new me(ge());let i;const u=W(r);i=u===""?e:Su(u,s,e);let a;if(Bi(r)){const l=Jt(f=>{const c=Yu(t,zt(f)),h=ht(i,t,n,f[1]);return d=>p=>{const m=Kc(d,f);return(!n||n&&m!=null)&&(p[c]=h(m)),p}},kn(r));a=f=>Dn((c,h)=>h(f)(c),{},l)}else if(Hi(r))a=l=>{const f=Yc(l,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return zt(c);{const p=d|0,m=Gi(c),_=dr(new Array(p+1),0,p+1,null);Ue(_,0,zt(c));for(let y=1;y<=p;y++){const E=ht(i,t,n,ee(y-1,m)[1]);Ue(_,y,E(ee(y-1,h)))}return _}};else throw new Error((o=W(r),et(Ve(`Cannot generate auto encoder for %s. Please pass an extra encoder.
5
+
6
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function ht(e,t,n,r){const o=W(r),s=Cu(o,e);if(s==null)if(Oi(r)){const i=ht(e,t,n,xn(r));return u=>Nr(he(i,u))}else if(bo(r))switch(W(Vi(r))){case"System.SByte":return u=>u;case"System.Byte":return u=>u;case"System.Int16":return u=>u;case"System.UInt16":return u=>u;case"System.Int32":return u=>u;case"System.UInt32":return u=>u;default:{const u=W(r);return Ei(Ve(`Cannot generate auto encoder for %s.
7
+ Thoth.Json.Net only support the following enum types:
8
+ - sbyte
9
+ - byte
10
+ - int16
11
+ - uint16
12
+ - int
13
+ - uint32
14
+
15
+ If you can't use one of these types, please pass an extra encoder.
16
+
17
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
18
+ `))(u)}}else if(Pi(r))if(So(r)){const i=Jt(u=>ht(e,t,n,u),Li(r));return u=>Nr(Jf((a,l)=>ee(a,i)(l),u))}else{const i=W(Ri(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const u=new Gl(()=>bd(ht(e,t,n,ee(0,ke(r)))));return a=>a==null?Ku:u.Value(a)}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 u=ht(e,t,n,ee(0,ke(r)));return a=>Nr(he(u,a))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const u=ee(0,ke(r)),a=ht(e,t,n,ee(1,ke(r)));if(W(u)==="System.String"||W(u)==="System.Guid")return l=>Dn((f,c)=>{const h=c;return f[h[0]]=a(h[1]),f},{},l);{let l;return l=ht(e,t,n,u),c=>Nr(he(h=>{const d=h;return[l(d[0]),a(d[1])]},c))}}else return Qu(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return gd;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 yd;case"System.DateTimeOffset":return _d;case"System.TimeSpan":return wd;case"System.Guid":return md;case"System.Object":return i=>i;default:return Qu(e,t,n,r)}else{const i=s;return u=>i.contents(u)}}function Sd(e){return Fo({Compare:nr})}function ea(e,t,n,r){const o=ye(t,new Ot(0,[])),s=ye(r,!0);return ht(Sd(),o,s,e)}function ta(e,t){Cd(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Cd(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 vd(){return ta(-621355968e5,0)}function Ed(e){const[t,n]=mi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return ta(t.getTime(),r)}function xd(e,t){try{return t.contents=Ed(e),!0}catch{return!1}}class kd{constructor(t,n){const r=new me(ge());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=q(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();jo(r.contents,s)}}finally{L(o)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return q(this)}GetEnumerator(){return q(No(this.hashMap.values()))}[Symbol.iterator](){return mn(q(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){jo(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){na(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return oa(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Zf((o,s)=>{Ue(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return ra(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return sa(this,t)}get size(){return ra(this)|0}add(t){const n=this;return jo(n,t),n}clear(){na(this)}delete(t){return sa(this,t)}has(t){return oa(this,t)}keys(){return he(n=>n,this)}values(){return he(n=>n,this)}entries(){return he(n=>[n,n],this)}forEach(t,n){const r=this;At(o=>{t(o,o,r)},r)}}function Uo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=ge();return r=[hd(e.hashMap,n,new me(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s))]:[!1,n,-1]}function na(e){e.hashMap.clear()}function ra(e){let t=0,n=q(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{L(n)}return t|0}function jo(e,t){const n=Uo(e,t);return n[0]?n[2]>-1?!1:(Zu(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function oa(e,t){const n=Uo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function sa(e,t){const n=Uo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zu(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class ia{constructor(t){this.k=t}}function Ie(e){return new ia(e)}function I(e){return e.k}class R extends ia{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Fe(e,t,n,r){return new R(e,t,n,r)}function z(e){return e.left}function G(e){return e.right}function tn(e){return e.h}function wp(){}function ua(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=S(n);if(o instanceof R){const s=o;e=z(s),t=ua(G(s),r+1);continue e}else return r+1|0}else return r|0}}function Md(e){return ua(e,0)}function We(e,t,n){let r,o,s;const i=e;if(i!=null){const f=S(i);s=f instanceof R?(r=f,tn(r)):1}else s=0;let u;const a=n;if(a!=null){const f=S(a);u=f instanceof R?(o=f,tn(o)):1}else u=0;const l=(s<u?u:s)|0;return l===0?Ie(t):Fe(t,e,n,l+1)}function aa(e,t,n){let r,o,s,i,u,a,l,f,c;const h=e;if(h!=null){const m=S(h);c=m instanceof R?(r=m,tn(r)):1}else c=0;let d;const p=n;if(p!=null){const m=S(p);d=m instanceof R?(o=m,tn(o)):1}else d=0;if(d>c+2){const m=S(n);if(m instanceof R){const _=m;if(s=z(_),(s!=null?(i=S(s),i instanceof R?(u=i,tn(u)):1):0)>c+1){const y=S(z(_));if(y instanceof R){const E=y;return We(We(e,t,z(E)),I(E),We(G(E),I(_),G(_)))}else throw new Error("internal error: Set.rebalance")}else return We(We(e,t,z(_)),I(_),G(_))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const m=S(e);if(m instanceof R){const _=m;if(a=G(_),(a!=null?(l=S(a),l instanceof R?(f=l,tn(f)):1):0)>d+1){const y=S(G(_));if(y instanceof R){const E=y;return We(We(z(_),I(_),z(E)),I(E),We(G(E),t,n))}else throw new Error("internal error: Set.rebalance")}else return We(z(_),I(_),We(G(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return We(e,t,n)}function nn(e,t,n){if(n!=null){const r=S(n),o=e.Compare(t,I(r))|0;if(r instanceof R){const s=r;return o<0?aa(nn(e,t,z(s)),I(s),G(s)):o===0?n:aa(z(s),I(s),nn(e,t,G(s)))}else{const s=e.Compare(t,I(r))|0;return s<0?Fe(t,void 0,n,2):s===0?n:Fe(t,n,void 0,2)}}else return Ie(t)}function la(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),u=r.Compare(o,I(i))|0;if(i instanceof R){const a=i;if(u<0){e=r,t=o,n=z(a);continue e}else{if(u===0)return!0;e=r,t=o,n=G(a);continue e}}else return u===0}else return!1}}function ca(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof R){const s=o;ca(n,z(s)),n(I(s)),e=n,t=G(s);continue e}else n(I(o))}break}}class Td extends ne{constructor(t,n){super(),this.stack=t,this.started=n}}function fa(e){e:for(;;){const t=e;if(D(t))return K();{const n=k(t),r=F(t);if(n!=null){const o=S(n);if(o instanceof R){const s=o;e=X([z(s),Ie(I(s)),G(s)],r);continue e}else return t}else{e=r;continue e}}}}function $a(e){return new Td(fa(se(e)),!1)}function Nd(){throw new Error("Enumeration not started")}function Ad(){throw new Error("Enumeration already started")}function da(e){if(e.started){const t=e.stack;if(D(t))return Ad();if(k(t)!=null){const n=S(k(t));return I(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Nd()}function Id(e){if(e.started){const t=e.stack;if(D(t))return!1;if(k(t)!=null){if(S(k(t))instanceof R)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=fa(F(t)),!D(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!D(e.stack)}function ha(e){let t=$a(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return da(t)},"System.Collections.IEnumerator.get_Current"(){return da(t)},"System.Collections.IEnumerator.MoveNext"(){return Id(t)},"System.Collections.IEnumerator.Reset"(){t=$a(e)},Dispose(){}}}function Fd(e,t,n){e:for(;;){const r=e,o=t,s=n;if(D(o))return D(s)?0:-1;if(D(s))return 1;if(k(s)!=null)if(k(o)!=null){const i=S(k(o)),u=S(k(s));if(i instanceof R){const a=i;if(z(a)==null)if(u instanceof R){const l=u;if(z(l)==null){const f=r.Compare(I(a),I(l))|0;if(f!==0)return f|0;e=r,t=Te(G(a),F(o)),n=Te(G(l),F(s));continue e}else{let f,c,h,d,p;switch(D(o)?D(s)?f=2:k(s)!=null?(f=1,d=F(s),p=S(k(s))):f=2:k(o)!=null?(f=0,c=F(o),h=S(k(o))):D(s)?f=2:k(s)!=null?(f=1,d=F(s),p=S(k(s))):f=2,f){case 0:if(h instanceof R){const m=h;e=r,t=X([z(m),Fe(I(m),void 0,G(m),0)],c),n=s;continue e}else{e=r,t=X([void 0,Ie(I(h))],c),n=s;continue e}case 1:if(p instanceof R){const m=p;e=r,t=o,n=X([z(m),Fe(I(m),void 0,G(m),0)],d);continue e}else{e=r,t=o,n=X([void 0,Ie(I(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(I(a),I(u))|0;if(l!==0)return l|0;e=r,t=Te(G(a),F(o)),n=Te(void 0,F(s));continue e}else{let l,f,c,h,d;switch(D(o)?D(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2:k(o)!=null?(l=0,f=F(o),c=S(k(o))):D(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2,l){case 0:if(c instanceof R){const p=c;e=r,t=X([z(p),Fe(I(p),void 0,G(p),0)],f),n=s;continue e}else{e=r,t=X([void 0,Ie(I(c))],f),n=s;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=X([z(p),Fe(I(p),void 0,G(p),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ie(I(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(u instanceof R){const a=u;if(z(a)==null){const l=r.Compare(I(i),I(a))|0;if(l!==0)return l|0;e=r,t=Te(void 0,F(o)),n=Te(G(a),F(s));continue e}else{let l,f,c,h,d;switch(D(o)?D(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2:k(o)!=null?(l=0,f=F(o),c=S(k(o))):D(s)?l=2:k(s)!=null?(l=1,h=F(s),d=S(k(s))):l=2,l){case 0:if(c instanceof R){const p=c;e=r,t=X([z(p),Fe(I(p),void 0,G(p),0)],f),n=s;continue e}else{e=r,t=X([void 0,Ie(I(c))],f),n=s;continue e}case 1:if(d instanceof R){const p=d;e=r,t=o,n=X([z(p),Fe(I(p),void 0,G(p),0)],h);continue e}else{e=r,t=o,n=X([void 0,Ie(I(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(I(i),I(u))|0;if(a!==0)return a|0;e=r,t=F(o),n=F(s);continue e}}else{S(k(s));let i,u,a,l,f;switch(D(o)?D(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2:k(o)!=null?(i=0,u=F(o),a=S(k(o))):D(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2,i){case 0:if(a instanceof R){const c=a;e=r,t=X([z(c),Fe(I(c),void 0,G(c),0)],u),n=s;continue e}else{e=r,t=X([void 0,Ie(I(a))],u),n=s;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=X([z(c),Fe(I(c),void 0,G(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Ie(I(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){S(k(o));let i,u,a,l,f;switch(D(o)?D(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2:k(o)!=null?(i=0,u=F(o),a=S(k(o))):D(s)?i=2:k(s)!=null?(i=1,l=F(s),f=S(k(s))):i=2,i){case 0:if(a instanceof R){const c=a;e=r,t=X([z(c),Fe(I(c),void 0,G(c),0)],u),n=s;continue e}else{e=r,t=X([void 0,Ie(I(a))],u),n=s;continue e}case 1:if(f instanceof R){const c=f;e=r,t=o,n=X([z(c),Fe(I(c),void 0,G(c),0)],l);continue e}else{e=r,t=o,n=X([void 0,Ie(I(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=F(o),n=F(s);continue e}}}function pa(e,t,n){return t==null?n==null?0:-1:n==null?1:Fd(e,se(t),se(n))|0}function Dd(e,t,n){let r=n;ca(o=>{Ue(t,r,o),r=r+1|0},e)}function Od(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=nn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function Pd(e,t){return hr((n,r)=>nn(e,r,n),void 0,t)}function Rd(e,t){return $t((n,r)=>nn(e,r,n),void 0,t)}function ma(e,t){if(Ke(t))return Pd(e,t);if(t instanceof Ee)return Rd(e,t);{const n=q(t);try{return Od(e,void 0,n)}finally{L(n)}}}class zo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hd(this)|0}Equals(t){let n;const r=this;return t instanceof zo&&(n=t,pa(rn(r),qe(r),qe(n))===0)}toString(){return"set ["+M("; ",he(n=>ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return pa(rn(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 la(rn(n),t,qe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Dd(qe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wo(this)|0}GetEnumerator(){return ha(qe(this))}[Symbol.iterator](){return mn(q(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ha(qe(this))}get size(){return Wo(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 _a(this,t)}keys(){return he(n=>n,this)}values(){return he(n=>n,this)}entries(){return he(n=>[n,n],this)}forEach(t,n){const r=this;At(o=>{t(o,o,r)},r)}}function Ar(e,t){return new zo(e,t)}function rn(e){return e.comparer}function qe(e){return e.tree}function Vd(e){return Ar(e,void 0)}function Ld(e,t){return Ar(rn(e),nn(rn(e),t,qe(e)))}function Wo(e){return Md(qe(e))}function _a(e,t){return la(rn(e),t,qe(e))}function Hd(e){let t=0;const n=q(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xe(r)+631|0}}finally{L(n)}return Math.abs(t)|0}function qo(e,t){return _a(t,e)}function Bd(e,t){return Ld(t,e)}function Gd(e){return Vd(e)}function Ud(e,t){return Ar(t,ma(t,e))}function jd(e,t){return Ar(t,ma(t,e))}function Ln(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
19
+ `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
20
+ `:" ")}}function zd(e,t){const n=t.tag===2?Ln(t.fields[0],t.fields[1],!0):t.tag===1?Ln(t.fields[0],t.fields[1],!1)+`
21
+ Reason: `+t.fields[2]:t.tag===3?Ln(t.fields[0],t.fields[1],!0):t.tag===4?Ln(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
22
+ `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
23
+
24
+ `+M(`
25
+
26
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ln(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function wa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new $(1,[zd(o[0],o[1])])}else return new $(0,[r.fields[0]])}function Zo(e,t){try{return wa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new $(1,["Given an invalid JSON: "+n.message]);throw n}}function ga(e,t){return typeof t=="string"?new $(0,[t]):new $(1,[[e,new x(0,["a string",t])]])}function Wd(e,t){if(typeof t=="string"){const n=t;return n.length===1?new $(0,[n[0]]):new $(1,[[e,new x(0,["a single character string",t])]])}else return new $(1,[[e,new x(0,["a char",t])]])}function qd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[R$(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a guid",t])]])}else return new $(1,[[e,new x(0,["a guid",t])]])}function Zd(e,t){return t==null?new $(0,[void 0]):new $(1,[[e,new x(0,["null",t])]])}const ya=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new $(0,[(o+128&255)-128]):new $(1,[[n,new x(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new $(1,[[n,new x(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!1,8,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["a sbyte",r])]])}else return new $(1,[[n,new x(0,["a sbyte",r])]])},ba=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new $(0,[o&255]):new $(1,[[n,new x(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new $(1,[[n,new x(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!0,8,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["a byte",r])]])}else return new $(1,[[n,new x(0,["a byte",r])]])},Sa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new $(0,[(o+32768&65535)-32768]):new $(1,[[n,new x(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new $(1,[[n,new x(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!1,16,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an int16",r])]])}else return new $(1,[[n,new x(0,["an int16",r])]])},Ca=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new $(0,[o&65535]):new $(1,[[n,new x(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new $(1,[[n,new x(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!0,16,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an uint16",r])]])}else return new $(1,[[n,new x(0,["an uint16",r])]])},va=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new $(0,[~~o]):new $(1,[[n,new x(1,["an int",o,"Value was either too large or too small for an int"])]]):new $(1,[[n,new x(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!1,32,new me(()=>s,i=>{s=i|0})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an int",r])]])}else return new $(1,[[n,new x(0,["an int",r])]])},Ea=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new $(0,[o>>>0]):new $(1,[[n,new x(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new $(1,[[n,new x(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Dt(r,511,!0,32,new me(()=>s,i=>{s=i})),s],o[0]?new $(0,[o[1]]):new $(1,[[n,new x(0,["an uint32",r])]])}else return new $(1,[[n,new x(0,["an uint32",r])]])};function Jd(e,t){return typeof t=="boolean"?new $(0,[t]):new $(1,[[e,new x(0,["a boolean",t])]])}function Yd(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new x(0,["a float",t])]])}function Kd(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new x(0,["a float32",t])]])}function Xd(e,t){if(typeof t=="string"){let n,r=pi();return n=[_i(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[Cc(n[1])]):new $(1,[[e,new x(0,["a datetime",t])]])}else return new $(1,[[e,new x(0,["a datetime",t])]])}function Qd(e,t){if(typeof t=="string"){let n,r=vd();return n=[xd(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a datetimeoffset",t])]])}else return new $(1,[[e,new x(0,["a datetime",t])]])}function eh(e,t){if(typeof t=="string"){let n,r=0;return n=[dd(t,new me(()=>r,o=>{r=o})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new x(0,["a timespan",t])]])}else return new $(1,[[e,new x(0,["a timespan",t])]])}function xa(e,t,n,r){let o;const s=n+".["+Be(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ee(e,i)):new $(1,[[s,new x(5,["a longer array. Need index `"+Be(e)+"` but there are only `"+(o=i.length,Be(o))+"` entries",r])]])}else return new $(1,[[s,new x(0,["an array",r])]])}function th(e,t,n){return n==null?new $(0,[void 0]):ze($e,e(t,n))}function ka(e,t,n){if(Array.isArray(n)){let r=-1;return ze(pr,hr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Be(r)+"]",s);return i.tag===0?new $(0,[Te(i.fields[0],o.fields[0])]):new $(1,[i.fields[0]])}else return o},new $(0,[K()]),n))}else return new $(1,[[t,new x(0,["a list",n])]])}function nh(e,t,n){if(Array.isArray(n)){let r=-1;return ze(Yf,hr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Be(r)+"]",s);return i.tag===0?new $(0,[b([i.fields[0]],o.fields[0])]):new $(1,[i.fields[0]])}else return o},new $(0,[[]]),n))}else return new $(1,[[t,new x(0,["a seq",n])]])}function Ma(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return hr((s,i)=>{if(r=r+1|0,s.tag===0){const u=s.fields[0],a=e(t+".["+Be(r)+"]",i);return a.tag===0?(Ue(u,r,a.fields[0]),new $(0,[u])):new $(1,[a.fields[0]])}else return s},new $(0,[dr(new Array(o.length),0,o.length,null)]),o)}else return new $(1,[[t,new x(0,["an array",n])]])}function rh(e,t,n){return((o,s)=>{e:for(;;){const i=o,u=s;if(D(i))return new $(1,[[t,new x(7,[u])]]);{const a=wa(t,A(k(i)),n);if(a.tag===1){o=F(i),s=_r(u,se(a.fields[0]));continue e}else return new $(0,[a.fields[0]])}}})(e,K())}function oh(e,t,n){return new $(0,[e])}function Ta(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new $(1,[o.fields[0]])}function sh(e,t,n,r){const o=t(n,r);return o.tag===1?new $(1,[o.fields[0]]):new $(0,[e(o.fields[0])])}function ih(e,t){let n;const r=e;return n=o=>s=>xa(0,r,o,s),o=>s=>Ta(Bt(i=>{let u;const a=t;return u=l=>f=>xa(1,a,l,f),l=>f=>Ta((c,h,d)=>oh([i,c]),A(u),l,f)}),A(n),o,s)}function uh(e){return p$(e,{Compare:Pe})}function ah(e){return jd(e,{Compare:Pe})}function lh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?eu((r,o)=>{const s=r[0];return o.tag===0?ze(i=>Te(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new $(0,[K()])):new $(1,[[t,new x(0,["an object",n])]])}function ch(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Dn((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const u=t(n+"."+s,r[s]);return u.tag===0?new $(0,[Te([i.fields[0],u.fields[0]],o.fields[0])]):new $(1,[u.fields[0]])}else return new $(1,[i.fields[0]])}else return o},new $(0,[K()]),Object.keys(r)):new $(1,[[n,new x(0,["an object",r])]])}function Na(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new $(1,[[n,new x(6,[(o=r.length|0,et(Ve("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new $(0,[K()]);for(let u=e;u<=r.length-1;u++)if(i.tag===0){const a=i.fields[0],l=et(Ve("%s[%i]"))(n)(u),f=ee(u-e,t),c=ee(u,r);i=ze(h=>Te(h,a),f(l)(c))}return ze(pr,i)}}function Aa(e,t,n,r,o,s){const i=_f(u=>zt(u)===r,fr(n));if(i!=null){const u=i,a=Jt(l=>Ze(e,t,!1,l[1]),Gi(u));return ze(l=>Co(u,An(l)),a.length===0&&s.length<=1?new $(0,[K()]):Na(1,a,o,s))}else return new $(1,[[o,new x(6,["Cannot find case "+r+" in "+W(n)])]])}function Ia(e,t,n,r){let o;const s=new me(ge());let i;const u=W(r);i=u===""?e:Su(u,s,e);let a;if(Bi(r)){const l=Jt(f=>[Yu(t,zt(f)),Ze(i,t,!1,f[1])],kn(r));a=f=>c=>ze(h=>Xc(r,An(h)),lh(l,f,c))}else if(Hi(r))a=l=>f=>{if(typeof f=="string")return Aa(i,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Tu(h=>Aa(i,t,r,h,l,c),ga(l+"[0]",ee(0,c)))}else return new $(1,[[l,new x(0,["a string or array",f])]])};else if(n)a=l=>f=>new $(1,[[l,new x(2,["an extra coder for "+W(r),f])]]);else throw new Error((o=W(r),et(Ve(`Cannot generate auto decoder for %s. Please pass an extra decoder.
27
+
28
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function Ze(e,t,n,r){let o,s,i,u;const a=W(r),l=Cu(a,e);if(l==null)if(Oi(r)){const f=Ze(e,t,!1,xn(r));return c=>h=>Ma(A(f),c,h)}else if(bo(r))switch(W(Vi(r))){case"System.SByte":return c=>h=>{const d=r,p=c,m=h,_=ya(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,m=h,_=ba(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,m=h,_=Sa(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,jl(y))]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,m=h,_=Ca(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,m=h,_=va(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0]|0;return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,Be(y))]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,m=h,_=Ea(p)(m);if(_.tag===1)return new $(1,[_.fields[0]]);{const y=_.fields[0];return Nt(y,Wt(d),{Equals:(E,T)=>E===T,GetHashCode:Ge})?new $(0,[qt(d,y.toString())]):new $(1,[[p,new x(1,[W(d),m,"Unkown value provided for the enum"])]])}};default:{const c=W(r),h=Ei(Ve(`Cannot generate auto decoder for %s.
29
+ Thoth.Json.Net only support the following enum types:
30
+ - sbyte
31
+ - byte
32
+ - int16
33
+ - uint16
34
+ - int
35
+ - uint32
36
+ If you can't use one of these types, please pass an extra decoder.
37
+ `))(c);return d=>h(d)}}else if(Pi(r))if(So(r)){const f=Jt(c=>Ze(e,t,!1,c),Li(r));return c=>h=>Array.isArray(h)?ze(d=>Qc(An(d)),Na(0,f,c,h)):new $(1,[[c,new x(0,["an array",h])]])}else switch(W(Ri(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ze(e,t,!0,ee(0,ke(r))),c=>h=>th(A(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Ze(e,t,!1,ee(0,ke(r))),c=>h=>ka(A(s),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Ze(e,t,!1,ee(0,ke(r))),c=>h=>nh(A(i),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ze(e,t,!1,ee(0,ke(r))),h=Ze(e,t,!1,ee(1,ke(r)));let d;const p=v([m=>_=>ch(A(c),A(h),m,_),(u=ih(A(c),A(h)),m=>_=>ka(A(u),m,_))]);return d=m=>_=>rh(p,m,_),m=>_=>sh(uh,A(d),m,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ze(e,t,!1,ee(0,ke(r)));return h=>d=>{const p=Ma(A(c),h,d);return p.tag===0?new $(0,[ah(p.fields[0])]):new $(1,[p.fields[0]])}}default:return Ia(e,t,n,r)}else switch(a){case"System.Boolean":return f=>c=>Jd(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Zd(f,c);case"System.String":return f=>c=>ga(f,c);case"System.Char":return f=>c=>Wd(f,c);case"System.SByte":return ya;case"System.Byte":return ba;case"System.Int16":return Sa;case"System.UInt16":return Ca;case"System.Int32":return va;case"System.UInt32":return Ea;case"System.Double":return f=>c=>Yd(f,c);case"System.Single":return f=>c=>Kd(f,c);case"System.DateTime":return f=>c=>Xd(f,c);case"System.DateTimeOffset":return f=>c=>Qd(f,c);case"System.TimeSpan":return f=>c=>eh(f,c);case"System.Guid":return f=>c=>qd(f,c);case"System.Object":return f=>c=>new $(0,[c]);default:return Ia(e,t,n,r)}else{const f=l;return c=>h=>f.contents(c)(h)}}function fh(e){return Fo({Compare:nr})}function Jo(e,t,n){const r=ye(t,new Ot(0,[]));return Ze(fh(),r,!1,e)}class Fa extends ne{constructor(t,n,r,o,s,i,u){super(),this.Name=t,this.Title=n,this.Gender=r,this.Email=o,this.MobilePhone=s,this.DateOfBirth=i,this.Address=u}}function Da(){return En("Dto.Api.Backend.Common.FullProfileDto",[],Fa,()=>[["Name",Ru()],["Title",Y],["Gender",Y],["Email",Y],["MobilePhone",Y],["DateOfBirth",Y],["Address",Vo()]])}function $h(e){return Xu(0,ea(Di(Lu()),new Ot(1,[]),void 0,void 0)(e))}function dh(e){return Zo(A(Jo(Di(Lu()),new Ot(1,[]))),e)}const P=si,hh=(e,t)=>{Et(()=>{const n=e();return()=>{n.Dispose()}},t)},ph=e=>{xt(()=>{const t=e();return()=>{t.Dispose()}})};function mh(e){return{Dispose(){At(t=>{L(t)},$r(e))}}}function Oa(e){return{Dispose(){e()}}}function Yo(e){const t=P.useRef(!1);P.useEffect(()=>{t.current||(t.current=!0,e())},[])}function _h(e){const t=P.useRef(void 0),n=P.useRef(!1),r=P.useRef(!1);n.current&&(r.current=!0),hh(()=>mh(n.current?void 0:(n.current=!0,t.current=$e(e()),r.current?t.current:void 0)),[])}function wh(e){const t=P.useRef(e),n=P.useCallback(r=>t.current(r),[]);return ph(r=>(t.current=e,Oa(()=>{}))),n}class Ir extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure","Info"]}}function gh(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function yh(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function bh(e){switch(e.tag){case 0:return v(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return v(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return v(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}function Sh(e){switch(e.tag){case 0:return e.fields[0];case 2:return e.fields[0];default:return e.fields[0]}}function Ch(e,t){Eo(N.Delay(()=>N.Bind(cf(5e3),()=>(e(),N.Zero()))),t)}function Pa(e){let t,n,r,o,s,i;const u=e.hideAlert,a=e.alert,l=qi();Yo(()=>{Ch(u,l)});const f=C("svg",B(v([["className",M(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=se(C("path",B(v([["fill-rule","evenodd"],(n="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",["d",n]),["clipRule","evenodd"]])))),["children",P.Children.toArray(Array.from(t))])])));return C("div",B(v([["className",M(" ",["rounded-md","p-4","my-4",yh(a)])],(r=[C("div",B(v([["className",M(" ",["flex"])],(o=[C("p",{className:M(" ",["text-sm",gh(a)]),children:Sh(a)}),C("div",B(v([["className",M(" ",["ml-auto"])],(s=[C("div",B(v([["className",M(" ",["-mx-1.5","-my-1.5"])],(i=[C("button",{type:"button",className:M(" ",te(w(()=>b(g("inline-flex"),w(()=>b(g("rounded-md"),w(()=>b(g("p-1.5"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-2"),w(()=>b(g("focus:ring-offset-2"),w(()=>bh(a)))))))))))))))),children:P.Children.toArray([f]),onClick:c=>{Zi(l),u()}})],["children",P.Children.toArray(Array.from(i))])])))],["children",P.Children.toArray(Array.from(s))])])))],["children",P.Children.toArray(Array.from(o))])])))],["children",P.Children.toArray(Array.from(r))])])))}class vh extends ne{constructor(t,n,r,o,s,i,u){super(),this.Name=t,this.Email=n,this.MobilePhone=r,this.Title=o,this.Gender=s,this.DateOfBirth=i,this.Address=u}}function Eh(){return En("Dto.Api.Backend.Read.PartialProfileDto",[],vh,()=>[["Name",Ru()],["Email",Y],["MobilePhone",ft(Y)],["Title",ft(Y)],["Gender",ft(Y)],["DateOfBirth",ft(Y)],["Address",ft(Vo())]])}class xh extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Full","Partial"]}}function kh(){return cr("Dto.Api.Backend.Read.ProfileDto",[],xh,()=>[[["Item",Da()]],[["Item",Eh()]]])}function Mh(e){return Zo(A(Jo(kh(),new Ot(1,[]))),e)}class Th extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","EmailNotUnique"]}}function Nh(){return cr("Dto.Api.Backend.Read.ProfileUpdateStatus",[],Th,()=>[[],[]])}function Ah(e){return Zo(A(Jo(Nh(),new Ot(1,[]))),e)}class Q extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ra(e,t){let n;const r=qi();return n=P.useRef(r),_h(()=>Oa(()=>{Zi(n.current)})),wh(o=>{sf(n.current)||Eo(N.Delay(()=>N.TryWith(N.Delay(()=>(t(new Q(1,[])),N.Bind(e(o),s=>(t(new Q(2,[s])),N.Zero())))),s=>(t(new Q(3,[s])),N.Zero()))),n.current)})}function Va(e){return Nu(e)}function Ih(e){return gn(e,"yyyy-MM-dd")}function La(){return v([[new Qt(0,[]),"Male"],[new Qt(1,[]),"Female"],[new Qt(2,[]),"Intersex"],[new Qt(3,[]),"Transgender"],[new Qt(4,[]),"Prefer not to answer"],[new Qt(5,[]),"Other"]])}function Ko(e){return Fn(t=>{if(t[1]===e)return t[0]},La())}class Pt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function Fh(e){return ve(e)}function Ha(){return v([[new Pt(0,[]),"Mr"],[new Pt(1,[]),"Miss"],[new Pt(2,[]),"Mrs"],[new Pt(3,[]),"Ms"],[new Pt(4,[]),"Mx"],[new Pt(5,[]),"Dr"],[new Pt(6,[]),"Prof"]])}function Xo(e){return Fn(t=>{if(t[1]===e)return t[0]},Ha())}class pt extends ne{constructor(t,n,r,o,s,i){super(),this.FirstName=t,this.MiddleName=n,this.LastName=r,this.Title=o,this.DateOfBirth=s,this.Gender=i}}const Dh=new pt("","","",void 0,void 0,void 0);class rt extends ne{constructor(t,n,r,o,s,i,u){super(),this.Email=t,this.MobileNumber=n,this.StreetAddress=r,this.Suburb=o,this.State=s,this.Postcode=i,this.NonUniqueEmails=u}}const Oh=new rt("","","","",void 0,"",K());class Hn extends ne{constructor(t,n){super(),this.Identification=t,this.ContactDetails=n}}const Ph=new Hn(Dh,Oh);function Rh(e){let t,n;const r=e.Identification.Gender;if(n=r==null?new $(1,["Gender missing"]):new $(0,[r]),t=n.tag===1?new $(1,[n.fields[0]]):new $(0,[V$(n.fields[0])]),t.tag===1)return new $(1,[t.fields[0]]);{let o,s;const i=e.ContactDetails.State;if(s=i==null?new $(1,["State missing"]):new $(0,[i]),o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[Lo(s.fields[0])]),o.tag===1)return new $(1,[o.fields[0]]);{let u,a;const l=e.Identification.Title;if(a=l==null?new $(1,["Title missing"]):new $(0,[l]),u=a.tag===1?new $(1,[a.fields[0]]):new $(0,[Fh(a.fields[0])]),u.tag===1)return new $(1,[u.fields[0]]);{let f,c;const h=e.Identification.DateOfBirth;return c=h==null?new $(1,["DateOfBirth missing"]):new $(0,[h]),f=c.tag===1?new $(1,[c.fields[0]]):new $(0,[Ih(c.fields[0])]),f.tag===1?new $(1,[f.fields[0]]):new $(0,[new Fa(new Pu(e.Identification.FirstName.trim(),Er(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),u.fields[0],t.fields[0],e.ContactDetails.Email.trim(),Bu(e.ContactDetails.MobileNumber),f.fields[0],new Ro(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),o.fields[0],e.ContactDetails.Postcode.trim(),"AU"))])}}}}function Vh(e){let t,n,r,o,s,i,u;if(e.tag===1){const a=e.fields[0];return new Hn(new pt(a.Name.FirstName,ye(a.Name.MiddleName,""),a.Name.LastName,(t=a.Title,t==null?void 0:Xo(t)),(n=a.DateOfBirth,n==null?void 0:Va(n)),(r=a.Gender,r==null?void 0:Ko(r))),new rt(a.Email,Bo(ye(a.MobilePhone,"")),ye((o=a.Address,o==null?void 0:o.AddressLine1),""),ye((s=a.Address,s==null?void 0:s.City),""),(i=a.Address,i==null?void 0:On(i.State)),ye((u=a.Address,u==null?void 0:u.Postcode),""),K()))}else{const a=e.fields[0];return new Hn(new pt(a.Name.FirstName,ye(a.Name.MiddleName,""),a.Name.LastName,Xo(a.Title),Va(a.DateOfBirth),Ko(a.Gender)),new rt(a.Email,Bo(a.MobilePhone),a.Address.AddressLine1,a.Address.City,On(a.Address.State),a.Address.Postcode,K()))}}let De=class extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.ExistingProfile=r,this.SaveStatus=o}},re=class extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}};class Lh{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Hh(e,t){t.Subscribe(new Lh(e))}class Bh{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 Uh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class Gh extends Bh{}function Uh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class jh{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 Gh}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 zh(e,t){console.error($e(e),t)}function Wh(e,t){let n,r=new jh(e);r.AutoReset=!1,n=r,Hh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ba(e,t,n){mr(r=>{try{r(t)}catch(o){e(o)}},n)}function ue(){return K()}function Ga(e,t,n,r,o){return se(s=>{e(N.Delay(()=>N.Bind(af(t(n)),i=>{const u=i;return s(u.tag===1?o(u.fields[0]):r(u.fields[0])),N.Zero()})))})}function Ua(e){Wh(1,t=>{Eo(e)})}function qh(e){return Xu(0,ea(Da(),new Ot(1,[]),void 0,void 0)(e))}function ja(e){return`${e}/profiles/backend/profiles`}function Zh(e,t){const n=N.Delay(()=>{const r=xr(t,vr(new Mn(0,[]),Cr(ja(e))));return N.Bind(r,o=>{const s=o;if(s.tag===1)return N.Return(new $(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const u=Mh(i.responseText);return N.Return(u)}else return N.Return(new $(1,[""]))}})});return N.Bind(n,r=>{let o;const s=r;return o=s.tag===1?new $(1,[new nt(1,[])]):new $(0,[s.fields[0]]),N.Return(o)})}function Jh(e,t,n){const r=N.Delay(()=>{let o;const s=xr(t,(o=xu(new xo(1,[qh(n)]),vr(new Mn(2,[]),Cr(ja(e)))),Do(vu("application/json"),o)));return N.Bind(s,i=>{const u=i;if(u.tag===1)return N.Return(new $(1,[u.fields[0]]));{const a=u.fields[0];if(a.statusCode===200){const l=Ah(a.responseText);return N.Return(l)}else return N.Return(new $(1,[""]))}})});return N.Bind(r,o=>{let s;const i=o;return s=i.tag===1?new $(1,[new nt(0,[])]):new $(0,[i.fields[0]]),N.Return(s)})}function Yh(){return[new De(Ph,void 0,new Q(0,[]),new Q(0,[])),ue()]}function Kh(e,t){let n;switch(e.tag){case 1:return[new De(new Hn(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),ue()];case 2:{let r,o;switch(e.fields[0].tag){case 3:{r=1;break}case 0:{r=2;break}case 1:{r=3;break}default:e.fields[0].fields[0].tag===1?r=1:(r=0,o=e.fields[0].fields[0].fields[0])}switch(r){case 0:return[new De(Vh(o),t.CurrentAlert,new Q(2,[o]),t.SaveStatus),ue()];case 1:return[new De(t.FormModel,t.CurrentAlert,new Q(3,[new Error(en(new nt(1,[])))]),t.SaveStatus),ue()];case 2:return[new De(t.FormModel,t.CurrentAlert,new Q(0,[]),t.SaveStatus),ue()];default:return[new De(t.FormModel,t.CurrentAlert,new Q(1,[]),t.SaveStatus),ue()]}}case 3:{const r=new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(1,[])),o=Rh(t.FormModel);return o.tag===1?[r,se(s=>{s(new re(4,[new $(1,[new nt(0,[])])]))})]:[r,Ga(s=>{Ua(s)},s=>Jh(e.fields[0],e.fields[1],s),o.fields[0],s=>new re(4,[ze(i=>[i,e.fields[2]],s)]),s=>new re(4,[new $(1,[new nt(0,[])])]))]}case 4:return e.fields[0].tag===1?[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(3,[new Error(en(e.fields[0].fields[0]))])),(n=new re(5,[new Ir(1,[en(e.fields[0].fields[0])])]),se(r=>{r(n)}))]:e.fields[0].fields[0][0].tag===1?[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(2,[void 0])),se(r=>{r(new re(1,[o=>new rt(o.Email,o.MobileNumber,o.StreetAddress,o.Suburb,o.State,o.Postcode,_r(o.NonUniqueEmails,se(t.FormModel.ContactDetails.Email)))]))})]:(e.fields[0].fields[0][1](),[new De(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Q(2,[void 0])),ue()]);case 5:return[new De(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),ue()];case 6:return[new De(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),ue()];default:return[new De(new Hn(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),ue()]}}function Xh(){return K()}function Qo(e){return M("/",e)}function Qh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Qo(t),n])}function za(e,t,n){try{L(n)}catch(r){e(["Error stopping subscription: "+Qo(t),r])}}function e0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Qo(n),o]);return}}function t0(e,t){mr(n=>{za(e,n[0],n[1])},t)}function Wa(e,t,n,r,o,s){return mr(i=>{Qh(e,i)},n),mr(i=>{za(e,i[0],i[1])},r),_r(o,ou(i=>e0(e,t,i[0],i[1]),s))}function n0(){return[K(),Gd({Compare:Pe}),K()]}function r0(e,t,n,r,o){return qo(e,r)?[Te(e,n),r,o]:[n,Bd(e,r),Te([e,t],o)]}function o0(e){return Cf((t,n)=>r0(t[0],t[1],n[0],n[1],n[2]),e,n0())}const s0=K();function qa(e,t){const n=Ud(In(i=>i[0],e),{Compare:Pe}),r=o0(t),o=r[1],s=r[0];if(n.Equals(o))return[s,K(),e,K()];{const i=Mf(u=>qo(u[0],o),e);return[s,i[1],i[0],kf(u=>!qo(u[0],n),r[2])]}}function i0(e,t,n,r){const o=Pe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const u=Pe(i,t)|0;return s&&u<=0||!s&&u>=0?[i,r(i,e)]:void 0}}function u0(e,t,n,r,o){const s=i0(t,n,r,o);return w(()=>Uf(s,e))}function a0(e,t,n){return u0(e,t,n,0,(r,o)=>r+o)}class on extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class l0{constructor(t){this.state=new on(0,[dr(new Array(Qi(t,10)),0,Qi(t,10),null),0])}}function c0(e){return new l0(e)}function Za(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new on(0,[o,n]):e.state=new on(1,[o,n,s]),$e(ee(r,o))}else return}function f0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];Ue(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new on(1,[$0(e,o,s),s.length,0]):e.state=new on(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];Ue(o,r,t);const s=(r+1)%o.length|0;e.state=new on(1,[o,s,r])}}function $0(e,t,n){return Array.from(w(()=>b(Kf(t,n),w(()=>b(Xf(t,n),w(()=>Ao(r=>g(ge()),a0(0,1,n.length))))))))}class es extends ne{constructor(t,n,r,o,s,i,u){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=u}}function Ja(e,t,n){return new es(e,t,r=>Xh(),n,A(r=>{const o=Re(n)(r);return s=>{o(s)}}),r=>{zh(r[0],r[1])},[r=>!1,r=>{}])}function d0(e,t){return new es(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function h0(e){return e.init}function p0(e,t,n,r,o,s,i){const u=Re(e)(i.init),a=J(t)(Re(i.update)),l=J(n)(Re(i.view)),f=J(r)(Re(i.setState));return new es(u,A(a),Re(o)(i.subscribe),A(l),A(f),i.onError,s(i.termination))}function m0(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),u=n.termination,a=c0(10);let l=!1,f=s,c=s0,h=!1;const d=_=>{h||(f0(a,_),l||(l=!0,m(),l=!1))},p=Re(e)(d),m=()=>{let _,y=Za(a);for(;!h&&y!=null;){const E=S(y);if(u[0](E))t0(n.onError,c),u[1](f),h=!0;else{const T=n.update(E,f),U=T[0],Oe=n.subscribe(U);n.setState(U,p),Ba(mt=>{n.onError([et(Ve("Error handling the message: %A"))(E),mt])},p,T[1]),f=U,c=(_=qa(c,Oe),Wa(n.onError,p,_[0],_[1],_[2],_[3])),y=Za(a)}}};l=!0,n.setState(s,p),Ba(_=>{n.onError([et(Ve("Error intitializing:")),_])},p,o[1]),c=(r=qa(c,i),Wa(n.onError,p,r[0],r[1],r[2],r[3])),m(),l=!1}function _0(e,t){m0(A(n=>n),e,t)}function w0(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ya={exports:{}},Ka={};const g0=w0(Pl);/**
38
+ * @license React
39
+ * use-sync-external-store-shim.production.min.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var sn=g0;function y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var b0=typeof Object.is=="function"?Object.is:y0,S0=sn.useState,C0=sn.useEffect,v0=sn.useLayoutEffect,E0=sn.useDebugValue;function x0(e,t){var n=t(),r=S0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return v0(function(){o.value=n,o.getSnapshot=t,ts(o)&&s({inst:o})},[e,n,t]),C0(function(){return ts(o)&&s({inst:o}),e(function(){ts(o)&&s({inst:o})})},[e]),E0(n),n}function ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!b0(e,n)}catch{return!0}}function k0(e,t){return t()}var M0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?k0:x0;Ka.useSyncExternalStore=sn.useSyncExternalStore!==void 0?sn.useSyncExternalStore:M0,Ya.exports=Ka;var T0=Ya.exports;class N0{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const u=h0(o)(this.arg);let a=u[0],l=u[1];i=[[a,f=>{const c=this.finalDispatch;c==null?s.push(f):c(f)},!1,s],l],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const h=ao(this.state[0]);return _0(this.arg,d0((d,p)=>{const m=this.state;this.finalDispatch=p,this.state=[d,m[1],!0,s],d!==m[0]&&f()},p0((d,p)=>{const m=this.cmd;return this.cmd=ue(),[this.state[0],m]},(d,p,m)=>d(p)(this.state[0]),Bt(d=>d),Bt(d=>d),A(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const m=p;ao(m)?L(m):d[1](p)}],o))),()=>{c=!0}}}}function Xa(e,t,n){return new N0(e,t,n)}function A0(e){return e.state}function I0(e){return e.subscribe}function F0(e,t,n){return pe(e.arg,t)?!pe(e.dependencies,n):!0}function Qa(e,t,n){const r=vt(()=>Xa(e,t,n)),o=r[0];F0(o,t,n)&&r[1](Xa(e,t,n));const s=T0.useSyncExternalStore(I0(o),()=>A0(o)),i=s[2],u=s[3],a=s[1];return Et(()=>{if(i&&u.length>0){let l=q(u);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{a(f)})}}finally{L(l)}Xl(u)}},[i,u]),[s[0],a]}function D0(e,t){return w(()=>{const n=new kd([],t);return qf(r=>pd(r,n),e)})}function O0(e,t){return te(D0(e,t))}function el(e){const t=vt(e);return[t[0],n=>{t[1](n)}]}class oe extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function P0(e){return mo(e)?new $(1,["{0} is required"]):new $(0,[void 0])}function R0(e,t){return t.length<e?new $(1,[et(Ve("{0} must be at least %i characters"))(e)]):new $(0,[void 0])}function V0(e,t){return t.length>e?new $(1,[et(Ve("{0} exceeds the max length of %i"))(e)]):new $(0,[void 0])}function L0(e,t,n){return ur(ir(e),n)!=null?new $(0,[void 0]):new $(1,[et(Ve("{0} is not a valid %s"))(t)])}function tl(e,t,n){const r=n.values();return O0(te(w(()=>Ao(o=>{const s=o[0],i=In(u=>ki(u,o[1]),ou(u=>{if(u.tag===1)return u.fields[0]},In(u=>{switch(u.tag){case 1:return V0(u.fields[0],e(s));case 2:return R0(u.fields[0],e(s));case 3:return L0(u.fields[0],u.fields[1],e(s));case 4:return u.fields[0];default:return P0(e(s))}},o[2])));return t(s,i),i},r))),{Equals:(o,s)=>o===s,GetHashCode:_n})}class H0 extends ne{constructor(t,n){super(),this.GetValue=t,this.SetStyle=n}}function nl(e,t){nu(t)>0?(e.classList.add("error"),e.setAttribute("title",xf(0,t))):(e.classList.remove("error"),e.removeAttribute("title"))}function B0(e){return e.value}function G0(e){const n=$n(new Map([])).current,r=el(K()),o=r[1],s=r[0],i=el(!1),u=i[1],a=ye(e.GetValue,B0),l=ye(zi(Re,e.SetStyle),c=>h=>{nl(c,h)});return Et(()=>{if(i[0]){const c=tl(a,A(l),n);pe(c,s)||(o(c),n.clear())}}),[$n(c=>h=>d=>{if(!pe(d,ge())){let p;if(d.hasAttribute("data-vkey"))p=d.getAttribute("data-vkey");else{let m=ci(d);p=Be(m)}n.set(p,[d,c,h])}}).current,()=>{u(!0);const c=tl(a,A(l),n);return o(c),nu(c)===0},()=>{At(c=>{nl(c[1][0],K())},n),n.clear(),o(K()),u(!1)},s]}function rl(){return G0(new H0(void 0,void 0))}const U0=`/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;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;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem;--tw-shadow:0 0 #0000}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea: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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}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-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%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 8 4 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:none;background-position:0 0;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;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem;--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{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%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;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%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:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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:rgba(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:rgba(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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.p-1\\.5{padding:.375rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.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-medium{font-weight:500}.font-semibold{font-weight:600}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/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))}.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))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{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 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.filter{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)}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.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-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.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-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}`,ol=ve(U0),un=v(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class fe extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Your","EmergencyContact"]}}function ns(e){return e.tag===1?"emergency contact":"your"}class ae extends j{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TestId"]}}function Bn(e){return e.fields[0]}function j0(e){return Tf(new oe(0,[]),e,{Equals:pe,GetHashCode:ci})}function z0(e,t){return e+(j0(t)?" *":"")}function Fr(e,t,n,r,o){const s=te(w(()=>b(g(C("label",{className:M(" ",["block","text-sm","font-medium","text-gray-700"]),children:z0(e,t)})),w(()=>b(g(C("div",{className:M(" ",["mt-1"]),children:P.Children.toArray([o])})),w(()=>{const i=n;if(i!=null){const u=i;return g(C("p",{className:M(" ",["mt-2","text-sm","text-red-600"]),children:u,"data-testid":`${Bn(r)}-error`}))}else return g(ge())}))))));return C("div",{children:P.Children.toArray(Array.from(s))})}const sl=v(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Gn(e){return te(w(()=>b(g("block"),w(()=>b(g("shadow-sm"),w(()=>b(g("w-full"),w(()=>b(g("sm:text-sm"),w(()=>b(g("rounded-md"),w(()=>e?sl:b(g("border-gray-300"),w(()=>b(g("focus:ring-primary-focus"),w(()=>g("focus:border-primary-focus")))))))))))))))))}function Le(e,t,n,r,o,s,i,u,a){return Fr(e,r,o,u,C("input",B(te(w(()=>b(g(["className",M(" ",Gn(o!=null))]),w(()=>b(g(["value",t]),w(()=>b(g(["ref",Re(n)(r)]),w(()=>b(g(["type","text"]),w(()=>b(g(["onChange",l=>{s(l.target.value)}]),w(()=>b(g(["placeholder",`Enter ${ns(i)} ${e.toLocaleLowerCase()}`]),w(()=>b(g(["data-testid",Bn(u)]),w(()=>a)))))))))))))))))))}class Rt extends ne{constructor(t,n,r){super(),this.Day=t,this.Month=n,this.Year=r}}const W0=new Rt("","","");function an(e){return e.length===1?`0${e}`:e}function q0(e){return`${e.Year}-${an(e.Month)}-${an(e.Day)}`}function Z0(e){return new Rt(an(Be(yn(e))),an(Be(kt(e))),Be(Ut(e)))}function il(e){const t=q0(e),n=Q$(t);let r;switch(n.tag===1&&n.fields[0].tag===7?r=0:r=1,r){case 0:return new $(1,[void 0]);default:return new $(0,[t])}}function J0(e){let t,n,r,o,s;const i=e.onChangeHandler,u=e.testId,a=e.error,l=e.validationRules,f=e.rulesForFieldName,c=e.value,h=e.fieldName;let d;const p=c==null?W0:Z0(c);d=P.useState(p);const m=d[0],_=T=>{let U;d[1](T),i((U=il(T),U.tag===1?void 0:Nu(U.fields[0])))},y=(T,U,Oe,mt)=>{const yt=ar(kr,mt);return(yt.length|0)===0?yt:Fu(yt,511,!1,32)<=U?Ti(yt,0,hf(T,yt.length)):Oe},E=Bn(u);return Fr(h,l,a,u,C("div",B(v([["className",M(" ",["grid","grid-cols-4","gap-1"])],(t=[C("div",B(v([["className",M(" ",["col-span-1"])],(n=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Day,placeholder:"dd",onChange:T=>{const U=T.target.value;_(new Rt(y(2,31,m.Day,U),m.Month,m.Year))},onBlur:T=>{_(new Rt(an(m.Day),m.Month,m.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${E}-day`})],["children",P.Children.toArray(Array.from(n))])]))),C("div",B(v([["className",M(" ",["col-span-1"])],(r=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Month,placeholder:"mm",onChange:T=>{const U=T.target.value;_(new Rt(m.Day,y(2,12,m.Month,U),m.Year))},onBlur:T=>{_(new Rt(m.Day,an(m.Month),m.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${E}-month`})],["children",P.Children.toArray(Array.from(r))])]))),C("div",B(v([["className",M(" ",["col-span-2"])],(o=[C("input",{className:M(" ",Gn(a!=null)),type:"text",value:m.Year,placeholder:"yyyy",onChange:T=>{const U=T.target.value;_(new Rt(m.Day,m.Month,y(4,Ut(bc()),m.Year,U)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${E}-year`})],["children",P.Children.toArray(Array.from(o))])]))),C("input",{type:"hidden",ref:Re(f)(l),value:(s=il(m),s.tag===1?"":s.fields[0])})],["children",P.Children.toArray(Array.from(t))])]))))}function Un(e,t,n,r,o,s,i,u,a){let l;return Fr(e,o,s,a,C("select",B(v([["className",M(" ",te(w(()=>b(g("mt-1"),w(()=>b(g("block"),w(()=>b(g("w-full"),w(()=>b(g("pl-3"),w(()=>b(g("pr-10"),w(()=>b(g("py-2"),w(()=>b(g("text-base"),w(()=>b(g("sm:text-sm"),w(()=>b(g("rounded-md"),w(()=>s==null?b(g("border-gray-300"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-primary-focus"),w(()=>g("focus:border-primary-focus"))))))):sl)))))))))))))))))))))],["ref",Re(r)(o)],(l=te(w(()=>b(g(C("option",{selected:t==null,disabled:!0,value:"",children:`Select ${ns(u)} ${e.toLocaleLowerCase()}`})),w(()=>Ao(f=>{const c=f[1];return g(C("option",{selected:Nt(f[0],$r(t),{Equals:pe,GetHashCode:Xe}),value:c,children:c,className:M(" ",["text-black"])}))},n))))),["children",P.Children.toArray(Array.from(l))]),["onChange",f=>{i(f.target.value)}],["data-testid",Bn(a)]]))))}function ul(e,t,n,r,o,s,i,u){return Fr(e,r,o,u,C("input",{className:M(" ",Gn(o!=null)),type:"tel",value:t,ref:Re(n)(r),onChange:a=>{let l;const f=a.target.value;s((l=ar(kr,f),f.indexOf("+")===0?`+${l}`:l))},placeholder:`Enter ${ns(i)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Bn(u)}))}function al(e,t,n){let r,o,s,i,u;const a=n&&!pe(t,new Q(1,[])),l=C("svg",B(v([["className",M(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=v([C("circle",{className:M(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),C("path",B(v([["className",M(" ",["opacity-75"])],["fill","currentColor"],(o="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",["d",o])])))]),["children",P.Children.toArray(Array.from(r))])])));return C("div",B(v([["className",M(" ",["flex","flex-row-reverse"])],(s=[(i=se(C("button",B(v([["className",M(" ",te(w(()=>b(g("inline-flex"),w(()=>b(g("items-center"),w(()=>b(g("px-4"),w(()=>b(g("py-2"),w(()=>b(g("border"),w(()=>b(g("border-transparent"),w(()=>b(g("shadow-sm"),w(()=>b(g("text-sm"),w(()=>b(g("font-medium"),w(()=>b(g("rounded-md"),w(()=>b(g("text-primary-text"),w(()=>b(g("focus:outline-none"),w(()=>b(g("focus:ring-2"),w(()=>b(g("focus:ring-offset-2"),w(()=>b(g("focus:ring-primary-focus"),w(()=>a?b(g("bg-primary-base"),w(()=>g("hover:bg-primary-hover"))):t.tag===1?b(g("bg-primary-base"),w(()=>g("hover:bg-primary-hover"))):g("bg-primary-disabled"))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!a],["onClick",f=>{a&&e()}],(u=te(w(()=>b(t.tag===1?g(l):g(ge()),w(()=>g(C("span",{children:["Save and continue"]})))))),["children",P.Children.toArray(Array.from(u))]),["data-testid","save"]])))),C("div",{children:P.Children.toArray(Array.from(i))}))],["children",P.Children.toArray(Array.from(s))])])))}function ll(e){return(e.indexOf("04")===0?e.length===10:e.indexOf("614")===0?e.length===11:e.indexOf("+614")===0&&e.length===12)?new $(0,[void 0]):new $(1,[new _e(9,[])])}function Y0(e){let t;const n=e;return n.tag===1?new $(1,[(t=n.fields[0],t.tag===1?`{0} exceeds the character limit of ${t.fields[0]}`:t.tag===2?`{0} must be at least ${t.fields[0]} characters`:t.tag===4?"{0} must only have numbers":t.tag===5?"{0} is not valid":t.tag===3?"{0} has invalid characters":t.tag===6?"{0} is not valid":t.tag===9?"{0} is not a valid Australian mobile number":t.tag===7?"{0} is not valid":t.tag===8?t.fields[0].tag===0?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":t.tag===10?"{0} must start with a letter":"{0} is required")]):new $(0,[n.fields[0]])}function le(e){let t;return new oe(4,[(t=Y0(e),t.tag===1?new $(1,[t.fields[0]]):new $(0,[void 0]))])}function K0(e,t,n,r){let o;return C("div",B(v([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>b(g(C("h6",{className:M(" ",["text-lg","font-semibold"]),children:"Identification"})),w(()=>{let s;return g(C("div",B(v([["className",M(" ",un)],(s=te(w(()=>{const i="Identification.Legal first name";return b(g(Le("Legal first name",e.FirstName,A(J(t)(i)),v([new oe(0,[]),le(Go(e.FirstName))]),ie(i,"Legal first name",n),u=>{r(new re(0,[a=>new pt(wt(u),a.MiddleName,a.LastName,a.Title,a.DateOfBirth,a.Gender)]))},new fe(0,[]),new ae("first-name"),[["autoComplete","given-name"]])),w(()=>{const u="Identification.Middle name";return b(g(Le("Middle name",e.MiddleName,A(J(t)(u)),se(le(td(Er(e.MiddleName)))),ie(u,"Middle name",n),a=>{r(new re(0,[l=>new pt(l.FirstName,wt(a),l.LastName,l.Title,l.DateOfBirth,l.Gender)]))},new fe(0,[]),new ae("middle-name"),[["autoComplete","additional-name"]])),w(()=>{const a="Identification.Last name";return b(g(Le("Last name",e.LastName,A(J(t)(a)),v([new oe(0,[]),le(Go(e.LastName))]),ie(a,"Last name",n),l=>{r(new re(0,[f=>new pt(f.FirstName,f.MiddleName,wt(l),f.Title,f.DateOfBirth,f.Gender)]))},new fe(0,[]),new ae("last-name"),[["autoComplete","family-name"]])),w(()=>{let l;const f="Identification.Title";return b(g(Un("Title",e.Title,Ha(),A(J(t)(f)),v([new oe(0,[]),le((l=e.Title,l==null?new $(1,[new _e(0,[])]):new $(0,[l])))]),ie(f,"Title",n),c=>{r(new re(0,[h=>new pt(h.FirstName,h.MiddleName,h.LastName,Xo(c),h.DateOfBirth,h.Gender)]))},new fe(0,[]),new ae("title"))),w(()=>{let c;const h="Identification.Date of birth";return b(g(C(J0,{fieldName:"Date of birth",value:Ui(e.DateOfBirth),rulesForFieldName:A(J(t)(h)),validationRules:v([new oe(0,[]),le((c=e.DateOfBirth,c==null?new $(1,[new _e(0,[])]):od(c)))]),error:Ui(ie(h,"Date of birth",n)),testId:new ae("dob"),onChangeHandler:d=>{r(new re(0,[p=>new pt(p.FirstName,p.MiddleName,p.LastName,p.Title,d,p.Gender)]))}})),w(()=>{let d;const p="Identification.Gender";return g(Un("Gender",e.Gender,La(),A(J(t)(p)),v([new oe(0,[]),le((d=e.Gender,d==null?new $(1,[new _e(0,[])]):new $(0,[d])))]),ie(p,"Gender",n),m=>{r(new re(0,[_=>new pt(_.FirstName,_.MiddleName,_.LastName,_.Title,_.DateOfBirth,Ko(m))]))},new fe(0,[]),new ae("gender")))}))}))}))}))}))})),["children",P.Children.toArray(Array.from(s))])]))))})))),["children",P.Children.toArray(Array.from(o))])])))}function X0(e,t,n,r){let o;return C("div",B(v([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>b(g(C("h6",{className:M(" ",["text-lg","font-semibold"]),children:"Contact details"})),w(()=>{let s;return b(g(C("div",B(v([["className",M(" ",un)],(s=te(w(()=>{const i="ContactDetails.Email";return b(g(Le("Email",e.Email,A(J(t)(i)),v([new oe(0,[]),le(ju(e.Email)),new oe(4,[Nf(u=>Ac(u,e.Email,5)===0,e.NonUniqueEmails)?new $(1,["{0} is already taken"]):new $(0,[void 0])])]),ie(i,"Email",n),u=>{r(new re(1,[a=>new rt(u,a.MobileNumber,a.StreetAddress,a.Suburb,a.State,a.Postcode,a.NonUniqueEmails)]))},new fe(0,[]),new ae("email"),[["autoComplete","email"]])),w(()=>{const u="ContactDetails.Mobile number";return g(ul("Mobile number",e.MobileNumber,A(J(t)(u)),v([new oe(0,[]),le(ll(e.MobileNumber))]),ie(u,"Mobile number",n),a=>{r(new re(1,[l=>new rt(l.Email,a,l.StreetAddress,l.Suburb,l.State,l.Postcode,l.NonUniqueEmails)]))},new fe(0,[]),new ae("mobile")))}))})),["children",P.Children.toArray(Array.from(s))])])))),w(()=>{let i;return g(C("div",B(v([["className",M(" ",un)],(i=te(w(()=>{const u="ContactDetails.Street address";return b(g(Le("Street address",e.StreetAddress,A(J(t)(u)),v([new oe(0,[]),le(Uu(e.StreetAddress))]),ie(u,"Street address",n),a=>{r(new re(1,[l=>new rt(l.Email,l.MobileNumber,wt(a),l.Suburb,l.State,l.Postcode,l.NonUniqueEmails)]))},new fe(0,[]),new ae("street-address"),[["autoComplete","street-address"]])),w(()=>{const a="ContactDetails.Town/Suburb";return b(g(Le("Town/Suburb",e.Suburb,A(J(t)(a)),v([new oe(0,[]),le(zu(e.Suburb))]),ie(a,"Town/Suburb",n),l=>{r(new re(1,[f=>new rt(f.Email,f.MobileNumber,f.StreetAddress,wt(l),f.State,f.Postcode,f.NonUniqueEmails)]))},new fe(0,[]),new ae("town"),[["autoComplete","address-level2"]])),w(()=>{let l;const f="ContactDetails.State";return b(g(Un("State",e.State,Ho(),A(J(t)(f)),v([new oe(0,[]),le((l=e.State,l==null?new $(1,[new _e(0,[])]):new $(0,[l])))]),ie(f,"State",n),c=>{r(new re(1,[h=>new rt(h.Email,h.MobileNumber,h.StreetAddress,h.Suburb,On(c),h.Postcode,h.NonUniqueEmails)]))},new fe(0,[]),new ae("state"))),w(()=>{const c="ContactDetails.Postcode";return g(Le("Postcode",e.Postcode,A(J(t)(c)),v([new oe(0,[]),le(Wu(e.Postcode))]),ie(c,"Postcode",n),h=>{r(new re(1,[d=>new rt(d.Email,d.MobileNumber,d.StreetAddress,d.Suburb,d.State,h,d.NonUniqueEmails)]))},new fe(0,[]),new ae("postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",P.Children.toArray(Array.from(i))])]))))}))})))),["children",P.Children.toArray(Array.from(o))])])))}function cl(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Q0(e){cl("personal-details",e)}function ep(e){cl("emergency-contacts",e)}function tp(e){let t,n;const r=Yh();n=Qa(()=>Ja(()=>r,Kh,(f,c)=>{}),void 0,void 0);const o=n[0],s=n[1],i=rl(),u=i[0],a=i[3];Yo(Ra(()=>Zh(e.backendUrl,e.accessToken),f=>{s(new re(2,[f]))}));const l=C("h3",{className:M(" ",["text-2xl","font-medium"]),children:"Personal Details"});return C("div",B(v([["className",M(" ",["font-sans"])],(t=te(w(()=>b(g(C("style",{children:[ol]})),w(()=>{const f=o.ExistingProfile;switch(f.tag){case 2:return b(g(l),w(()=>b(g(K0(o.FormModel.Identification,Bt(u),a,s)),w(()=>b(g(X0(o.FormModel.ContactDetails,Bt(u),a,s)),w(()=>b(o.CurrentAlert!=null?g(C(Pa,{alert:S(o.CurrentAlert),hideAlert:()=>{s(new re(6,[]))}})):uu(),w(()=>g(al(()=>{i[1]()?s(new re(3,[e.backendUrl,e.accessToken,()=>{At(c=>{Q0(c)},$r(ji(document.querySelector("apollo-personal-details-app"))))}])):s(new re(5,[new Ir(1,["There are some errors on the form, please correct them."])]))},o.SaveStatus,D(a)))))))))));case 3:return b(g(l),w(()=>g(C("p",{children:[f.fields[0].message]}))));default:return g(C("div",{children:["Please wait..."]}))}})))),["children",P.Children.toArray(Array.from(t))])])))}function np(){Au(e=>C(tp,e),"apollo-personal-details-app")}function rp(e){return ve(e)}function fl(){return In(e=>[e,rp(e)],ko(he(e=>Co(e,[]),fr(N$()))))}function $l(e){return Fn(t=>{if(t[1]===e)return t[0]},fl())}class ot extends ne{constructor(t,n,r,o,s,i,u,a){super(),this.FullName=t,this.Relationship=n,this.PhoneNumber=r,this.Email=o,this.StreetAddress=s,this.Suburb=i,this.State=u,this.Postcode=a}}const op=new ot("",void 0,"","","","",void 0,"");function sp(e){let t,n;const r=e.Relationship;if(n=r==null?new $(1,["Relationship missing"]):new $(0,[r]),t=n.tag===1?new $(1,[n.fields[0]]):new $(0,[A$(n.fields[0])]),t.tag===1)return new $(1,[t.fields[0]]);{let o,s;const i=e.State;return s=i==null?new $(1,["State missing"]):new $(0,[i]),o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[Lo(s.fields[0])]),o.tag===1?new $(1,[o.fields[0]]):new $(0,[new Vu(e.FullName.trim(),t.fields[0],Bu(e.PhoneNumber),Er(e.Email),new Ro(e.StreetAddress.trim(),void 0,e.Suburb.trim(),o.fields[0],e.Postcode.trim(),"AU"))])}}function ip(e,t){let n;const r=sp(e);return r.tag===1?new $(1,[r.fields[0]]):new $(0,[(n=r.fields[0],D(t)?se(n):Ef((o,s)=>o===0?n:s,t))])}function up(e){let t,n,r,o;return new ot(e.FullName,$l(e.Relationship),Bo(e.MobilePhone),ye(e.Email,""),ye((t=e.Address,t==null?void 0:t.AddressLine1),""),ye((n=e.Address,n==null?void 0:n.City),""),(r=e.Address,r==null?void 0:On(r.State)),ye((o=e.Address,o==null?void 0:o.Postcode),""))}class Je extends ne{constructor(t,n,r,o){super(),this.FormModel=t,this.CurrentAlert=n,this.SaveStatus=r,this.ExistingEmergencyContacts=o}}class we extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function dl(e){return`${e}/profiles/backend/emergency-contacts`}function ap(e,t){const n=N.Delay(()=>{const r=xr(t,vr(new Mn(0,[]),Cr(dl(e))));return N.Bind(r,o=>{const s=o;if(s.tag===1)return N.Return(new $(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const u=dh(i.responseText);return N.Return(u)}else return N.Return(new $(1,[""]))}})});return N.Bind(n,r=>{let o;const s=r;return o=s.tag===1?new $(1,[new nt(1,[])]):new $(0,[s.fields[0]]),N.Return(o)})}function lp(e,t,n){return N.Delay(()=>{let r;const o=xr(t,(r=xu(new xo(1,[$h(n)]),vr(new Mn(2,[]),Cr(dl(e)))),Do(vu("application/json"),r)));return N.Bind(o,s=>{const i=s;return i.tag===1?N.Return(new $(1,[i.fields[0]])):i.fields[0].statusCode===200?N.Return(new $(0,[void 0])):N.Return(new $(1,[new nt(0,[])]))})})}function cp(){return[new Je(op,void 0,new Q(0,[]),new Q(0,[])),ue()]}function fp(e,t){let n,r,o;switch(e.tag){case 1:{let s,i;switch(e.fields[0].tag){case 3:{s=1;break}case 0:{s=2;break}case 1:{s=3;break}default:e.fields[0].fields[0].tag===1?s=1:(s=0,i=e.fields[0].fields[0].fields[0])}switch(s){case 0:return[new Je((n=Sf(i),n==null?t.FormModel:up(n)),t.CurrentAlert,t.SaveStatus,new Q(2,[i])),ue()];case 1:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(3,[new Error(en(new nt(1,[])))])),ue()];case 2:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(0,[])),ue()];default:return[new Je(t.FormModel,t.CurrentAlert,t.SaveStatus,new Q(1,[])),ue()]}}case 2:{const s=new Je(t.FormModel,t.CurrentAlert,new Q(1,[]),t.ExistingEmergencyContacts),i=Tu(u=>ip(t.FormModel,u),(r=t.ExistingEmergencyContacts,r.tag===2?new $(0,[r.fields[0]]):new $(1,["Existing ec has not been loaded"])));return i.tag===1?[s,se(u=>{u(new we(3,[new $(1,[new nt(0,[])])]))})]:[s,Ga(u=>{Ua(u)},u=>lp(e.fields[0],e.fields[1],u),i.fields[0],u=>new we(3,[ze(()=>e.fields[2],u)]),u=>new we(3,[new $(1,[new nt(0,[])])]))]}case 3:return e.fields[0].tag===1?[new Je(t.FormModel,t.CurrentAlert,new Q(3,[new Error(en(e.fields[0].fields[0]))]),t.ExistingEmergencyContacts),(o=new we(4,[new Ir(1,[en(e.fields[0].fields[0])])]),se(s=>{s(o)}))]:(e.fields[0].fields[0](),[new Je(t.FormModel,t.CurrentAlert,new Q(2,[void 0]),t.ExistingEmergencyContacts),ue()]);case 4:return[new Je(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),ue()];case 5:return[new Je(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),ue()];default:return[new Je(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),ue()]}}function $p(e,t,n,r){let o;return C("div",B(v([["className",M(" ",["py-3","mb-2"])],(o=te(w(()=>{let s;return b(g(C("div",B(v([["className",M(" ",un)],(s=te(w(()=>{const i="EmergencyContact.Full name";return b(g(Le("Full name",e.FullName,A(J(t)(i)),v([new oe(0,[]),le(Go(e.FullName))]),ie(i,"Full name",n),u=>{r(new we(0,[a=>new ot(wt(u),a.Relationship,a.PhoneNumber,a.Email,a.StreetAddress,a.Suburb,a.State,a.Postcode)]))},new fe(1,[]),new ae("full-name"),[])),w(()=>{let u;const a="EmergencyContact.Relationship";return g(Un("Relationship",e.Relationship,fl(),A(J(t)(a)),v([new oe(0,[]),le((u=e.Relationship,u==null?new $(1,[new _e(0,[])]):new $(0,[u])))]),ie(a,"Relationship",n),l=>{r(new we(0,[f=>new ot(f.FullName,$l(l),f.PhoneNumber,f.Email,f.StreetAddress,f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("relationship")))}))})),["children",P.Children.toArray(Array.from(s))])])))),w(()=>{let i;return b(g(C("div",B(v([["className",M(" ",un)],(i=te(w(()=>{const u="EmergencyContact.Phone number";return b(g(ul("Phone number",e.PhoneNumber,A(J(t)(u)),v([new oe(0,[]),le(ll(e.PhoneNumber))]),ie(u,"Phone number",n),a=>{r(new we(0,[l=>new ot(l.FullName,l.Relationship,a,l.Email,l.StreetAddress,l.Suburb,l.State,l.Postcode)]))},new fe(1,[]),new ae("phone"))),w(()=>{const a="EmergencyContact.Email";return g(Le("Email",e.Email,A(J(t)(a)),se(le(nd(Er(e.Email)))),ie(a,"Email",n),l=>{r(new we(0,[f=>new ot(f.FullName,f.Relationship,f.PhoneNumber,l,f.StreetAddress,f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("email"),[]))}))})),["children",P.Children.toArray(Array.from(i))])])))),w(()=>{let u;return g(C("div",B(v([["className",M(" ",un)],(u=te(w(()=>{const a="EmergencyContact.Street address";return b(g(Le("Street address",e.StreetAddress,A(J(t)(a)),v([new oe(0,[]),le(Uu(e.StreetAddress))]),ie(a,"Street address",n),l=>{r(new we(0,[f=>new ot(f.FullName,f.Relationship,f.PhoneNumber,f.Email,wt(l),f.Suburb,f.State,f.Postcode)]))},new fe(1,[]),new ae("street-address"),[["autoComplete","street-address"]])),w(()=>{const l="EmergencyContact.Town/Suburb";return b(g(Le("Town/Suburb",e.Suburb,A(J(t)(l)),v([new oe(0,[]),le(zu(e.Suburb))]),ie(l,"Town/Suburb",n),f=>{r(new we(0,[c=>new ot(c.FullName,c.Relationship,c.PhoneNumber,c.Email,c.StreetAddress,wt(f),c.State,c.Postcode)]))},new fe(1,[]),new ae("town"),[["autoComplete","address-level2"]])),w(()=>{let f;const c="EmergencyContact.State";return b(g(Un("State",e.State,Ho(),A(J(t)(c)),v([new oe(0,[]),le((f=e.State,f==null?new $(1,[new _e(0,[])]):new $(0,[f])))]),ie(c,"State",n),h=>{r(new we(0,[d=>new ot(d.FullName,d.Relationship,d.PhoneNumber,d.Email,d.StreetAddress,d.Suburb,On(h),d.Postcode)]))},new fe(1,[]),new ae("state"))),w(()=>{const h="EmergencyContact.Postcode";return g(Le("Postcode",e.Postcode,A(J(t)(h)),v([new oe(0,[]),le(Wu(e.Postcode))]),ie(h,"Postcode",n),d=>{r(new we(0,[p=>new ot(p.FullName,p.Relationship,p.PhoneNumber,p.Email,p.StreetAddress,p.Suburb,p.State,d)]))},new fe(1,[]),new ae("postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))}))}))}))})),["children",P.Children.toArray(Array.from(u))])]))))}))}))})),["children",P.Children.toArray(Array.from(o))])])))}function dp(e){let t,n;const r=cp();n=Qa(()=>Ja(()=>r,fp,(l,f)=>{}),void 0,void 0);const o=n[0],s=n[1],i=rl(),u=i[3];Yo(Ra(()=>ap(e.backendUrl,e.accessToken),l=>{s(new we(1,[l]))}));const a=C("h3",{className:M(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return C("div",B(v([["className",M(" ",["font-sans"])],(t=te(w(()=>b(g(C("style",{children:[ol]})),w(()=>{const l=o.ExistingEmergencyContacts;switch(l.tag){case 2:return b(g(a),w(()=>b(g($p(o.FormModel,Bt(i[0]),u,s)),w(()=>b(o.CurrentAlert!=null?g(C(Pa,{alert:S(o.CurrentAlert),hideAlert:()=>{s(new we(5,[]))}})):uu(),w(()=>g(al(()=>{i[1]()?s(new we(2,[e.backendUrl,e.accessToken,()=>{At(f=>{ep(f)},$r(ji(document.querySelector("apollo-emergency-contacts-app"))))}])):s(new we(4,[new Ir(1,["There are some errors on the form, please correct them."])]))},o.SaveStatus,D(u)))))))));case 3:return b(g(a),w(()=>g(C("p",{children:[l.fields[0].message]}))));default:return g(C("div",{children:["Please wait..."]}))}})))),["children",P.Children.toArray(Array.from(t))])])))}function hp(){Au(e=>C(dp,e),"apollo-emergency-contacts-app")}np(),hp()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-personal-details-app",
3
- "version": "0.1.2214",
3
+ "version": "0.1.2217",
4
4
  "description": "Flare Personal Details Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -13,7 +13,8 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "preact": "^10.23.2",
16
- "preact-custom-element": "^4.3.0"
16
+ "preact-custom-element": "^4.3.0",
17
+ "use-sync-external-store": "^1.2.2"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@preact/preset-vite": "^2.9.0",