@flarehr/workflows-app 0.1.3252 → 0.1.3258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(){"use strict";var Rr,q,Ol,Cn,Dl,Nl,eo,to,no,ro,Rl,Br={},Bl=[],jh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ds=Array.isArray;function Wt(e,t){for(var n in t)e[n]=t[n];return e}function Ll(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Rr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Lr(e,o,r,s,null)}function Lr(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Ol,__i:-1,__u:0};return s==null&&q.vnode!=null&&q.vnode(i),i}function Vl(){return{current:null}}function Ie(e){return e.children}function ft(e,t){this.props=e,this.context=t}function Xn(e,t){if(t==null)return e.__?Xn(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"?Xn(e):null}function Fl(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 Fl(e)}}function so(e){(!e.__d&&(e.__d=!0)&&Cn.push(e)&&!Ns.__r++||Dl!==q.debounceRendering)&&((Dl=q.debounceRendering)||Nl)(Ns)}function Ns(){var e,t,n,r,s,i,o,a;for(Cn.sort(eo);e=Cn.shift();)e.__d&&(t=Cn.length,r=void 0,i=(s=(n=e).__v).__e,o=[],a=[],n.__P&&((r=Wt({},s)).__v=s.__v+1,q.vnode&&q.vnode(r),io(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[i]:null,o,i??Xn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Hl(o,r,a),r.__e!=i&&Fl(r)),Cn.length>t&&Cn.sort(eo));Ns.__r=0}function Wl(e,t,n,r,s,i,o,a,l,u,f){var c,p,h,$,g,w=r&&r.__k||Bl,v=t.length;for(n.__d=l,Uh(n,t,w),l=n.__d,c=0;c<v;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?Br:w[h.__i]||Br,h.__i=c,io(e,h,p,s,i,o,a,l,u,f),$=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&oo(p.ref,null,h),f.push(h.ref,h.__c||$,h)),g==null&&$!=null&&(g=$),65536&h.__u||p.__k===h.__k?l=jl(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:$&&(l=$.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function Uh(e,t,n){var r,s,i,o,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(o=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Lr(null,s,null,null,null):Ds(s)?Lr(Ie,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Lr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,i=null,(a=s.__i=zh(s,n,o,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a==o-1?c--:a==o+1?c++:(a>o?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Xn(i)),Gl(i,i))}function jl(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=jl(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Xn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function jt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ds(e)?e.some(function(n){jt(n,t)}):t.push(e)),t}function zh(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&s==l.key&&i===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&i===l.type)return a;a++}}return-1}function Ul(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||jh.test(t)?n:n+"px"}function Rs(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ul(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ul(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=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+i]=n,n?r?n.u=r.u:(n.u=to,e.addEventListener(t,i?ro:no,i)):e.removeEventListener(t,i?ro:no,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function zl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=to++;else if(t.t<n.u)return;return n(q.event?q.event(t):t)}}}function io(e,t,n,r,s,i,o,a,l,u){var f,c,p,h,$,g,w,v,S,N,K,Q,xe,rt,Re,Be,Xe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=q.__b)&&f(t);e:if(typeof Xe=="function")try{if(v=t.props,S="prototype"in Xe&&Xe.prototype.render,N=(f=Xe.contextType)&&r[f.__c],K=f?N?N.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(S?t.__c=c=new Xe(v,K):(t.__c=c=new ft(v,K),c.constructor=Xe,c.render=Gh),N&&N.sub(c),c.props=v,c.state||(c.state={}),c.context=K,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&Xe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Wt({},c.__s)),Wt(c.__s,Xe.getDerivedStateFromProps(v,c.__s))),h=c.props,$=c.state,c.__v=t,p)S&&Xe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&Xe.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,K),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,K)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Q=0;Q<c._sb.length;Q++)c.__h.push(c._sb[Q]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,K),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,$,g)})}if(c.context=K,c.props=v,c.__P=e,c.__e=!1,xe=q.__r,rt=0,S){for(c.state=c.__s,c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),Re=0;Re<c._sb.length;Re++)c.__h.push(c._sb[Re]);c._sb=[]}else do c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++rt<25);c.state=c.__s,c.getChildContext!=null&&(r=Wt(Wt({},r),c.getChildContext())),S&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,$)),Wl(e,Ds(Be=f!=null&&f.type===Ie&&f.key==null?f.props.children:f)?Be:[Be],t,n,r,s,i,o,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),w&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;q.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hh(n.__e,t,n,r,s,i,o,l,u);(f=q.diffed)&&f(t)}function Hl(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)oo(n[r],n[++r],n[++r]);q.__c&&q.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){q.__e(i,s.__v)}})}function Hh(e,t,n,r,s,i,o,a,l){var u,f,c,p,h,$,g,w=n.props,v=t.props,S=t.type;if(S==="svg"?s="http://www.w3.org/2000/svg":S==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(v);e=document.createElementNS(s,S,v.is&&v),a&&(q.__m&&q.__m(t,i),a=!1),i=null}if(S===null)w===v||a&&e.data===v||(e.data=v);else{if(i=i&&Rr.call(e.childNodes),w=n.props||Br,!a&&i!=null)for(w={},u=0;u<e.attributes.length;u++)w[(h=e.attributes[u]).name]=h.value;for(u in w)if(h=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Rs(e,u,null,h,s)}}for(u in v)h=v[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?$=h:u=="checked"?g=h:a&&typeof h!="function"||w[u]===h||Rs(e,u,h,w[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Wl(e,Ds(p)?p:[p],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&Xn(n,0),a,l),i!=null)for(u=i.length;u--;)Ll(i[u]);a||(u="value",S==="progress"&&$==null?e.removeAttribute("value"):$!==void 0&&($!==e[u]||S==="progress"&&!$||S==="option"&&$!==w[u])&&Rs(e,u,$,w[u],s),u="checked",g!==void 0&&g!==e[u]&&Rs(e,u,g,w[u],s))}return e}function oo(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){q.__e(s,n)}}function Gl(e,t,n){var r,s;if(q.unmount&&q.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||oo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){q.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Gl(r[s],t,n||typeof e.type!="function");n||Ll(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Gh(e,t,n){return this.constructor(e,n)}function Vr(e,t,n){var r,s,i,o;q.__&&q.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],io(t,e=(!r&&n||t).__k=d(Ie,null,[e]),s||Br,Br,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Rr.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),Hl(i,e,o)}function Yl(e,t){Vr(e,t,Yl)}function Yh(e,t,n){var r,s,i,o,a=Wt({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?s=t[i]:a[i]=t[i]===void 0&&o!==void 0?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Rr.call(arguments,2):n),Lr(e.type,a,r||e.key,s||e.ref,null)}function ql(e,t){var n={__c:t="__cC"+Rl++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&s.some(function(a){a.__e=!0,so(a)})},this.sub=function(o){s.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){s&&s.splice(s.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Rr=Bl.slice,q={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},Ol=0,ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Wt({},this.state),typeof e=="function"&&(e=e(Wt({},n),this.props)),e&&Wt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),so(this))},ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),so(this))},ft.prototype.render=Ie,Cn=[],Nl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,eo=function(e,t){return e.__v.__b-t.__v.__b},Ns.__r=0,to=0,no=zl(!1),ro=zl(!0),Rl=0;var Ut,de,ao,Jl,Kn=0,Zl=[],ve=q,Xl=ve.__b,Kl=ve.__r,Ql=ve.diffed,eu=ve.__c,tu=ve.unmount,nu=ve.__;function Sn(e,t){ve.__h&&ve.__h(de,e,Kn||t),Kn=0;var n=de.__H||(de.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qn(e){return Kn=1,Bs(su,e)}function Bs(e,t,n){var r=Sn(Ut++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):su(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};de.u=!0;var i=de.shouldComponentUpdate,o=de.componentWillUpdate;de.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,s(a,l,u),i=f}o&&o.call(this,a,l,u)},de.shouldComponentUpdate=s}return r.__N||r.__}function kn(e,t){var n=Sn(Ut++,3);!ve.__s&&$o(n.__H,t)&&(n.__=e,n.i=t,de.__H.__h.push(n))}function xn(e,t){var n=Sn(Ut++,4);!ve.__s&&$o(n.__H,t)&&(n.__=e,n.i=t,de.__h.push(n))}function lo(e){return Kn=5,Fr(function(){return{current:e}},[])}function uo(e,t,n){Kn=6,xn(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 Fr(e,t){var n=Sn(Ut++,7);return $o(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function co(e,t){return Kn=8,Fr(function(){return e},t)}function fo(e){var t=de.context[e.__c],n=Sn(Ut++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(de)),t.props.value):e.__}function ho(e,t){ve.useDebugValue&&ve.useDebugValue(t?t(e):e)}function qh(e){var t=Sn(Ut++,10),n=Qn();return t.__=e,de.componentDidCatch||(de.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function mo(){var e=Sn(Ut++,11);if(!e.__){for(var t=de.__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 Jh(){for(var e;e=Zl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ls),e.__H.__h.forEach(po),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){de=null,Xl&&Xl(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),nu&&nu(e,t)},ve.__r=function(e){Kl&&Kl(e),Ut=0;var t=(de=e.__c).__H;t&&(ao===de?(t.__h=[],de.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ls),t.__h.forEach(po),t.__h=[],Ut=0)),ao=de},ve.diffed=function(e){Ql&&Ql(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zl.push(t)!==1&&Jl===ve.requestAnimationFrame||((Jl=ve.requestAnimationFrame)||Zh)(Jh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ao=de=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ls),n.__h=n.__h.filter(function(r){return!r.__||po(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],ve.__e(r,n.__v)}}),eu&&eu(e,t)},ve.unmount=function(e){tu&&tu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ls(r)}catch(s){t=s}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var ru=typeof requestAnimationFrame=="function";function Zh(e){var t,n=function(){clearTimeout(r),ru&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ru&&(t=requestAnimationFrame(n))}function Ls(e){var t=de,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),de=t}function po(e){var t=de;e.__c=e.__(),de=t}function $o(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function su(e,t){return typeof t=="function"?t(e):t}function go(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 Vs(e,t){this.props=e,this.context=t}function iu(e,t){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!o:go(this.props,s)}function r(s){return this.shouldComponentUpdate=n,d(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Vs.prototype=new ft).isPureReactComponent=!0,Vs.prototype.shouldComponentUpdate=function(e,t){return go(this.props,e)||go(this.state,t)};var ou=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ou&&ou(e)};var Xh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function au(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var s=e(n,r);return n.ref=r,s}return t.$$typeof=Xh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var lu=function(e,t){return e==null?null:jt(jt(e).map(t))},uu={map:lu,forEach:lu,count:function(e){return e?jt(e).length:0},only:function(e){var t=jt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:jt},Kh=q.__e;q.__e=function(e,t,n,r){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Kh(e,t,n,r)};var cu=q.unmount;function fu(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=function(r,s){for(var i in s)r[i]=s[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return fu(r,t,n)})),e}function du(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return du(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 Wr(){this.__u=0,this.t=null,this.__b=null}function hu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function mu(e){var t,n,r;function s(i){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return d(n,i)}return s.displayName="Lazy",s.__f=!0,s}function er(){this.u=null,this.o=null}q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),cu&&cu(e)},(Wr.prototype=new ft).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=hu(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=du(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Wr.prototype.componentWillUnmount=function(){this.t=[]},Wr.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]=fu(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&d(Ie,null,e.fallback);return s&&(s.__u&=-33),[d(Ie,null,t.__a?null:e.children),s]};var pu=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 Qh(e){return this.getChildContext=function(){return e.context},e.children}function em(e){var t=this,n=e.i;t.componentWillUnmount=function(){Vr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Vr(d(Qh,{context:t.context},e.__v),t.l)}function $u(e,t){var n=d(em,{__v:e,i:t});return n.containerInfo=t,n}(er.prototype=new ft).__a=function(e){var t=this,n=hu(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),pu(t,e,r)):s()};n?n(i):i()}},er.prototype.render=function(e){this.u=null,this.o=new Map;var t=jt(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},er.prototype.componentDidUpdate=er.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){pu(e,n,t)})};var gu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,tm=/^(?: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]/,nm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rm=/[A-Z0-9]/g,sm=typeof document<"u",im=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Fs(e,t,n){return t.__k==null&&(t.textContent=""),Vr(e,t),typeof n=="function"&&n(),e?e.__c:null}function wu(e,t,n){return Yl(e,t),typeof n=="function"&&n(),e?e.__c:null}ft.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var yu=q.event;function om(){}function am(){return this.cancelBubble}function lm(){return this.defaultPrevented}q.event=function(e){return yu&&(e=yu(e)),e.persist=om,e.isPropagationStopped=am,e.isDefaultPrevented=lm,e.nativeEvent=e};var wo,um={enumerable:!1,configurable:!0,get:function(){return this.class}},_u=q.vnode;q.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},i=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||sm&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||im(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":nm.test(o)&&(o=l):l=o="oninput":i&&tm.test(o)?o=o.replace(rm,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=jt(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=jt(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",um)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=gu,_u&&_u(e)};var vu=q.__r;q.__r=function(e){vu&&vu(e),wo=e.__c};var bu=q.diffed;q.diffed=function(e){bu&&bu(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),wo=null};var Cu={ReactCurrentDispatcher:{current:{readContext:function(e){return wo.__n[e.__c].props.value},useCallback:co,useContext:fo,useDebugValue:ho,useDeferredValue:vo,useEffect:kn,useId:mo,useImperativeHandle:uo,useInsertionEffect:Co,useLayoutEffect:xn,useMemo:Fr,useReducer:Bs,useRef:lo,useState:Qn,useSyncExternalStore:So,useTransition:bo}}},Su="18.3.1";function ku(e){return d.bind(null,e)}function jr(e){return!!e&&e.$$typeof===gu}function xu(e){return jr(e)&&e.type===Ie}function Iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Au(e){return jr(e)?Yh.apply(null,arguments):e}function yo(e){return!!e.__k&&(Vr(null,e),!0)}function Eu(e){return e&&(e.base||e.nodeType===1&&e)||null}var Tu=function(e,t){return e(t)},Pu=function(e,t){return e(t)},Mu=Ie;function _o(e){e()}function vo(e){return e}function bo(){return[!1,_o]}var Co=xn,Ou=jr;function So(e,t){var n=t(),r=Qn({h:{__:n,v:t}}),s=r[0].h,i=r[1];return xn(function(){s.__=n,s.v=t,ko(s)&&i({h:s})},[e,n,t]),kn(function(){return ko(s)&&i({h:s}),e(function(){ko(s)&&i({h:s})})},[e]),n}function ko(e){var t,n,r=e.v,s=e.__;try{var i=r();return!((t=s)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Ws={useState:Qn,useId:mo,useReducer:Bs,useEffect:kn,useLayoutEffect:xn,useInsertionEffect:Co,useTransition:bo,useDeferredValue:vo,useSyncExternalStore:So,startTransition:_o,useRef:lo,useImperativeHandle:uo,useMemo:Fr,useCallback:co,useContext:fo,useDebugValue:ho,version:"18.3.1",Children:uu,render:Fs,hydrate:wu,unmountComponentAtNode:yo,createPortal:$u,createElement:d,createContext:ql,createFactory:ku,cloneElement:Au,createRef:Vl,Fragment:Ie,isValidElement:jr,isElement:Ou,isFragment:xu,isMemo:Iu,findDOMNode:Eu,Component:ft,PureComponent:Vs,memo:iu,forwardRef:au,flushSync:Pu,unstable_batchedUpdates:Tu,StrictMode:Mu,Suspense:Wr,SuspenseList:er,lazy:mu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cu};const cm=Object.freeze(Object.defineProperty({__proto__:null,Children:uu,Component:ft,Fragment:Ie,PureComponent:Vs,StrictMode:Mu,Suspense:Wr,SuspenseList:er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cu,cloneElement:Au,createContext:ql,createElement:d,createFactory:ku,createPortal:$u,createRef:Vl,default:Ws,findDOMNode:Eu,flushSync:Pu,forwardRef:au,hydrate:wu,isElement:Ou,isFragment:xu,isMemo:Iu,isValidElement:jr,lazy:mu,memo:iu,render:Fs,startTransition:_o,unmountComponentAtNode:yo,unstable_batchedUpdates:Tu,useCallback:co,useContext:fo,useDebugValue:ho,useDeferredValue:vo,useEffect:kn,useErrorBoundary:qh,useId:mo,useImperativeHandle:uo,useInsertionEffect:Co,useLayoutEffect:xn,useMemo:Fr,useReducer:Bs,useRef:lo,useState:Qn,useSyncExternalStore:So,useTransition:bo,version:Su},Symbol.toStringTag,{value:"Module"}));function gt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function fm(e){return e!=null&&typeof e.GetEnumerator=="function"}function dm(e){return e!=null&&typeof e.CompareTo=="function"}function hm(e){return e!=null&&typeof e.Equals=="function"}function Du(e){return e!=null&&typeof e.GetHashCode=="function"}function xo(e){return e!=null&&typeof e.Dispose=="function"}function oe(e){xo(e)&&e.Dispose()}function ee(){return null}function js(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 mm{constructor(t){this.iter=t,this.current=ee()}"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 me(e){return fm(e)?e.GetEnumerator():new mm(e[Symbol.iterator]())}function Ur(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 pm{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 ae(e,t){return e.toString(10).padStart(t,"0")}function $m(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Nu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function gm(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function ln(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class zt{static id(t){return zt.idMap.has(t)||zt.idMap.set(t,++zt.count),zt.idMap.get(t)}}zt.idMap=new WeakMap,zt.count=0;function Us(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function wt(e){return e*2654435761|0}function Ru(e){return Us(e.toString(32))}function zr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function wm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return wt(e);case"bigint":return Ru(e);case"string":return Us(e);default:return wt(zt.id(e))}}function ym(e){return Du(e)?e.GetHashCode():wm(e)}function _m(e){return e.getTime()}function vm(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ht(e[r]);return zr(n)}function Ht(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return wt(e);case"bigint":return Ru(e);case"string":return Us(e);default:{if(Du(e))return e.GetHashCode();if(gt(e))return vm(e);if(e instanceof Date)return _m(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ht(r));return zr(n)}else return wt(zt.id(e))}}}function Io(e){return ym(e)}function Ao(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 Bu(e,t){return Ao(e,t,O)}function bm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!O(e[n[s]],t[r[s]]))return!1;return!0}function O(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:hm(e)?e.Equals(t):gt(e)?gt(t)&&Bu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Lu(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&bm(e,t)}function Lu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Nu(e),r=t.getTime()+Nu(t)),n===r?0:n<r?-1:1}function zs(e,t){return e===t?0:e<t?-1:1}function Cm(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Vu(e,t){return Cm(e,t,dt)}function Sm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let s=0,i=0;s<n.length;s++){const o=n[s];if(o!==r[s])return o<r[s]?-1:1;if(i=dt(e[o],t[o]),i!==0)return i}return 0}function dt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:dm(e)?e.CompareTo(t):gt(e)?gt(t)?Vu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Lu(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Sm(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function km(e){gt(e)?e.splice(0):e.clear()}const Hs=new WeakMap;function te(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Hs.set(t,e),t}function Pt(e){return Hs.get(e)??(t=>n=>e(t,n))}function Eo(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Hs.set(t,e),t}function Gs(e){return Hs.get(e)??(t=>n=>r=>e(t,n,r))}function xm(e){let t=0,n="[";for(const r of e){if(t===0)n+=Mt(r);else if(t===100){n+="; ...";break}else n+="; "+Mt(r);t++}return n+"]"}function Mt(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 xm(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,i])=>s+" = "+Mt(i,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Im(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Mt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Mt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class R{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Im(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ht(n));return t.splice(0,0,wt(this.tag)),zr(t)}Equals(t){return this===t?!0:js(this,t)&&this.tag===t.tag?Bu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:js(this,t)?this.tag===t.tag?Vu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Am(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Em(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Mt(n)).join(`
3
- `)+" }"}function Tm(e){const t=Object.values(e).map(n=>Ht(n));return zr(t)}function Pm(e,t){if(e===t)return!0;if(js(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!O(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Mm(e,t){if(e===t)return 0;if(js(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=dt(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class L{toJSON(){return Am(this)}toString(){return Em(this)}GetHashCode(){return Tm(this)}Equals(t){return Pm(this,t)}CompareTo(t){return Mm(this,t)}}class Ke{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 Om{constructor(t){this.message=t}}function Dm(e){return e instanceof Om||e instanceof Error}function Nm(e){return e instanceof Promise}function Ys(e){return Dm(e)||Nm(e)?e:new Error(String(e))}const tr=Symbol("numeric");function Fu(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[tr])}function Rm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function To(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[tr]().multiply(t)}function qs(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[tr]().toFixed(t)}function Js(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[tr]().toPrecision(t)}function Zs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[tr]().toExponential(t)}function Xs(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[tr]().toHex()}class Bm{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Fe{constructor(t,n,r,s,i,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=i,this.cases=o,this.enumCases=a}toString(){return ge(this)}GetHashCode(){return Wu(this)}Equals(t){return Po(this,t)}}function it(e){return e.generics!=null?e.generics:[]}function Wu(e){const t=Us(e.fullname),n=it(e).map(Wu);return zr([t,...n])}function Po(e,t){return e.fullname===""?t.fullname===""&&Ao(Gr(e),Gr(t),([n,r],[s,i])=>n===s&&Po(r,i)):e.fullname===t.fullname&&Ao(it(e),it(t),Po)}function Gt(e,t,n,r){return new Fe(e,t,n,r)}function ue(e,t,n,r){return new Fe(e,t,n,void 0,r)}function Qe(...e){return new Fe("",void 0,void 0,void 0,()=>e)}function yt(e,t,n,r){const s=new Fe(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((o,a)=>new Bm(s,a,i[a],o))});return s}function Lm(...e){return new Fe("System.Tuple`"+e.length,e)}function Z(e){return new Fe("Microsoft.FSharp.Core.FSharpOption`1",[e])}function un(e){return new Fe("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Vm=new Fe("System.Object"),z=new Fe("System.String"),ht=new Fe("System.Boolean"),Ks=new Fe("System.Int32"),Fm=new Fe("System.Double");function nr(e){if(Array.isArray(e))return e[0];if(e instanceof Fe){const t=Hr(e);if(t!=null)return nr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ge(e){const t=Hr(e);return t!=null?ge(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ge(n)).join(",")+"]"}function ju(e){return Hr(e)!=null}function Hr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Uu(e){return e.generics!=null&&e.generics.length>0}function Mo(e){return e.enumCases!=null&&e.enumCases.length>0}function zu(e){return e.generics==null?e:new Fe(e.fullname,e.generics.map(()=>Vm))}function Hu(e){var t;return(t=e.generics)==null?void 0:t[0]}function rr(e){if(Mo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Wm(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 sr(e,t){const n=parseInt(t,10);return Wm(e,isNaN(n)?t:n)[1]}function Gu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Gr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Yu(e){if(Oo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function qu(e){return e instanceof Fe?e.cases!=null:e instanceof R}function Ju(e){return e instanceof Fe?e.fields!=null:e instanceof L}function Oo(e){return e.fullname.startsWith("System.Tuple")}function jm(e,t){const r=Gu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Zu(e){return e.fields==null?[]:e.fields}function Um(e,t){return e[t[0]]}function U3(e){return e}function zm(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 Hm(e,t){const n=Gr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,i],o)=>(r[s]=t[o],r),{})}function Gm(e,t){return e}class In{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ht(this.value)}Equals(t){return t==null?!1:O(this.value,t instanceof In?t.value:t)}CompareTo(t){return t==null?1:dt(this.value,t instanceof In?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof In?e.value:e}function Qs(e){return e instanceof In?e.value:e}function Ae(e){return e==null||e instanceof In?new In(e):e}function Xu(e){return e??void 0}function ei(e){return e==null?[]:[x(e)]}function Ee(e,t){return e!=null?x(e):t}function Ym(e,t){return e!=null?x(e):t()}function Ku(e,t){return e??t}function Le(e,t){return t!=null?Ae(e(x(t))):void 0}function cn(e,t){return t!=null?e(x(t)):void 0}const qm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Jm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xm=["January","February","March","April","May","June","July","August","September","October","November","December"];function ot(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function Qu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Km(e,t){let n=t;const r=e[t];let s="",i=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){i=!0;break}else if(o==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=o}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function Do(e,t,n){let r=0,s=0,i="";const o=n?An(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=ot(t,r,"d"),r+=s,s){case 1:i+=No(o);break;case 2:i+=ae(No(o),2);break;case 3:i+=qm[ic(o)];break;case 4:i+=Jm[ic(o)];break}break;case"f":if(s=ot(t,r,"f"),r+=s,s<=3){const w=10**(3-s);i+=ae(Math.floor(si(o)/w),s)}else s<=7&&(i+=(""+si(o)).padEnd(s,"0"));break;case"F":if(s=ot(t,r,"F"),r+=s,s<=3){const w=10**(3-s),v=Math.floor(si(o)/w);v!=0&&(i+=ae(v,s))}else if(s<=7){const w=si(o);w!=0&&(i+=ae(w,3))}break;case"g":s=ot(t,r,"g"),r+=s,s<=2&&(i+="A.D.");break;case"h":switch(s=ot(t,r,"h"),r+=s,s){case 1:i+=ri(o)%12;break;case 2:i+=ae(ri(o)%12,2);break}break;case"H":switch(s=ot(t,r,"H"),r+=s,s){case 1:i+=ri(o);break;case 2:i+=ae(ri(o),2);break}break;case"K":switch(s=ot(t,r,"K"),r+=s,s){case 1:switch(ec(o)){case 1:i+="Z";break;case 2:i+=ir(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=ot(t,r,"m"),r+=s,s){case 1:i+=rc(o);break;case 2:i+=ae(rc(o),2);break}break;case"M":switch(s=ot(t,r,"M"),r+=s,s){case 1:i+=Yr(o);break;case 2:i+=ae(Yr(o),2);break;case 3:i+=Zm[Yr(o)-1];break;case 4:i+=Xm[Yr(o)-1];break}break;case"s":switch(s=ot(t,r,"s"),r+=s,s){case 1:i+=sc(o);break;case 2:i+=ae(sc(o),2);break}break;case"t":switch(s=ot(t,r,"t"),r+=s,s){case 1:i+=o.getHours()<12?"A":"P";break;case 2:i+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(s=ot(t,r,"y"),r+=s,s){case 1:i+=o.getFullYear()%100;break;case 2:i+=ae(o.getFullYear()%100,2);break;case 3:i+=ae(o.getFullYear(),3);break;case 4:i+=ae(o.getFullYear(),4);break;case 5:i+=ae(o.getFullYear(),5);break}break;case"z":s=ot(t,r,"z"),r+=s;let l="";switch(ec(o)){case 1:l="+00:00";break;case 2:l=ir(o.getTimezoneOffset()*-6e4);break;case 0:l=ir(u1(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${ae(f,2)}`;break;default:i+=`${u}${ae(f,2)}:${ae(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,h]=Km(t,r);i+=p,r+=h;break;case"%":const $=Qu(t,r);if($>=0&&$!==37)r+=2,i+=Do(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=Qu(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ec(e){return e.kind||0}function ir(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ae(n,2)+":"+ae(r,2)}function ti(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 Qm(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ae(e.getFullYear(),4)+"-"+ae(e.getMonth()+1,2)+"-"+ae(e.getDate(),2)+"T"+ae(e.getHours(),2)+":"+ae(e.getMinutes(),2)+":"+ae(e.getSeconds(),2)+"."+ae(e.getMilliseconds(),3)+(n?ir(e.getTimezoneOffset()*-6e4):"")}}function e1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ir(t)}function t1(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," ")+ir(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ti(n,"first");case"T":case"t":return ti(n,"second");case"O":case"o":return e1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Do(n,t,!0)}function n1(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?ti(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ti(e,"second"):e.toLocaleTimeString();case"O":case"o":return Qm(e,n);default:throw new Error("Unrecognized Date print format")}else return Do(e,t,n)}function ni(e,t,n){return e.offset!=null?t1(e,t):n1(e,t)}function An(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function r1(){return An(-621355968e5,1)}function tc(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(s!=null){let i,o=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(s[4]!=null){if(s[1]!=null)i=new Date(s[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(s[1]!=null)i=new Date(s[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function s1(e,t=!1){const[n,r]=tc(e),s=r!=null?t&&r==="Z"?1:2:0;return An(n.getTime(),s)}function i1(e,t){try{return t.contents=s1(e),!0}catch{return!1}}function o1(e,t,n,r=0,s=0,i=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,s,i,o)):new Date(e,t-1,n,r,s,i,o);e<=99&&(a===1?l.setUTCFullYear(e,t-1,n):l.setFullYear(e,t-1,n));const u=l.getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");return An(u,a)}function a1(){return An(Date.now(),2)}function nc(){return c1(a1())}function l1(e){return e.kind===1?e:An(e.getTime(),1)}function u1(e){return e.kind===2?e:An(e.getTime(),2)}function c1(e){return o1(Ro(e),Yr(e),No(e),0,0,0,0,e.kind)}function No(e){return e.kind===1?e.getUTCDate():e.getDate()}function ri(e){return e.kind===1?e.getUTCHours():e.getHours()}function si(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function rc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Yr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function sc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ro(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function ic(e){return e.kind===1?e.getUTCDay():e.getDay()}function oc(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 ii(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function f1(e,t,n=0){return e.lastIndex=n,e.exec(t)}function ac(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,i=-1;for(;(s=e.exec(t))!=null;)s.index===i?e.lastIndex++:(i=s.index,r.push(s));return r}function d1(e,t,n,r,s=0){function i(){let o=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),o=n(a)}return o}if(typeof e=="string"){const o=e;e=oc(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,i);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(s),l=ac(e,a),u=ac.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const qr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Jr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,h1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function lc(e,t){return Rm(e,t)<0}function or(e,t,n){function r(i){return i===!0||i===1||i===3||i===5}function s(i){return i===4||i===5}return e==null?t==null?0:-1:t==null?1:s(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 m1(...e){switch(e.length){case 2:return or(e[0],e[1],!1);case 3:return or(e[0],e[1],e[2]);case 4:return or(e[0],e[1],e[2]===!0);case 5:return or(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return or(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return or(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 We(e){return{input:e,cont:p1(e)}}function uc(e,t){let n=0,r=0,s="";Jr.lastIndex=0;let i=Jr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;s+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=Jr.lastIndex,s+=dc(t[n++],a,l,u,f),Jr.lastIndex=r-1,i=Jr.exec(e)}return s+=e.substring(r).replace(/%%/g,"%"),s}function cc(e,t){return typeof t=="string"?e(t):t.cont(e)}function je(e){return cc(t=>t,e)}function fc(e){return cc(t=>{throw new Error(t)},e)}function dc(e,t,n,r,s){let i="";if(t=t||"",s=s||"",Fu(e))switch(s.toLowerCase()!=="x"&&(lc(e,0)?(e=To(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=qs(e,r);break;case"g":case"G":e=r!=null?Js(e,r):Js(e);break;case"e":case"E":e=r!=null?Zs(e,r):Zs(e);break;case"x":e=Xs(e);break;case"X":e=Xs(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ni(e):e=Mt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=Xr(e,n-i.length,l,a),e=i+e):e=Xr(i+e,n,l,a)}return e}function hc(e,t,n,r="",s=-1){return(...i)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,p,h]=l[0];let $=c;if(s>=0)$=s,s=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}o+=a[0],o+=dc(u,f,$,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):hc(e,a,l,o,s)}}function p1(e){return t=>{qr.lastIndex=0;const n=[],r=[];let s=0,i=qr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(s,o).replace(/%%/g,"%")),r.push(i),s=qr.lastIndex,qr.lastIndex-=1,i=qr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),hc(t,n,r))}}function mc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(h1,(r,s,i,o,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Fu(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=qs(u,a);break;case"g":case"G":u=a!=null?Js(u,a):Js(u);break;case"e":case"E":u=a!=null?Zs(u,a):Zs(u);break;case"p":case"P":a=a??2,u=qs(To(u,100),a)+" %";break;case"d":case"D":u=a!=null?Bo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Bo(Xs(u),a,"0"):Xs(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{lc(u,0)&&(u=To(u,-1),f="-"),h=h==null?"":h.substring(1),u=qs(u,Math.max(h.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=Bo($,w,"0");const v=h.replace(/#+$/,"").length;if(v>g.length?g=$1(g,v,"0"):v<g.length&&(g=g.substring(0,v)+g.substring(v).replace(/0+$/,"")),p.indexOf(",")>0){const S=$.length%3,N=Math.floor($.length/3);let K=S>0?$.substr(0,S)+(N>0?",":""):"";for(let Q=0;Q<N;Q++)K+=$.substr(S+Q*3,3)+(Q<N-1?",":"");$=K}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=ni(u,l||o):u=Mt(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Xr(String(u),Math.abs(i)," ",i<0)),u})}function pc(e){return typeof e!="string"||e.length===0}function Zr(e){return typeof e!="string"||/^\s*$/.test(e)}function ye(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Xr(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function Bo(e,t,n){return Xr(e,t,n)}function $1(e,t,n){return Xr(e,t,n,!0)}function $c(e,t,n){return e.replace(new RegExp(ii(t),"g"),n)}function oi(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ii),t=t.length>0?t:["\\s"];const o=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&o.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&o.length+1===n?(o.push(i?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function g1(e,...t){if(t.length===0)return e.trim();const n="["+ii(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function w1(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+ii(t.join(""))+"]+$"),"")}function Lo(e,t){return t.split("").filter(n=>e(n)).join("")}function y1(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 _1(e){throw new Error(e)}function gc(e,t){return new Array(t)}function wc(e,t){return e>t?e:t}const Vo="Collection was empty.",v1="An index satisfying the predicate was not found in the collection.";function ai(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function ar(e,t,n){const r=t.length|0,s=gc(n,r);for(let i=0;i<=r-1;i++)_t(s,i,e(ne(i,t)));return s}function b1(e,t){const n=gc(t,1);return _t(n,0,e),n}function C1(e){return e.slice().reverse()}function S1(e,t){return t.find(e)}function k1(e,t){return(r=>{e:for(;;){const s=r;if(s<0)return;if(e(ne(s,t)))return s;r=s-1;continue e}})(t.length-1)}function x1(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const i=e(ne(s,t));if(i!=null){const o=x(i);r.push(o)}}return O(n,ee())?r:ar(s=>s,r,n)}function li(e,t,n){const r=e;return n.reduce(r,t)}function Fo(e,t,n){return t==null}function ne(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function _t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function yc(e,t){if(!(e<0||e>=t.length))return Ae(t[e])}function _c(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class Ue extends L{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ye("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(O(o.head,a.head)){s=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,i)=>{e:for(;;){const o=r,a=s,l=i,u=l.tail;if(u!=null){const f=x(u);if(o>18)return a|0;r=o+1,s=(a<<1)+Ht(l.head)+631*o,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),p=dt(o.head,a.head)|0;if(p===0){s=f,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return A1(this)}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return me(this)}}class I1{constructor(t){this.xs=t,this.it=this.xs,this.current=ee()}"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=x(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=ee()}Dispose(){}}function A1(e){return new I1(e)}function Te(){return new Ue(ee(),void 0)}function Kr(e,t){return new Ue(e,t)}function Ot(e){return e.tail==null}function vc(e){return((n,r)=>{e:for(;;){const s=n,o=r.tail;if(o!=null){n=s+1,r=x(o);continue e}else return s|0}})(0,e)|0}function fn(e){if(e.tail!=null)return e.head;throw new Error(Vo+"\\nParameter name: list")}function Ve(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Vo+"\\nParameter name: list")}function bc(){throw new Error(v1)}function ce(){return Te()}function et(e,t){return Kr(e,t)}function A(e){return Kr(e,Te())}function M(e){return Ot(e)}function lr(e){return vc(e)}function k(e){return fn(e)}function P(e){return Ve(e)}function E1(e){e:for(;;){const t=e;if(Ot(t))return;{const n=Ve(t);if(Ot(n))return Ae(fn(t));e=n;continue e}}}function T1(e){const t=E1(e);if(t==null)throw new Error(Vo);return x(t)}function ur(e){const t=vc(e)|0,n=ai(new Array(t),0,t,null);return((s,i)=>{e:for(;;){const o=s,a=i;if(!Ot(a)){_t(n,o,fn(a)),s=o+1,i=Ve(a);continue e}break}})(0,e),n}function Dt(e,t,n){let r=t,s=n;for(;!Ot(s);)r=e(r,k(s)),s=Ve(s);return r}function cr(e){return Dt((t,n)=>Kr(n,t),Te(),e)}function P1(e,t,n){return _c(e,ur(t),n)}function Qr(e,t){Dt((n,r)=>{e(r)},void 0,t)}function be(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Kr(ne(r,e),n);return n}function _(e){return be(e,Te())}function M1(e){let t,n;if(gt(e))return _(e);if(e instanceof Ue)return e;{const r=Te();let s=r;const i=me(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new Ue(l,void 0),t.tail=n,n)}}finally{oe(i)}const o=s,a=Te();return o.tail=a,Ve(r)}}function Wo(e){const t=Te();let n=t;const r=o=>{n=Dt((a,l)=>{const u=new Ue(l,void 0);return a.tail=u,u},n,o)};if(gt(e))e.forEach(r);else if(e instanceof Ue)Qr(r,e);else{const o=me(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{oe(o)}}const s=n,i=Te();return s.tail=i,Ve(t)}function vt(e,t){return Dt((n,r)=>Kr(r,n),t,cr(e))}function O1(e,t){let n,r;const s=Te();let i=s,o=t;for(;!Ot(o);){let u=e(fn(o));for(;!Ot(u);)i=(n=i,r=new Ue(fn(u),void 0),n.tail=r,r),u=Ve(u);o=Ve(o)}const a=i,l=Te();return a.tail=l,Ve(s)}function tt(e,t){const n=Te(),r=Dt((i,o)=>{const a=new Ue(e(o),void 0);return i.tail=a,a},n,t),s=Te();return r.tail=s,Ve(n)}function D1(e,t){return(r=>{e:for(;;){const s=r;if(Ot(s))return;{const i=e(fn(s));if(i==null){r=Ve(s);continue e}else return i}}})(t)}function es(e,t){return D1(n=>e(n)?Ae(n):void 0,t)}function ui(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(e(fn(o)))return i;r=i+1,s=Ve(o);continue e}})(0,t)}function N1(e,t){const n=ui(e,t);return n==null?(bc(),-1):x(n)|0}function R1(e,t){return k1(e,ur(t))}function B1(e,t){const n=R1(e,t);return n==null?(bc(),-1):x(n)|0}function L1(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(i===e)return Ae(fn(o));r=i+1,s=Ve(o);continue e}})(0,t)}function jo(e,t){const n=Te(),r=Dt((i,o)=>{if(e(o)){const a=new Ue(o,void 0);return i.tail=a,a}else return i},n,t),s=Te();return r.tail=s,Ve(n)}function V1(e,t){const n=Te(),r=Te(),s=n,i=Dt((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new Ue(u,void 0),p.tail=f,f),h]:[p,(c=new Ue(u,void 0),h.tail=c,c)]},[s,r],t),o=Te();i[0].tail=o;const a=Te();return i[1].tail=a,[Ve(s),Ve(r)]}function F1(e,t){const n=Te(),r=Dt((i,o)=>{const a=e(o);if(a==null)return i;{const l=new Ue(x(a),void 0);return i.tail=l,l}},n,t),s=Te();return r.tail=s,Ve(n)}function W1(e,t,n){return ui(r=>n.Equals(e,r),t)!=null}function Cc(e,t){return ui(e,t)!=null}const j1="Enumeration already finished.",U1="Enumeration has not started. Call MoveNext.",Sc="The input sequence has an insufficient number of elements.",z1="Reset is not supported on this enumerator.";function H1(){throw new Error(z1)}function Uo(){throw new Error(U1)}function zo(){throw new Error(j1)}class G1{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=me(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Mt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{oe(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Y1(e){return new G1(e)}class q1{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"(){H1()}Dispose(){this.dispose()}}function ci(e,t,n){return new q1(e,t,n)}function J1(e){let t,n,r=!1,s=!1,i;const o=()=>{if(s=!0,n!=null){const a=x(n);try{oe(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{oe(a)}finally{t=void 0}}};return ci(()=>(r?s&&zo():Uo(),i!=null?x(i):zo()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Ae(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{oe(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),me(a)):(o(),l=!1)}else t=me(e)}return x(l)}},()=>{s||o()})}function Z1(e,t){return ci(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{oe(t)}finally{}})}function kc(e,t,n){let r=!1,s,i=Ae(e());const o=()=>{if(i!=null){const l=x(i);try{n(l)}finally{i=void 0}}},a=()=>{try{o()}finally{s=void 0}};return ci(()=>(r||Uo(),s!=null?x(s):zo()),()=>{if(r||(r=!0),i!=null){const l=x(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},o)}function X1(e,t){let n,r=t;return ci(()=>{if(n!=null){const s=x(n)[0];return x(n)[1],s}else return Uo()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function K1(e,t){t==null&&_1(e)}function fr(e){return Y1(e)}function dn(e){return K1("source",e),me(e)}function I(e){return fr(()=>me(e()))}function Ho(e){return fr(()=>J1(e))}function Q1(e,t){return fr(()=>X1(e,t))}function dr(){return I(()=>new Array(0))}function y(e){return I(()=>b1(e))}function z3(e){return e}function Go(e){return e instanceof Ue?ur(e):Array.from(e)}function pe(e){return gt(e)?_(e):e instanceof Ue?e:M1(e)}function ep(e,t,n){return fr(()=>kc(e,t,n))}function xc(e,t,n){return fr(()=>{let r=-1;return kc(e,s=>(r=r+1|0,t(r,s)),n)})}function V(e,t){return Ho([e,t])}function tp(e,t,n){const r=dn(t);try{const s=dn(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:a?-1:0)|0}finally{oe(s)}}finally{oe(r)}}function En(e,t,n){const r=dn(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{oe(r)}}function ts(e,t,n){const r=dn(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{oe(r)}}function Tn(e,t){ts((n,r)=>{e(r)},void 0,t)}function np(e,t){ts((n,r)=>(e(n,r),n+1|0),0,t)}function ke(e,t){return ep(()=>dn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function rp(e,t){return xc(()=>dn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function sp(e){return I(()=>C1(Go(e)))}function ip(e,t){return fr(()=>{const n=dn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Sc+"\\nParameter name: source");return Z1(()=>{},n)}catch(r){throw oe(n),r}})}function op(e,t){return xc(()=>dn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ae(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Sc+"\\nParameter name: source")}else return},n=>{oe(n)})}function Ic(e,t){return I(()=>Ho(ke(e,t)))}const Pn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Yo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function ap(e,t){switch(t){case Pn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Pn.SnakeCase:return Yo(e,"_");case Pn.SnakeCaseAllCaps:return Yo(e,"_").toUpperCase();case Pn.KebabCase:return Yo(e,"-");case Pn.None:default:return e}}function bt(e,t=Pn.None){const n={},r=t;function s(o){throw new Error("Cannot infer key and value of "+String(o))}function i(o,a,l){o=ap(o,a),n[o]=l}for(let o of e){let a=Pn.None;if(o==null&&s(o),o instanceof R){const l=o.cases()[o.tag];o=o.fields.length===0?l:[l].concat(o.fields),a=r}if(Array.isArray(o))switch(o.length){case 0:s(o);break;case 1:i(o[0],a,!0);break;case 2:const l=o[1];i(o[0],a,l);break;default:i(o[0],a,o.slice(1))}else typeof o=="string"?i(o,a,!0):s(o)}return n}function lp(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function ns(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const up=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M9 24H30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 17L30 24L23 31",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 9H35C35.7956 9 36.5587 9.31607 37.1213 9.87868C37.6839 10.4413 38 11.2044 38 12V36C38 36.7956 37.6839 37.5587 37.1213 38.1213C36.5587 38.6839 35.7956 39 35 39H23",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),cp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M18 18.782V15C18.0047 13.4102 18.6384 11.8868 19.7626 10.7626C20.8868 9.63841 22.4102 9.00475 24 9C25.5898 9.00475 27.1132 9.63841 28.2374 10.7626C29.3616 11.8868 29.9953 13.4102 30 15V18.783",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C30.0751 39 35 34.0751 35 28C35 21.9249 30.0751 17 24 17C17.9249 17 13 21.9249 13 28C13 34.0751 17.9249 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30V33",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30C25.6569 30 27 28.6569 27 27C27 25.3431 25.6569 24 24 24C22.3431 24 21 25.3431 21 27C21 28.6569 22.3431 30 24 30Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 9V22",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 19H32.235C32.7699 19.0001 33.2951 19.1432 33.7561 19.4145C34.2171 19.6858 34.5972 20.0754 34.857 20.543L39 28V35C39 35.7956 38.6839 36.5587 38.1213 37.1213C37.5587 37.6839 36.7956 38 36 38H12C11.2044 38 10.4413 37.6839 9.87868 37.1213C9.31607 36.5587 9 35.7956 9 35V28L13.143 20.543C13.4028 20.0754 13.7829 19.6858 14.2439 19.4145C14.7049 19.1432 15.2301 19.0001 15.765 19H16",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M29 17L24 22L19 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M39 28H29V31H19V28H9",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 18V24H18",stroke:"#212121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 39C35.866 39 39 35.866 39 32C39 28.134 35.866 25 32 25C28.134 25 25 28.134 25 32C25 35.866 28.134 39 32 39Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M21.9816 35.8395C21.8897 36.3783 21.3771 36.7444 20.8469 36.6118C18.8631 36.1159 17.0195 35.1576 15.4695 33.8097C13.6699 32.2448 12.3355 30.215 11.6122 27.9425C10.889 25.67 10.8048 23.2424 11.3689 20.9252C11.9329 18.6081 13.1235 16.4907 14.8103 14.8049C16.4971 13.1191 18.6151 11.9298 20.9326 11.3671C23.2501 10.8044 25.6777 10.89 27.9498 11.6145C30.2218 12.3391 32.2508 13.6747 33.8147 15.4752C35.1617 17.026 36.1189 18.8702 36.6137 20.8543C36.7459 21.3846 36.3795 21.8969 35.8407 21.9885C35.3018 22.08 34.7952 21.7157 34.6557 21.1873C34.2264 19.5608 33.4291 18.0497 32.3203 16.7731C30.9946 15.2468 29.2745 14.1146 27.3484 13.5003C25.4222 12.8861 23.3643 12.8135 21.3996 13.2905C19.435 13.7675 17.6395 14.7758 16.2095 16.2049C14.7795 17.6341 13.7702 19.429 13.292 21.3934C12.8139 23.3577 12.8852 25.4158 13.4984 27.3422C14.1115 29.2687 15.2427 30.9895 16.7683 32.3161C18.0442 33.4256 19.5549 34.2238 21.181 34.654C21.7094 34.7938 22.0734 35.3007 21.9816 35.8395Z",fill:"#111827"}),d("line",{x1:32,y1:29,x2:32,y2:32,stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),d("circle",{cx:32,cy:35,r:1,fill:"currentColor"})),hp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),d("g",{clipPath:"url(#clip0_153_10600)"},d("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",fill:"#DC2626"}),d("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_153_10600"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"})))),mp=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("g",{clipPath:"url(#clip0_261_2289)"},d("path",{d:"M17 25L21 29L31 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C32.2843 39 39 32.2843 39 24C39 15.7157 32.2843 9 24 9C15.7157 9 9 15.7157 9 24C9 32.2843 15.7157 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_261_2289"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"}))));function hr(e){return pe(I(()=>V(y(["className","text-primary-base"]),I(()=>e))))}function fi(e){const t=bt(hr(e),1);return d(up,t)}function pp(e){const t=bt(hr(e),1);return d(cp,t)}function $p(e){const t=bt(hr(e),1);return d(fp,t)}function gp(e){const t=bt(hr(e),1);return d(dp,t)}function wp(e){const t=bt(hr(e),1);return d(hp,t)}function qo(e){const t=bt(hr(e),1);return d(mp,t)}var Jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Jo||(Jo={}));function yp(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Ac(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 _p(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 vp(e,t){if(t&Jo.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 bp(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,i,o]=s;if(n=n||vp(i,t),!_p(n).test(o))return yp(s,n)}return null}function Zo(e,t,n,r,s){const i=bp(e,t,s);if(i!=null){let o=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(o)){const[a,l]=Ac(!0,r);!n&&i.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=Ac(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function mr(e,t,n,r,s){try{return s.contents=Zo(e,t,n,r),!0}catch{return!1}}const b=Ws,Cp=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M21.6004 11.9999C21.6004 17.3018 17.3023 21.5999 12.0004 21.5999C6.69846 21.5999 2.40039 17.3018 2.40039 11.9999C2.40039 6.69797 6.69846 2.3999 12.0004 2.3999C17.3023 2.3999 21.6004 6.69797 21.6004 11.9999ZM4.7973 11.9999C4.7973 15.9781 8.02224 19.203 12.0004 19.203C15.9785 19.203 19.2035 15.9781 19.2035 11.9999C19.2035 8.02175 15.9785 4.79681 12.0004 4.79681C8.02224 4.79681 4.7973 8.02175 4.7973 11.9999Z",fill:"white",fillOpacity:.3}),d("path",{d:"M12.0004 3.5999C12.0004 2.93716 12.5397 2.39218 13.1973 2.47481C14.0467 2.58154 14.8799 2.80166 15.6742 3.13066C16.8389 3.6131 17.8972 4.32024 18.7886 5.21168C19.6801 6.10312 20.3872 7.16142 20.8696 8.32614C21.1986 9.12042 21.4188 9.95357 21.5255 10.803C21.6081 11.4606 21.0631 11.9999 20.4004 11.9999V11.9999C19.7377 11.9999 19.2106 11.459 19.1006 10.8054C19.0107 10.2712 18.8606 9.74748 18.6523 9.24458C18.2905 8.37104 17.7601 7.57732 17.0916 6.90873C16.423 6.24015 15.6293 5.7098 14.7557 5.34797C14.2528 5.13966 13.7291 4.98955 13.1949 4.89967C12.5413 4.78973 12.0004 4.26264 12.0004 3.5999V3.5999Z",fill:"white"})),Sp=e=>d("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 48 48",fill:"none",...e},d("g",{clipPath:"url(#clip0_389_3293)"},d("path",{d:"M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24ZM2.99705 24C2.99705 35.5996 12.4004 45.0029 24 45.0029C35.5996 45.0029 45.0029 35.5996 45.0029 24C45.0029 12.4004 35.5996 2.99705 24 2.99705C12.4004 2.99705 2.99705 12.4004 2.99705 24Z",fill:"currentColor",fillOpacity:.3}),d("path",{d:"M24 1.5C24 0.671573 24.6722 -0.00488373 25.499 0.0468592C28.138 0.212012 30.7352 0.812387 33.1844 1.82689C36.0962 3.033 38.742 4.80083 40.9706 7.02944C43.1992 9.25805 44.967 11.9038 46.1731 14.8156C47.1876 17.2648 47.788 19.862 47.9531 22.501C48.0049 23.3278 47.3284 24 46.5 24C45.6716 24 45.0056 23.3276 44.9465 22.5013C44.7858 20.2565 44.2652 18.0488 43.4015 15.9637C42.3461 13.4158 40.7993 11.1008 38.8492 9.15076C36.8992 7.20073 34.5842 5.65388 32.0364 4.59853C29.9512 3.73482 27.7435 3.21416 25.4987 3.05355C24.6724 2.99443 24 2.32843 24 1.5Z",fill:"currentColor"})),d("defs",null,d("clipPath",{id:"clip0_389_3293"},d("rect",{width:48,height:48,fill:"white"}))));function kp(e){const t=bt(e,1);return d(Cp,t)}function Ec(e){const t=bt(e,1);return d(Sp,t)}function hn(e){return d("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function rs(e){let t;const n=cn(s=>s.Phone,e.Support),r=cn(s=>s.Email,e.Support);return d("p",C(_([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=pe(I(()=>V(y(d("span",{children:[`Need help? Contact ${Ee(e.CompanyName,"your employer")}`]})),I(()=>V(n==null?r==null?y(d("span",{children:[" for assistance"]})):V(y(d("span",{children:[" at "]})),I(()=>{let s;return V((s=n,s==null?y(ee()):y(d("span",{children:[`${s}`]}))),I(()=>V(n!=null&&r!=null?y(d("span",{children:[" or "]})):y(ee()),I(()=>{const i=r;if(i==null)return y(ee());{const o=i;return y(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):V(y(d("span",{children:[" at "]})),I(()=>{let s;return V((s=n,s==null?y(ee()):y(d("span",{children:[`${s}`]}))),I(()=>V(n!=null&&r!=null?y(d("span",{children:[" or "]})):y(ee()),I(()=>{const i=r;if(i==null)return y(ee());{const o=i;return y(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),I(()=>y(d("span",{children:["."]})))))))),["children",b.Children.toArray(Array.from(t))])])))}function Xo(e,t,n,r){let s;return d("button",C(_([["className",`w-full sm:w-[240px] ${n?"bg-primary-dark":"bg-primary-base"} text-primary-text font-semibold text-base rounded-md flex items-center justify-center h-[42px] hover:bg-primary-hover ${Ee(e,"")}`],["type","button"],["onClick",i=>{t()}],["disabled",n],(s=pe(I(()=>n?y(kp([["className","animate-spin"]])):r)),["children",b.Children.toArray(Array.from(s))])])))}const xp=Ec([["className","text-primary-base animate-spin"]]),Ip=e=>{kn(()=>{const t=e();return()=>{t.Dispose()}})},Ap=(e,t)=>{kn(()=>{const n=e();return()=>{n.Dispose()}},t)},Ep=e=>{xn(()=>{const t=e();return()=>{t.Dispose()}})},Tp=Ip,Tc=Ap,Pp=Ep;function Mp(e,t,n,r){const s=b.memo(e,te(Ee(Le(Pt,n),ee())));return Tn(i=>{e.displayName=i},ei(t)),i=>{const o=Op(r,i);return b.createElement(s,o)}}function Op(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function di(e){return{Dispose(){e()}}}function Dp(e){return b.useState(e)}function Np(e){Tp(e)}function Ko(e,t){Tc(e,t)}function Rp(e){Pp(t=>(e(),di(()=>{})))}function pr(e){const t=b.useRef(!1);Qo(()=>{t.current||(t.current=!0,e())},[])}function Bp(e){const t=b.useRef(void 0),n=b.useRef(!1),r=b.useRef(!1);n.current&&(r.current=!0),Ko(()=>{let s;return n.current?s=void 0:(n.current=!0,t.current=Ae(e()),s=r.current?t.current:void 0),{Dispose(){Tn(i=>{oe(i)},ei(s))}}},[])}function Qo(e,t){Tc(n=>(e(),di(()=>{})),t)}function Lp(e,t){const n=Ee(t,[]);return b.useCallback(e,n)}function Pc(e){return b.useRef(e)}function Vp(e,t,n){return Mp(e,void 0,Qs(n),Qs(t))}function Fp(e){const t=Pc(e),n=Lp(r=>t.current(r),[]);return Rp(()=>{t.current=e}),n}function hi(e){return b.useState(e)}function mi(e,t,n){const r=[wp([]),hn(e),d("p",{className:"text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8",children:t}),Ee(n,ee())];return d(Ie,{},...r)}function ea(e,t,n){return mi(e,t,Le(r=>{let s;return d("div",C(_([["className","mt-8"],(s=[rs(r)],["children",b.Children.toArray(Array.from(s))])])))},n))}function Wp(e){let t;const n=e.reissueMagicLink,r=hi(!1);return mi("Too many Invalid Codes","We’ve temporarily locked mobile authentication for your account because you made too many attempts with an invalid security code.",d("div",C(_([["className","mt-1 sm:mt-8 text-base leading-7 text-gray-900 whitespace-pre-wrap"],(t=[d("span",{children:["Please wait 30 minutes before trying again, or "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:i=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",b.Children.toArray(Array.from(t))])]))))}function jp(){return mi("You don’t have access","It seems that you’re not authorised to access our application. If you believe this is an error, please contact your employer for assistance.",void 0)}function Mc(e){return ea("That link doesn’t look right","It looks like the link is incorrect or incomplete. We recommend going back to your invitation email and trying again.",e)}function Up(e){return ea("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function zp(e){return ea("Invite expired","Your invite has now expired and you no longer have access.",e)}function ta(){return mi("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const Hp="workflows-app",na="fade-in",ra=d("div",C(_([["className","w-full sm:max-w-[640px] mt-10 sm:mt-14 text-xs text-gray-500 text-center whitespace-pre-wrap space-y-4"],(()=>{let e,t;const n=[(e=_([(t="Flare provides workplace solutions to Australian businesses and their employees. All information collected is treated in accordance with our ",d("span",{children:[t]})),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/security",target:"_blank",rel:"noreferrer",children:"security standards"}),d("span",{children:[" and "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${Ro(nc())} Flare. ABN 46 607 120 892.`]})];return["children",b.Children.toArray(Array.from(n))]})()])));function Gp(){let e,t;return d("div",C(_([["className",ye(" ",[na,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",C(_([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[Ec([["className","h-12 w-12 text-primary-base animate-spin"]]),d("h1",{className:"mt-4 font-bold text-2xl leading-7 sm:text-3xl text-gray-900",children:"Authenticating your account"}),d("p",{className:"mt-6 sm:mt-8 text-lg leading-7 text-gray-900",children:"This may take a few seconds, please don’t close this window."})],["children",b.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:b.Children.toArray([ra])})],["children",b.Children.toArray(Array.from(e))])])))}const Yp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Oc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,qp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Me(e){function t(r){return r.replace(Oc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Yp.test(n))return g1(n,"{","}","(",")");if(Oc.test(n))return t(n);if(qp.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 Jp(e,t){try{return t.contents=Me(e),!0}catch{return!1}}class Zp{constructor(t,n){const r=new Ke(ee());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const s=me(t);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();sa(r.contents,i[0],i[1])}}finally{oe(s)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return me(this)}GetEnumerator(){return me(Ho(this.hashMap.values()))}[Symbol.iterator](){return Ur(me(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){sa(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Dc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=pi(this,t[0]);let s;switch(r!=null&&O(x(r)[1],t[1])?(s=0,x(r)):s=1,s){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){np((s,i)=>{_t(t,n+s,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Nc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=pi(n,t[0]);return r!=null?(O(x(r)[1],t[1])&&ia(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){sa(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Lc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Rc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Bc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Go(I(()=>ke(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ia(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const s=pi(this,t);if(s!=null){const i=x(s);return n.contents=i[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Go(I(()=>ke(n=>n[1],t)))}get size(){return Nc(this)|0}clear(){Dc(this)}delete(t){return ia(this,t)}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return Rc(this,t)}has(t){return Lc(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){const r=this;return Bc(r,t,n),r}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function ss(e,t){const n=e.comparer.GetHashCode(t)|0;let r,s=ee();return r=[lp(e.hashMap,n,new Ke(()=>s,i=>{s=i})),s],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i[0]))]:[!1,n,-1]}function pi(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ns(e.hashMap,n[1])[n[2]];default:return}}function Dc(e){e.hashMap.clear()}function Nc(e){let t=0,n=me(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{oe(n)}return t|0}function Rc(e,t){const n=pi(e,t);if(n!=null)return x(n)[1];throw new Error("The item was not found in collection")}function Bc(e,t,n){const r=ss(e,t);r[0]?r[2]>-1?ns(e.hashMap,r[1])[r[2]]=[t,n]:ns(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function sa(e,t,n){const r=ss(e,t);if(r[0]){if(r[2]>-1)throw new Error(mc("An item with the same key has already been added. Key: {0}",t));ns(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Lc(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ia(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ns(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Xp(e){return new m(0,[e])}function Vc(e){return new m(1,[e])}class m extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ct(e,t){return t.tag===0?Xp(e(t.fields[0])):Vc(t.fields[0])}function Fc(e,t){return t.tag===0?e(t.fields[0]):Vc(t.fields[0])}const Kp="#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ƒ£ē︳𐀡%𐀡",Qp="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 e$(){const t=[...Kp].map(i=>(i.codePointAt(0)??0)-35),n=[...Qp].map(i=>(i.codePointAt(0)??0)-35),r=new Uint32Array(t),s=new Uint8Array(n);for(let i=1;i<r.length;++i)r[i]+=r[i-1];return i=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(i<u)o=l;else if(i===u){o=a=l;break}else u<i&&(a=l)}return s[a]}}const t$=256,n$=e$();function r$(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const oa=e=>i$(e,0);function s$(e,t){const n=r$(e,t);return n$(n)}function i$(e,t){return(1<<s$(e,t)&t$)!==0}function o$(e,t){const n=f1(oc(e),t);if(n!=null)return P(pe(I(()=>ke(r=>r||"",n))))}function a$(e){let t;const n=o$(".*?@(.*)",e);switch(n!=null?M(n)?t=1:M(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function Wc(e,t){return pc(t)?new m(1,[je(We("%s cannot be null or empty"))(e)]):new m(0,[t])}function l$(e){const t=a$(e);if(t!=null){const n=t;return new m(0,[n])}else return new m(1,["Email is not in the correct format"])}const Mn=e=>({tag:"ok",value:e}),is=e=>({tag:"error",error:e});class ze{constructor(t){this.uri=t}static isAbsoluteUri(t){try{return new URL(t),!0}catch{return!1}}static tryCreateWithKind(t,n){switch(n){case 1:return ze.isAbsoluteUri(t)?Mn(new ze({original:t,value:new URL(t),kind:n})):is("Invalid URI: The format of the URI could not be determined.");case 2:return ze.isAbsoluteUri(t)?is("URI is not a relative path."):Mn(new ze({original:t,value:t,kind:n}));case 0:return ze.isAbsoluteUri(t)?Mn(new ze({original:t,value:new URL(t),kind:1})):Mn(new ze({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?is("Base URI should have Absolute kind"):typeof n=="string"?Mn(new ze({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?Mn(new ze({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):Mn(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?is("Kind must be specified when the baseUri is a string."):ze.tryCreateWithKind(t,n):typeof n=="number"?is("Kind should not be specified when the baseUri is an absolute Uri."):ze.tryCreateWithBase(t,n)}static create(t,n=1){const r=ze.tryCreateImpl(t,n);switch(r.tag){case"ok":return r.value;case"error":throw new Error(r.error);default:return r}}static tryCreate(t,n=1,r){const s=ze.tryCreateImpl(t,n);switch(s.tag){case"ok":return r.contents=s.value,!0;case"error":return!1;default:return s}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return this.uri.kind===1}get absoluteUri(){return this.asUrl().href}get scheme(){const t=this.asUrl().protocol;return t.slice(0,t.length-1)}get host(){const t=this.asUrl().host;return t.includes(":")?t.split(":")[0]:t}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get isDefaultPort(){return this.port===80}get port(){const t=this.asUrl().port;return t===""?80:parseInt(t)}get pathAndQuery(){const t=this.asUrl();return t.pathname+t.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class u$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function jc(e){return new u$(e)}function Uc(e){return e.fields[0]}class c$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function f$(e){return!Zr(e)}function zc(e){return f$(e)?new m(0,[new c$(e)]):new m(1,["Invalid invite code format."])}class Hc extends L{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class d$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class h$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class Gc extends L{constructor(t,n){super(),this.Email=t,this.Phone=n}}class m$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class p$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const Yc=e=>Ct(t=>new m$(t),Fc(l$,Wc("Email",e)));function $$(e){return e.fields[0]}const qc=e=>Ct(t=>new p$(t),Wc("Phone",e));function g$(e){return e.fields[0]}function Jc(e){return Zr(e)?new m(1,["Invalid company name."]):new m(0,[new h$(e)])}function os(e){return e.fields[0]}function w$(e){try{const t=ze.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function Zc(e){return w$(e)[0]?new m(0,[new d$(e)]):new m(1,["Invalid logo url."])}function y$(e){return e.fields[0]}class _$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function v$(e){return new _$(e)}class b$ extends L{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}class C$ extends L{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}class Nt extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Rt extends L{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ye=new Rt(new Nt("personal-details"),"Personal Details","apollo-personal-details-app"),mt=new Rt(new Nt("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),pt=new Rt(new Nt("bank"),"Bank","bank-component"),$t=new Rt(new Nt("tax"),"Tax","tax-component"),Oe=new Rt(new Nt("super"),"Super","super-selection-app"),On=new Rt(new Nt("app-workplace-linking"),"App Workplace Linking","workplace-link"),S$=new Nt("benefits-onboarding"),as=new Rt(S$,"Benefits","benefits-onboarding"),Yt=new Rt(new Nt("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),Dn=new Rt(new Nt("Benefits-Discrete"),"Benefits","benefits-onboarding");function Xc(e){return new Nt(e)}function ls(e){return e.fields[0]}class De extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Ne extends L{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Kc=new Ne(new De(Me("00000000-0000-0000-0000-000000000000")),"onboarding-default",_([pt,$t,Oe])),Qc=new Ne(new De(Me("00000000-0000-0000-0000-000000000001")),"PEBTS",_([Ye,mt,pt,$t,Oe])),ef=new Ne(new De(Me("00000000-0000-0000-0000-000000000002")),"PS",_([Ye,Oe])),tf=new Ne(new De(Me("00000000-0000-0000-0000-000000000003")),"BS",_([pt,Oe])),nf=new Ne(new De(Me("00000000-0000-0000-0000-000000000004")),"Super",A(Oe)),aa=new Ne(new De(Me("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",A(On)),rf=new Ne(new De(Me("00000000-0000-0000-0000-000000000005")),"Tax",A($t)),sf=new Ne(new De(Me("00000000-0000-0000-0000-000000000006")),"PBTS",_([Ye,pt,$t,Oe])),of=new Ne(new De(Me("00000000-0000-0000-0000-000000000007")),"PEBTSPo",_([Ye,mt,pt,$t,Oe,Yt])),af=new Ne(new De(Me("00000000-0000-0000-0000-000000000008")),"PEBSPo",_([Ye,mt,pt,Oe,Yt])),lf=new Ne(new De(Me("00000000-0000-0000-0000-000000000009")),"PESPo",_([Ye,mt,Oe,Yt])),uf=new Ne(new De(Me("00000000-0000-0000-0000-000000000010")),"PETSPo",_([Ye,mt,$t,Oe,Yt])),la=new Ne(new De(Me("00000000-0000-0000-0002-000000000000")),"Bo",A(Dn)),cf=new Ne(new De(Me("00000000-0000-0000-0000-000000000011")),"PETS",_([Ye,mt,$t,Oe])),ff=new Ne(new De(Me("00000000-0000-0000-0000-000000000012")),"PEBS",_([Ye,mt,pt,Oe])),df=new Ne(new De(Me("00000000-0000-0000-0000-000000000013")),"PES",_([Ye,mt,Oe])),hf=new Ne(new De(Me("00000000-0000-0000-0000-000000000014")),"PBTSPo",_([Ye,pt,$t,Oe,Yt])),k$=new Zp([[Kc.Id,Kc],[Qc.Id,Qc],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[aa.Id,aa],[rf.Id,rf],[sf.Id,sf],[of.Id,of],[af.Id,af],[lf.Id,lf],[uf.Id,uf],[la.Id,la],[cf.Id,cf],[ff.Id,ff],[df.Id,df],[hf.Id,hf]],{Equals:O,GetHashCode:Io});function x$(e){return O(e,la)?!1:!O(e,aa)}function I$(e){const t=new De(e);return En(t,k$.keys(),{Equals:O,GetHashCode:Io})?new m(0,[t]):new m(1,[je(uc("Invalid Type %A%P()",[e]))])}function mf(e){return e.fields[0]}class pf extends L{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class us extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function ua(e){return e.tag===2}class A$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function $f(e){return new A$(e)}function $r(e){return e.fields[0]}class E$ extends L{constructor(t,n){super(),this.Name=t,this.Value=n}}class T$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class P$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function M$(e){return Zr(e)?new m(1,["Tag name is empty"]):e.length<100?new m(0,[new T$(e)]):new m(1,["Tag name is too long"])}function O$(e){return Zr(e)?new m(1,["Tag value is empty"]):e.length<100?new m(0,[new P$(e)]):new m(1,["Tag value is too long"])}function D$(e,t){const n=M$(e);if(n.tag===1)return new m(1,[n.fields[0]]);{const r=O$(t);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new E$(n.fields[0],r.fields[0])])}}class N$ extends L{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class R$ extends L{constructor(t){super(),this.BenefitsOnboarding=t}}class gr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class gf extends L{constructor(t){super(),this.Category=t}}class wf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function B$(e,t){const n=es(i=>O(i.Id,e),t.Configuration.Steps),r=je(uc("Invalid ProcessStep Id %A%P()",[e])),s=n;return s==null?new m(1,[r]):new m(0,[s])}function L$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return ce();default:{const n=tt(r=>r[0],t.fields[0].CompletedSteps);return jo(r=>W1(r.Id,n,{Equals:O,GetHashCode:Io}),e.Configuration.Steps)}}}function yf(){return Xu(document.getElementById("external-loading-page-container"))}function _f(){return yf()!=null}function V$(){let e,t;const n=yf();Tn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),ei(n))}var Nn=[],F$=function(){return Nn.some(function(e){return e.activeTargets.length>0})},W$=function(){return Nn.some(function(e){return e.skippedTargets.length>0})},vf="ResizeObserver loop completed with undelivered notifications.",j$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:vf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=vf),window.dispatchEvent(e)},cs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(cs||(cs={}));var Rn=function(e){return Object.freeze(e)},U$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Rn(this)}return e}(),bf=function(){function e(t,n,r,s){return this.x=t,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Rn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,s=t.top,i=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:s,right:i,bottom:o,left:a,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ca=function(e){return e instanceof SVGElement&&"getBBox"in e},Cf=function(e){if(ca(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var s=e,i=s.offsetWidth,o=s.offsetHeight;return!(i||o||e.getClientRects().length)},Sf=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},z$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},fs=typeof window<"u"?window:{},$i=new WeakMap,kf=/auto|scroll/,H$=/^tb|vertical/,G$=/msie|trident/i.test(fs.navigator&&fs.navigator.userAgent),Bt=function(e){return parseFloat(e||"0")},wr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new U$((n?t:e)||0,(n?e:t)||0)},xf=Rn({devicePixelContentBoxSize:wr(),borderBoxSize:wr(),contentBoxSize:wr(),contentRect:new bf(0,0,0,0)}),If=function(e,t){if(t===void 0&&(t=!1),$i.has(e)&&!t)return $i.get(e);if(Cf(e))return $i.set(e,xf),xf;var n=getComputedStyle(e),r=ca(e)&&e.ownerSVGElement&&e.getBBox(),s=!G$&&n.boxSizing==="border-box",i=H$.test(n.writingMode||""),o=!r&&kf.test(n.overflowY||""),a=!r&&kf.test(n.overflowX||""),l=r?0:Bt(n.paddingTop),u=r?0:Bt(n.paddingRight),f=r?0:Bt(n.paddingBottom),c=r?0:Bt(n.paddingLeft),p=r?0:Bt(n.borderTopWidth),h=r?0:Bt(n.borderRightWidth),$=r?0:Bt(n.borderBottomWidth),g=r?0:Bt(n.borderLeftWidth),w=c+u,v=l+f,S=g+h,N=p+$,K=a?e.offsetHeight-N-e.clientHeight:0,Q=o?e.offsetWidth-S-e.clientWidth:0,xe=s?w+S:0,rt=s?v+N:0,Re=r?r.width:Bt(n.width)-xe-Q,Be=r?r.height:Bt(n.height)-rt-K,Xe=Re+w+Q+S,T=Be+v+K+N,Y=Rn({devicePixelContentBoxSize:wr(Math.round(Re*devicePixelRatio),Math.round(Be*devicePixelRatio),i),borderBoxSize:wr(Xe,T,i),contentBoxSize:wr(Re,Be,i),contentRect:new bf(c,l,Re,Be)});return $i.set(e,Y),Y},Af=function(e,t,n){var r=If(e,n),s=r.borderBoxSize,i=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case cs.DEVICE_PIXEL_CONTENT_BOX:return o;case cs.BORDER_BOX:return s;default:return i}},Y$=function(){function e(t){var n=If(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Rn([n.borderBoxSize]),this.contentBoxSize=Rn([n.contentBoxSize]),this.devicePixelContentBoxSize=Rn([n.devicePixelContentBoxSize])}return e}(),Ef=function(e){if(Cf(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},q$=function(){var e=1/0,t=[];Nn.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new Y$(u.target),c=Ef(u.target);a.push(f),u.lastReportedSize=Af(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var s=r[n];s()}return e},Tf=function(e){Nn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Ef(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},J$=function(){var e=0;for(Tf(e);F$();)e=q$(),Tf(e);return W$()&&j$(),e>0},fa,Pf=[],Z$=function(){return Pf.splice(0).forEach(function(e){return e()})},X$=function(e){if(!fa){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Z$()}).observe(n,r),fa=function(){n.textContent="".concat(t?t--:t++)}}Pf.push(e),fa()},K$=function(e){X$(function(){requestAnimationFrame(e)})},gi=0,Q$=function(){return!!gi},eg=250,tg={attributes:!0,characterData:!0,childList:!0,subtree:!0},Mf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Of=function(e){return e===void 0&&(e=0),Date.now()+e},da=!1,ng=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=eg),!da){da=!0;var r=Of(t);K$(function(){var s=!1;try{s=J$()}finally{if(da=!1,t=r-Of(),!Q$())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,tg)};document.body?n():fs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Mf.forEach(function(n){return fs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Mf.forEach(function(n){return fs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ha=new ng,Df=function(e){!gi&&e>0&&ha.start(),gi+=e,!gi&&ha.stop()},rg=function(e){return!ca(e)&&!z$(e)&&getComputedStyle(e).display==="inline"},sg=function(){function e(t,n){this.target=t,this.observedBox=n||cs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Af(this.target,this.observedBox,!0);return rg(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ig=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),wi=new WeakMap,Nf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},yi=function(){function e(){}return e.connect=function(t,n){var r=new ig(t,n);wi.set(t,r)},e.observe=function(t,n,r){var s=wi.get(t),i=s.observationTargets.length===0;Nf(s.observationTargets,n)<0&&(i&&Nn.push(s),s.observationTargets.push(new sg(n,r&&r.box)),Df(1),ha.schedule())},e.unobserve=function(t,n){var r=wi.get(t),s=Nf(r.observationTargets,n),i=r.observationTargets.length===1;s>=0&&(i&&Nn.splice(Nn.indexOf(r),1),r.observationTargets.splice(s,1),Df(-1))},e.disconnect=function(t){var n=this,r=wi.get(t);r.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Rf=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");yi.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Sf(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Sf(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.unobserve(this,t)},e.prototype.disconnect=function(){yi.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class og{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class ds extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ds.prototype)}}class ma{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ma.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Lt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ds);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Ys(n))}});else try{e(t)}catch(n){t.onError(Ys(n))}}}function ag(e,t){return Lt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Ys(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function lg(e){return Lt(t=>t.onSuccess(e))}class ug{Bind(t,n){return ag(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Lt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const i=n(s.value);return s=r.next(),i}))}Return(t){return lg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Lt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Lt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(i){r.onError(Ys(i))}}})})}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 Lt(t=>t.onSuccess(void 0))}}const E=new ug;function cg(e){return new Bf(0,[e])}function fg(e){return new Bf(1,[e])}class Bf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class pa extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function dg(e){return cg(e)}function hg(e){return fg(e)}function $a(e){}function mg(e){return Lt(t=>e()(t))}function pg(e){return Ff(t=>e.then(t[0]).catch(n=>(n instanceof ds?t[2]:t[1])(n)))}const Lf=new og;function Vf(e){return Lt(t=>{e({onSuccess:n=>t.onSuccess(dg(n)),onError:n=>t.onSuccess(hg(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Ff(e){return Lt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function $g(e){return mg(()=>pg(Promise.all(Array.from(e,t=>wg(t)))))}function _i(e){return Lt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ds)})})}function gg(e,t){return jf(e,t)}function Wf(e,t){return gg(e,t)}function jf(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const i=new ma;e({onSuccess:t||$a,onError:n||$a,onCancel:r||$a,cancelToken:s||Lf,trampoline:i})}function wg(e,t){return new Promise((n,r)=>jf(e,n,r,r,Lf))}class Uf extends L{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function yg(e){return new Uf($r(e.Id),e.Configuration.Name,mf(e.Configuration.Id))}function _g(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function vg(e,t,n,r){const s={};return s.type="workflowSubmitSuccess",s.sender="flare",s.workflow=new Uf($r(e),t,mf(n)),s.profileId=Uc(r),s}function bg(e,t,n,r){const s={};return s.type="stepSubmitSuccess",s.sender="flare",s.workflow=yg(n),s.profileId=Uc(r),s.step={name:t,type:ls(e)},s}function Cg(){const e={};return e.type="appReady",e.sender="flare",e}function vi(e){_f()||window.parent.postMessage(e,"*")}function Sg(e,t){Wf(E.Delay(()=>E.Bind(_i(e),()=>(t(),E.Zero()))))}function ga(){vi(_g(document.body.offsetHeight,-1))}function kg(){(window.ResizeObserver?new window.ResizeObserver(()=>{ga()}):new Rf(()=>{ga()})).observe(document.body)}function xg(e,t,n){const r=B$(e,t);r.tag===1||vi(bg(e,r.fields[0].DisplayName,t,n))}function wa(e,t,n,r){vi(vg(e,t,n,r))}function qt(e){_f()&&Sg(e,()=>{V$(),vi(Cg()),ga()})}/*!
1
+ (function(){"use strict";var Rr,q,Dl,Cn,Nl,Rl,to,no,ro,so,Bl,Br={},Ll=[],Gh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ns=Array.isArray;function jt(e,t){for(var n in t)e[n]=t[n];return e}function Vl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Rr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return Lr(e,o,r,s,null)}function Lr(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Dl,__i:-1,__u:0};return s==null&&q.vnode!=null&&q.vnode(i),i}function Fl(){return{current:null}}function Ie(e){return e.children}function ft(e,t){this.props=e,this.context=t}function Kn(e,t){if(t==null)return e.__?Kn(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"?Kn(e):null}function Wl(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 Wl(e)}}function io(e){(!e.__d&&(e.__d=!0)&&Cn.push(e)&&!Rs.__r++||Nl!==q.debounceRendering)&&((Nl=q.debounceRendering)||Rl)(Rs)}function Rs(){var e,t,n,r,s,i,o,a;for(Cn.sort(to);e=Cn.shift();)e.__d&&(t=Cn.length,r=void 0,i=(s=(n=e).__v).__e,o=[],a=[],n.__P&&((r=jt({},s)).__v=s.__v+1,q.vnode&&q.vnode(r),oo(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[i]:null,o,i??Kn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Gl(o,r,a),r.__e!=i&&Wl(r)),Cn.length>t&&Cn.sort(to));Rs.__r=0}function jl(e,t,n,r,s,i,o,a,l,u,f){var c,p,h,$,g,w=r&&r.__k||Ll,v=t.length;for(n.__d=l,Yh(n,t,w),l=n.__d,c=0;c<v;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?Br:w[h.__i]||Br,h.__i=c,oo(e,h,p,s,i,o,a,l,u,f),$=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&ao(p.ref,null,h),f.push(h.ref,h.__c||$,h)),g==null&&$!=null&&(g=$),65536&h.__u||p.__k===h.__k?l=Ul(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:$&&(l=$.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function Yh(e,t,n){var r,s,i,o,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(o=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Lr(null,s,null,null,null):Ns(s)?Lr(Ie,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Lr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,i=null,(a=s.__i=qh(s,n,o,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a==o-1?c--:a==o+1?c++:(a>o?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Kn(i)),Yl(i,i))}function Ul(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Ul(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Kn(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"||(Ns(e)?e.some(function(n){Ut(n,t)}):t.push(e)),t}function qh(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&s==l.key&&i===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&i===l.type)return a;a++}}return-1}function zl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Gh.test(t)?n:n+"px"}function Bs(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||zl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=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+i]=n,n?r?n.u=r.u:(n.u=no,e.addEventListener(t,i?so:ro,i)):e.removeEventListener(t,i?so:ro,i);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Hl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=no++;else if(t.t<n.u)return;return n(q.event?q.event(t):t)}}}function oo(e,t,n,r,s,i,o,a,l,u){var f,c,p,h,$,g,w,v,S,N,K,Q,xe,rt,Re,Be,Xe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=q.__b)&&f(t);e:if(typeof Xe=="function")try{if(v=t.props,S="prototype"in Xe&&Xe.prototype.render,N=(f=Xe.contextType)&&r[f.__c],K=f?N?N.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(S?t.__c=c=new Xe(v,K):(t.__c=c=new ft(v,K),c.constructor=Xe,c.render=Zh),N&&N.sub(c),c.props=v,c.state||(c.state={}),c.context=K,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&Xe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=jt({},c.__s)),jt(c.__s,Xe.getDerivedStateFromProps(v,c.__s))),h=c.props,$=c.state,c.__v=t,p)S&&Xe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&Xe.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,K),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,K)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Q=0;Q<c._sb.length;Q++)c.__h.push(c._sb[Q]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,K),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,$,g)})}if(c.context=K,c.props=v,c.__P=e,c.__e=!1,xe=q.__r,rt=0,S){for(c.state=c.__s,c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),Re=0;Re<c._sb.length;Re++)c.__h.push(c._sb[Re]);c._sb=[]}else do c.__d=!1,xe&&xe(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++rt<25);c.state=c.__s,c.getChildContext!=null&&(r=jt(jt({},r),c.getChildContext())),S&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,$)),jl(e,Ns(Be=f!=null&&f.type===Ie&&f.key==null?f.props.children:f)?Be:[Be],t,n,r,s,i,o,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),w&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;q.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Jh(n.__e,t,n,r,s,i,o,l,u);(f=q.diffed)&&f(t)}function Gl(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ao(n[r],n[++r],n[++r]);q.__c&&q.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){q.__e(i,s.__v)}})}function Jh(e,t,n,r,s,i,o,a,l){var u,f,c,p,h,$,g,w=n.props,v=t.props,S=t.type;if(S==="svg"?s="http://www.w3.org/2000/svg":S==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(v);e=document.createElementNS(s,S,v.is&&v),a&&(q.__m&&q.__m(t,i),a=!1),i=null}if(S===null)w===v||a&&e.data===v||(e.data=v);else{if(i=i&&Rr.call(e.childNodes),w=n.props||Br,!a&&i!=null)for(w={},u=0;u<e.attributes.length;u++)w[(h=e.attributes[u]).name]=h.value;for(u in w)if(h=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Bs(e,u,null,h,s)}}for(u in v)h=v[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?$=h:u=="checked"?g=h:a&&typeof h!="function"||w[u]===h||Bs(e,u,h,w[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),jl(e,Ns(p)?p:[p],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":s,i,o,i?i[0]:n.__k&&Kn(n,0),a,l),i!=null)for(u=i.length;u--;)Vl(i[u]);a||(u="value",S==="progress"&&$==null?e.removeAttribute("value"):$!==void 0&&($!==e[u]||S==="progress"&&!$||S==="option"&&$!==w[u])&&Bs(e,u,$,w[u],s),u="checked",g!==void 0&&g!==e[u]&&Bs(e,u,g,w[u],s))}return e}function ao(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(s){q.__e(s,n)}}function Yl(e,t,n){var r,s;if(q.unmount&&q.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ao(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){q.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Yl(r[s],t,n||typeof e.type!="function");n||Vl(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Zh(e,t,n){return this.constructor(e,n)}function Vr(e,t,n){var r,s,i,o;q.__&&q.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],o=[],oo(t,e=(!r&&n||t).__k=d(Ie,null,[e]),s||Br,Br,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Rr.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),Gl(i,e,o)}function ql(e,t){Vr(e,t,ql)}function Xh(e,t,n){var r,s,i,o,a=jt({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?s=t[i]:a[i]=t[i]===void 0&&o!==void 0?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Rr.call(arguments,2):n),Lr(e.type,a,r||e.key,s||e.ref,null)}function Jl(e,t){var n={__c:t="__cC"+Bl++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,i;return this.getChildContext||(s=[],(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&s.some(function(a){a.__e=!0,io(a)})},this.sub=function(o){s.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){s&&s.splice(s.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Rr=Ll.slice,q={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},Dl=0,ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},n),this.props)),e&&jt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),io(this))},ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),io(this))},ft.prototype.render=Ie,Cn=[],Rl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,to=function(e,t){return e.__v.__b-t.__v.__b},Rs.__r=0,no=0,ro=Hl(!1),so=Hl(!0),Bl=0;var zt,de,lo,Zl,Qn=0,Xl=[],ve=q,Kl=ve.__b,Ql=ve.__r,eu=ve.diffed,tu=ve.__c,nu=ve.unmount,ru=ve.__;function Sn(e,t){ve.__h&&ve.__h(de,e,Qn||t),Qn=0;var n=de.__H||(de.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function er(e){return Qn=1,Ls(iu,e)}function Ls(e,t,n){var r=Sn(zt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):iu(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};de.u=!0;var i=de.shouldComponentUpdate,o=de.componentWillUpdate;de.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,s(a,l,u),i=f}o&&o.call(this,a,l,u)},de.shouldComponentUpdate=s}return r.__N||r.__}function kn(e,t){var n=Sn(zt++,3);!ve.__s&&go(n.__H,t)&&(n.__=e,n.i=t,de.__H.__h.push(n))}function xn(e,t){var n=Sn(zt++,4);!ve.__s&&go(n.__H,t)&&(n.__=e,n.i=t,de.__h.push(n))}function uo(e){return Qn=5,Fr(function(){return{current:e}},[])}function co(e,t,n){Qn=6,xn(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 Fr(e,t){var n=Sn(zt++,7);return go(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fo(e,t){return Qn=8,Fr(function(){return e},t)}function ho(e){var t=de.context[e.__c],n=Sn(zt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(de)),t.props.value):e.__}function mo(e,t){ve.useDebugValue&&ve.useDebugValue(t?t(e):e)}function Kh(e){var t=Sn(zt++,10),n=er();return t.__=e,de.componentDidCatch||(de.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function po(){var e=Sn(zt++,11);if(!e.__){for(var t=de.__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 Qh(){for(var e;e=Xl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vs),e.__H.__h.forEach($o),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){de=null,Kl&&Kl(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ru&&ru(e,t)},ve.__r=function(e){Ql&&Ql(e),zt=0;var t=(de=e.__c).__H;t&&(lo===de?(t.__h=[],de.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Vs),t.__h.forEach($o),t.__h=[],zt=0)),lo=de},ve.diffed=function(e){eu&&eu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xl.push(t)!==1&&Zl===ve.requestAnimationFrame||((Zl=ve.requestAnimationFrame)||em)(Qh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),lo=de=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Vs),n.__h=n.__h.filter(function(r){return!r.__||$o(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],ve.__e(r,n.__v)}}),tu&&tu(e,t)},ve.unmount=function(e){nu&&nu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Vs(r)}catch(s){t=s}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var su=typeof requestAnimationFrame=="function";function em(e){var t,n=function(){clearTimeout(r),su&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);su&&(t=requestAnimationFrame(n))}function Vs(e){var t=de,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),de=t}function $o(e){var t=de;e.__c=e.__(),de=t}function go(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function iu(e,t){return typeof t=="function"?t(e):t}function wo(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 Fs(e,t){this.props=e,this.context=t}function ou(e,t){function n(s){var i=this.props.ref,o=i==s.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,s)||!o:wo(this.props,s)}function r(s){return this.shouldComponentUpdate=n,d(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fs.prototype=new ft).isPureReactComponent=!0,Fs.prototype.shouldComponentUpdate=function(e,t){return wo(this.props,e)||wo(this.state,t)};var au=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),au&&au(e)};var tm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function lu(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var s=e(n,r);return n.ref=r,s}return t.$$typeof=tm,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var uu=function(e,t){return e==null?null:Ut(Ut(e).map(t))},cu={map:uu,forEach:uu,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},nm=q.__e;q.__e=function(e,t,n,r){if(e.then){for(var s,i=t;i=i.__;)if((s=i.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}nm(e,t,n,r)};var fu=q.unmount;function du(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=function(r,s){for(var i in s)r[i]=s[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return du(r,t,n)})),e}function hu(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return hu(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 Wr(){this.__u=0,this.t=null,this.__b=null}function mu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pu(e){var t,n,r;function s(i){if(t||(t=e()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw t;return d(n,i)}return s.displayName="Lazy",s.__f=!0,s}function tr(){this.u=null,this.o=null}q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fu&&fu(e)},(Wr.prototype=new ft).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=mu(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,s?s(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=hu(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Wr.prototype.componentWillUnmount=function(){this.t=[]},Wr.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]=du(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&d(Ie,null,e.fallback);return s&&(s.__u&=-33),[d(Ie,null,t.__a?null:e.children),s]};var $u=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 rm(e){return this.getChildContext=function(){return e.context},e.children}function sm(e){var t=this,n=e.i;t.componentWillUnmount=function(){Vr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Vr(d(rm,{context:t.context},e.__v),t.l)}function gu(e,t){var n=d(sm,{__v:e,i:t});return n.containerInfo=t,n}(tr.prototype=new ft).__a=function(e){var t=this,n=mu(t.__v),r=t.o.get(e);return r[0]++,function(s){var i=function(){t.props.revealOrder?(r.push(s),$u(t,e,r)):s()};n?n(i):i()}},tr.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},tr.prototype.componentDidUpdate=tr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){$u(e,n,t)})};var wu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,im=/^(?: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]/,om=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,am=/[A-Z0-9]/g,lm=typeof document<"u",um=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ws(e,t,n){return t.__k==null&&(t.textContent=""),Vr(e,t),typeof n=="function"&&n(),e?e.__c:null}function yu(e,t,n){return ql(e,t),typeof n=="function"&&n(),e?e.__c:null}ft.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _u=q.event;function cm(){}function fm(){return this.cancelBubble}function dm(){return this.defaultPrevented}q.event=function(e){return _u&&(e=_u(e)),e.persist=cm,e.isPropagationStopped=fm,e.isDefaultPrevented=dm,e.nativeEvent=e};var yo,hm={enumerable:!1,configurable:!0,get:function(){return this.class}},vu=q.vnode;q.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},i=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||lm&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||um(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":om.test(o)&&(o=l):l=o="oninput":i&&im.test(o)?o=o.replace(am,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[o=l]&&(o="oninputCapture"),s[o]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=Ut(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=Ut(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",hm)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=wu,vu&&vu(e)};var bu=q.__r;q.__r=function(e){bu&&bu(e),yo=e.__c};var Cu=q.diffed;q.diffed=function(e){Cu&&Cu(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),yo=null};var Su={ReactCurrentDispatcher:{current:{readContext:function(e){return yo.__n[e.__c].props.value},useCallback:fo,useContext:ho,useDebugValue:mo,useDeferredValue:bo,useEffect:kn,useId:po,useImperativeHandle:co,useInsertionEffect:So,useLayoutEffect:xn,useMemo:Fr,useReducer:Ls,useRef:uo,useState:er,useSyncExternalStore:ko,useTransition:Co}}},ku="18.3.1";function xu(e){return d.bind(null,e)}function jr(e){return!!e&&e.$$typeof===wu}function Iu(e){return jr(e)&&e.type===Ie}function Au(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Eu(e){return jr(e)?Xh.apply(null,arguments):e}function _o(e){return!!e.__k&&(Vr(null,e),!0)}function Tu(e){return e&&(e.base||e.nodeType===1&&e)||null}var Pu=function(e,t){return e(t)},Mu=function(e,t){return e(t)},Ou=Ie;function vo(e){e()}function bo(e){return e}function Co(){return[!1,vo]}var So=xn,Du=jr;function ko(e,t){var n=t(),r=er({h:{__:n,v:t}}),s=r[0].h,i=r[1];return xn(function(){s.__=n,s.v=t,xo(s)&&i({h:s})},[e,n,t]),kn(function(){return xo(s)&&i({h:s}),e(function(){xo(s)&&i({h:s})})},[e]),n}function xo(e){var t,n,r=e.v,s=e.__;try{var i=r();return!((t=s)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var js={useState:er,useId:po,useReducer:Ls,useEffect:kn,useLayoutEffect:xn,useInsertionEffect:So,useTransition:Co,useDeferredValue:bo,useSyncExternalStore:ko,startTransition:vo,useRef:uo,useImperativeHandle:co,useMemo:Fr,useCallback:fo,useContext:ho,useDebugValue:mo,version:"18.3.1",Children:cu,render:Ws,hydrate:yu,unmountComponentAtNode:_o,createPortal:gu,createElement:d,createContext:Jl,createFactory:xu,cloneElement:Eu,createRef:Fl,Fragment:Ie,isValidElement:jr,isElement:Du,isFragment:Iu,isMemo:Au,findDOMNode:Tu,Component:ft,PureComponent:Fs,memo:ou,forwardRef:lu,flushSync:Mu,unstable_batchedUpdates:Pu,StrictMode:Ou,Suspense:Wr,SuspenseList:tr,lazy:pu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Su};const mm=Object.freeze(Object.defineProperty({__proto__:null,Children:cu,Component:ft,Fragment:Ie,PureComponent:Fs,StrictMode:Ou,Suspense:Wr,SuspenseList:tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Su,cloneElement:Eu,createContext:Jl,createElement:d,createFactory:xu,createPortal:gu,createRef:Fl,default:js,findDOMNode:Tu,flushSync:Mu,forwardRef:lu,hydrate:yu,isElement:Du,isFragment:Iu,isMemo:Au,isValidElement:jr,lazy:pu,memo:ou,render:Ws,startTransition:vo,unmountComponentAtNode:_o,unstable_batchedUpdates:Pu,useCallback:fo,useContext:ho,useDebugValue:mo,useDeferredValue:bo,useEffect:kn,useErrorBoundary:Kh,useId:po,useImperativeHandle:co,useInsertionEffect:So,useLayoutEffect:xn,useMemo:Fr,useReducer:Ls,useRef:uo,useState:er,useSyncExternalStore:ko,useTransition:Co,version:ku},Symbol.toStringTag,{value:"Module"}));function wt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function pm(e){return e!=null&&typeof e.GetEnumerator=="function"}function $m(e){return e!=null&&typeof e.CompareTo=="function"}function gm(e){return e!=null&&typeof e.Equals=="function"}function Nu(e){return e!=null&&typeof e.GetHashCode=="function"}function Io(e){return e!=null&&typeof e.Dispose=="function"}function ae(e){Io(e)&&e.Dispose()}function ee(){return null}function Us(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 wm{constructor(t){this.iter=t,this.current=ee()}"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 me(e){return pm(e)?e.GetEnumerator():new wm(e[Symbol.iterator]())}function Ur(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 ym{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 le(e,t){return e.toString(10).padStart(t,"0")}function _m(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ru(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function vm(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function fn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Ht{static id(t){return Ht.idMap.has(t)||Ht.idMap.set(t,++Ht.count),Ht.idMap.get(t)}}Ht.idMap=new WeakMap,Ht.count=0;function zs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function yt(e){return e*2654435761|0}function Bu(e){return zs(e.toString(32))}function zr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function bm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return yt(e);case"bigint":return Bu(e);case"string":return zs(e);default:return yt(Ht.id(e))}}function Cm(e){return Nu(e)?e.GetHashCode():bm(e)}function Sm(e){return e.getTime()}function km(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Gt(e[r]);return zr(n)}function Gt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return yt(e);case"bigint":return Bu(e);case"string":return zs(e);default:{if(Nu(e))return e.GetHashCode();if(wt(e))return km(e);if(e instanceof Date)return Sm(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Gt(r));return zr(n)}else return yt(Ht.id(e))}}}function Ao(e){return Cm(e)}function Eo(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 Lu(e,t){return Eo(e,t,O)}function xm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!O(e[n[s]],t[r[s]]))return!1;return!0}function O(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:gm(e)?e.Equals(t):wt(e)?wt(t)&&Lu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Vu(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&xm(e,t)}function Vu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ru(e),r=t.getTime()+Ru(t)),n===r?0:n<r?-1:1}function Hs(e,t){return e===t?0:e<t?-1:1}function Im(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Fu(e,t){return Im(e,t,dt)}function Am(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let s=0,i=0;s<n.length;s++){const o=n[s];if(o!==r[s])return o<r[s]?-1:1;if(i=dt(e[o],t[o]),i!==0)return i}return 0}function dt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:$m(e)?e.CompareTo(t):wt(e)?wt(t)?Fu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Vu(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Am(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Em(e){wt(e)?e.splice(0):e.clear()}const Gs=new WeakMap;function te(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Gs.set(t,e),t}function Pt(e){return Gs.get(e)??(t=>n=>e(t,n))}function To(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return Gs.set(t,e),t}function Ys(e){return Gs.get(e)??(t=>n=>r=>e(t,n,r))}function Tm(e){let t=0,n="[";for(const r of e){if(t===0)n+=Mt(r);else if(t===100){n+="; ...";break}else n+="; "+Mt(r);t++}return n+"]"}function Mt(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 Tm(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,i])=>s+" = "+Mt(i,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Pm(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Mt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>Mt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class R{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Pm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Gt(n));return t.splice(0,0,yt(this.tag)),zr(t)}Equals(t){return this===t?!0:Us(this,t)&&this.tag===t.tag?Lu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Us(this,t)?this.tag===t.tag?Fu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Mm(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Om(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Mt(n)).join(`
3
+ `)+" }"}function Dm(e){const t=Object.values(e).map(n=>Gt(n));return zr(t)}function Nm(e,t){if(e===t)return!0;if(Us(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!O(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Rm(e,t){if(e===t)return 0;if(Us(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=dt(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class B{toJSON(){return Mm(this)}toString(){return Om(this)}GetHashCode(){return Dm(this)}Equals(t){return Nm(this,t)}CompareTo(t){return Rm(this,t)}}class Ke{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 Bm{constructor(t){this.message=t}}function Lm(e){return e instanceof Bm||e instanceof Error}function Vm(e){return e instanceof Promise}function qs(e){return Lm(e)||Vm(e)?e:new Error(String(e))}const nr=Symbol("numeric");function Wu(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[nr])}function Fm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Po(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nr]().multiply(t)}function Js(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nr]().toFixed(t)}function Zs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nr]().toPrecision(t)}function Xs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nr]().toExponential(t)}function Ks(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nr]().toHex()}class Wm{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class We{constructor(t,n,r,s,i,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=i,this.cases=o,this.enumCases=a}toString(){return ge(this)}GetHashCode(){return ju(this)}Equals(t){return Mo(this,t)}}function it(e){return e.generics!=null?e.generics:[]}function ju(e){const t=zs(e.fullname),n=it(e).map(ju);return zr([t,...n])}function Mo(e,t){return e.fullname===""?t.fullname===""&&Eo(Gr(e),Gr(t),([n,r],[s,i])=>n===s&&Mo(r,i)):e.fullname===t.fullname&&Eo(it(e),it(t),Mo)}function Yt(e,t,n,r){return new We(e,t,n,r)}function re(e,t,n,r){return new We(e,t,n,void 0,r)}function Qe(...e){return new We("",void 0,void 0,void 0,()=>e)}function ht(e,t,n,r){const s=new We(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((o,a)=>new Wm(s,a,i[a],o))});return s}function jm(...e){return new We("System.Tuple`"+e.length,e)}function Z(e){return new We("Microsoft.FSharp.Core.FSharpOption`1",[e])}function dn(e){return new We("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Um=new We("System.Object"),z=new We("System.String"),mt=new We("System.Boolean"),Qs=new We("System.Int32"),zm=new We("System.Double");function rr(e){if(Array.isArray(e))return e[0];if(e instanceof We){const t=Hr(e);if(t!=null)return rr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ge(e){const t=Hr(e);return t!=null?ge(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ge(n)).join(",")+"]"}function Uu(e){return Hr(e)!=null}function Hr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function zu(e){return e.generics!=null&&e.generics.length>0}function Oo(e){return e.enumCases!=null&&e.enumCases.length>0}function Hu(e){return e.generics==null?e:new We(e.fullname,e.generics.map(()=>Um))}function Gu(e){var t;return(t=e.generics)==null?void 0:t[0]}function sr(e){if(Oo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Hm(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 ir(e,t){const n=parseInt(t,10);return Hm(e,isNaN(n)?t:n)[1]}function Yu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Gr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function qu(e){if(Do(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ju(e){return e instanceof We?e.cases!=null:e instanceof R}function Zu(e){return e instanceof We?e.fields!=null:e instanceof B}function Do(e){return e.fullname.startsWith("System.Tuple")}function Gm(e,t){const r=Yu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Xu(e){return e.fields==null?[]:e.fields}function Ym(e,t){return e[t[0]]}function Z3(e){return e}function qm(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 Jm(e,t){const n=Gr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[s,i],o)=>(r[s]=t[o],r),{})}function Zm(e,t){return e}class In{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Gt(this.value)}Equals(t){return t==null?!1:O(this.value,t instanceof In?t.value:t)}CompareTo(t){return t==null?1:dt(this.value,t instanceof In?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof In?e.value:e}function ei(e){return e instanceof In?e.value:e}function Ae(e){return e==null||e instanceof In?new In(e):e}function Ku(e){return e??void 0}function ti(e){return e==null?[]:[x(e)]}function Ee(e,t){return e!=null?x(e):t}function Xm(e,t){return e!=null?x(e):t()}function Qu(e,t){return e??t}function Le(e,t){return t!=null?Ae(e(x(t))):void 0}function hn(e,t){return t!=null?e(x(t)):void 0}const Km=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Qm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ep=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tp=["January","February","March","April","May","June","July","August","September","October","November","December"];function ot(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function ec(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function np(e,t){let n=t;const r=e[t];let s="",i=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){i=!0;break}else if(o==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=o}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function No(e,t,n){let r=0,s=0,i="";const o=n?An(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=ot(t,r,"d"),r+=s,s){case 1:i+=Ro(o);break;case 2:i+=le(Ro(o),2);break;case 3:i+=Km[oc(o)];break;case 4:i+=Qm[oc(o)];break}break;case"f":if(s=ot(t,r,"f"),r+=s,s<=3){const w=10**(3-s);i+=le(Math.floor(ii(o)/w),s)}else s<=7&&(i+=(""+ii(o)).padEnd(s,"0"));break;case"F":if(s=ot(t,r,"F"),r+=s,s<=3){const w=10**(3-s),v=Math.floor(ii(o)/w);v!=0&&(i+=le(v,s))}else if(s<=7){const w=ii(o);w!=0&&(i+=le(w,3))}break;case"g":s=ot(t,r,"g"),r+=s,s<=2&&(i+="A.D.");break;case"h":switch(s=ot(t,r,"h"),r+=s,s){case 1:i+=si(o)%12;break;case 2:i+=le(si(o)%12,2);break}break;case"H":switch(s=ot(t,r,"H"),r+=s,s){case 1:i+=si(o);break;case 2:i+=le(si(o),2);break}break;case"K":switch(s=ot(t,r,"K"),r+=s,s){case 1:switch(tc(o)){case 1:i+="Z";break;case 2:i+=or(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=ot(t,r,"m"),r+=s,s){case 1:i+=sc(o);break;case 2:i+=le(sc(o),2);break}break;case"M":switch(s=ot(t,r,"M"),r+=s,s){case 1:i+=Yr(o);break;case 2:i+=le(Yr(o),2);break;case 3:i+=ep[Yr(o)-1];break;case 4:i+=tp[Yr(o)-1];break}break;case"s":switch(s=ot(t,r,"s"),r+=s,s){case 1:i+=ic(o);break;case 2:i+=le(ic(o),2);break}break;case"t":switch(s=ot(t,r,"t"),r+=s,s){case 1:i+=o.getHours()<12?"A":"P";break;case 2:i+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(s=ot(t,r,"y"),r+=s,s){case 1:i+=o.getFullYear()%100;break;case 2:i+=le(o.getFullYear()%100,2);break;case 3:i+=le(o.getFullYear(),3);break;case 4:i+=le(o.getFullYear(),4);break;case 5:i+=le(o.getFullYear(),5);break}break;case"z":s=ot(t,r,"z"),r+=s;let l="";switch(tc(o)){case 1:l="+00:00";break;case 2:l=or(o.getTimezoneOffset()*-6e4);break;case 0:l=or(hp(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${le(f,2)}`;break;default:i+=`${u}${le(f,2)}:${le(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,h]=np(t,r);i+=p,r+=h;break;case"%":const $=ec(t,r);if($>=0&&$!==37)r+=2,i+=No(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=ec(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function tc(e){return e.kind||0}function or(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+le(n,2)+":"+le(r,2)}function ni(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 rp(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return le(e.getFullYear(),4)+"-"+le(e.getMonth()+1,2)+"-"+le(e.getDate(),2)+"T"+le(e.getHours(),2)+":"+le(e.getMinutes(),2)+":"+le(e.getSeconds(),2)+"."+le(e.getMilliseconds(),3)+(n?or(e.getTimezoneOffset()*-6e4):"")}}function sp(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+or(t)}function ip(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," ")+or(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ni(n,"first");case"T":case"t":return ni(n,"second");case"O":case"o":return sp(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return No(n,t,!0)}function op(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?ni(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ni(e,"second"):e.toLocaleTimeString();case"O":case"o":return rp(e,n);default:throw new Error("Unrecognized Date print format")}else return No(e,t,n)}function ri(e,t,n){return e.offset!=null?ip(e,t):op(e,t)}function An(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ap(){return An(-621355968e5,1)}function nc(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const s=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(s!=null){let i,o=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(s[4]!=null){if(s[1]!=null)i=new Date(s[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(s[1]!=null)i=new Date(s[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function lp(e,t=!1){const[n,r]=nc(e),s=r!=null?t&&r==="Z"?1:2:0;return An(n.getTime(),s)}function up(e,t){try{return t.contents=lp(e),!0}catch{return!1}}function cp(e,t,n,r=0,s=0,i=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,s,i,o)):new Date(e,t-1,n,r,s,i,o);e<=99&&(a===1?l.setUTCFullYear(e,t-1,n):l.setFullYear(e,t-1,n));const u=l.getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");return An(u,a)}function fp(){return An(Date.now(),2)}function rc(){return mp(fp())}function dp(e){return e.kind===1?e:An(e.getTime(),1)}function hp(e){return e.kind===2?e:An(e.getTime(),2)}function mp(e){return cp(Bo(e),Yr(e),Ro(e),0,0,0,0,e.kind)}function Ro(e){return e.kind===1?e.getUTCDate():e.getDate()}function si(e){return e.kind===1?e.getUTCHours():e.getHours()}function ii(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function sc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Yr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ic(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Bo(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function oc(e){return e.kind===1?e.getUTCDay():e.getDay()}function ac(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 oi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function pp(e,t,n=0){return e.lastIndex=n,e.exec(t)}function lc(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let s,i=-1;for(;(s=e.exec(t))!=null;)s.index===i?e.lastIndex++:(i=s.index,r.push(s));return r}function $p(e,t,n,r,s=0){function i(){let o=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),o=n(a)}return o}if(typeof e=="string"){const o=e;e=ac(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,i);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(s),l=lc(e,a),u=lc.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const qr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Jr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,gp=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function uc(e,t){return Fm(e,t)<0}function ar(e,t,n){function r(i){return i===!0||i===1||i===3||i===5}function s(i){return i===4||i===5}return e==null?t==null?0:-1:t==null?1:s(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 wp(...e){switch(e.length){case 2:return ar(e[0],e[1],!1);case 3:return ar(e[0],e[1],e[2]);case 4:return ar(e[0],e[1],e[2]===!0);case 5:return ar(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ar(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ar(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 je(e){return{input:e,cont:yp(e)}}function cc(e,t){let n=0,r=0,s="";Jr.lastIndex=0;let i=Jr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;s+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=Jr.lastIndex,s+=hc(t[n++],a,l,u,f),Jr.lastIndex=r-1,i=Jr.exec(e)}return s+=e.substring(r).replace(/%%/g,"%"),s}function fc(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ue(e){return fc(t=>t,e)}function dc(e){return fc(t=>{throw new Error(t)},e)}function hc(e,t,n,r,s){let i="";if(t=t||"",s=s||"",Wu(e))switch(s.toLowerCase()!=="x"&&(uc(e,0)?(e=Po(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=Js(e,r);break;case"g":case"G":e=r!=null?Zs(e,r):Zs(e);break;case"e":case"E":e=r!=null?Xs(e,r):Xs(e);break;case"x":e=Ks(e);break;case"X":e=Ks(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ri(e):e=Mt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=Xr(e,n-i.length,l,a),e=i+e):e=Xr(i+e,n,l,a)}return e}function mc(e,t,n,r="",s=-1){return(...i)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,p,h]=l[0];let $=c;if(s>=0)$=s,s=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}o+=a[0],o+=hc(u,f,$,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):mc(e,a,l,o,s)}}function yp(e){return t=>{qr.lastIndex=0;const n=[],r=[];let s=0,i=qr.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(s,o).replace(/%%/g,"%")),r.push(i),s=qr.lastIndex,qr.lastIndex-=1,i=qr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),mc(t,n,r))}}function pc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(gp,(r,s,i,o,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Wu(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=Js(u,a);break;case"g":case"G":u=a!=null?Zs(u,a):Zs(u);break;case"e":case"E":u=a!=null?Xs(u,a):Xs(u);break;case"p":case"P":a=a??2,u=Js(Po(u,100),a)+" %";break;case"d":case"D":u=a!=null?Lo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Lo(Ks(u),a,"0"):Ks(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{uc(u,0)&&(u=Po(u,-1),f="-"),h=h==null?"":h.substring(1),u=Js(u,Math.max(h.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=Lo($,w,"0");const v=h.replace(/#+$/,"").length;if(v>g.length?g=_p(g,v,"0"):v<g.length&&(g=g.substring(0,v)+g.substring(v).replace(/0+$/,"")),p.indexOf(",")>0){const S=$.length%3,N=Math.floor($.length/3);let K=S>0?$.substr(0,S)+(N>0?",":""):"";for(let Q=0;Q<N;Q++)K+=$.substr(S+Q*3,3)+(Q<N-1?",":"");$=K}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=ri(u,l||o):u=Mt(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Xr(String(u),Math.abs(i)," ",i<0)),u})}function $c(e){return typeof e!="string"||e.length===0}function Zr(e){return typeof e!="string"||/^\s*$/.test(e)}function ye(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Xr(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function Lo(e,t,n){return Xr(e,t,n)}function _p(e,t,n){return Xr(e,t,n,!0)}function gc(e,t,n){return e.replace(new RegExp(oi(t),"g"),n)}function ai(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const s=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(oi),t=t.length>0?t:["\\s"];const o=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&o.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&o.length+1===n?(o.push(i?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function vp(e,...t){if(t.length===0)return e.trim();const n="["+oi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function bp(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+oi(t.join(""))+"]+$"),"")}function Vo(e,t){return t.split("").filter(n=>e(n)).join("")}function Cp(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 Sp(e){throw new Error(e)}function wc(e,t){return new Array(t)}function yc(e,t){return e>t?e:t}const Fo="Collection was empty.",kp="An index satisfying the predicate was not found in the collection.";function li(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function lr(e,t,n){const r=t.length|0,s=wc(n,r);for(let i=0;i<=r-1;i++)_t(s,i,e(ne(i,t)));return s}function xp(e,t){const n=wc(t,1);return _t(n,0,e),n}function Ip(e){return e.slice().reverse()}function Ap(e,t){return t.find(e)}function Ep(e,t){return(r=>{e:for(;;){const s=r;if(s<0)return;if(e(ne(s,t)))return s;r=s-1;continue e}})(t.length-1)}function Tp(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const i=e(ne(s,t));if(i!=null){const o=x(i);r.push(o)}}return O(n,ee())?r:lr(s=>s,r,n)}function ui(e,t,n){const r=e;return n.reduce(r,t)}function Wo(e,t,n){return t==null}function ne(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function _t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function _c(e,t){if(!(e<0||e>=t.length))return Ae(t[e])}function vc(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class ze extends B{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ye("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(O(o.head,a.head)){s=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,i)=>{e:for(;;){const o=r,a=s,l=i,u=l.tail;if(u!=null){const f=x(u);if(o>18)return a|0;r=o+1,s=(a<<1)+Gt(l.head)+631*o,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,i)=>{e:for(;;){const o=s,a=i,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),p=dt(o.head,a.head)|0;if(p===0){s=f,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Mp(this)}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return me(this)}}class Pp{constructor(t){this.xs=t,this.it=this.xs,this.current=ee()}"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=x(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=ee()}Dispose(){}}function Mp(e){return new Pp(e)}function Te(){return new ze(ee(),void 0)}function Kr(e,t){return new ze(e,t)}function Ot(e){return e.tail==null}function bc(e){return((n,r)=>{e:for(;;){const s=n,o=r.tail;if(o!=null){n=s+1,r=x(o);continue e}else return s|0}})(0,e)|0}function mn(e){if(e.tail!=null)return e.head;throw new Error(Fo+"\\nParameter name: list")}function Ve(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Fo+"\\nParameter name: list")}function Cc(){throw new Error(kp)}function ce(){return Te()}function et(e,t){return Kr(e,t)}function A(e){return Kr(e,Te())}function M(e){return Ot(e)}function ur(e){return bc(e)}function k(e){return mn(e)}function P(e){return Ve(e)}function Op(e){e:for(;;){const t=e;if(Ot(t))return;{const n=Ve(t);if(Ot(n))return Ae(mn(t));e=n;continue e}}}function Dp(e){const t=Op(e);if(t==null)throw new Error(Fo);return x(t)}function cr(e){const t=bc(e)|0,n=li(new Array(t),0,t,null);return((s,i)=>{e:for(;;){const o=s,a=i;if(!Ot(a)){_t(n,o,mn(a)),s=o+1,i=Ve(a);continue e}break}})(0,e),n}function Dt(e,t,n){let r=t,s=n;for(;!Ot(s);)r=e(r,k(s)),s=Ve(s);return r}function fr(e){return Dt((t,n)=>Kr(n,t),Te(),e)}function Np(e,t,n){return vc(e,cr(t),n)}function Qr(e,t){Dt((n,r)=>{e(r)},void 0,t)}function be(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Kr(ne(r,e),n);return n}function _(e){return be(e,Te())}function Rp(e){let t,n;if(wt(e))return _(e);if(e instanceof ze)return e;{const r=Te();let s=r;const i=me(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new ze(l,void 0),t.tail=n,n)}}finally{ae(i)}const o=s,a=Te();return o.tail=a,Ve(r)}}function jo(e){const t=Te();let n=t;const r=o=>{n=Dt((a,l)=>{const u=new ze(l,void 0);return a.tail=u,u},n,o)};if(wt(e))e.forEach(r);else if(e instanceof ze)Qr(r,e);else{const o=me(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{ae(o)}}const s=n,i=Te();return s.tail=i,Ve(t)}function vt(e,t){return Dt((n,r)=>Kr(r,n),t,fr(e))}function Bp(e,t){let n,r;const s=Te();let i=s,o=t;for(;!Ot(o);){let u=e(mn(o));for(;!Ot(u);)i=(n=i,r=new ze(mn(u),void 0),n.tail=r,r),u=Ve(u);o=Ve(o)}const a=i,l=Te();return a.tail=l,Ve(s)}function tt(e,t){const n=Te(),r=Dt((i,o)=>{const a=new ze(e(o),void 0);return i.tail=a,a},n,t),s=Te();return r.tail=s,Ve(n)}function Lp(e,t){return(r=>{e:for(;;){const s=r;if(Ot(s))return;{const i=e(mn(s));if(i==null){r=Ve(s);continue e}else return i}}})(t)}function es(e,t){return Lp(n=>e(n)?Ae(n):void 0,t)}function ci(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(e(mn(o)))return i;r=i+1,s=Ve(o);continue e}})(0,t)}function Vp(e,t){const n=ci(e,t);return n==null?(Cc(),-1):x(n)|0}function Fp(e,t){return Ep(e,cr(t))}function Wp(e,t){const n=Fp(e,t);return n==null?(Cc(),-1):x(n)|0}function jp(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(Ot(o))return;if(i===e)return Ae(mn(o));r=i+1,s=Ve(o);continue e}})(0,t)}function Uo(e,t){const n=Te(),r=Dt((i,o)=>{if(e(o)){const a=new ze(o,void 0);return i.tail=a,a}else return i},n,t),s=Te();return r.tail=s,Ve(n)}function Up(e,t){const n=Te(),r=Te(),s=n,i=Dt((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new ze(u,void 0),p.tail=f,f),h]:[p,(c=new ze(u,void 0),h.tail=c,c)]},[s,r],t),o=Te();i[0].tail=o;const a=Te();return i[1].tail=a,[Ve(s),Ve(r)]}function zp(e,t){const n=Te(),r=Dt((i,o)=>{const a=e(o);if(a==null)return i;{const l=new ze(x(a),void 0);return i.tail=l,l}},n,t),s=Te();return r.tail=s,Ve(n)}function Hp(e,t,n){return ci(r=>n.Equals(e,r),t)!=null}function Sc(e,t){return ci(e,t)!=null}const Gp="Enumeration already finished.",Yp="Enumeration has not started. Call MoveNext.",kc="The input sequence has an insufficient number of elements.",qp="Reset is not supported on this enumerator.";function Jp(){throw new Error(qp)}function zo(){throw new Error(Yp)}function Ho(){throw new Error(Gp)}class Zp{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=me(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Mt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{ae(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Xp(e){return new Zp(e)}class Kp{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"(){Jp()}Dispose(){this.dispose()}}function fi(e,t,n){return new Kp(e,t,n)}function Qp(e){let t,n,r=!1,s=!1,i;const o=()=>{if(s=!0,n!=null){const a=x(n);try{ae(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{ae(a)}finally{t=void 0}}};return fi(()=>(r?s&&Ho():zo(),i!=null?x(i):Ho()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Ae(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{ae(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),me(a)):(o(),l=!1)}else t=me(e)}return x(l)}},()=>{s||o()})}function e1(e,t){return fi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{ae(t)}finally{}})}function xc(e,t,n){let r=!1,s,i=Ae(e());const o=()=>{if(i!=null){const l=x(i);try{n(l)}finally{i=void 0}}},a=()=>{try{o()}finally{s=void 0}};return fi(()=>(r||zo(),s!=null?x(s):Ho()),()=>{if(r||(r=!0),i!=null){const l=x(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},o)}function t1(e,t){let n,r=t;return fi(()=>{if(n!=null){const s=x(n)[0];return x(n)[1],s}else return zo()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function n1(e,t){t==null&&Sp(e)}function dr(e){return Xp(e)}function pn(e){return n1("source",e),me(e)}function I(e){return dr(()=>me(e()))}function Go(e){return dr(()=>Qp(e))}function r1(e,t){return dr(()=>t1(e,t))}function hr(){return I(()=>new Array(0))}function y(e){return I(()=>xp(e))}function X3(e){return e}function Yo(e){return e instanceof ze?cr(e):Array.from(e)}function pe(e){return wt(e)?_(e):e instanceof ze?e:Rp(e)}function s1(e,t,n){return dr(()=>xc(e,t,n))}function Ic(e,t,n){return dr(()=>{let r=-1;return xc(e,s=>(r=r+1|0,t(r,s)),n)})}function V(e,t){return Go([e,t])}function i1(e,t,n){const r=pn(t);try{const s=pn(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:a?-1:0)|0}finally{ae(s)}}finally{ae(r)}}function En(e,t,n){const r=pn(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ae(r)}}function ts(e,t,n){const r=pn(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{ae(r)}}function Tn(e,t){ts((n,r)=>{e(r)},void 0,t)}function o1(e,t){ts((n,r)=>(e(n,r),n+1|0),0,t)}function ke(e,t){return s1(()=>pn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ae(n)})}function a1(e,t){return Ic(()=>pn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ae(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ae(n)})}function l1(e){return I(()=>Ip(Yo(e)))}function u1(e,t){return dr(()=>{const n=pn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(kc+"\\nParameter name: source");return e1(()=>{},n)}catch(r){throw ae(n),r}})}function c1(e,t){return Ic(()=>pn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ae(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(kc+"\\nParameter name: source")}else return},n=>{ae(n)})}function Ac(e,t){return I(()=>Go(ke(e,t)))}const Pn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function qo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function f1(e,t){switch(t){case Pn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Pn.SnakeCase:return qo(e,"_");case Pn.SnakeCaseAllCaps:return qo(e,"_").toUpperCase();case Pn.KebabCase:return qo(e,"-");case Pn.None:default:return e}}function bt(e,t=Pn.None){const n={},r=t;function s(o){throw new Error("Cannot infer key and value of "+String(o))}function i(o,a,l){o=f1(o,a),n[o]=l}for(let o of e){let a=Pn.None;if(o==null&&s(o),o instanceof R){const l=o.cases()[o.tag];o=o.fields.length===0?l:[l].concat(o.fields),a=r}if(Array.isArray(o))switch(o.length){case 0:s(o);break;case 1:i(o[0],a,!0);break;case 2:const l=o[1];i(o[0],a,l);break;default:i(o[0],a,o.slice(1))}else typeof o=="string"?i(o,a,!0):s(o)}return n}function d1(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function ns(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const h1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M9 24H30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 17L30 24L23 31",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M23 9H35C35.7956 9 36.5587 9.31607 37.1213 9.87868C37.6839 10.4413 38 11.2044 38 12V36C38 36.7956 37.6839 37.5587 37.1213 38.1213C36.5587 38.6839 35.7956 39 35 39H23",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),m1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M18 18.782V15C18.0047 13.4102 18.6384 11.8868 19.7626 10.7626C20.8868 9.63841 22.4102 9.00475 24 9C25.5898 9.00475 27.1132 9.63841 28.2374 10.7626C29.3616 11.8868 29.9953 13.4102 30 15V18.783",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C30.0751 39 35 34.0751 35 28C35 21.9249 30.0751 17 24 17C17.9249 17 13 21.9249 13 28C13 34.0751 17.9249 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30V33",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 30C25.6569 30 27 28.6569 27 27C27 25.3431 25.6569 24 24 24C22.3431 24 21 25.3431 21 27C21 28.6569 22.3431 30 24 30Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),p1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 9V22",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 19H32.235C32.7699 19.0001 33.2951 19.1432 33.7561 19.4145C34.2171 19.6858 34.5972 20.0754 34.857 20.543L39 28V35C39 35.7956 38.6839 36.5587 38.1213 37.1213C37.5587 37.6839 36.7956 38 36 38H12C11.2044 38 10.4413 37.6839 9.87868 37.1213C9.31607 36.5587 9 35.7956 9 35V28L13.143 20.543C13.4028 20.0754 13.7829 19.6858 14.2439 19.4145C14.7049 19.1432 15.2301 19.0001 15.765 19H16",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M29 17L24 22L19 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M39 28H29V31H19V28H9",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),$1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("path",{d:"M24 18V24H18",stroke:"#212121",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M32 39C35.866 39 39 35.866 39 32C39 28.134 35.866 25 32 25C28.134 25 25 28.134 25 32C25 35.866 28.134 39 32 39Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M21.9816 35.8395C21.8897 36.3783 21.3771 36.7444 20.8469 36.6118C18.8631 36.1159 17.0195 35.1576 15.4695 33.8097C13.6699 32.2448 12.3355 30.215 11.6122 27.9425C10.889 25.67 10.8048 23.2424 11.3689 20.9252C11.9329 18.6081 13.1235 16.4907 14.8103 14.8049C16.4971 13.1191 18.6151 11.9298 20.9326 11.3671C23.2501 10.8044 25.6777 10.89 27.9498 11.6145C30.2218 12.3391 32.2508 13.6747 33.8147 15.4752C35.1617 17.026 36.1189 18.8702 36.6137 20.8543C36.7459 21.3846 36.3795 21.8969 35.8407 21.9885C35.3018 22.08 34.7952 21.7157 34.6557 21.1873C34.2264 19.5608 33.4291 18.0497 32.3203 16.7731C30.9946 15.2468 29.2745 14.1146 27.3484 13.5003C25.4222 12.8861 23.3643 12.8135 21.3996 13.2905C19.435 13.7675 17.6395 14.7758 16.2095 16.2049C14.7795 17.6341 13.7702 19.429 13.292 21.3934C12.8139 23.3577 12.8852 25.4158 13.4984 27.3422C14.1115 29.2687 15.2427 30.9895 16.7683 32.3161C18.0442 33.4256 19.5549 34.2238 21.181 34.654C21.7094 34.7938 22.0734 35.3007 21.9816 35.8395Z",fill:"#111827"}),d("line",{x1:32,y1:29,x2:32,y2:32,stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),d("circle",{cx:32,cy:35,r:1,fill:"currentColor"})),g1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),d("g",{clipPath:"url(#clip0_153_10600)"},d("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",fill:"#DC2626"}),d("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_153_10600"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"})))),w1=e=>d("svg",{width:48,height:47,viewBox:"0 0 48 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("rect",{width:48,height:47,rx:8,fill:"currentColor",fillOpacity:"10%"}),d("g",{clipPath:"url(#clip0_261_2289)"},d("path",{d:"M17 25L21 29L31 19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M24 39C32.2843 39 39 32.2843 39 24C39 15.7157 32.2843 9 24 9C15.7157 9 9 15.7157 9 24C9 32.2843 15.7157 39 24 39Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d("defs",null,d("clipPath",{id:"clip0_261_2289"},d("rect",{width:32,height:32,fill:"white",transform:"translate(8 8)"}))));function mr(e){return pe(I(()=>V(y(["className","text-primary-base"]),I(()=>e))))}function di(e){const t=bt(mr(e),1);return d(h1,t)}function y1(e){const t=bt(mr(e),1);return d(m1,t)}function _1(e){const t=bt(mr(e),1);return d(p1,t)}function v1(e){const t=bt(mr(e),1);return d($1,t)}function b1(e){const t=bt(mr(e),1);return d(g1,t)}function Jo(e){const t=bt(mr(e),1);return d(w1,t)}var Zo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Zo||(Zo={}));function C1(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Ec(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 S1(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 k1(e,t){if(t&Zo.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 x1(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,i,o]=s;if(n=n||k1(i,t),!S1(n).test(o))return C1(s,n)}return null}function Xo(e,t,n,r,s){const i=x1(e,t,s);if(i!=null){let o=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(o)){const[a,l]=Ec(!0,r);!n&&i.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=Ec(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function pr(e,t,n,r,s){try{return s.contents=Xo(e,t,n,r),!0}catch{return!1}}const b=js,I1=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M21.6004 11.9999C21.6004 17.3018 17.3023 21.5999 12.0004 21.5999C6.69846 21.5999 2.40039 17.3018 2.40039 11.9999C2.40039 6.69797 6.69846 2.3999 12.0004 2.3999C17.3023 2.3999 21.6004 6.69797 21.6004 11.9999ZM4.7973 11.9999C4.7973 15.9781 8.02224 19.203 12.0004 19.203C15.9785 19.203 19.2035 15.9781 19.2035 11.9999C19.2035 8.02175 15.9785 4.79681 12.0004 4.79681C8.02224 4.79681 4.7973 8.02175 4.7973 11.9999Z",fill:"white",fillOpacity:.3}),d("path",{d:"M12.0004 3.5999C12.0004 2.93716 12.5397 2.39218 13.1973 2.47481C14.0467 2.58154 14.8799 2.80166 15.6742 3.13066C16.8389 3.6131 17.8972 4.32024 18.7886 5.21168C19.6801 6.10312 20.3872 7.16142 20.8696 8.32614C21.1986 9.12042 21.4188 9.95357 21.5255 10.803C21.6081 11.4606 21.0631 11.9999 20.4004 11.9999V11.9999C19.7377 11.9999 19.2106 11.459 19.1006 10.8054C19.0107 10.2712 18.8606 9.74748 18.6523 9.24458C18.2905 8.37104 17.7601 7.57732 17.0916 6.90873C16.423 6.24015 15.6293 5.7098 14.7557 5.34797C14.2528 5.13966 13.7291 4.98955 13.1949 4.89967C12.5413 4.78973 12.0004 4.26264 12.0004 3.5999V3.5999Z",fill:"white"})),A1=e=>d("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 48 48",fill:"none",...e},d("g",{clipPath:"url(#clip0_389_3293)"},d("path",{d:"M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24ZM2.99705 24C2.99705 35.5996 12.4004 45.0029 24 45.0029C35.5996 45.0029 45.0029 35.5996 45.0029 24C45.0029 12.4004 35.5996 2.99705 24 2.99705C12.4004 2.99705 2.99705 12.4004 2.99705 24Z",fill:"currentColor",fillOpacity:.3}),d("path",{d:"M24 1.5C24 0.671573 24.6722 -0.00488373 25.499 0.0468592C28.138 0.212012 30.7352 0.812387 33.1844 1.82689C36.0962 3.033 38.742 4.80083 40.9706 7.02944C43.1992 9.25805 44.967 11.9038 46.1731 14.8156C47.1876 17.2648 47.788 19.862 47.9531 22.501C48.0049 23.3278 47.3284 24 46.5 24C45.6716 24 45.0056 23.3276 44.9465 22.5013C44.7858 20.2565 44.2652 18.0488 43.4015 15.9637C42.3461 13.4158 40.7993 11.1008 38.8492 9.15076C36.8992 7.20073 34.5842 5.65388 32.0364 4.59853C29.9512 3.73482 27.7435 3.21416 25.4987 3.05355C24.6724 2.99443 24 2.32843 24 1.5Z",fill:"currentColor"})),d("defs",null,d("clipPath",{id:"clip0_389_3293"},d("rect",{width:48,height:48,fill:"white"}))));function E1(e){const t=bt(e,1);return d(I1,t)}function Tc(e){const t=bt(e,1);return d(A1,t)}function $n(e){return d("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function rs(e){let t;const n=hn(s=>s.Phone,e.Support),r=hn(s=>s.Email,e.Support);return d("p",C(_([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=pe(I(()=>V(y(d("span",{children:[`Need help? Contact ${Ee(e.CompanyName,"your employer")}`]})),I(()=>V(n==null?r==null?y(d("span",{children:[" for assistance"]})):V(y(d("span",{children:[" at "]})),I(()=>{let s;return V((s=n,s==null?y(ee()):y(d("span",{children:[`${s}`]}))),I(()=>V(n!=null&&r!=null?y(d("span",{children:[" or "]})):y(ee()),I(()=>{const i=r;if(i==null)return y(ee());{const o=i;return y(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):V(y(d("span",{children:[" at "]})),I(()=>{let s;return V((s=n,s==null?y(ee()):y(d("span",{children:[`${s}`]}))),I(()=>V(n!=null&&r!=null?y(d("span",{children:[" or "]})):y(ee()),I(()=>{const i=r;if(i==null)return y(ee());{const o=i;return y(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),I(()=>y(d("span",{children:["."]})))))))),["children",b.Children.toArray(Array.from(t))])])))}function Ko(e,t,n,r){let s;return d("button",C(_([["className",`w-full sm:w-[240px] ${n?"bg-primary-dark":"bg-primary-base"} text-primary-text font-semibold text-base rounded-md flex items-center justify-center h-[42px] hover:bg-primary-hover ${Ee(e,"")}`],["type","button"],["onClick",i=>{t()}],["disabled",n],(s=pe(I(()=>n?y(E1([["className","animate-spin"]])):r)),["children",b.Children.toArray(Array.from(s))])])))}const T1=Tc([["className","text-primary-base animate-spin"]]),P1=e=>{kn(()=>{const t=e();return()=>{t.Dispose()}})},M1=(e,t)=>{kn(()=>{const n=e();return()=>{n.Dispose()}},t)},O1=e=>{xn(()=>{const t=e();return()=>{t.Dispose()}})},D1=P1,Pc=M1,N1=O1;function R1(e,t,n,r){const s=b.memo(e,te(Ee(Le(Pt,n),ee())));return Tn(i=>{e.displayName=i},ti(t)),i=>{const o=B1(r,i);return b.createElement(s,o)}}function B1(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function hi(e){return{Dispose(){e()}}}function L1(e){return b.useState(e)}function V1(e){D1(e)}function Qo(e,t){Pc(e,t)}function F1(e){N1(t=>(e(),hi(()=>{})))}function $r(e){const t=b.useRef(!1);ea(()=>{t.current||(t.current=!0,e())},[])}function W1(e){const t=b.useRef(void 0),n=b.useRef(!1),r=b.useRef(!1);n.current&&(r.current=!0),Qo(()=>{let s;return n.current?s=void 0:(n.current=!0,t.current=Ae(e()),s=r.current?t.current:void 0),{Dispose(){Tn(i=>{ae(i)},ti(s))}}},[])}function ea(e,t){Pc(n=>(e(),hi(()=>{})),t)}function j1(e,t){const n=Ee(t,[]);return b.useCallback(e,n)}function Mc(e){return b.useRef(e)}function U1(e,t,n){return R1(e,void 0,ei(n),ei(t))}function z1(e){const t=Mc(e),n=j1(r=>t.current(r),[]);return F1(()=>{t.current=e}),n}function mi(e){return b.useState(e)}function pi(e,t,n){const r=[b1([]),$n(e),d("p",{className:"text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8",children:t}),Ee(n,ee())];return d(Ie,{},...r)}function ta(e,t,n){return pi(e,t,Le(r=>{let s;return d("div",C(_([["className","mt-8"],(s=[rs(r)],["children",b.Children.toArray(Array.from(s))])])))},n))}function H1(e){let t;const n=e.reissueMagicLink,r=mi(!1);return pi("Too many Invalid Codes","We’ve temporarily locked mobile authentication for your account because you made too many attempts with an invalid security code.",d("div",C(_([["className","mt-1 sm:mt-8 text-base leading-7 text-gray-900 whitespace-pre-wrap"],(t=[d("span",{children:["Please wait 30 minutes before trying again, or "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:i=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",b.Children.toArray(Array.from(t))])]))))}function G1(){return pi("You don’t have access","It seems that you’re not authorised to access our application. If you believe this is an error, please contact your employer for assistance.",void 0)}function Oc(e){return ta("That link doesn’t look right","It looks like the link is incorrect or incomplete. We recommend going back to your invitation email and trying again.",e)}function Y1(e){return ta("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function q1(e){return ta("Invite expired","Your invite has now expired and you no longer have access.",e)}function na(){return pi("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const J1="workflows-app",ra="fade-in",sa=d("div",C(_([["className","w-full sm:max-w-[640px] mt-10 sm:mt-14 text-xs text-gray-500 text-center whitespace-pre-wrap space-y-4"],(()=>{let e,t;const n=[(e=_([(t="Flare provides workplace solutions to Australian businesses and their employees. All information collected is treated in accordance with our ",d("span",{children:[t]})),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/security",target:"_blank",rel:"noreferrer",children:"security standards"}),d("span",{children:[" and "]}),d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:"https://www.flarehr.com/privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${Bo(rc())} Flare. ABN 46 607 120 892.`]})];return["children",b.Children.toArray(Array.from(n))]})()])));function Z1(){let e,t;return d("div",C(_([["className",ye(" ",[ra,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",C(_([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[Tc([["className","h-12 w-12 text-primary-base animate-spin"]]),d("h1",{className:"mt-4 font-bold text-2xl leading-7 sm:text-3xl text-gray-900",children:"Authenticating your account"}),d("p",{className:"mt-6 sm:mt-8 text-lg leading-7 text-gray-900",children:"This may take a few seconds, please don’t close this window."})],["children",b.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:b.Children.toArray([sa])})],["children",b.Children.toArray(Array.from(e))])])))}const X1=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Dc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,K1=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Me(e){function t(r){return r.replace(Dc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(X1.test(n))return vp(n,"{","}","(",")");if(Dc.test(n))return t(n);if(K1.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 Q1(e,t){try{return t.contents=Me(e),!0}catch{return!1}}class e${constructor(t,n){const r=new Ke(ee());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const s=me(t);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();ia(r.contents,i[0],i[1])}}finally{ae(s)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return me(this)}GetEnumerator(){return me(Go(this.hashMap.values()))}[Symbol.iterator](){return Ur(me(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ia(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Nc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=$i(this,t[0]);let s;switch(r!=null&&O(x(r)[1],t[1])?(s=0,x(r)):s=1,s){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){o1((s,i)=>{_t(t,n+s,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Rc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=$i(n,t[0]);return r!=null?(O(x(r)[1],t[1])&&oa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){ia(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Vc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Bc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Lc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Yo(I(()=>ke(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return oa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const s=$i(this,t);if(s!=null){const i=x(s);return n.contents=i[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Yo(I(()=>ke(n=>n[1],t)))}get size(){return Rc(this)|0}clear(){Nc(this)}delete(t){return oa(this,t)}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return Bc(this,t)}has(t){return Vc(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){const r=this;return Lc(r,t,n),r}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function ss(e,t){const n=e.comparer.GetHashCode(t)|0;let r,s=ee();return r=[d1(e.hashMap,n,new Ke(()=>s,i=>{s=i})),s],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i[0]))]:[!1,n,-1]}function $i(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ns(e.hashMap,n[1])[n[2]];default:return}}function Nc(e){e.hashMap.clear()}function Rc(e){let t=0,n=me(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{ae(n)}return t|0}function Bc(e,t){const n=$i(e,t);if(n!=null)return x(n)[1];throw new Error("The item was not found in collection")}function Lc(e,t,n){const r=ss(e,t);r[0]?r[2]>-1?ns(e.hashMap,r[1])[r[2]]=[t,n]:ns(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function ia(e,t,n){const r=ss(e,t);if(r[0]){if(r[2]>-1)throw new Error(pc("An item with the same key has already been added. Key: {0}",t));ns(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Vc(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function oa(e,t){const n=ss(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ns(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function t$(e){return new m(0,[e])}function Fc(e){return new m(1,[e])}class m extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ct(e,t){return t.tag===0?t$(e(t.fields[0])):Fc(t.fields[0])}function Wc(e,t){return t.tag===0?e(t.fields[0]):Fc(t.fields[0])}const n$="#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ƒ£ē︳𐀡%𐀡",r$="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 s$(){const t=[...n$].map(i=>(i.codePointAt(0)??0)-35),n=[...r$].map(i=>(i.codePointAt(0)??0)-35),r=new Uint32Array(t),s=new Uint8Array(n);for(let i=1;i<r.length;++i)r[i]+=r[i-1];return i=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(i<u)o=l;else if(i===u){o=a=l;break}else u<i&&(a=l)}return s[a]}}const i$=256,o$=s$();function a$(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const aa=e=>u$(e,0);function l$(e,t){const n=a$(e,t);return o$(n)}function u$(e,t){return(1<<l$(e,t)&i$)!==0}function c$(e,t){const n=pp(ac(e),t);if(n!=null)return P(pe(I(()=>ke(r=>r||"",n))))}function f$(e){let t;const n=c$(".*?@(.*)",e);switch(n!=null?M(n)?t=1:M(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function jc(e,t){return $c(t)?new m(1,[Ue(je("%s cannot be null or empty"))(e)]):new m(0,[t])}function d$(e){const t=f$(e);if(t!=null){const n=t;return new m(0,[n])}else return new m(1,["Email is not in the correct format"])}const Mn=e=>({tag:"ok",value:e}),is=e=>({tag:"error",error:e});class He{constructor(t){this.uri=t}static isAbsoluteUri(t){try{return new URL(t),!0}catch{return!1}}static tryCreateWithKind(t,n){switch(n){case 1:return He.isAbsoluteUri(t)?Mn(new He({original:t,value:new URL(t),kind:n})):is("Invalid URI: The format of the URI could not be determined.");case 2:return He.isAbsoluteUri(t)?is("URI is not a relative path."):Mn(new He({original:t,value:t,kind:n}));case 0:return He.isAbsoluteUri(t)?Mn(new He({original:t,value:new URL(t),kind:1})):Mn(new He({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?is("Base URI should have Absolute kind"):typeof n=="string"?Mn(new He({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?Mn(new He({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):Mn(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?is("Kind must be specified when the baseUri is a string."):He.tryCreateWithKind(t,n):typeof n=="number"?is("Kind should not be specified when the baseUri is an absolute Uri."):He.tryCreateWithBase(t,n)}static create(t,n=1){const r=He.tryCreateImpl(t,n);switch(r.tag){case"ok":return r.value;case"error":throw new Error(r.error);default:return r}}static tryCreate(t,n=1,r){const s=He.tryCreateImpl(t,n);switch(s.tag){case"ok":return r.contents=s.value,!0;case"error":return!1;default:return s}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return this.uri.kind===1}get absoluteUri(){return this.asUrl().href}get scheme(){const t=this.asUrl().protocol;return t.slice(0,t.length-1)}get host(){const t=this.asUrl().host;return t.includes(":")?t.split(":")[0]:t}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get isDefaultPort(){return this.port===80}get port(){const t=this.asUrl().port;return t===""?80:parseInt(t)}get pathAndQuery(){const t=this.asUrl();return t.pathname+t.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class h$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function Uc(e){return new h$(e)}function zc(e){return e.fields[0]}class m$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function p$(e){return!Zr(e)}function Hc(e){return p$(e)?new m(0,[new m$(e)]):new m(1,["Invalid invite code format."])}class Gc extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class $$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class g$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class Yc extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}class w$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class y$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const qc=e=>Ct(t=>new w$(t),Wc(d$,jc("Email",e)));function _$(e){return e.fields[0]}const Jc=e=>Ct(t=>new y$(t),jc("Phone",e));function v$(e){return e.fields[0]}function Zc(e){return Zr(e)?new m(1,["Invalid company name."]):new m(0,[new g$(e)])}function os(e){return e.fields[0]}function b$(e){try{const t=He.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function Xc(e){return b$(e)[0]?new m(0,[new $$(e)]):new m(1,["Invalid logo url."])}function C$(e){return e.fields[0]}class S$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function k$(e){return new S$(e)}class x$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}class I$ extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}class Nt extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Rt extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ye=new Rt(new Nt("personal-details"),"Personal Details","apollo-personal-details-app"),pt=new Rt(new Nt("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),$t=new Rt(new Nt("bank"),"Bank","bank-component"),gt=new Rt(new Nt("tax"),"Tax","tax-component"),Oe=new Rt(new Nt("super"),"Super","super-selection-app"),On=new Rt(new Nt("app-workplace-linking"),"App Workplace Linking","workplace-link"),A$=new Nt("benefits-onboarding"),as=new Rt(A$,"Benefits","benefits-onboarding"),qt=new Rt(new Nt("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),Dn=new Rt(new Nt("Benefits-Discrete"),"Benefits","benefits-onboarding");function Kc(e){return new Nt(e)}function ls(e){return e.fields[0]}class De extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Ne extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Qc=new Ne(new De(Me("00000000-0000-0000-0000-000000000000")),"onboarding-default",_([$t,gt,Oe])),ef=new Ne(new De(Me("00000000-0000-0000-0000-000000000001")),"PEBTS",_([Ye,pt,$t,gt,Oe])),tf=new Ne(new De(Me("00000000-0000-0000-0000-000000000002")),"PS",_([Ye,Oe])),nf=new Ne(new De(Me("00000000-0000-0000-0000-000000000003")),"BS",_([$t,Oe])),rf=new Ne(new De(Me("00000000-0000-0000-0000-000000000004")),"Super",A(Oe)),la=new Ne(new De(Me("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",A(On)),sf=new Ne(new De(Me("00000000-0000-0000-0000-000000000005")),"Tax",A(gt)),of=new Ne(new De(Me("00000000-0000-0000-0000-000000000006")),"PBTS",_([Ye,$t,gt,Oe])),af=new Ne(new De(Me("00000000-0000-0000-0000-000000000007")),"PEBTSPo",_([Ye,pt,$t,gt,Oe,qt])),lf=new Ne(new De(Me("00000000-0000-0000-0000-000000000008")),"PEBSPo",_([Ye,pt,$t,Oe,qt])),uf=new Ne(new De(Me("00000000-0000-0000-0000-000000000009")),"PESPo",_([Ye,pt,Oe,qt])),cf=new Ne(new De(Me("00000000-0000-0000-0000-000000000010")),"PETSPo",_([Ye,pt,gt,Oe,qt])),ua=new Ne(new De(Me("00000000-0000-0000-0002-000000000000")),"Bo",A(Dn)),ff=new Ne(new De(Me("00000000-0000-0000-0000-000000000011")),"PETS",_([Ye,pt,gt,Oe])),df=new Ne(new De(Me("00000000-0000-0000-0000-000000000012")),"PEBS",_([Ye,pt,$t,Oe])),hf=new Ne(new De(Me("00000000-0000-0000-0000-000000000013")),"PES",_([Ye,pt,Oe])),mf=new Ne(new De(Me("00000000-0000-0000-0000-000000000014")),"PBTSPo",_([Ye,$t,gt,Oe,qt])),E$=new e$([[Qc.Id,Qc],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[rf.Id,rf],[la.Id,la],[sf.Id,sf],[of.Id,of],[af.Id,af],[lf.Id,lf],[uf.Id,uf],[cf.Id,cf],[ua.Id,ua],[ff.Id,ff],[df.Id,df],[hf.Id,hf],[mf.Id,mf]],{Equals:O,GetHashCode:Ao});function T$(e){return O(e,ua)?!1:!O(e,la)}function P$(e){const t=new De(e);return En(t,E$.keys(),{Equals:O,GetHashCode:Ao})?new m(0,[t]):new m(1,[Ue(cc("Invalid Type %A%P()",[e]))])}function pf(e){return e.fields[0]}class $f extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class us extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function ca(e){return e.tag===2}class M$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function gf(e){return new M$(e)}function gr(e){return e.fields[0]}class O$ extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}class D$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class N$ extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function R$(e){return Zr(e)?new m(1,["Tag name is empty"]):e.length<100?new m(0,[new D$(e)]):new m(1,["Tag name is too long"])}function B$(e){return Zr(e)?new m(1,["Tag value is empty"]):e.length<100?new m(0,[new N$(e)]):new m(1,["Tag value is too long"])}function L$(e,t){const n=R$(e);if(n.tag===1)return new m(1,[n.fields[0]]);{const r=B$(t);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new O$(n.fields[0],r.fields[0])])}}class V$ extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class F$ extends B{constructor(t){super(),this.BenefitsOnboarding=t}}class wr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class wf extends B{constructor(t){super(),this.Category=t}}class yf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function W$(e,t){const n=es(i=>O(i.Id,e),t.Configuration.Steps),r=Ue(cc("Invalid ProcessStep Id %A%P()",[e])),s=n;return s==null?new m(1,[r]):new m(0,[s])}function j$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return ce();default:{const n=tt(r=>r[0],t.fields[0].CompletedSteps);return Uo(r=>Hp(r.Id,n,{Equals:O,GetHashCode:Ao}),e.Configuration.Steps)}}}function _f(){return Ku(document.getElementById("external-loading-page-container"))}function vf(){return _f()!=null}function U$(){let e,t;const n=_f();Tn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),ti(n))}var Nn=[],z$=function(){return Nn.some(function(e){return e.activeTargets.length>0})},H$=function(){return Nn.some(function(e){return e.skippedTargets.length>0})},bf="ResizeObserver loop completed with undelivered notifications.",G$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:bf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=bf),window.dispatchEvent(e)},cs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(cs||(cs={}));var Rn=function(e){return Object.freeze(e)},Y$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Rn(this)}return e}(),Cf=function(){function e(t,n,r,s){return this.x=t,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Rn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,s=t.top,i=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:s,right:i,bottom:o,left:a,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),fa=function(e){return e instanceof SVGElement&&"getBBox"in e},Sf=function(e){if(fa(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var s=e,i=s.offsetWidth,o=s.offsetHeight;return!(i||o||e.getClientRects().length)},kf=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},q$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},fs=typeof window<"u"?window:{},gi=new WeakMap,xf=/auto|scroll/,J$=/^tb|vertical/,Z$=/msie|trident/i.test(fs.navigator&&fs.navigator.userAgent),Bt=function(e){return parseFloat(e||"0")},yr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Y$((n?t:e)||0,(n?e:t)||0)},If=Rn({devicePixelContentBoxSize:yr(),borderBoxSize:yr(),contentBoxSize:yr(),contentRect:new Cf(0,0,0,0)}),Af=function(e,t){if(t===void 0&&(t=!1),gi.has(e)&&!t)return gi.get(e);if(Sf(e))return gi.set(e,If),If;var n=getComputedStyle(e),r=fa(e)&&e.ownerSVGElement&&e.getBBox(),s=!Z$&&n.boxSizing==="border-box",i=J$.test(n.writingMode||""),o=!r&&xf.test(n.overflowY||""),a=!r&&xf.test(n.overflowX||""),l=r?0:Bt(n.paddingTop),u=r?0:Bt(n.paddingRight),f=r?0:Bt(n.paddingBottom),c=r?0:Bt(n.paddingLeft),p=r?0:Bt(n.borderTopWidth),h=r?0:Bt(n.borderRightWidth),$=r?0:Bt(n.borderBottomWidth),g=r?0:Bt(n.borderLeftWidth),w=c+u,v=l+f,S=g+h,N=p+$,K=a?e.offsetHeight-N-e.clientHeight:0,Q=o?e.offsetWidth-S-e.clientWidth:0,xe=s?w+S:0,rt=s?v+N:0,Re=r?r.width:Bt(n.width)-xe-Q,Be=r?r.height:Bt(n.height)-rt-K,Xe=Re+w+Q+S,T=Be+v+K+N,Y=Rn({devicePixelContentBoxSize:yr(Math.round(Re*devicePixelRatio),Math.round(Be*devicePixelRatio),i),borderBoxSize:yr(Xe,T,i),contentBoxSize:yr(Re,Be,i),contentRect:new Cf(c,l,Re,Be)});return gi.set(e,Y),Y},Ef=function(e,t,n){var r=Af(e,n),s=r.borderBoxSize,i=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case cs.DEVICE_PIXEL_CONTENT_BOX:return o;case cs.BORDER_BOX:return s;default:return i}},X$=function(){function e(t){var n=Af(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Rn([n.borderBoxSize]),this.contentBoxSize=Rn([n.contentBoxSize]),this.devicePixelContentBoxSize=Rn([n.devicePixelContentBoxSize])}return e}(),Tf=function(e){if(Sf(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},K$=function(){var e=1/0,t=[];Nn.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new X$(u.target),c=Tf(u.target);a.push(f),u.lastReportedSize=Ef(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var s=r[n];s()}return e},Pf=function(e){Nn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Tf(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},Q$=function(){var e=0;for(Pf(e);z$();)e=K$(),Pf(e);return H$()&&G$(),e>0},da,Mf=[],eg=function(){return Mf.splice(0).forEach(function(e){return e()})},tg=function(e){if(!da){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return eg()}).observe(n,r),da=function(){n.textContent="".concat(t?t--:t++)}}Mf.push(e),da()},ng=function(e){tg(function(){requestAnimationFrame(e)})},wi=0,rg=function(){return!!wi},sg=250,ig={attributes:!0,characterData:!0,childList:!0,subtree:!0},Of=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Df=function(e){return e===void 0&&(e=0),Date.now()+e},ha=!1,og=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sg),!ha){ha=!0;var r=Df(t);ng(function(){var s=!1;try{s=Q$()}finally{if(ha=!1,t=r-Df(),!rg())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ig)};document.body?n():fs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Of.forEach(function(n){return fs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Of.forEach(function(n){return fs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ma=new og,Nf=function(e){!wi&&e>0&&ma.start(),wi+=e,!wi&&ma.stop()},ag=function(e){return!fa(e)&&!q$(e)&&getComputedStyle(e).display==="inline"},lg=function(){function e(t,n){this.target=t,this.observedBox=n||cs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ef(this.target,this.observedBox,!0);return ag(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ug=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),yi=new WeakMap,Rf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},_i=function(){function e(){}return e.connect=function(t,n){var r=new ug(t,n);yi.set(t,r)},e.observe=function(t,n,r){var s=yi.get(t),i=s.observationTargets.length===0;Rf(s.observationTargets,n)<0&&(i&&Nn.push(s),s.observationTargets.push(new lg(n,r&&r.box)),Nf(1),ma.schedule())},e.unobserve=function(t,n){var r=yi.get(t),s=Rf(r.observationTargets,n),i=r.observationTargets.length===1;s>=0&&(i&&Nn.splice(Nn.indexOf(r),1),r.observationTargets.splice(s,1),Nf(-1))},e.disconnect=function(t){var n=this,r=yi.get(t);r.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Bf=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");_i.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kf(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");_i.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kf(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");_i.unobserve(this,t)},e.prototype.disconnect=function(){_i.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class cg{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class ds extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ds.prototype)}}class pa{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>pa.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Lt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ds);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(qs(n))}});else try{e(t)}catch(n){t.onError(qs(n))}}}function fg(e,t){return Lt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(qs(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function dg(e){return Lt(t=>t.onSuccess(e))}class hg{Bind(t,n){return fg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Lt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const i=n(s.value);return s=r.next(),i}))}Return(t){return dg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Lt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Lt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(i){r.onError(qs(i))}}})})}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 Lt(t=>t.onSuccess(void 0))}}const E=new hg;function mg(e){return new Lf(0,[e])}function pg(e){return new Lf(1,[e])}class Lf extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class $a extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function $g(e){return mg(e)}function gg(e){return pg(e)}function ga(e){}function wg(e){return Lt(t=>e()(t))}function yg(e){return Wf(t=>e.then(t[0]).catch(n=>(n instanceof ds?t[2]:t[1])(n)))}const Vf=new cg;function Ff(e){return Lt(t=>{e({onSuccess:n=>t.onSuccess($g(n)),onError:n=>t.onSuccess(gg(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Wf(e){return Lt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function _g(e){return wg(()=>yg(Promise.all(Array.from(e,t=>bg(t)))))}function vi(e){return Lt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ds)})})}function vg(e,t){return Uf(e,t)}function jf(e,t){return vg(e,t)}function Uf(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const i=new pa;e({onSuccess:t||ga,onError:n||ga,onCancel:r||ga,cancelToken:s||Vf,trampoline:i})}function bg(e,t){return new Promise((n,r)=>Uf(e,n,r,r,Vf))}class zf extends B{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function Cg(e){return new zf(gr(e.Id),e.Configuration.Name,pf(e.Configuration.Id))}function Sg(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function kg(e,t,n,r){const s={};return s.type="workflowSubmitSuccess",s.sender="flare",s.workflow=new zf(gr(e),t,pf(n)),s.profileId=zc(r),s}function xg(e,t,n,r){const s={};return s.type="stepSubmitSuccess",s.sender="flare",s.workflow=Cg(n),s.profileId=zc(r),s.step={name:t,type:ls(e)},s}function Ig(){const e={};return e.type="appReady",e.sender="flare",e}function bi(e){vf()||window.parent.postMessage(e,"*")}function Ag(e,t){jf(E.Delay(()=>E.Bind(vi(e),()=>(t(),E.Zero()))))}function wa(){bi(Sg(document.body.offsetHeight,-1))}function Eg(){(window.ResizeObserver?new window.ResizeObserver(()=>{wa()}):new Bf(()=>{wa()})).observe(document.body)}function Tg(e,t,n){const r=W$(e,t);r.tag===1||bi(xg(e,r.fields[0].DisplayName,t,n))}function ya(e,t,n,r){bi(kg(e,t,n,r))}function Jt(e){vf()&&Ag(e,()=>{U$(),bi(Ig()),wa()})}/*!
4
4
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
5
5
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
6
6
  * Copyright 2022 Fonticons, Inc.
7
- */function zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zf(Object(n),!0).forEach(function(r){Tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function Ig(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ag(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eg(e,t,n){return t&&Ag(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){return Mg(e)||Dg(e,t)||Hf(e,t)||Rg()}function Ci(e){return Pg(e)||Og(e)||Hf(e)||Ng()}function Pg(e){if(Array.isArray(e))return _a(e)}function Mg(e){if(Array.isArray(e))return e}function Og(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Hf(e,t){if(e){if(typeof e=="string")return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(e,t)}}function _a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ng(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Gf=function(){},va={},Yf={},qf=null,Jf={mark:Gf,measure:Gf};try{typeof window<"u"&&(va=window),typeof document<"u"&&(Yf=document),typeof MutationObserver<"u"&&(qf=MutationObserver),typeof performance<"u"&&(Jf=performance)}catch{}var Bg=va.navigator||{},Zf=Bg.userAgent,Xf=Zf===void 0?"":Zf,mn=va,we=Yf,Kf=qf,Si=Jf;mn.document;var Jt=!!we.documentElement&&!!we.head&&typeof we.addEventListener=="function"&&typeof we.createElement=="function",Qf=~Xf.indexOf("MSIE")||~Xf.indexOf("Trident/"),Zt="___FONT_AWESOME___",ba=16,ed="fa",td="svg-inline--fa",Bn="data-fa-i2svg",Ca="data-fa-pseudo-element",Lg="data-fa-pseudo-element-pending",Sa="data-prefix",ka="data-icon",nd="fontawesome-i2svg",Vg="async",Fg=["HTML","HEAD","STYLE","SCRIPT"],rd=function(){try{return!0}catch{return!1}}(),xa={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},ki={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},sd={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Wg={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},jg=/fa[srltdbk]?[\-\ ]/,id="fa-layers-text",Ug=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,zg={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},od=[1,2,3,4,5,6,7,8,9,10],Hg=od.concat([11,12,13,14,15,16,17,18,19,20]),Gg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ln={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Yg=[].concat(Ci(Object.keys(ki)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ln.GROUP,Ln.SWAP_OPACITY,Ln.PRIMARY,Ln.SECONDARY]).concat(od.map(function(e){return"".concat(e,"x")})).concat(Hg.map(function(e){return"w-".concat(e)})),ad=mn.FontAwesomeConfig||{};function qg(e){var t=we.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Jg(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(we&&typeof we.querySelector=="function"){var Zg=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Zg.forEach(function(e){var t=ya(e,2),n=t[0],r=t[1],s=Jg(qg(n));s!=null&&(ad[r]=s)})}var Xg={familyPrefix:ed,styleDefault:"solid",replacementClass:td,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},hs=D(D({},Xg),ad);hs.autoReplaceSvg||(hs.observeMutations=!1);var F={};Object.keys(hs).forEach(function(e){Object.defineProperty(F,e,{enumerable:!0,set:function(n){hs[e]=n,xi.forEach(function(r){return r(F)})},get:function(){return hs[e]}})}),mn.FontAwesomeConfig=F;var xi=[];function Kg(e){return xi.push(e),function(){xi.splice(xi.indexOf(e),1)}}var pn=ba,Vt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Qg(e){if(!(!e||!Jt)){var t=we.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=we.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return we.head.insertBefore(t,r),e}}var ew="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ms(){for(var e=12,t="";e-- >0;)t+=ew[Math.random()*62|0];return t}function yr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ia(e){return e.classList?yr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ld(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tw(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(ld(e[n]),'" ')},"").trim()}function Ii(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Aa(e){return e.size!==Vt.size||e.x!==Vt.x||e.y!==Vt.y||e.rotate!==Vt.rotate||e.flipX||e.flipY}function nw(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:l,path:u}}function rw(e){var t=e.transform,n=e.width,r=n===void 0?ba:n,s=e.height,i=s===void 0?ba:s,o=e.startCentered,a=o===void 0?!1:o,l="";return a&&Qf?l+="translate(".concat(t.x/pn-r/2,"em, ").concat(t.y/pn-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/pn,"em), calc(-50% + ").concat(t.y/pn,"em)) "):l+="translate(".concat(t.x/pn,"em, ").concat(t.y/pn,"em) "),l+="scale(".concat(t.size/pn*(t.flipX?-1:1),", ").concat(t.size/pn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var sw=`:root, :host {
7
+ */function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(n),!0).forEach(function(r){Dg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ci(e){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ci(e)}function Pg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Og(e,t,n){return t&&Mg(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _a(e,t){return Rg(e)||Lg(e,t)||Gf(e,t)||Fg()}function Si(e){return Ng(e)||Bg(e)||Gf(e)||Vg()}function Ng(e){if(Array.isArray(e))return va(e)}function Rg(e){if(Array.isArray(e))return e}function Bg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Gf(e,t){if(e){if(typeof e=="string")return va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return va(e,t)}}function va(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yf=function(){},ba={},qf={},Jf=null,Zf={mark:Yf,measure:Yf};try{typeof window<"u"&&(ba=window),typeof document<"u"&&(qf=document),typeof MutationObserver<"u"&&(Jf=MutationObserver),typeof performance<"u"&&(Zf=performance)}catch{}var Wg=ba.navigator||{},Xf=Wg.userAgent,Kf=Xf===void 0?"":Xf,gn=ba,we=qf,Qf=Jf,ki=Zf;gn.document;var Zt=!!we.documentElement&&!!we.head&&typeof we.addEventListener=="function"&&typeof we.createElement=="function",ed=~Kf.indexOf("MSIE")||~Kf.indexOf("Trident/"),Xt="___FONT_AWESOME___",Ca=16,td="fa",nd="svg-inline--fa",Bn="data-fa-i2svg",Sa="data-fa-pseudo-element",jg="data-fa-pseudo-element-pending",ka="data-prefix",xa="data-icon",rd="fontawesome-i2svg",Ug="async",zg=["HTML","HEAD","STYLE","SCRIPT"],sd=function(){try{return!0}catch{return!1}}(),Ia={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},xi={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},id={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},Hg={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},Gg=/fa[srltdbk]?[\-\ ]/,od="fa-layers-text",Yg=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,qg={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},ad=[1,2,3,4,5,6,7,8,9,10],Jg=ad.concat([11,12,13,14,15,16,17,18,19,20]),Zg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ln={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Xg=[].concat(Si(Object.keys(xi)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ln.GROUP,Ln.SWAP_OPACITY,Ln.PRIMARY,Ln.SECONDARY]).concat(ad.map(function(e){return"".concat(e,"x")})).concat(Jg.map(function(e){return"w-".concat(e)})),ld=gn.FontAwesomeConfig||{};function Kg(e){var t=we.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Qg(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(we&&typeof we.querySelector=="function"){var ew=[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];ew.forEach(function(e){var t=_a(e,2),n=t[0],r=t[1],s=Qg(Kg(n));s!=null&&(ld[r]=s)})}var tw={familyPrefix:td,styleDefault:"solid",replacementClass:nd,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},hs=D(D({},tw),ld);hs.autoReplaceSvg||(hs.observeMutations=!1);var F={};Object.keys(hs).forEach(function(e){Object.defineProperty(F,e,{enumerable:!0,set:function(n){hs[e]=n,Ii.forEach(function(r){return r(F)})},get:function(){return hs[e]}})}),gn.FontAwesomeConfig=F;var Ii=[];function nw(e){return Ii.push(e),function(){Ii.splice(Ii.indexOf(e),1)}}var wn=Ca,Vt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rw(e){if(!(!e||!Zt)){var t=we.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=we.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return we.head.insertBefore(t,r),e}}var sw="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ms(){for(var e=12,t="";e-- >0;)t+=sw[Math.random()*62|0];return t}function _r(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Aa(e){return e.classList?_r(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ud(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function iw(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(ud(e[n]),'" ')},"").trim()}function Ai(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ea(e){return e.size!==Vt.size||e.x!==Vt.x||e.y!==Vt.y||e.rotate!==Vt.rotate||e.flipX||e.flipY}function ow(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:l,path:u}}function aw(e){var t=e.transform,n=e.width,r=n===void 0?Ca:n,s=e.height,i=s===void 0?Ca:s,o=e.startCentered,a=o===void 0?!1:o,l="";return a&&ed?l+="translate(".concat(t.x/wn-r/2,"em, ").concat(t.y/wn-i/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/wn,"em), calc(-50% + ").concat(t.y/wn,"em)) "):l+="translate(".concat(t.x/wn,"em, ").concat(t.y/wn,"em) "),l+="scale(".concat(t.size/wn*(t.flipX?-1:1),", ").concat(t.size/wn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var lw=`:root, :host {
10
10
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
11
11
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
12
12
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -757,14 +757,14 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
757
757
  .fad.fa-inverse,
758
758
  .fa-duotone.fa-inverse {
759
759
  color: var(--fa-inverse, #fff);
760
- }`;function ud(){var e=ed,t=td,n=F.familyPrefix,r=F.replacementClass,s=sw;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return s}var cd=!1;function Ea(){F.autoAddCss&&!cd&&(Qg(ud()),cd=!0)}var iw={mixout:function(){return{dom:{css:ud,insertCss:Ea}}},hooks:function(){return{beforeDOMElementCreation:function(){Ea()},beforeI2svg:function(){Ea()}}}},Xt=mn||{};Xt[Zt]||(Xt[Zt]={}),Xt[Zt].styles||(Xt[Zt].styles={}),Xt[Zt].hooks||(Xt[Zt].hooks={}),Xt[Zt].shims||(Xt[Zt].shims=[]);var St=Xt[Zt],fd=[],ow=function e(){we.removeEventListener("DOMContentLoaded",e),Ai=1,fd.map(function(t){return t()})},Ai=!1;Jt&&(Ai=(we.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(we.readyState),Ai||we.addEventListener("DOMContentLoaded",ow));function aw(e){Jt&&(Ai?setTimeout(e,0):fd.push(e))}function ps(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,s=e.children,i=s===void 0?[]:s;return typeof e=="string"?ld(e):"<".concat(t," ").concat(tw(r),">").concat(i.map(ps).join(""),"</").concat(t,">")}function dd(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ta=function(t,n,r,s){var i=Object.keys(t),o=i.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[i[0]]):(l=0,f=r);l<o;l++)u=i[l],f=a(f,t[u],u,t);return f};function lw(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((s&1023)<<10)+(i&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Pa(e){var t=lw(e);return t.length===1?t[0].toString(16):null}function uw(e,t){var n=e.length,r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function hd(e){return Object.keys(e).reduce(function(t,n){var r=e[n],s=!!r.icon;return s?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ma(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,s=r===void 0?!1:r,i=hd(t);typeof St.hooks.addPack=="function"&&!s?St.hooks.addPack(e,hd(t)):St.styles[e]=D(D({},St.styles[e]||{}),i),e==="fas"&&Ma("fa",t)}var $s=St.styles,cw=St.shims,fw=Object.values(sd),Oa=null,md={},pd={},$d={},gd={},wd={},dw=Object.keys(xa);function hw(e){return~Yg.indexOf(e)}function mw(e,t){var n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!hw(s)?s:null}var yd=function(){var t=function(i){return Ta($s,function(o,a,l){return o[l]=Ta(a,i,{}),o},{})};md=t(function(s,i,o){if(i[3]&&(s[i[3]]=o),i[2]){var a=i[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){s[l.toString(16)]=o})}return s}),pd=t(function(s,i,o){if(s[o]=o,i[2]){var a=i[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){s[l]=o})}return s}),wd=t(function(s,i,o){var a=i[2];return s[o]=o,a.forEach(function(l){s[l]=o}),s});var n="far"in $s||F.autoFetchSvg,r=Ta(cw,function(s,i){var o=i[0],a=i[1],l=i[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(s.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:a,iconName:l}),s},{names:{},unicodes:{}});$d=r.names,gd=r.unicodes,Oa=Ei(F.styleDefault)};Kg(function(e){Oa=Ei(e.styleDefault)}),yd();function Da(e,t){return(md[e]||{})[t]}function pw(e,t){return(pd[e]||{})[t]}function _r(e,t){return(wd[e]||{})[t]}function _d(e){return $d[e]||{prefix:null,iconName:null}}function $w(e){var t=gd[e],n=Da("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return Oa}var Na=function(){return{prefix:null,iconName:null,rest:[]}};function Ei(e){var t=xa[e],n=ki[e]||ki[t],r=e in St.styles?e:null;return n||r||null}function Ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,s=null,i=e.reduce(function(o,a){var l=mw(F.familyPrefix,a);if($s[a]?(a=fw.includes(a)?Wg[a]:a,s=a,o.prefix=a):dw.indexOf(a)>-1?(s=a,o.prefix=Ei(a)):l?o.iconName=l:a!==F.replacementClass&&o.rest.push(a),!r&&o.prefix&&o.iconName){var u=s==="fa"?_d(o.iconName):{},f=_r(o.prefix,o.iconName);u.prefix&&(s=null),o.iconName=u.iconName||f||o.iconName,o.prefix=u.prefix||o.prefix,o.prefix==="far"&&!$s.far&&$s.fas&&!F.autoFetchSvg&&(o.prefix="fas")}return o},Na());return(i.prefix==="fa"||s==="fa")&&(i.prefix=$n()||"fas"),i}var gw=function(){function e(){Ig(this,e),this.definitions={}}return Eg(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];var o=s.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(a){n.definitions[a]=D(D({},n.definitions[a]||{}),o[a]),Ma(a,o[a]);var l=sd[a];l&&Ma(l,o[a]),yd()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var s=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(s).map(function(i){var o=s[i],a=o.prefix,l=o.iconName,u=o.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}]),e}(),vd=[],vr={},br={},ww=Object.keys(br);function yw(e,t){var n=t.mixoutsTo;return vd=e,vr={},Object.keys(br).forEach(function(r){ww.indexOf(r)===-1&&delete br[r]}),vd.forEach(function(r){var s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(function(o){typeof s[o]=="function"&&(n[o]=s[o]),bi(s[o])==="object"&&Object.keys(s[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){vr[o]||(vr[o]=[]),vr[o].push(i[o])})}r.provides&&r.provides(br)}),n}function Ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var i=vr[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function Vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=vr[e]||[];s.forEach(function(i){i.apply(null,n)})}function Kt(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return br[e]?br[e].apply(null,t):void 0}function Ba(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$n();if(t)return t=_r(n,t)||t,dd(bd.definitions,n,t)||dd(St.styles,n,t)}var bd=new gw,_w=function(){F.autoReplaceSvg=!1,F.observeMutations=!1,Vn("noAuto")},vw={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Jt?(Vn("beforeI2svg",t),Kt("pseudoElements2svg",t),Kt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,aw(function(){Cw({autoReplaceSvgRoot:n}),Vn("watch",t)})}},bw={icon:function(t){if(t===null)return null;if(bi(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:_r(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ei(t[0]);return{prefix:r,iconName:_r(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.familyPrefix,"-"))>-1||t.match(jg))){var s=Ti(t.split(" "),{skipLookups:!0});return{prefix:s.prefix||$n(),iconName:_r(s.prefix,s.iconName)||s.iconName}}if(typeof t=="string"){var i=$n();return{prefix:i,iconName:_r(i,t)||t}}}},at={noAuto:_w,config:F,dom:vw,parse:bw,library:bd,findIconDefinition:Ba,toHtml:ps},Cw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?we:n;(Object.keys(St.styles).length>0||F.autoFetchSvg)&&Jt&&F.autoReplaceSvg&&at.dom.i2svg({node:r})};function Pi(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ps(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Jt){var r=we.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Sw(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,i=e.styles,o=e.transform;if(Aa(o)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};s.style=Ii(D(D({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function kw(e){var t=e.prefix,n=e.iconName,r=e.children,s=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(F.familyPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:D(D({},s),{},{id:o}),children:r}]}]}function La(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,i=e.iconName,o=e.transform,a=e.symbol,l=e.title,u=e.maskId,f=e.titleId,c=e.extra,p=e.watchable,h=p===void 0?!1:p,$=r.found?r:n,g=$.width,w=$.height,v=s==="fak",S=[F.replacementClass,i?"".concat(F.familyPrefix,"-").concat(i):""].filter(function(Be){return c.classes.indexOf(Be)===-1}).filter(function(Be){return Be!==""||!!Be}).concat(c.classes).join(" "),N={children:[],attributes:D(D({},c.attributes),{},{"data-prefix":s,"data-icon":i,class:S,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},K=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};h&&(N.attributes[Bn]=""),l&&(N.children.push({tag:"title",attributes:{id:N.attributes["aria-labelledby"]||"title-".concat(f||ms())},children:[l]}),delete N.attributes.title);var Q=D(D({},N),{},{prefix:s,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:a,styles:D(D({},K),c.styles)}),xe=r.found&&n.found?Kt("generateAbstractMask",Q)||{children:[],attributes:{}}:Kt("generateAbstractIcon",Q)||{children:[],attributes:{}},rt=xe.children,Re=xe.attributes;return Q.children=rt,Q.attributes=Re,a?kw(Q):Sw(Q)}function Cd(e){var t=e.content,n=e.width,r=e.height,s=e.transform,i=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,u=D(D(D({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[Bn]="");var f=D({},o.styles);Aa(s)&&(f.transform=rw({transform:s,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var c=Ii(f);c.length>0&&(u.style=c);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function xw(e){var t=e.content,n=e.title,r=e.extra,s=D(D(D({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Ii(r.styles);i.length>0&&(s.style=i);var o=[];return o.push({tag:"span",attributes:s,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Va=St.styles;function Fa(e){var t=e[0],n=e[1],r=e.slice(4),s=ya(r,1),i=s[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var Iw={found:!1,width:512,height:512};function Aw(e,t){!rd&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Wa(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=$n()),new Promise(function(r,s){if(Kt("missingIconAbstract"),n==="fa"){var i=_d(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Va[t]&&Va[t][e]){var o=Va[t][e];return r(Fa(o))}Aw(e,t),r(D(D({},Iw),{},{icon:F.showMissingIcons&&e?Kt("missingIconAbstract")||{}:{}}))})}var Sd=function(){},ja=F.measurePerformance&&Si&&Si.mark&&Si.measure?Si:{mark:Sd,measure:Sd},gs='FA "6.1.2"',Ew=function(t){return ja.mark("".concat(gs," ").concat(t," begins")),function(){return kd(t)}},kd=function(t){ja.mark("".concat(gs," ").concat(t," ends")),ja.measure("".concat(gs," ").concat(t),"".concat(gs," ").concat(t," begins"),"".concat(gs," ").concat(t," ends"))},Ua={begin:Ew,end:kd},Mi=function(){};function xd(e){var t=e.getAttribute?e.getAttribute(Bn):null;return typeof t=="string"}function Tw(e){var t=e.getAttribute?e.getAttribute(Sa):null,n=e.getAttribute?e.getAttribute(ka):null;return t&&n}function Pw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function Mw(){if(F.autoReplaceSvg===!0)return Oi.replace;var e=Oi[F.autoReplaceSvg];return e||Oi.replace}function Ow(e){return we.createElementNS("http://www.w3.org/2000/svg",e)}function Dw(e){return we.createElement(e)}function Id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Ow:Dw:n;if(typeof e=="string")return we.createTextNode(e);var s=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){s.appendChild(Id(o,{ceFn:r}))}),s}function Nw(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Oi={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(s){n.parentNode.insertBefore(Id(s),n)}),n.getAttribute(Bn)===null&&F.keepOriginalSource){var r=we.createComment(Nw(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Ia(n).indexOf(F.replacementClass))return Oi.replace(t);var s=new RegExp("".concat(F.familyPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(s)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(a){return ps(a)}).join(`
761
- `);n.setAttribute(Bn,""),n.innerHTML=o}};function Ad(e){e()}function Ed(e,t){var n=typeof t=="function"?t:Mi;if(e.length===0)n();else{var r=Ad;F.mutateApproach===Vg&&(r=mn.requestAnimationFrame||Ad),r(function(){var s=Mw(),i=Ua.begin("mutate");e.map(s),i(),n()})}}var za=!1;function Td(){za=!0}function Ha(){za=!1}var Di=null;function Pd(e){if(Kf&&F.observeMutations){var t=e.treeCallback,n=t===void 0?Mi:t,r=e.nodeCallback,s=r===void 0?Mi:r,i=e.pseudoElementsCallback,o=i===void 0?Mi:i,a=e.observeMutationsRoot,l=a===void 0?we:a;Di=new Kf(function(u){if(!za){var f=$n();yr(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!xd(c.addedNodes[0])&&(F.searchPseudoElements&&o(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&F.searchPseudoElements&&o(c.target.parentNode),c.type==="attributes"&&xd(c.target)&&~Gg.indexOf(c.attributeName))if(c.attributeName==="class"&&Tw(c.target)){var p=Ti(Ia(c.target)),h=p.prefix,$=p.iconName;c.target.setAttribute(Sa,h||f),$&&c.target.setAttribute(ka,$)}else Pw(c.target)&&s(c.target)})}}),Jt&&Di.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Rw(){Di&&Di.disconnect()}function Bw(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,s){var i=s.split(":"),o=i[0],a=i.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function Lw(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",s=Ti(Ia(e));return s.prefix||(s.prefix=$n()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=pw(s.prefix,e.innerText)||Da(s.prefix,Pa(e.innerText))),!s.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Vw(e){var t=yr(e.attributes).reduce(function(s,i){return s.name!=="class"&&s.name!=="style"&&(s[i.name]=i.value),s},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||ms()):(t["aria-hidden"]="true",t.focusable="false")),t}function Fw(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Vt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Md(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Lw(e),r=n.iconName,s=n.prefix,i=n.rest,o=Vw(e),a=Ra("parseNodeAttributes",{},e),l=t.styleParser?Bw(e):[];return D({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Vt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},a)}var Ww=St.styles;function Od(e){var t=F.autoReplaceSvg==="nest"?Md(e,{styleParser:!1}):Md(e);return~t.extra.classes.indexOf(id)?Kt("generateLayersText",e,t):Kt("generateSvgReplacementMutation",e,t)}function Dd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Jt)return Promise.resolve();var n=we.documentElement.classList,r=function(c){return n.add("".concat(nd,"-").concat(c))},s=function(c){return n.remove("".concat(nd,"-").concat(c))},i=F.autoFetchSvg?Object.keys(xa):Object.keys(Ww);i.includes("fa")||i.push("fa");var o=[".".concat(id,":not([").concat(Bn,"])")].concat(i.map(function(f){return".".concat(f,":not([").concat(Bn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=yr(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),s("complete");else return Promise.resolve();var l=Ua.begin("onTree"),u=a.reduce(function(f,c){try{var p=Od(c);p&&f.push(p)}catch(h){rd||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(p){Ed(p,function(){r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),c(p)})})}function jw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Od(e).then(function(n){n&&Ed([n],t)})}function Uw(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ba(t||{}),s=n.mask;return s&&(s=(s||{}).icon?s:Ba(s||{})),e(r,D(D({},n),{},{mask:s}))}}var zw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,s=r===void 0?Vt:r,i=n.symbol,o=i===void 0?!1:i,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.title,p=c===void 0?null:c,h=n.titleId,$=h===void 0?null:h,g=n.classes,w=g===void 0?[]:g,v=n.attributes,S=v===void 0?{}:v,N=n.styles,K=N===void 0?{}:N;if(t){var Q=t.prefix,xe=t.iconName,rt=t.icon;return Pi(D({type:"icon"},t),function(){return Vn("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(p?S["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat($||ms()):(S["aria-hidden"]="true",S.focusable="false")),La({icons:{main:Fa(rt),mask:l?Fa(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Q,iconName:xe,transform:D(D({},Vt),s),symbol:o,title:p,maskId:f,titleId:$,extra:{attributes:S,styles:K,classes:w}})})}},Hw={mixout:function(){return{icon:Uw(zw)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Dd,n.nodeCallback=jw,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,s=r===void 0?we:r,i=n.callback,o=i===void 0?function(){}:i;return Dd(s,o)},t.generateSvgReplacementMutation=function(n,r){var s=r.iconName,i=r.title,o=r.titleId,a=r.prefix,l=r.transform,u=r.symbol,f=r.mask,c=r.maskId,p=r.extra;return new Promise(function(h,$){Promise.all([Wa(s,a),f.iconName?Wa(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var w=ya(g,2),v=w[0],S=w[1];h([n,La({icons:{main:v,mask:S},prefix:a,iconName:s,transform:l,symbol:u,maskId:c,title:i,titleId:o,extra:p,watchable:!0})])}).catch($)})},t.generateAbstractIcon=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.transform,a=n.styles,l=Ii(a);l.length>0&&(s.style=l);var u;return Aa(o)&&(u=Kt("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:s}}}},Gw={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.classes,i=s===void 0?[]:s;return Pi({type:"layer"},function(){Vn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.familyPrefix,"-layers")].concat(Ci(i)).join(" ")},children:o}]})}}}},Yw={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.title,i=s===void 0?null:s,o=r.classes,a=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return Pi({type:"counter",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),xw({content:n.toString(),title:i,extra:{attributes:u,styles:c,classes:["".concat(F.familyPrefix,"-layers-counter")].concat(Ci(a))}})})}}}},qw={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.transform,i=s===void 0?Vt:s,o=r.title,a=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,f=r.attributes,c=f===void 0?{}:f,p=r.styles,h=p===void 0?{}:p;return Pi({type:"text",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Cd({content:n,transform:D(D({},Vt),i),title:a,extra:{attributes:c,styles:h,classes:["".concat(F.familyPrefix,"-layers-text")].concat(Ci(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var s=r.title,i=r.transform,o=r.extra,a=null,l=null;if(Qf){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/u,l=f.height/u}return F.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Cd({content:n.innerHTML,width:a,height:l,transform:i,title:s,extra:o,watchable:!0})])}}},Jw=new RegExp('"',"ug"),Nd=[1105920,1112319];function Zw(e){var t=e.replace(Jw,""),n=uw(t,0),r=n>=Nd[0]&&n<=Nd[1],s=t.length===2?t[0]===t[1]:!1;return{value:Pa(s?t[0]:t),isSecondary:r||s}}function Rd(e,t){var n="".concat(Lg).concat(t.replace(":","-"));return new Promise(function(r,s){if(e.getAttribute(n)!==null)return r();var i=yr(e.children),o=i.filter(function(xe){return xe.getAttribute(Ca)===t})[0],a=mn.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Ug),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&f!=="none"&&f!==""){var c=a.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?ki[l[2].toLowerCase()]:zg[u],h=Zw(c),$=h.value,g=h.isSecondary,w=l[0].startsWith("FontAwesome"),v=Da(p,$),S=v;if(w){var N=$w($);N.iconName&&N.prefix&&(v=N.iconName,p=N.prefix)}if(v&&!g&&(!o||o.getAttribute(Sa)!==p||o.getAttribute(ka)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var K=Fw(),Q=K.extra;Q.attributes[Ca]=t,Wa(v,p).then(function(xe){var rt=La(D(D({},K),{},{icons:{main:xe,mask:Na()},prefix:p,iconName:S,extra:Q,watchable:!0})),Re=we.createElement("svg");t==="::before"?e.insertBefore(Re,e.firstChild):e.appendChild(Re),Re.outerHTML=rt.map(function(Be){return ps(Be)}).join(`
762
- `),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function Xw(e){return Promise.all([Rd(e,"::before"),Rd(e,"::after")])}function Kw(e){return e.parentNode!==document.head&&!~Fg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ca)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Bd(e){if(Jt)return new Promise(function(t,n){var r=yr(e.querySelectorAll("*")).filter(Kw).map(Xw),s=Ua.begin("searchPseudoElements");Td(),Promise.all(r).then(function(){s(),Ha(),t()}).catch(function(){s(),Ha(),n()})})}var Qw={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Bd,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,s=r===void 0?we:r;F.searchPseudoElements&&Bd(s)}}},Ld=!1,ey={mixout:function(){return{dom:{unwatch:function(){Td(),Ld=!0}}}},hooks:function(){return{bootstrap:function(){Pd(Ra("mutationObserverCallbacks",{}))},noAuto:function(){Rw()},watch:function(n){var r=n.observeMutationsRoot;Ld?Ha():Pd(Ra("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Vd=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,s){var i=s.toLowerCase().split("-"),o=i[0],a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},ty={mixout:function(){return{parse:{transform:function(n){return Vd(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-transform");return s&&(n.transform=Vd(s)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,s=n.transform,i=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(s.x*32,", ").concat(s.y*32,") "),u="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),f="rotate(".concat(s.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:c,path:p};return{tag:"g",attributes:D({},h.outer),children:[{tag:"g",attributes:D({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:D(D({},r.icon.attributes),h.path)}]}]}}}},Ga={x:0,y:0,width:"100%",height:"100%"};function Fd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ny(e){return e.tag==="g"?e.children:[e]}var ry={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-mask"),i=s?Ti(s.split(" ").map(function(o){return o.trim()})):Na();return i.prefix||(i.prefix=$n()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.mask,a=n.maskId,l=n.transform,u=i.width,f=i.icon,c=o.width,p=o.icon,h=nw({transform:l,containerWidth:c,iconWidth:u}),$={tag:"rect",attributes:D(D({},Ga),{},{fill:"white"})},g=f.children?{children:f.children.map(Fd)}:{},w={tag:"g",attributes:D({},h.inner),children:[Fd(D({tag:f.tag,attributes:D(D({},f.attributes),h.path)},g))]},v={tag:"g",attributes:D({},h.outer),children:[w]},S="mask-".concat(a||ms()),N="clip-".concat(a||ms()),K={tag:"mask",attributes:D(D({},Ga),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,v]},Q={tag:"defs",children:[{tag:"clipPath",attributes:{id:N},children:ny(p)},K]};return r.push(Q,{tag:"rect",attributes:D({fill:"currentColor","clip-path":"url(#".concat(N,")"),mask:"url(#".concat(S,")")},Ga)}),{children:r,attributes:s}}}},sy={provides:function(t){var n=!1;mn.matchMedia&&(n=mn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],s={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:D(D({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=D(D({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:D(D({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:D(D({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:D(D({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:D(D({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:D(D({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:D(D({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:D(D({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},iy={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-symbol"),i=s===null?!1:s===""?!0:s;return n.symbol=i,n}}}},oy=[iw,Hw,Gw,Yw,qw,Qw,ey,ty,ry,sy,iy];yw(oy,{mixoutsTo:at}),at.noAuto,at.config,at.library,at.dom;var Ya=at.parse;at.findIconDefinition,at.toHtml;var ay=at.icon;at.layer,at.text,at.counter;function ly(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Wd={exports:{}},cy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fy=cy,dy=fy;function jd(){}function Ud(){}Ud.resetWarningCache=jd;var hy=function(){function e(r,s,i,o,a,l){if(l!==dy){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ud,resetWarningCache:jd};return n.PropTypes=n,n};Wd.exports=hy();var my=Wd.exports;const X=ly(my);function zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zd(Object(n),!0).forEach(function(r){Cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ni(e){"@babel/helpers - typeof";return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function $y(e,t){if(e==null)return{};var n=py(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qa(e){return gy(e)||wy(e)||yy(e)||_y()}function gy(e){if(Array.isArray(e))return Ja(e)}function wy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yy(e,t){if(e){if(typeof e=="string")return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ja(e,t)}}function Ja(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
763
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vy(e){var t,n=e.beat,r=e.fade,s=e.beatFade,i=e.bounce,o=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,c=e.pulse,p=e.fixedWidth,h=e.inverse,$=e.border,g=e.listItem,w=e.flip,v=e.size,S=e.rotation,N=e.pull,K=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":o,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":c,"fa-fw":p,"fa-inverse":h,"fa-border":$,"fa-li":g,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Cr(t,"fa-".concat(v),typeof v<"u"&&v!==null),Cr(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Cr(t,"fa-pull-".concat(N),typeof N<"u"&&N!==null),Cr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(K).map(function(Q){return K[Q]?Q:null}).filter(function(Q){return Q})}function by(e){return e=e-0,e===e}function Hd(e){return by(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Cy=["style"];function Sy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ky(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Hd(n.slice(0,r)),i=n.slice(r+1).trim();return s.startsWith("webkit")?t[Sy(s)]=i:t[s]=i,t},{})}function Gd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Gd(e,l)}),s=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=ky(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[Hd(u)]=f}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,a=$y(n,Cy);return s.attrs.style=gn(gn({},s.attrs.style),o),e.apply(void 0,[t.tag,gn(gn({},s.attrs),a)].concat(qa(r)))}var Yd=!1;try{Yd=!0}catch{}function xy(){if(!Yd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function qd(e){if(e&&Ni(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Ya.icon)return Ya.icon(e);if(e===null)return null;if(e&&Ni(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Za(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Cr({},e,t):{}}var ws=Ws.forwardRef(function(e,t){var n=e.icon,r=e.mask,s=e.symbol,i=e.className,o=e.title,a=e.titleId,l=e.maskId,u=qd(n),f=Za("classes",[].concat(qa(vy(e)),qa(i.split(" ")))),c=Za("transform",typeof e.transform=="string"?Ya.transform(e.transform):e.transform),p=Za("mask",qd(r)),h=ay(u,gn(gn(gn(gn({},f),c),p),{},{symbol:s,title:o,titleId:a,maskId:l}));if(!h)return xy("Could not find icon",u),null;var $=h.abstract,g={ref:t};return Object.keys(e).forEach(function(w){ws.defaultProps.hasOwnProperty(w)||(g[w]=e[w])}),Iy($[0],g)});ws.displayName="FontAwesomeIcon",ws.propTypes={beat:X.bool,border:X.bool,beatFade:X.bool,bounce:X.bool,className:X.string,fade:X.bool,flash:X.bool,mask:X.oneOfType([X.object,X.array,X.string]),maskId:X.string,fixedWidth:X.bool,inverse:X.bool,flip:X.oneOf([!0,!1,"horizontal","vertical","both"]),icon:X.oneOfType([X.object,X.array,X.string]),listItem:X.bool,pull:X.oneOf(["right","left"]),pulse:X.bool,rotation:X.oneOf([0,90,180,270]),shake:X.bool,size:X.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:X.bool,spinPulse:X.bool,spinReverse:X.bool,symbol:X.oneOfType([X.bool,X.string]),title:X.string,titleId:X.string,transform:X.oneOfType([X.string,X.object]),swapOpacity:X.bool},ws.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Iy=Gd.bind(null,Ws.createElement);/*!
760
+ }`;function cd(){var e=td,t=nd,n=F.familyPrefix,r=F.replacementClass,s=lw;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return s}var fd=!1;function Ta(){F.autoAddCss&&!fd&&(rw(cd()),fd=!0)}var uw={mixout:function(){return{dom:{css:cd,insertCss:Ta}}},hooks:function(){return{beforeDOMElementCreation:function(){Ta()},beforeI2svg:function(){Ta()}}}},Kt=gn||{};Kt[Xt]||(Kt[Xt]={}),Kt[Xt].styles||(Kt[Xt].styles={}),Kt[Xt].hooks||(Kt[Xt].hooks={}),Kt[Xt].shims||(Kt[Xt].shims=[]);var St=Kt[Xt],dd=[],cw=function e(){we.removeEventListener("DOMContentLoaded",e),Ei=1,dd.map(function(t){return t()})},Ei=!1;Zt&&(Ei=(we.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(we.readyState),Ei||we.addEventListener("DOMContentLoaded",cw));function fw(e){Zt&&(Ei?setTimeout(e,0):dd.push(e))}function ps(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,s=e.children,i=s===void 0?[]:s;return typeof e=="string"?ud(e):"<".concat(t," ").concat(iw(r),">").concat(i.map(ps).join(""),"</").concat(t,">")}function hd(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Pa=function(t,n,r,s){var i=Object.keys(t),o=i.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[i[0]]):(l=0,f=r);l<o;l++)u=i[l],f=a(f,t[u],u,t);return f};function dw(e){for(var t=[],n=0,r=e.length;n<r;){var s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((s&1023)<<10)+(i&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Ma(e){var t=dw(e);return t.length===1?t[0].toString(16):null}function hw(e,t){var n=e.length,r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function md(e){return Object.keys(e).reduce(function(t,n){var r=e[n],s=!!r.icon;return s?t[r.iconName]=r.icon:t[n]=r,t},{})}function Oa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,s=r===void 0?!1:r,i=md(t);typeof St.hooks.addPack=="function"&&!s?St.hooks.addPack(e,md(t)):St.styles[e]=D(D({},St.styles[e]||{}),i),e==="fas"&&Oa("fa",t)}var $s=St.styles,mw=St.shims,pw=Object.values(id),Da=null,pd={},$d={},gd={},wd={},yd={},$w=Object.keys(Ia);function gw(e){return~Xg.indexOf(e)}function ww(e,t){var n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!gw(s)?s:null}var _d=function(){var t=function(i){return Pa($s,function(o,a,l){return o[l]=Pa(a,i,{}),o},{})};pd=t(function(s,i,o){if(i[3]&&(s[i[3]]=o),i[2]){var a=i[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){s[l.toString(16)]=o})}return s}),$d=t(function(s,i,o){if(s[o]=o,i[2]){var a=i[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){s[l]=o})}return s}),yd=t(function(s,i,o){var a=i[2];return s[o]=o,a.forEach(function(l){s[l]=o}),s});var n="far"in $s||F.autoFetchSvg,r=Pa(mw,function(s,i){var o=i[0],a=i[1],l=i[2];return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(s.names[o]={prefix:a,iconName:l}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:a,iconName:l}),s},{names:{},unicodes:{}});gd=r.names,wd=r.unicodes,Da=Ti(F.styleDefault)};nw(function(e){Da=Ti(e.styleDefault)}),_d();function Na(e,t){return(pd[e]||{})[t]}function yw(e,t){return($d[e]||{})[t]}function vr(e,t){return(yd[e]||{})[t]}function vd(e){return gd[e]||{prefix:null,iconName:null}}function _w(e){var t=wd[e],n=Na("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function yn(){return Da}var Ra=function(){return{prefix:null,iconName:null,rest:[]}};function Ti(e){var t=Ia[e],n=xi[e]||xi[t],r=e in St.styles?e:null;return n||r||null}function Pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,s=null,i=e.reduce(function(o,a){var l=ww(F.familyPrefix,a);if($s[a]?(a=pw.includes(a)?Hg[a]:a,s=a,o.prefix=a):$w.indexOf(a)>-1?(s=a,o.prefix=Ti(a)):l?o.iconName=l:a!==F.replacementClass&&o.rest.push(a),!r&&o.prefix&&o.iconName){var u=s==="fa"?vd(o.iconName):{},f=vr(o.prefix,o.iconName);u.prefix&&(s=null),o.iconName=u.iconName||f||o.iconName,o.prefix=u.prefix||o.prefix,o.prefix==="far"&&!$s.far&&$s.fas&&!F.autoFetchSvg&&(o.prefix="fas")}return o},Ra());return(i.prefix==="fa"||s==="fa")&&(i.prefix=yn()||"fas"),i}var vw=function(){function e(){Pg(this,e),this.definitions={}}return Og(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];var o=s.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(a){n.definitions[a]=D(D({},n.definitions[a]||{}),o[a]),Oa(a,o[a]);var l=id[a];l&&Oa(l,o[a]),_d()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var s=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(s).map(function(i){var o=s[i],a=o.prefix,l=o.iconName,u=o.icon,f=u[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(c){typeof c=="string"&&(n[a][c]=u)}),n[a][l]=u}),n}}]),e}(),bd=[],br={},Cr={},bw=Object.keys(Cr);function Cw(e,t){var n=t.mixoutsTo;return bd=e,br={},Object.keys(Cr).forEach(function(r){bw.indexOf(r)===-1&&delete Cr[r]}),bd.forEach(function(r){var s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(function(o){typeof s[o]=="function"&&(n[o]=s[o]),Ci(s[o])==="object"&&Object.keys(s[o]).forEach(function(a){n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){br[o]||(br[o]=[]),br[o].push(i[o])})}r.provides&&r.provides(Cr)}),n}function Ba(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var i=br[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function Vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=br[e]||[];s.forEach(function(i){i.apply(null,n)})}function Qt(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Cr[e]?Cr[e].apply(null,t):void 0}function La(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||yn();if(t)return t=vr(n,t)||t,hd(Cd.definitions,n,t)||hd(St.styles,n,t)}var Cd=new vw,Sw=function(){F.autoReplaceSvg=!1,F.observeMutations=!1,Vn("noAuto")},kw={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Zt?(Vn("beforeI2svg",t),Qt("pseudoElements2svg",t),Qt("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,fw(function(){Iw({autoReplaceSvgRoot:n}),Vn("watch",t)})}},xw={icon:function(t){if(t===null)return null;if(Ci(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:vr(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Ti(t[0]);return{prefix:r,iconName:vr(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.familyPrefix,"-"))>-1||t.match(Gg))){var s=Pi(t.split(" "),{skipLookups:!0});return{prefix:s.prefix||yn(),iconName:vr(s.prefix,s.iconName)||s.iconName}}if(typeof t=="string"){var i=yn();return{prefix:i,iconName:vr(i,t)||t}}}},at={noAuto:Sw,config:F,dom:kw,parse:xw,library:Cd,findIconDefinition:La,toHtml:ps},Iw=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?we:n;(Object.keys(St.styles).length>0||F.autoFetchSvg)&&Zt&&F.autoReplaceSvg&&at.dom.i2svg({node:r})};function Mi(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ps(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Zt){var r=we.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Aw(e){var t=e.children,n=e.main,r=e.mask,s=e.attributes,i=e.styles,o=e.transform;if(Ea(o)&&n.found&&!r.found){var a=n.width,l=n.height,u={x:a/l/2,y:.5};s.style=Ai(D(D({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function Ew(e){var t=e.prefix,n=e.iconName,r=e.children,s=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(F.familyPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:D(D({},s),{},{id:o}),children:r}]}]}function Va(e){var t=e.icons,n=t.main,r=t.mask,s=e.prefix,i=e.iconName,o=e.transform,a=e.symbol,l=e.title,u=e.maskId,f=e.titleId,c=e.extra,p=e.watchable,h=p===void 0?!1:p,$=r.found?r:n,g=$.width,w=$.height,v=s==="fak",S=[F.replacementClass,i?"".concat(F.familyPrefix,"-").concat(i):""].filter(function(Be){return c.classes.indexOf(Be)===-1}).filter(function(Be){return Be!==""||!!Be}).concat(c.classes).join(" "),N={children:[],attributes:D(D({},c.attributes),{},{"data-prefix":s,"data-icon":i,class:S,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},K=v&&!~c.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};h&&(N.attributes[Bn]=""),l&&(N.children.push({tag:"title",attributes:{id:N.attributes["aria-labelledby"]||"title-".concat(f||ms())},children:[l]}),delete N.attributes.title);var Q=D(D({},N),{},{prefix:s,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:a,styles:D(D({},K),c.styles)}),xe=r.found&&n.found?Qt("generateAbstractMask",Q)||{children:[],attributes:{}}:Qt("generateAbstractIcon",Q)||{children:[],attributes:{}},rt=xe.children,Re=xe.attributes;return Q.children=rt,Q.attributes=Re,a?Ew(Q):Aw(Q)}function Sd(e){var t=e.content,n=e.width,r=e.height,s=e.transform,i=e.title,o=e.extra,a=e.watchable,l=a===void 0?!1:a,u=D(D(D({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[Bn]="");var f=D({},o.styles);Ea(s)&&(f.transform=aw({transform:s,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var c=Ai(f);c.length>0&&(u.style=c);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function Tw(e){var t=e.content,n=e.title,r=e.extra,s=D(D(D({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Ai(r.styles);i.length>0&&(s.style=i);var o=[];return o.push({tag:"span",attributes:s,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Fa=St.styles;function Wa(e){var t=e[0],n=e[1],r=e.slice(4),s=_a(r,1),i=s[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(F.familyPrefix,"-").concat(Ln.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var Pw={found:!1,width:512,height:512};function Mw(e,t){!sd&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ja(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=yn()),new Promise(function(r,s){if(Qt("missingIconAbstract"),n==="fa"){var i=vd(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Fa[t]&&Fa[t][e]){var o=Fa[t][e];return r(Wa(o))}Mw(e,t),r(D(D({},Pw),{},{icon:F.showMissingIcons&&e?Qt("missingIconAbstract")||{}:{}}))})}var kd=function(){},Ua=F.measurePerformance&&ki&&ki.mark&&ki.measure?ki:{mark:kd,measure:kd},gs='FA "6.1.2"',Ow=function(t){return Ua.mark("".concat(gs," ").concat(t," begins")),function(){return xd(t)}},xd=function(t){Ua.mark("".concat(gs," ").concat(t," ends")),Ua.measure("".concat(gs," ").concat(t),"".concat(gs," ").concat(t," begins"),"".concat(gs," ").concat(t," ends"))},za={begin:Ow,end:xd},Oi=function(){};function Id(e){var t=e.getAttribute?e.getAttribute(Bn):null;return typeof t=="string"}function Dw(e){var t=e.getAttribute?e.getAttribute(ka):null,n=e.getAttribute?e.getAttribute(xa):null;return t&&n}function Nw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function Rw(){if(F.autoReplaceSvg===!0)return Di.replace;var e=Di[F.autoReplaceSvg];return e||Di.replace}function Bw(e){return we.createElementNS("http://www.w3.org/2000/svg",e)}function Lw(e){return we.createElement(e)}function Ad(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Bw:Lw:n;if(typeof e=="string")return we.createTextNode(e);var s=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){s.appendChild(Ad(o,{ceFn:r}))}),s}function Vw(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Di={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(s){n.parentNode.insertBefore(Ad(s),n)}),n.getAttribute(Bn)===null&&F.keepOriginalSource){var r=we.createComment(Vw(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Aa(n).indexOf(F.replacementClass))return Di.replace(t);var s=new RegExp("".concat(F.familyPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(a,l){return l===F.replacementClass||l.match(s)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(a){return ps(a)}).join(`
761
+ `);n.setAttribute(Bn,""),n.innerHTML=o}};function Ed(e){e()}function Td(e,t){var n=typeof t=="function"?t:Oi;if(e.length===0)n();else{var r=Ed;F.mutateApproach===Ug&&(r=gn.requestAnimationFrame||Ed),r(function(){var s=Rw(),i=za.begin("mutate");e.map(s),i(),n()})}}var Ha=!1;function Pd(){Ha=!0}function Ga(){Ha=!1}var Ni=null;function Md(e){if(Qf&&F.observeMutations){var t=e.treeCallback,n=t===void 0?Oi:t,r=e.nodeCallback,s=r===void 0?Oi:r,i=e.pseudoElementsCallback,o=i===void 0?Oi:i,a=e.observeMutationsRoot,l=a===void 0?we:a;Ni=new Qf(function(u){if(!Ha){var f=yn();_r(u).forEach(function(c){if(c.type==="childList"&&c.addedNodes.length>0&&!Id(c.addedNodes[0])&&(F.searchPseudoElements&&o(c.target),n(c.target)),c.type==="attributes"&&c.target.parentNode&&F.searchPseudoElements&&o(c.target.parentNode),c.type==="attributes"&&Id(c.target)&&~Zg.indexOf(c.attributeName))if(c.attributeName==="class"&&Dw(c.target)){var p=Pi(Aa(c.target)),h=p.prefix,$=p.iconName;c.target.setAttribute(ka,h||f),$&&c.target.setAttribute(xa,$)}else Nw(c.target)&&s(c.target)})}}),Zt&&Ni.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Fw(){Ni&&Ni.disconnect()}function Ww(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,s){var i=s.split(":"),o=i[0],a=i.slice(1);return o&&a.length>0&&(r[o]=a.join(":").trim()),r},{})),n}function jw(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",s=Pi(Aa(e));return s.prefix||(s.prefix=yn()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=yw(s.prefix,e.innerText)||Na(s.prefix,Ma(e.innerText))),!s.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Uw(e){var t=_r(e.attributes).reduce(function(s,i){return s.name!=="class"&&s.name!=="style"&&(s[i.name]=i.value),s},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||ms()):(t["aria-hidden"]="true",t.focusable="false")),t}function zw(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Vt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Od(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=jw(e),r=n.iconName,s=n.prefix,i=n.rest,o=Uw(e),a=Ba("parseNodeAttributes",{},e),l=t.styleParser?Ww(e):[];return D({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Vt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},a)}var Hw=St.styles;function Dd(e){var t=F.autoReplaceSvg==="nest"?Od(e,{styleParser:!1}):Od(e);return~t.extra.classes.indexOf(od)?Qt("generateLayersText",e,t):Qt("generateSvgReplacementMutation",e,t)}function Nd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Zt)return Promise.resolve();var n=we.documentElement.classList,r=function(c){return n.add("".concat(rd,"-").concat(c))},s=function(c){return n.remove("".concat(rd,"-").concat(c))},i=F.autoFetchSvg?Object.keys(Ia):Object.keys(Hw);i.includes("fa")||i.push("fa");var o=[".".concat(od,":not([").concat(Bn,"])")].concat(i.map(function(f){return".".concat(f,":not([").concat(Bn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var a=[];try{a=_r(e.querySelectorAll(o))}catch{}if(a.length>0)r("pending"),s("complete");else return Promise.resolve();var l=za.begin("onTree"),u=a.reduce(function(f,c){try{var p=Dd(c);p&&f.push(p)}catch(h){sd||h.name==="MissingIcon"&&console.error(h)}return f},[]);return new Promise(function(f,c){Promise.all(u).then(function(p){Td(p,function(){r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),c(p)})})}function Gw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Dd(e).then(function(n){n&&Td([n],t)})}function Yw(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:La(t||{}),s=n.mask;return s&&(s=(s||{}).icon?s:La(s||{})),e(r,D(D({},n),{},{mask:s}))}}var qw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,s=r===void 0?Vt:r,i=n.symbol,o=i===void 0?!1:i,a=n.mask,l=a===void 0?null:a,u=n.maskId,f=u===void 0?null:u,c=n.title,p=c===void 0?null:c,h=n.titleId,$=h===void 0?null:h,g=n.classes,w=g===void 0?[]:g,v=n.attributes,S=v===void 0?{}:v,N=n.styles,K=N===void 0?{}:N;if(t){var Q=t.prefix,xe=t.iconName,rt=t.icon;return Mi(D({type:"icon"},t),function(){return Vn("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(p?S["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat($||ms()):(S["aria-hidden"]="true",S.focusable="false")),Va({icons:{main:Wa(rt),mask:l?Wa(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Q,iconName:xe,transform:D(D({},Vt),s),symbol:o,title:p,maskId:f,titleId:$,extra:{attributes:S,styles:K,classes:w}})})}},Jw={mixout:function(){return{icon:Yw(qw)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Nd,n.nodeCallback=Gw,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,s=r===void 0?we:r,i=n.callback,o=i===void 0?function(){}:i;return Nd(s,o)},t.generateSvgReplacementMutation=function(n,r){var s=r.iconName,i=r.title,o=r.titleId,a=r.prefix,l=r.transform,u=r.symbol,f=r.mask,c=r.maskId,p=r.extra;return new Promise(function(h,$){Promise.all([ja(s,a),f.iconName?ja(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var w=_a(g,2),v=w[0],S=w[1];h([n,Va({icons:{main:v,mask:S},prefix:a,iconName:s,transform:l,symbol:u,maskId:c,title:i,titleId:o,extra:p,watchable:!0})])}).catch($)})},t.generateAbstractIcon=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.transform,a=n.styles,l=Ai(a);l.length>0&&(s.style=l);var u;return Ea(o)&&(u=Qt("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:s}}}},Zw={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.classes,i=s===void 0?[]:s;return Mi({type:"layer"},function(){Vn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(F.familyPrefix,"-layers")].concat(Si(i)).join(" ")},children:o}]})}}}},Xw={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.title,i=s===void 0?null:s,o=r.classes,a=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,f=r.styles,c=f===void 0?{}:f;return Mi({type:"counter",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Tw({content:n.toString(),title:i,extra:{attributes:u,styles:c,classes:["".concat(F.familyPrefix,"-layers-counter")].concat(Si(a))}})})}}}},Kw={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.transform,i=s===void 0?Vt:s,o=r.title,a=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,f=r.attributes,c=f===void 0?{}:f,p=r.styles,h=p===void 0?{}:p;return Mi({type:"text",content:n},function(){return Vn("beforeDOMElementCreation",{content:n,params:r}),Sd({content:n,transform:D(D({},Vt),i),title:a,extra:{attributes:c,styles:h,classes:["".concat(F.familyPrefix,"-layers-text")].concat(Si(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var s=r.title,i=r.transform,o=r.extra,a=null,l=null;if(ed){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/u,l=f.height/u}return F.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Sd({content:n.innerHTML,width:a,height:l,transform:i,title:s,extra:o,watchable:!0})])}}},Qw=new RegExp('"',"ug"),Rd=[1105920,1112319];function ey(e){var t=e.replace(Qw,""),n=hw(t,0),r=n>=Rd[0]&&n<=Rd[1],s=t.length===2?t[0]===t[1]:!1;return{value:Ma(s?t[0]:t),isSecondary:r||s}}function Bd(e,t){var n="".concat(jg).concat(t.replace(":","-"));return new Promise(function(r,s){if(e.getAttribute(n)!==null)return r();var i=_r(e.children),o=i.filter(function(xe){return xe.getAttribute(Sa)===t})[0],a=gn.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Yg),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&f!=="none"&&f!==""){var c=a.getPropertyValue("content"),p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?xi[l[2].toLowerCase()]:qg[u],h=ey(c),$=h.value,g=h.isSecondary,w=l[0].startsWith("FontAwesome"),v=Na(p,$),S=v;if(w){var N=_w($);N.iconName&&N.prefix&&(v=N.iconName,p=N.prefix)}if(v&&!g&&(!o||o.getAttribute(ka)!==p||o.getAttribute(xa)!==S)){e.setAttribute(n,S),o&&e.removeChild(o);var K=zw(),Q=K.extra;Q.attributes[Sa]=t,ja(v,p).then(function(xe){var rt=Va(D(D({},K),{},{icons:{main:xe,mask:Ra()},prefix:p,iconName:S,extra:Q,watchable:!0})),Re=we.createElement("svg");t==="::before"?e.insertBefore(Re,e.firstChild):e.appendChild(Re),Re.outerHTML=rt.map(function(Be){return ps(Be)}).join(`
762
+ `),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function ty(e){return Promise.all([Bd(e,"::before"),Bd(e,"::after")])}function ny(e){return e.parentNode!==document.head&&!~zg.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Sa)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ld(e){if(Zt)return new Promise(function(t,n){var r=_r(e.querySelectorAll("*")).filter(ny).map(ty),s=za.begin("searchPseudoElements");Pd(),Promise.all(r).then(function(){s(),Ga(),t()}).catch(function(){s(),Ga(),n()})})}var ry={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ld,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,s=r===void 0?we:r;F.searchPseudoElements&&Ld(s)}}},Vd=!1,sy={mixout:function(){return{dom:{unwatch:function(){Pd(),Vd=!0}}}},hooks:function(){return{bootstrap:function(){Md(Ba("mutationObserverCallbacks",{}))},noAuto:function(){Fw()},watch:function(n){var r=n.observeMutationsRoot;Vd?Ga():Md(Ba("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Fd=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,s){var i=s.toLowerCase().split("-"),o=i[0],a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},iy={mixout:function(){return{parse:{transform:function(n){return Fd(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-transform");return s&&(n.transform=Fd(s)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,s=n.transform,i=n.containerWidth,o=n.iconWidth,a={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(s.x*32,", ").concat(s.y*32,") "),u="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),f="rotate(".concat(s.rotate," 0 0)"),c={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(o/2*-1," -256)")},h={outer:a,inner:c,path:p};return{tag:"g",attributes:D({},h.outer),children:[{tag:"g",attributes:D({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:D(D({},r.icon.attributes),h.path)}]}]}}}},Ya={x:0,y:0,width:"100%",height:"100%"};function Wd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function oy(e){return e.tag==="g"?e.children:[e]}var ay={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-mask"),i=s?Pi(s.split(" ").map(function(o){return o.trim()})):Ra();return i.prefix||(i.prefix=yn()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,s=n.attributes,i=n.main,o=n.mask,a=n.maskId,l=n.transform,u=i.width,f=i.icon,c=o.width,p=o.icon,h=ow({transform:l,containerWidth:c,iconWidth:u}),$={tag:"rect",attributes:D(D({},Ya),{},{fill:"white"})},g=f.children?{children:f.children.map(Wd)}:{},w={tag:"g",attributes:D({},h.inner),children:[Wd(D({tag:f.tag,attributes:D(D({},f.attributes),h.path)},g))]},v={tag:"g",attributes:D({},h.outer),children:[w]},S="mask-".concat(a||ms()),N="clip-".concat(a||ms()),K={tag:"mask",attributes:D(D({},Ya),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,v]},Q={tag:"defs",children:[{tag:"clipPath",attributes:{id:N},children:oy(p)},K]};return r.push(Q,{tag:"rect",attributes:D({fill:"currentColor","clip-path":"url(#".concat(N,")"),mask:"url(#".concat(S,")")},Ya)}),{children:r,attributes:s}}}},ly={provides:function(t){var n=!1;gn.matchMedia&&(n=gn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],s={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:D(D({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=D(D({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:D(D({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:D(D({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:D(D({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:D(D({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:D(D({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:D(D({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:D(D({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},uy={hooks:function(){return{parseNodeAttributes:function(n,r){var s=r.getAttribute("data-fa-symbol"),i=s===null?!1:s===""?!0:s;return n.symbol=i,n}}}},cy=[uw,Jw,Zw,Xw,Kw,ry,sy,iy,ay,ly,uy];Cw(cy,{mixoutsTo:at}),at.noAuto,at.config,at.library,at.dom;var qa=at.parse;at.findIconDefinition,at.toHtml;var fy=at.icon;at.layer,at.text,at.counter;function dy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var jd={exports:{}},my="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",py=my,$y=py;function Ud(){}function zd(){}zd.resetWarningCache=Ud;var gy=function(){function e(r,s,i,o,a,l){if(l!==$y){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zd,resetWarningCache:Ud};return n.PropTypes=n,n};jd.exports=gy();var wy=jd.exports;const X=dy(wy);function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hd(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function _y(e,t){if(e==null)return{};var n=yy(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ja(e){return vy(e)||by(e)||Cy(e)||Sy()}function vy(e){if(Array.isArray(e))return Za(e)}function by(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cy(e,t){if(e){if(typeof e=="string")return Za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Za(e,t)}}function Za(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
763
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ky(e){var t,n=e.beat,r=e.fade,s=e.beatFade,i=e.bounce,o=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,c=e.pulse,p=e.fixedWidth,h=e.inverse,$=e.border,g=e.listItem,w=e.flip,v=e.size,S=e.rotation,N=e.pull,K=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":o,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":c,"fa-fw":p,"fa-inverse":h,"fa-border":$,"fa-li":g,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Sr(t,"fa-".concat(v),typeof v<"u"&&v!==null),Sr(t,"fa-rotate-".concat(S),typeof S<"u"&&S!==null&&S!==0),Sr(t,"fa-pull-".concat(N),typeof N<"u"&&N!==null),Sr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(K).map(function(Q){return K[Q]?Q:null}).filter(function(Q){return Q})}function xy(e){return e=e-0,e===e}function Gd(e){return xy(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Iy=["style"];function Ay(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ey(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Gd(n.slice(0,r)),i=n.slice(r+1).trim();return s.startsWith("webkit")?t[Ay(s)]=i:t[s]=i,t},{})}function Yd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Yd(e,l)}),s=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Ey(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[Gd(u)]=f}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,a=_y(n,Iy);return s.attrs.style=_n(_n({},s.attrs.style),o),e.apply(void 0,[t.tag,_n(_n({},s.attrs),a)].concat(Ja(r)))}var qd=!1;try{qd=!0}catch{}function Ty(){if(!qd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Jd(e){if(e&&Ri(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(qa.icon)return qa.icon(e);if(e===null)return null;if(e&&Ri(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Xa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Sr({},e,t):{}}var ws=js.forwardRef(function(e,t){var n=e.icon,r=e.mask,s=e.symbol,i=e.className,o=e.title,a=e.titleId,l=e.maskId,u=Jd(n),f=Xa("classes",[].concat(Ja(ky(e)),Ja(i.split(" ")))),c=Xa("transform",typeof e.transform=="string"?qa.transform(e.transform):e.transform),p=Xa("mask",Jd(r)),h=fy(u,_n(_n(_n(_n({},f),c),p),{},{symbol:s,title:o,titleId:a,maskId:l}));if(!h)return Ty("Could not find icon",u),null;var $=h.abstract,g={ref:t};return Object.keys(e).forEach(function(w){ws.defaultProps.hasOwnProperty(w)||(g[w]=e[w])}),Py($[0],g)});ws.displayName="FontAwesomeIcon",ws.propTypes={beat:X.bool,border:X.bool,beatFade:X.bool,bounce:X.bool,className:X.string,fade:X.bool,flash:X.bool,mask:X.oneOfType([X.object,X.array,X.string]),maskId:X.string,fixedWidth:X.bool,inverse:X.bool,flip:X.oneOf([!0,!1,"horizontal","vertical","both"]),icon:X.oneOfType([X.object,X.array,X.string]),listItem:X.bool,pull:X.oneOf(["right","left"]),pulse:X.bool,rotation:X.oneOf([0,90,180,270]),shake:X.bool,size:X.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:X.bool,spinPulse:X.bool,spinReverse:X.bool,symbol:X.oneOfType([X.bool,X.string]),title:X.string,titleId:X.string,transform:X.oneOfType([X.string,X.object]),swapOpacity:X.bool},ws.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Py=Yd.bind(null,js.createElement);/*!
764
764
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
765
765
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
766
766
  * Copyright 2022 Fonticons, Inc.
767
- */var Ay={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},Ey={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},Ty=Ey,Py={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256-.0078C260.7-.0081 265.2 1.008 269.4 2.913L457.7 82.79C479.7 92.12 496.2 113.8 496 139.1C495.5 239.2 454.7 420.7 282.4 503.2C265.7 511.1 246.3 511.1 229.6 503.2C57.25 420.7 16.49 239.2 15.1 139.1C15.87 113.8 32.32 92.12 54.3 82.79L242.7 2.913C246.8 1.008 251.4-.0081 256-.0078V-.0078zM256 444.8C393.1 378 431.1 230.1 432 141.4L256 66.77L256 444.8z"]},My=Py;function Xa(e,t){return d(ws,e,...t)}Xa({icon:Ay},[]),Xa({icon:My,size:"5x"},[]);const Oy=Xa({icon:Ty,size:"5x"},[]);function Dy(){let e,t,n,r,s,i;return pr(()=>{qt(0)}),d("div",C(_([["className",ye(" ",["h-screen",na])],(e=[d("div",C(_([["className","h-full flex justify-center items-center"],(t=[d("div",C(_([["className","border rounded-lg shadow-md sm:max-w-md p-8 text-center"],(n=[d("div",C(A((r=[d("div",C(_([["className",ye(" ",[na])],(s=[d("i",{className:"text-red-600",children:b.Children.toArray([Oy])}),d("h4",{className:"text-2xl my-4 text-red-600",children:"This doesn't look right"}),d("p",{className:"mt-3 mb-5 text-gray-500",children:"Your invite has expired. Reach out to your employer to get another one."})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(_([["className","mt-16 text-gray-400 text-right text-x"],(i=[d("small",{children:[`Flare HR Pty Ltd © 2015-${Ro(nc())}`]})],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))]))))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))],["children",b.Children.toArray(Array.from(e))])])))}class Jd{constructor(t){this.k=t}}function lt(e){return new Jd(e)}function G(e){return e.k}class se extends Jd{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function ut(e,t,n,r){return new se(e,t,n,r)}function $e(e){return e.left}function he(e){return e.right}function Sr(e){return e.h}function H3(){}function Zd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=x(n);if(s instanceof se){const i=s;e=$e(i),t=Zd(he(i),r+1);continue e}else return r+1|0}else return r|0}}function Ny(e){return Zd(e,0)}function kt(e,t,n){let r,s,i;const o=e;if(o!=null){const f=x(o);i=f instanceof se?(r=f,Sr(r)):1}else i=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof se?(s=f,Sr(s)):1}else a=0;const u=(i<a?a:i)|0;return u===0?lt(t):ut(t,e,n,u+1)}function Xd(e,t,n){let r,s,i,o,a,l,u,f,c;const p=e;if(p!=null){const g=x(p);c=g instanceof se?(r=g,Sr(r)):1}else c=0;let h;const $=n;if($!=null){const g=x($);h=g instanceof se?(s=g,Sr(s)):1}else h=0;if(h>c+2){const g=x(n);if(g instanceof se){const w=g;if(i=$e(w),(i!=null?(o=x(i),o instanceof se?(a=o,Sr(a)):1):0)>c+1){const v=x($e(w));if(v instanceof se){const S=v;return kt(kt(e,t,$e(S)),G(S),kt(he(S),G(w),he(w)))}else throw new Error("internal error: Set.rebalance")}else return kt(kt(e,t,$e(w)),G(w),he(w))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=x(e);if(g instanceof se){const w=g;if(l=he(w),(l!=null?(u=x(l),u instanceof se?(f=u,Sr(f)):1):0)>h+1){const v=x(he(w));if(v instanceof se){const S=v;return kt(kt($e(w),G(w),$e(S)),G(S),kt(he(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt($e(w),G(w),kt(he(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt(e,t,n)}function kr(e,t,n){if(n!=null){const r=x(n),s=e.Compare(t,G(r))|0;if(r instanceof se){const i=r;return s<0?Xd(kr(e,t,$e(i)),G(i),he(i)):s===0?n:Xd($e(i),G(i),kr(e,t,he(i)))}else{const i=e.Compare(t,G(r))|0;return i<0?ut(t,void 0,n,2):i===0?n:ut(t,n,void 0,2)}}else return lt(t)}function Kd(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,G(o))|0;if(o instanceof se){const l=o;if(a<0){e=r,t=s,n=$e(l);continue e}else{if(a===0)return!0;e=r,t=s,n=he(l);continue e}}else return a===0}else return!1}}function Qd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof se){const i=s;Qd(n,$e(i)),n(G(i)),e=n,t=he(i);continue e}else n(G(s))}break}}class Ry extends L{constructor(t,n){super(),this.stack=t,this.started=n}}function e0(e){e:for(;;){const t=e;if(M(t))return ce();{const n=k(t),r=P(t);if(n!=null){const s=x(n);if(s instanceof se){const i=s;e=be([$e(i),lt(G(i)),he(i)],r);continue e}else return t}else{e=r;continue e}}}}function t0(e){return new Ry(e0(A(e)),!1)}function By(){throw new Error("Enumeration not started")}function Ly(){throw new Error("Enumeration already started")}function n0(e){if(e.started){const t=e.stack;if(M(t))return Ly();if(k(t)!=null){const n=x(k(t));return G(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return By()}function Vy(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof se)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=e0(P(t)),!M(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function r0(e){let t=t0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return n0(t)},"System.Collections.IEnumerator.get_Current"(){return n0(t)},"System.Collections.IEnumerator.MoveNext"(){return Vy(t)},"System.Collections.IEnumerator.Reset"(){t=t0(e)},Dispose(){}}}function Fy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(s))return M(i)?0:-1;if(M(i))return 1;if(k(i)!=null)if(k(s)!=null){const o=x(k(s)),a=x(k(i));if(o instanceof se){const l=o;if($e(l)==null)if(a instanceof se){const u=a;if($e(u)==null){const f=r.Compare(G(l),G(u))|0;if(f!==0)return f|0;e=r,t=et(he(l),P(s)),n=et(he(u),P(i));continue e}else{let f,c,p,h,$;switch(M(s)?M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2:k(s)!=null?(f=0,c=P(s),p=x(k(s))):M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2,f){case 0:if(p instanceof se){const g=p;e=r,t=be([$e(g),ut(G(g),void 0,he(g),0)],c),n=i;continue e}else{e=r,t=be([void 0,lt(G(p))],c),n=i;continue e}case 1:if($ instanceof se){const g=$;e=r,t=s,n=be([$e(g),ut(G(g),void 0,he(g),0)],h);continue e}else{e=r,t=s,n=be([void 0,lt(G($))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(G(l),G(a))|0;if(u!==0)return u|0;e=r,t=et(he(l),P(s)),n=et(void 0,P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof se){const $=c;e=r,t=be([$e($),ut(G($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,lt(G(c))],f),n=i;continue e}case 1:if(h instanceof se){const $=h;e=r,t=s,n=be([$e($),ut(G($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,lt(G(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof se){const l=a;if($e(l)==null){const u=r.Compare(G(o),G(l))|0;if(u!==0)return u|0;e=r,t=et(void 0,P(s)),n=et(he(l),P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof se){const $=c;e=r,t=be([$e($),ut(G($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,lt(G(c))],f),n=i;continue e}case 1:if(h instanceof se){const $=h;e=r,t=s,n=be([$e($),ut(G($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,lt(G(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(G(o),G(a))|0;if(l!==0)return l|0;e=r,t=P(s),n=P(i);continue e}}else{x(k(i));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof se){const c=l;e=r,t=be([$e(c),ut(G(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,lt(G(l))],a),n=i;continue e}case 1:if(f instanceof se){const c=f;e=r,t=s,n=be([$e(c),ut(G(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,lt(G(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(s)!=null){x(k(s));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof se){const c=l;e=r,t=be([$e(c),ut(G(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,lt(G(l))],a),n=i;continue e}case 1:if(f instanceof se){const c=f;e=r,t=s,n=be([$e(c),ut(G(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,lt(G(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=P(s),n=P(i);continue e}}}function s0(e,t,n){return t==null?n==null?0:-1:n==null?1:Fy(e,A(t),A(n))|0}function Wy(e,t,n){let r=n;Qd(s=>{_t(t,r,s),r=r+1|0},e)}function jy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=kr(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=i;continue e}else return s}}function Uy(e,t){return li((n,r)=>kr(e,r,n),void 0,t)}function zy(e,t){return Dt((n,r)=>kr(e,r,n),void 0,t)}function i0(e,t){if(gt(t))return Uy(e,t);if(t instanceof Ue)return zy(e,t);{const n=me(t);try{return jy(e,void 0,n)}finally{oe(n)}}}class Ka{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Yy(this)|0}Equals(t){let n;const r=this;return t instanceof Ka&&(n=t,s0(xr(r),xt(r),xt(n))===0)}toString(){return"set ["+ye("; ",ke(n=>Mt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return s0(xr(n),xt(n),xt(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 Kd(xr(n),t,xt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Wy(xt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Qa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Qa(this)|0}GetEnumerator(){return r0(xt(this))}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return r0(xt(this))}get size(){return Qa(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 o0(this,t)}keys(){return ke(n=>n,this)}values(){return ke(n=>n,this)}entries(){return ke(n=>[n,n],this)}forEach(t,n){const r=this;Tn(s=>{t(s,s,r)},r)}}function Ri(e,t){return new Ka(e,t)}function xr(e){return e.comparer}function xt(e){return e.tree}function Hy(e){return Ri(e,void 0)}function Gy(e,t){return Ri(xr(e),kr(xr(e),t,xt(e)))}function Qa(e){return Ny(xt(e))}function o0(e,t){return Kd(xr(e),t,xt(e))}function Yy(e){let t=0;const n=me(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ht(r)+631|0}}finally{oe(n)}return Math.abs(t)|0}function el(e,t){return o0(t,e)}function qy(e,t){return Gy(t,e)}function Jy(e){return Hy(e)}function Zy(e,t){return Ri(t,i0(t,e))}function Xy(e,t){return Ri(t,i0(t,e))}function Ky(){return ce()}function tl(e){return ye("/",e)}function Qy(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+tl(t),n])}function a0(e,t,n){try{oe(n)}catch(r){e(["Error stopping subscription: "+tl(t),r])}}function e_(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+tl(n),s]);return}}function t_(e,t){Qr(n=>{a0(e,n[0],n[1])},t)}function l0(e,t,n,r,s,i){return Qr(o=>{Qy(e,o)},n),Qr(o=>{a0(e,o[0],o[1])},r),vt(s,F1(o=>e_(e,t,o[0],o[1]),i))}function n_(){return[ce(),Jy({Compare:dt}),ce()]}function r_(e,t,n,r,s){return el(e,r)?[et(e,n),r,s]:[n,qy(e,r),et([e,t],s)]}function s_(e){return P1((t,n)=>r_(t[0],t[1],n[0],n[1],n[2]),e,n_())}const i_=ce();function u0(e,t){const n=Zy(tt(o=>o[0],e),{Compare:dt}),r=s_(t),s=r[1],i=r[0];if(n.Equals(s))return[i,ce(),e,ce()];{const o=V1(a=>el(a[0],s),e);return[i,o[1],o[0],jo(a=>!el(a[0],n),r[2])]}}class o_{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function a_(e,t){t.Subscribe(new o_(e))}class l_{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 c_(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,s)})}}class u_ extends l_{}function c_(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class f_{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 u_}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 d_(e,t){console.error(Ae(e),t)}function h_(e,t){let n,r=new f_(e);r.AutoReset=!1,n=r,a_(t,n.Elapsed()),n.Enabled=!0,n.Start()}function c0(e,t,n){Qr(r=>{try{r(t)}catch(s){e(s)}},n)}function J(){return ce()}function nl(e,t){return tt(n=>r=>{n(s=>{r(e(s))})},t)}function f0(e){return Wo(e)}function d0(e){return A(e)}function It(e,t,n,r,s){return A(i=>{e(E.Delay(()=>E.Bind(Vf(t(n)),o=>{const a=o;return i(a.tag===1?s(a.fields[0]):r(a.fields[0])),E.Zero()})))})}function Bi(e,t,n,r){return A(s=>{e(E.Delay(()=>E.Bind(Vf(t(n)),i=>{const o=i;return o.tag===0&&s(r(o.fields[0])),E.Zero()})))})}function He(e){h_(1,t=>{Wf(e)})}function m_(e,t,n,r){const s=dt(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const i=s>0;return o=>{const a=dt(o,t)|0;return i&&a<=0||!i&&a>=0?[o,r(o,e)]:void 0}}function p_(e,t,n,r,s){const i=m_(t,n,r,s);return I(()=>Q1(i,e))}function h0(e,t,n){return p_(e,t,n,0,(r,s)=>r+s)}class Ir extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class $_{constructor(t){this.state=new Ir(0,[ai(new Array(wc(t,10)),0,wc(t,10),null),0])}}function g_(e){return new $_(e)}function m0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],i=(r+1)%s.length|0;return i===n?e.state=new Ir(0,[s,n]):e.state=new Ir(1,[s,n,i]),Ae(ne(r,s))}else return}function w_(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,i=n.fields[0];_t(i,r,t);const o=(r+1)%i.length|0;o===s?e.state=new Ir(1,[y_(e,s,i),i.length,0]):e.state=new Ir(1,[i,o,s])}else{const r=n.fields[1]|0,s=n.fields[0];_t(s,r,t);const i=(r+1)%s.length|0;e.state=new Ir(1,[s,i,r])}}function y_(e,t,n){return Array.from(I(()=>V(ip(t,n),I(()=>V(op(t,n),I(()=>Ic(r=>y(ee()),h0(0,1,n.length))))))))}class rl extends L{constructor(t,n,r,s,i,o,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=i,this.onError=o,this.termination=a}}function Li(e,t,n){return new rl(e,t,r=>Ky(),n,te(r=>{const s=Pt(n)(r);return i=>{s(i)}}),r=>{d_(r[0],r[1])},[r=>!1,r=>{}])}function p0(e,t){return new rl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function $0(e){return Pt(e.view)}function __(e){return e.init}function v_(e,t,n,r,s,i,o){const a=Pt(e)(o.init),l=Gs(t)(Pt(o.update)),u=Gs(n)(Pt(o.view)),f=Gs(r)(Pt(o.setState));return new rl(a,te(l),Pt(s)(o.subscribe),te(u),te(f),o.onError,i(o.termination))}function b_(e,t,n){let r;const s=n.init(t),i=s[0],o=n.subscribe(i),a=n.termination,l=g_(10);let u=!1,f=i,c=i_,p=!1;const h=w=>{p||(w_(l,w),u||(u=!0,g(),u=!1))},$=Pt(e)(h),g=()=>{let w,v=m0(l);for(;!p&&v!=null;){const S=x(v);if(a[0](S))t_(n.onError,c),a[1](f),p=!0;else{const N=n.update(S,f),K=N[0],Q=n.subscribe(K);n.setState(K,$),c0(xe=>{n.onError([je(We("Error handling the message: %A"))(S),xe])},$,N[1]),f=K,c=(w=u0(c,Q),l0(n.onError,$,w[0],w[1],w[2],w[3])),v=m0(l)}}};u=!0,n.setState(i,$),c0(w=>{n.onError([je(We("Error intitializing:")),w])},$,s[1]),c=(r=u0(c,o),l0(n.onError,$,r[0],r[1],r[2],r[3])),g(),u=!1}function g0(e,t){b_(te(n=>n),e,t)}function C_(e){g0(void 0,e)}var w0={exports:{}},y0={};const S_=uy(cm);/**
767
+ */var My={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"]},Oy={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"]},Dy=Oy,Ny={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256-.0078C260.7-.0081 265.2 1.008 269.4 2.913L457.7 82.79C479.7 92.12 496.2 113.8 496 139.1C495.5 239.2 454.7 420.7 282.4 503.2C265.7 511.1 246.3 511.1 229.6 503.2C57.25 420.7 16.49 239.2 15.1 139.1C15.87 113.8 32.32 92.12 54.3 82.79L242.7 2.913C246.8 1.008 251.4-.0081 256-.0078V-.0078zM256 444.8C393.1 378 431.1 230.1 432 141.4L256 66.77L256 444.8z"]},Ry=Ny;function Ka(e,t){return d(ws,e,...t)}Ka({icon:My},[]),Ka({icon:Ry,size:"5x"},[]);const By=Ka({icon:Dy,size:"5x"},[]);function Ly(){let e,t,n,r,s,i;return $r(()=>{Jt(0)}),d("div",C(_([["className",ye(" ",["h-screen",ra])],(e=[d("div",C(_([["className","h-full flex justify-center items-center"],(t=[d("div",C(_([["className","border rounded-lg shadow-md sm:max-w-md p-8 text-center"],(n=[d("div",C(A((r=[d("div",C(_([["className",ye(" ",[ra])],(s=[d("i",{className:"text-red-600",children:b.Children.toArray([By])}),d("h4",{className:"text-2xl my-4 text-red-600",children:"This doesn't look right"}),d("p",{className:"mt-3 mb-5 text-gray-500",children:"Your invite has expired. Reach out to your employer to get another one."})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(_([["className","mt-16 text-gray-400 text-right text-x"],(i=[d("small",{children:[`Flare HR Pty Ltd © 2015-${Bo(rc())}`]})],["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(r))]))))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))],["children",b.Children.toArray(Array.from(e))])])))}class Zd{constructor(t){this.k=t}}function lt(e){return new Zd(e)}function G(e){return e.k}class ie extends Zd{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function ut(e,t,n,r){return new ie(e,t,n,r)}function $e(e){return e.left}function he(e){return e.right}function kr(e){return e.h}function K3(){}function Xd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=x(n);if(s instanceof ie){const i=s;e=$e(i),t=Xd(he(i),r+1);continue e}else return r+1|0}else return r|0}}function Vy(e){return Xd(e,0)}function kt(e,t,n){let r,s,i;const o=e;if(o!=null){const f=x(o);i=f instanceof ie?(r=f,kr(r)):1}else i=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof ie?(s=f,kr(s)):1}else a=0;const u=(i<a?a:i)|0;return u===0?lt(t):ut(t,e,n,u+1)}function Kd(e,t,n){let r,s,i,o,a,l,u,f,c;const p=e;if(p!=null){const g=x(p);c=g instanceof ie?(r=g,kr(r)):1}else c=0;let h;const $=n;if($!=null){const g=x($);h=g instanceof ie?(s=g,kr(s)):1}else h=0;if(h>c+2){const g=x(n);if(g instanceof ie){const w=g;if(i=$e(w),(i!=null?(o=x(i),o instanceof ie?(a=o,kr(a)):1):0)>c+1){const v=x($e(w));if(v instanceof ie){const S=v;return kt(kt(e,t,$e(S)),G(S),kt(he(S),G(w),he(w)))}else throw new Error("internal error: Set.rebalance")}else return kt(kt(e,t,$e(w)),G(w),he(w))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=x(e);if(g instanceof ie){const w=g;if(l=he(w),(l!=null?(u=x(l),u instanceof ie?(f=u,kr(f)):1):0)>h+1){const v=x(he(w));if(v instanceof ie){const S=v;return kt(kt($e(w),G(w),$e(S)),G(S),kt(he(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt($e(w),G(w),kt(he(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return kt(e,t,n)}function xr(e,t,n){if(n!=null){const r=x(n),s=e.Compare(t,G(r))|0;if(r instanceof ie){const i=r;return s<0?Kd(xr(e,t,$e(i)),G(i),he(i)):s===0?n:Kd($e(i),G(i),xr(e,t,he(i)))}else{const i=e.Compare(t,G(r))|0;return i<0?ut(t,void 0,n,2):i===0?n:ut(t,n,void 0,2)}}else return lt(t)}function Qd(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,G(o))|0;if(o instanceof ie){const l=o;if(a<0){e=r,t=s,n=$e(l);continue e}else{if(a===0)return!0;e=r,t=s,n=he(l);continue e}}else return a===0}else return!1}}function e0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof ie){const i=s;e0(n,$e(i)),n(G(i)),e=n,t=he(i);continue e}else n(G(s))}break}}class Fy extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function t0(e){e:for(;;){const t=e;if(M(t))return ce();{const n=k(t),r=P(t);if(n!=null){const s=x(n);if(s instanceof ie){const i=s;e=be([$e(i),lt(G(i)),he(i)],r);continue e}else return t}else{e=r;continue e}}}}function n0(e){return new Fy(t0(A(e)),!1)}function Wy(){throw new Error("Enumeration not started")}function jy(){throw new Error("Enumeration already started")}function r0(e){if(e.started){const t=e.stack;if(M(t))return jy();if(k(t)!=null){const n=x(k(t));return G(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Wy()}function Uy(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof ie)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=t0(P(t)),!M(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function s0(e){let t=n0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return r0(t)},"System.Collections.IEnumerator.get_Current"(){return r0(t)},"System.Collections.IEnumerator.MoveNext"(){return Uy(t)},"System.Collections.IEnumerator.Reset"(){t=n0(e)},Dispose(){}}}function zy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(s))return M(i)?0:-1;if(M(i))return 1;if(k(i)!=null)if(k(s)!=null){const o=x(k(s)),a=x(k(i));if(o instanceof ie){const l=o;if($e(l)==null)if(a instanceof ie){const u=a;if($e(u)==null){const f=r.Compare(G(l),G(u))|0;if(f!==0)return f|0;e=r,t=et(he(l),P(s)),n=et(he(u),P(i));continue e}else{let f,c,p,h,$;switch(M(s)?M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2:k(s)!=null?(f=0,c=P(s),p=x(k(s))):M(i)?f=2:k(i)!=null?(f=1,h=P(i),$=x(k(i))):f=2,f){case 0:if(p instanceof ie){const g=p;e=r,t=be([$e(g),ut(G(g),void 0,he(g),0)],c),n=i;continue e}else{e=r,t=be([void 0,lt(G(p))],c),n=i;continue e}case 1:if($ instanceof ie){const g=$;e=r,t=s,n=be([$e(g),ut(G(g),void 0,he(g),0)],h);continue e}else{e=r,t=s,n=be([void 0,lt(G($))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(G(l),G(a))|0;if(u!==0)return u|0;e=r,t=et(he(l),P(s)),n=et(void 0,P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof ie){const $=c;e=r,t=be([$e($),ut(G($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,lt(G(c))],f),n=i;continue e}case 1:if(h instanceof ie){const $=h;e=r,t=s,n=be([$e($),ut(G($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,lt(G(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof ie){const l=a;if($e(l)==null){const u=r.Compare(G(o),G(l))|0;if(u!==0)return u|0;e=r,t=et(void 0,P(s)),n=et(he(l),P(i));continue e}else{let u,f,c,p,h;switch(M(s)?M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2:k(s)!=null?(u=0,f=P(s),c=x(k(s))):M(i)?u=2:k(i)!=null?(u=1,p=P(i),h=x(k(i))):u=2,u){case 0:if(c instanceof ie){const $=c;e=r,t=be([$e($),ut(G($),void 0,he($),0)],f),n=i;continue e}else{e=r,t=be([void 0,lt(G(c))],f),n=i;continue e}case 1:if(h instanceof ie){const $=h;e=r,t=s,n=be([$e($),ut(G($),void 0,he($),0)],p);continue e}else{e=r,t=s,n=be([void 0,lt(G(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(G(o),G(a))|0;if(l!==0)return l|0;e=r,t=P(s),n=P(i);continue e}}else{x(k(i));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ie){const c=l;e=r,t=be([$e(c),ut(G(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,lt(G(l))],a),n=i;continue e}case 1:if(f instanceof ie){const c=f;e=r,t=s,n=be([$e(c),ut(G(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,lt(G(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(s)!=null){x(k(s));let o,a,l,u,f;switch(M(s)?M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2:k(s)!=null?(o=0,a=P(s),l=x(k(s))):M(i)?o=2:k(i)!=null?(o=1,u=P(i),f=x(k(i))):o=2,o){case 0:if(l instanceof ie){const c=l;e=r,t=be([$e(c),ut(G(c),void 0,he(c),0)],a),n=i;continue e}else{e=r,t=be([void 0,lt(G(l))],a),n=i;continue e}case 1:if(f instanceof ie){const c=f;e=r,t=s,n=be([$e(c),ut(G(c),void 0,he(c),0)],u);continue e}else{e=r,t=s,n=be([void 0,lt(G(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=P(s),n=P(i);continue e}}}function i0(e,t,n){return t==null?n==null?0:-1:n==null?1:zy(e,A(t),A(n))|0}function Hy(e,t,n){let r=n;e0(s=>{_t(t,r,s),r=r+1|0},e)}function Gy(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=xr(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=i;continue e}else return s}}function Yy(e,t){return ui((n,r)=>xr(e,r,n),void 0,t)}function qy(e,t){return Dt((n,r)=>xr(e,r,n),void 0,t)}function o0(e,t){if(wt(t))return Yy(e,t);if(t instanceof ze)return qy(e,t);{const n=me(t);try{return Gy(e,void 0,n)}finally{ae(n)}}}class Qa{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Xy(this)|0}Equals(t){let n;const r=this;return t instanceof Qa&&(n=t,i0(Ir(r),xt(r),xt(n))===0)}toString(){return"set ["+ye("; ",ke(n=>Mt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return i0(Ir(n),xt(n),xt(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 Qd(Ir(n),t,xt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Hy(xt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return el(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return el(this)|0}GetEnumerator(){return s0(xt(this))}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return s0(xt(this))}get size(){return el(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 a0(this,t)}keys(){return ke(n=>n,this)}values(){return ke(n=>n,this)}entries(){return ke(n=>[n,n],this)}forEach(t,n){const r=this;Tn(s=>{t(s,s,r)},r)}}function Bi(e,t){return new Qa(e,t)}function Ir(e){return e.comparer}function xt(e){return e.tree}function Jy(e){return Bi(e,void 0)}function Zy(e,t){return Bi(Ir(e),xr(Ir(e),t,xt(e)))}function el(e){return Vy(xt(e))}function a0(e,t){return Qd(Ir(e),t,xt(e))}function Xy(e){let t=0;const n=me(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Gt(r)+631|0}}finally{ae(n)}return Math.abs(t)|0}function tl(e,t){return a0(t,e)}function Ky(e,t){return Zy(t,e)}function Qy(e){return Jy(e)}function e_(e,t){return Bi(t,o0(t,e))}function t_(e,t){return Bi(t,o0(t,e))}function n_(){return ce()}function nl(e){return ye("/",e)}function r_(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+nl(t),n])}function l0(e,t,n){try{ae(n)}catch(r){e(["Error stopping subscription: "+nl(t),r])}}function s_(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+nl(n),s]);return}}function i_(e,t){Qr(n=>{l0(e,n[0],n[1])},t)}function u0(e,t,n,r,s,i){return Qr(o=>{r_(e,o)},n),Qr(o=>{l0(e,o[0],o[1])},r),vt(s,zp(o=>s_(e,t,o[0],o[1]),i))}function o_(){return[ce(),Qy({Compare:dt}),ce()]}function a_(e,t,n,r,s){return tl(e,r)?[et(e,n),r,s]:[n,Ky(e,r),et([e,t],s)]}function l_(e){return Np((t,n)=>a_(t[0],t[1],n[0],n[1],n[2]),e,o_())}const u_=ce();function c0(e,t){const n=e_(tt(o=>o[0],e),{Compare:dt}),r=l_(t),s=r[1],i=r[0];if(n.Equals(s))return[i,ce(),e,ce()];{const o=Up(a=>tl(a[0],s),e);return[i,o[1],o[0],Uo(a=>!tl(a[0],n),r[2])]}}class c_{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function f_(e,t){t.Subscribe(new c_(e))}class d_{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 m_(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,s)})}}class h_ extends d_{}function m_(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class p_{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 h_}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 $_(e,t){console.error(Ae(e),t)}function g_(e,t){let n,r=new p_(e);r.AutoReset=!1,n=r,f_(t,n.Elapsed()),n.Enabled=!0,n.Start()}function f0(e,t,n){Qr(r=>{try{r(t)}catch(s){e(s)}},n)}function J(){return ce()}function rl(e,t){return tt(n=>r=>{n(s=>{r(e(s))})},t)}function d0(e){return jo(e)}function h0(e){return A(e)}function It(e,t,n,r,s){return A(i=>{e(E.Delay(()=>E.Bind(Ff(t(n)),o=>{const a=o;return i(a.tag===1?s(a.fields[0]):r(a.fields[0])),E.Zero()})))})}function Li(e,t,n,r){return A(s=>{e(E.Delay(()=>E.Bind(Ff(t(n)),i=>{const o=i;return o.tag===0&&s(r(o.fields[0])),E.Zero()})))})}function Ge(e){g_(1,t=>{jf(e)})}function w_(e,t,n,r){const s=dt(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const i=s>0;return o=>{const a=dt(o,t)|0;return i&&a<=0||!i&&a>=0?[o,r(o,e)]:void 0}}function y_(e,t,n,r,s){const i=w_(t,n,r,s);return I(()=>r1(i,e))}function m0(e,t,n){return y_(e,t,n,0,(r,s)=>r+s)}class Ar extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class __{constructor(t){this.state=new Ar(0,[li(new Array(yc(t,10)),0,yc(t,10),null),0])}}function v_(e){return new __(e)}function p0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],i=(r+1)%s.length|0;return i===n?e.state=new Ar(0,[s,n]):e.state=new Ar(1,[s,n,i]),Ae(ne(r,s))}else return}function b_(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,i=n.fields[0];_t(i,r,t);const o=(r+1)%i.length|0;o===s?e.state=new Ar(1,[C_(e,s,i),i.length,0]):e.state=new Ar(1,[i,o,s])}else{const r=n.fields[1]|0,s=n.fields[0];_t(s,r,t);const i=(r+1)%s.length|0;e.state=new Ar(1,[s,i,r])}}function C_(e,t,n){return Array.from(I(()=>V(u1(t,n),I(()=>V(c1(t,n),I(()=>Ac(r=>y(ee()),m0(0,1,n.length))))))))}class sl extends B{constructor(t,n,r,s,i,o,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=i,this.onError=o,this.termination=a}}function Vi(e,t,n){return new sl(e,t,r=>n_(),n,te(r=>{const s=Pt(n)(r);return i=>{s(i)}}),r=>{$_(r[0],r[1])},[r=>!1,r=>{}])}function $0(e,t){return new sl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function g0(e){return Pt(e.view)}function S_(e){return e.init}function k_(e,t,n,r,s,i,o){const a=Pt(e)(o.init),l=Ys(t)(Pt(o.update)),u=Ys(n)(Pt(o.view)),f=Ys(r)(Pt(o.setState));return new sl(a,te(l),Pt(s)(o.subscribe),te(u),te(f),o.onError,i(o.termination))}function x_(e,t,n){let r;const s=n.init(t),i=s[0],o=n.subscribe(i),a=n.termination,l=v_(10);let u=!1,f=i,c=u_,p=!1;const h=w=>{p||(b_(l,w),u||(u=!0,g(),u=!1))},$=Pt(e)(h),g=()=>{let w,v=p0(l);for(;!p&&v!=null;){const S=x(v);if(a[0](S))i_(n.onError,c),a[1](f),p=!0;else{const N=n.update(S,f),K=N[0],Q=n.subscribe(K);n.setState(K,$),f0(xe=>{n.onError([Ue(je("Error handling the message: %A"))(S),xe])},$,N[1]),f=K,c=(w=c0(c,Q),u0(n.onError,$,w[0],w[1],w[2],w[3])),v=p0(l)}}};u=!0,n.setState(i,$),f0(w=>{n.onError([Ue(je("Error intitializing:")),w])},$,s[1]),c=(r=c0(c,o),u0(n.onError,$,r[0],r[1],r[2],r[3])),g(),u=!1}function w0(e,t){x_(te(n=>n),e,t)}function I_(e){w0(void 0,e)}var y0={exports:{}},_0={};const A_=hy(mm);/**
768
768
  * @license React
769
769
  * use-sync-external-store-shim.production.min.js
770
770
  *
@@ -772,10 +772,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
772
772
  *
773
773
  * This source code is licensed under the MIT license found in the
774
774
  * LICENSE file in the root directory of this source tree.
775
- */var Ar=S_;function k_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var x_=typeof Object.is=="function"?Object.is:k_,I_=Ar.useState,A_=Ar.useEffect,E_=Ar.useLayoutEffect,T_=Ar.useDebugValue;function P_(e,t){var n=t(),r=I_({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return E_(function(){s.value=n,s.getSnapshot=t,sl(s)&&i({inst:s})},[e,n,t]),A_(function(){return sl(s)&&i({inst:s}),e(function(){sl(s)&&i({inst:s})})},[e]),T_(n),n}function sl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!x_(e,n)}catch{return!0}}function M_(e,t){return t()}var O_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?M_:P_;y0.useSyncExternalStore=Ar.useSyncExternalStore!==void 0?Ar.useSyncExternalStore:O_,w0.exports=y0;var D_=w0.exports;class N_{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),i=[];this.finalDispatch=void 0;let o;const a=__(s)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=xo(this.state[0]);return g0(this.arg,p0((h,$)=>{const g=this.state;this.finalDispatch=$,this.state=[h,g[1],!0,i],h!==g[0]&&f()},v_((h,$)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(h,$,g)=>h($)(this.state[0]),Eo(h=>h),Eo(h=>h),te(h=>h),h=>[$=>h[0]($)?!0:p&&c,$=>{const g=$;xo(g)?oe(g):h[1]($)}],s))),()=>{c=!0}}}}function _0(e,t,n){return new N_(e,t,n)}function R_(e){return e.state}function B_(e){return e.subscribe}function L_(e,t,n){return O(e.arg,t)?!O(e.dependencies,n):!0}function il(e,t,n){const r=Qn(()=>_0(e,t,n)),s=r[0];L_(s,t,n)&&r[1](_0(e,t,n));const i=D_.useSyncExternalStore(B_(s),()=>R_(s)),o=i[2],a=i[3],l=i[1];return kn(()=>{if(o&&a.length>0){let u=me(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{oe(u)}km(a)}},[o,a]),[i[0],l]}let ol=class extends L{constructor(t,n){super(),this.Email=t,this.Phone=n}};function V_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],ol,()=>[["Email",Z(z)],["Phone",Z(z)]])}function F_(e){return new ol(Le($$,e.Email),Le(g$,e.Phone))}let al=class extends L{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Fn(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],al,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z(V_())]])}function W_(e){return new al(Le(os,e.CompanyName),Le(y$,e.Logo),Le(F_,e.Support))}class v0 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function Wn(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],v0,()=>[[["Item",ys()]],[["Item",ys()]],[["Item",ys()]],[["Item",ys()]],[["Item",ys()]]])}let b0=class extends L{constructor(t){super(),this.Category=t}};function ys(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],b0,()=>[["Category",Z(z)]])}class C0 extends L{constructor(t){super(),this.MagicCode=t}}function j_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],C0,()=>[["MagicCode",z]])}class U_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function z_(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],U_,()=>[[["Item",Qe(["AuthCode",z],["Branding",Z(Fn())],["FirstName",z],["IsInitialMagicLinkUsed",ht],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["FirstName",z],["IsInitialMagicLinkUsed",ht],["JourneyType",Wn()],["OneTimeCodeOptionAvailable",ht])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[]])}function H_(e){switch(e.tag){case 1:return e.fields[0].Branding;case 2:return e.fields[0].Branding;case 3:return e.fields[0].Branding;case 4:return e.fields[0].Branding;case 5:return e.fields[0].Branding;case 6:return e.fields[0].Branding;case 7:return;default:return e.fields[0].Branding}}function G_(e){switch(e.tag){case 1:return e.fields[0].JourneyType;case 2:return e.fields[0].JourneyType;case 3:return e.fields[0].JourneyType;case 4:return e.fields[0].JourneyType;case 5:return e.fields[0].JourneyType;case 6:return e.fields[0].JourneyType;case 7:return;default:return e.fields[0].JourneyType}}class Y_ extends L{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function q_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],Y_,()=>[["CssOverrides",un(z)],["Outcome",z_()]])}class S0 extends L{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function J_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],S0,()=>[["MagicCode",z],["IsChange",ht]])}class Z_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function X_(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],Z_,()=>[[["Item",Qe(["MaskedEmail",z])]],[],[["Item",Qe(["MaskedEmail",z])]],[],[],[],[],[]])}class K_ extends L{constructor(t){super(),this.Outcome=t}}function Q_(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],K_,()=>[["Outcome",X_()]])}class k0 extends L{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function e2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],k0,()=>[["MagicCode",z],["IsResend",ht]])}class t2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function n2(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],t2,()=>[[["Item",Qe(["MaskedPhone",z])]],[],[],[["Item",Qe(["MaskedPhone",z])]],[],[],[],[],[],[]])}class r2 extends L{constructor(t){super(),this.Outcome=t}}function s2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],r2,()=>[["Outcome",n2()]])}class x0 extends L{constructor(t){super(),this.OneTimeCode=t|0}}function i2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],x0,()=>[["OneTimeCode",Ks]])}class o2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function a2(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],o2,()=>[[["Item",Qe(["AuthCode",z])]],[["Item",Qe(["RemainingAttempts",Ks])]],[],[],[],[],[],[],[],[],[]])}class l2 extends L{constructor(t){super(),this.Outcome=t}}function u2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],l2,()=>[["Outcome",a2()]])}class I0 extends L{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function c2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],I0,()=>[["MagicCode",z],["IsPassThrough",ht]])}class f2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function d2(){return yt("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],f2,()=>[[],[],[],[],[],[],[]])}class h2 extends L{constructor(t){super(),this.Outcome=t}}function m2(){return ue("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],h2,()=>[["Outcome",d2()]])}let Er=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class Ce extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class p2 extends L{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function $2(e){const t=oi(e,["."],void 0,0);if(!Fo((n,r)=>n===r,t)&&t.length===2){const n=ne(1,t);return new m(0,[new p2(ne(0,t),n)])}else return new m(1,["Invalid link"])}class re extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let H=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class ll extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let ul=class extends L{constructor(t,n,r,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.JourneyType=s}},j=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function cl(e,t){if(t.startsWith(e))return t}function A0(e,t){if(t.endsWith(e))return t}function g2(e){return t=>{let n,r;return n=cl("/",t),n!=null?(r=n,r):"/"+t}}function Vi(e,t){return g2()(ye("/",tt(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function fl(e,t,n){t===1?history.pushState(void 0,"",Vi(e)):history.replaceState(void 0,"",Vi(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function E0(e,t){return O1(n=>{if(Zr(n))return ce();{const r=w1(n,"#");if(r==="?")return ce();if(cl("?",r)!=null)return A(r);{const s=r.split("?");if(!Fo((i,o)=>i===o,s)&&s.length===1){const i=ne(0,s);return A(decodeURIComponent(i))}else if(!Fo((i,o)=>i===o,s)&&s.length===2)if(ne(1,s)===""){const i=ne(0,s);return A(decodeURIComponent(i))}else{const i=ne(0,s),o=ne(1,s);return _([decodeURIComponent(i),"?"+o])}else return ce()}}},_(oi(cl("#",e)!=null?y1(e,1,e.length-1):t===1&&(A0("#",e)!=null||A0("#/",e)!=null)?"":e,["/"],void 0,0)))}function w2(e,t,n){return t(E0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const y2=Vp(e=>{const t=Fp(r=>{const s=Ee(e.onUrlChanged,i=>{});w2(Ee(e.hashMode,1),s)});Bp(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),di(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),pr(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??ee()});function wn(e){try{const t=new URLSearchParams(e);return pe(I(()=>ke(n=>[ne(0,n),ne(1,n)],t.entries())))}catch{return}}class Fi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function _2(e){const t=_(oi(e,["."],void 0,0));let n;if(M(t))n=4;else switch(k(t)){case"autodev-partner":{n=0;break}case"test-partner":{n=1;break}case"partner":{n=2;break}case"sandbox-partner":{n=3;break}default:n=4}switch(n){case 0:return new m(0,[new Fi(0,[])]);case 1:return new m(0,[new Fi(1,[])]);case 2:return new m(0,[new Fi(2,[])]);case 3:return new m(0,[new Fi(3,[])]);default:return new m(1,["Invalid environment"])}}const dl=document.getElementById("workflows-app"),v2=dl.getAttribute("data-identity-url"),jn=dl.getAttribute("data-backend-url"),b2=_(["workflows","app"]),C2=_(["workflows","embed","v1.0","app"]),S2="apollo-workflows-app";class Tr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function hl(e){switch(e.tag){case 1:return Vi(b2);default:return Vi(C2)}}function k2(e){return`${window.location.protocol}//${window.location.host}${hl(e)}`}_2(ze.create(jn).host);class Ft extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class T0 extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Qt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class _s extends L{constructor(t,n,r,s,i,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=i,this.overridenResponseType=o,this.timeout=a,this.content=l}}class Pr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class P0 extends L{constructor(t,n,r,s,i,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=i,this.content=o}}class M0{constructor(t,n){this.k=t,this.v=n}}function Wi(e,t){return new M0(e,t)}function qe(e){return e.k}function ct(e){return e.v}class Pe extends M0{constructor(t,n,r,s,i){super(t,n),this.left=r,this.right=s,this.h=i|0}}function ji(e,t,n,r,s){return new Pe(e,t,n,r,s)}function Je(e){return e.left}function Ze(e){return e.right}function Un(e){return e.h}function G3(){}function O0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;e=O0(n+1,Je(i)),t=Ze(i);continue e}else return n+1|0}else return n|0}}function x2(e){return O0(0,e)}function At(e,t,n,r){let s,i,o;const a=e;if(a!=null){const c=x(a);o=c instanceof Pe?(s=c,Un(s)):1}else o=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof Pe?(i=c,Un(i)):1}else l=0;const f=(o<l?l:o)|0;return f===0?Wi(t,n):ji(t,n,e,r,f+1)}function D0(e,t,n,r){let s,i,o,a,l,u,f,c,p;const h=e;if(h!=null){const w=x(h);p=w instanceof Pe?(s=w,Un(s)):1}else p=0;let $;const g=r;if(g!=null){const w=x(g);$=w instanceof Pe?(i=w,Un(i)):1}else $=0;if($>p+2){const w=x(r);if(w instanceof Pe){const v=w;if(o=Je(v),(o!=null?(a=x(o),a instanceof Pe?(l=a,Un(l)):1):0)>p+1){const S=x(Je(v));if(S instanceof Pe){const N=S;return At(At(e,t,n,Je(N)),qe(N),ct(N),At(Ze(N),qe(v),ct(v),Ze(v)))}else throw new Error("internal error: Map.rebalance")}else return At(At(e,t,n,Je(v)),qe(v),ct(v),Ze(v))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=x(e);if(w instanceof Pe){const v=w;if(u=Ze(v),(u!=null?(f=x(u),f instanceof Pe?(c=f,Un(c)):1):0)>$+1){const S=x(Ze(v));if(S instanceof Pe){const N=S;return At(At(Je(v),qe(v),ct(v),Je(N)),qe(N),ct(N),At(Ze(N),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(Je(v),qe(v),ct(v),At(Ze(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(e,t,n,r)}function Mr(e,t,n,r){if(r!=null){const s=x(r),i=e.Compare(t,qe(s))|0;if(s instanceof Pe){const o=s;return i<0?D0(Mr(e,t,n,Je(o)),qe(o),ct(o),Ze(o)):i===0?ji(t,n,Je(o),Ze(o),Un(o)):D0(Je(o),qe(o),ct(o),Mr(e,t,n,Ze(o)))}else return i<0?ji(t,n,void 0,r,2):i===0?Wi(t,n):ji(t,n,r,void 0,2)}else return Wi(t,n)}function N0(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(a===0)return Ae(ct(o));if(o instanceof Pe){const l=o;e=r,t=s,n=a<0?Je(l):Ze(l);continue e}else return}else return}}function I2(e,t,n){const r=N0(e,t,n);if(r==null)throw new Error;return x(r)}function A2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(o instanceof Pe){const l=o;if(a<0){e=r,t=s,n=Je(l);continue e}else{if(a===0)return!0;e=r,t=s,n=Ze(l);continue e}}else return a===0}else return!1}}function R0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;R0(n,Je(i)),n(qe(i),ct(i)),e=n,t=Ze(i);continue e}else n(qe(s),ct(s))}break}}function E2(e,t){R0(e,t)}function T2(e,t,n){let r=n;E2((s,i)=>{_t(t,r,[s,i]),r=r+1|0},e)}function P2(e,t){return Dt((n,r)=>Mr(e,r[0],r[1],n),void 0,t)}function M2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Mr(r,o[0],o[1],s),n=i;continue e}else return s}}function O2(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=ne(r,t);n=Mr(e,s[0],s[1],n)}return n}function B0(e,t){if(gt(t))return O2(e,t);if(t instanceof Ue)return P2(e,t);{const n=me(t);try{return M2(e,void 0,n)}finally{oe(n)}}}class D2 extends L{constructor(t,n){super(),this.stack=t,this.started=n}}function L0(e){e:for(;;){const t=e;if(M(t))return ce();{const n=P(t),r=k(t);if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;e=be([Je(i),Wi(qe(i),ct(i)),Ze(i)],n);continue e}else return t}else{e=n;continue e}}}}function V0(e){return new D2(L0(A(e)),!1)}function N2(){throw new Error("enumeration not started")}function R2(){throw new Error("enumeration already finished")}function F0(e){if(e.started){const t=e.stack;if(M(t))return R2();if(k(t)!=null){const n=x(k(t));if(n instanceof Pe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[qe(n),ct(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return N2()}function B2(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof Pe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=L0(P(t)),!M(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function W0(e){let t=V0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return F0(t)},"System.Collections.IEnumerator.get_Current"(){return F0(t)},"System.Collections.IEnumerator.MoveNext"(){return B2(t)},"System.Collections.IEnumerator.Reset"(){t=V0(e)},Dispose(){}}}class Ui{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return W2(this)|0}Equals(t){const n=this;if(t instanceof Ui){const r=t,s=me(n);try{const i=me(r);try{const o=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return O(l[0],u[0])&&O(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{oe(i)}}finally{oe(s)}}else return!1}toString(){return"map ["+ye("; ",ke(n=>mc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return W0(this.tree)}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return W0(this.tree)}CompareTo(t){const n=this;if(t instanceof Ui)return tp((s,i)=>{const o=n.comparer.Compare(s[0],i[0])|0;return(o!==0?o:dt(s[1],i[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 U0(n,t[0])&&O(j0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){T2(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ml(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ml(this)|0}get size(){return ml(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return j0(this,t)}has(t){return U0(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function zi(e,t){return new Ui(e,t)}function L2(e){return zi(e,void 0)}function V2(e,t,n){return zi(e.comparer,Mr(e.comparer,t,n,e.tree))}function j0(e,t){return I2(e.comparer,t,e.tree)}function ml(e){return x2(e.tree)}function U0(e,t){return A2(e.comparer,t,e.tree)}function F2(e,t){return N0(e.comparer,t,e.tree)}function W2(e){const t=(s,i)=>(s<<1)+i+631;let n=0;const r=me(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ht(s[0]))|0,n=t(n,Ht(s[1]))|0}}finally{oe(r)}return n|0}function z0(e,t,n){return V2(n,e,t)}function H0(e,t){return F2(t,e)}function j2(e,t){return zi(t,B0(t,e))}function U2(e,t){return zi(t,B0(t,e))}function pl(e){return L2(e)}function $l(e){return new T0("Content-Type",e)}function z2(e){return new T0("Authorization",e)}const zn=new _s("",new Ft(0,[]),ce(),!1,void 0,void 0,void 0,new Qt(0,[]));new P0(0,"","","",pl({Compare:zs}),new Pr(0,[""]));function G0(e,t){return pc(t)?new Array(0):oi(t,[e],void 0,0)}function H2(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 en(e){return new _s(e,zn.method,zn.headers,zn.withCredentials,zn.overridenMimeType,zn.overridenResponseType,zn.timeout,zn.content)}function tn(e,t){return new _s(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Hi(e,t){return new _s(t.url,t.method,vt(t.headers,A(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function yn(e,t){return new _s(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function vs(e){return Ff(t=>{const n=new XMLHttpRequest;n.open(H2(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,$;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new Pr(0,[n.responseText]):h==="text"?new Pr(0,[n.responseText]):h==="arraybuffer"?new Pr(2,[n.response]):h==="blob"?new Pr(1,[n.response]):new Pr(3,[n.response])),$=U2(x1(g=>{const w=_(G0(":",g));if(!M(w))return[k(w).toLocaleLowerCase(),ye(":",P(w)).trim()]},G0(`\r
776
- `,n.getAllResponseHeaders())),{Compare:zs}),new P0(f,l,c,n.responseURL,$,p)))};const r=me(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{oe(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const o=e.timeout;if(o!=null){const l=o|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(Ae(a.fields[0]));break}case 3:{n.send(Ae(a.fields[0]));break}case 2:{n.send(Ae(a.fields[0]));break}default:n.send()}})}function bs(e){return e<0?Math.ceil(e):Math.floor(e)}function Y0(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return G2(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function G2(e){return Number(BigInt(e)/10000n)}function Y2(e){return bs(e/864e5)}function q2(e){return bs(e%864e5/36e5)}function J2(e){return bs(e%36e5/6e4)}function Z2(e){return bs(e%6e4/1e3)}function X2(e){return bs(e%1e3)}function K2(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Y2(e)),s=Math.abs(q2(e)),i=Math.abs(J2(e)),o=Math.abs(Z2(e)),a=Math.abs(X2(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:ae(s,2)}:${ae(i,2)}:${ae(o,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+ae(a,3):"."+$m(a,3,7)}`}function Q2(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 Y0(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let s=0,i=0,o=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(o=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Y0(s,l,u,o,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function ev(e,t){try{return t.contents=Q2(e),!0}catch{return!1}}class B extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ge extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function q0(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function J0(e,t){switch(e.tag){case 2:return d1(q0(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return q0(t)}}function tv(e){return e}const Z0=ee();function Gi(e){return Array.from(e)}function nv(e){return ni(e,"O")}function rv(e){return K2(e)}function sv(){return ee()}function iv(e){return ni(e,"O")}function _n(e,t){return JSON.stringify(t,void 0,Ae(e))}function ov(e){return t=>Ym(Le(e,t),()=>Z0)}function X0(e,t,n,r){let s;const i=new Ke(ee());let o;const a=ge(r);o=a===""?e:z0(a,i,e);let l;if(Ju(r)){const u=ar(f=>{const c=J0(t,nr(f)),p=nn(o,t,n,f[1]);return h=>$=>{const g=Um(h,f);return(!n||n&&g!=null)&&($[c]=p(g)),$}},Gr(r));l=f=>ts((c,p)=>p(f)(c),{},u)}else if(qu(r))l=u=>{const f=jm(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return nr(c);{const $=h|0,g=Zu(c),w=ai(new Array($+1),0,$+1,null);_t(w,0,nr(c));for(let v=1;v<=$;v++){const S=nn(o,t,n,ne(v-1,g)[1]);_t(w,v,S(ne(v-1,p)))}return w}};else throw new Error((s=ge(r),je(We(`Cannot generate auto encoder for %s. Please pass an extra encoder.
775
+ */var Er=A_;function E_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var T_=typeof Object.is=="function"?Object.is:E_,P_=Er.useState,M_=Er.useEffect,O_=Er.useLayoutEffect,D_=Er.useDebugValue;function N_(e,t){var n=t(),r=P_({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return O_(function(){s.value=n,s.getSnapshot=t,il(s)&&i({inst:s})},[e,n,t]),M_(function(){return il(s)&&i({inst:s}),e(function(){il(s)&&i({inst:s})})},[e]),D_(n),n}function il(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!T_(e,n)}catch{return!0}}function R_(e,t){return t()}var B_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?R_:N_;_0.useSyncExternalStore=Er.useSyncExternalStore!==void 0?Er.useSyncExternalStore:B_,y0.exports=_0;var L_=y0.exports;class V_{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),i=[];this.finalDispatch=void 0;let o;const a=S_(s)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=Io(this.state[0]);return w0(this.arg,$0((h,$)=>{const g=this.state;this.finalDispatch=$,this.state=[h,g[1],!0,i],h!==g[0]&&f()},k_((h,$)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(h,$,g)=>h($)(this.state[0]),To(h=>h),To(h=>h),te(h=>h),h=>[$=>h[0]($)?!0:p&&c,$=>{const g=$;Io(g)?ae(g):h[1]($)}],s))),()=>{c=!0}}}}function v0(e,t,n){return new V_(e,t,n)}function F_(e){return e.state}function W_(e){return e.subscribe}function j_(e,t,n){return O(e.arg,t)?!O(e.dependencies,n):!0}function ol(e,t,n){const r=er(()=>v0(e,t,n)),s=r[0];j_(s,t,n)&&r[1](v0(e,t,n));const i=L_.useSyncExternalStore(W_(s),()=>F_(s)),o=i[2],a=i[3],l=i[1];return kn(()=>{if(o&&a.length>0){let u=me(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{ae(u)}Em(a)}},[o,a]),[i[0],l]}let al=class extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}};function U_(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],al,()=>[["Email",Z(z)],["Phone",Z(z)]])}function z_(e){return new al(Le(_$,e.Email),Le(v$,e.Phone))}let ll=class extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Fn(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],ll,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z(U_())]])}function H_(e){return new ll(Le(os,e.CompanyName),Le(C$,e.Logo),Le(z_,e.Support))}class b0 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function Wn(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],b0,()=>[[["Item",ys()]],[["Item",ys()]],[["Item",ys()]],[["Item",ys()]],[["Item",ys()]]])}let C0=class extends B{constructor(t){super(),this.Category=t}};function ys(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],C0,()=>[["Category",Z(z)]])}class S0 extends B{constructor(t){super(),this.MagicCode=t}}function G_(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],S0,()=>[["MagicCode",z]])}class Y_ extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function q_(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],Y_,()=>[[["Item",Qe(["AuthCode",z],["Branding",Z(Fn())],["FirstName",z],["IsInitialMagicLinkUsed",mt],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["FirstName",z],["IsInitialMagicLinkUsed",mt],["JourneyType",Wn()],["OneTimeCodeOptionAvailable",mt])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[["Item",Qe(["Branding",Z(Fn())],["JourneyType",Wn()])]],[]])}function J_(e){switch(e.tag){case 1:return e.fields[0].Branding;case 2:return e.fields[0].Branding;case 3:return e.fields[0].Branding;case 4:return e.fields[0].Branding;case 5:return e.fields[0].Branding;case 6:return e.fields[0].Branding;case 7:return;default:return e.fields[0].Branding}}function Z_(e){switch(e.tag){case 1:return e.fields[0].JourneyType;case 2:return e.fields[0].JourneyType;case 3:return e.fields[0].JourneyType;case 4:return e.fields[0].JourneyType;case 5:return e.fields[0].JourneyType;case 6:return e.fields[0].JourneyType;case 7:return;default:return e.fields[0].JourneyType}}class X_ extends B{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function K_(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],X_,()=>[["CssOverrides",dn(z)],["Outcome",q_()]])}class k0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function Q_(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],k0,()=>[["MagicCode",z],["IsChange",mt]])}class e2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function t2(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],e2,()=>[[["Item",Qe(["MaskedEmail",z])]],[],[["Item",Qe(["MaskedEmail",z])]],[],[],[],[],[]])}class n2 extends B{constructor(t){super(),this.Outcome=t}}function r2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],n2,()=>[["Outcome",t2()]])}class x0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function s2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],x0,()=>[["MagicCode",z],["IsResend",mt]])}class i2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function o2(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],i2,()=>[[["Item",Qe(["MaskedPhone",z])]],[],[],[["Item",Qe(["MaskedPhone",z])]],[],[],[],[],[],[]])}class a2 extends B{constructor(t){super(),this.Outcome=t}}function l2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],a2,()=>[["Outcome",o2()]])}class I0 extends B{constructor(t){super(),this.OneTimeCode=t|0}}function u2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],I0,()=>[["OneTimeCode",Qs]])}class c2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function f2(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],c2,()=>[[["Item",Qe(["AuthCode",z])]],[["Item",Qe(["RemainingAttempts",Qs])]],[],[],[],[],[],[],[],[],[]])}class d2 extends B{constructor(t){super(),this.Outcome=t}}function h2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],d2,()=>[["Outcome",f2()]])}class A0 extends B{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function m2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],A0,()=>[["MagicCode",z],["IsPassThrough",mt]])}class p2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function $2(){return ht("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],p2,()=>[[],[],[],[],[],[],[]])}class g2 extends B{constructor(t){super(),this.Outcome=t}}function w2(){return re("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],g2,()=>[["Outcome",$2()]])}let Tr=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class Ce extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class y2 extends B{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function _2(e){const t=ai(e,["."],void 0,0);if(!Wo((n,r)=>n===r,t)&&t.length===2){const n=ne(1,t);return new m(0,[new y2(ne(0,t),n)])}else return new m(1,["Invalid link"])}class se extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let H=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class ul extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let cl=class extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.JourneyType=s}},j=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function v2(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(i)){const o=r;return o.tag===1?new m(1,[o.fields[0]]):new m(0,[fr(o.fields[0])])}else{let o;const a=s(k(i));if(a.tag===1)o=new m(1,[a.fields[0]]);else{const l=r;o=l.tag===1?new m(1,[l.fields[0]]):new m(0,[et(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=s,n=P(i);continue e}}}function b2(e,t){return v2(new m(0,[ce()]),e,t)}function Pr(e){return b2(t=>t,e)}class C2 extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function S2(){return re("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],C2,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z(x2())]])}class k2 extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function x2(){return re("Workflows.Business.Aggregates.CommonDto.SupportDto",[],k2,()=>[["Email",Z(z)],["Phone",Z(z)]])}function I2(e){let t;const n=e.Email;if(n!=null){const r=qc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.Phone;if(s!=null){const i=Jc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new Yc(t.fields[0],r.fields[0])])}}function A2(e){let t;const n=e.Logo;if(n!=null){const r=Xc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.CompanyName;if(s!=null){const i=Zc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);if(r.tag===1)return new m(1,[r.fields[0]]);{let i;const o=e.Support;if(o!=null){const a=I2(o);i=a.tag===1?new m(1,[a.fields[0]]):new m(0,[a.fields[0]])}else i=new m(0,[void 0]);return i.tag===1?new m(1,[i.fields[0]]):new m(0,[new Gc(r.fields[0],t.fields[0],i.fields[0])])}}}class E2 extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}function T2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],E2,()=>[["Code",z],["DateIssued",Yt("System.DateTime")],["NumberOfAttempts",Qs],["DateOfLastAttempt",Z(Yt("System.DateTime"))]])}function P2(e){return new x$(k$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class M2 extends B{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}function O2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],M2,()=>[["Code",z],["DateIssued",Yt("System.DateTime")],["SecondFactor",Z(T2())],["Branding",Z(S2())]])}function D2(e){const t=Hc(e.Code);if(t.tag===1)return new m(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:P2(r);let s;const i=e.Branding;if(i!=null){const o=A2(i);s=o.tag===1?new m(1,[o.fields[0]]):new m(0,[o.fields[0]])}else s=new m(0,[void 0]);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[new I$(t.fields[0],e.DateIssued,n,s.fields[0])])}}class N2 extends B{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function R2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],N2,()=>[["Id",z],["DisplayName",z],["ComponentTagName",z]])}function B2(e){return new m(0,[new Rt(Kc(e.Id),e.DisplayName,e.ComponentTagName)])}function L2(e){return Pr(tt(B2,e))}class V2 extends B{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function F2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],V2,()=>[["ActivatedDates",dn(Yt("System.DateTime"))],["CompletedSteps",dn(jm(z,Yt("System.DateTime")))]])}function W2(e){const t=Pr(tt(n=>new m(0,[[Kc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new $f(e.ActivatedDates,t.fields[0])])}class j2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function U2(){return ht("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],j2,()=>[[],[["Item",F2()]],[["Item",Yt("System.DateTime")]],[["Item",Yt("System.DateTime")]]])}function z2(e){switch(e.tag){case 1:{const t=W2(e.fields[0]);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new us(1,[t.fields[0]])])}case 2:return new m(0,[new us(2,[e.fields[0]])]);case 3:return new m(0,[new us(3,[e.fields[0]])]);default:return new m(0,[new us(0,[])])}}class H2 extends B{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function G2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],H2,()=>[["Id",Yt("System.Guid")],["Name",z],["Steps",dn(R2())]])}function Y2(e){const t=L2(e.Steps);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=P$(e.Id);return n.tag===1?new m(1,[n.fields[0]]):new m(0,[new Ne(n.fields[0],e.Name,t.fields[0])])}}class q2 extends B{constructor(t,n){super(),this.Name=t,this.Value=n}}function J2(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],q2,()=>[["Name",z],["Value",z]])}function Z2(e){return L$(e.Name,e.Value)}class X2 extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function K2(){return ht("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],X2,()=>[[],[]])}class Q2 extends B{constructor(t){super(),this.BenefitsOnboarding=t}}function ev(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],Q2,()=>[["BenefitsOnboarding",Z(Qe(["Show",K2()]))]])}function tv(e){let t,n;return new F$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new yf(1,[]):new yf(0,[])})))}class nv extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function rv(){return ht("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],nv,()=>[[["Item",_s()]],[["Item",_s()]],[["Item",_s()]],[["Item",_s()]],[["Item",_s()]]])}class sv extends B{constructor(t){super(),this.Category=t}}function _s(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],sv,()=>[["Category",Z(z)]])}function vs(e){return new wf(e.Category)}function iv(e){if(e==null)return new wr(0,[new wf(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new wr(1,[vs(t)])}case 2:{const t=e.fields[0];return new wr(2,[vs(t)])}case 3:{const t=e.fields[0];return new wr(3,[vs(t)])}case 4:{const t=e.fields[0];return new wr(4,[vs(t)])}default:{const t=e.fields[0];return new wr(0,[vs(t)])}}}class ov extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function E0(){return re("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],ov,()=>[["Id",Qs],["DateCreated",Yt("System.DateTime")],["Configuration",G2()],["Status",U2()],["Invite",Z(O2())],["Tags",Z(dn(J2()))],["Creator",Z(z)],["StepsConfiguration",Z(ev())],["JourneyType",Z(rv())],["IsBenefitsStepEnabled",Z(mt)],["PaySetupComplete",Z(mt)]])}function T0(e){let t,n;const r=Y2(e.Configuration);if(r.tag===1)return new m(1,[r.fields[0]]);{const s=r.fields[0],i=z2(e.Status);if(i.tag===1)return new m(1,[i.fields[0]]);{const o=i.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Pr(tt(f=>{const c=[f[0],f[1]],p=c[0];return Sc(h=>O(h.Id,p),s.Steps)?new m(0,[[p,c[1]]]):new m(1,["Step id is not configured for this Process Instance."])},l.CompletedSteps));a=u.tag===1?new m(1,[u.fields[0]]):new m(0,[new us(1,[new $f(l.ActivatedDates,u.fields[0])])])}else a=new m(0,[o]);if(a.tag===1)return new m(1,[a.fields[0]]);{let l;const u=e.Invite;if(u!=null){const f=D2(u);l=f.tag===1?new m(1,[f.fields[0]]):new m(0,[f.fields[0]])}else l=new m(0,[void 0]);if(l.tag===1)return new m(1,[l.fields[0]]);{let f;const c=e.Tags;if(c!=null){const p=Pr(tt(Z2,c));f=p.tag===1?new m(1,[p.fields[0]]):new m(0,[p.fields[0]])}else f=new m(0,[void 0]);return f.tag===1?new m(1,[f.fields[0]]):new m(0,[new V$(gf(e.Id),s,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:Uc(t)),(n=e.StepsConfiguration,n==null?void 0:tv(n)),iv(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class bs extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class av extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=s}}class jn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function lv(){return ht("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandTypeDto",[],jn,()=>[[["Item",z]],[["Item",z]],[],[["Item",mt]],[["Item",mt]],[["Item",mt]]])}function uv(e){switch(e.tag){case 1:return new jn(1,[ls(e.fields[0])]);case 2:return new jn(2,[]);case 3:return new jn(3,[e.fields[0]]);case 4:return new jn(4,[e.fields[0]]);case 5:return new jn(5,[e.fields[0]]);default:return new jn(0,[ls(e.fields[0])])}}const cv=T0;class fv extends B{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=s}}function dv(){return re("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],fv,()=>[["CssOverrides",dn(z)],["ProcessInstanceDto",E0()],["IsBenefitsEnabled",mt],["Branding",Z(mv())]])}class hv extends B{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function mv(){return re("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],hv,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z($v())]])}class pv extends B{constructor(t,n){super(),this.Email=t,this.Phone=n}}function $v(){return re("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],pv,()=>[["Email",Z(z)],["Phone",Z(z)]])}function gv(e){let t,n,r,s,i,o,a,l,u,f,c,p,h,$,g,w,v,S;return new Gc((t=(n=(r=e.CompanyName,r==null?void 0:Zc(r)),n!=null?(s=n,s.tag===1?new m(1,[s.fields[0]]):new m(0,[s.fields[0]])):new m(0,[void 0])),t.tag===1?void 0:t.fields[0]),(i=(o=(a=e.Logo,a==null?void 0:Xc(a)),o!=null?(l=o,l.tag===1?new m(1,[l.fields[0]]):new m(0,[l.fields[0]])):new m(0,[void 0])),i.tag===1?void 0:i.fields[0]),(u=e.Support,u==null?void 0:(f=u,new Yc((c=(p=(h=f.Email,h==null?void 0:qc(h)),p!=null?($=p,$.tag===1?new m(1,[$.fields[0]]):new m(0,[$.fields[0]])):new m(0,[void 0])),c.tag===1?void 0:c.fields[0]),(g=(w=(v=f.Phone,v==null?void 0:Jc(v)),w!=null?(S=w,S.tag===1?new m(1,[S.fields[0]]):new m(0,[S.fields[0]])):new m(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function wv(e){let t,n;return new av(e.CssOverrides,(t=T0(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:gv(n)))}class Mr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function yv(){return ht("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventTypeDto",[],Mr,()=>[[["Item",z]],[],[]])}function fl(e,t){if(t.startsWith(e))return t}function P0(e,t){if(t.endsWith(e))return t}function _v(e){return t=>{let n,r;return n=fl("/",t),n!=null?(r=n,r):"/"+t}}function Fi(e,t){return _v()(ye("/",tt(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function dl(e,t,n){t===1?history.pushState(void 0,"",Fi(e)):history.replaceState(void 0,"",Fi(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function M0(e,t){return Bp(n=>{if(Zr(n))return ce();{const r=bp(n,"#");if(r==="?")return ce();if(fl("?",r)!=null)return A(r);{const s=r.split("?");if(!Wo((i,o)=>i===o,s)&&s.length===1){const i=ne(0,s);return A(decodeURIComponent(i))}else if(!Wo((i,o)=>i===o,s)&&s.length===2)if(ne(1,s)===""){const i=ne(0,s);return A(decodeURIComponent(i))}else{const i=ne(0,s),o=ne(1,s);return _([decodeURIComponent(i),"?"+o])}else return ce()}}},_(ai(fl("#",e)!=null?Cp(e,1,e.length-1):t===1&&(P0("#",e)!=null||P0("#/",e)!=null)?"":e,["/"],void 0,0)))}function vv(e,t,n){return t(M0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const bv=U1(e=>{const t=z1(r=>{const s=Ee(e.onUrlChanged,i=>{});vv(Ee(e.hashMode,1),s)});W1(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),hi(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),$r(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??ee()});function vn(e){try{const t=new URLSearchParams(e);return pe(I(()=>ke(n=>[ne(0,n),ne(1,n)],t.entries())))}catch{return}}class Wi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function Cv(e){const t=_(ai(e,["."],void 0,0));let n;if(M(t))n=4;else switch(k(t)){case"autodev-partner":{n=0;break}case"test-partner":{n=1;break}case"partner":{n=2;break}case"sandbox-partner":{n=3;break}default:n=4}switch(n){case 0:return new m(0,[new Wi(0,[])]);case 1:return new m(0,[new Wi(1,[])]);case 2:return new m(0,[new Wi(2,[])]);case 3:return new m(0,[new Wi(3,[])]);default:return new m(1,["Invalid environment"])}}const hl=document.getElementById("workflows-app"),Sv=hl.getAttribute("data-identity-url"),Un=hl.getAttribute("data-backend-url"),kv=_(["workflows","app"]),xv=_(["workflows","embed","v1.0","app"]),Iv="apollo-workflows-app";class zn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function ml(){return ht("Workflows.UI.Config.AppMode",[],zn,()=>[[],[],[]])}class O0 extends B{constructor(t){super(),this.AppMode=t}}function Av(){return re("Workflows.UI.Config.WorkflowActivationContext",[],O0,()=>[["AppMode",ml()]])}class D0 extends B{constructor(t,n){super(),this.Commands=t,this.AppMode=n}}function Ev(){return re("Workflows.UI.Config.ProcessInstanceCommandDto",[],D0,()=>[["Commands",dn(lv())],["AppMode",ml()]])}class N0 extends B{constructor(t,n){super(),this.Events=t,this.AppMode=n}}function Tv(){return re("Workflows.UI.Config.WorkflowAnalyticsEventDto",[],N0,()=>[["Events",dn(yv())],["AppMode",ml()]])}function pl(e){switch(e.tag){case 1:return Fi(kv);default:return Fi(xv)}}function Pv(e){return`${window.location.protocol}//${window.location.host}${pl(e)}`}Cv(He.create(Un).host);class Ft extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class R0 extends R{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Wt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Cs extends B{constructor(t,n,r,s,i,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=i,this.overridenResponseType=o,this.timeout=a,this.content=l}}class Or extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class B0 extends B{constructor(t,n,r,s,i,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=i,this.content=o}}class L0{constructor(t,n){this.k=t,this.v=n}}function ji(e,t){return new L0(e,t)}function qe(e){return e.k}function ct(e){return e.v}class Pe extends L0{constructor(t,n,r,s,i){super(t,n),this.left=r,this.right=s,this.h=i|0}}function Ui(e,t,n,r,s){return new Pe(e,t,n,r,s)}function Je(e){return e.left}function Ze(e){return e.right}function Hn(e){return e.h}function Q3(){}function V0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;e=V0(n+1,Je(i)),t=Ze(i);continue e}else return n+1|0}else return n|0}}function Mv(e){return V0(0,e)}function At(e,t,n,r){let s,i,o;const a=e;if(a!=null){const c=x(a);o=c instanceof Pe?(s=c,Hn(s)):1}else o=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof Pe?(i=c,Hn(i)):1}else l=0;const f=(o<l?l:o)|0;return f===0?ji(t,n):Ui(t,n,e,r,f+1)}function F0(e,t,n,r){let s,i,o,a,l,u,f,c,p;const h=e;if(h!=null){const w=x(h);p=w instanceof Pe?(s=w,Hn(s)):1}else p=0;let $;const g=r;if(g!=null){const w=x(g);$=w instanceof Pe?(i=w,Hn(i)):1}else $=0;if($>p+2){const w=x(r);if(w instanceof Pe){const v=w;if(o=Je(v),(o!=null?(a=x(o),a instanceof Pe?(l=a,Hn(l)):1):0)>p+1){const S=x(Je(v));if(S instanceof Pe){const N=S;return At(At(e,t,n,Je(N)),qe(N),ct(N),At(Ze(N),qe(v),ct(v),Ze(v)))}else throw new Error("internal error: Map.rebalance")}else return At(At(e,t,n,Je(v)),qe(v),ct(v),Ze(v))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=x(e);if(w instanceof Pe){const v=w;if(u=Ze(v),(u!=null?(f=x(u),f instanceof Pe?(c=f,Hn(c)):1):0)>$+1){const S=x(Ze(v));if(S instanceof Pe){const N=S;return At(At(Je(v),qe(v),ct(v),Je(N)),qe(N),ct(N),At(Ze(N),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(Je(v),qe(v),ct(v),At(Ze(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(e,t,n,r)}function Dr(e,t,n,r){if(r!=null){const s=x(r),i=e.Compare(t,qe(s))|0;if(s instanceof Pe){const o=s;return i<0?F0(Dr(e,t,n,Je(o)),qe(o),ct(o),Ze(o)):i===0?Ui(t,n,Je(o),Ze(o),Hn(o)):F0(Je(o),qe(o),ct(o),Dr(e,t,n,Ze(o)))}else return i<0?Ui(t,n,void 0,r,2):i===0?ji(t,n):Ui(t,n,r,void 0,2)}else return ji(t,n)}function W0(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(a===0)return Ae(ct(o));if(o instanceof Pe){const l=o;e=r,t=s,n=a<0?Je(l):Ze(l);continue e}else return}else return}}function Ov(e,t,n){const r=W0(e,t,n);if(r==null)throw new Error;return x(r)}function Dv(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i!=null){const o=x(i),a=r.Compare(s,qe(o))|0;if(o instanceof Pe){const l=o;if(a<0){e=r,t=s,n=Je(l);continue e}else{if(a===0)return!0;e=r,t=s,n=Ze(l);continue e}}else return a===0}else return!1}}function j0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;j0(n,Je(i)),n(qe(i),ct(i)),e=n,t=Ze(i);continue e}else n(qe(s),ct(s))}break}}function Nv(e,t){j0(e,t)}function Rv(e,t,n){let r=n;Nv((s,i)=>{_t(t,r,[s,i]),r=r+1|0},e)}function Bv(e,t){return Dt((n,r)=>Dr(e,r[0],r[1],n),void 0,t)}function Lv(e,t,n){e:for(;;){const r=e,s=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Dr(r,o[0],o[1],s),n=i;continue e}else return s}}function Vv(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=ne(r,t);n=Dr(e,s[0],s[1],n)}return n}function U0(e,t){if(wt(t))return Vv(e,t);if(t instanceof ze)return Bv(e,t);{const n=me(t);try{return Lv(e,void 0,n)}finally{ae(n)}}}class Fv extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function z0(e){e:for(;;){const t=e;if(M(t))return ce();{const n=P(t),r=k(t);if(r!=null){const s=x(r);if(s instanceof Pe){const i=s;e=be([Je(i),ji(qe(i),ct(i)),Ze(i)],n);continue e}else return t}else{e=n;continue e}}}}function H0(e){return new Fv(z0(A(e)),!1)}function Wv(){throw new Error("enumeration not started")}function jv(){throw new Error("enumeration already finished")}function G0(e){if(e.started){const t=e.stack;if(M(t))return jv();if(k(t)!=null){const n=x(k(t));if(n instanceof Pe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[qe(n),ct(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Wv()}function Uv(e){if(e.started){const t=e.stack;if(M(t))return!1;if(k(t)!=null){if(x(k(t))instanceof Pe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=z0(P(t)),!M(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!M(e.stack)}function Y0(e){let t=H0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return G0(t)},"System.Collections.IEnumerator.get_Current"(){return G0(t)},"System.Collections.IEnumerator.MoveNext"(){return Uv(t)},"System.Collections.IEnumerator.Reset"(){t=H0(e)},Dispose(){}}}class zi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Yv(this)|0}Equals(t){const n=this;if(t instanceof zi){const r=t,s=me(n);try{const i=me(r);try{const o=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return O(l[0],u[0])&&O(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{ae(i)}}finally{ae(s)}}else return!1}toString(){return"map ["+ye("; ",ke(n=>pc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Y0(this.tree)}[Symbol.iterator](){return Ur(me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Y0(this.tree)}CompareTo(t){const n=this;if(t instanceof zi)return i1((s,i)=>{const o=n.comparer.Compare(s[0],i[0])|0;return(o!==0?o:dt(s[1],i[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 J0(n,t[0])&&O(q0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Rv(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return $l(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return $l(this)|0}get size(){return $l(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ke(n=>[n[0],n[1]],this)}get(t){return q0(this,t)}has(t){return J0(this,t)}keys(){return ke(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ke(n=>n[1],this)}forEach(t,n){const r=this;Tn(s=>{t(s[1],s[0],r)},r)}}function Hi(e,t){return new zi(e,t)}function zv(e){return Hi(e,void 0)}function Hv(e,t,n){return Hi(e.comparer,Dr(e.comparer,t,n,e.tree))}function q0(e,t){return Ov(e.comparer,t,e.tree)}function $l(e){return Mv(e.tree)}function J0(e,t){return Dv(e.comparer,t,e.tree)}function Gv(e,t){return W0(e.comparer,t,e.tree)}function Yv(e){const t=(s,i)=>(s<<1)+i+631;let n=0;const r=me(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Gt(s[0]))|0,n=t(n,Gt(s[1]))|0}}finally{ae(r)}return n|0}function Z0(e,t,n){return Hv(n,e,t)}function X0(e,t){return Gv(t,e)}function qv(e,t){return Hi(t,U0(t,e))}function Jv(e,t){return Hi(t,U0(t,e))}function gl(e){return zv(e)}function Gi(e){return new R0("Content-Type",e)}function Zv(e){return new R0("Authorization",e)}const Gn=new Cs("",new Ft(0,[]),ce(),!1,void 0,void 0,void 0,new Wt(0,[]));new B0(0,"","","",gl({Compare:Hs}),new Or(0,[""]));function K0(e,t){return $c(t)?new Array(0):ai(t,[e],void 0,0)}function Xv(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 en(e){return new Cs(e,Gn.method,Gn.headers,Gn.withCredentials,Gn.overridenMimeType,Gn.overridenResponseType,Gn.timeout,Gn.content)}function tn(e,t){return new Cs(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ss(e,t){return new Cs(t.url,t.method,vt(t.headers,A(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function nn(e,t){return new Cs(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ks(e){return Wf(t=>{const n=new XMLHttpRequest;n.open(Xv(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,$;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new Or(0,[n.responseText]):h==="text"?new Or(0,[n.responseText]):h==="arraybuffer"?new Or(2,[n.response]):h==="blob"?new Or(1,[n.response]):new Or(3,[n.response])),$=Jv(Tp(g=>{const w=_(K0(":",g));if(!M(w))return[k(w).toLocaleLowerCase(),ye(":",P(w)).trim()]},K0(`\r
776
+ `,n.getAllResponseHeaders())),{Compare:Hs}),new B0(f,l,c,n.responseURL,$,p)))};const r=me(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{ae(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const o=e.timeout;if(o!=null){const l=o|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(Ae(a.fields[0]));break}case 3:{n.send(Ae(a.fields[0]));break}case 2:{n.send(Ae(a.fields[0]));break}default:n.send()}})}function xs(e){return e<0?Math.ceil(e):Math.floor(e)}function Q0(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return Kv(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function Kv(e){return Number(BigInt(e)/10000n)}function Qv(e){return xs(e/864e5)}function eb(e){return xs(e%864e5/36e5)}function tb(e){return xs(e%36e5/6e4)}function nb(e){return xs(e%6e4/1e3)}function rb(e){return xs(e%1e3)}function sb(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Qv(e)),s=Math.abs(eb(e)),i=Math.abs(tb(e)),o=Math.abs(nb(e)),a=Math.abs(rb(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:le(s,2)}:${le(i,2)}:${le(o,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+le(a,3):"."+_m(a,3,7)}`}function ib(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 Q0(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let s=0,i=0,o=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(o=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Q0(s,l,u,o,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function ob(e,t){try{return t.contents=ib(e),!0}catch{return!1}}class L extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Fe extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function eh(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function th(e,t){switch(e.tag){case 2:return $p(eh(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return eh(t)}}function ab(e){return e}const nh=ee();function Yi(e){return Array.from(e)}function lb(e){return ri(e,"O")}function ub(e){return sb(e)}function cb(){return ee()}function fb(e){return ri(e,"O")}function rn(e,t){return JSON.stringify(t,void 0,Ae(e))}function db(e){return t=>Xm(Le(e,t),()=>nh)}function rh(e,t,n,r){let s;const i=new Ke(ee());let o;const a=ge(r);o=a===""?e:Z0(a,i,e);let l;if(Zu(r)){const u=lr(f=>{const c=th(t,rr(f)),p=sn(o,t,n,f[1]);return h=>$=>{const g=Ym(h,f);return(!n||n&&g!=null)&&($[c]=p(g)),$}},Gr(r));l=f=>ts((c,p)=>p(f)(c),{},u)}else if(Ju(r))l=u=>{const f=Gm(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return rr(c);{const $=h|0,g=Xu(c),w=li(new Array($+1),0,$+1,null);_t(w,0,rr(c));for(let v=1;v<=$;v++){const S=sn(o,t,n,ne(v-1,g)[1]);_t(w,v,S(ne(v-1,p)))}return w}};else throw new Error((s=ge(r),Ue(je(`Cannot generate auto encoder for %s. Please pass an extra encoder.
777
777
 
778
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function nn(e,t,n,r){const s=ge(r),i=H0(s,e);if(i==null)if(ju(r)){const o=nn(e,t,n,Hr(r));return a=>Gi(ke(o,a))}else if(Mo(r))switch(ge(Hu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=ge(r);return fc(We(`Cannot generate auto encoder for %s.
778
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function sn(e,t,n,r){const s=ge(r),i=X0(s,e);if(i==null)if(Uu(r)){const o=sn(e,t,n,Hr(r));return a=>Yi(ke(o,a))}else if(Oo(r))switch(ge(Gu(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=ge(r);return dc(je(`Cannot generate auto encoder for %s.
779
779
  Thoth.Json.Net only support the following enum types:
780
780
  - sbyte
781
781
  - byte
@@ -787,17 +787,17 @@ Thoth.Json.Net only support the following enum types:
787
787
  If you can't use one of these types, please pass an extra encoder.
788
788
 
789
789
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
790
- `))(a)}}else if(Uu(r))if(Oo(r)){const o=ar(a=>nn(e,t,n,a),Yu(r));return a=>Gi(rp((l,u)=>ne(l,o)(u),a))}else{const o=ge(zu(r));if(o==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new pm(()=>ov(nn(e,t,n,ne(0,it(r)))));return l=>l==null?Z0:a.Value(l)}else if(o==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||o==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||o==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=nn(e,t,n,ne(0,it(r)));return l=>Gi(ke(a,l))}else if(o==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=ne(0,it(r)),l=nn(e,t,n,ne(1,it(r)));if(ge(a)==="System.String"||ge(a)==="System.Guid")return u=>ts((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=nn(e,t,n,a),c=>Gi(ke(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return X0(e,t,n,r)}else switch(s){case"System.Boolean":return o=>o;case"Microsoft.FSharp.Core.Unit":return sv;case"System.String":return o=>o;case"System.Char":return o=>o;case"System.SByte":return o=>o;case"System.Byte":return o=>o;case"System.Int16":return o=>o;case"System.UInt16":return o=>o;case"System.Int32":return o=>o;case"System.UInt32":return o=>o;case"System.Double":return o=>o;case"System.Single":return o=>o;case"System.DateTime":return iv;case"System.DateTimeOffset":return nv;case"System.TimeSpan":return rv;case"System.Guid":return tv;case"System.Object":return o=>o;default:return X0(e,t,n,r)}else{const o=i;return a=>o.contents(a)}}function av(e){return pl({Compare:zs})}function vn(e,t,n,r){const s=Ee(t,new Ge(0,[])),i=Ee(r,!0);return nn(av(),s,i,e)}function K0(e,t){lv(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function lv(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 uv(){return K0(-621355968e5,0)}function cv(e){const[t,n]=tc(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return K0(t.getTime(),r)}function fv(e,t){try{return t.contents=cv(e),!0}catch{return!1}}function Cs(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
790
+ `))(a)}}else if(zu(r))if(Do(r)){const o=lr(a=>sn(e,t,n,a),qu(r));return a=>Yi(a1((l,u)=>ne(l,o)(u),a))}else{const o=ge(Hu(r));if(o==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new ym(()=>db(sn(e,t,n,ne(0,it(r)))));return l=>l==null?nh:a.Value(l)}else if(o==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||o==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||o==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=sn(e,t,n,ne(0,it(r)));return l=>Yi(ke(a,l))}else if(o==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=ne(0,it(r)),l=sn(e,t,n,ne(1,it(r)));if(ge(a)==="System.String"||ge(a)==="System.Guid")return u=>ts((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=sn(e,t,n,a),c=>Yi(ke(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return rh(e,t,n,r)}else switch(s){case"System.Boolean":return o=>o;case"Microsoft.FSharp.Core.Unit":return cb;case"System.String":return o=>o;case"System.Char":return o=>o;case"System.SByte":return o=>o;case"System.Byte":return o=>o;case"System.Int16":return o=>o;case"System.UInt16":return o=>o;case"System.Int32":return o=>o;case"System.UInt32":return o=>o;case"System.Double":return o=>o;case"System.Single":return o=>o;case"System.DateTime":return fb;case"System.DateTimeOffset":return lb;case"System.TimeSpan":return ub;case"System.Guid":return ab;case"System.Object":return o=>o;default:return rh(e,t,n,r)}else{const o=i;return a=>o.contents(a)}}function hb(e){return gl({Compare:Hs})}function on(e,t,n,r){const s=Ee(t,new Fe(0,[])),i=Ee(r,!0);return sn(hb(),s,i,e)}function sh(e,t){mb(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function mb(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 pb(){return sh(-621355968e5,0)}function $b(e){const[t,n]=nc(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return sh(t.getTime(),r)}function gb(e,t){try{return t.contents=$b(e),!0}catch{return!1}}function Is(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
791
791
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
792
- `:" ")}}function dv(e,t){const n=t.tag===2?Cs(t.fields[0],t.fields[1],!0):t.tag===1?Cs(t.fields[0],t.fields[1],!1)+`
793
- Reason: `+t.fields[2]:t.tag===3?Cs(t.fields[0],t.fields[1],!0):t.tag===4?Cs(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
792
+ `:" ")}}function wb(e,t){const n=t.tag===2?Is(t.fields[0],t.fields[1],!0):t.tag===1?Is(t.fields[0],t.fields[1],!1)+`
793
+ Reason: `+t.fields[2]:t.tag===3?Is(t.fields[0],t.fields[1],!0):t.tag===4?Is(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
794
794
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
795
795
 
796
796
  `+ye(`
797
797
 
798
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Cs(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Q0(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new m(1,[dv(s[0],s[1])])}else return new m(0,[r.fields[0]])}function rn(e,t){try{return Q0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function eh(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new B(0,["a string",t])]])}function hv(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new B(0,["a single character string",t])]])}else return new m(1,[[e,new B(0,["a char",t])]])}function mv(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Jp(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new B(0,["a guid",t])]])}else return new m(1,[[e,new B(0,["a guid",t])]])}function pv(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new B(0,["null",t])]])}const th=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new m(0,[(s+128&255)-128]):new m(1,[[n,new B(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new B(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,8,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["a sbyte",r])]])}else return new m(1,[[n,new B(0,["a sbyte",r])]])},nh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new m(0,[s&255]):new m(1,[[n,new B(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new B(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,8,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["a byte",r])]])}else return new m(1,[[n,new B(0,["a byte",r])]])},rh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new m(0,[(s+32768&65535)-32768]):new m(1,[[n,new B(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new B(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,16,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["an int16",r])]])}else return new m(1,[[n,new B(0,["an int16",r])]])},sh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new m(0,[s&65535]):new m(1,[[n,new B(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new B(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,16,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["an uint16",r])]])}else return new m(1,[[n,new B(0,["an uint16",r])]])},ih=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new m(0,[~~s]):new m(1,[[n,new B(1,["an int",s,"Value was either too large or too small for an int"])]]):new m(1,[[n,new B(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!1,32,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["an int",r])]])}else return new m(1,[[n,new B(0,["an int",r])]])},oh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new m(0,[s>>>0]):new m(1,[[n,new B(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new B(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[mr(r,511,!0,32,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new B(0,["an uint32",r])]])}else return new m(1,[[n,new B(0,["an uint32",r])]])};function $v(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new B(0,["a boolean",t])]])}function gv(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new B(0,["a float",t])]])}function wv(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new B(0,["a float32",t])]])}function yv(e,t){if(typeof t=="string"){let n,r=r1();return n=[i1(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[l1(n[1])]):new m(1,[[e,new B(0,["a datetime",t])]])}else return new m(1,[[e,new B(0,["a datetime",t])]])}function _v(e,t){if(typeof t=="string"){let n,r=uv();return n=[fv(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new B(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new B(0,["a datetime",t])]])}function vv(e,t){if(typeof t=="string"){let n,r=0;return n=[ev(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new B(0,["a timespan",t])]])}else return new m(1,[[e,new B(0,["a timespan",t])]])}function ah(e,t,n,r){let s;const i=n+".["+ln(e)+"]";if(Array.isArray(r)){const o=r;return e<o.length?t(i,ne(e,o)):new m(1,[[i,new B(5,["a longer array. Need index `"+ln(e)+"` but there are only `"+(s=o.length,ln(s))+"` entries",r])]])}else return new m(1,[[i,new B(0,["an array",r])]])}function bv(e,t,n){return n==null?new m(0,[void 0]):Ct(Ae,e(t,n))}function lh(e,t,n){if(Array.isArray(n)){let r=-1;return Ct(cr,li((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+ln(r)+"]",i);return o.tag===0?new m(0,[et(o.fields[0],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),n))}else return new m(1,[[t,new B(0,["a list",n])]])}function Cv(e,t,n){if(Array.isArray(n)){let r=-1;return Ct(sp,li((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+ln(r)+"]",i);return o.tag===0?new m(0,[V([o.fields[0]],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[[]]),n))}else return new m(1,[[t,new B(0,["a seq",n])]])}function uh(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return li((i,o)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+ln(r)+"]",o);return l.tag===0?(_t(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return i},new m(0,[ai(new Array(s.length),0,s.length,null)]),s)}else return new m(1,[[t,new B(0,["an array",n])]])}function Sv(e,t,n){return((s,i)=>{e:for(;;){const o=s,a=i;if(M(o))return new m(1,[[t,new B(7,[a])]]);{const l=Q0(t,te(k(o)),n);if(l.tag===1){s=P(o),i=vt(a,A(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,ce())}function kv(e,t,n){return new m(0,[e])}function ch(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new m(1,[s.fields[0]])}function xv(e,t,n,r){const s=t(n,r);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[e(s.fields[0])])}function Iv(e,t){let n;const r=e;return n=s=>i=>ah(0,r,s,i),s=>i=>ch(Eo(o=>{let a;const l=t;return a=u=>f=>ah(1,l,u,f),u=>f=>ch((c,p,h)=>kv([o,c]),te(a),u,f)}),te(n),s,i)}function Av(e){return j2(e,{Compare:dt})}function Ev(e){return Xy(e,{Compare:dt})}function Tv(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?_c((r,s)=>{const i=r[0];return s.tag===0?Ct(o=>et(o,s.fields[0]),r[1](t+"."+i)(n[i])):s},e,new m(0,[ce()])):new m(1,[[t,new B(0,["an object",n])]])}function Pv(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ts((s,i)=>{if(s.tag===0){const o=e(n,i);if(o.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new m(0,[et([o.fields[0],a.fields[0]],s.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),Object.keys(r)):new m(1,[[n,new B(0,["an object",r])]])}function fh(e,t,n,r){let s;const i=t.length+e|0;if(i!==r.length)return new m(1,[[n,new B(6,[(s=r.length|0,je(We("Expected array of length %i but got %i"))(i)(s))])]]);{let o=new m(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(o.tag===0){const l=o.fields[0],u=je(We("%s[%i]"))(n)(a),f=ne(a-e,t),c=ne(a,r);o=Ct(p=>et(p,l),f(u)(c))}return Ct(cr,o)}}function dh(e,t,n,r,s,i){const o=S1(a=>nr(a)===r,Gu(n));if(o!=null){const a=o,l=ar(u=>Et(e,t,!1,u[1]),Zu(a));return Ct(u=>zm(a,ur(u)),l.length===0&&i.length<=1?new m(0,[ce()]):fh(1,l,s,i))}else return new m(1,[[s,new B(6,["Cannot find case "+r+" in "+ge(n)])]])}function hh(e,t,n,r){let s;const i=new Ke(ee());let o;const a=ge(r);o=a===""?e:z0(a,i,e);let l;if(Ju(r)){const u=ar(f=>[J0(t,nr(f)),Et(o,t,!1,f[1])],Gr(r));l=f=>c=>Ct(p=>Hm(r,ur(p)),Tv(u,f,c))}else if(qu(r))l=u=>f=>{if(typeof f=="string")return dh(o,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Fc(p=>dh(o,t,r,p,u,c),eh(u+"[0]",ne(0,c)))}else return new m(1,[[u,new B(0,["a string or array",f])]])};else if(n)l=u=>f=>new m(1,[[u,new B(2,["an extra coder for "+ge(r),f])]]);else throw new Error((s=ge(r),je(We(`Cannot generate auto decoder for %s. Please pass an extra decoder.
798
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Is(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ih(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new m(1,[wb(s[0],s[1])])}else return new m(0,[r.fields[0]])}function an(e,t){try{return ih("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function oh(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new L(0,["a string",t])]])}function yb(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new L(0,["a single character string",t])]])}else return new m(1,[[e,new L(0,["a char",t])]])}function _b(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Q1(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a guid",t])]])}else return new m(1,[[e,new L(0,["a guid",t])]])}function vb(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new L(0,["null",t])]])}const ah=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new m(0,[(s+128&255)-128]):new m(1,[[n,new L(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new L(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!1,8,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["a sbyte",r])]])}else return new m(1,[[n,new L(0,["a sbyte",r])]])},lh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new m(0,[s&255]):new m(1,[[n,new L(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new L(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!0,8,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["a byte",r])]])}else return new m(1,[[n,new L(0,["a byte",r])]])},uh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new m(0,[(s+32768&65535)-32768]):new m(1,[[n,new L(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new L(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!1,16,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an int16",r])]])}else return new m(1,[[n,new L(0,["an int16",r])]])},ch=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new m(0,[s&65535]):new m(1,[[n,new L(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new L(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!0,16,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an uint16",r])]])}else return new m(1,[[n,new L(0,["an uint16",r])]])},fh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new m(0,[~~s]):new m(1,[[n,new L(1,["an int",s,"Value was either too large or too small for an int"])]]):new m(1,[[n,new L(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!1,32,new Ke(()=>i,o=>{i=o|0})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an int",r])]])}else return new m(1,[[n,new L(0,["an int",r])]])},dh=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new m(0,[s>>>0]):new m(1,[[n,new L(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new L(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,i=0;return s=[pr(r,511,!0,32,new Ke(()=>i,o=>{i=o})),i],s[0]?new m(0,[s[1]]):new m(1,[[n,new L(0,["an uint32",r])]])}else return new m(1,[[n,new L(0,["an uint32",r])]])};function bb(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new L(0,["a boolean",t])]])}function Cb(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new L(0,["a float",t])]])}function Sb(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new L(0,["a float32",t])]])}function kb(e,t){if(typeof t=="string"){let n,r=ap();return n=[up(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[dp(n[1])]):new m(1,[[e,new L(0,["a datetime",t])]])}else return new m(1,[[e,new L(0,["a datetime",t])]])}function xb(e,t){if(typeof t=="string"){let n,r=pb();return n=[gb(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new L(0,["a datetime",t])]])}function Ib(e,t){if(typeof t=="string"){let n,r=0;return n=[ob(t,new Ke(()=>r,s=>{r=s})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new L(0,["a timespan",t])]])}else return new m(1,[[e,new L(0,["a timespan",t])]])}function hh(e,t,n,r){let s;const i=n+".["+fn(e)+"]";if(Array.isArray(r)){const o=r;return e<o.length?t(i,ne(e,o)):new m(1,[[i,new L(5,["a longer array. Need index `"+fn(e)+"` but there are only `"+(s=o.length,fn(s))+"` entries",r])]])}else return new m(1,[[i,new L(0,["an array",r])]])}function Ab(e,t,n){return n==null?new m(0,[void 0]):Ct(Ae,e(t,n))}function mh(e,t,n){if(Array.isArray(n)){let r=-1;return Ct(fr,ui((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+fn(r)+"]",i);return o.tag===0?new m(0,[et(o.fields[0],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),n))}else return new m(1,[[t,new L(0,["a list",n])]])}function Eb(e,t,n){if(Array.isArray(n)){let r=-1;return Ct(l1,ui((s,i)=>{if(r=r+1|0,s.tag===0){const o=e(t+".["+fn(r)+"]",i);return o.tag===0?new m(0,[V([o.fields[0]],s.fields[0])]):new m(1,[o.fields[0]])}else return s},new m(0,[[]]),n))}else return new m(1,[[t,new L(0,["a seq",n])]])}function ph(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return ui((i,o)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+fn(r)+"]",o);return l.tag===0?(_t(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return i},new m(0,[li(new Array(s.length),0,s.length,null)]),s)}else return new m(1,[[t,new L(0,["an array",n])]])}function Tb(e,t,n){return((s,i)=>{e:for(;;){const o=s,a=i;if(M(o))return new m(1,[[t,new L(7,[a])]]);{const l=ih(t,te(k(o)),n);if(l.tag===1){s=P(o),i=vt(a,A(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,ce())}function Pb(e,t,n){return new m(0,[e])}function $h(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new m(1,[s.fields[0]])}function Mb(e,t,n,r){const s=t(n,r);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[e(s.fields[0])])}function Ob(e,t){let n;const r=e;return n=s=>i=>hh(0,r,s,i),s=>i=>$h(To(o=>{let a;const l=t;return a=u=>f=>hh(1,l,u,f),u=>f=>$h((c,p,h)=>Pb([o,c]),te(a),u,f)}),te(n),s,i)}function Db(e){return qv(e,{Compare:dt})}function Nb(e){return t_(e,{Compare:dt})}function Rb(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?vc((r,s)=>{const i=r[0];return s.tag===0?Ct(o=>et(o,s.fields[0]),r[1](t+"."+i)(n[i])):s},e,new m(0,[ce()])):new m(1,[[t,new L(0,["an object",n])]])}function Bb(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ts((s,i)=>{if(s.tag===0){const o=e(n,i);if(o.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new m(0,[et([o.fields[0],a.fields[0]],s.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[o.fields[0]])}else return s},new m(0,[ce()]),Object.keys(r)):new m(1,[[n,new L(0,["an object",r])]])}function gh(e,t,n,r){let s;const i=t.length+e|0;if(i!==r.length)return new m(1,[[n,new L(6,[(s=r.length|0,Ue(je("Expected array of length %i but got %i"))(i)(s))])]]);{let o=new m(0,[ce()]);for(let a=e;a<=r.length-1;a++)if(o.tag===0){const l=o.fields[0],u=Ue(je("%s[%i]"))(n)(a),f=ne(a-e,t),c=ne(a,r);o=Ct(p=>et(p,l),f(u)(c))}return Ct(fr,o)}}function wh(e,t,n,r,s,i){const o=Ap(a=>rr(a)===r,Yu(n));if(o!=null){const a=o,l=lr(u=>Et(e,t,!1,u[1]),Xu(a));return Ct(u=>qm(a,cr(u)),l.length===0&&i.length<=1?new m(0,[ce()]):gh(1,l,s,i))}else return new m(1,[[s,new L(6,["Cannot find case "+r+" in "+ge(n)])]])}function yh(e,t,n,r){let s;const i=new Ke(ee());let o;const a=ge(r);o=a===""?e:Z0(a,i,e);let l;if(Zu(r)){const u=lr(f=>[th(t,rr(f)),Et(o,t,!1,f[1])],Gr(r));l=f=>c=>Ct(p=>Jm(r,cr(p)),Rb(u,f,c))}else if(Ju(r))l=u=>f=>{if(typeof f=="string")return wh(o,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Wc(p=>wh(o,t,r,p,u,c),oh(u+"[0]",ne(0,c)))}else return new m(1,[[u,new L(0,["a string or array",f])]])};else if(n)l=u=>f=>new m(1,[[u,new L(2,["an extra coder for "+ge(r),f])]]);else throw new Error((s=ge(r),Ue(je(`Cannot generate auto decoder for %s. Please pass an extra decoder.
799
799
 
800
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function Et(e,t,n,r){let s,i,o,a;const l=ge(r),u=H0(l,e);if(u==null)if(ju(r)){const f=Et(e,t,!1,Hr(r));return c=>p=>uh(te(f),c,p)}else if(Mo(r))switch(ge(Hu(r))){case"System.SByte":return c=>p=>{const h=r,$=c,g=p,w=th($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,v.toString())]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,$=c,g=p,w=nh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,v.toString())]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,$=c,g=p,w=rh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,gm(v))]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,$=c,g=p,w=sh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,v.toString())]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,$=c,g=p,w=ih($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,ln(v))]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,$=c,g=p,w=oh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,rr(h),{Equals:(S,N)=>S===N,GetHashCode:wt})?new m(0,[sr(h,v.toString())]):new m(1,[[$,new B(1,[ge(h),g,"Unkown value provided for the enum"])]])}};default:{const c=ge(r),p=fc(We(`Cannot generate auto decoder for %s.
800
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return i.contents=l,l}function Et(e,t,n,r){let s,i,o,a;const l=ge(r),u=X0(l,e);if(u==null)if(Uu(r)){const f=Et(e,t,!1,Hr(r));return c=>p=>ph(te(f),c,p)}else if(Oo(r))switch(ge(Gu(r))){case"System.SByte":return c=>p=>{const h=r,$=c,g=p,w=ah($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,v.toString())]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,$=c,g=p,w=lh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,v.toString())]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,$=c,g=p,w=uh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,vm(v))]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,$=c,g=p,w=ch($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,v.toString())]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,$=c,g=p,w=fh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0]|0;return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,fn(v))]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,$=c,g=p,w=dh($)(g);if(w.tag===1)return new m(1,[w.fields[0]]);{const v=w.fields[0];return En(v,sr(h),{Equals:(S,N)=>S===N,GetHashCode:yt})?new m(0,[ir(h,v.toString())]):new m(1,[[$,new L(1,[ge(h),g,"Unkown value provided for the enum"])]])}};default:{const c=ge(r),p=dc(je(`Cannot generate auto decoder for %s.
801
801
  Thoth.Json.Net only support the following enum types:
802
802
  - sbyte
803
803
  - byte
@@ -806,7 +806,7 @@ Thoth.Json.Net only support the following enum types:
806
806
  - int
807
807
  - uint32
808
808
  If you can't use one of these types, please pass an extra decoder.
809
- `))(c);return h=>p(h)}}else if(Uu(r))if(Oo(r)){const f=ar(c=>Et(e,t,!1,c),Yu(r));return c=>p=>Array.isArray(p)?Ct(h=>Gm(ur(h)),fh(0,f,c,p)):new m(1,[[c,new B(0,["an array",p])]])}else switch(ge(zu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Et(e,t,!0,ne(0,it(r))),c=>p=>bv(te(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Et(e,t,!1,ne(0,it(r))),c=>p=>lh(te(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=Et(e,t,!1,ne(0,it(r))),c=>p=>Cv(te(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Et(e,t,!1,ne(0,it(r))),p=Et(e,t,!1,ne(1,it(r)));let h;const $=_([g=>w=>Pv(te(c),te(p),g,w),(a=Iv(te(c),te(p)),g=>w=>lh(te(a),g,w))]);return h=g=>w=>Sv($,g,w),g=>w=>xv(Av,te(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Et(e,t,!1,ne(0,it(r)));return p=>h=>{const $=uh(te(c),p,h);return $.tag===0?new m(0,[Ev($.fields[0])]):new m(1,[$.fields[0]])}}default:return hh(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>$v(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>pv(f,c);case"System.String":return f=>c=>eh(f,c);case"System.Char":return f=>c=>hv(f,c);case"System.SByte":return th;case"System.Byte":return nh;case"System.Int16":return rh;case"System.UInt16":return sh;case"System.Int32":return ih;case"System.UInt32":return oh;case"System.Double":return f=>c=>gv(f,c);case"System.Single":return f=>c=>wv(f,c);case"System.DateTime":return f=>c=>yv(f,c);case"System.DateTimeOffset":return f=>c=>_v(f,c);case"System.TimeSpan":return f=>c=>vv(f,c);case"System.Guid":return f=>c=>mv(f,c);case"System.Object":return f=>c=>new m(0,[c]);default:return hh(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Mv(e){return pl({Compare:zs})}function sn(e,t,n){const r=Ee(t,new Ge(0,[]));return Et(Mv(),r,!1,e)}class Ov{constructor(t){this.magicLink=t,this.backendUrl=`${jn}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Dv(e){return new Ov(e)}function Nv(e){return E.Delay(()=>{let t,n;const r=Ss(e,(t=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/validate`)),yn(new Qt(1,[(n=new C0(e.magicLink.MagicCode),_n(0,vn(j_(),new Ge(1,[]),void 0,void 0)(n)))]),t)));return E.Bind(r,s=>{const i=s;if(i.tag===1)return E.Return(new m(1,[i.fields[0]]));{let o;const a=i.fields[0];return o=a.statusCode===200?rn(te(sn(q_(),new Ge(1,[]))),a.responseText):new m(1,["Unexpected response from backend"]),E.Return(o)}})})}function Rv(e,t){return E.Delay(()=>{let n,r;const s=Ss(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/reissue`)),yn(new Qt(1,[(r=new S0(e.magicLink.MagicCode,t),_n(0,vn(J_(),new Ge(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(te(sn(Q_(),new Ge(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Bv(e,t){return E.Delay(()=>{let n,r;const s=Ss(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/issue`)),yn(new Qt(1,[(r=new k0(e.magicLink.MagicCode,t),_n(0,vn(e2(),new Ge(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(te(sn(s2(),new Ge(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Lv(e,t){return E.Delay(()=>{let n,r;const s=Ss(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/validate`)),yn(new Qt(1,[(r=new x0(t),_n(0,vn(i2(),new Ge(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(te(sn(u2(),new Ge(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Vv(e,t){return E.Delay(()=>{let n,r;const s=Ss(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/progress`)),yn(new Qt(1,[(r=new I0(e.magicLink.MagicCode,t),_n(0,vn(c2(),new Ge(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?rn(te(sn(m2(),new Ge(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Ss(e,t){return E.Delay(()=>{let n;const r=vs(t);return n=E.Bind(r,s=>E.Return(new m(0,[s]))),E.Bind(n,s=>{const i=s;if(i.tag===1)return E.Return(new m(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=_i(2e3);return a=E.Bind(l,u=>E.Return(new m(0,[u]))),E.Bind(a,u=>{const f=u;if(f.tag===1)return E.Return(new m(1,[f.fields[0]]));{const c=vs(t);return E.Bind(c,p=>E.Return(new m(0,[p])))}})}else return E.Return(new m(0,[o]))}})})}class Fv extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function gl(e){return new Fv(e)}function Wv(e){return e.fields[0]}class mh extends L{constructor(t,n,r,s,i,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=s,this.scope=i,this.token_type=o}}function wl(){return ue("Workflows.UI.Auth.Types.Credentials",[],mh,()=>[["id_token",z],["access_token",z],["expires_in",Fm],["refresh_token",Z(z)],["scope",z],["token_type",z]])}let Hn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function jv(){return[new ul(ce(),new H(0,[]),void 0,new v0(0,[new b0(void 0)])),A(e=>{e(new j(1,[new Ce(0,[])]))})]}function Uv(e,t,n,r,s){let i,o,a,l,u,f,c;const p=Dv(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[s,A(h=>{h(new j(0,[new H(6,[new re(5,[])])]))})];{let h;const $=r.fields[0].fields[0].fields[0].Outcome;switch($.tag){case 1:{const g=$.fields[0],w=g.OneTimeCodeOptionAvailable;h=g.IsInitialMagicLinkUsed?w?new j(0,[new H(1,[g.FirstName,new ll(1,[])])]):new j(0,[new H(1,[g.FirstName,new ll(0,[])])]):w?new j(3,[!1,new Ce(0,[])]):new j(0,[new H(4,[])]);break}case 4:{h=new j(0,[new H(5,[])]);break}case 2:case 7:{h=new j(0,[new H(6,[new re(2,[])])]);break}case 3:{h=new j(0,[new H(6,[new re(4,[])])]);break}case 5:{h=new j(0,[new H(6,[new re(3,[])])]);break}case 6:{h=new j(0,[new H(6,[new re(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(gl(g.AuthCode)),h=new j(0,[new H(1,[g.FirstName,new ll(2,[])])])):h=new j(6,[g.AuthCode])}}return[new ul(r.fields[0].fields[0].fields[0].CssOverrides,s.Page,H_(r.fields[0].fields[0].fields[0].Outcome),Ee(G_(r.fields[0].fields[0].fields[0].Outcome),s.JourneyType)),A(g=>{g(h)})]}}else return[s,It(h=>{He(h)},()=>Nv(p),void 0,h=>new j(1,[new Ce(1,[h])]),h=>new j(1,[new Ce(1,[new m(1,[h.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new re(5,[])])]))})]:[s,(i=new j(0,[(o=r.fields[1].fields[0].fields[0].Outcome,o.tag===2?new H(2,[o.fields[0].MaskedEmail]):o.tag===1?new H(6,[new re(2,[])]):o.tag===5?new H(6,[new re(2,[])]):o.tag===3?new H(6,[new re(4,[])]):o.tag===4?new H(6,[new re(1,[])]):o.tag===6?new H(5,[]):o.tag===7?new H(6,[new re(3,[])]):new H(2,[o.fields[0].MaskedEmail]))]),A(h=>{h(i)}))]:[s,It(h=>{He(h)},h=>Rv(p,h),r.fields[0],h=>new j(2,[r.fields[0],new Ce(1,[h])]),h=>new j(2,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new re(5,[])])]))})]:[s,(a=new j(0,[(l=r.fields[1].fields[0].fields[0].Outcome,l.tag===1?new H(4,[]):l.tag===2?new H(6,[new re(0,[])]):l.tag===3?r.fields[0]?s.Page:new H(3,[l.fields[0].MaskedPhone]):l.tag===4?new H(6,[new re(2,[])]):l.tag===7?new H(6,[new re(2,[])]):l.tag===5?new H(6,[new re(4,[])]):l.tag===6?new H(6,[new re(1,[])]):l.tag===8?new H(5,[]):l.tag===9?new H(6,[new re(3,[])]):r.fields[0]?s.Page:new H(3,[l.fields[0].MaskedPhone]))]),A(h=>{h(a)}))]:[s,It(h=>{He(h)},h=>Bv(p,h),r.fields[0],h=>new j(3,[r.fields[0],new Ce(1,[h])]),h=>new j(3,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new re(5,[])])]))})]:[s,(u=r.fields[2].fields[0].fields[0].Outcome,u.tag===1?u.fields[0].RemainingAttempts>0?(r.fields[1]({AttemptsRemaining:u.fields[0].RemainingAttempts}),J()):A(h=>{h(new j(0,[new H(6,[new re(0,[])])]))}):u.tag===5?A(h=>{h(new j(0,[new H(6,[new re(0,[])])]))}):u.tag===2?(r.fields[1]({}),J()):u.tag===3?(r.fields[1]({}),J()):u.tag===4?(r.fields[1]({}),J()):u.tag===6?A(h=>{h(new j(0,[new H(6,[new re(4,[])])]))}):u.tag===7?A(h=>{h(new j(0,[new H(6,[new re(1,[])])]))}):u.tag===8?A(h=>{h(new j(0,[new H(6,[new re(2,[])])]))}):u.tag===9?A(h=>{h(new j(0,[new H(5,[])]))}):u.tag===10?A(h=>{h(new j(0,[new H(6,[new re(0,[])])]))}):A(h=>{h(new j(6,[u.fields[0].AuthCode]))}))]:[s,It(h=>{He(h)},h=>Lv(p,h),r.fields[0],h=>new j(4,[r.fields[0],r.fields[1],new Ce(1,[h])]),h=>new j(4,[r.fields[0],r.fields[1],new Ce(1,[new m(1,[h.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new re(5,[])])]))})]:[s,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new j(0,[new H(6,[new re(2,[])])]):c.tag===4?new j(0,[new H(6,[new re(2,[])])]):c.tag===2?new j(0,[new H(6,[new re(4,[])])]):c.tag===3?new j(0,[new H(6,[new re(1,[])])]):c.tag===5?new j(0,[new H(5,[])]):c.tag===6?new j(0,[new H(6,[new re(0,[])])]):r.fields[0].tag===1?new j(3,[!1,new Ce(0,[])]):r.fields[0].tag===2?new j(6,[void 0]):new j(2,[!1,new Ce(0,[])])),A(h=>{h(f)}))]:[s,It(h=>{He(h)},h=>Vv(p,h),r.fields[0].tag===1?!1:r.fields[0].tag===2,h=>new j(5,[r.fields[0],new Ce(1,[h])]),h=>new j(5,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 6:return t(Le(gl,r.fields[0])),[s,J()];default:return[new ul(s.CssOverrides,r.fields[0],s.Branding,s.JourneyType),J()]}}function zv(e,t,n,r){const s=hi(!1),i=Le(l=>d("span",{className:"font-semibold",children:`${l}`}),cn(l=>l.CompanyName,t)),o=n.tag===1?`Hi, ${e}`:n.tag===2?`${e}, join your workplace benefits program`:n.tag===3?`Hi, ${e}`:n.tag===4?`Hi, ${e}`:`Welcome, ${e}`,a=pe(I(()=>{let l,u;return V((l=n,l.tag===1?y(fi([])):l.tag===2?y(d("div",C(_([["className","sm:w-[700px]"],(u=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",b.Children.toArray(Array.from(u))])])))):l.tag===3?y(fi([])):l.tag===4?y(fi([])):y(fi([]))),I(()=>V(y(hn(o)),I(()=>{let f;return V(y(d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(f=pe(I(()=>{let c;return n.tag===1?V(y(Ee(i,d("span",{children:["Your employer"]}))),I(()=>V(y(d("span",{children:[" has requested additional information from you."]})),I(()=>y(d("p",{children:["Sign in to complete your information request."]})))))):n.tag===2?y((c="Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands, plus special offers to help you save on bigger expenses like household utilities, health insurance and more.",d("p",{children:[c]}))):n.tag===3?V(y(d("p",{children:["Welcome to your workplace benefits program"]})),I(()=>y(d("p",{children:["Sign in to continue setting up your benefits"]})))):n.tag===4?V(y(d("p",{children:["Welcome to your workplace benefits program"]})),I(()=>y(d("p",{children:["Sign in to continue setting up your benefits"]})))):V(y(d("p",{children:["Congratulations on the new role!"]})),I(()=>{let p;return y((p=_([d("span",{children:["Sign in to complete your onboarding with "]}),Ee(i,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})))}))})),["children",b.Children.toArray(Array.from(f))])])))),I(()=>y(Xo(void 0,()=>{s[1](!0),r()},s[0],[d("span",{children:[n.tag===1?"Sign in":n.tag===2?"Continue":(n.tag===3||n.tag===4,"Sign in")]})]))))}))))}));return d(Ie,{},...a)}function Hv(e,t){let n,r,s,i;const o=[$p([]),hn("Check your inbox"),d("div",C(_([(n="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",n]),(r=[(s=_([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:$c(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(s))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(i=pe(I(()=>V(y(d("p",{children:["Can’t see the email? Check your spam folder."]})),I(()=>{const a=t;return a==null?y(ee()):y(rs(a))})))),["children",b.Children.toArray(Array.from(i))])])))];return d(Ie,{},...o)}let on=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},Gn=class extends L{constructor(t,n,r,s,i,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=s,this.SignInInProgress=i,this.ReissueLinkInProgress=o}};function Gv(){return[new Gn(void 0,!1,"",void 0,!1,!1),J()]}function Yv(e,t,n){let r;switch(t.tag){case 1:{const s=Lo(oa,n.CodeInputValue);return s.length===6?(e([Zo(s,511,!1,32),t.fields[0]]),[new Gn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),J()]):[n,A(i=>{i(new on(3,[!0]))})]}case 2:return[new Gn(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),A(s=>{s(new on(3,[!0]))})];case 3:{const s=t.fields[0];return[new Gn(n.AttemptsRemaining,s,s?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),J()]}case 4:return[new Gn(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),J()];case 5:return[new Gn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),J()];default:{const s=Bi(a=>{He(a)},()=>E.Delay(()=>E.Bind(_i(1e3),()=>E.Return(void 0))),void 0,()=>new on(0,[]));let i;const o=n.ResendTimer;return i=o!=null?o>0?(r=o|0,[r-1,s]):[void 0,J()]:[20,s],[new Gn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,i[0],n.SignInInProgress,n.ReissueLinkInProgress),i[1]]}}}function Yi(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function qv(){document.addEventListener("keypress",e=>{Yi(e)}),document.addEventListener("paste",e=>{Yi(e)})}const Jv={Dispose(){document.removeEventListener("keypress",e=>{Yi(e)}),document.removeEventListener("paste",e=>{Yi(e)})}};function Zv(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,s=e.maskedPhone,i=il(()=>Li(Gv,(f,c)=>Yv(r,f,c),(f,c)=>{}),void 0,void 0),o=i[0],a=i[1];Ko(()=>(qv(),Jv),new Array(0));const l=()=>{a(new on(1,[f=>{a(new on(2,[f.AttemptsRemaining]))}]))},u=pe(I(()=>V(y(pp([])),I(()=>V(y(hn("Enter your security code")),I(()=>{let f,c,p;return V(y(d("div",C(_([(f="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",f]),(c=[(p=_([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Lo(oa,s)}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",b.Children.toArray(Array.from(c))])])))),I(()=>{let h;return V(y(d("div",C(_([["className","mt-8 flex relative"],(h=pe(I(()=>{let $;return V(y(d("input",C(_([["className","absolute w-full h-full peer z-10 opacity-0"],["id","one-time-code-input"],["type","text"],["autoComplete","one-time-code"],["maxLength",6],["onClick",g=>{const w=g.target;w.selectionStart=o.CodeInputValue.length|0,w.selectionEnd=o.CodeInputValue.length|0,a(new on(3,[!1]))}],["onChange",g=>{const w=Lo(oa,g.target.value);a(new on(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!O(g.value,$)&&(g.value=$)}])])))),I(()=>Ic(g=>{const w=Le(S=>S,yc(g,o.CodeInputValue.split(""))),v=Le(S=>S,yc(g-1,o.CodeInputValue.split("")));return y(d("div",{key:g,className:ye(" ",pe(I(()=>V(y("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),I(()=>V(o.CodeInvalid?y("ring-red-600"):y("ring-gray-400"),I(()=>V(y(g===2?"mr-4":g===5?"":"mr-2"),I(()=>w!=null||v!=null||g===0?y("peer-focus:ring-2 peer-focus:ring-primary-base"):dr()))))))))),children:Ee(w,"")}))},h0(0,1,5))))})),["children",b.Children.toArray(Array.from(h))])])))),I(()=>{let $;return V(o.CodeInvalid?y(d("p",C(_([["className","w-[288px] text-red-600 mt-2 leading-5"],($=pe(I(()=>V(y("The code you entered is invalid"),I(()=>{let g;return V((g=o.AttemptsRemaining,g==null?y(ee()):y(`, you have ${g} attempts remaining`)),I(()=>V(y("."),I(()=>o.AttemptsRemaining==null?y(" Try again or click on the link below to resend the code."):y(ee())))))})))),["children",b.Children.toArray(Array.from($))])])))):dr(),I(()=>V(y(Xo("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),I(()=>{let g;return y(d("div",C(_([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=pe(I(()=>{let w,v;return V((w=o.ResendTimer,w!=null?y(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):y((v=_([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:S=>{n(),a(new on(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(v))})))),I(()=>{let S;return y((S=_([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:N=>{o.ReissueLinkInProgress||(a(new on(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(S))})))}))})),["children",b.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Ie,{},...u)}function Xv(e){const t=e.reissueLink,n=e.brandingOption,r=hi(!1),s=pe(I(()=>V(y(gp([])),I(()=>V(y(hn("Access link timed-out")),I(()=>{let i,o;return V(y(d("div",C(_([(i="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",i]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",b.Children.toArray(Array.from(o))])])))),I(()=>V(y(Xo("mt-8 mb-8 sm:mb-14",()=>{r[1](!0),t()},r[0],[d("span",{children:["Get a new link"]})])),I(()=>{const a=n;return a==null?y(ee()):y(rs(a))}))))}))))));return d(Ie,{},...s)}function qi(e,t){const n=Ee(cn(s=>s.CompanyName,e),"your employer"),r=pe(I(()=>V(y(qo([])),I(()=>V(y(hn("You’re all done")),I(()=>{let s;return V(y(d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(s=[d("p",{children:[`Your ${t} is now complete and your pay information has now been submitted to ${n}.`]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(s))])])))),I(()=>{const i=e;return i==null?y(ee()):y(rs(i))}))}))))));return d(Ie,{},...r)}function ph(){let e,t,n,r,s,i,o,a,l;return d("div",C(_([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",C(_([["className","flex flex-col justify-center items-center"],(t=[qo([]),hn("You’re all set!"),d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(n=[d("p",{children:["Access your exclusive benefits by downloading the Flare app."]}),d("div",C(_([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className","flex items-center justify-center lg:hidden"],(s=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(_([["className","font-semibold pt-5 lg:pt-0"],(i=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",b.Children.toArray(Array.from(i))])]))),d("p",{children:"Available on iOS and Android"})],["children",b.Children.toArray(Array.from(n))])]))),d("div",C(_([["className","flex space-x-6"],(o=[d("a",C(_([["href","https://apps.apple.com/us/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",b.Children.toArray(Array.from(a))])]))),d("a",C(_([["href","https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits"],["target","_blank"],["rel","noreferrer"],(l=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/google-play.png"})],["children",b.Children.toArray(Array.from(l))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(e))])])))}function $h(){let e;const t=[qo([]),hn("You’re all done"),d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(e=[d("p",{children:["You’ve finished setting up your benefits."]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(e))])]))),rs(new al("Flare",void 0,new ol("support@flarehr.com",void 0)))];return d(Ie,{},...t)}function Kv(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,s=il(()=>Li(jv,(l,u)=>Uv(r,n,t,l,u),(l,u)=>{}),void 0,void 0),i=s[0],o=s[1],a=pe(I(()=>V(ke(l=>d("style",{children:[l]}),i.CssOverrides),I(()=>{const l=i.Page;switch(l.tag){case 1:return y(zv(l.fields[0],i.Branding,i.JourneyType,()=>{o(new j(5,[l.fields[1],new Ce(0,[])]))}));case 2:return y(Hv(l.fields[0],i.Branding));case 3:return y(d(Zv,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new j(4,[u[0],u[1],new Ce(0,[])]))},reissueOneTimeCode:()=>{o(new j(3,[!0,new Ce(0,[])]))},reissueLink:()=>{o(new j(2,[!0,new Ce(0,[])]))}}));case 4:return y(d(Xv,{brandingOption:Qs(i.Branding),reissueLink:()=>{o(new j(2,[!1,new Ce(0,[])]))}}));case 5:switch(i.JourneyType.tag){case 1:return y(qi(i.Branding,"information request"));case 2:return y(ph());case 3:case 4:return y($h());default:return y(qi(i.Branding,"onboarding"))}case 6:return l.fields[0].tag===1?y(jp()):l.fields[0].tag===0?y(d(Wp,{reissueMagicLink:()=>{o(new j(2,[!0,new Ce(0,[])]))}})):l.fields[0].tag===5?y(ta()):l.fields[0].tag===2?y(Mc(i.Branding)):l.fields[0].tag===3?y(Up(i.Branding)):y(zp(i.Branding));default:return y(xp)}}))));return d(Ie,{},...a)}function Qv(e){let t,n,r;const s=e.startAuthCodeExchangeBackground,i=e.navigateAuthCodeExchangePage,o=e.inviteCode;return pr(()=>{qt(0)}),d("div",C(_([(t="min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",C(_([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=pe(I(()=>{const a=$2(o);return a.tag===0?y(d(Kv,{magicLink:a.fields[0],navigateAuthCodeExchangePage:i,startAuthCodeExchangeBackground:s})):y(Mc(void 0))})),["children",b.Children.toArray(Array.from(r))])]))),ra],["children",b.Children.toArray(Array.from(n))])])))}class W extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function eb(e){let t,n,r;if(M(e))t=2;else if(k(e)==="workflows")if(M(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{M(P(P(e)))?t=2:k(P(P(e)))==="v1.0"?(t=1,r=P(P(P(e)))):t=2;break}default:t=2}else t=2;switch(t){case 0:return new pa(1,[n]);case 1:return new pa(0,[r]);default:return new pa(2,[void 0])}}function tb(e){const t=wn(e);if(t!=null)return Le(r=>r[1],es(r=>r[0]==="code",t))}function gh(e){let t,n,r,s,i,o,a;const l=eb(e);switch(l.tag){case 1:return[M(l.fields[0])?M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=wn(k(l.fields[0])),t!=null?M(t)?M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?M(P(t))?M(P(l.fields[0]))?(n=k(t)[1],r=zc(n),r.tag===1?new W(5,[]):new W(1,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=wn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new Tr(1,[])];case 2:return[new W(5,[]),new Tr(2,[])];default:return[M(l.fields[0])?new W(0,[]):M(P(l.fields[0]))?new W(0,[]):(o=tb(k(P(l.fields[0]))),o!=null?M(P(P(l.fields[0])))?(a=o,new W(3,[gl(a)])):new W(0,[]):new W(0,[])),new Tr(0,[])]}}let Yn=class extends L{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},bn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function nb(){let e;return pr(()=>{qt(0)}),d("div",C(_([["className","w-full sm:max-w-md mt-5 mx-1 text-center mx-auto"],(e=[d("h4",{className:"text-2xl",children:"You have been logged out of your onboarding due to inactivity"}),d("br",{}),d("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})],["children",b.Children.toArray(Array.from(e))])])))}class ks extends Error{}ks.prototype.name="InvalidTokenError";function rb(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function sb(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rb(t)}catch{return atob(t)}}function ib(e,t){if(typeof e!="string")throw new ks("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new ks(`Invalid token specified: missing part #${n+1}`);let s;try{s=sb(r)}catch(i){throw new ks(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ks(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}function ob(e,t,n){e:for(;;){const r=e,s=t,i=n;if(M(i)){const o=r;return o.tag===1?new m(1,[o.fields[0]]):new m(0,[cr(o.fields[0])])}else{let o;const a=s(k(i));if(a.tag===1)o=new m(1,[a.fields[0]]);else{const l=r;o=l.tag===1?new m(1,[l.fields[0]]):new m(0,[et(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=s,n=P(i);continue e}}}function ab(e,t){return ob(new m(0,[ce()]),e,t)}function Or(e){return ab(t=>t,e)}class lb extends L{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function ub(){return ue("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],lb,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z(fb())]])}class cb extends L{constructor(t,n){super(),this.Email=t,this.Phone=n}}function fb(){return ue("Workflows.Business.Aggregates.CommonDto.SupportDto",[],cb,()=>[["Email",Z(z)],["Phone",Z(z)]])}function db(e){let t;const n=e.Email;if(n!=null){const r=Yc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.Phone;if(s!=null){const i=qc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new Gc(t.fields[0],r.fields[0])])}}function hb(e){let t;const n=e.Logo;if(n!=null){const r=Zc(n);t=r.tag===1?new m(1,[r.fields[0]]):new m(0,[r.fields[0]])}else t=new m(0,[void 0]);if(t.tag===1)return new m(1,[t.fields[0]]);{let r;const s=e.CompanyName;if(s!=null){const i=Jc(s);r=i.tag===1?new m(1,[i.fields[0]]):new m(0,[i.fields[0]])}else r=new m(0,[void 0]);if(r.tag===1)return new m(1,[r.fields[0]]);{let i;const o=e.Support;if(o!=null){const a=db(o);i=a.tag===1?new m(1,[a.fields[0]]):new m(0,[a.fields[0]])}else i=new m(0,[void 0]);return i.tag===1?new m(1,[i.fields[0]]):new m(0,[new Hc(r.fields[0],t.fields[0],i.fields[0])])}}}class mb extends L{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=s}}function pb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],mb,()=>[["Code",z],["DateIssued",Gt("System.DateTime")],["NumberOfAttempts",Ks],["DateOfLastAttempt",Z(Gt("System.DateTime"))]])}function $b(e){return new b$(v$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class gb extends L{constructor(t,n,r,s){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=s}}function wb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],gb,()=>[["Code",z],["DateIssued",Gt("System.DateTime")],["SecondFactor",Z(pb())],["Branding",Z(ub())]])}function yb(e){const t=zc(e.Code);if(t.tag===1)return new m(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:$b(r);let s;const i=e.Branding;if(i!=null){const o=hb(i);s=o.tag===1?new m(1,[o.fields[0]]):new m(0,[o.fields[0]])}else s=new m(0,[void 0]);return s.tag===1?new m(1,[s.fields[0]]):new m(0,[new C$(t.fields[0],e.DateIssued,n,s.fields[0])])}}class _b extends L{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function vb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],_b,()=>[["Id",z],["DisplayName",z],["ComponentTagName",z]])}function bb(e){return new m(0,[new Rt(Xc(e.Id),e.DisplayName,e.ComponentTagName)])}function Cb(e){return Or(tt(bb,e))}class Sb extends L{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function kb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],Sb,()=>[["ActivatedDates",un(Gt("System.DateTime"))],["CompletedSteps",un(Lm(z,Gt("System.DateTime")))]])}function xb(e){const t=Or(tt(n=>new m(0,[[Xc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new pf(e.ActivatedDates,t.fields[0])])}class Ib extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function Ab(){return yt("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],Ib,()=>[[],[["Item",kb()]],[["Item",Gt("System.DateTime")]],[["Item",Gt("System.DateTime")]]])}function Eb(e){switch(e.tag){case 1:{const t=xb(e.fields[0]);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new us(1,[t.fields[0]])])}case 2:return new m(0,[new us(2,[e.fields[0]])]);case 3:return new m(0,[new us(3,[e.fields[0]])]);default:return new m(0,[new us(0,[])])}}class Tb extends L{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function Pb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],Tb,()=>[["Id",Gt("System.Guid")],["Name",z],["Steps",un(vb())]])}function Mb(e){const t=Cb(e.Steps);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=I$(e.Id);return n.tag===1?new m(1,[n.fields[0]]):new m(0,[new Ne(n.fields[0],e.Name,t.fields[0])])}}class Ob extends L{constructor(t,n){super(),this.Name=t,this.Value=n}}function Db(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],Ob,()=>[["Name",z],["Value",z]])}function Nb(e){return D$(e.Name,e.Value)}class Rb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function Bb(){return yt("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],Rb,()=>[[],[]])}class Lb extends L{constructor(t){super(),this.BenefitsOnboarding=t}}function Vb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],Lb,()=>[["BenefitsOnboarding",Z(Qe(["Show",Bb()]))]])}function Fb(e){let t,n;return new R$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new wf(1,[]):new wf(0,[])})))}class Wb extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function jb(){return yt("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],Wb,()=>[[["Item",xs()]],[["Item",xs()]],[["Item",xs()]],[["Item",xs()]],[["Item",xs()]]])}class Ub extends L{constructor(t){super(),this.Category=t}}function xs(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],Ub,()=>[["Category",Z(z)]])}function Is(e){return new gf(e.Category)}function zb(e){if(e==null)return new gr(0,[new gf(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new gr(1,[Is(t)])}case 2:{const t=e.fields[0];return new gr(2,[Is(t)])}case 3:{const t=e.fields[0];return new gr(3,[Is(t)])}case 4:{const t=e.fields[0];return new gr(4,[Is(t)])}default:{const t=e.fields[0];return new gr(0,[Is(t)])}}}class Hb extends L{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=s,this.Invite=i,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function wh(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],Hb,()=>[["Id",Ks],["DateCreated",Gt("System.DateTime")],["Configuration",Pb()],["Status",Ab()],["Invite",Z(wb())],["Tags",Z(un(Db()))],["Creator",Z(z)],["StepsConfiguration",Z(Vb())],["JourneyType",Z(jb())],["IsBenefitsStepEnabled",Z(ht)],["PaySetupComplete",Z(ht)]])}function yh(e){let t,n;const r=Mb(e.Configuration);if(r.tag===1)return new m(1,[r.fields[0]]);{const s=r.fields[0],i=Eb(e.Status);if(i.tag===1)return new m(1,[i.fields[0]]);{const o=i.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Or(tt(f=>{const c=[f[0],f[1]],p=c[0];return Cc(h=>O(h.Id,p),s.Steps)?new m(0,[[p,c[1]]]):new m(1,["Step id is not configured for this Process Instance."])},l.CompletedSteps));a=u.tag===1?new m(1,[u.fields[0]]):new m(0,[new us(1,[new pf(l.ActivatedDates,u.fields[0])])])}else a=new m(0,[o]);if(a.tag===1)return new m(1,[a.fields[0]]);{let l;const u=e.Invite;if(u!=null){const f=yb(u);l=f.tag===1?new m(1,[f.fields[0]]):new m(0,[f.fields[0]])}else l=new m(0,[void 0]);if(l.tag===1)return new m(1,[l.fields[0]]);{let f;const c=e.Tags;if(c!=null){const p=Or(tt(Nb,c));f=p.tag===1?new m(1,[p.fields[0]]):new m(0,[p.fields[0]])}else f=new m(0,[void 0]);return f.tag===1?new m(1,[f.fields[0]]):new m(0,[new N$($f(e.Id),s,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:jc(t)),(n=e.StepsConfiguration,n==null?void 0:Fb(n)),zb(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class As extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class Gb extends L{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=s}}class qn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function Yb(){return yt("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],qn,()=>[[["Item",z]],[["Item",z]],[],[["Item",ht]],[["Item",ht]],[["Item",ht]]])}function qb(e){switch(e.tag){case 1:return new qn(1,[ls(e.fields[0])]);case 2:return new qn(2,[]);case 3:return new qn(3,[e.fields[0]]);case 4:return new qn(4,[e.fields[0]]);case 5:return new qn(5,[e.fields[0]]);default:return new qn(0,[ls(e.fields[0])])}}const Jb=yh;class Zb extends L{constructor(t,n,r,s){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=s}}function Xb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],Zb,()=>[["CssOverrides",un(z)],["ProcessInstanceDto",wh()],["IsBenefitsEnabled",ht],["Branding",Z(Qb())]])}class Kb extends L{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function Qb(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],Kb,()=>[["CompanyName",Z(z)],["Logo",Z(z)],["Support",Z(tC())]])}class eC extends L{constructor(t,n){super(),this.Email=t,this.Phone=n}}function tC(){return ue("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],eC,()=>[["Email",Z(z)],["Phone",Z(z)]])}function nC(e){let t,n,r,s,i,o,a,l,u,f,c,p,h,$,g,w,v,S;return new Hc((t=(n=(r=e.CompanyName,r==null?void 0:Jc(r)),n!=null?(s=n,s.tag===1?new m(1,[s.fields[0]]):new m(0,[s.fields[0]])):new m(0,[void 0])),t.tag===1?void 0:t.fields[0]),(i=(o=(a=e.Logo,a==null?void 0:Zc(a)),o!=null?(l=o,l.tag===1?new m(1,[l.fields[0]]):new m(0,[l.fields[0]])):new m(0,[void 0])),i.tag===1?void 0:i.fields[0]),(u=e.Support,u==null?void 0:(f=u,new Gc((c=(p=(h=f.Email,h==null?void 0:Yc(h)),p!=null?($=p,$.tag===1?new m(1,[$.fields[0]]):new m(0,[$.fields[0]])):new m(0,[void 0])),c.tag===1?void 0:c.fields[0]),(g=(w=(v=f.Phone,v==null?void 0:qc(v)),w!=null?(S=w,S.tag===1?new m(1,[S.fields[0]]):new m(0,[S.fields[0]])):new m(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function rC(e){let t,n;return new Gb(e.CssOverrides,(t=yh(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:nC(n)))}class Dr extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function sC(){return yt("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],Dr,()=>[[["Item",z]],[],[]])}class an extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class Se extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class Es extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function yl(e){return e?new Es(1,[]):new Es(0,[])}class ie extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function _h(e){return O(e,Ye)?new m(0,[new Se(0,[])]):O(e,mt)?new m(0,[new Se(1,[])]):O(e,pt)?new m(0,[new Se(2,[])]):O(e,$t)?new m(0,[new Se(3,[])]):O(e,Oe)?new m(0,[new Se(4,[])]):O(e,On)?new m(0,[new Se(5,[])]):O(e,Yt)?new m(0,[new Se(7,[])]):O(e,Dn)?new m(0,[new Se(8,[])]):new m(1,["Invalid step"])}function vh(e){switch(e.tag){case 1:return mt;case 2:return pt;case 3:return $t;case 4:return Oe;case 5:return On;case 6:return as;case 7:return Yt;case 8:return Dn;default:return Ye}}function bh(e){switch(e.tag){case 1:return"Emergency contacts";case 2:return"Bank details";case 3:return"Tax declaration";case 4:return"Super nomination";case 5:return On.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return Dn.DisplayName;default:return"Employee profile"}}function Ch(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return On.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return Dn.DisplayName;default:return"Profile"}}function Sh(e){switch(e.tag){case 1:return mt;case 2:return pt;case 3:return $t;case 4:return Oe;case 5:return On;case 6:return as;case 7:return Yt;case 8:return Dn;default:return Ye}}function iC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function oC(e,t){return e.tag===0?t:vt(t,A(new Se(6,[])))}class Nr extends L{constructor(t,n){super(),this.Id=t,this.Status=n}}function Jn(e){return bh(e.Id)}function aC(e){return Ch(e.Id)}function lC(e){return Sh(e.Id).ComponentTagName}function uC(e){return Sh(e.Id).Id}function cC(e){return iC(e.Id)}function fC(e){if(e.Id.tag===0)return e}function dC(e){if(e.Id.tag===1)return e}function hC(e){return es(t=>O(t.Status,new ie(2,[])),e)}function mC(e){return((n,r)=>{e:for(;;){const s=n,i=r;if(M(s))return i;if(O(k(s).Status,new ie(2,[])))return Wo([i,A(k(s)),P(s)]);if(O(k(s).Status,new ie(1,[])))return Wo([i,A(new Nr(k(s).Id,new ie(2,[]))),P(s)]);n=P(s),r=vt(i,A(k(s)));continue e}})(e,ce())}function _l(e,t){const n=Ee(e.PaySetupComplete,!1);let r;const s=Or(tt(_h,e.Configuration.Steps));if(r=s.tag===1?new m(1,[s.fields[0]]):new m(0,[oC(t,s.fields[0])]),r.tag===1)return new m(1,[r.fields[0]]);{const i=Or(tt(_h,L$(e)));return i.tag===1?new m(1,[i.fields[0]]):new m(0,[mC(tt(o=>n&&cC(o)&&O(o.Status,new ie(0,[]))?new Nr(o.Id,new ie(4,[])):o,tt(o=>Cc(a=>O(a,o.Id),i.fields[0])?new Nr(o.Id,new ie(0,[])):o,tt(o=>O(o.Id,new Se(6,[]))&&!n?new Nr(o.Id,new ie(3,[])):o,tt(o=>new Nr(o,new ie(1,[])),r.fields[0])))))])}}class kh extends L{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=s,this.IsPaySetupCompatible=i,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function xh(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return Ee(e.PaySetupComplete,!1);default:return!0}}function pC(e,t){let n;const r=[t.ProcessInstance,yl(t.IsBenefitsEnabled)];return n=_l(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new kh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,x$(t.ProcessInstance.Configuration),xh(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function $C(e,t){let n;const r=[t,yl(e.IsBenefitsStepEnabled)];return n=_l(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new kh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,xh(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}class Tt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","Loaded","Error"]}}function vl(e,t){const n=e;if(n.tag===1)return new Tt(2,[n.fields[0]]);switch(t.tag){case 2:return t;case 0:return t;default:{const r=$C(t.fields[0],n.fields[0]);return r.tag===1?new Tt(2,[r.fields[0]]):new Tt(1,[r.fields[0]])}}}let fe=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","AllDone"]}};class U extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Activate","ActivateCallback","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class nt extends L{constructor(t,n,r,s,i,o){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.WorkflowDetail=r,this.CurrentView=s,this.CssOverrides=i,this.BenefitsOnboarding=o}}function bl(e){switch(e.tag){case 1:return"Information request";case 2:return"Workflow";case 3:return"Benefits Onboarding";case 4:return"Benefits Onboarding";default:return"Onboarding"}}function Cl(e){if(e<640)return Ae(void 0)}function Sl(e){return((n,r)=>{e:for(;;){const s=n,i=r;let o,a,l,u;if(M(s))o=0;else{const f=fC(k(s));if(f!=null)if(M(P(s)))o=2;else{const c=dC(k(P(s)));c!=null?(o=1,a=c,l=f,u=P(P(s))):o=2}else o=2}switch(o){case 0:return i;case 1:{n=u,r=vt(i,A(O(a.Status,new ie(2,[]))?new Nr(l.Id,new ie(2,[])):l));continue e}default:if(M(s))throw new Error("Match failure");n=P(s),r=vt(i,A(k(s)));continue e}}})(e,ce())}function Ts(e){let t,n;return d("div",C(_([(t="absolute inset-0 min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",{className:"mt-5 px-4 flex flex-col items-center justify-center sm:max-w-[640px]",children:b.Children.toArray([e])}),ra],["children",b.Children.toArray(Array.from(n))])])))}function gC(e,t){let n;const r=e.tag===2?e.fields[0]:void 0;let s;if(r==null)s=void 0;else{const u=r;s=cn(f=>L1(f+1,t.Steps),ui(f=>O(u,f),t.Steps))}const i=Le(u=>new U(2,[new fe(2,[u])]),es(u=>O(u.Status,new ie(2,[])),t.Steps));let o,a,l;switch(r!=null&&s!=null?(n=s,O(r.Status,new ie(2,[]))&&(O(n.Status,new ie(1,[]))?!0:O(n.Status,new ie(3,[])))?(o=0,a=r):(o=1,l=s)):o=2,o){case 0:return new U(2,[new fe(2,[a])]);case 1:return O(l.Status,new ie(3,[]))?void 0:new U(2,[new fe(2,[l])]);default:return i}}function wC(e,t){const n=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&lr(e.Steps)!==1;let r;if(n)switch(t.tag){case 1:case 0:{r=0;break}default:r=1}else r=1;switch(r){case 0:return new U(6,[{Branding:Qs(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}]);default:return}}function yC(e){if(ua(e.Status))return new U(11,[e])}function kl(e,t,n){return Ee(Ku(Ku(yC(t),gC(e,t)),wC(t,n)),new U(10,[new an(0,[])]))}function _C(e){const t=$r(e)|0;return je(We("%s/workflows/backend/%i"))(jn)(t)}function vC(e){const t=$r(e)|0;return je(We("%s/workflows/backend/process-instances/%i/activate"))(jn)(t)}function bC(e){const t=$r(e)|0;return je(We("%s/workflows/backend/process-instances/%i/analytics-events"))(jn)(t)}function xl(e,t){return E.Delay(()=>{const n=Hi(z2(je(We("Bearer %s"))(e)),t);let r;const s=vs(n);return r=E.Bind(s,i=>E.Return(new m(0,[i]))),E.Bind(r,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=vs(n);return E.Bind(l,u=>E.Return(new m(0,[u])))}else return E.Return(new m(0,[a]))}})})}function Ps(e,t,n){return E.Delay(()=>{let r,s;const i=xl(n,(r=yn(new Qt(1,[(s=A(qb(e)),_n(0,vn(un(Yb()),new Ge(1,[]),void 0,void 0)(s)))]),tn(new Ft(1,[]),en(_C(t)))),Hi($l("application/json"),r)));return E.Bind(i,o=>{const a=o;if(a.tag===1)return E.Return(new m(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=rn(te(sn(wh(),new Ge(1,[]))),l.responseText);return u=f.tag===1?new m(1,[f.fields[0]]):Jb(f.fields[0]),E.Return(u)}else return E.Return(new m(1,["Unexpected response from backend"]))}})})}function CC(e,t){return E.Delay(()=>{const n=xl(t,tn(new Ft(1,[]),en(vC(e))));return E.Bind(n,r=>{const s=r;if(s.tag===1)return E.Return(new m(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){let o;const a=rn(te(sn(Xb(),new Ge(1,[]))),i.responseText);return o=a.tag===1?new m(1,[a.fields[0]]):new m(0,[rC(a.fields[0])]),E.Return(o)}else return E.Return(new m(1,["Unexpected response from backend"]))}})})}function SC(e,t,n){let r;const s=E.Delay(()=>{let i;return xl(e,(i=yn(new Qt(1,[_n(0,vn(un(sC()),new Ge(1,[]),void 0,void 0)(A(n)))]),tn(new Ft(1,[]),en(bC(t)))),Hi($l("application/json"),i)))});return r=E.Bind(s,i=>{let o;const a=i;return o=a.tag===1?new m(1,[a.fields[0]]):new m(0,[void a.fields[0]]),E.Return(o)}),E.Bind(r,i=>{const o=i;return o.tag===1||o.fields[0],E.Return()})}function kC(e,t){return CC(e,t)}function xC(e,t,n){return Ps(new As(1,[t]),e,n)}function IC(e,t,n){return Ps(new As(3,[n]),e,t)}function AC(e,t,n){return Ps(new As(4,[n]),e,t)}function EC(e,t,n){return Ps(new As(5,[n]),e,t)}function TC(e,t){return Ps(new As(2,[]),e,t)}function PC(e){const t=ib(e);return[new nt(jc(t.sub),$f(t.workflow.instanceId),new Tt(0,[]),new fe(0,[]),ce(),new Es(0,[])),A(n=>{n(new U(0,[]))})]}function MC(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N,K,Q,xe,rt,Re,Be,Xe;switch(r.tag){case 1:{const T=r.fields[0];let Y;switch(T.tag){case 3:{Y=[s,(i=new U(2,[new fe(4,[T.fields[0].message])]),A(le=>{le(i)}))];break}case 0:case 1:{Y=[s,J()];break}default:{let le;const st=T.fields[0];if(st.tag===1)le=new m(1,[st.fields[0]]);else{const _e=st.fields[0],Zn=yl(_e.IsBenefitsEnabled);let Qi;const Fh=[_e.ProcessInstance,Zn];if(Qi=_l(Fh[0],Fh[1]),Qi.tag===1)le=new m(1,[Qi.fields[0]]);else{const Wh=Qi.fields[0],Ml=pC(n,_e);le=Ml.tag===1?new m(1,[Ml.fields[0]]):new m(0,[(o=Ml.fields[0],a=ua(_e.ProcessInstance.Status),l=hC(Wh),l==null?o.IsPaySetupComplete?a?[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(5,[]),_e.CssOverrides,Zn),J()]:(qt(0),[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(5,[]),_e.CssOverrides,Zn),A(Os=>{Os(new U(10,[new an(0,[])]))})]):[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(3,[]),_e.CssOverrides,Zn),J()]:(u=(f=l,c=dl.clientWidth,p=lr(Wh)|0,p===1?(document.title=Jn(f),new fe(2,[f])):Cl(c)!=null?new fe(1,[]):new fe(2,[f])),[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),u,_e.CssOverrides,Zn),u.tag===2?(h=vh(u.fields[0].Id),O(h.Id,as.Id)?A(Os=>{Os(new U(12,[s.ProcessInstanceId,new Dr(1,[])]))}):($=new U(12,[s.ProcessInstanceId,new Dr(0,[ls(h.Id)])]),A(Os=>{Os($)}))):J()]))])}}Y=le.tag===1?[s,A(_e=>{_e(new U(2,[new fe(4,[le.fields[0]])]))})]:le.fields[0]}}return[Y[0],Y[1]]}case 2:{const T=r.fields[0];return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,T,s.CssOverrides,s.BenefitsOnboarding),T.tag===2?(g=vh(T.fields[0].Id),O(g.Id,as.Id)?A(Y=>{Y(new U(12,[s.ProcessInstanceId,new Dr(1,[])]))}):(w=new U(12,[s.ProcessInstanceId,new Dr(0,[ls(g.Id)])]),A(Y=>{Y(w)}))):J()]}case 3:{const T=s.WorkflowDetail;if(T.tag===1){const Y=kl(s.CurrentView,T.fields[0],s.BenefitsOnboarding);return[s,A(le=>{le(Y)})]}else return[s,J()]}case 12:return He(SC(t,r.fields[0],r.fields[1])),[s,J()];case 4:{const T=s.WorkflowDetail;return T.tag===1?[s,(v=r.fields[0].target,S=es(Y=>m1(lC(Y),v.tagName,5)===0,T.fields[0].Steps),S==null?J():O(S.Id,new Se(6,[]))?A(Y=>{Y(new U(14,[]))}):(N=S,K=new U(5,[uC(N),new an(0,[])]),A(Y=>{Y(K)})))]:[s,J()]}case 14:{let T;switch(s.WorkflowDetail.tag===1?O(s.BenefitsOnboarding,new Es(0,[]))?T=1:T=0:T=1,T){case 0:return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,s.CurrentView,s.CssOverrides,new Es(2,[])),f0(_([A(Y=>{Y(new U(12,[s.ProcessInstanceId,new Dr(2,[])]))}),A(Y=>{Y(new U(10,[new an(0,[])]))}),A(Y=>{Y(new U(2,[new fe(5,[])]))})]))];default:return[s,J()]}}case 5:{const T=r.fields[0],Y=r.fields[1];switch(Y.tag){case 1:return[s,J()];case 2:{const le=Y.fields[0],st=le;st.tag===1?st.fields[0]:xg(T,st.fields[0],s.ProfileId);const _e=vl(le,s.WorkflowDetail);return[new nt(s.ProfileId,s.ProcessInstanceId,_e,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(Q=_e.tag===1?kl(s.CurrentView,_e.fields[0],s.BenefitsOnboarding):_e.tag===2?new U(2,[new fe(4,[_e.fields[0]])]):new U(2,[new fe(4,["Process Instance not resolved"])]),A(Zn=>{Zn(Q)}))]}case 3:{const le=Y.fields[0];return[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[le.message]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(xe=new U(2,[new fe(4,[le.message])]),A(st=>{st(xe)}))]}default:return[s,It(le=>{He(le)},le=>xC(s.ProcessInstanceId,T,le),t,le=>new U(5,[T,new an(2,[le])]),le=>new U(5,[T,new an(3,[le])]))]}}case 6:return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,new fe(3,[]),s.CssOverrides,s.BenefitsOnboarding),It(T=>{He(T)},T=>IC(s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(15,[]),T=>new U(16,[T]))];case 7:return[s,f0(_([It(T=>{He(T)},T=>EC(s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(15,[]),T=>new U(16,[T])),(rt=s.WorkflowDetail,rt.tag===1?(Re=new U(2,[new fe(2,[T1(jo(T=>O(T.Status,new ie(0,[]))?!0:O(T.Status,new ie(4,[])),rt.fields[0].Steps))])]),A(T=>{T(Re)})):A(T=>{T(new U(2,[new fe(4,["Process Instance not resolved"])]))}))]))];case 8:return[s,It(T=>{He(T)},Gs(e)(s.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,T=>new U(9,[T]),T=>new U(16,[T]))];case 9:{const T=vl(r.fields[0],s.WorkflowDetail);return[new nt(s.ProfileId,s.ProcessInstanceId,T,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(Be=T.tag===1?kl(s.CurrentView,T.fields[0],s.BenefitsOnboarding):T.tag===2?new U(2,[new fe(4,[T.fields[0]])]):new U(2,[new fe(4,["Process Instance not resolved"])]),A(Y=>{Y(Be)}))]}case 10:{const T=r.fields[0];switch(T.tag){case 1:return[s,J()];case 2:return T.fields[0].tag===1?[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[T.fields[0].fields[0]]),new fe(4,[T.fields[0].fields[0]]),s.CssOverrides,s.BenefitsOnboarding),J()]:(wa(T.fields[0].fields[0].Id,T.fields[0].fields[0].Configuration.Name,T.fields[0].fields[0].Configuration.Id,s.ProfileId),[new nt(s.ProfileId,s.ProcessInstanceId,vl(new m(0,[T.fields[0].fields[0]]),s.WorkflowDetail),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),A(Y=>{Y(new U(2,[new fe(5,[])]))})]);case 3:return[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[T.fields[0].message]),new fe(4,[T.fields[0].message]),s.CssOverrides,s.BenefitsOnboarding),J()];default:{const Y=s.WorkflowDetail;let le,st;switch(Y.tag===1&&ua(Y.fields[0].Status)?(le=0,st=Y.fields[0]):le=1,le){case 0:return wa(st.ProcessInstanceId,st.InstanceName,st.ProcessConfigId,s.ProfileId),[s,J()];default:return[s,It(_e=>{He(_e)},_e=>TC(s.ProcessInstanceId,_e),t,_e=>new U(10,[new an(2,[_e])]),_e=>new U(10,[new an(3,[_e])]))]}}}}case 11:{const T=r.fields[0];return wa(T.ProcessInstanceId,T.InstanceName,T.ProcessConfigId,s.ProfileId),[s,A(Y=>{Y(new U(2,[new fe(5,[])]))})]}case 13:return[s,(Xe=window.location.pathname+"/"+window.location.search+window.location.hash,d0(T=>{fl(A(Xe),1)}))];case 15:return[s,J()];case 16:return[s,J()];default:return[s,Bi(T=>{He(T)},()=>kC(s.ProcessInstanceId,t),void 0,T=>new U(1,[new an(2,[T])]))]}}function OC(e,t,n,r){return MC(AC,e,t,n,r)}const DC=d("div",C(_([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",C(_([(n="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",n]),["fill","white"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()]))),NC=d("div",C(_([["className","text-primary-base"],(()=>{let e,t,n,r;const s=[d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",C(_([(n="M16.616 12.6769L11.146 18.1459C11.0908 18.2022 11.0497 18.2707 11.026 18.3459L10.026 21.3459C10.0018 21.4208 9.99555 21.5004 10.0079 21.5781C10.0202 21.6559 10.0507 21.7296 10.0969 21.7934C10.1431 21.8571 10.2036 21.909 10.2737 21.9449C10.3438 21.9808 10.4213 21.9997 10.5 21.9999C10.5538 22.0002 10.6072 21.9914 10.658 21.9739L13.658 20.9739C13.7332 20.9503 13.8017 20.9091 13.858 20.8539L19.327 15.3839L16.616 12.6769Z",["d",n]),["fill","currentColor"]]))),d("path",C(_([(r="M21.8545 12.146L19.8545 10.146C19.808 10.0994 19.7529 10.0625 19.6921 10.0373C19.6314 10.0121 19.5663 9.99908 19.5005 9.99908C19.4347 9.99908 19.3696 10.0121 19.3089 10.0373C19.2481 10.0625 19.1929 10.0994 19.1465 10.146L17.6775 11.616L20.3845 14.323L21.8545 12.854C21.9011 12.8075 21.938 12.7524 21.9632 12.6916C21.9884 12.6309 22.0014 12.5657 22.0014 12.5C22.0014 12.4342 21.9884 12.3691 21.9632 12.3083C21.938 12.2476 21.9011 12.1924 21.8545 12.146Z",["d",r]),["fill","currentColor"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(s))]})()]))),RC=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(_([(t="M15 13C15 12.7348 15.1054 12.4804 15.2929 12.2929C15.4804 12.1054 15.7348 12 16 12C16.2652 12 16.5196 12.1054 16.7071 12.2929C16.8946 12.4804 17 12.7348 17 13V15H19V13C19 12.2044 18.6839 11.4413 18.1213 10.8787C17.5587 10.3161 16.7956 10 16 10C15.2044 10 14.4413 10.3161 13.8787 10.8787C13.3161 11.4413 13 12.2044 13 13V15H15V13Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(_([(n="M19.6 16H12.4C11.9029 16 11.5 16.3731 11.5 16.8333V20.1667C11.5 20.6269 11.9029 21 12.4 21H19.6C20.0971 21 20.5 20.6269 20.5 20.1667V16.8333C20.5 16.3731 20.0971 16 19.6 16Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(r))]})()]))),Ih=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(t))]})()]))),BC=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(_([(t="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",t]),["fill","#D1D5DB"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function Il(e,t){let n;return d("div",C(_([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:ye(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",b.Children.toArray(Array.from(n))])])))}function LC(e){return Il("text-gray-900",e)}function Al(e){return Il("text-gray-500",e)}function VC(e){return Il("text-primary-base",e)}function FC(e){switch(e.Status.tag){case 0:return LC(Jn(e));case 1:return Al(Jn(e));case 3:return Al(Jn(e));case 4:return Al(Jn(e));default:return VC(Jn(e))}}function Ah(e){let t;return d("div",C(_([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:ye(" ",[e,"w-0.5 h-6 relative"])})],["children",b.Children.toArray(Array.from(t))])])))}const WC=Ah("bg-gray-300"),Eh=Ah("bg-primary-base");function jC(e){const t=O(e.Id,new Se(6,[])),n=e.Status;let r;if(t)r=2;else switch(n.tag){case 0:{r=0;break}case 2:{r=1;break}default:r=2}switch(r){case 0:return Eh;case 1:return Eh;default:return WC}}function Th(e,t){let n,r,s;const i=O(t.Status,new ie(0,[]))?!0:O(t.Status,new ie(2,[]));return d("button",C(_([["className",ye(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!i],["onClick",o=>{e(new U(2,[new fe(2,[t])]))}],(n=[d("div",C(_([["className","w-8 h-8 relative"],(r=pe(I(()=>{const o=t.Status;return o.tag===0?y(DC):o.tag===1?y(Ih):o.tag===3?O(t.Id,new Se(6,[]))?y(RC):y(Ih):o.tag===4?y(BC):y(NC)})),["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className",ye(" ",pe(I(()=>V(y("rounded justify-start items-center flex"),I(()=>i?y("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):dr())))))],(s=[FC(t)],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(n))])])))}function UC(e){let t,n,r,s=!1,i=0;const o=me(e.Steps);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();switch(u.Id.tag){case 0:case 1:{s=O(u.Status,new ie(0,[]))?!0:O(u.Status,new ie(4,[]));break}default:(O(u.Status,new ie(0,[]))||O(u.Status,new ie(4,[])))&&(i=i+1|0)}}}finally{oe(o)}r=i+(s?1:0);const a=lr(Sl(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",C(_([(t="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start inline-flex cursor-default",["className",t]),(n=pe(I(()=>{let u,f;return V((u=e.Branding,O(e.AppMode,new Tr(0,[]))?y(ee()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,y(l(os(f)))):y(l(bl(e.JourneyType)))),I(()=>y(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",b.Children.toArray(Array.from(n))])])))}function zC(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(M(i))return o;if(M(P(i)))return vt(o,A(Th(e,k(i))));r=et(k(P(i)),P(P(i))),s=vt(o,_([Th(e,k(i)),jC(k(P(i)))]));continue e}})(Sl(t.Steps),ce())}function HC(e){let t,n,r;const s=e.dispatch,i=e.detail,o=Pc(void 0),a=hi(!1);return Np(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;Cl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(3,[])))}):new Rf(()=>{const u=document.body.offsetWidth;Cl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(3,[])))});return Tn(u=>{l.observe(u)},ei(o.current)),{Dispose(){l.disconnect()}}}),d("div",C(_([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",C(_([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[UC(i),d("div",C(_([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=zC(s,i),["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}class Ji extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token"]}}class GC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class YC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function Ph(e){const t=e.children,n=e.effect,r=e.props,s=e.step;pr(n);const i=s.tag===1?mt.ComponentTagName:s.tag===2?pt.ComponentTagName:s.tag===3?$t.ComponentTagName:s.tag===4?Oe.ComponentTagName:s.tag===5?On.ComponentTagName:s.tag===6?as.ComponentTagName:s.tag===7?Yt.ComponentTagName:s.tag===8?Dn.ComponentTagName:Ye.ComponentTagName;return d(i,bt(r,1),...t)}class Ms extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class qC extends L{constructor(t,n,r,s){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=s|0}}const JC=new qC(576,768,1024,1216);function ZC(e){return["(max-width: "+e.MobileLandscape+"px)","(max-width: "+e.Tablet+"px)","(max-width: "+e.Desktop+"px)","(max-width: "+e.WideScreen+"px)"]}function Zi(e){const t=Dp(()=>window.matchMedia(e).matches);return Ko(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),di(()=>{n.removeListener(r)})},[e]),t[0]}function XC(e){const t=ZC(Ee(e,JC)),n=Zi(t[0]),r=Zi(t[1]),s=Zi(t[2]),i=Zi(t[3]);return n?new Ms(0,[]):r?new Ms(1,[]):s?new Ms(2,[]):i?new Ms(3,[]):new Ms(4,[])}const KC=d("svg",C(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=_([d("rect",{width:16,height:16,fill:"white"}),d("path",C(_([(t="M15 6.99992H3.41403L6.70703 3.70692C6.88919 3.51832 6.98998 3.26571 6.9877 3.00352C6.98543 2.74132 6.88026 2.49051 6.69485 2.3051C6.50944 2.11969 6.25863 2.01452 5.99643 2.01224C5.73423 2.00997 5.48163 2.11076 5.29303 2.29292L0.293031 7.29292C0.10556 7.48045 0.000244141 7.73475 0.000244141 7.99992C0.000244141 8.26508 0.10556 8.51939 0.293031 8.70692L5.29303 13.7069C5.38528 13.8024 5.49562 13.8786 5.61763 13.931C5.73963 13.9834 5.87085 14.011 6.00363 14.0122C6.13641 14.0133 6.26809 13.988 6.39098 13.9377C6.51388 13.8875 6.62553 13.8132 6.71943 13.7193C6.81332 13.6254 6.88757 13.5138 6.93785 13.3909C6.98813 13.268 7.01343 13.1363 7.01228 13.0035C7.01113 12.8707 6.98354 12.7395 6.93113 12.6175C6.87872 12.4955 6.80254 12.3852 6.70703 12.2929L3.41403 8.99992H15C15.2652 8.99992 15.5196 8.89456 15.7071 8.70703C15.8947 8.51949 16 8.26514 16 7.99992C16 7.7347 15.8947 7.48035 15.7071 7.29281C15.5196 7.10528 15.2652 6.99992 15 6.99992Z",["d",t]),["fill","#212121"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function QC(e,t,n){let r,s,i,o,a,l;const u=N1(h=>O(h.Id,n.Id),t)/lr(t)*100;l=je(We("%.0f%%"))(u);let f;const c=B1(h=>O(h.Status,new ie(2,[]))?!0:O(h.Status,new ie(0,[])),t)/lr(t)*100;f=je(We("%.0f%%"))(c);const p=O(n.Id,new Se(1,[]))?bh(new Se(0,[])):Jn(n);return d("div",C(_([(r="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start space-y-3 inline-flex sticky left-0 right-0 top-0 z-50",["className",r]),(s=[d("div",C(_([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(i=[d("button",{type:"button",className:"w-4 h-4 rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",onClick:h=>{e(new U(2,[new fe(1,[])]))},children:b.Children.toArray([KC])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:p})],["children",b.Children.toArray(Array.from(i))])]))),d("div",C(_([["className","w-full h-2 relative rounded-sm"],(o=[d("div",{className:"w-full h-0.5 left-0 top-[3px] absolute bg-gray-300 rounded-sm"}),d("div",C(_([["className","w-full left-0 top-0 absolute"],(a=[d("div",{className:"h-0.5 left-0 top-[3px] absolute bg-primary-base rounded-sm",style:{width:f}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:l}})],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(s))])])))}const e3=d("div",C(_([["className","relative h-4 w-2 z-50"],(()=>{const e=[d("div",{className:"absolute left-0 top-1 h-2 w-2 rounded-full bg-primary-base"})];return["children",b.Children.toArray(Array.from(e))]})()]))),t3=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),Mh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),n3=d("div",C(_([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",C(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=_([d("path",C(_([(t="M7 5C7 4.73478 7.10536 4.48043 7.29289 4.29289C7.48043 4.10536 7.73478 4 8 4C8.26522 4 8.51957 4.10536 8.70711 4.29289C8.89464 4.48043 9 4.73478 9 5V7H11V5C11 4.20435 10.6839 3.44129 10.1213 2.87868C9.55871 2.31607 8.79565 2 8 2C7.20435 2 6.44129 2.31607 5.87868 2.87868C5.31607 3.44129 5 4.20435 5 5V7H7V5Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(_([(n="M11.6 8H4.4C3.90294 8 3.5 8.3731 3.5 8.83333V12.1667C3.5 12.6269 3.90294 13 4.4 13H11.6C12.0971 13 12.5 12.6269 12.5 12.1667V8.83333C12.5 8.3731 12.0971 8 11.6 8Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()])));function Oh(e,t,n){let r;if(e)r=0;else switch(n.tag){case 0:case 4:{r=2;break}case 1:{r=4;break}case 3:{t?r=3:r=4;break}default:r=1}switch(r){case 0:return e3;case 1:return Mh;case 2:return Mh;case 3:return n3;default:return t3}}const Dh=d("div",{className:"relative h-0.5 w-full"}),r3=d("div",{className:"relative h-0.5 w-full bg-gray-300"}),s3=d("div",{className:"relative h-0.5 w-full bg-primary-base"});function El(e){let t;if(e==null)t=1;else switch(e.tag){case 0:case 4:case 2:{t=0;break}default:t=2}switch(t){case 0:return s3;case 1:return Dh;default:return r3}}function Nh(e){let t,n;return d("div",C(_([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",C(_([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:ye(" ",[e,"relative h-0.5 w-10"])})],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}const i3=Nh("bg-gray-300"),o3=Nh("bg-primary-base");function a3(e){switch(e.tag){case 0:case 4:case 2:return o3;default:return i3}}function Rh(e,t,n,r){let s,i;const o=!e&&(O(n.Status,new ie(0,[]))?!0:O(n.Status,new ie(2,[]))),a=e?"text-primary-base":O(n.Status,new ie(2,[]))||O(n.Status,new ie(0,[]))?"text-gray-900 group-hover:text-primary-base":"text-gray-500",l=d("div",{className:"absolute inset-0 group-hover:bg-primary-base group-hover:opacity-10 rounded"});let u;const f=$c(Ch(n.Id).toLocaleLowerCase()," ","-");return u=je(We("step-%s"))(f),d("div",C(_([["className",ye(" ",["h-11 flex-col justify-start items-center inline-flex"])],(s=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:b.Children.toArray(Array.from(r))}),d("button",C(_([["type","button"],["disabled",!o],["data-testid",u],["className",ye(" ",["relative group h-7 px-2 py-1 justify-center items-center gap-2 inline-flex rounded","focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-primary-focus"])],["onClick",Pt(t)(n)],(i=pe(I(()=>V(y(o?l:ee()),I(()=>y(d("div",{className:ye(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:aC(n)})))))),["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(s))])])))}function l3(e,t,n){const r=O(n.Id,new Se(1,[]))?new Se(0,[]):n.Id,s=(o,a)=>{e(new U(2,[new fe(2,[o])]))};return cr(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(M(u))return c;if(M(P(u))){const p=El(f),h=O(k(u).Id,r);return vt(c,A(Rh(h,s,k(u),_([Dh,Oh(h,O(k(u).Id,new Se(6,[])),k(u).Status),p]))))}else{const p=El(f),h=O(k(u).Id,r),$=Oh(h,O(k(u).Id,new Se(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=vt(c,_([Rh(h,s,k(u),_([El(k(u).Status),$,p])),a3(k(u).Status)]));continue e}}})(cr(Sl(t)),void 0,ce()))}function u3(e,t,n){let r,s,i;const o=d("div",C(_([["className","grow shrink basis-0 flex-col justify-start items-start inline-flex"],(r=[d("div",{className:"hidden lg:inline text-gray-500 text-sm font-medium leading-tight",children:bl(t.JourneyType)}),Ee(Le(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Le(os,cn(l=>l.CompanyName,t.Branding))),ee())],["children",b.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",C(_([(s="w-full h-20 px-8 py-4 bg-white border-b border-gray-300 justify-between items-center inline-flex sticky left-0 right-0 top-0 z-50",["className",s]),(i=pe(I(()=>V(O(t.AppMode,new Tr(0,[]))?y(a):y(o),I(()=>{let l;return V(y(d("div",C(_([["className","bg-white justify-center items-start flex"],(l=l3(e,t.Steps,n),["children",b.Children.toArray(Array.from(l))])])))),I(()=>y(d("div",{className:"grow shrink basis-0"}))))})))),["children",b.Children.toArray(Array.from(i))])])))}function c3(e){let t;const n=e.body,r=e.currentStep,s=e.detail,i=e.dispatch;return d("div",C(_([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=pe(I(()=>V(lr(s.Steps)===1?y(ee()):XC().tag===0?y(QC(i,s.Steps,r)):y(u3(i,s,r)),I(()=>y(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",b.Children.toArray(Array.from(t))])])))}const f3=e=>d("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M16 16V30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 21L16 16L21 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 29H4C3.20435 29 2.44129 28.6839 1.87868 28.1213C1.31607 27.5587 1 26.7956 1 26V2H12L15 7H31V26C31 26.7956 30.6839 27.5587 30.1213 28.1213C29.5587 28.6839 28.7956 29 28 29H21",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),d3=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M19.7 4.3C19.3 3.9 18.7 3.9 18.3 4.3L12 10.6L5.7 4.3C5.3 3.9 4.7 3.9 4.3 4.3C3.9 4.7 3.9 5.3 4.3 5.7L10.6 12L4.3 18.3C3.9 18.7 3.9 19.3 4.3 19.7C4.5 19.9 4.7 20 5 20C5.3 20 5.5 19.9 5.7 19.7L12 13.4L18.3 19.7C18.5 19.9 18.8 20 19 20C19.2 20 19.5 19.9 19.7 19.7C20.1 19.3 20.1 18.7 19.7 18.3L13.4 12L19.7 5.7C20.1 5.3 20.1 4.7 19.7 4.3Z",fill:"#9CA3AF"}));function h3(e){const t=bt(e,1);return d(f3,t)}function m3(e){const t=bt(e,1);return d(d3,t)}function p3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:b.Children.toArray([e])})}function $3(e,t){let n;return d("button",C(_([["type","button"],["data-testid","submit-btn"],["className",ye(" ",["self-stretch md:self-auto md:w-60 px-4 py-2 bg-primary-base hover:bg-primary-hover rounded-md shadow","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer","justify-center items-center inline-flex"])],["onClick",t],(n=[d("div",{className:"text-white text-base font-semibold leading-normal",children:e})],["children",b.Children.toArray(Array.from(n))])])))}function g3(e,t){let n;return d("button",C(_([["type","button"],["className",ye(" ",["relative group self-stretch md:self-auto md:w-60 px-4 py-2 rounded-md shadow justify-center items-center inline-flex","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer"])],["onClick",t],(n=[d("div",{className:"text-primary-dark text-base font-semibold leading-normal z-[1]",children:e}),d("div",{className:"absolute w-full h-full rounded-md z-[0] bg-primary-base opacity-10 group-hover:opacity-20"})],["children",b.Children.toArray(Array.from(n))])])))}function Xi(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N;return p3(d("div",C(_([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(i=[d("div",C(_([(o="w-full md:self-stretch p-4 bg-white border-gray-200 flex-col justify-start items-end space-x-4 space-y-4 flex",["className",o]),(a=[d("button",C(_([["type","button"],(l="w-6 h-6 relative rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",["className",l]),["onClick",K=>{s(new U(7,[{InjectedBenefits:r}]))}],(u=[m3([])],["children",b.Children.toArray(Array.from(u))])])))],["children",b.Children.toArray(Array.from(a))])]))),d("div",C(_([(f="w-full md:w-[560px] grow shrink basis-0 px-4 md:px-0 pb-8 md:pb-0 bg-white flex-col justify-between md:justify-start items-center md:space-y-14 flex",["className",f]),(c=[d("div",C(_([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",C(_([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(h=[d("div",C(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",C(_([["className","w-12 h-12 relative rounded-lg"],(g=[d("div",{className:"w-12 h-12 relative bg-primary-base opacity-10 rounded-lg"}),d("div",C(_([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",C(_([["className","w-7 h-7 left-px top-0.5 absolute"],(v=[h3([["className","text-primary-base"]])],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(w))])])))],["children",b.Children.toArray(Array.from(g))])]))),d("div",{className:"self-stretch text-center text-gray-900 text-2xl md:text-3xl font-bold leading-7 md:leading-9",children:e})],["children",b.Children.toArray(Array.from($))])]))),d("div",C(_([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(S=[d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:t}),d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:n})],["children",b.Children.toArray(Array.from(S))])])))],["children",b.Children.toArray(Array.from(h))])])))],["children",b.Children.toArray(Array.from(p))])]))),d("div",C(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(N=[$3(r?"Submit and continue":"Submit",K=>{s(new U(8,[{InjectedBenefits:r}]))}),g3("Keep editing",K=>{s(new U(7,[{InjectedBenefits:r}]))})],["children",b.Children.toArray(Array.from(N))])])))],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(i))])]))))}function w3(e){let t,n;const r=e.dispatch,s=e.wd,i=s.IsBenefitsStepEnabled;return s.AppMode.tag===1?i?Xi("Before you continue",(t=cn(o=>o.CompanyName,s.Branding),t==null?"Submit to finalise your pay information to your employer and continue to access your workplace benefits":`Submit to finalise your pay information to ${os(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):Xi("Submit your details",(n=cn(o=>o.CompanyName,s.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${os(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):i?Xi("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):Xi("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Ki(e,t){let n;return d("div",C(_([["className",ye(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:ye(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",b.Children.toArray(Array.from(n))])])))}const y3=Ki("h-9","max-w-96"),Bh=Ki("h-6","max-w-96"),_3=Ki("h-80","max-w-96"),v3=Ki("h-10","max-w-48"),b3=(()=>{let e,t,n;const r=[d("div",C(_([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[d("div",C(_([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[y3,d("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:b.Children.toArray([Bh,Bh])})],["children",b.Children.toArray(Array.from(n))])]))),_3,v3],["children",b.Children.toArray(Array.from(t))])])))];return d(Ie,{},...r)})();function C3(e){let t;const n=e.accessToken,r=e.appMode;let s;const i=PC(n);s=il(()=>Li(()=>i,(u,f)=>OC(n,r,u,f),(u,f)=>{}),void 0,[]);const o=s[0],a=s[1];Qo(()=>{kg()},[]),Qo(()=>{const u=o.CurrentView;let f;switch(o.WorkflowDetail.tag===1?u.tag===2?O(u.fields[0].Id,new Se(4,[]))?(f=0,u.fields[0]):O(u.fields[0].Id,new Se(5,[]))?(f=1,u.fields[0]):f=2:f=2:f=3,f){case 0:break;case 1:break;case 2:{fl(A(hl(r)),2);break}}},[o.CurrentView,o.WorkflowDetail]),pr(()=>{window.addEventListener("step-completion",u=>{a(new U(4,[u]))})});const l=o.WorkflowDetail;switch(l.tag){case 1:{const u=l.fields[0],f=u.JourneyType;return d("div",C(_([["className","w-full min-h-[600px] mx-auto bg-white"],(t=pe(I(()=>V(ke(c=>d("style",{children:[c]}),o.CssOverrides),I(()=>{const c=o.CurrentView;switch(c.tag){case 1:return V(y(d(HC,{detail:u,dispatch:a})),I(()=>(qt(0),dr())));case 2:{const p=c.fields[0];let h;const $=p.Id;return h=$.tag===4?d(Ph,{step:new Se(4,[]),props:[new Ji(1,[n]),new Ji(0,[`${jn}/super-selection/backend/v1.0/`]),new GC(hl(r))],effect:()=>{a(new U(13,[])),qt(2500)},children:[]}):d(Ph,{step:$,props:[new Ji(1,[n]),new Ji(0,[jn]),new YC(ln($r(o.ProcessInstanceId)))],effect:()=>{qt(1500)},children:[]}),y(d(c3,{dispatch:a,detail:u,currentStep:p,body:h}))}case 3:return V(y(d(w3,{wd:u,dispatch:a})),I(()=>(qt(0),dr())));case 4:return V(y(d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})),I(()=>(qt(0),dr())));case 5:{const p=Le(W_,u.Branding);let h;if(u.AppMode.tag===0)h=0;else switch(f.tag){case 1:{h=2;break}case 2:{h=3;break}case 3:case 4:{h=4;break}default:h=1}switch(h){case 0:return y(b3);case 1:return y(Ts(qi(p,"onboarding")));case 2:return y(Ts(qi(p,"information request")));case 3:return y(Ts(ph()));default:return y(Ts($h()))}}default:return y(d("div",{children:["Please wait..."]}))}})))),["children",b.Children.toArray(Array.from(t))])])))}case 2:return Ts(ta());default:return d("div",{children:["Please wait..."]})}}function S3(e){return{render:function(t){Fs(t,e)},unmount:function(){yo(e)}}}class k3 extends L{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class x3 extends ft{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function I3(e,t,n,r){const s=new k3(n,()=>t(n,r),e);return d(x3,s)}const A3=(()=>{try{return Zo(Su.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function E3(e,t,n){let r;return p0(te(A3?(r=S3(document.getElementById(t)),s=>i=>{r.render(e(o=>a=>o===a,$0(n),s,i))}):s=>i=>{Fs(e(o=>a=>o===a,$0(n),s,i),document.getElementById(t))}),n)}function T3(e,t){return E3((n,r,s,i)=>I3(te(n),te(r),s,i),e,t)}function P3(e,t){const n=encodeURIComponent(Wv(t)),r=encodeURIComponent(S2),s=encodeURIComponent(k2(new Tr(0,[])));return E.Delay(()=>{let i,o;const a=vs(yn(new Qt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${s}`]),(i=tn(new Ft(1,[]),en(`${v2}/connect/token`)),Hi($l("application/x-www-form-urlencoded"),i))));return o=E.Bind(a,l=>E.Return(new m(0,[l]))),E.Bind(o,l=>{const u=l;if(u.tag===1)return E.Return(new m(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=rn(te(sn(wl(),void 0)),f.responseText);return E.Return(c)}else return E.Return(new m(1,["Unexpected result from backend"]))}})})}function M3(){return new Er(0,[])}function Tl(e){return _i(e)}function O3(e,t){return E.Delay(()=>{let n;return E.Bind($g([(n=P3(e,t),E.Bind(n,r=>E.Return(r))),E.Delay(()=>E.Bind(Tl(2e3),()=>E.Return(void 0)))]),r=>E.Return(ne(0,r)))})}function D3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,Bi(s=>{He(s)},Tl,1e3,()=>new Hn(1,[]))];case 2:return t.fields[0].tag===1?[t,J()]:[t,Bi(s=>{He(s)},Tl,2e3,()=>new Hn(2,[]))];default:return[new Er(2,[new m(1,["No current authenticated user"])]),J()]}case 2:return[t,(r=window.location.pathname,d0(s=>{fl(A(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new Er(2,[new m(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),J()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new Er(2,[new m(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?J():A(s=>{s(new Hn(2,[]))})]);switch(t.tag){case 1:return[t,J()];default:return[new Er(1,[]),It(s=>{He(s)},s=>O3(s[0],s[1]),[n,e.fields[1]],s=>{const i=[new Ce(1,[s]),e.fields[1],e.fields[2]];return new Hn(0,[i[0],i[1],i[2]])},s=>{const i=[new Ce(1,[new m(1,[s.message])]),e.fields[1],e.fields[2]];return new Hn(0,[i[0],i[1],i[2]])})]}}}function N3(){const e=Xu(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=rn(te(sn(wl(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function R3(e){let t;const n=["credentials",(t=new mh(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),_n(0,vn(wl(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function Lh(e,t){return nl(n=>new bn(3,[n]),A(n=>{n(new Hn(0,[new Ce(0,[]),e,t]))}))}function Pl(e){return Lh(e,!1)}function B3(e){return Lh(e,!0)}function L3(){const e=gh(E0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new Yn(t,M3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,J()];case 0:{const s=N3();let i;switch(n.tag){case 0:case 2:{i=1;break}default:s==null?i=1:i=0}switch(i){case 0:return[new Yn(r.CurrentPage,new Er(2,[new m(0,[s])]),r.AppMode),J()];default:return[r,A(o=>{o(new bn(5,[]))})]}}default:return[r,Pl(t.fields[0])]}}function V3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new Yn(new W(3,[n]),t.Credentials,t.AppMode),Pl(n)]}case 2:return[new Yn(new W(4,[]),t.Credentials,t.AppMode),nl(n=>new bn(3,[n]),A(n=>{n(new Hn(1,[]))}))];case 3:{const n=D3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let s,i;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(s=0,i=r.fields[0].fields[0]):s=1,s){case 0:{R3(i);break}}return[new Yn(t.CurrentPage,r,t.AppMode),nl(o=>new bn(3,[o]),n[1])]}case 4:return[t,B3(e.fields[0])];case 5:return[new Yn(new W(6,[]),t.Credentials,t.AppMode),J()];default:{const n=gh(e.fields[0])[0],r=new Yn(n,t.Credentials,t.AppMode);return n.tag===3?[r,Pl(n.fields[0])]:[r,J()]}}}const Vh=d("div",C(_([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[ta()];return["children",b.Children.toArray(Array.from(e))]})()])));function F3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return A("bg-white h-full");default:return ce()}}function W3(e){switch(e.tag){case 1:return d("style",{children:[`
809
+ `))(c);return h=>p(h)}}else if(zu(r))if(Do(r)){const f=lr(c=>Et(e,t,!1,c),qu(r));return c=>p=>Array.isArray(p)?Ct(h=>Zm(cr(h)),gh(0,f,c,p)):new m(1,[[c,new L(0,["an array",p])]])}else switch(ge(Hu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Et(e,t,!0,ne(0,it(r))),c=>p=>Ab(te(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Et(e,t,!1,ne(0,it(r))),c=>p=>mh(te(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=Et(e,t,!1,ne(0,it(r))),c=>p=>Eb(te(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Et(e,t,!1,ne(0,it(r))),p=Et(e,t,!1,ne(1,it(r)));let h;const $=_([g=>w=>Bb(te(c),te(p),g,w),(a=Ob(te(c),te(p)),g=>w=>mh(te(a),g,w))]);return h=g=>w=>Tb($,g,w),g=>w=>Mb(Db,te(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Et(e,t,!1,ne(0,it(r)));return p=>h=>{const $=ph(te(c),p,h);return $.tag===0?new m(0,[Nb($.fields[0])]):new m(1,[$.fields[0]])}}default:return yh(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>bb(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>vb(f,c);case"System.String":return f=>c=>oh(f,c);case"System.Char":return f=>c=>yb(f,c);case"System.SByte":return ah;case"System.Byte":return lh;case"System.Int16":return uh;case"System.UInt16":return ch;case"System.Int32":return fh;case"System.UInt32":return dh;case"System.Double":return f=>c=>Cb(f,c);case"System.Single":return f=>c=>Sb(f,c);case"System.DateTime":return f=>c=>kb(f,c);case"System.DateTimeOffset":return f=>c=>xb(f,c);case"System.TimeSpan":return f=>c=>Ib(f,c);case"System.Guid":return f=>c=>_b(f,c);case"System.Object":return f=>c=>new m(0,[c]);default:return yh(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Lb(e){return gl({Compare:Hs})}function ln(e,t,n){const r=Ee(t,new Fe(0,[]));return Et(Lb(),r,!1,e)}class Vb{constructor(t){this.magicLink=t,this.backendUrl=`${Un}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Fb(e){return new Vb(e)}function Wb(e){return E.Delay(()=>{let t,n;const r=As(e,(t=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/validate`)),nn(new Wt(1,[(n=new S0(e.magicLink.MagicCode),rn(0,on(G_(),new Fe(1,[]),void 0,void 0)(n)))]),t)));return E.Bind(r,s=>{const i=s;if(i.tag===1)return E.Return(new m(1,[i.fields[0]]));{let o;const a=i.fields[0];return o=a.statusCode===200?an(te(ln(K_(),new Fe(1,[]))),a.responseText):new m(1,["Unexpected response from backend"]),E.Return(o)}})})}function jb(e,t){return E.Delay(()=>{let n,r;const s=As(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/magic-link/reissue`)),nn(new Wt(1,[(r=new k0(e.magicLink.MagicCode,t),rn(0,on(Q_(),new Fe(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?an(te(ln(r2(),new Fe(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Ub(e,t){return E.Delay(()=>{let n,r;const s=As(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/issue`)),nn(new Wt(1,[(r=new x0(e.magicLink.MagicCode,t),rn(0,on(s2(),new Fe(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?an(te(ln(l2(),new Fe(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function zb(e,t){return E.Delay(()=>{let n,r;const s=As(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/one-time-code/validate`)),nn(new Wt(1,[(r=new I0(t),rn(0,on(u2(),new Fe(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?an(te(ln(h2(),new Fe(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function Hb(e,t){return E.Delay(()=>{let n,r;const s=As(e,(n=tn(new Ft(1,[]),en(`${e.backendUrl}/progress`)),nn(new Wt(1,[(r=new A0(e.magicLink.MagicCode,t),rn(0,on(m2(),new Fe(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(s,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?an(te(ln(w2(),new Fe(1,[]))),l.responseText):new m(1,["Unexpected response from backend"]),E.Return(a)}})})}function As(e,t){return E.Delay(()=>{let n;const r=ks(t);return n=E.Bind(r,s=>E.Return(new m(0,[s]))),E.Bind(n,s=>{const i=s;if(i.tag===1)return E.Return(new m(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=vi(2e3);return a=E.Bind(l,u=>E.Return(new m(0,[u]))),E.Bind(a,u=>{const f=u;if(f.tag===1)return E.Return(new m(1,[f.fields[0]]));{const c=ks(t);return E.Bind(c,p=>E.Return(new m(0,[p])))}})}else return E.Return(new m(0,[o]))}})})}class Gb extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function wl(e){return new Gb(e)}function Yb(e){return e.fields[0]}class _h extends B{constructor(t,n,r,s,i,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=s,this.scope=i,this.token_type=o}}function yl(){return re("Workflows.UI.Auth.Types.Credentials",[],_h,()=>[["id_token",z],["access_token",z],["expires_in",zm],["refresh_token",Z(z)],["scope",z],["token_type",z]])}let Yn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function qb(){return[new cl(ce(),new H(0,[]),void 0,new b0(0,[new C0(void 0)])),A(e=>{e(new j(1,[new Ce(0,[])]))})]}function Jb(e,t,n,r,s){let i,o,a,l,u,f,c;const p=Fb(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[s,A(h=>{h(new j(0,[new H(6,[new se(5,[])])]))})];{let h;const $=r.fields[0].fields[0].fields[0].Outcome;switch($.tag){case 1:{const g=$.fields[0],w=g.OneTimeCodeOptionAvailable;h=g.IsInitialMagicLinkUsed?w?new j(0,[new H(1,[g.FirstName,new ul(1,[])])]):new j(0,[new H(1,[g.FirstName,new ul(0,[])])]):w?new j(3,[!1,new Ce(0,[])]):new j(0,[new H(4,[])]);break}case 4:{h=new j(0,[new H(5,[])]);break}case 2:case 7:{h=new j(0,[new H(6,[new se(2,[])])]);break}case 3:{h=new j(0,[new H(6,[new se(4,[])])]);break}case 5:{h=new j(0,[new H(6,[new se(3,[])])]);break}case 6:{h=new j(0,[new H(6,[new se(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(wl(g.AuthCode)),h=new j(0,[new H(1,[g.FirstName,new ul(2,[])])])):h=new j(6,[g.AuthCode])}}return[new cl(r.fields[0].fields[0].fields[0].CssOverrides,s.Page,J_(r.fields[0].fields[0].fields[0].Outcome),Ee(Z_(r.fields[0].fields[0].fields[0].Outcome),s.JourneyType)),A(g=>{g(h)})]}}else return[s,It(h=>{Ge(h)},()=>Wb(p),void 0,h=>new j(1,[new Ce(1,[h])]),h=>new j(1,[new Ce(1,[new m(1,[h.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new se(5,[])])]))})]:[s,(i=new j(0,[(o=r.fields[1].fields[0].fields[0].Outcome,o.tag===2?new H(2,[o.fields[0].MaskedEmail]):o.tag===1?new H(6,[new se(2,[])]):o.tag===5?new H(6,[new se(2,[])]):o.tag===3?new H(6,[new se(4,[])]):o.tag===4?new H(6,[new se(1,[])]):o.tag===6?new H(5,[]):o.tag===7?new H(6,[new se(3,[])]):new H(2,[o.fields[0].MaskedEmail]))]),A(h=>{h(i)}))]:[s,It(h=>{Ge(h)},h=>jb(p,h),r.fields[0],h=>new j(2,[r.fields[0],new Ce(1,[h])]),h=>new j(2,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new se(5,[])])]))})]:[s,(a=new j(0,[(l=r.fields[1].fields[0].fields[0].Outcome,l.tag===1?new H(4,[]):l.tag===2?new H(6,[new se(0,[])]):l.tag===3?r.fields[0]?s.Page:new H(3,[l.fields[0].MaskedPhone]):l.tag===4?new H(6,[new se(2,[])]):l.tag===7?new H(6,[new se(2,[])]):l.tag===5?new H(6,[new se(4,[])]):l.tag===6?new H(6,[new se(1,[])]):l.tag===8?new H(5,[]):l.tag===9?new H(6,[new se(3,[])]):r.fields[0]?s.Page:new H(3,[l.fields[0].MaskedPhone]))]),A(h=>{h(a)}))]:[s,It(h=>{Ge(h)},h=>Ub(p,h),r.fields[0],h=>new j(3,[r.fields[0],new Ce(1,[h])]),h=>new j(3,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new se(5,[])])]))})]:[s,(u=r.fields[2].fields[0].fields[0].Outcome,u.tag===1?u.fields[0].RemainingAttempts>0?(r.fields[1]({AttemptsRemaining:u.fields[0].RemainingAttempts}),J()):A(h=>{h(new j(0,[new H(6,[new se(0,[])])]))}):u.tag===5?A(h=>{h(new j(0,[new H(6,[new se(0,[])])]))}):u.tag===2?(r.fields[1]({}),J()):u.tag===3?(r.fields[1]({}),J()):u.tag===4?(r.fields[1]({}),J()):u.tag===6?A(h=>{h(new j(0,[new H(6,[new se(4,[])])]))}):u.tag===7?A(h=>{h(new j(0,[new H(6,[new se(1,[])])]))}):u.tag===8?A(h=>{h(new j(0,[new H(6,[new se(2,[])])]))}):u.tag===9?A(h=>{h(new j(0,[new H(5,[])]))}):u.tag===10?A(h=>{h(new j(0,[new H(6,[new se(0,[])])]))}):A(h=>{h(new j(6,[u.fields[0].AuthCode]))}))]:[s,It(h=>{Ge(h)},h=>zb(p,h),r.fields[0],h=>new j(4,[r.fields[0],r.fields[1],new Ce(1,[h])]),h=>new j(4,[r.fields[0],r.fields[1],new Ce(1,[new m(1,[h.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[s,A(h=>{h(new j(0,[new H(6,[new se(5,[])])]))})]:[s,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new j(0,[new H(6,[new se(2,[])])]):c.tag===4?new j(0,[new H(6,[new se(2,[])])]):c.tag===2?new j(0,[new H(6,[new se(4,[])])]):c.tag===3?new j(0,[new H(6,[new se(1,[])])]):c.tag===5?new j(0,[new H(5,[])]):c.tag===6?new j(0,[new H(6,[new se(0,[])])]):r.fields[0].tag===1?new j(3,[!1,new Ce(0,[])]):r.fields[0].tag===2?new j(6,[void 0]):new j(2,[!1,new Ce(0,[])])),A(h=>{h(f)}))]:[s,It(h=>{Ge(h)},h=>Hb(p,h),r.fields[0].tag===1?!1:r.fields[0].tag===2,h=>new j(5,[r.fields[0],new Ce(1,[h])]),h=>new j(5,[r.fields[0],new Ce(1,[new m(1,[h.message])])]))];case 6:return t(Le(wl,r.fields[0])),[s,J()];default:return[new cl(s.CssOverrides,r.fields[0],s.Branding,s.JourneyType),J()]}}function Zb(e,t,n,r){const s=mi(!1),i=Le(l=>d("span",{className:"font-semibold",children:`${l}`}),hn(l=>l.CompanyName,t)),o=n.tag===1?`Hi, ${e}`:n.tag===2?`${e}, join your workplace benefits program`:n.tag===3?`Hi, ${e}`:n.tag===4?`Hi, ${e}`:`Welcome, ${e}`,a=pe(I(()=>{let l,u;return V((l=n,l.tag===1?y(di([])):l.tag===2?y(d("div",C(_([["className","sm:w-[700px]"],(u=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",b.Children.toArray(Array.from(u))])])))):l.tag===3?y(di([])):l.tag===4?y(di([])):y(di([]))),I(()=>V(y($n(o)),I(()=>{let f;return V(y(d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(f=pe(I(()=>{let c;return n.tag===1?V(y(Ee(i,d("span",{children:["Your employer"]}))),I(()=>V(y(d("span",{children:[" has requested additional information from you."]})),I(()=>y(d("p",{children:["Sign in to complete your information request."]})))))):n.tag===2?y((c="Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands, plus special offers to help you save on bigger expenses like household utilities, health insurance and more.",d("p",{children:[c]}))):n.tag===3?V(y(d("p",{children:["Welcome to your workplace benefits program"]})),I(()=>y(d("p",{children:["Sign in to continue setting up your benefits"]})))):n.tag===4?V(y(d("p",{children:["Welcome to your workplace benefits program"]})),I(()=>y(d("p",{children:["Sign in to continue setting up your benefits"]})))):V(y(d("p",{children:["Congratulations on the new role!"]})),I(()=>{let p;return y((p=_([d("span",{children:["Sign in to complete your onboarding with "]}),Ee(i,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})))}))})),["children",b.Children.toArray(Array.from(f))])])))),I(()=>y(Ko(void 0,()=>{s[1](!0),r()},s[0],[d("span",{children:[n.tag===1?"Sign in":n.tag===2?"Continue":(n.tag===3||n.tag===4,"Sign in")]})]))))}))))}));return d(Ie,{},...a)}function Xb(e,t){let n,r,s,i;const o=[_1([]),$n("Check your inbox"),d("div",C(_([(n="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",n]),(r=[(s=_([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:gc(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(s))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(i=pe(I(()=>V(y(d("p",{children:["Can’t see the email? Check your spam folder."]})),I(()=>{const a=t;return a==null?y(ee()):y(rs(a))})))),["children",b.Children.toArray(Array.from(i))])])))];return d(Ie,{},...o)}let un=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},qn=class extends B{constructor(t,n,r,s,i,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=s,this.SignInInProgress=i,this.ReissueLinkInProgress=o}};function Kb(){return[new qn(void 0,!1,"",void 0,!1,!1),J()]}function Qb(e,t,n){let r;switch(t.tag){case 1:{const s=Vo(aa,n.CodeInputValue);return s.length===6?(e([Xo(s,511,!1,32),t.fields[0]]),[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),J()]):[n,A(i=>{i(new un(3,[!0]))})]}case 2:return[new qn(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),A(s=>{s(new un(3,[!0]))})];case 3:{const s=t.fields[0];return[new qn(n.AttemptsRemaining,s,s?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),J()]}case 4:return[new qn(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),J()];case 5:return[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),J()];default:{const s=Li(a=>{Ge(a)},()=>E.Delay(()=>E.Bind(vi(1e3),()=>E.Return(void 0))),void 0,()=>new un(0,[]));let i;const o=n.ResendTimer;return i=o!=null?o>0?(r=o|0,[r-1,s]):[void 0,J()]:[20,s],[new qn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,i[0],n.SignInInProgress,n.ReissueLinkInProgress),i[1]]}}}function qi(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function eC(){document.addEventListener("keypress",e=>{qi(e)}),document.addEventListener("paste",e=>{qi(e)})}const tC={Dispose(){document.removeEventListener("keypress",e=>{qi(e)}),document.removeEventListener("paste",e=>{qi(e)})}};function nC(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,s=e.maskedPhone,i=ol(()=>Vi(Kb,(f,c)=>Qb(r,f,c),(f,c)=>{}),void 0,void 0),o=i[0],a=i[1];Qo(()=>(eC(),tC),new Array(0));const l=()=>{a(new un(1,[f=>{a(new un(2,[f.AttemptsRemaining]))}]))},u=pe(I(()=>V(y(y1([])),I(()=>V(y($n("Enter your security code")),I(()=>{let f,c,p;return V(y(d("div",C(_([(f="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",f]),(c=[(p=_([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Vo(aa,s)}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",b.Children.toArray(Array.from(c))])])))),I(()=>{let h;return V(y(d("div",C(_([["className","mt-8 flex relative"],(h=pe(I(()=>{let $;return V(y(d("input",C(_([["className","absolute w-full h-full peer z-10 opacity-0"],["id","one-time-code-input"],["type","text"],["autoComplete","one-time-code"],["maxLength",6],["onClick",g=>{const w=g.target;w.selectionStart=o.CodeInputValue.length|0,w.selectionEnd=o.CodeInputValue.length|0,a(new un(3,[!1]))}],["onChange",g=>{const w=Vo(aa,g.target.value);a(new un(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!O(g.value,$)&&(g.value=$)}])])))),I(()=>Ac(g=>{const w=Le(S=>S,_c(g,o.CodeInputValue.split(""))),v=Le(S=>S,_c(g-1,o.CodeInputValue.split("")));return y(d("div",{key:g,className:ye(" ",pe(I(()=>V(y("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),I(()=>V(o.CodeInvalid?y("ring-red-600"):y("ring-gray-400"),I(()=>V(y(g===2?"mr-4":g===5?"":"mr-2"),I(()=>w!=null||v!=null||g===0?y("peer-focus:ring-2 peer-focus:ring-primary-base"):hr()))))))))),children:Ee(w,"")}))},m0(0,1,5))))})),["children",b.Children.toArray(Array.from(h))])])))),I(()=>{let $;return V(o.CodeInvalid?y(d("p",C(_([["className","w-[288px] text-red-600 mt-2 leading-5"],($=pe(I(()=>V(y("The code you entered is invalid"),I(()=>{let g;return V((g=o.AttemptsRemaining,g==null?y(ee()):y(`, you have ${g} attempts remaining`)),I(()=>V(y("."),I(()=>o.AttemptsRemaining==null?y(" Try again or click on the link below to resend the code."):y(ee())))))})))),["children",b.Children.toArray(Array.from($))])])))):hr(),I(()=>V(y(Ko("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),I(()=>{let g;return y(d("div",C(_([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=pe(I(()=>{let w,v;return V((w=o.ResendTimer,w!=null?y(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):y((v=_([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:S=>{n(),a(new un(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(v))})))),I(()=>{let S;return y((S=_([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:N=>{o.ReissueLinkInProgress||(a(new un(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:b.Children.toArray(Array.from(S))})))}))})),["children",b.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Ie,{},...u)}function rC(e){const t=e.reissueLink,n=e.brandingOption,r=mi(!1),s=pe(I(()=>V(y(v1([])),I(()=>V(y($n("Access link timed-out")),I(()=>{let i,o;return V(y(d("div",C(_([(i="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",i]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",b.Children.toArray(Array.from(o))])])))),I(()=>V(y(Ko("mt-8 mb-8 sm:mb-14",()=>{r[1](!0),t()},r[0],[d("span",{children:["Get a new link"]})])),I(()=>{const a=n;return a==null?y(ee()):y(rs(a))}))))}))))));return d(Ie,{},...s)}function Ji(e,t){const n=Ee(hn(s=>s.CompanyName,e),"your employer"),r=pe(I(()=>V(y(Jo([])),I(()=>V(y($n("You’re all done")),I(()=>{let s;return V(y(d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(s=[d("p",{children:[`Your ${t} is now complete and your pay information has now been submitted to ${n}.`]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(s))])])))),I(()=>{const i=e;return i==null?y(ee()):y(rs(i))}))}))))));return d(Ie,{},...r)}function vh(){let e,t,n,r,s,i,o,a,l;return d("div",C(_([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",C(_([["className","flex flex-col justify-center items-center"],(t=[Jo([]),$n("You’re all set!"),d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(n=[d("p",{children:["Access your exclusive benefits by downloading the Flare app."]}),d("div",C(_([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className","flex items-center justify-center lg:hidden"],(s=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(s))])]))),d("p",C(_([["className","font-semibold pt-5 lg:pt-0"],(i=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",b.Children.toArray(Array.from(i))])]))),d("p",{children:"Available on iOS and Android"})],["children",b.Children.toArray(Array.from(n))])]))),d("div",C(_([["className","flex space-x-6"],(o=[d("a",C(_([["href","https://apps.apple.com/us/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",b.Children.toArray(Array.from(a))])]))),d("a",C(_([["href","https://play.google.com/store/apps/details?id=com.flarehr.payandbenefits"],["target","_blank"],["rel","noreferrer"],(l=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/google-play.png"})],["children",b.Children.toArray(Array.from(l))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",b.Children.toArray(Array.from(e))])])))}function bh(){let e;const t=[Jo([]),$n("You’re all done"),d("div",C(_([["className","text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-8 sm:mb-14"],(e=[d("p",{children:["You’ve finished setting up your benefits."]}),d("p",{children:["You can now close this window."]})],["children",b.Children.toArray(Array.from(e))])]))),rs(new ll("Flare",void 0,new al("support@flarehr.com",void 0)))];return d(Ie,{},...t)}function sC(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,s=ol(()=>Vi(qb,(l,u)=>Jb(r,n,t,l,u),(l,u)=>{}),void 0,void 0),i=s[0],o=s[1],a=pe(I(()=>V(ke(l=>d("style",{children:[l]}),i.CssOverrides),I(()=>{const l=i.Page;switch(l.tag){case 1:return y(Zb(l.fields[0],i.Branding,i.JourneyType,()=>{o(new j(5,[l.fields[1],new Ce(0,[])]))}));case 2:return y(Xb(l.fields[0],i.Branding));case 3:return y(d(nC,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new j(4,[u[0],u[1],new Ce(0,[])]))},reissueOneTimeCode:()=>{o(new j(3,[!0,new Ce(0,[])]))},reissueLink:()=>{o(new j(2,[!0,new Ce(0,[])]))}}));case 4:return y(d(rC,{brandingOption:ei(i.Branding),reissueLink:()=>{o(new j(2,[!1,new Ce(0,[])]))}}));case 5:switch(i.JourneyType.tag){case 1:return y(Ji(i.Branding,"information request"));case 2:return y(vh());case 3:case 4:return y(bh());default:return y(Ji(i.Branding,"onboarding"))}case 6:return l.fields[0].tag===1?y(G1()):l.fields[0].tag===0?y(d(H1,{reissueMagicLink:()=>{o(new j(2,[!0,new Ce(0,[])]))}})):l.fields[0].tag===5?y(na()):l.fields[0].tag===2?y(Oc(i.Branding)):l.fields[0].tag===3?y(Y1(i.Branding)):y(q1(i.Branding));default:return y(T1)}}))));return d(Ie,{},...a)}function iC(e){let t,n,r;const s=e.startAuthCodeExchangeBackground,i=e.navigateAuthCodeExchangePage,o=e.inviteCode;return $r(()=>{Jt(0)}),d("div",C(_([(t="min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",C(_([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=pe(I(()=>{const a=_2(o);return a.tag===0?y(d(sC,{magicLink:a.fields[0],navigateAuthCodeExchangePage:i,startAuthCodeExchangeBackground:s})):y(Oc(void 0))})),["children",b.Children.toArray(Array.from(r))])]))),sa],["children",b.Children.toArray(Array.from(n))])])))}class W extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function oC(e){let t,n,r;if(M(e))t=2;else if(k(e)==="workflows")if(M(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{M(P(P(e)))?t=2:k(P(P(e)))==="v1.0"?(t=1,r=P(P(P(e)))):t=2;break}default:t=2}else t=2;switch(t){case 0:return new $a(1,[n]);case 1:return new $a(0,[r]);default:return new $a(2,[void 0])}}function aC(e){const t=vn(e);if(t!=null)return Le(r=>r[1],es(r=>r[0]==="code",t))}function Ch(e){let t,n,r,s,i,o,a;const l=oC(e);switch(l.tag){case 1:return[M(l.fields[0])?M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=vn(k(l.fields[0])),t!=null?M(t)?M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?M(P(t))?M(P(l.fields[0]))?(n=k(t)[1],r=Hc(n),r.tag===1?new W(5,[]):new W(1,[])):M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):M(l.fields[0])?new W(0,[]):(s=vn(k(l.fields[0])),s!=null?M(s)?new W(0,[]):k(s)[0]==="invite-code"?M(P(s))?M(P(l.fields[0]))?(i=k(s)[1],new W(2,[i])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new zn(1,[])];case 2:return[new W(5,[]),new zn(2,[])];default:return[M(l.fields[0])?new W(0,[]):M(P(l.fields[0]))?new W(0,[]):(o=aC(k(P(l.fields[0]))),o!=null?M(P(P(l.fields[0])))?(a=o,new W(3,[wl(a)])):new W(0,[]):new W(0,[])),new zn(0,[])]}}let Jn=class extends B{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},bn=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function lC(){let e;return $r(()=>{Jt(0)}),d("div",C(_([["className","w-full sm:max-w-md mt-5 mx-1 text-center mx-auto"],(e=[d("h4",{className:"text-2xl",children:"You have been logged out of your onboarding due to inactivity"}),d("br",{}),d("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})],["children",b.Children.toArray(Array.from(e))])])))}class Es extends Error{}Es.prototype.name="InvalidTokenError";function uC(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function cC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return uC(t)}catch{return atob(t)}}function fC(e,t){if(typeof e!="string")throw new Es("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new Es(`Invalid token specified: missing part #${n+1}`);let s;try{s=cC(r)}catch(i){throw new Es(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Es(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}class cn extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class Se extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class Ts extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function _l(e){return e?new Ts(1,[]):new Ts(0,[])}class oe extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function Sh(e){return O(e,Ye)?new m(0,[new Se(0,[])]):O(e,pt)?new m(0,[new Se(1,[])]):O(e,$t)?new m(0,[new Se(2,[])]):O(e,gt)?new m(0,[new Se(3,[])]):O(e,Oe)?new m(0,[new Se(4,[])]):O(e,On)?new m(0,[new Se(5,[])]):O(e,qt)?new m(0,[new Se(7,[])]):O(e,Dn)?new m(0,[new Se(8,[])]):new m(1,["Invalid step"])}function kh(e){switch(e.tag){case 1:return pt;case 2:return $t;case 3:return gt;case 4:return Oe;case 5:return On;case 6:return as;case 7:return qt;case 8:return Dn;default:return Ye}}function xh(e){switch(e.tag){case 1:return"Emergency contacts";case 2:return"Bank details";case 3:return"Tax declaration";case 4:return"Super nomination";case 5:return On.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return Dn.DisplayName;default:return"Employee profile"}}function Ih(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return On.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return Dn.DisplayName;default:return"Profile"}}function Ah(e){switch(e.tag){case 1:return pt;case 2:return $t;case 3:return gt;case 4:return Oe;case 5:return On;case 6:return as;case 7:return qt;case 8:return Dn;default:return Ye}}function dC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function hC(e,t){return e.tag===0?t:vt(t,A(new Se(6,[])))}class Nr extends B{constructor(t,n){super(),this.Id=t,this.Status=n}}function Zn(e){return xh(e.Id)}function mC(e){return Ih(e.Id)}function pC(e){return Ah(e.Id).ComponentTagName}function $C(e){return Ah(e.Id).Id}function gC(e){return dC(e.Id)}function wC(e){if(e.Id.tag===0)return e}function yC(e){if(e.Id.tag===1)return e}function _C(e){return es(t=>O(t.Status,new oe(2,[])),e)}function vC(e){return((n,r)=>{e:for(;;){const s=n,i=r;if(M(s))return i;if(O(k(s).Status,new oe(2,[])))return jo([i,A(k(s)),P(s)]);if(O(k(s).Status,new oe(1,[])))return jo([i,A(new Nr(k(s).Id,new oe(2,[]))),P(s)]);n=P(s),r=vt(i,A(k(s)));continue e}})(e,ce())}function vl(e,t){const n=Ee(e.PaySetupComplete,!1);let r;const s=Pr(tt(Sh,e.Configuration.Steps));if(r=s.tag===1?new m(1,[s.fields[0]]):new m(0,[hC(t,s.fields[0])]),r.tag===1)return new m(1,[r.fields[0]]);{const i=Pr(tt(Sh,j$(e)));return i.tag===1?new m(1,[i.fields[0]]):new m(0,[vC(tt(o=>n&&gC(o)&&O(o.Status,new oe(0,[]))?new Nr(o.Id,new oe(4,[])):o,tt(o=>Sc(a=>O(a,o.Id),i.fields[0])?new Nr(o.Id,new oe(0,[])):o,tt(o=>O(o.Id,new Se(6,[]))&&!n?new Nr(o.Id,new oe(3,[])):o,tt(o=>new Nr(o,new oe(1,[])),r.fields[0])))))])}}class Eh extends B{constructor(t,n,r,s,i,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=s,this.IsPaySetupCompatible=i,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function Th(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return Ee(e.PaySetupComplete,!1);default:return!0}}function bC(e,t){let n;const r=[t.ProcessInstance,_l(t.IsBenefitsEnabled)];return n=vl(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new Eh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,T$(t.ProcessInstance.Configuration),Th(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function CC(e,t){let n;const r=[t,_l(e.IsBenefitsStepEnabled)];return n=vl(r[0],r[1]),n.tag===1?new m(1,[n.fields[0]]):new m(0,[new Eh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,Th(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}class Tt extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","Loaded","Error"]}}function bl(e,t){const n=e;if(n.tag===1)return new Tt(2,[n.fields[0]]);switch(t.tag){case 2:return t;case 0:return t;default:{const r=CC(t.fields[0],n.fields[0]);return r.tag===1?new Tt(2,[r.fields[0]]):new Tt(1,[r.fields[0]])}}}let fe=class extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","AllDone"]}};class U extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Activate","ActivateCallback","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class nt extends B{constructor(t,n,r,s,i,o){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.WorkflowDetail=r,this.CurrentView=s,this.CssOverrides=i,this.BenefitsOnboarding=o}}function Cl(e){switch(e.tag){case 1:return"Information request";case 2:return"Workflow";case 3:return"Benefits Onboarding";case 4:return"Benefits Onboarding";default:return"Onboarding"}}function Sl(e){if(e<640)return Ae(void 0)}function kl(e){return((n,r)=>{e:for(;;){const s=n,i=r;let o,a,l,u;if(M(s))o=0;else{const f=wC(k(s));if(f!=null)if(M(P(s)))o=2;else{const c=yC(k(P(s)));c!=null?(o=1,a=c,l=f,u=P(P(s))):o=2}else o=2}switch(o){case 0:return i;case 1:{n=u,r=vt(i,A(O(a.Status,new oe(2,[]))?new Nr(l.Id,new oe(2,[])):l));continue e}default:if(M(s))throw new Error("Match failure");n=P(s),r=vt(i,A(k(s)));continue e}}})(e,ce())}function Ps(e){let t,n;return d("div",C(_([(t="absolute inset-0 min-h-full flex flex-col items-center justify-between w-full mx-auto text-center pt-8 sm:pt-20 pb-6 sm:pb-8 px-4 bg-white",["className",t]),(n=[d("div",{className:"mt-5 px-4 flex flex-col items-center justify-center sm:max-w-[640px]",children:b.Children.toArray([e])}),sa],["children",b.Children.toArray(Array.from(n))])])))}function SC(e,t){let n;const r=e.tag===2?e.fields[0]:void 0;let s;if(r==null)s=void 0;else{const u=r;s=hn(f=>jp(f+1,t.Steps),ci(f=>O(u,f),t.Steps))}const i=Le(u=>new U(2,[new fe(2,[u])]),es(u=>O(u.Status,new oe(2,[])),t.Steps));let o,a,l;switch(r!=null&&s!=null?(n=s,O(r.Status,new oe(2,[]))&&(O(n.Status,new oe(1,[]))?!0:O(n.Status,new oe(3,[])))?(o=0,a=r):(o=1,l=s)):o=2,o){case 0:return new U(2,[new fe(2,[a])]);case 1:return O(l.Status,new oe(3,[]))?void 0:new U(2,[new fe(2,[l])]);default:return i}}function kC(e,t){const n=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&ur(e.Steps)!==1;let r;if(n)switch(t.tag){case 1:case 0:{r=0;break}default:r=1}else r=1;switch(r){case 0:return new U(6,[{Branding:ei(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}]);default:return}}function xC(e){if(ca(e.Status))return new U(11,[e])}function xl(e,t,n){return Ee(Qu(Qu(xC(t),SC(e,t)),kC(t,n)),new U(10,[new cn(0,[])]))}function IC(e){const t=gr(e)|0;return Ue(je("%s/workflows/backend/%i"))(Un)(t)}function AC(e){const t=gr(e)|0;return Ue(je("%s/workflows/backend/process-instances/%i/activate"))(Un)(t)}function EC(e){const t=gr(e)|0;return Ue(je("%s/workflows/backend/process-instances/%i/analytics-events"))(Un)(t)}function Il(e,t){return E.Delay(()=>{const n=Ss(Zv(Ue(je("Bearer %s"))(e)),t);let r;const s=ks(n);return r=E.Bind(s,i=>E.Return(new m(0,[i]))),E.Bind(r,i=>{const o=i;if(o.tag===1)return E.Return(new m(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=ks(n);return E.Bind(l,u=>E.Return(new m(0,[u])))}else return E.Return(new m(0,[a]))}})})}function Ms(e,t,n,r){return E.Delay(()=>{let s,i;const o=Il(n,(s=nn(new Wt(1,[(i=new D0(A(uv(e)),r),rn(0,on(Ev(),new Fe(1,[]),void 0,void 0)(i)))]),tn(new Ft(1,[]),en(IC(t)))),Ss(Gi("application/json"),s)));return E.Bind(o,a=>{const l=a;if(l.tag===1)return E.Return(new m(1,[l.fields[0]]));{const u=l.fields[0];if(u.statusCode===200){let f;const c=an(te(ln(E0(),new Fe(1,[]))),u.responseText);return f=c.tag===1?new m(1,[c.fields[0]]):cv(c.fields[0]),E.Return(f)}else return E.Return(new m(1,["Unexpected response from backend"]))}})})}function TC(e,t,n){return E.Delay(()=>{let r,s;const i=Il(t,(r=nn(new Wt(1,[(s=new O0(n),rn(0,on(Av(),new Fe(1,[]),void 0,void 0)(s)))]),tn(new Ft(1,[]),en(AC(e)))),Ss(Gi("application/json"),r)));return E.Bind(i,o=>{const a=o;if(a.tag===1)return E.Return(new m(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=an(te(ln(dv(),new Fe(1,[]))),l.responseText);return u=f.tag===1?new m(1,[f.fields[0]]):new m(0,[wv(f.fields[0])]),E.Return(u)}else return E.Return(new m(1,["Unexpected response from backend"]))}})})}function PC(e,t,n,r){let s;const i=E.Delay(()=>{let o,a;return Il(e,(o=nn(new Wt(1,[(a=new N0(A(n),r),rn(0,on(Tv(),new Fe(1,[]),void 0,void 0)(a)))]),tn(new Ft(1,[]),en(EC(t)))),Ss(Gi("application/json"),o)))});return s=E.Bind(i,o=>{let a;const l=o;return a=l.tag===1?new m(1,[l.fields[0]]):new m(0,[void l.fields[0]]),E.Return(a)}),E.Bind(s,o=>{const a=o;return a.tag===1||a.fields[0],E.Return()})}function MC(e,t,n){return TC(e,t,n)}function OC(e,t,n,r){return Ms(new bs(1,[n]),t,r,e)}function DC(e,t,n,r){return Ms(new bs(3,[r]),t,n,e)}function NC(e,t,n,r){return Ms(new bs(4,[r]),t,n,e)}function RC(e,t,n,r){return Ms(new bs(5,[r]),t,n,e)}function BC(e,t,n){return Ms(new bs(2,[]),t,n,e)}function LC(e){const t=fC(e);return[new nt(Uc(t.sub),gf(t.workflow.instanceId),new Tt(0,[]),new fe(0,[]),ce(),new Ts(0,[])),A(n=>{n(new U(0,[]))})]}function VC(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N,K,Q,xe,rt,Re,Be,Xe;switch(r.tag){case 1:{const T=r.fields[0];let Y;switch(T.tag){case 3:{Y=[s,(i=new U(2,[new fe(4,[T.fields[0].message])]),A(ue=>{ue(i)}))];break}case 0:case 1:{Y=[s,J()];break}default:{let ue;const st=T.fields[0];if(st.tag===1)ue=new m(1,[st.fields[0]]);else{const _e=st.fields[0],Xn=_l(_e.IsBenefitsEnabled);let eo;const zh=[_e.ProcessInstance,Xn];if(eo=vl(zh[0],zh[1]),eo.tag===1)ue=new m(1,[eo.fields[0]]);else{const Hh=eo.fields[0],Ol=bC(n,_e);ue=Ol.tag===1?new m(1,[Ol.fields[0]]):new m(0,[(o=Ol.fields[0],a=ca(_e.ProcessInstance.Status),l=_C(Hh),l==null?o.IsPaySetupComplete?a?[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(5,[]),_e.CssOverrides,Xn),J()]:(Jt(0),[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(5,[]),_e.CssOverrides,Xn),A(Ds=>{Ds(new U(10,[new cn(0,[])]))})]):[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),new fe(3,[]),_e.CssOverrides,Xn),J()]:(u=(f=l,c=hl.clientWidth,p=ur(Hh)|0,p===1?(document.title=Zn(f),new fe(2,[f])):Sl(c)!=null?new fe(1,[]):new fe(2,[f])),[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(1,[o]),u,_e.CssOverrides,Xn),u.tag===2?(h=kh(u.fields[0].Id),O(h.Id,as.Id)?A(Ds=>{Ds(new U(12,[s.ProcessInstanceId,new Mr(1,[])]))}):($=new U(12,[s.ProcessInstanceId,new Mr(0,[ls(h.Id)])]),A(Ds=>{Ds($)}))):J()]))])}}Y=ue.tag===1?[s,A(_e=>{_e(new U(2,[new fe(4,[ue.fields[0]])]))})]:ue.fields[0]}}return[Y[0],Y[1]]}case 2:{const T=r.fields[0];return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,T,s.CssOverrides,s.BenefitsOnboarding),T.tag===2?(g=kh(T.fields[0].Id),O(g.Id,as.Id)?A(Y=>{Y(new U(12,[s.ProcessInstanceId,new Mr(1,[])]))}):(w=new U(12,[s.ProcessInstanceId,new Mr(0,[ls(g.Id)])]),A(Y=>{Y(w)}))):J()]}case 3:{const T=s.WorkflowDetail;if(T.tag===1){const Y=xl(s.CurrentView,T.fields[0],s.BenefitsOnboarding);return[s,A(ue=>{ue(Y)})]}else return[s,J()]}case 12:return Ge(PC(t,r.fields[0],r.fields[1],n)),[s,J()];case 4:{const T=s.WorkflowDetail;return T.tag===1?[s,(v=r.fields[0].target,S=es(Y=>wp(pC(Y),v.tagName,5)===0,T.fields[0].Steps),S==null?J():O(S.Id,new Se(6,[]))?A(Y=>{Y(new U(14,[]))}):(N=S,K=new U(5,[$C(N),new cn(0,[])]),A(Y=>{Y(K)})))]:[s,J()]}case 14:{let T;switch(s.WorkflowDetail.tag===1?O(s.BenefitsOnboarding,new Ts(0,[]))?T=1:T=0:T=1,T){case 0:return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,s.CurrentView,s.CssOverrides,new Ts(2,[])),d0(_([A(Y=>{Y(new U(12,[s.ProcessInstanceId,new Mr(2,[])]))}),A(Y=>{Y(new U(10,[new cn(0,[])]))}),A(Y=>{Y(new U(2,[new fe(5,[])]))})]))];default:return[s,J()]}}case 5:{const T=r.fields[0],Y=r.fields[1];switch(Y.tag){case 1:return[s,J()];case 2:{const ue=Y.fields[0],st=ue;st.tag===1?st.fields[0]:Tg(T,st.fields[0],s.ProfileId);const _e=bl(ue,s.WorkflowDetail);return[new nt(s.ProfileId,s.ProcessInstanceId,_e,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(Q=_e.tag===1?xl(s.CurrentView,_e.fields[0],s.BenefitsOnboarding):_e.tag===2?new U(2,[new fe(4,[_e.fields[0]])]):new U(2,[new fe(4,["Process Instance not resolved"])]),A(Xn=>{Xn(Q)}))]}case 3:{const ue=Y.fields[0];return[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[ue.message]),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(xe=new U(2,[new fe(4,[ue.message])]),A(st=>{st(xe)}))]}default:return[s,It(ue=>{Ge(ue)},ue=>OC(n,s.ProcessInstanceId,T,ue),t,ue=>new U(5,[T,new cn(2,[ue])]),ue=>new U(5,[T,new cn(3,[ue])]))]}}case 6:return[new nt(s.ProfileId,s.ProcessInstanceId,s.WorkflowDetail,new fe(3,[]),s.CssOverrides,s.BenefitsOnboarding),It(T=>{Ge(T)},T=>DC(n,s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(15,[]),T=>new U(16,[T]))];case 7:return[s,d0(_([It(T=>{Ge(T)},T=>RC(n,s.ProcessInstanceId,t,T),r.fields[0].InjectedBenefits,T=>new U(15,[]),T=>new U(16,[T])),(rt=s.WorkflowDetail,rt.tag===1?(Re=new U(2,[new fe(2,[Dp(Uo(T=>O(T.Status,new oe(0,[]))?!0:O(T.Status,new oe(4,[])),rt.fields[0].Steps))])]),A(T=>{T(Re)})):A(T=>{T(new U(2,[new fe(4,["Process Instance not resolved"])]))}))]))];case 8:return[s,It(T=>{Ge(T)},Ys(e)(s.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,T=>new U(9,[T]),T=>new U(16,[T]))];case 9:{const T=bl(r.fields[0],s.WorkflowDetail);return[new nt(s.ProfileId,s.ProcessInstanceId,T,s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),(Be=T.tag===1?xl(s.CurrentView,T.fields[0],s.BenefitsOnboarding):T.tag===2?new U(2,[new fe(4,[T.fields[0]])]):new U(2,[new fe(4,["Process Instance not resolved"])]),A(Y=>{Y(Be)}))]}case 10:{const T=r.fields[0];switch(T.tag){case 1:return[s,J()];case 2:return T.fields[0].tag===1?[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[T.fields[0].fields[0]]),new fe(4,[T.fields[0].fields[0]]),s.CssOverrides,s.BenefitsOnboarding),J()]:(ya(T.fields[0].fields[0].Id,T.fields[0].fields[0].Configuration.Name,T.fields[0].fields[0].Configuration.Id,s.ProfileId),[new nt(s.ProfileId,s.ProcessInstanceId,bl(new m(0,[T.fields[0].fields[0]]),s.WorkflowDetail),s.CurrentView,s.CssOverrides,s.BenefitsOnboarding),A(Y=>{Y(new U(2,[new fe(5,[])]))})]);case 3:return[new nt(s.ProfileId,s.ProcessInstanceId,new Tt(2,[T.fields[0].message]),new fe(4,[T.fields[0].message]),s.CssOverrides,s.BenefitsOnboarding),J()];default:{const Y=s.WorkflowDetail;let ue,st;switch(Y.tag===1&&ca(Y.fields[0].Status)?(ue=0,st=Y.fields[0]):ue=1,ue){case 0:return ya(st.ProcessInstanceId,st.InstanceName,st.ProcessConfigId,s.ProfileId),[s,J()];default:return[s,It(_e=>{Ge(_e)},_e=>BC(n,s.ProcessInstanceId,_e),t,_e=>new U(10,[new cn(2,[_e])]),_e=>new U(10,[new cn(3,[_e])]))]}}}}case 11:{const T=r.fields[0];return ya(T.ProcessInstanceId,T.InstanceName,T.ProcessConfigId,s.ProfileId),[s,A(Y=>{Y(new U(2,[new fe(5,[])]))})]}case 13:return[s,(Xe=window.location.pathname+"/"+window.location.search+window.location.hash,h0(T=>{dl(A(Xe),1)}))];case 15:return[s,J()];case 16:return[s,J()];default:return[s,Li(T=>{Ge(T)},()=>MC(s.ProcessInstanceId,t,n),void 0,T=>new U(1,[new cn(2,[T])]))]}}function FC(e,t,n,r){return VC((s,i,o)=>NC(t,s,i,o),e,t,n,r)}const WC=d("div",C(_([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",C(_([(n="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",n]),["fill","white"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()]))),jC=d("div",C(_([["className","text-primary-base"],(()=>{let e,t,n,r;const s=[d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=A(d("g",C(A((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",C(_([(n="M16.616 12.6769L11.146 18.1459C11.0908 18.2022 11.0497 18.2707 11.026 18.3459L10.026 21.3459C10.0018 21.4208 9.99555 21.5004 10.0079 21.5781C10.0202 21.6559 10.0507 21.7296 10.0969 21.7934C10.1431 21.8571 10.2036 21.909 10.2737 21.9449C10.3438 21.9808 10.4213 21.9997 10.5 21.9999C10.5538 22.0002 10.6072 21.9914 10.658 21.9739L13.658 20.9739C13.7332 20.9503 13.8017 20.9091 13.858 20.8539L19.327 15.3839L16.616 12.6769Z",["d",n]),["fill","currentColor"]]))),d("path",C(_([(r="M21.8545 12.146L19.8545 10.146C19.808 10.0994 19.7529 10.0625 19.6921 10.0373C19.6314 10.0121 19.5663 9.99908 19.5005 9.99908C19.4347 9.99908 19.3696 10.0121 19.3089 10.0373C19.2481 10.0625 19.1929 10.0994 19.1465 10.146L17.6775 11.616L20.3845 14.323L21.8545 12.854C21.9011 12.8075 21.938 12.7524 21.9632 12.6916C21.9884 12.6309 22.0014 12.5657 22.0014 12.5C22.0014 12.4342 21.9884 12.3691 21.9632 12.3083C21.938 12.2476 21.9011 12.1924 21.8545 12.146Z",["d",r]),["fill","currentColor"]])))]),["children",b.Children.toArray(Array.from(t))]))))),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(s))]})()]))),UC=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(_([(t="M15 13C15 12.7348 15.1054 12.4804 15.2929 12.2929C15.4804 12.1054 15.7348 12 16 12C16.2652 12 16.5196 12.1054 16.7071 12.2929C16.8946 12.4804 17 12.7348 17 13V15H19V13C19 12.2044 18.6839 11.4413 18.1213 10.8787C17.5587 10.3161 16.7956 10 16 10C15.2044 10 14.4413 10.3161 13.8787 10.8787C13.3161 11.4413 13 12.2044 13 13V15H15V13Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(_([(n="M19.6 16H12.4C11.9029 16 11.5 16.3731 11.5 16.8333V20.1667C11.5 20.6269 11.9029 21 12.4 21H19.6C20.0971 21 20.5 20.6269 20.5 20.1667V16.8333C20.5 16.3731 20.0971 16 19.6 16Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(r))]})()]))),Ph=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(t))]})()]))),zC=d("svg",C(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",C(_([(t="M20.3018 11.7811L13.9959 18.0829L11.6982 15.7867C11.5092 15.6043 11.2561 15.5033 10.9933 15.5056C10.7306 15.5079 10.4793 15.6132 10.2935 15.7989C10.1077 15.9845 10.0023 16.2357 10 16.4983C9.99775 16.7608 10.0988 17.0138 10.2813 17.2026L13.2874 20.2068C13.4754 20.3945 13.7302 20.5 13.9959 20.5C14.2616 20.5 14.5164 20.3945 14.7043 20.2068L21.7187 13.1971C21.9012 13.0082 22.0022 12.7553 22 12.4927C21.9977 12.2301 21.8923 11.979 21.7065 11.7933C21.5207 11.6076 21.2694 11.5023 21.0067 11.5C20.7439 11.4978 20.4908 11.5987 20.3018 11.7811Z",["d",t]),["fill","#D1D5DB"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function Al(e,t){let n;return d("div",C(_([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:ye(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",b.Children.toArray(Array.from(n))])])))}function HC(e){return Al("text-gray-900",e)}function El(e){return Al("text-gray-500",e)}function GC(e){return Al("text-primary-base",e)}function YC(e){switch(e.Status.tag){case 0:return HC(Zn(e));case 1:return El(Zn(e));case 3:return El(Zn(e));case 4:return El(Zn(e));default:return GC(Zn(e))}}function Mh(e){let t;return d("div",C(_([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:ye(" ",[e,"w-0.5 h-6 relative"])})],["children",b.Children.toArray(Array.from(t))])])))}const qC=Mh("bg-gray-300"),Oh=Mh("bg-primary-base");function JC(e){const t=O(e.Id,new Se(6,[])),n=e.Status;let r;if(t)r=2;else switch(n.tag){case 0:{r=0;break}case 2:{r=1;break}default:r=2}switch(r){case 0:return Oh;case 1:return Oh;default:return qC}}function Dh(e,t){let n,r,s;const i=O(t.Status,new oe(0,[]))?!0:O(t.Status,new oe(2,[]));return d("button",C(_([["className",ye(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!i],["onClick",o=>{e(new U(2,[new fe(2,[t])]))}],(n=[d("div",C(_([["className","w-8 h-8 relative"],(r=pe(I(()=>{const o=t.Status;return o.tag===0?y(WC):o.tag===1?y(Ph):o.tag===3?O(t.Id,new Se(6,[]))?y(UC):y(Ph):o.tag===4?y(zC):y(jC)})),["children",b.Children.toArray(Array.from(r))])]))),d("div",C(_([["className",ye(" ",pe(I(()=>V(y("rounded justify-start items-center flex"),I(()=>i?y("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):hr())))))],(s=[YC(t)],["children",b.Children.toArray(Array.from(s))])])))],["children",b.Children.toArray(Array.from(n))])])))}function ZC(e){let t,n,r,s=!1,i=0;const o=me(e.Steps);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();switch(u.Id.tag){case 0:case 1:{s=O(u.Status,new oe(0,[]))?!0:O(u.Status,new oe(4,[]));break}default:(O(u.Status,new oe(0,[]))||O(u.Status,new oe(4,[])))&&(i=i+1|0)}}}finally{ae(o)}r=i+(s?1:0);const a=ur(kl(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",C(_([(t="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start inline-flex cursor-default",["className",t]),(n=pe(I(()=>{let u,f;return V((u=e.Branding,O(e.AppMode,new zn(0,[]))?y(ee()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,y(l(os(f)))):y(l(Cl(e.JourneyType)))),I(()=>y(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",b.Children.toArray(Array.from(n))])])))}function XC(e,t){return((r,s)=>{e:for(;;){const i=r,o=s;if(M(i))return o;if(M(P(i)))return vt(o,A(Dh(e,k(i))));r=et(k(P(i)),P(P(i))),s=vt(o,_([Dh(e,k(i)),JC(k(P(i)))]));continue e}})(kl(t.Steps),ce())}function KC(e){let t,n,r;const s=e.dispatch,i=e.detail,o=Mc(void 0),a=mi(!1);return V1(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;Sl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(3,[])))}):new Bf(()=>{const u=document.body.offsetWidth;Sl(u)!=null||a[0]===!1&&(a[1](!0),s(new U(3,[])))});return Tn(u=>{l.observe(u)},ti(o.current)),{Dispose(){l.disconnect()}}}),d("div",C(_([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",C(_([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[ZC(i),d("div",C(_([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=XC(s,i),["children",b.Children.toArray(Array.from(r))])])))],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}class Zi extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token"]}}class QC extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class e3 extends R{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function Nh(e){const t=e.children,n=e.effect,r=e.props,s=e.step;$r(n);const i=s.tag===1?pt.ComponentTagName:s.tag===2?$t.ComponentTagName:s.tag===3?gt.ComponentTagName:s.tag===4?Oe.ComponentTagName:s.tag===5?On.ComponentTagName:s.tag===6?as.ComponentTagName:s.tag===7?qt.ComponentTagName:s.tag===8?Dn.ComponentTagName:Ye.ComponentTagName;return d(i,bt(r,1),...t)}class Os extends R{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class t3 extends B{constructor(t,n,r,s){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=s|0}}const n3=new t3(576,768,1024,1216);function r3(e){return["(max-width: "+e.MobileLandscape+"px)","(max-width: "+e.Tablet+"px)","(max-width: "+e.Desktop+"px)","(max-width: "+e.WideScreen+"px)"]}function Xi(e){const t=L1(()=>window.matchMedia(e).matches);return Qo(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),hi(()=>{n.removeListener(r)})},[e]),t[0]}function s3(e){const t=r3(Ee(e,n3)),n=Xi(t[0]),r=Xi(t[1]),s=Xi(t[2]),i=Xi(t[3]);return n?new Os(0,[]):r?new Os(1,[]):s?new Os(2,[]):i?new Os(3,[]):new Os(4,[])}const i3=d("svg",C(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=A(d("g",C(A((e=_([d("rect",{width:16,height:16,fill:"white"}),d("path",C(_([(t="M15 6.99992H3.41403L6.70703 3.70692C6.88919 3.51832 6.98998 3.26571 6.9877 3.00352C6.98543 2.74132 6.88026 2.49051 6.69485 2.3051C6.50944 2.11969 6.25863 2.01452 5.99643 2.01224C5.73423 2.00997 5.48163 2.11076 5.29303 2.29292L0.293031 7.29292C0.10556 7.48045 0.000244141 7.73475 0.000244141 7.99992C0.000244141 8.26508 0.10556 8.51939 0.293031 8.70692L5.29303 13.7069C5.38528 13.8024 5.49562 13.8786 5.61763 13.931C5.73963 13.9834 5.87085 14.011 6.00363 14.0122C6.13641 14.0133 6.26809 13.988 6.39098 13.9377C6.51388 13.8875 6.62553 13.8132 6.71943 13.7193C6.81332 13.6254 6.88757 13.5138 6.93785 13.3909C6.98813 13.268 7.01343 13.1363 7.01228 13.0035C7.01113 12.8707 6.98354 12.7395 6.93113 12.6175C6.87872 12.4955 6.80254 12.3852 6.70703 12.2929L3.41403 8.99992H15C15.2652 8.99992 15.5196 8.89456 15.7071 8.70703C15.8947 8.51949 16 8.26514 16 7.99992C16 7.7347 15.8947 7.48035 15.7071 7.29281C15.5196 7.10528 15.2652 6.99992 15 6.99992Z",["d",t]),["fill","#212121"]])))]),["children",b.Children.toArray(Array.from(e))])))));return["children",b.Children.toArray(Array.from(n))]})()])));function o3(e,t,n){let r,s,i,o,a,l;const u=Vp(h=>O(h.Id,n.Id),t)/ur(t)*100;l=Ue(je("%.0f%%"))(u);let f;const c=Wp(h=>O(h.Status,new oe(2,[]))?!0:O(h.Status,new oe(0,[])),t)/ur(t)*100;f=Ue(je("%.0f%%"))(c);const p=O(n.Id,new Se(1,[]))?xh(new Se(0,[])):Zn(n);return d("div",C(_([(r="h-20 w-full px-6 py-4 bg-white border-b border-gray-300 flex-col justify-start items-start space-y-3 inline-flex sticky left-0 right-0 top-0 z-50",["className",r]),(s=[d("div",C(_([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(i=[d("button",{type:"button",className:"w-4 h-4 rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",onClick:h=>{e(new U(2,[new fe(1,[])]))},children:b.Children.toArray([i3])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:p})],["children",b.Children.toArray(Array.from(i))])]))),d("div",C(_([["className","w-full h-2 relative rounded-sm"],(o=[d("div",{className:"w-full h-0.5 left-0 top-[3px] absolute bg-gray-300 rounded-sm"}),d("div",C(_([["className","w-full left-0 top-0 absolute"],(a=[d("div",{className:"h-0.5 left-0 top-[3px] absolute bg-primary-base rounded-sm",style:{width:f}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:l}})],["children",b.Children.toArray(Array.from(a))])])))],["children",b.Children.toArray(Array.from(o))])])))],["children",b.Children.toArray(Array.from(s))])])))}const a3=d("div",C(_([["className","relative h-4 w-2 z-50"],(()=>{const e=[d("div",{className:"absolute left-0 top-1 h-2 w-2 rounded-full bg-primary-base"})];return["children",b.Children.toArray(Array.from(e))]})()]))),l3=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),Rh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),u3=d("div",C(_([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",C(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=_([d("path",C(_([(t="M7 5C7 4.73478 7.10536 4.48043 7.29289 4.29289C7.48043 4.10536 7.73478 4 8 4C8.26522 4 8.51957 4.10536 8.70711 4.29289C8.89464 4.48043 9 4.73478 9 5V7H11V5C11 4.20435 10.6839 3.44129 10.1213 2.87868C9.55871 2.31607 8.79565 2 8 2C7.20435 2 6.44129 2.31607 5.87868 2.87868C5.31607 3.44129 5 4.20435 5 5V7H7V5Z",["d",t]),["fill","#9CA3AF"]]))),d("path",C(_([(n="M11.6 8H4.4C3.90294 8 3.5 8.3731 3.5 8.83333V12.1667C3.5 12.6269 3.90294 13 4.4 13H11.6C12.0971 13 12.5 12.6269 12.5 12.1667V8.83333C12.5 8.3731 12.0971 8 11.6 8Z",["d",n]),["fill","#9CA3AF"]])))]),["children",b.Children.toArray(Array.from(e))])])))];return["children",b.Children.toArray(Array.from(r))]})()])));function Bh(e,t,n){let r;if(e)r=0;else switch(n.tag){case 0:case 4:{r=2;break}case 1:{r=4;break}case 3:{t?r=3:r=4;break}default:r=1}switch(r){case 0:return a3;case 1:return Rh;case 2:return Rh;case 3:return u3;default:return l3}}const Lh=d("div",{className:"relative h-0.5 w-full"}),c3=d("div",{className:"relative h-0.5 w-full bg-gray-300"}),f3=d("div",{className:"relative h-0.5 w-full bg-primary-base"});function Tl(e){let t;if(e==null)t=1;else switch(e.tag){case 0:case 4:case 2:{t=0;break}default:t=2}switch(t){case 0:return f3;case 1:return Lh;default:return c3}}function Vh(e){let t,n;return d("div",C(_([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",C(_([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:ye(" ",[e,"relative h-0.5 w-10"])})],["children",b.Children.toArray(Array.from(n))])])))],["children",b.Children.toArray(Array.from(t))])])))}const d3=Vh("bg-gray-300"),h3=Vh("bg-primary-base");function m3(e){switch(e.tag){case 0:case 4:case 2:return h3;default:return d3}}function Fh(e,t,n,r){let s,i;const o=!e&&(O(n.Status,new oe(0,[]))?!0:O(n.Status,new oe(2,[]))),a=e?"text-primary-base":O(n.Status,new oe(2,[]))||O(n.Status,new oe(0,[]))?"text-gray-900 group-hover:text-primary-base":"text-gray-500",l=d("div",{className:"absolute inset-0 group-hover:bg-primary-base group-hover:opacity-10 rounded"});let u;const f=gc(Ih(n.Id).toLocaleLowerCase()," ","-");return u=Ue(je("step-%s"))(f),d("div",C(_([["className",ye(" ",["h-11 flex-col justify-start items-center inline-flex"])],(s=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:b.Children.toArray(Array.from(r))}),d("button",C(_([["type","button"],["disabled",!o],["data-testid",u],["className",ye(" ",["relative group h-7 px-2 py-1 justify-center items-center gap-2 inline-flex rounded","focus:outline-none focus:ring-1 focus:ring-offset-1 focus:ring-primary-focus"])],["onClick",Pt(t)(n)],(i=pe(I(()=>V(y(o?l:ee()),I(()=>y(d("div",{className:ye(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:mC(n)})))))),["children",b.Children.toArray(Array.from(i))])])))],["children",b.Children.toArray(Array.from(s))])])))}function p3(e,t,n){const r=O(n.Id,new Se(1,[]))?new Se(0,[]):n.Id,s=(o,a)=>{e(new U(2,[new fe(2,[o])]))};return fr(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(M(u))return c;if(M(P(u))){const p=Tl(f),h=O(k(u).Id,r);return vt(c,A(Fh(h,s,k(u),_([Lh,Bh(h,O(k(u).Id,new Se(6,[])),k(u).Status),p]))))}else{const p=Tl(f),h=O(k(u).Id,r),$=Bh(h,O(k(u).Id,new Se(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=vt(c,_([Fh(h,s,k(u),_([Tl(k(u).Status),$,p])),m3(k(u).Status)]));continue e}}})(fr(kl(t)),void 0,ce()))}function $3(e,t,n){let r,s,i;const o=d("div",C(_([["className","grow shrink basis-0 flex-col justify-start items-start inline-flex"],(r=[d("div",{className:"hidden lg:inline text-gray-500 text-sm font-medium leading-tight",children:Cl(t.JourneyType)}),Ee(Le(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Le(os,hn(l=>l.CompanyName,t.Branding))),ee())],["children",b.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",C(_([(s="w-full h-20 px-8 py-4 bg-white border-b border-gray-300 justify-between items-center inline-flex sticky left-0 right-0 top-0 z-50",["className",s]),(i=pe(I(()=>V(O(t.AppMode,new zn(0,[]))?y(a):y(o),I(()=>{let l;return V(y(d("div",C(_([["className","bg-white justify-center items-start flex"],(l=p3(e,t.Steps,n),["children",b.Children.toArray(Array.from(l))])])))),I(()=>y(d("div",{className:"grow shrink basis-0"}))))})))),["children",b.Children.toArray(Array.from(i))])])))}function g3(e){let t;const n=e.body,r=e.currentStep,s=e.detail,i=e.dispatch;return d("div",C(_([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=pe(I(()=>V(ur(s.Steps)===1?y(ee()):s3().tag===0?y(o3(i,s.Steps,r)):y($3(i,s,r)),I(()=>y(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",b.Children.toArray(Array.from(t))])])))}const w3=e=>d("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M16 16V30",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 21L16 16L21 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M11 29H4C3.20435 29 2.44129 28.6839 1.87868 28.1213C1.31607 27.5587 1 26.7956 1 26V2H12L15 7H31V26C31 26.7956 30.6839 27.5587 30.1213 28.1213C29.5587 28.6839 28.7956 29 28 29H21",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),y3=e=>d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("path",{d:"M19.7 4.3C19.3 3.9 18.7 3.9 18.3 4.3L12 10.6L5.7 4.3C5.3 3.9 4.7 3.9 4.3 4.3C3.9 4.7 3.9 5.3 4.3 5.7L10.6 12L4.3 18.3C3.9 18.7 3.9 19.3 4.3 19.7C4.5 19.9 4.7 20 5 20C5.3 20 5.5 19.9 5.7 19.7L12 13.4L18.3 19.7C18.5 19.9 18.8 20 19 20C19.2 20 19.5 19.9 19.7 19.7C20.1 19.3 20.1 18.7 19.7 18.3L13.4 12L19.7 5.7C20.1 5.3 20.1 4.7 19.7 4.3Z",fill:"#9CA3AF"}));function _3(e){const t=bt(e,1);return d(w3,t)}function v3(e){const t=bt(e,1);return d(y3,t)}function b3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:b.Children.toArray([e])})}function C3(e,t){let n;return d("button",C(_([["type","button"],["data-testid","submit-btn"],["className",ye(" ",["self-stretch md:self-auto md:w-60 px-4 py-2 bg-primary-base hover:bg-primary-hover rounded-md shadow","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer","justify-center items-center inline-flex"])],["onClick",t],(n=[d("div",{className:"text-white text-base font-semibold leading-normal",children:e})],["children",b.Children.toArray(Array.from(n))])])))}function S3(e,t){let n;return d("button",C(_([["type","button"],["className",ye(" ",["relative group self-stretch md:self-auto md:w-60 px-4 py-2 rounded-md shadow justify-center items-center inline-flex","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus cursor-pointer"])],["onClick",t],(n=[d("div",{className:"text-primary-dark text-base font-semibold leading-normal z-[1]",children:e}),d("div",{className:"absolute w-full h-full rounded-md z-[0] bg-primary-base opacity-10 group-hover:opacity-20"})],["children",b.Children.toArray(Array.from(n))])])))}function Ki(e,t,n,r,s){let i,o,a,l,u,f,c,p,h,$,g,w,v,S,N;return b3(d("div",C(_([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(i=[d("div",C(_([(o="w-full md:self-stretch p-4 bg-white border-gray-200 flex-col justify-start items-end space-x-4 space-y-4 flex",["className",o]),(a=[d("button",C(_([["type","button"],(l="w-6 h-6 relative rounded-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-base",["className",l]),["onClick",K=>{s(new U(7,[{InjectedBenefits:r}]))}],(u=[v3([])],["children",b.Children.toArray(Array.from(u))])])))],["children",b.Children.toArray(Array.from(a))])]))),d("div",C(_([(f="w-full md:w-[560px] grow shrink basis-0 px-4 md:px-0 pb-8 md:pb-0 bg-white flex-col justify-between md:justify-start items-center md:space-y-14 flex",["className",f]),(c=[d("div",C(_([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",C(_([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(h=[d("div",C(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",C(_([["className","w-12 h-12 relative rounded-lg"],(g=[d("div",{className:"w-12 h-12 relative bg-primary-base opacity-10 rounded-lg"}),d("div",C(_([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",C(_([["className","w-7 h-7 left-px top-0.5 absolute"],(v=[_3([["className","text-primary-base"]])],["children",b.Children.toArray(Array.from(v))])])))],["children",b.Children.toArray(Array.from(w))])])))],["children",b.Children.toArray(Array.from(g))])]))),d("div",{className:"self-stretch text-center text-gray-900 text-2xl md:text-3xl font-bold leading-7 md:leading-9",children:e})],["children",b.Children.toArray(Array.from($))])]))),d("div",C(_([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(S=[d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:t}),d("div",{className:"self-stretch text-center text-gray-900 text-base md:text-lg font-normal leading-normal md:leading-7",children:n})],["children",b.Children.toArray(Array.from(S))])])))],["children",b.Children.toArray(Array.from(h))])])))],["children",b.Children.toArray(Array.from(p))])]))),d("div",C(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(N=[C3(r?"Submit and continue":"Submit",K=>{s(new U(8,[{InjectedBenefits:r}]))}),S3("Keep editing",K=>{s(new U(7,[{InjectedBenefits:r}]))})],["children",b.Children.toArray(Array.from(N))])])))],["children",b.Children.toArray(Array.from(c))])])))],["children",b.Children.toArray(Array.from(i))])]))))}function k3(e){let t,n;const r=e.dispatch,s=e.wd,i=s.IsBenefitsStepEnabled;return s.AppMode.tag===1?i?Ki("Before you continue",(t=hn(o=>o.CompanyName,s.Branding),t==null?"Submit to finalise your pay information to your employer and continue to access your workplace benefits":`Submit to finalise your pay information to ${os(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):Ki("Submit your details",(n=hn(o=>o.CompanyName,s.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${os(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):i?Ki("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):Ki("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Qi(e,t){let n;return d("div",C(_([["className",ye(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:ye(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",b.Children.toArray(Array.from(n))])])))}const x3=Qi("h-9","max-w-96"),Wh=Qi("h-6","max-w-96"),I3=Qi("h-80","max-w-96"),A3=Qi("h-10","max-w-48"),E3=(()=>{let e,t,n;const r=[d("div",C(_([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[d("div",C(_([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[x3,d("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:b.Children.toArray([Wh,Wh])})],["children",b.Children.toArray(Array.from(n))])]))),I3,A3],["children",b.Children.toArray(Array.from(t))])])))];return d(Ie,{},...r)})();function T3(e){let t;const n=e.accessToken,r=e.appMode;let s;const i=LC(n);s=ol(()=>Vi(()=>i,(u,f)=>FC(n,r,u,f),(u,f)=>{}),void 0,[]);const o=s[0],a=s[1];ea(()=>{Eg()},[]),ea(()=>{const u=o.CurrentView;let f;switch(o.WorkflowDetail.tag===1?u.tag===2?O(u.fields[0].Id,new Se(4,[]))?(f=0,u.fields[0]):O(u.fields[0].Id,new Se(5,[]))?(f=1,u.fields[0]):f=2:f=2:f=3,f){case 0:break;case 1:break;case 2:{dl(A(pl(r)),2);break}}},[o.CurrentView,o.WorkflowDetail]),$r(()=>{window.addEventListener("step-completion",u=>{a(new U(4,[u]))})});const l=o.WorkflowDetail;switch(l.tag){case 1:{const u=l.fields[0],f=u.JourneyType;return d("div",C(_([["className","w-full min-h-[600px] mx-auto bg-white"],(t=pe(I(()=>V(ke(c=>d("style",{children:[c]}),o.CssOverrides),I(()=>{const c=o.CurrentView;switch(c.tag){case 1:return V(y(d(KC,{detail:u,dispatch:a})),I(()=>(Jt(0),hr())));case 2:{const p=c.fields[0];let h;const $=p.Id;return h=$.tag===4?d(Nh,{step:new Se(4,[]),props:[new Zi(1,[n]),new Zi(0,[`${Un}/super-selection/backend/v1.0/`]),new QC(pl(r))],effect:()=>{a(new U(13,[])),Jt(2500)},children:[]}):d(Nh,{step:$,props:[new Zi(1,[n]),new Zi(0,[Un]),new e3(fn(gr(o.ProcessInstanceId)))],effect:()=>{Jt(1500)},children:[]}),y(d(g3,{dispatch:a,detail:u,currentStep:p,body:h}))}case 3:return V(y(d(k3,{wd:u,dispatch:a})),I(()=>(Jt(0),hr())));case 4:return V(y(d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})),I(()=>(Jt(0),hr())));case 5:{const p=Le(H_,u.Branding);let h;if(u.AppMode.tag===0)h=0;else switch(f.tag){case 1:{h=2;break}case 2:{h=3;break}case 3:case 4:{h=4;break}default:h=1}switch(h){case 0:return y(E3);case 1:return y(Ps(Ji(p,"onboarding")));case 2:return y(Ps(Ji(p,"information request")));case 3:return y(Ps(vh()));default:return y(Ps(bh()))}}default:return y(d("div",{children:["Please wait..."]}))}})))),["children",b.Children.toArray(Array.from(t))])])))}case 2:return Ps(na());default:return d("div",{children:["Please wait..."]})}}function P3(e){return{render:function(t){Ws(t,e)},unmount:function(){_o(e)}}}class M3 extends B{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class O3 extends ft{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function D3(e,t,n,r){const s=new M3(n,()=>t(n,r),e);return d(O3,s)}const N3=(()=>{try{return Xo(ku.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function R3(e,t,n){let r;return $0(te(N3?(r=P3(document.getElementById(t)),s=>i=>{r.render(e(o=>a=>o===a,g0(n),s,i))}):s=>i=>{Ws(e(o=>a=>o===a,g0(n),s,i),document.getElementById(t))}),n)}function B3(e,t){return R3((n,r,s,i)=>D3(te(n),te(r),s,i),e,t)}function L3(e,t){const n=encodeURIComponent(Yb(t)),r=encodeURIComponent(Iv),s=encodeURIComponent(Pv(new zn(0,[])));return E.Delay(()=>{let i,o;const a=ks(nn(new Wt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${s}`]),(i=tn(new Ft(1,[]),en(`${Sv}/connect/token`)),Ss(Gi("application/x-www-form-urlencoded"),i))));return o=E.Bind(a,l=>E.Return(new m(0,[l]))),E.Bind(o,l=>{const u=l;if(u.tag===1)return E.Return(new m(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=an(te(ln(yl(),void 0)),f.responseText);return E.Return(c)}else return E.Return(new m(1,["Unexpected result from backend"]))}})})}function V3(){return new Tr(0,[])}function Pl(e){return vi(e)}function F3(e,t){return E.Delay(()=>{let n;return E.Bind(_g([(n=L3(e,t),E.Bind(n,r=>E.Return(r))),E.Delay(()=>E.Bind(Pl(2e3),()=>E.Return(void 0)))]),r=>E.Return(ne(0,r)))})}function W3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,Li(s=>{Ge(s)},Pl,1e3,()=>new Yn(1,[]))];case 2:return t.fields[0].tag===1?[t,J()]:[t,Li(s=>{Ge(s)},Pl,2e3,()=>new Yn(2,[]))];default:return[new Tr(2,[new m(1,["No current authenticated user"])]),J()]}case 2:return[t,(r=window.location.pathname,h0(s=>{dl(A(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new Tr(2,[new m(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),J()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new Tr(2,[new m(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?J():A(s=>{s(new Yn(2,[]))})]);switch(t.tag){case 1:return[t,J()];default:return[new Tr(1,[]),It(s=>{Ge(s)},s=>F3(s[0],s[1]),[n,e.fields[1]],s=>{const i=[new Ce(1,[s]),e.fields[1],e.fields[2]];return new Yn(0,[i[0],i[1],i[2]])},s=>{const i=[new Ce(1,[new m(1,[s.message])]),e.fields[1],e.fields[2]];return new Yn(0,[i[0],i[1],i[2]])})]}}}function j3(){const e=Ku(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=an(te(ln(yl(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function U3(e){let t;const n=["credentials",(t=new _h(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),rn(0,on(yl(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function jh(e,t){return rl(n=>new bn(3,[n]),A(n=>{n(new Yn(0,[new Ce(0,[]),e,t]))}))}function Ml(e){return jh(e,!1)}function z3(e){return jh(e,!0)}function H3(){const e=Ch(M0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new Jn(t,V3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,J()];case 0:{const s=j3();let i;switch(n.tag){case 0:case 2:{i=1;break}default:s==null?i=1:i=0}switch(i){case 0:return[new Jn(r.CurrentPage,new Tr(2,[new m(0,[s])]),r.AppMode),J()];default:return[r,A(o=>{o(new bn(5,[]))})]}}default:return[r,Ml(t.fields[0])]}}function G3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new Jn(new W(3,[n]),t.Credentials,t.AppMode),Ml(n)]}case 2:return[new Jn(new W(4,[]),t.Credentials,t.AppMode),rl(n=>new bn(3,[n]),A(n=>{n(new Yn(1,[]))}))];case 3:{const n=W3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let s,i;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(s=0,i=r.fields[0].fields[0]):s=1,s){case 0:{U3(i);break}}return[new Jn(t.CurrentPage,r,t.AppMode),rl(o=>new bn(3,[o]),n[1])]}case 4:return[t,z3(e.fields[0])];case 5:return[new Jn(new W(6,[]),t.Credentials,t.AppMode),J()];default:{const n=Ch(e.fields[0])[0],r=new Jn(n,t.Credentials,t.AppMode);return n.tag===3?[r,Ml(n.fields[0])]:[r,J()]}}}const Uh=d("div",C(_([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[na()];return["children",b.Children.toArray(Array.from(e))]})()])));function Y3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return A("bg-white h-full");default:return ce()}}function q3(e){switch(e.tag){case 1:return d("style",{children:[`
810
810
  html {
811
811
  height: 100%;
812
812
  }
@@ -815,4 +815,4 @@ If you can't use one of these types, please pass an extra decoder.
815
815
  }
816
816
  #workflows-app {
817
817
  height: 100%;
818
- }`]});default:return ee()}}function j3(e,t){let n;const r=d("div",C(_([["className",ye(" ",pe(I(()=>V(y(Hp),I(()=>V(y("font-inter"),I(()=>F3(e))))))))],(n=pe(I(()=>V(y(W3(e.AppMode)),I(()=>{const s=e.CurrentPage;switch(s.tag){case 3:case 4:{const i=e.Credentials;let o;switch(i.tag===2&&i.fields[0].tag===1?o=0:o=1,o){case 0:return y(Vh);default:return y(d(Gp,null))}}case 1:return y(d(Dy,null));case 2:return y(d(Qv,{inviteCode:s.fields[0],navigateAuthCodeExchangePage:i=>{i==null?t(new bn(2,[])):t(new bn(1,[i]))},startAuthCodeExchangeBackground:i=>{t(new bn(4,[i]))}}));case 5:return y(d("h1",{children:["Not found"]}));case 6:return y(d(nb,null));default:{const i=e.Credentials;let o,a;switch(i.tag===2&&i.fields[0].tag===0?(o=0,a=i.fields[0].fields[0]):o=1,o){case 0:return y(d(C3,{appMode:e.AppMode,accessToken:a.access_token}));default:return y(Vh)}}}})))),["children",b.Children.toArray(Array.from(n))])])));return y2({hashMode:2,onUrlChanged:s=>{t(new bn(0,[s]))},application:d(Ie,{},r)})}C_(T3("workflows-app",Li(L3,V3,j3)))})();
818
+ }`]});default:return ee()}}function J3(e,t){let n;const r=d("div",C(_([["className",ye(" ",pe(I(()=>V(y(J1),I(()=>V(y("font-inter"),I(()=>Y3(e))))))))],(n=pe(I(()=>V(y(q3(e.AppMode)),I(()=>{const s=e.CurrentPage;switch(s.tag){case 3:case 4:{const i=e.Credentials;let o;switch(i.tag===2&&i.fields[0].tag===1?o=0:o=1,o){case 0:return y(Uh);default:return y(d(Z1,null))}}case 1:return y(d(Ly,null));case 2:return y(d(iC,{inviteCode:s.fields[0],navigateAuthCodeExchangePage:i=>{i==null?t(new bn(2,[])):t(new bn(1,[i]))},startAuthCodeExchangeBackground:i=>{t(new bn(4,[i]))}}));case 5:return y(d("h1",{children:["Not found"]}));case 6:return y(d(lC,null));default:{const i=e.Credentials;let o,a;switch(i.tag===2&&i.fields[0].tag===0?(o=0,a=i.fields[0].fields[0]):o=1,o){case 0:return y(d(T3,{appMode:e.AppMode,accessToken:a.access_token}));default:return y(Uh)}}}})))),["children",b.Children.toArray(Array.from(n))])])));return bv({hashMode:2,onUrlChanged:s=>{t(new bn(0,[s]))},application:d(Ie,{},r)})}I_(B3("workflows-app",Vi(H3,G3,J3)))})();