@flarehr/superhero-account-registry 2.33.50 → 2.35.52

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,16 +1,16 @@
1
- (function(){"use strict";function st(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function iu(e){return e!=null&&typeof e.GetEnumerator=="function"}function au(e){return e!=null&&typeof e.CompareTo=="function"}function lu(e){return e!=null&&typeof e.Equals=="function"}function Xs(e){return e!=null&&typeof e.GetHashCode=="function"}function Co(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){Co(e)&&e.Dispose()}function Q(){return null}function vr(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 cu{constructor(t){this.iter=t,this.current=Q()}"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 ie(e){return iu(e)?e.GetEnumerator():new cu(e[Symbol.iterator]())}function jn(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}}}}function re(e,t){return e.toString(10).padStart(t,"0")}function Qs(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function uu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Ht(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ft{static id(t){return ft.idMap.has(t)||ft.idMap.set(t,++ft.count),ft.idMap.get(t)}}ft.idMap=new WeakMap,ft.count=0;function un(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ye(e){return e*2654435761|0}function ei(e){return un(e.toString(32))}function zn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function fu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ye(e);case"bigint":return ei(e);case"string":return un(e);default:return Ye(ft.id(e))}}function du(e){return Xs(e)?e.GetHashCode():fu(e)}function hu(e){return e.getTime()}function pu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=dt(e[r]);return zn(n)}function dt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ye(e);case"bigint":return ei(e);case"string":return un(e);default:{if(Xs(e))return e.GetHashCode();if(st(e))return pu(e);if(e instanceof Date)return hu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>dt(r));return zn(n)}else return Ye(ft.id(e))}}}function mu(e){return du(e)}function ko(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 ti(e,t){return ko(e,t,he)}function gu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!he(e[n[o]],t[r[o]]))return!1;return!0}function he(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:lu(e)?e.Equals(t):st(e)?st(t)&&ti(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ni(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&gu(e,t)}function ni(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Qs(e),r=t.getTime()+Qs(t)),n===r?0:n<r?-1:1}function xr(e,t){return e===t?0:e<t?-1:1}function wu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function ri(e,t){return wu(e,t,qe)}function _u(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=qe(e[i],t[i]),s!==0)return s}return 0}function qe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:au(e)?e.CompareTo(t):st(e)?st(t)?ri(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ni(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?_u(e,t):-1}function D(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function yu(e){st(e)?e.splice(0):e.clear()}const Cr=new WeakMap;function ee(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Cr.set(t,e),t}function Dt(e){return Cr.get(e)??(t=>n=>e(t,n))}function So(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Cr.set(t,e),t}function Ao(e){return Cr.get(e)??(t=>n=>r=>e(t,n,r))}function bu(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ie(r);else if(t===100){n+="; ...";break}else n+="; "+Ie(r);t++}return n+"]"}function Ie(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 bu(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Ie(s,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function vu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ie(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ie(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class B{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>dt(n));return t.splice(0,0,Ye(this.tag)),zn(t)}Equals(t){return this===t?!0:vr(this,t)&&this.tag===t.tag?ti(this.fields,t.fields):!1}CompareTo(t){return this===t?0:vr(this,t)?this.tag===t.tag?ri(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function xu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Cu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ie(n)).join(`
3
- `)+" }"}function ku(e){const t=Object.values(e).map(n=>dt(n));return zn(t)}function Su(e,t){if(e===t)return!0;if(vr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!he(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Au(e,t){if(e===t)return 0;if(vr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=qe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class K{toJSON(){return xu(this)}toString(){return Cu(this)}GetHashCode(){return ku(this)}Equals(t){return Su(this,t)}CompareTo(t){return Au(this,t)}}class Re{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 Eu{constructor(t){this.message=t}}function Iu(e){return e instanceof Eu||e instanceof Error}function Tu(e){return e instanceof Promise}function kr(e){return Iu(e)||Tu(e)?e:new Error(String(e))}const fn=Symbol("numeric");function oi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[fn])}function $u(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Eo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[fn]().multiply(t)}function Sr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[fn]().toFixed(t)}function Ar(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[fn]().toPrecision(t)}function Er(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[fn]().toExponential(t)}function Ir(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[fn]().toHex()}class ht{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return be(this)}GetHashCode(){return si(this)}Equals(t){return Io(this,t)}}function pt(e){return e.generics!=null?e.generics:[]}function si(e){const t=un(e.fullname),n=pt(e).map(si);return zn([t,...n])}function Io(e,t){return e.fullname===""?t.fullname===""&&ko($r(e),$r(t),([n,r],[o,s])=>n===o&&Io(r,s)):e.fullname===t.fullname&&ko(pt(e),pt(t),Io)}function Pt(e,t,n,r){return new ht(e,t,n,void 0,r)}function ye(e){return new ht("Microsoft.FSharp.Core.FSharpOption`1",[e])}function To(e){return new ht("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Nu=new ht("System.Object"),z=new ht("System.String");function $o(e){if(Array.isArray(e))return e[0];if(e instanceof ht){const t=Tr(e);if(t!=null)return $o(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function be(e){const t=Tr(e);return t!=null?be(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>be(n)).join(",")+"]"}function Mu(e){return Tr(e)!=null}function Tr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Du(e){return e.generics!=null&&e.generics.length>0}function ii(e){return e.enumCases!=null&&e.enumCases.length>0}function Pu(e){return e.generics==null?e:new ht(e.fullname,e.generics.map(()=>Nu))}function Ru(e){var t;return(t=e.generics)==null?void 0:t[0]}function dn(e){if(ii(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ou(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 hn(e,t){const n=parseInt(t,10);return Ou(e,isNaN(n)?t:n)[1]}function Fu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function $r(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Bu(e){if(ai(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Lu(e){return e instanceof ht?e.cases!=null:e instanceof B}function Vu(e){return e instanceof ht?e.fields!=null:e instanceof K}function ai(e){return e.fullname.startsWith("System.Tuple")}function Uu(e){return e.fields==null?[]:e.fields}function Hu(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 ju(e,t){const n=$r(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function zu(e,t){return e}const Gu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Wu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ue(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function li(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ku(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function No(e,t,n){let r=0,o=0,s="";const i=n?Gn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ue(t,r,"d"),r+=o,o){case 1:s+=di(i);break;case 2:s+=re(di(i),2);break;case 3:s+=Gu[mi(i)];break;case 4:s+=Wu[mi(i)];break}break;case"f":if(o=Ue(t,r,"f"),r+=o,o<=3){const w=10**(3-o);s+=re(Math.floor(Dr(i)/w),o)}else o<=7&&(s+=(""+Dr(i)).padEnd(o,"0"));break;case"F":if(o=Ue(t,r,"F"),r+=o,o<=3){const w=10**(3-o),x=Math.floor(Dr(i)/w);x!=0&&(s+=re(x,o))}else if(o<=7){const w=Dr(i);w!=0&&(s+=re(w,3))}break;case"g":o=Ue(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ue(t,r,"h"),r+=o,o){case 1:s+=Mr(i)%12;break;case 2:s+=re(Mr(i)%12,2);break}break;case"H":switch(o=Ue(t,r,"H"),r+=o,o){case 1:s+=Mr(i);break;case 2:s+=re(Mr(i),2);break}break;case"K":switch(o=Ue(t,r,"K"),r+=o,o){case 1:switch(ci(i)){case 1:s+="Z";break;case 2:s+=pn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ue(t,r,"m"),r+=o,o){case 1:s+=hi(i);break;case 2:s+=re(hi(i),2);break}break;case"M":switch(o=Ue(t,r,"M"),r+=o,o){case 1:s+=Pr(i);break;case 2:s+=re(Pr(i),2);break;case 3:s+=qu[Pr(i)-1];break;case 4:s+=Zu[Pr(i)-1];break}break;case"s":switch(o=Ue(t,r,"s"),r+=o,o){case 1:s+=pi(i);break;case 2:s+=re(pi(i),2);break}break;case"t":switch(o=Ue(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ue(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=re(i.getFullYear()%100,2);break;case 3:s+=re(i.getFullYear(),3);break;case 4:s+=re(i.getFullYear(),4);break;case 5:s+=re(i.getFullYear(),5);break}break;case"z":o=Ue(t,r,"z"),r+=o;let l="";switch(ci(i)){case 1:l="+00:00";break;case 2:l=pn(i.getTimezoneOffset()*-6e4);break;case 0:l=pn(of(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${f}`;break;case 2:s+=`${c}${re(f,2)}`;break;default:s+=`${c}${re(f,2)}:${re(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,d]=Ku(t,r);s+=h,r+=d;break;case"%":const g=li(t,r);if(g>=0&&g!==37)r+=2,s+=No(i,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const y=li(t,r);if(y>=0)r+=2,s+=String.fromCharCode(y);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function ci(e){return e.kind||0}function pn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+re(n,2)+":"+re(r,2)}function Nr(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 Ju(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return re(e.getFullYear(),4)+"-"+re(e.getMonth()+1,2)+"-"+re(e.getDate(),2)+"T"+re(e.getHours(),2)+":"+re(e.getMinutes(),2)+":"+re(e.getSeconds(),2)+"."+re(e.getMilliseconds(),3)+(n?pn(e.getTimezoneOffset()*-6e4):"")}}function Yu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+pn(t)}function Xu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+pn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Nr(n,"first");case"T":case"t":return Nr(n,"second");case"O":case"o":return Yu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return No(n,t,!0)}function Qu(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?Nr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Nr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Ju(e,n);default:throw new Error("Unrecognized Date print format")}else return No(e,t,n)}function ui(e,t,n){return e.offset!=null?Xu(e,t):Qu(e,t)}function Gn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ef(){return Gn(-621355968e5,1)}function fi(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function tf(e,t=!1){const[n,r]=fi(e),o=r!=null?t&&r==="Z"?1:2:0;return Gn(n.getTime(),o)}function nf(e,t){try{return t.contents=tf(e),!0}catch{return!1}}function rf(e){return e.kind===1?e:Gn(e.getTime(),1)}function of(e){return e.kind===2?e:Gn(e.getTime(),2)}function di(e){return e.kind===1?e.getUTCDate():e.getDate()}function Mr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Dr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Pr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function pi(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function mi(e){return e.kind===1?e.getUTCDay():e.getDay()}function gi(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 Mo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sf(e,t,n=0){return e.lastIndex=n,e.exec(t)}function wi(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function af(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=gi(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),l=wi(e,a),c=wi.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Wn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,qn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,lf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _i(e,t){return $u(e,t)<0}function mt(e){return{input:e,cont:uf(e)}}function yi(e,t){let n=0,r=0,o="";qn.lastIndex=0;let s=qn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,f]=s;r=qn.lastIndex,o+=vi(t[n++],a,l,c,f),qn.lastIndex=r-1,s=qn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Do(e,t){return typeof t=="string"?e(t):t.cont(e)}function bi(e){return Do(t=>console.log(t),e)}function gt(e){return Do(t=>t,e)}function cf(e){return Do(t=>{throw new Error(t)},e)}function vi(e,t,n,r,o){let s="";if(t=t||"",o=o||"",oi(e))switch(o.toLowerCase()!=="x"&&(_i(e,0)?(e=Eo(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Sr(e,r);break;case"g":case"G":e=r!=null?Ar(e,r):Ar(e);break;case"e":case"E":e=r!=null?Er(e,r):Er(e);break;case"x":e=Ir(e);break;case"X":e=Ir(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ui(e):e=Ie(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Zn(e,n-s.length,l,a),e=s+e):e=Zn(s+e,n,l,a)}return e}function xi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,f,u,h,d]=l[0];let g=u;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=vi(c,f,g,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):xi(e,a,l,i,o)}}function uf(e){return t=>{Wn.lastIndex=0;const n=[],r=[];let o=0,s=Wn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Wn.lastIndex,Wn.lastIndex-=1,s=Wn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),xi(t,n,r))}}function Ci(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(lf,(r,o,s,i,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(oi(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=Sr(c,a);break;case"g":case"G":c=a!=null?Ar(c,a):Ar(c);break;case"e":case"E":c=a!=null?Er(c,a):Er(c);break;case"p":case"P":a=a??2,c=Sr(Eo(c,100),a)+" %";break;case"d":case"D":c=a!=null?Po(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?Po(Ir(c),a,"0"):Ir(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,d)=>{_i(c,0)&&(c=Eo(c,-1),f="-"),d=d==null?"":d.substring(1),c=Sr(c,Math.max(d.length,0));let[g,y]=c.split(".");y||(y="");const w=h.replace(/,/g,"").replace(/^#+/,"").length;g=Po(g,w,"0");const x=d.replace(/#+$/,"").length;if(x>y.length?y=df(y,x,"0"):x<y.length&&(y=y.substring(0,x)+y.substring(x).replace(/0+$/,"")),h.indexOf(",")>0){const v=g.length%3,k=Math.floor(g.length/3);let O=v>0?g.substr(0,v)+(k>0?",":""):"";for(let U=0;U<k;U++)O+=g.substr(v+U*3,3)+(U<k-1?",":"");g=O}return y.length>0?g+"."+y:g}),c=f+c}}else c instanceof Date?c=ui(c,l||i):c=Ie(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Zn(String(c),Math.abs(s)," ",s<0)),c})}function ff(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function ki(e){return typeof e!="string"||e.length===0}function Si(e){return typeof e!="string"||/^\s*$/.test(e)}function W(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Po(e,t,n){return Zn(e,t,n)}function df(e,t,n){return Zn(e,t,n,!0)}function Ro(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Mo),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),l=!1}else{const u=s?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),l=!1):i.push(u)),c=a.lastIndex}}while(l);return i}function hf(e,...t){if(t.length===0)return e.trim();const n="["+Mo(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function pf(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Mo(t.join(""))+"]+$"),"")}function Ai(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)}class jt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return dt(this.value)}Equals(t){return t==null?!1:he(this.value,t instanceof jt?t.value:t)}CompareTo(t){return t==null?1:qe(this.value,t instanceof jt?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof jt?e.value:e}function Oo(e){return e instanceof jt?e.value:e}function ke(e){return e==null||e instanceof jt?new jt(e):e}function Fo(e){return e==null?[]:[S(e)]}function Se(e,t){return e!=null?S(e):t}function mf(e,t){return e!=null?S(e):t()}function Xe(e,t){return t!=null?ke(e(S(t))):void 0}const Ei="Collection was empty.";function Ii(e,t){return new Array(t)}function Ti(e,t){return e>t?e:t}function Bo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Kn(e,t,n){const r=t.length|0,o=Ii(n,r);for(let s=0;s<=r-1;s++)wt(o,s,e(ce(s,t)));return o}function gf(e,t){const n=Ii(t,1);return wt(n,0,e),n}function wf(e){return e.slice().reverse()}function _f(e,t){return t.find(e)}function yf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ce(o,t));if(s!=null){const i=S(s);r.push(i)}}return he(n,Q())?r:Kn(o=>o,r,n)}function Rr(e,t,n){const r=e;return n.reduce(r,t)}function bf(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function Lo(e,t,n){return t==null}function ce(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 wt(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 $i(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Te extends K{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+W("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=S(l),u=S(c);if(he(i.head,a.head)){o=f,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,l=s,c=l.tail;if(c!=null){const f=S(c);if(i>18)return a|0;r=i+1,o=(a<<1)+dt(l.head)+631*i,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=S(l),u=S(c),h=qe(i.head,a.head)|0;if(h===0){o=f,s=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return xf(this)}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}}class vf{constructor(t){this.xs=t,this.it=this.xs,this.current=Q()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=S(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Q()}Dispose(){}}function xf(e){return new vf(e)}function fe(){return new Te(Q(),void 0)}function Jn(e,t){return new Te(e,t)}function _t(e){return e.tail==null}function Ni(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=S(i);continue e}else return o|0}})(0,e)|0}function Rt(e){if(e.tail!=null)return e.head;throw new Error(Ei+"\\nParameter name: list")}function ve(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Ei+"\\nParameter name: list")}function ue(){return fe()}function He(e,t){return Jn(e,t)}function j(e){return Jn(e,fe())}function F(e){return _t(e)}function mn(e){return Ni(e)}function M(e){return Rt(e)}function _(e){return ve(e)}function zt(e){const t=Ni(e)|0,n=Bo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!_t(a)){wt(n,i,Rt(a)),o=i+1,s=ve(a);continue e}break}})(0,e),n}function yt(e,t,n){let r=t,o=n;for(;!_t(o);)r=e(r,M(o)),o=ve(o);return r}function Or(e){return yt((t,n)=>Jn(n,t),fe(),e)}function Cf(e,t,n){return $i(e,zt(t),n)}function kf(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(_t(c))return l;o=a+1,s=e(a,l,Rt(c)),i=ve(c);continue e}})(0,t,n)}function Fr(e,t){yt((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Jn(ce(r,e),n);return n}function b(e){return ae(e,fe())}function Sf(e){let t,n;if(st(e))return b(e);if(e instanceof Te)return e;{const r=fe();let o=r;const s=ie(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Te(l,void 0),t.tail=n,n)}}finally{Z(s)}const i=o,a=fe();return i.tail=a,ve(r)}}function $e(e,t){return yt((n,r)=>Jn(r,n),t,Or(e))}function Af(e,t){let n,r;const o=fe();let s=o,i=t;for(;!_t(i);){let c=e(Rt(i));for(;!_t(c);)s=(n=s,r=new Te(Rt(c),void 0),n.tail=r,r),c=ve(c);i=ve(i)}const a=s,l=fe();return a.tail=l,ve(o)}function Ef(e,t){const n=fe(),r=kf((s,i,a)=>{const l=new Te(e(s,a),void 0);return i.tail=l,l},n,t),o=fe();return r.tail=o,ve(n)}function Yn(e,t){const n=fe(),r=yt((s,i)=>{const a=new Te(e(i),void 0);return s.tail=a,a},n,t),o=fe();return r.tail=o,ve(n)}function If(e,t){return(r=>{e:for(;;){const o=r;if(_t(o))return;{const s=e(Rt(o));if(s==null){r=ve(o);continue e}else return s}}})(t)}function Tf(e,t){return If(n=>e(n)?ke(n):void 0,t)}function $f(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(_t(i))return;if(e(Rt(i)))return s;r=s+1,o=ve(i);continue e}})(0,t)}function Nf(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(_t(i))return;if(s===e)return ke(Rt(i));r=s+1,o=ve(i);continue e}})(0,t)}function Mi(e,t){const n=fe(),r=yt((s,i)=>{if(e(i)){const a=new Te(i,void 0);return s.tail=a,a}else return s},n,t),o=fe();return r.tail=o,ve(n)}function Mf(e,t){const n=fe(),r=fe(),o=n,s=yt((l,c)=>{let f,u;const h=l[0],d=l[1];return e(c)?[(f=new Te(c,void 0),h.tail=f,f),d]:[h,(u=new Te(c,void 0),d.tail=u,u)]},[o,r],t),i=fe();s[0].tail=i;const a=fe();return s[1].tail=a,[ve(o),ve(r)]}function Di(e,t){const n=fe(),r=yt((s,i)=>{const a=e(i);if(a==null)return s;{const l=new Te(S(a),void 0);return s.tail=l,l}},n,t),o=fe();return r.tail=o,ve(n)}function Pi(e,t,n){return $f(r=>n.Equals(e,r),t)!=null}function Df(e,t){const n=zt(t);return n.sort(e),b(n)}function Pf(e,t,n){return Df((r,o)=>n.Compare(e(r),e(o)),t)}function Rf(e,t){return b(Kn(b,bf(e,zt(t))))}function Of(e){return new m(0,[e])}function Ri(e){return new m(1,[e])}class m extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function bt(e,t){return t.tag===0?Of(e(t.fields[0])):Ri(t.fields[0])}function Ff(e,t){return t.tag===0?e(t.fields[0]):Ri(t.fields[0])}class Bf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Oi(e){return new Bf(e)}function Vo(e){return e.fields[0]}class Lf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Vf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Uf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class Hf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class jf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let zf=class extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Gf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Wf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function vt(e){return e.fields[0]}function pe(e){return new Wf(e)}function Fi(e){return vt(e)}class qf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function it(e){return e.fields[0]}function xt(e){return new qf(e)}function Bi(e){return it(e)}function Zf(e){throw new Error(e)}const Kf="Enumeration already finished.",Jf="Enumeration has not started. Call MoveNext.",Li="The input sequence has an insufficient number of elements.",Yf="Reset is not supported on this enumerator.";function Xf(){throw new Error(Yf)}function Uo(){throw new Error(Jf)}function Ho(){throw new Error(Kf)}class Qf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ie(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ie(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function ed(e){return new Qf(e)}class td{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"(){Xf()}Dispose(){this.dispose()}}function Br(e,t,n){return new td(e,t,n)}function nd(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=S(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=S(t);try{Z(a)}finally{t=void 0}}};return Br(()=>(r?o&&Ho():Uo(),s!=null?S(s):Ho()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=S(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=ke(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Z(u)}finally{n=void 0}}else{const u=S(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),ie(a)):(i(),l=!1)}else t=ie(e)}return S(l)}},()=>{o||i()})}function rd(e,t){return Br(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Vi(e,t,n){let r=!1,o,s=ke(e());const i=()=>{if(s!=null){const l=S(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Br(()=>(r||Uo(),o!=null?S(o):Ho()),()=>{if(r||(r=!0),s!=null){const l=S(s);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function od(e,t){let n,r=t;return Br(()=>{if(n!=null){const o=S(n)[0];return S(n)[1],o}else return Uo()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function sd(e,t){t==null&&Zf(e)}function gn(e){return ed(e)}function Ct(e){return sd("source",e),ie(e)}function T(e){return gn(()=>ie(e()))}function jo(e){return gn(()=>nd(e))}function id(e,t){return gn(()=>od(e,t))}function Ze(){return T(()=>new Array(0))}function $(e){return T(()=>gf(e))}function Dw(e){return e}function zo(e){return e instanceof Te?zt(e):Array.from(e)}function me(e){return st(e)?b(e):e instanceof Te?e:Sf(e)}function Ui(e,t,n){return gn(()=>Vi(e,t,n))}function Hi(e,t,n){return gn(()=>{let r=-1;return Vi(e,o=>(r=r+1|0,t(r,o)),n)})}function P(e,t){return jo([e,t])}function wn(e,t){return Ui(()=>Ct(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Z(n)})}function ad(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{Z(o)}}finally{Z(r)}}function _n(e,t,n){const r=Ct(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function Go(e,t,n){const r=Ct(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function yn(e,t){Go((n,r)=>{e(r)},void 0,t)}function ld(e,t){Go((n,r)=>(e(n,r),n+1|0),0,t)}function de(e,t){return Ui(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ke(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function ji(e,t){return Hi(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ke(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function cd(e){return T(()=>wf(zo(e)))}function ud(e,t){return gn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Li+"\\nParameter name: source");return rd(()=>{},n)}catch(r){throw Z(n),r}})}function fd(e,t){return Hi(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ke(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Li+"\\nParameter name: source")}else return},n=>{Z(n)})}function dd(e,t){return T(()=>jo(de(e,t)))}const Gt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Wo(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 hd(e,t){switch(t){case Gt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Gt.SnakeCase:return Wo(e,"_");case Gt.SnakeCaseAllCaps:return Wo(e,"_").toUpperCase();case Gt.KebabCase:return Wo(e,"-");case Gt.None:default:return e}}function Wt(e,t=Gt.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,l){i=hd(i,a),n[i]=l}for(let i of e){let a=Gt.None;if(i==null&&o(i),i instanceof B){const l=i.cases()[i.tag];i=i.fields.length===0?l:[l].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const l=i[1];s(i[0],a,l);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function zi(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Xn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class pd{constructor(t,n){const r=new Re(Q());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=ie(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();qo(r.contents,s[0],s[1])}}finally{Z(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}GetEnumerator(){return ie(jo(this.hashMap.values()))}[Symbol.iterator](){return jn(ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){qo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Gi(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Lr(this,t[0]);let o;switch(r!=null&&he(S(r)[1],t[1])?(o=0,S(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ld((o,s)=>{wt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Wi(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Lr(n,t[0]);return r!=null?(he(S(r)[1],t[1])&&Zo(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){qo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Ki(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return qi(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Zi(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return zo(T(()=>de(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Zo(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Lr(this,t);if(o!=null){const s=S(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return zo(T(()=>de(n=>n[1],t)))}get size(){return Wi(this)|0}clear(){Gi(this)}delete(t){return Zo(this,t)}entries(){return de(n=>[n[0],n[1]],this)}get(t){return qi(this,t)}has(t){return Ki(this,t)}keys(){return de(n=>n[0],this)}set(t,n){const r=this;return Zi(r,t,n),r}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;yn(o=>{t(o[1],o[0],r)},r)}}function Qn(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=Q();return r=[zi(e.hashMap,n,new Re(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Lr(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xn(e.hashMap,n[1])[n[2]];default:return}}function Gi(e){e.hashMap.clear()}function Wi(e){let t=0,n=ie(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{Z(n)}return t|0}function qi(e,t){const n=Lr(e,t);if(n!=null)return S(n)[1];throw new Error("The item was not found in collection")}function Zi(e,t,n){const r=Qn(e,t);r[0]?r[2]>-1?Xn(e.hashMap,r[1])[r[2]]=[t,n]:Xn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function qo(e,t,n){const r=Qn(e,t);if(r[0]){if(r[2]>-1)throw new Error(Ci("An item with the same key has already been added. Key: {0}",t));Xn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Ki(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Zo(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function md(e){return new Ji(0,[e])}function gd(e){return new Ji(1,[e])}class Ji extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function wd(e){return md(e)}function _d(e){return gd(e)}const yd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Yi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,bd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function vd(e){function t(r){return r.replace(Yi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(yd.test(n))return hf(n,"{","}","(",")");if(Yi.test(n))return t(n);if(bd.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 xd(e,t){try{return t.contents=vd(e),!0}catch{return!1}}class Xi extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function at(e){return e.fields[0]}var Ko;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Ko||(Ko={}));function Cd(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Qi(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 kd(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 Sd(e,t){if(t&Ko.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 Ad(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Sd(s,t),!kd(n).test(i))return Cd(o,n)}return null}function Ed(e,t,n,r,o){const s=Ad(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Qi(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,f]=Qi(n,r);if(i>=c&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function bn(e,t,n,r,o){try{return o.contents=Ed(e,t,n,r),!0}catch{return!1}}function Id(e,t){const n=sf(gi(e),t);if(n!=null)return _(me(T(()=>de(r=>r||"",n))))}function Td(e){let t;const n=Id(".*?@(.*)",e);switch(n!=null?F(n)?t=1:F(_(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function vn(e,t){return ki(t)?new m(1,[gt(mt("%s cannot be null or empty"))(e)]):new m(0,[t])}function $d(e){const t=Td(e);if(t!=null){const n=t;return new m(0,[n])}else return new m(1,["Email is not in the correct format"])}function Nd(e){const t=vn("Name",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[Oi(t.fields[0])])}function Vr(e){return Vo(e)}function Md(e){const t=vn("Website",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Lf(t.fields[0])])}function ea(e){return e.fields[0]}function Dd(e){const t=vn("FirstName",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Vf(t.fields[0])])}function ta(e){return e.fields[0]}function Pd(e){const t=vn("LastName",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Uf(t.fields[0])])}function na(e){return e.fields[0]}function Rd(e){let t;const n=vn("Email",e);return t=n.tag===1?new m(1,[n.fields[0]]):$d(n.fields[0]),t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Hf(t.fields[0])])}function Od(e){const t=vn("MobilePhone",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new jf(t.fields[0])])}function ra(e){return e.fields[0]}class Fd extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function oa(){return Pt("AccountRegistry.Shared.Primitives.ContactDetails",[],Fd,()=>[["FirstName",z],["LastName",z],["Email",z],["MobilePhone",z]])}function Bd(e){const t=Dd(e.FirstName);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=Pd(e.LastName);if(n.tag===1)return new m(1,[n.fields[0]]);{const r=Rd(e.Email);if(r.tag===1)return new m(1,[r.fields[0]]);{const o=Od(e.MobilePhone);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[new zf(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Ld(e){const t=e;if(t!=null)return new Gf(t)}function Vd(e){if(e!=null)return e.fields[0]}function te(e){return vt(e)}function Oe(e){return it(e)}class Ud extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=l,this.CountryCode=c}}function Hd(){return Pt("AccountRegistry.Shared.Primitives.LegalEntity",[],Ud,()=>[["BusinessName",z],["BusinessNumber",z],["Address1",z],["Address2",ye(z)],["City",z],["Postcode",z],["State",ye(z)],["Phone",z],["CountryCode",ye(z)]])}let jd=class extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function zd(){return Pt("AccountRegistry.Shared.AdminApi.Partner",[],jd,()=>[["StreamId",z],["Name",z],["Website",z],["ContactDetails",ye(oa())],["Notes",ye(z)]])}class Gd extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=l,this.ChannelId=c}}function Wd(){return Pt("AccountRegistry.Shared.AdminApi.Account",[],Gd,()=>[["StreamId",z],["PartnerId",z],["Name",z],["Website",z],["ContactDetails",ye(oa())],["Notes",ye(z)],["LegalEntity",ye(Hd())],["ExternalId",ye(z)],["ChannelId",ye(z)]])}class qd extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=l,this.ChannelId=c}}function Zd(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],qd,()=>[["AccountId",z],["Name",z],["Contact",ye(z)],["ContactMobilePhone",ye(z)],["Website",z],["BusinessName",ye(z)],["BusinessNumber",ye(z)],["ExternalId",ye(z)],["ChannelId",ye(z)]])}class sa extends K{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function Kd(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookup",[],sa,()=>[["Accounts",To(Zd())],["Token",ye(z)]])}class Jd extends K{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function Yd(){return Pt("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],Jd,()=>[["PartnerId",z],["AccountId",z]])}var er,G,ia,qt,aa,la,Jo,Yo,Xo,Qo,ca,tr={},ua=[],Xd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ur=Array.isArray;function kt(e,t){for(var n in t)e[n]=t[n];return e}function fa(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?er.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return nr(e,i,r,o,null)}function nr(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ia,__i:-1,__u:0};return o==null&&G.vnode!=null&&G.vnode(s),s}function da(){return{current:null}}function Ae(e){return e.children}function Qe(e,t){this.props=e,this.context=t}function Zt(e,t){if(t==null)return e.__?Zt(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"?Zt(e):null}function ha(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 ha(e)}}function es(e){(!e.__d&&(e.__d=!0)&&qt.push(e)&&!Hr.__r++||aa!==G.debounceRendering)&&((aa=G.debounceRendering)||la)(Hr)}function Hr(){var e,t,n,r,o,s,i,a;for(qt.sort(Jo);e=qt.shift();)e.__d&&(t=qt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=kt({},o)).__v=o.__v+1,G.vnode&&G.vnode(r),ts(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Zt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,_a(i,r,a),r.__e!=s&&ha(r)),qt.length>t&&qt.sort(Jo));Hr.__r=0}function pa(e,t,n,r,o,s,i,a,l,c,f){var u,h,d,g,y,w=r&&r.__k||ua,x=t.length;for(n.__d=l,Qd(n,t,w),l=n.__d,u=0;u<x;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?tr:w[d.__i]||tr,d.__i=u,ts(e,d,h,o,s,i,a,l,c,f),g=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&ns(h.ref,null,d),f.push(d.ref,d.__c||g,d)),y==null&&g!=null&&(y=g),65536&d.__u||h.__k===d.__k?(l&&!l.isConnected&&(l=Zt(h)),l=ma(d,l,e)):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:g&&(l=g.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=y}function Qd(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?nr(null,o,null,null,null):Ur(o)?nr(Ae,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?nr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=eh(o,n,i,f),o.__i=a,s=null,a!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?f>l-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Zt(s)),rs(s,s,!1),n[i]=null,f--);if(f)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Zt(s)),rs(s,s))}function ma(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ma(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function St(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ur(e)?e.some(function(n){St(n,t)}):t.push(e)),t}function eh(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&s===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&s===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&s===l.type)return a;a++}}return-1}function ga(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Xd.test(t)?n:n+"px"}function jr(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ga(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ga(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Yo,e.addEventListener(t,s?Qo:Xo,s)):e.removeEventListener(t,s?Qo:Xo,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function wa(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Yo++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function ts(e,t,n,r,o,s,i,a,l,c){var f,u,h,d,g,y,w,x,v,k,O,U,oe,we,Ve,se=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=G.__b)&&f(t);e:if(typeof se=="function")try{if(x=t.props,v=(f=se.contextType)&&r[f.__c],k=f?v?v.props.value:f.__:r,n.__c?w=(u=t.__c=n.__c).__=u.__E:("prototype"in se&&se.prototype.render?t.__c=u=new se(x,k):(t.__c=u=new Qe(x,k),u.constructor=se,u.render=nh),v&&v.sub(u),u.props=x,u.state||(u.state={}),u.context=k,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),se.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=kt({},u.__s)),kt(u.__s,se.getDerivedStateFromProps(x,u.__s))),d=u.props,g=u.state,u.__v=t,h)se.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(se.getDerivedStateFromProps==null&&x!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(x,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(x,u.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=x,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Ce){Ce&&(Ce.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(x,u.__s,k),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,g,y)})}if(u.context=k,u.props=x,u.__P=e,u.__e=!1,U=G.__r,oe=0,"prototype"in se&&se.prototype.render){for(u.state=u.__s,u.__d=!1,U&&U(t),f=u.render(u.props,u.state,u.context),we=0;we<u._sb.length;we++)u.__h.push(u._sb[we]);u._sb=[]}else do u.__d=!1,U&&U(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++oe<25);u.state=u.__s,u.getChildContext!=null&&(r=kt(kt({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(d,g)),pa(e,Ur(Ve=f!=null&&f.type===Ae&&f.key==null?f.props.children:f)?Ve:[Ve],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),w&&(u.__E=u.__=null)}catch(Ce){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),G.__e(Ce,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=th(n.__e,t,n,r,o,s,i,l,c);(f=G.diffed)&&f(t)}function _a(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ns(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){G.__e(s,o.__v)}})}function th(e,t,n,r,o,s,i,a,l){var c,f,u,h,d,g,y,w=n.props,x=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((d=s[c])&&"setAttribute"in d==!!v&&(v?d.localName===v:d.nodeType===3)){e=d,s[c]=null;break}}if(e==null){if(v===null)return document.createTextNode(x);e=document.createElementNS(o,v,x.is&&x),s=null,a=!1}if(v===null)w===x||a&&e.data===x||(e.data=x);else{if(s=s&&er.call(e.childNodes),w=n.props||tr,!a&&s!=null)for(w={},c=0;c<e.attributes.length;c++)w[(d=e.attributes[c]).name]=d.value;for(c in w)if(d=w[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;jr(e,c,null,d,o)}}for(c in x)d=x[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?g=d:c=="checked"?y=d:c==="key"||a&&typeof d!="function"||w[c]===d||jr(e,c,d,w[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),pa(e,Ur(h)?h:[h],t,n,r,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Zt(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&fa(s[c]);a||(c="value",g!==void 0&&(g!==e[c]||v==="progress"&&!g||v==="option"&&g!==w[c])&&jr(e,c,g,w[c],o),c="checked",y!==void 0&&y!==e[c]&&jr(e,c,y,w[c],o))}return e}function ns(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){G.__e(r,n)}}function rs(e,t,n){var r,o;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ns(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&rs(r[o],t,n||typeof e.type!="function");n||e.__e==null||fa(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nh(e,t,n){return this.constructor(e,n)}function Ot(e,t,n){var r,o,s,i;G.__&&G.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],ts(t,e=(!r&&n||t).__k=p(Ae,null,[e]),o||tr,tr,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?er.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),_a(s,e,i)}function os(e,t){Ot(e,t,os)}function ss(e,t,n){var r,o,s,i,a=kt({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?er.call(arguments,2):n),nr(e.type,a,r||e.key,o||e.ref,null)}function rr(e,t){var n={__c:t="__cC"+ca++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,es(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}er=ua.slice,G={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},ia=0,Qe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kt({},this.state),typeof e=="function"&&(e=e(kt({},n),this.props)),e&&kt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),es(this))},Qe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),es(this))},Qe.prototype.render=Ae,qt=[],la=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jo=function(e,t){return e.__v.__b-t.__v.__b},Hr.__r=0,Yo=0,Xo=wa(!1),Qo=wa(!0),ca=0;var At,J,is,ya,xn=0,ba=[],zr=[],le=G,va=le.__b,xa=le.__r,Ca=le.diffed,ka=le.__c,Sa=le.unmount,Aa=le.__;function Kt(e,t){le.__h&&le.__h(J,e,xn||t),xn=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:zr}),n.__[e]}function Ke(e){return xn=1,Gr(Ia,e)}function Gr(e,t,n){var r=Kt(At++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ia(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};J.u=!0;var s=J.shouldComponentUpdate,i=J.componentWillUpdate;J.componentWillUpdate=function(a,l,c){if(this.__e){var f=s;s=void 0,o(a,l,c),s=f}i&&i.call(this,a,l,c)},J.shouldComponentUpdate=o}return r.__N||r.__}function xe(e,t){var n=Kt(At++,3);!le.__s&&fs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Ft(e,t){var n=Kt(At++,4);!le.__s&&fs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function Ne(e){return xn=5,Jt(function(){return{current:e}},[])}function as(e,t,n){xn=6,Ft(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 Jt(e,t){var n=Kt(At++,7);return fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yt(e,t){return xn=8,Jt(function(){return e},t)}function Xt(e){var t=J.context[e.__c],n=Kt(At++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function ls(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function rh(e){var t=Kt(At++,10),n=Ke();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function cs(){var e=Kt(At++,11);if(!e.__){for(var t=J.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function oh(){for(var e;e=ba.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wr),e.__H.__h.forEach(us),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){J=null,va&&va(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Aa&&Aa(e,t)},le.__r=function(e){xa&&xa(e),At=0;var t=(J=e.__c).__H;t&&(is===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zr,n.__N=n.i=void 0})):(t.__h.forEach(Wr),t.__h.forEach(us),t.__h=[],At=0)),is=J},le.diffed=function(e){Ca&&Ca(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ba.push(t)!==1&&ya===le.requestAnimationFrame||((ya=le.requestAnimationFrame)||sh)(oh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zr&&(n.__=n.__V),n.i=void 0,n.__V=zr})),is=J=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Wr),n.__h=n.__h.filter(function(r){return!r.__||us(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(r,n.__v)}}),ka&&ka(e,t)},le.unmount=function(e){Sa&&Sa(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wr(r)}catch(o){t=o}}),n.__H=void 0,t&&le.__e(t,n.__v))};var Ea=typeof requestAnimationFrame=="function";function sh(e){var t,n=function(){clearTimeout(r),Ea&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ea&&(t=requestAnimationFrame(n))}function Wr(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function us(e){var t=J;e.__c=e.__(),J=t}function fs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ia(e,t){return typeof t=="function"?t(e):t}function Ta(e,t){for(var n in t)e[n]=t[n];return e}function ds(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 qr(e,t){this.props=e,this.context=t}function $a(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:ds(this.props,o)}function r(o){return this.shouldComponentUpdate=n,p(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qr.prototype=new Qe).isPureReactComponent=!0,qr.prototype.shouldComponentUpdate=function(e,t){return ds(this.props,e)||ds(this.state,t)};var Na=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Na&&Na(e)};var ih=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Zr(e){function t(n){var r=Ta({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ih,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ma=function(e,t){return e==null?null:St(St(e).map(t))},Da={map:Ma,forEach:Ma,count:function(e){return e?St(e).length:0},only:function(e){var t=St(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:St},ah=G.__e;G.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ah(e,t,n,r)};var Pa=G.unmount;function Ra(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=Ta({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ra(r,t,n)})),e}function Oa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Oa(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 or(){this.__u=0,this.t=null,this.__b=null}function Fa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ba(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return p(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Cn(){this.u=null,this.o=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pa&&Pa(e)},(or.prototype=new Qe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fa(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Oa(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},or.prototype.componentWillUnmount=function(){this.t=[]},or.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]=Ra(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(Ae,null,e.fallback);return o&&(o.__u&=-33),[p(Ae,null,t.__a?null:e.children),o]};var La=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 lh(e){return this.getChildContext=function(){return e.context},e.children}function ch(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ot(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ot(p(lh,{context:t.context},e.__v),t.l)}function Va(e,t){var n=p(ch,{__v:e,i:t});return n.containerInfo=t,n}(Cn.prototype=new Qe).__a=function(e){var t=this,n=Fa(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),La(t,e,r)):o()};n?n(s):s()}},Cn.prototype.render=function(e){this.u=null,this.o=new Map;var t=St(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},Cn.prototype.componentDidUpdate=Cn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){La(e,n,t)})};var Ua=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,uh=/^(?: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]/,fh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,dh=/[A-Z0-9]/g,hh=typeof document<"u",ph=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ha(e,t,n){return t.__k==null&&(t.textContent=""),Ot(e,t),typeof n=="function"&&n(),e?e.__c:null}function ja(e,t,n){return os(e,t),typeof n=="function"&&n(),e?e.__c:null}Qe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Qe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var za=G.event;function mh(){}function gh(){return this.cancelBubble}function wh(){return this.defaultPrevented}G.event=function(e){return za&&(e=za(e)),e.persist=mh,e.isPropagationStopped=gh,e.isDefaultPrevented=wh,e.nativeEvent=e};var hs,_h={enumerable:!1,configurable:!0,get:function(){return this.class}},Ga=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||hh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ph(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":fh.test(s)?s=a:r.indexOf("-")===-1&&uh.test(s)?s=s.replace(dh,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=St(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=St(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",_h)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ua,Ga&&Ga(e)};var Wa=G.__r;G.__r=function(e){Wa&&Wa(e),hs=e.__c};var qa=G.diffed;G.diffed=function(e){qa&&qa(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),hs=null};var Za={ReactCurrentDispatcher:{current:{readContext:function(e){return hs.__n[e.__c].props.value},useCallback:Yt,useContext:Xt,useDebugValue:ls,useDeferredValue:gs,useEffect:xe,useId:cs,useImperativeHandle:as,useInsertionEffect:_s,useLayoutEffect:Ft,useMemo:Jt,useReducer:Gr,useRef:Ne,useState:Ke,useSyncExternalStore:ys,useTransition:ws}}},yh="17.0.2";function Ka(e){return p.bind(null,e)}function kn(e){return!!e&&e.$$typeof===Ua}function Ja(e){return kn(e)&&e.type===Ae}function Ya(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ps(e){return kn(e)?ss.apply(null,arguments):e}function Xa(e){return!!e.__k&&(Ot(null,e),!0)}function Qa(e){return e&&(e.base||e.nodeType===1&&e)||null}var el=function(e,t){return e(t)},tl=function(e,t){return e(t)},nl=Ae;function ms(e){e()}function gs(e){return e}function ws(){return[!1,ms]}var _s=Ft,rl=kn;function ys(e,t){var n=t(),r=Ke({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Ft(function(){o.__=n,o.v=t,bs(o)&&s({h:o})},[e,n,t]),xe(function(){return bs(o)&&s({h:o}),e(function(){bs(o)&&s({h:o})})},[e]),n}function bs(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var je={useState:Ke,useId:cs,useReducer:Gr,useEffect:xe,useLayoutEffect:Ft,useInsertionEffect:_s,useTransition:ws,useDeferredValue:gs,useSyncExternalStore:ys,startTransition:ms,useRef:Ne,useImperativeHandle:as,useMemo:Jt,useCallback:Yt,useContext:Xt,useDebugValue:ls,version:"17.0.2",Children:Da,render:Ha,hydrate:ja,unmountComponentAtNode:Xa,createPortal:Va,createElement:p,createContext:rr,createFactory:Ka,cloneElement:ps,createRef:da,Fragment:Ae,isValidElement:kn,isElement:rl,isFragment:Ja,isMemo:Ya,findDOMNode:Qa,Component:Qe,PureComponent:qr,memo:$a,forwardRef:Zr,flushSync:tl,unstable_batchedUpdates:el,StrictMode:nl,Suspense:or,SuspenseList:Cn,lazy:Ba,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za};const vs=Object.freeze(Object.defineProperty({__proto__:null,Children:Da,Component:Qe,Fragment:Ae,PureComponent:qr,StrictMode:nl,Suspense:or,SuspenseList:Cn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za,cloneElement:ps,createContext:rr,createElement:p,createFactory:Ka,createPortal:Va,createRef:da,default:je,findDOMNode:Qa,flushSync:tl,forwardRef:Zr,hydrate:ja,isElement:rl,isFragment:Ja,isMemo:Ya,isValidElement:kn,lazy:Ba,memo:$a,render:Ha,startTransition:ms,unmountComponentAtNode:Xa,unstable_batchedUpdates:el,useCallback:Yt,useContext:Xt,useDebugValue:ls,useDeferredValue:gs,useEffect:xe,useErrorBoundary:rh,useId:cs,useImperativeHandle:as,useInsertionEffect:_s,useLayoutEffect:Ft,useMemo:Jt,useReducer:Gr,useRef:Ne,useState:Ke,useSyncExternalStore:ys,useTransition:ws,version:yh},Symbol.toStringTag,{value:"Module"})),bh=e=>{xe(()=>{const t=e();return()=>{t.Dispose()}})},vh=(e,t)=>{xe(()=>{const n=e();return()=>{n.Dispose()}},t)},xh=e=>{Ft(()=>{const t=e();return()=>{t.Dispose()}})},A=je,Ch=bh,ol=vh,kh=xh;function Sh(e,t,n,r){const o=A.memo(e,ee(Se(Xe(Dt,n),Q())));return yn(s=>{e.displayName=s},Fo(t)),s=>{const i=Ah(r,s);return A.createElement(o,i)}}function Ah(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function sr(e){return{Dispose(){e()}}}function Eh(e,t){ol(e,t)}function Ih(e){kh(t=>(e(),sr(()=>{})))}function xs(e){const t=A.useRef(!1);$h(()=>{t.current||(t.current=!0,e())},[])}function sl(e){const t=A.useRef(void 0),n=A.useRef(!1),r=A.useRef(!1);n.current&&(r.current=!0),Eh(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ke(e()),o=r.current?t.current:void 0),{Dispose(){yn(s=>{Z(s)},Fo(o))}}},[])}function Th(e){Ch(t=>(e(),sr(()=>{})))}function $h(e,t){ol(n=>(e(),sr(()=>{})),t)}function Nh(e,t){const n=Se(t,[]);return A.useCallback(e,n)}function il(e){return A.useRef(e)}function Mh(e,t,n){return Sh(e,void 0,Oo(n),Oo(t))}function Dh(e,t){const n=A.createContext(Se(t,void 0));return yn(r=>{n.displayName=r},Fo(e)),n}function Ph(e,t,n){return A.createElement(e.Provider,{value:t},...n)}function Sn(e){return A.useContext(e)}function al(e){const t=il(e),n=Nh(r=>t.current(r),[]);return Ih(()=>{t.current=e}),n}function ir(e){return A.useState(e)}class ll{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Kr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Kr.prototype)}}class Cs{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Cs.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Et(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Kr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(kr(n))}});else try{e(t)}catch(n){t.onError(kr(n))}}}function Rh(e,t){return Et(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(kr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Oh(e){return Et(t=>t.onSuccess(e))}class Fh{Bind(t,n){return Rh(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Et(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Oh(t)}ReturnFrom(t){return t}TryFinally(t,n){return Et(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Et(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(kr(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Et(t=>t.onSuccess(void 0))}}const L=new Fh;function ks(e){}function Bh(e){return new ll(!1)}function Lh(e){e.cancel()}function Vh(e){return e!=null&&e.isCancelled}const Uh=new ll;function Hh(e){return Et(t=>{e({onSuccess:n=>t.onSuccess(wd(n)),onError:n=>t.onSuccess(_d(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function jh(e){return Et(t=>e([t.onSuccess,t.onError,t.onCancel]))}function zh(e){return Et(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Kr)})})}function Gh(e,t){return Wh(e,t)}function An(e,t){return Gh(e,t)}function Wh(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Cs;e({onSuccess:t||ks,onError:ks,onCancel:ks,cancelToken:o||Uh,trampoline:s})}class cl{constructor(t,n){this.k=t,this.v=n}}function Jr(e,t){return new cl(e,t)}function Me(e){return e.k}function ze(e){return e.v}class ge extends cl{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Yr(e,t,n,r,o){return new ge(e,t,n,r,o)}function De(e){return e.left}function Pe(e){return e.right}function Qt(e){return e.h}function Pw(){}function ul(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ge){const s=o;e=ul(n+1,De(s)),t=Pe(s);continue e}else return n+1|0}else return n|0}}function qh(e){return ul(0,e)}function et(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=S(a);i=u instanceof ge?(o=u,Qt(o)):1}else i=0;let l;const c=r;if(c!=null){const u=S(c);l=u instanceof ge?(s=u,Qt(s)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Jr(t,n):Yr(t,n,e,r,f+1)}function fl(e,t,n,r){let o,s,i,a,l,c,f,u,h;const d=e;if(d!=null){const w=S(d);h=w instanceof ge?(o=w,Qt(o)):1}else h=0;let g;const y=r;if(y!=null){const w=S(y);g=w instanceof ge?(s=w,Qt(s)):1}else g=0;if(g>h+2){const w=S(r);if(w instanceof ge){const x=w;if(i=De(x),(i!=null?(a=S(i),a instanceof ge?(l=a,Qt(l)):1):0)>h+1){const v=S(De(x));if(v instanceof ge){const k=v;return et(et(e,t,n,De(k)),Me(k),ze(k),et(Pe(k),Me(x),ze(x),Pe(x)))}else throw new Error("internal error: Map.rebalance")}else return et(et(e,t,n,De(x)),Me(x),ze(x),Pe(x))}else throw new Error("internal error: Map.rebalance")}else if(h>g+2){const w=S(e);if(w instanceof ge){const x=w;if(c=Pe(x),(c!=null?(f=S(c),f instanceof ge?(u=f,Qt(u)):1):0)>g+1){const v=S(Pe(x));if(v instanceof ge){const k=v;return et(et(De(x),Me(x),ze(x),De(k)),Me(k),ze(k),et(Pe(k),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(De(x),Me(x),ze(x),et(Pe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(e,t,n,r)}function En(e,t,n,r){if(r!=null){const o=S(r),s=e.Compare(t,Me(o))|0;if(o instanceof ge){const i=o;return s<0?fl(En(e,t,n,De(i)),Me(i),ze(i),Pe(i)):s===0?Yr(t,n,De(i),Pe(i),Qt(i)):fl(De(i),Me(i),ze(i),En(e,t,n,Pe(i)))}else return s<0?Yr(t,n,void 0,r,2):s===0?Jr(t,n):Yr(t,n,r,void 0,2)}else return Jr(t,n)}function dl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,Me(i))|0;if(a===0)return ke(ze(i));if(i instanceof ge){const l=i;e=r,t=o,n=a<0?De(l):Pe(l);continue e}else return}else return}}function Zh(e,t,n){const r=dl(e,t,n);if(r==null)throw new Error;return S(r)}function Kh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,Me(i))|0;if(i instanceof ge){const l=i;if(a<0){e=r,t=o,n=De(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Pe(l);continue e}}else return a===0}else return!1}}function hl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ge){const s=o;hl(n,De(s)),n(Me(s),ze(s)),e=n,t=Pe(s);continue e}else n(Me(o),ze(o))}break}}function Jh(e,t){hl(e,t)}function Yh(e,t,n){let r=n;Jh((o,s)=>{wt(t,r,[o,s]),r=r+1|0},e)}function Xh(e,t){return yt((n,r)=>En(e,r[0],r[1],n),void 0,t)}function Qh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=En(r,i[0],i[1],o),n=s;continue e}else return o}}function ep(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ce(r,t);n=En(e,o[0],o[1],n)}return n}function pl(e,t){if(st(t))return ep(e,t);if(t instanceof Te)return Xh(e,t);{const n=ie(t);try{return Qh(e,void 0,n)}finally{Z(n)}}}class tp extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function ml(e){e:for(;;){const t=e;if(F(t))return ue();{const n=_(t),r=M(t);if(r!=null){const o=S(r);if(o instanceof ge){const s=o;e=ae([De(s),Jr(Me(s),ze(s)),Pe(s)],n);continue e}else return t}else{e=n;continue e}}}}function gl(e){return new tp(ml(j(e)),!1)}function np(){throw new Error("enumeration not started")}function rp(){throw new Error("enumeration already finished")}function wl(e){if(e.started){const t=e.stack;if(F(t))return rp();if(M(t)!=null){const n=S(M(t));if(n instanceof ge)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Me(n),ze(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return np()}function op(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(S(M(t))instanceof ge)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ml(_(t)),!F(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function _l(e){let t=gl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wl(t)},"System.Collections.IEnumerator.get_Current"(){return wl(t)},"System.Collections.IEnumerator.MoveNext"(){return op(t)},"System.Collections.IEnumerator.Reset"(){t=gl(e)},Dispose(){}}}class Xr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return lp(this)|0}Equals(t){const n=this;if(t instanceof Xr){const r=t,o=ie(n);try{const s=ie(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return he(l[0],c[0])&&he(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{Z(s)}}finally{Z(o)}}else return!1}toString(){return"map ["+W("; ",de(n=>Ci("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return _l(this.tree)}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return _l(this.tree)}CompareTo(t){const n=this;if(t instanceof Xr)return ad((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:qe(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return bl(n,t[0])&&he(yl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yh(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ss(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ss(this)|0}get size(){return Ss(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return de(n=>[n[0],n[1]],this)}get(t){return yl(this,t)}has(t){return bl(this,t)}keys(){return de(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;yn(o=>{t(o[1],o[0],r)},r)}}function Qr(e,t){return new Xr(e,t)}function sp(e){return Qr(e,void 0)}function ip(e,t,n){return Qr(e.comparer,En(e.comparer,t,n,e.tree))}function yl(e,t){return Zh(e.comparer,t,e.tree)}function Ss(e){return qh(e.tree)}function bl(e,t){return Kh(e.comparer,t,e.tree)}function ap(e,t){return dl(e.comparer,t,e.tree)}function lp(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,dt(o[0]))|0,n=t(n,dt(o[1]))|0}}finally{Z(r)}return n|0}function cp(e,t,n){return ip(n,e,t)}function up(e,t){return ap(t,e)}function fp(e,t){return Qr(t,pl(t,e))}function dp(e,t){return Qr(t,pl(t,e))}function vl(e){return sp(e)}class Y extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function xl(e,t){const n=il(Bh());return sl(()=>sr(()=>{Lh(n.current)})),al(r=>{Vh(n.current)||An(L.Delay(()=>L.TryWith(L.Delay(()=>(t(new Y(1,[])),L.Bind(e(r),o=>(t(new Y(2,[o])),L.Zero())))),o=>(t(new Y(3,[o])),L.Zero()))),n.current)})}class hp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function pp(e,t){t.Subscribe(new hp(e))}class mp{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 wp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let gp=class extends mp{};function wp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class _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 gp}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 yp(e,t){console.error(ke(e),t)}function bp(e,t){let n,r=new _p(e);r.AutoReset=!1,n=r,pp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Cl(e,t,n){Fr(r=>{try{r(t)}catch(o){e(o)}},n)}function Fe(){return ue()}function Ee(e){return j(e)}function vp(e,t,n,r){return j(o=>{e(L.Delay(()=>L.Bind(Hh(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),L.Zero()})))})}function xp(e){bp(1,t=>{An(e)})}function In(e,t){if(t.indexOf(e)===0)return t}function kl(e,t){if(ff(t,e))return t}function Cp(e){return e===1?t=>{let n,r,o,s,i,a;return n=In("/",t),n!=null?(r=n,"#"+r):(o=In("#/",t),o!=null?(s=o,s):(i=In("#",t),i!=null?(a=i,"#/"+Ai(a,1,a.length-1)):"#/"+t))}:t=>{let n,r;return n=In("/",t),n!=null?(r=n,r):"/"+t}}function N(e,t){return Cp(t)(W("/",Yn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function Be(e,t,n){history.pushState(void 0,"",N(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Sl(e,t){return Af(n=>{if(Si(n))return ue();{const r=pf(n,"#");if(r==="?")return ue();if(In("?",r)!=null)return j(r);{const o=r.split("?");if(!Lo((s,i)=>s===i,o)&&o.length===1){const s=ce(0,o);return j(decodeURIComponent(s))}else if(!Lo((s,i)=>s===i,o)&&o.length===2)if(ce(1,o)===""){const s=ce(0,o);return j(decodeURIComponent(s))}else{const s=ce(0,o),i=ce(1,o);return b([decodeURIComponent(s),"?"+i])}else return ue()}}},b(Ro(In("#",e)!=null?Ai(e,1,e.length-1):t===1&&(kl("#",e)!=null||kl("#/",e)!=null)?"":e,["/"],void 0,0)))}function kp(e,t,n){return t(Sl(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const Sp=Mh(e=>{const t=al(r=>{const o=Se(e.onUrlChanged,s=>{});kp(Se(e.hashMode,1),o)});sl(()=>(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),sr(()=>{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)}))),xs(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Q()});class It extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class en extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Al(e){return e.tag===0?new en(1,[]):new en(0,[])}class ar extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const Ap=new ar(new It(1,[]),new en(0,[]));function Ep(e){return[e.fields[0],e.fields[1]]}function El(e){return e.fields[0]}function Il(e){return e.fields[1]}function Tl(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new ar(new It(1,[]),Al(r)):new ar(new It(1,[]),new en(0,[])):n.tag===0?new ar(new It(0,[]),Al(r)):new ar(new It(0,[]),new en(0,[]))}class $l extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const Ip=new $l("");function Tp(e){return new $l(e.trim())}function Nl(e){return e.fields[0]}class $p extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function Np(e){return new $p(e)}function Ml(e){return e.fields[0]}class As extends K{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class Mp extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function Dp(e){return[e.fields[0],e.fields[1]]}function Pp(e,t){return new Mp(e,t)}function Rp(e){const t=Dp(e);return[t[0],t[1]]}function Op(){return new pd([],{Equals:he,GetHashCode:mu})}function Fp(e,t){let n,r=Q();if(n=[zi(e,t,new Re(()=>r,o=>{r=o})),r],n[0])return n[1]}function Dl(e,t,n){return e.set(t,n),e}class Bp extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function Lp(e){const t=Nd(e.Name);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=Md(e.Website);if(n.tag===1)return new m(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=Bd(o);r=s.tag===1?new m(1,[s.fields[0]]):new m(0,[s.fields[0]])}else r=new m(0,[void 0]);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new Bp(new Xi(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Ld(e.Notes))])}}}function Pl(e,t){return Tf(n=>at(n.StreamId)===Fi(t),e)}class C extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","NotFound"]}}function Rl(e){let t,n,r,o,s,i,a,l,c,f,u,h,d,g,y,w,x,v,k,O,U;if(F(e))t=14;else if(M(e)==="account-registry")if(F(_(e)))t=14;else if(M(_(e))==="partners")if(F(_(_(e))))t=0;else if(F(_(_(_(e)))))t=1,n=M(_(_(e)));else switch(M(_(_(_(e))))){case"accounts":{if(F(_(_(_(_(e))))))t=2,r=M(_(_(e)));else if(F(_(_(_(_(_(e)))))))t=7,l=M(_(_(_(_(e))))),c=M(_(_(e)));else switch(M(_(_(_(_(_(e))))))){case"directory":{F(_(_(_(_(_(_(e)))))))?(t=8,f=M(_(_(_(_(e))))),u=M(_(_(e)))):t=14;break}case"imports":{F(_(_(_(_(_(_(e)))))))?(t=9,h=M(_(_(_(_(e))))),d=M(_(_(e)))):t=14;break}case"super-configuration":{F(_(_(_(_(_(_(e)))))))?(t=10,g=M(_(_(_(_(e))))),y=M(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{F(_(_(_(_(_(_(e)))))))?(t=11,w=M(_(_(_(_(e))))),x=M(_(_(e)))):t=14;break}case"bank-details-configuration":{F(_(_(_(_(_(_(e)))))))?(t=12,v=M(_(_(_(_(e))))),k=M(_(_(e)))):t=14;break}case"salary-packaging-configuration":{F(_(_(_(_(_(_(e)))))))?(t=13,O=M(_(_(_(_(e))))),U=M(_(_(e)))):t=14;break}default:t=14}break}case"super-configuration":{F(_(_(_(_(e)))))?(t=3,o=M(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{F(_(_(_(_(e)))))?(t=4,s=M(_(_(e)))):t=14;break}case"directory":{F(_(_(_(_(e)))))?(t=5,i=M(_(_(e)))):t=14;break}case"bank-details-configuration":{F(_(_(_(_(e)))))?(t=6,a=M(_(_(e)))):t=14;break}default:t=14}else t=14;else t=14;switch(t){case 0:return new C(0,[]);case 1:return new C(1,[pe(n)]);case 2:return new C(3,[pe(r)]);case 3:return new C(4,[pe(o)]);case 4:return new C(5,[pe(s)]);case 5:return new C(2,[pe(i)]);case 6:return new C(6,[pe(a)]);case 7:return new C(7,[pe(c),xt(l)]);case 8:return new C(8,[pe(u),xt(f)]);case 9:return new C(9,[pe(d),xt(h)]);case 10:return new C(10,[pe(y),xt(g)]);case 11:return new C(11,[pe(x),xt(w)]);case 12:return new C(12,[pe(k),xt(v)]);case 13:return new C(13,[pe(U),xt(O)]);default:return new C(14,[])}}function E(e){switch(e.tag){case 1:return b(["account-registry","partners",te(e.fields[0])]);case 3:return b(["account-registry","partners",te(e.fields[0]),"accounts"]);case 4:return b(["account-registry","partners",te(e.fields[0]),"super-configuration"]);case 5:return b(["account-registry","partners",te(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return b(["account-registry","partners",te(e.fields[0]),"bank-details-configuration"]);case 2:return b(["account-registry","partners",te(e.fields[0]),"directory"]);case 7:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1])]);case 8:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"directory"]);case 9:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"imports"]);case 10:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"super-configuration"]);case 11:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"benefits-onboarding-configuration"]);case 12:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"bank-details-configuration"]);case 13:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"salary-packaging-configuration"]);default:return b(["account-registry","partners"])}}function Ol(e){switch(e.tag){case 1:{const t=["account-registry","partners",te(e.fields[0])];return Ee(n=>{Be(b(t),1,1)})}case 3:{const t=["account-registry","partners",te(e.fields[0]),"accounts"];return Ee(n=>{Be(b(t),1,1)})}case 4:{const t=["account-registry","partners",te(e.fields[0]),"super-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 5:{const t=["account-registry","partners",te(e.fields[0]),"benefits-onboarding-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 6:{const t=["account-registry","partners",te(e.fields[0]),"bank-details-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 2:{const t=["account-registry","partners",te(e.fields[0]),"directory"];return Ee(n=>{Be(b(t),1,1)})}case 7:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1])];return Ee(n=>{Be(b(t),1,1)})}case 8:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"directory"];return Ee(n=>{Be(b(t),1,1)})}case 9:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"imports"];return Ee(n=>{Be(b(t),1,1)})}case 10:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"super-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 11:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"benefits-onboarding-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 12:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"bank-details-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 13:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"salary-packaging-configuration"];return Ee(n=>{Be(b(t),1,1)})}default:return Fe()}}function Vp(e,t){switch(t.tag){case 1:return new Y(1,[]);case 2:return t.fields[0].tag===1?new Y(2,[new m(1,[t.fields[0].fields[0]])]):new Y(2,[new m(0,[e(t.fields[0].fields[0])])]);case 3:return new Y(3,[t.fields[0]]);default:return new Y(0,[])}}class Fl extends K{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function Up(e){return new Fl(Pi("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:un}),Pi("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:un}))}const Hp=new Fl(!1,!1);class R extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Bl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function jp(e,t){switch(e.tag){case 2:return af(Bl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Bl(t)}}function Ll(e,t){zp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function zp(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 Gp(){return Ll(-621355968e5,0)}function Wp(e){const[t,n]=fi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ll(t.getTime(),r)}function qp(e,t){try{return t.contents=Wp(e),!0}catch{return!1}}function Vl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Zp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Zp(e){return Number(BigInt(e)/10000n)}function Kp(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 Vl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Vl(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Jp(e,t){try{return t.contents=Kp(e),!0}catch{return!1}}class Ul{constructor(t){this.k=t}}function Ge(e){return new Ul(e)}function V(e){return e.k}class q extends Ul{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function We(e,t,n,r){return new q(e,t,n,r)}function ne(e){return e.left}function X(e){return e.right}function $n(e){return e.h}function Rw(){}function Hl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=S(n);if(o instanceof q){const s=o;e=ne(s),t=Hl(X(s),r+1);continue e}else return r+1|0}else return r|0}}function Yp(e){return Hl(e,0)}function tt(e,t,n){let r,o,s;const i=e;if(i!=null){const f=S(i);s=f instanceof q?(r=f,$n(r)):1}else s=0;let a;const l=n;if(l!=null){const f=S(l);a=f instanceof q?(o=f,$n(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?Ge(t):We(t,e,n,c+1)}function jl(e,t,n){let r,o,s,i,a,l,c,f,u;const h=e;if(h!=null){const y=S(h);u=y instanceof q?(r=y,$n(r)):1}else u=0;let d;const g=n;if(g!=null){const y=S(g);d=y instanceof q?(o=y,$n(o)):1}else d=0;if(d>u+2){const y=S(n);if(y instanceof q){const w=y;if(s=ne(w),(s!=null?(i=S(s),i instanceof q?(a=i,$n(a)):1):0)>u+1){const x=S(ne(w));if(x instanceof q){const v=x;return tt(tt(e,t,ne(v)),V(v),tt(X(v),V(w),X(w)))}else throw new Error("internal error: Set.rebalance")}else return tt(tt(e,t,ne(w)),V(w),X(w))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const y=S(e);if(y instanceof q){const w=y;if(l=X(w),(l!=null?(c=S(l),c instanceof q?(f=c,$n(f)):1):0)>d+1){const x=S(X(w));if(x instanceof q){const v=x;return tt(tt(ne(w),V(w),ne(v)),V(v),tt(X(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(ne(w),V(w),tt(X(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(e,t,n)}function Nn(e,t,n){if(n!=null){const r=S(n),o=e.Compare(t,V(r))|0;if(r instanceof q){const s=r;return o<0?jl(Nn(e,t,ne(s)),V(s),X(s)):o===0?n:jl(ne(s),V(s),Nn(e,t,X(s)))}else{const s=e.Compare(t,V(r))|0;return s<0?We(t,void 0,n,2):s===0?n:We(t,n,void 0,2)}}else return Ge(t)}function zl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,V(i))|0;if(i instanceof q){const l=i;if(a<0){e=r,t=o,n=ne(l);continue e}else{if(a===0)return!0;e=r,t=o,n=X(l);continue e}}else return a===0}else return!1}}function Gl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof q){const s=o;Gl(n,ne(s)),n(V(s)),e=n,t=X(s);continue e}else n(V(o))}break}}class Xp extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function Wl(e){e:for(;;){const t=e;if(F(t))return ue();{const n=M(t),r=_(t);if(n!=null){const o=S(n);if(o instanceof q){const s=o;e=ae([ne(s),Ge(V(s)),X(s)],r);continue e}else return t}else{e=r;continue e}}}}function ql(e){return new Xp(Wl(j(e)),!1)}function Qp(){throw new Error("Enumeration not started")}function e0(){throw new Error("Enumeration already started")}function Zl(e){if(e.started){const t=e.stack;if(F(t))return e0();if(M(t)!=null){const n=S(M(t));return V(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Qp()}function t0(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(S(M(t))instanceof q)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Wl(_(t)),!F(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function Kl(e){let t=ql(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zl(t)},"System.Collections.IEnumerator.get_Current"(){return Zl(t)},"System.Collections.IEnumerator.MoveNext"(){return t0(t)},"System.Collections.IEnumerator.Reset"(){t=ql(e)},Dispose(){}}}function n0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(o))return F(s)?0:-1;if(F(s))return 1;if(M(s)!=null)if(M(o)!=null){const i=S(M(o)),a=S(M(s));if(i instanceof q){const l=i;if(ne(l)==null)if(a instanceof q){const c=a;if(ne(c)==null){const f=r.Compare(V(l),V(c))|0;if(f!==0)return f|0;e=r,t=He(X(l),_(o)),n=He(X(c),_(s));continue e}else{let f,u,h,d,g;switch(F(o)?F(s)?f=2:M(s)!=null?(f=1,d=_(s),g=S(M(s))):f=2:M(o)!=null?(f=0,u=_(o),h=S(M(o))):F(s)?f=2:M(s)!=null?(f=1,d=_(s),g=S(M(s))):f=2,f){case 0:if(h instanceof q){const y=h;e=r,t=ae([ne(y),We(V(y),void 0,X(y),0)],u),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(h))],u),n=s;continue e}case 1:if(g instanceof q){const y=g;e=r,t=o,n=ae([ne(y),We(V(y),void 0,X(y),0)],d);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(g))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(V(l),V(a))|0;if(c!==0)return c|0;e=r,t=He(X(l),_(o)),n=He(void 0,_(s));continue e}else{let c,f,u,h,d;switch(F(o)?F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2:M(o)!=null?(c=0,f=_(o),u=S(M(o))):F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2,c){case 0:if(u instanceof q){const g=u;e=r,t=ae([ne(g),We(V(g),void 0,X(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(u))],f),n=s;continue e}case 1:if(d instanceof q){const g=d;e=r,t=o,n=ae([ne(g),We(V(g),void 0,X(g),0)],h);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof q){const l=a;if(ne(l)==null){const c=r.Compare(V(i),V(l))|0;if(c!==0)return c|0;e=r,t=He(void 0,_(o)),n=He(X(l),_(s));continue e}else{let c,f,u,h,d;switch(F(o)?F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2:M(o)!=null?(c=0,f=_(o),u=S(M(o))):F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2,c){case 0:if(u instanceof q){const g=u;e=r,t=ae([ne(g),We(V(g),void 0,X(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(u))],f),n=s;continue e}case 1:if(d instanceof q){const g=d;e=r,t=o,n=ae([ne(g),We(V(g),void 0,X(g),0)],h);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(V(i),V(a))|0;if(l!==0)return l|0;e=r,t=_(o),n=_(s);continue e}}else{S(M(s));let i,a,l,c,f;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2:M(o)!=null?(i=0,a=_(o),l=S(M(o))):F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2,i){case 0:if(l instanceof q){const u=l;e=r,t=ae([ne(u),We(V(u),void 0,X(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(l))],a),n=s;continue e}case 1:if(f instanceof q){const u=f;e=r,t=o,n=ae([ne(u),We(V(u),void 0,X(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(M(o)!=null){S(M(o));let i,a,l,c,f;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2:M(o)!=null?(i=0,a=_(o),l=S(M(o))):F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2,i){case 0:if(l instanceof q){const u=l;e=r,t=ae([ne(u),We(V(u),void 0,X(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(l))],a),n=s;continue e}case 1:if(f instanceof q){const u=f;e=r,t=o,n=ae([ne(u),We(V(u),void 0,X(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=_(o),n=_(s);continue e}}}function Jl(e,t,n){return t==null?n==null?0:-1:n==null?1:n0(e,j(t),j(n))|0}function r0(e,t,n){let r=n;Gl(o=>{wt(t,r,o),r=r+1|0},e)}function o0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Nn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function s0(e,t){return Rr((n,r)=>Nn(e,r,n),void 0,t)}function i0(e,t){return yt((n,r)=>Nn(e,r,n),void 0,t)}function Yl(e,t){if(st(t))return s0(e,t);if(t instanceof Te)return i0(e,t);{const n=ie(t);try{return o0(e,void 0,n)}finally{Z(n)}}}class Es{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return c0(this)|0}Equals(t){let n;const r=this;return t instanceof Es&&(n=t,Jl(Mn(r),nt(r),nt(n))===0)}toString(){return"set ["+W("; ",de(n=>Ie(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Jl(Mn(n),nt(n),nt(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 zl(Mn(n),t,nt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){r0(nt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Is(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Is(this)|0}GetEnumerator(){return Kl(nt(this))}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Kl(nt(this))}get size(){return Is(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 Xl(this,t)}keys(){return de(n=>n,this)}values(){return de(n=>n,this)}entries(){return de(n=>[n,n],this)}forEach(t,n){const r=this;yn(o=>{t(o,o,r)},r)}}function eo(e,t){return new Es(e,t)}function Mn(e){return e.comparer}function nt(e){return e.tree}function a0(e){return eo(e,void 0)}function l0(e,t){return eo(Mn(e),Nn(Mn(e),t,nt(e)))}function Is(e){return Yp(nt(e))}function Xl(e,t){return zl(Mn(e),t,nt(e))}function c0(e){let t=0;const n=ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+dt(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function Ts(e,t){return Xl(t,e)}function u0(e,t){return l0(t,e)}function f0(e){return a0(e)}function d0(e,t){return eo(t,Yl(t,e))}function h0(e,t){return eo(t,Yl(t,e))}function lr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ (function(){"use strict";function Qt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Cf(e){return e!=null&&typeof e.GetEnumerator=="function"}function Sf(e){return e!=null&&typeof e.CompareTo=="function"}function kf(e){return e!=null&&typeof e.Equals=="function"}function Oa(e){return e!=null&&typeof e.GetHashCode=="function"}function Fs(e){return e!=null&&typeof e.Dispose=="function"}function Ce(e){Fs(e)&&e.Dispose()}function Ne(){return null}function Ao(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 Af{constructor(t){this.iter=t,this.current=Ne()}"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 Pe(e){return Cf(e)?e.GetEnumerator():new Af(e[Symbol.iterator]())}function Kr(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}}}}function De(e,t){return e.toString(10).padStart(t,"0")}function Da(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Ef(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Gn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class un{static id(t){return un.idMap.has(t)||un.idMap.set(t,++un.count),un.idMap.get(t)}}un.idMap=new WeakMap,un.count=0;function pr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Bt(e){return e*2654435761|0}function Ra(e){return pr(e.toString(32))}function Zr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function If(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Bt(e);case"bigint":return Ra(e);case"string":return pr(e);default:return Bt(un.id(e))}}function Tf(e){return Oa(e)?e.GetHashCode():If(e)}function Nf(e){return e.getTime()}function Mf(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=dn(e[r]);return Zr(n)}function dn(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Bt(e);case"bigint":return Ra(e);case"string":return pr(e);default:{if(Oa(e))return e.GetHashCode();if(Qt(e))return Mf(e);if(e instanceof Date)return Nf(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>dn(r));return Zr(n)}else return Bt(un.id(e))}}}function Of(e){return Tf(e)}function Vs(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 Pa(e,t){return Vs(e,t,Je)}function Df(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Je(e[n[o]],t[r[o]]))return!1;return!0}function Je(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:kf(e)?e.Equals(t):Qt(e)?Qt(t)&&Pa(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Fa(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Df(e,t)}function Fa(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Da(e),r=t.getTime()+Da(t)),n===r?0:n<r?-1:1}function Eo(e,t){return e===t?0:e<t?-1:1}function Rf(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Va(e,t){return Rf(e,t,Ft)}function Pf(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=Ft(e[i],t[i]),s!==0)return s}return 0}function Ft(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Sf(e)?e.CompareTo(t):Qt(e)?Qt(t)?Va(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Fa(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Pf(e,t):-1}function z(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Ff(e){Qt(e)?e.splice(0):e.clear()}const Io=new WeakMap;function Se(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Io.set(t,e),t}function On(e){return Io.get(e)??(t=>n=>e(t,n))}function Ls(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Io.set(t,e),t}function Bs(e){return Io.get(e)??(t=>n=>r=>e(t,n,r))}function Vf(e){let t=0,n="[";for(const r of e){if(t===0)n+=wt(r);else if(t===100){n+="; ...";break}else n+="; "+wt(r);t++}return n+"]"}function wt(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 Vf(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+wt(s,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Lf(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=wt(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>wt(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class q{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Lf(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>dn(n));return t.splice(0,0,Bt(this.tag)),Zr(t)}Equals(t){return this===t?!0:Ao(this,t)&&this.tag===t.tag?Pa(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ao(this,t)?this.tag===t.tag?Va(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Bf(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Uf(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+wt(n)).join(`
3
+ `)+" }"}function zf(e){const t=Object.values(e).map(n=>dn(n));return Zr(t)}function Hf(e,t){if(e===t)return!0;if(Ao(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Je(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function jf(e,t){if(e===t)return 0;if(Ao(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Ft(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class we{toJSON(){return Bf(this)}toString(){return Uf(this)}GetHashCode(){return zf(this)}Equals(t){return Hf(this,t)}CompareTo(t){return jf(this,t)}}class St{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 Gf{constructor(t){this.message=t}}function Wf(e){return e instanceof Gf||e instanceof Error}function qf(e){return e instanceof Promise}function To(e){return Wf(e)||qf(e)?e:new Error(String(e))}const $r=Symbol("numeric");function La(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[$r])}function Kf(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Us(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[$r]().multiply(t)}function No(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[$r]().toFixed(t)}function Mo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[$r]().toPrecision(t)}function Oo(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[$r]().toExponential(t)}function Do(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[$r]().toHex()}class Zf{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ut{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return at(this)}GetHashCode(){return Ba(this)}Equals(t){return zs(this,t)}}function fn(e){return e.generics!=null?e.generics:[]}function Ba(e){const t=pr(e.fullname),n=fn(e).map(Ba);return Zr([t,...n])}function zs(e,t){return e.fullname===""?t.fullname===""&&Vs(Po(e),Po(t),([n,r],[o,s])=>n===o&&zs(r,s)):e.fullname===t.fullname&&Vs(fn(e),fn(t),zs)}function en(e,t,n,r){return new Ut(e,t,n,void 0,r)}function Jf(e,t,n,r){const o=new Ut(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,a)=>new Zf(o,a,s[a],i))});return o}function it(e){return new Ut("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Hs(e){return new Ut("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Ua(e){return new Ut("[]",[e])}const Yf=new Ut("System.Object"),se=new Ut("System.String");function js(e){if(Array.isArray(e))return e[0];if(e instanceof Ut){const t=Ro(e);if(t!=null)return js(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function at(e){const t=Ro(e);return t!=null?at(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>at(n)).join(",")+"]"}function Xf(e){return Ro(e)!=null}function Ro(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Qf(e){return e.generics!=null&&e.generics.length>0}function za(e){return e.enumCases!=null&&e.enumCases.length>0}function eh(e){return e.generics==null?e:new Ut(e.fullname,e.generics.map(()=>Yf))}function th(e){var t;return(t=e.generics)==null?void 0:t[0]}function mr(e){if(za(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function nh(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 gr(e,t){const n=parseInt(t,10);return nh(e,isNaN(n)?t:n)[1]}function rh(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Po(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function oh(e){if(Ha(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function sh(e){return e instanceof Ut?e.cases!=null:e instanceof q}function ih(e){return e instanceof Ut?e.fields!=null:e instanceof we}function Ha(e){return e.fullname.startsWith("System.Tuple")}function ah(e){return e.fields==null?[]:e.fields}function lh(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 ch(e,t){const n=Po(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function uh(e,t){return e}const dh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ph=["January","February","March","April","May","June","July","August","September","October","November","December"];function It(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function ja(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function $h(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Gs(e,t,n){let r=0,o=0,s="";const i=n?Jr(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=It(t,r,"d"),r+=o,o){case 1:s+=Ka(i);break;case 2:s+=De(Ka(i),2);break;case 3:s+=dh[Ya(i)];break;case 4:s+=fh[Ya(i)];break}break;case"f":if(o=It(t,r,"f"),r+=o,o<=3){const g=10**(3-o);s+=De(Math.floor(Lo(i)/g),o)}else o<=7&&(s+=(""+Lo(i)).padEnd(o,"0"));break;case"F":if(o=It(t,r,"F"),r+=o,o<=3){const g=10**(3-o),v=Math.floor(Lo(i)/g);v!=0&&(s+=De(v,o))}else if(o<=7){const g=Lo(i);g!=0&&(s+=De(g,3))}break;case"g":o=It(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=It(t,r,"h"),r+=o,o){case 1:s+=Vo(i)%12;break;case 2:s+=De(Vo(i)%12,2);break}break;case"H":switch(o=It(t,r,"H"),r+=o,o){case 1:s+=Vo(i);break;case 2:s+=De(Vo(i),2);break}break;case"K":switch(o=It(t,r,"K"),r+=o,o){case 1:switch(Ga(i)){case 1:s+="Z";break;case 2:s+=wr(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=It(t,r,"m"),r+=o,o){case 1:s+=Za(i);break;case 2:s+=De(Za(i),2);break}break;case"M":switch(o=It(t,r,"M"),r+=o,o){case 1:s+=Bo(i);break;case 2:s+=De(Bo(i),2);break;case 3:s+=hh[Bo(i)-1];break;case 4:s+=ph[Bo(i)-1];break}break;case"s":switch(o=It(t,r,"s"),r+=o,o){case 1:s+=Ja(i);break;case 2:s+=De(Ja(i),2);break}break;case"t":switch(o=It(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=It(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=De(i.getFullYear()%100,2);break;case 3:s+=De(i.getFullYear(),3);break;case 4:s+=De(i.getFullYear(),4);break;case 5:s+=De(i.getFullYear(),5);break}break;case"z":o=It(t,r,"z"),r+=o;let l="";switch(Ga(i)){case 1:l="+00:00";break;case 2:l=wr(i.getTimezoneOffset()*-6e4);break;case 0:l=wr(Ch(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${d}`;break;case 2:s+=`${c}${De(d,2)}`;break;default:s+=`${c}${De(d,2)}:${De(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,f]=$h(t,r);s+=h,r+=f;break;case"%":const p=ja(t,r);if(p>=0&&p!==37)r+=2,s+=Gs(i,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const _=ja(t,r);if(_>=0)r+=2,s+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function Ga(e){return e.kind||0}function wr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+De(n,2)+":"+De(r,2)}function Fo(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 mh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return De(e.getFullYear(),4)+"-"+De(e.getMonth()+1,2)+"-"+De(e.getDate(),2)+"T"+De(e.getHours(),2)+":"+De(e.getMinutes(),2)+":"+De(e.getSeconds(),2)+"."+De(e.getMilliseconds(),3)+(n?wr(e.getTimezoneOffset()*-6e4):"")}}function gh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+wr(t)}function wh(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," ")+wr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Fo(n,"first");case"T":case"t":return Fo(n,"second");case"O":case"o":return gh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Gs(n,t,!0)}function _h(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?Fo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Fo(e,"second"):e.toLocaleTimeString();case"O":case"o":return mh(e,n);default:throw new Error("Unrecognized Date print format")}else return Gs(e,t,n)}function Wa(e,t,n){return e.offset!=null?wh(e,t):_h(e,t)}function Jr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function yh(){return Jr(-621355968e5,1)}function qa(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function bh(e,t=!1){const[n,r]=qa(e),o=r!=null?t&&r==="Z"?1:2:0;return Jr(n.getTime(),o)}function vh(e,t){try{return t.contents=bh(e),!0}catch{return!1}}function xh(e){return e.kind===1?e:Jr(e.getTime(),1)}function Ch(e){return e.kind===2?e:Jr(e.getTime(),2)}function Ka(e){return e.kind===1?e.getUTCDate():e.getDate()}function Vo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Lo(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Za(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Bo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Ja(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ya(e){return e.kind===1?e.getUTCDay():e.getDay()}function Xa(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 Ws(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Sh(e,t,n=0){return e.lastIndex=n,e.exec(t)}function Qa(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function kh(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let d=c?l-3:l-2;for(let u=0;u<d;u++)a.push(arguments[u]);a.index=arguments[d++],a.input=arguments[d++],c&&(a.groups=arguments[d]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Xa(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),l=Qa(e,a),c=Qa.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Yr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Xr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ah=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function el(e,t){return Kf(e,t)<0}function hn(e){return{input:e,cont:Ih(e)}}function tl(e,t){let n=0,r=0,o="";Xr.lastIndex=0;let s=Xr.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,d]=s;r=Xr.lastIndex,o+=rl(t[n++],a,l,c,d),Xr.lastIndex=r-1,s=Xr.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function qs(e,t){return typeof t=="string"?e(t):t.cont(e)}function nl(e){return qs(t=>console.log(t),e)}function pn(e){return qs(t=>t,e)}function Eh(e){return qs(t=>{throw new Error(t)},e)}function rl(e,t,n,r,o){let s="";if(t=t||"",o=o||"",La(e))switch(o.toLowerCase()!=="x"&&(el(e,0)?(e=Us(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=No(e,r);break;case"g":case"G":e=r!=null?Mo(e,r):Mo(e);break;case"e":case"E":e=r!=null?Oo(e,r):Oo(e);break;case"x":e=Do(e);break;case"X":e=Do(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Wa(e):e=wt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Qr(e,n-s.length,l,a),e=s+e):e=Qr(s+e,n,l,a)}return e}function ol(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,d,u,h,f]=l[0];let p=u;if(o>=0)p=o,o=-1;else if(p==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=rl(c,d,p,h,f),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):ol(e,a,l,i,o)}}function Ih(e){return t=>{Yr.lastIndex=0;const n=[],r=[];let o=0,s=Yr.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Yr.lastIndex,Yr.lastIndex-=1,s=Yr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),ol(t,n,r))}}function sl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Ah,(r,o,s,i,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(La(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=No(c,a);break;case"g":case"G":c=a!=null?Mo(c,a):Mo(c);break;case"e":case"E":c=a!=null?Oo(c,a):Oo(c);break;case"p":case"P":a=a??2,c=No(Us(c,100),a)+" %";break;case"d":case"D":c=a!=null?Ks(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?Ks(Do(c),a,"0"):Do(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let d="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,f)=>{el(c,0)&&(c=Us(c,-1),d="-"),f=f==null?"":f.substring(1),c=No(c,Math.max(f.length,0));let[p,_]=c.split(".");_||(_="");const g=h.replace(/,/g,"").replace(/^#+/,"").length;p=Ks(p,g,"0");const v=f.replace(/#+$/,"").length;if(v>_.length?_=Nh(_,v,"0"):v<_.length&&(_=_.substring(0,v)+_.substring(v).replace(/0+$/,"")),h.indexOf(",")>0){const b=p.length%3,S=Math.floor(p.length/3);let R=b>0?p.substr(0,b)+(S>0?",":""):"";for(let V=0;V<S;V++)R+=p.substr(b+V*3,3)+(V<S-1?",":"");p=R}return _.length>0?p+"."+_:p}),c=d+c}}else c instanceof Date?c=Wa(c,l||i):c=wt(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Qr(String(c),Math.abs(s)," ",s<0)),c})}function Th(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function il(e){return typeof e!="string"||e.length===0}function al(e){return typeof e!="string"||/^\s*$/.test(e)}function he(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Qr(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Ks(e,t,n){return Qr(e,t,n)}function Nh(e,t,n){return Qr(e,t,n,!0)}function Zs(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Ws),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const d=a.exec(e);if(d===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),l=!1}else{const u=s?e.substring(c,d.index).trim():e.substring(c,d.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),l=!1):i.push(u)),c=a.lastIndex}}while(l);return i}function Mh(e,...t){if(t.length===0)return e.trim();const n="["+Ws(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function Oh(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Ws(t.join(""))+"]+$"),"")}function ll(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)}class Wn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return dn(this.value)}Equals(t){return t==null?!1:Je(this.value,t instanceof Wn?t.value:t)}CompareTo(t){return t==null?1:Ft(this.value,t instanceof Wn?t.value:t)}}function O(e){if(e==null)throw new Error("Option has no value");return e instanceof Wn?e.value:e}function Js(e){return e instanceof Wn?e.value:e}function ht(e){return e==null||e instanceof Wn?new Wn(e):e}function Ys(e){return e==null?[]:[O(e)]}function pt(e,t){return e!=null?O(e):t}function Dh(e,t){return e!=null?O(e):t()}function Vt(e,t){return t!=null?ht(e(O(t))):void 0}const cl="Collection was empty.";function Xs(e,t){return typeof e=="function"?new e(t):new Array(t)}function ul(e,t){return e>t?e:t}function Qs(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function _r(e,t,n){const r=t.length|0,o=Xs(n,r);for(let s=0;s<=r-1;s++)zt(o,s,e(Re(s,t)));return o}function Rh(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=Xs(r,t.length);for(let s=0;s<=t.length-1;s++)zt(o,s,e(Re(s,t),Re(s,n)));return o}function Ph(e,t){const n=Xs(t,1);return zt(n,0,e),n}function Fh(e){return e.slice().reverse()}function Vh(e,t){return t.find(e)}function Lh(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(Re(o,t));if(s!=null){const i=O(s);r.push(i)}}return Je(n,Ne())?r:_r(o=>o,r,n)}function Uo(e,t,n){const r=e;return n.reduce(r,t)}function Bh(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function ei(e,t,n){return t==null}function Re(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function zt(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 dl(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function Uh(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,Re(r,e));return n}class _t extends we{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+he("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const d=O(l),u=O(c);if(Je(i.head,a.head)){o=d,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,l=s,c=l.tail;if(c!=null){const d=O(c);if(i>18)return a|0;r=i+1,o=(a<<1)+dn(l.head)+631*i,s=d;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const d=O(l),u=O(c),h=Ft(i.head,a.head)|0;if(h===0){o=d,s=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Hh(this)}[Symbol.iterator](){return Kr(Pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Pe(this)}}class zh{constructor(t){this.xs=t,this.it=this.xs,this.current=Ne()}"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=O(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=Ne()}Dispose(){}}function Hh(e){return new zh(e)}function We(){return new _t(Ne(),void 0)}function eo(e,t){return new _t(e,t)}function $n(e){return e.tail==null}function fl(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=O(i);continue e}else return o|0}})(0,e)|0}function Dn(e){if(e.tail!=null)return e.head;throw new Error(cl+"\\nParameter name: list")}function lt(e){const t=e.tail;if(t!=null)return O(t);throw new Error(cl+"\\nParameter name: list")}function He(){return We()}function Tt(e,t){return eo(e,t)}function ie(e){return eo(e,We())}function Z(e){return $n(e)}function yr(e){return fl(e)}function L(e){return Dn(e)}function y(e){return lt(e)}function qn(e){const t=fl(e)|0,n=Qs(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!$n(a)){zt(n,i,Dn(a)),o=i+1,s=lt(a);continue e}break}})(0,e),n}function mn(e,t,n){let r=t,o=n;for(;!$n(o);)r=e(r,L(o)),o=lt(o);return r}function zo(e){return mn((t,n)=>eo(n,t),We(),e)}function jh(e,t,n){return dl(e,qn(t),n)}function Gh(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if($n(c))return l;o=a+1,s=e(a,l,Dn(c)),i=lt(c);continue e}})(0,t,n)}function Ho(e,t){mn((n,r)=>{e(r)},void 0,t)}function Fe(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=eo(Re(r,e),n);return n}function C(e){return Fe(e,We())}function Wh(e){let t,n;if(Qt(e))return C(e);if(e instanceof _t)return e;{const r=We();let o=r;const s=Pe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new _t(l,void 0),t.tail=n,n)}}finally{Ce(s)}const i=o,a=We();return i.tail=a,lt(r)}}function ct(e,t){return mn((n,r)=>eo(r,n),t,zo(e))}function qh(e,t){let n,r;const o=We();let s=o,i=t;for(;!$n(i);){let c=e(Dn(i));for(;!$n(c);)s=(n=s,r=new _t(Dn(c),void 0),n.tail=r,r),c=lt(c);i=lt(i)}const a=s,l=We();return a.tail=l,lt(o)}function Kh(e,t){const n=We(),r=Gh((s,i,a)=>{const l=new _t(e(s,a),void 0);return i.tail=l,l},n,t),o=We();return r.tail=o,lt(n)}function to(e,t){const n=We(),r=mn((s,i)=>{const a=new _t(e(i),void 0);return s.tail=a,a},n,t),o=We();return r.tail=o,lt(n)}function Zh(e,t){return(r=>{e:for(;;){const o=r;if($n(o))return;{const s=e(Dn(o));if(s==null){r=lt(o);continue e}else return s}}})(t)}function Jh(e,t){return Zh(n=>e(n)?ht(n):void 0,t)}function Yh(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if($n(i))return;if(e(Dn(i)))return s;r=s+1,o=lt(i);continue e}})(0,t)}function Xh(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if($n(i))return;if(s===e)return ht(Dn(i));r=s+1,o=lt(i);continue e}})(0,t)}function hl(e,t){const n=We(),r=mn((s,i)=>{if(e(i)){const a=new _t(i,void 0);return s.tail=a,a}else return s},n,t),o=We();return r.tail=o,lt(n)}function Qh(e,t){const n=We(),r=We(),o=n,s=mn((l,c)=>{let d,u;const h=l[0],f=l[1];return e(c)?[(d=new _t(c,void 0),h.tail=d,d),f]:[h,(u=new _t(c,void 0),f.tail=u,u)]},[o,r],t),i=We();s[0].tail=i;const a=We();return s[1].tail=a,[lt(o),lt(r)]}function pl(e,t){const n=We(),r=mn((s,i)=>{const a=e(i);if(a==null)return s;{const l=new _t(O(a),void 0);return s.tail=l,l}},n,t),o=We();return r.tail=o,lt(n)}function $l(e,t,n){return Yh(r=>n.Equals(e,r),t)!=null}function ep(e,t){const n=qn(t);return n.sort(e),C(n)}function tp(e,t,n){return ep((r,o)=>n.Compare(e(r),e(o)),t)}function np(e,t){return C(_r(C,Bh(e,qn(t))))}function rp(e){return new w(0,[e])}function ml(e){return new w(1,[e])}class w extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gn(e,t){return t.tag===0?rp(e(t.fields[0])):ml(t.fields[0])}function op(e,t){return t.tag===0?e(t.fields[0]):ml(t.fields[0])}function jo(e){return e.tag===0}class sp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function gl(e){return new sp(e)}function ti(e){return e.fields[0]}class ip extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class ap extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class lp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class cp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class up extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let dp=class extends we{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class fp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class hp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function tn(e){return e.fields[0]}function Be(e){return new hp(e)}function wl(e){return tn(e)}class pp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function Ht(e){return e.fields[0]}function nn(e){return new pp(e)}function _l(e){return Ht(e)}class $p extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessName"]}}class mp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BusinessNumber"]}}class gp extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SalesforceParentRecordId"]}}function wp(e){throw new Error(e)}const _p="Enumeration already finished.",yp="Enumeration has not started. Call MoveNext.",yl="The input sequence has an insufficient number of elements.",bp="Reset is not supported on this enumerator.";function vp(){throw new Error(bp)}function ni(){throw new Error(yp)}function ri(){throw new Error(_p)}class xp{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=Pe(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+wt(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ce(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Kr(Pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Cp(e){return new xp(e)}class Sp{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"(){vp()}Dispose(){this.dispose()}}function Go(e,t,n){return new Sp(e,t,n)}function kp(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=O(n);try{Ce(a)}finally{n=void 0}}if(t!=null){const a=O(t);try{Ce(a)}finally{t=void 0}}};return Go(()=>(r?o&&ri():ni(),s!=null?O(s):ri()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,d=n;if(c!=null)if(d!=null){const u=O(d);if(u["System.Collections.IEnumerator.MoveNext"]())s=ht(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Ce(u)}finally{n=void 0}}else{const u=O(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),Pe(a)):(i(),l=!1)}else t=Pe(e)}return O(l)}},()=>{o||i()})}function Ap(e,t){return Go(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ce(t)}finally{}})}function bl(e,t,n){let r=!1,o,s=ht(e());const i=()=>{if(s!=null){const l=O(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Go(()=>(r||ni(),o!=null?O(o):ri()),()=>{if(r||(r=!0),s!=null){const l=O(s);let c;try{c=t(l)}catch(d){throw a(),d}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function Ep(e,t){let n,r=t;return Go(()=>{if(n!=null){const o=O(n)[0];return O(n)[1],o}else return ni()},()=>(n=e(r),n!=null?(O(n)[0],r=O(n)[1],!0):!1),()=>{})}function Ip(e,t){t==null&&wp(e)}function br(e){return Cp(e)}function wn(e){return Ip("source",e),Pe(e)}function D(e){return br(()=>Pe(e()))}function oi(e){return br(()=>kp(e))}function Tp(e,t){return br(()=>Ep(e,t))}function Nt(){return D(()=>new Array(0))}function P(e){return D(()=>Ph(e))}function fb(e){return e}function si(e){return e instanceof _t?qn(e):Array.from(e)}function Ue(e){return Qt(e)?C(e):e instanceof _t?e:Wh(e)}function vl(e,t,n){return br(()=>bl(e,t,n))}function xl(e,t,n){return br(()=>{let r=-1;return bl(e,o=>(r=r+1|0,t(r,o)),n)})}function G(e,t){return oi([e,t])}function Kn(e,t){return vl(()=>wn(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Ce(n)})}function Np(e,t,n){const r=wn(t);try{const o=wn(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{Ce(o)}}finally{Ce(r)}}function vr(e,t,n){const r=wn(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Ce(r)}}function ii(e,t,n){const r=wn(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Ce(r)}}function xr(e,t){ii((n,r)=>{e(r)},void 0,t)}function Mp(e,t){ii((n,r)=>(e(n,r),n+1|0),0,t)}function qe(e,t){return vl(()=>wn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ht(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ce(n)})}function Cl(e,t){return xl(()=>wn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ht(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ce(n)})}function Op(e){return D(()=>Fh(si(e)))}function Dp(e,t){return br(()=>{const n=wn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(yl+"\\nParameter name: source");return Ap(()=>{},n)}catch(r){throw Ce(n),r}})}function Rp(e,t){return xl(()=>wn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ht(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(yl+"\\nParameter name: source")}else return},n=>{Ce(n)})}function Pp(e,t){return D(()=>oi(qe(e,t)))}const Zn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ai(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 Fp(e,t){switch(t){case Zn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Zn.SnakeCase:return ai(e,"_");case Zn.SnakeCaseAllCaps:return ai(e,"_").toUpperCase();case Zn.KebabCase:return ai(e,"-");case Zn.None:default:return e}}function Rn(e,t=Zn.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,l){i=Fp(i,a),n[i]=l}for(let i of e){let a=Zn.None;if(i==null&&o(i),i instanceof q){const l=i.cases()[i.tag];i=i.fields.length===0?l:[l].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const l=i[1];s(i[0],a,l);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function Sl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function no(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Vp{constructor(t,n){const r=new St(Ne());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=Pe(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();li(r.contents,s[0],s[1])}}finally{Ce(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Pe(this)}GetEnumerator(){return Pe(oi(this.hashMap.values()))}[Symbol.iterator](){return Kr(Pe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){li(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){kl(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Wo(this,t[0]);let o;switch(r!=null&&Je(O(r)[1],t[1])?(o=0,O(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Mp((o,s)=>{zt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Al(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Wo(n,t[0]);return r!=null?(Je(O(r)[1],t[1])&&ci(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){li(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Tl(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return El(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Il(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return si(D(()=>qe(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ci(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Wo(this,t);if(o!=null){const s=O(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return si(D(()=>qe(n=>n[1],t)))}get size(){return Al(this)|0}clear(){kl(this)}delete(t){return ci(this,t)}entries(){return qe(n=>[n[0],n[1]],this)}get(t){return El(this,t)}has(t){return Tl(this,t)}keys(){return qe(n=>n[0],this)}set(t,n){const r=this;return Il(r,t,n),r}values(){return qe(n=>n[1],this)}forEach(t,n){const r=this;xr(o=>{t(o[1],o[0],r)},r)}}function ro(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=Ne();return r=[Sl(e.hashMap,n,new St(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Wo(e,t){const n=ro(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return no(e.hashMap,n[1])[n[2]];default:return}}function kl(e){e.hashMap.clear()}function Al(e){let t=0,n=Pe(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{Ce(n)}return t|0}function El(e,t){const n=Wo(e,t);if(n!=null)return O(n)[1];throw new Error("The item was not found in collection")}function Il(e,t,n){const r=ro(e,t);r[0]?r[2]>-1?no(e.hashMap,r[1])[r[2]]=[t,n]:no(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function li(e,t,n){const r=ro(e,t);if(r[0]){if(r[2]>-1)throw new Error(sl("An item with the same key has already been added. Key: {0}",t));no(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Tl(e,t){const n=ro(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ci(e,t){const n=ro(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return no(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Lp(e){return new Nl(0,[e])}function Bp(e){return new Nl(1,[e])}class Nl extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Up(e){return Lp(e)}function zp(e){return Bp(e)}const Hp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ml=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,jp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Gp(e){function t(r){return r.replace(Ml,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Hp.test(n))return Mh(n,"{","}","(",")");if(Ml.test(n))return t(n);if(jp.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 Wp(e,t){try{return t.contents=Gp(e),!0}catch{return!1}}class Ol extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function jt(e){return e.fields[0]}var ui;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ui||(ui={}));function qp(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Dl(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 Kp(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 Zp(e,t){if(t&ui.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 Jp(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Zp(s,t),!Kp(n).test(i))return qp(o,n)}return null}function Yp(e,t,n,r,o){const s=Jp(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Dl(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,d]=Dl(n,r);if(i>=c&&i<=d)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function Cr(e,t,n,r,o){try{return o.contents=Yp(e,t,n,r),!0}catch{return!1}}const Xp="#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=[...Xp].map(s=>(s.codePointAt(0)??0)-35),n=[...Qp].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),o=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let i=r.length,a=0;for(;i-a>1;){const l=Math.floor((i+a)/2),c=r[l];if(s<c)i=l;else if(s===c){i=a=l;break}else c<s&&(a=l)}return o[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 o$=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 a$(e,t){const n=Sh(Xa(e),t);if(n!=null)return y(Ue(D(()=>qe(r=>r||"",n))))}function l$(e){let t;const n=a$(".*?@(.*)",e);switch(n!=null?Z(n)?t=1:Z(y(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function _n(e,t){return il(t)?new w(1,[pn(hn("%s cannot be null or empty"))(e)]):new w(0,[t])}function c$(e){const t=l$(e);if(t!=null){const n=t;return new w(0,[n])}else return new w(1,["Email is not in the correct format"])}function u$(e){return~~e.charCodeAt(0)-48}function d$(e){let t;const n=new w(1,["BusinessNumber is not valid"]),r=new Int32Array([10,1,3,5,7,9,11,13,15,17,19]),o=_r(u$,(t=e.split(""),t.filter(o$)),Int32Array);return o.length===11?(zt(o,0,Re(0,o)-1|0),Uh(Rh((s,i)=>s*i,o,r,Int32Array),{GetZero:()=>0,Add:(s,i)=>s+i})%89===0?new w(0,[e]):n):n}function Rl(e){const t=_n("Name",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[gl(t.fields[0])])}function qo(e){return ti(e)}function f$(e){const t=_n("Website",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new ip(t.fields[0])])}function Pl(e){return e.fields[0]}function h$(e){const t=_n("FirstName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new ap(t.fields[0])])}function Fl(e){return e.fields[0]}function p$(e){const t=_n("LastName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new lp(t.fields[0])])}function Vl(e){return e.fields[0]}function $$(e){let t;const n=_n("Email",e);return t=n.tag===1?new w(1,[n.fields[0]]):c$(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new cp(t.fields[0])])}function m$(e){const t=_n("MobilePhone",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new up(t.fields[0])])}function Ll(e){return e.fields[0]}class g$ extends we{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function Bl(){return en("AccountRegistry.Shared.Primitives.ContactDetails",[],g$,()=>[["FirstName",se],["LastName",se],["Email",se],["MobilePhone",se]])}function w$(e){const t=h$(e.FirstName);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=p$(e.LastName);if(n.tag===1)return new w(1,[n.fields[0]]);{const r=$$(e.Email);if(r.tag===1)return new w(1,[r.fields[0]]);{const o=m$(e.MobilePhone);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[new dp(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function _$(e){const t=e;if(t!=null)return new fp(t)}function y$(e){if(e!=null)return e.fields[0]}function ve(e){return tn(e)}function $t(e){return Ht(e)}function b$(e){const t=_n("BusinessName",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new $p(t.fields[0])])}function v$(e){let t;const n=_n("BusinessNumber",e);return t=n.tag===1?new w(1,[n.fields[0]]):d$(n.fields[0]),t.tag===1?new w(1,[t.fields[0]]):new w(0,[new mp(t.fields[0])])}class x$ extends we{constructor(t,n,r,o,s,i,a,l,c){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=l,this.CountryCode=c}}function C$(){return en("AccountRegistry.Shared.Primitives.LegalEntity",[],x$,()=>[["BusinessName",se],["BusinessNumber",se],["Address1",se],["Address2",it(se)],["City",se],["Postcode",se],["State",it(se)],["Phone",se],["CountryCode",it(se)]])}function S$(e){const t=_n("SalesforceParentRecordId",e);return t.tag===1?new w(1,[t.fields[0]]):new w(0,[new gp(t.fields[0])])}let k$=class extends we{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function A$(){return en("AccountRegistry.Shared.AdminApi.Partner",[],k$,()=>[["StreamId",se],["Name",se],["Website",se],["ContactDetails",it(Bl())],["Notes",it(se)]])}class E$ extends we{constructor(t,n,r,o,s,i,a,l,c){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=l,this.ChannelId=c}}function I$(){return en("AccountRegistry.Shared.AdminApi.Account",[],E$,()=>[["StreamId",se],["PartnerId",se],["Name",se],["Website",se],["ContactDetails",it(Bl())],["Notes",it(se)],["LegalEntity",it(C$())],["ExternalId",it(se)],["ChannelId",it(se)]])}class T$ extends we{constructor(t,n,r,o,s,i,a,l,c){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=l,this.ChannelId=c}}function N$(){return en("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],T$,()=>[["AccountId",se],["Name",se],["Contact",it(se)],["ContactMobilePhone",it(se)],["Website",se],["BusinessName",it(se)],["BusinessNumber",it(se)],["ExternalId",it(se)],["ChannelId",it(se)]])}class Ul extends we{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function M$(){return en("AccountRegistry.Shared.AdminApi.AccountLookup",[],Ul,()=>[["Accounts",Hs(N$())],["Token",it(se)]])}class O$ extends we{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function D$(){return en("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],O$,()=>[["PartnerId",se],["AccountId",se]])}class R$ extends we{constructor(t,n){super(),this.ClassCode=t,this.ClassTitle=n}}function P$(){return en("AccountRegistry.Shared.AdminApi.AnzsicClass",[],R$,()=>[["ClassCode",se],["ClassTitle",se]])}class F$ extends we{constructor(t,n,r){super(),this.GroupCode=t,this.GroupTitle=n,this.Classes=r}}function V$(){return en("AccountRegistry.Shared.AdminApi.AnzsicGroup",[],F$,()=>[["GroupCode",se],["GroupTitle",se],["Classes",Ua(P$())]])}class L$ extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function B$(){return Jf("AccountRegistry.Shared.AdminApi.AnzsicSearchResult",[],L$,()=>[[["Item",Ua(V$())]],[]])}var oo,le,zl,Jn,Hl,jl,di,fi,hi,pi,Gl,so={},Wl=[],U$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ko=Array.isArray;function yn(e,t){for(var n in t)e[n]=t[n];return e}function ql(e){var t=e.parentNode;t&&t.removeChild(e)}function $(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?oo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return io(e,i,r,o,null)}function io(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++zl,__i:-1,__u:0};return o==null&&le.vnode!=null&&le.vnode(s),s}function $i(){return{current:null}}function ze(e){return e.children}function Gt(e,t){this.props=e,this.context=t}function Yn(e,t){if(t==null)return e.__?Yn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Yn(e):null}function Kl(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 Kl(e)}}function mi(e){(!e.__d&&(e.__d=!0)&&Jn.push(e)&&!Zo.__r++||Hl!==le.debounceRendering)&&((Hl=le.debounceRendering)||jl)(Zo)}function Zo(){var e,t,n,r,o,s,i,a;for(Jn.sort(di);e=Jn.shift();)e.__d&&(t=Jn.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=yn({},o)).__v=o.__v+1,le.vnode&&le.vnode(r),gi(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Yn(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ql(i,r,a),r.__e!=s&&Kl(r)),Jn.length>t&&Jn.sort(di));Zo.__r=0}function Zl(e,t,n,r,o,s,i,a,l,c,d){var u,h,f,p,_,g=r&&r.__k||Wl,v=t.length;for(n.__d=l,z$(n,t,g),l=n.__d,u=0;u<v;u++)(f=n.__k[u])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?so:g[f.__i]||so,f.__i=u,gi(e,f,h,o,s,i,a,l,c,d),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&wi(h.ref,null,f),d.push(f.ref,f.__c||p,f)),_==null&&p!=null&&(_=p),65536&f.__u||h.__k===f.__k?(l&&!l.isConnected&&(l=Yn(h)),l=Jl(f,l,e)):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:p&&(l=p.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function z$(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,d=c,u=0;for(e.__k=[],r=0;r<l;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?io(null,o,null,null,null):Ko(o)?io(ze,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?io(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=H$(o,n,i,d),o.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?d>l-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Yn(s)),_i(s,s,!1),n[i]=null,d--);if(d)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Yn(s)),_i(s,s))}function Jl(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Jl(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function bn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ko(e)?e.some(function(n){bn(n,t)}):t.push(e)),t}function H$(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&s===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&s===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&s===l.type)return a;a++}}return-1}function Yl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||U$.test(t)?n:n+"px"}function Jo(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Yl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Yl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=fi,e.addEventListener(t,s?pi:hi,s)):e.removeEventListener(t,s?pi:hi,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Xl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=fi++;else if(t.t<n.u)return;return n(le.event?le.event(t):t)}}}function gi(e,t,n,r,o,s,i,a,l,c){var d,u,h,f,p,_,g,v,b,S,R,V,ee,$e,me,ue=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=le.__b)&&d(t);e:if(typeof ue=="function")try{if(v=t.props,b=(d=ue.contextType)&&r[d.__c],S=d?b?b.props.value:d.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in ue&&ue.prototype.render?t.__c=u=new ue(v,S):(t.__c=u=new Gt(v,S),u.constructor=ue,u.render=G$),b&&b.sub(u),u.props=v,u.state||(u.state={}),u.context=S,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),ue.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=yn({},u.__s)),yn(u.__s,ue.getDerivedStateFromProps(v,u.__s))),f=u.props,p=u.state,u.__v=t,h)ue.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(ue.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,S),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Y){Y&&(Y.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,p,_)})}if(u.context=S,u.props=v,u.__P=e,u.__e=!1,V=le.__r,ee=0,"prototype"in ue&&ue.prototype.render){for(u.state=u.__s,u.__d=!1,V&&V(t),d=u.render(u.props,u.state,u.context),$e=0;$e<u._sb.length;$e++)u.__h.push(u._sb[$e]);u._sb=[]}else do u.__d=!1,V&&V(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ee<25);u.state=u.__s,u.getChildContext!=null&&(r=yn(yn({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(_=u.getSnapshotBeforeUpdate(f,p)),Zl(e,Ko(me=d!=null&&d.type===ze&&d.key==null?d.props.children:d)?me:[me],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),g&&(u.__E=u.__=null)}catch(Y){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),le.__e(Y,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j$(n.__e,t,n,r,o,s,i,l,c);(d=le.diffed)&&d(t)}function Ql(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)wi(n[r],n[++r],n[++r]);le.__c&&le.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){le.__e(s,o.__v)}})}function j$(e,t,n,r,o,s,i,a,l){var c,d,u,h,f,p,_,g=n.props,v=t.props,b=t.type;if(b==="svg"?o="http://www.w3.org/2000/svg":b==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((f=s[c])&&"setAttribute"in f==!!b&&(b?f.localName===b:f.nodeType===3)){e=f,s[c]=null;break}}if(e==null){if(b===null)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),s=null,a=!1}if(b===null)g===v||a&&e.data===v||(e.data=v);else{if(s=s&&oo.call(e.childNodes),g=n.props||so,!a&&s!=null)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)if(f=g[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(c!=="key"&&!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Jo(e,c,null,f,o)}}for(c in v)f=v[c],c=="children"?h=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?p=f:c=="checked"?_=f:c==="key"||a&&typeof f!="function"||g[c]===f||Jo(e,c,f,g[c],o);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Zl(e,Ko(h)?h:[h],t,n,r,b==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Yn(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&ql(s[c]);a||(c="value",p!==void 0&&(p!==e[c]||b==="progress"&&!p||b==="option"&&p!==g[c])&&Jo(e,c,p,g[c],o),c="checked",_!==void 0&&_!==e[c]&&Jo(e,c,_,g[c],o))}return e}function wi(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){le.__e(r,n)}}function _i(e,t,n){var r,o;if(le.unmount&&le.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||wi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){le.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&_i(r[o],t,n||typeof e.type!="function");n||e.__e==null||ql(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function G$(e,t,n){return this.constructor(e,n)}function Pn(e,t,n){var r,o,s,i;le.__&&le.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],gi(t,e=(!r&&n||t).__k=$(ze,null,[e]),o||so,so,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?oo.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Ql(s,e,i)}function yi(e,t){Pn(e,t,yi)}function bi(e,t,n){var r,o,s,i,a=yn({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?oo.call(arguments,2):n),io(e.type,a,r||e.key,o||e.ref,null)}function Fn(e,t){var n={__c:t="__cC"+Gl++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,mi(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}oo=Wl.slice,le={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},zl=0,Gt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=yn({},this.state),typeof e=="function"&&(e=e(yn({},n),this.props)),e&&yn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),mi(this))},Gt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mi(this))},Gt.prototype.render=ze,Jn=[],jl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,di=function(e,t){return e.__v.__b-t.__v.__b},Zo.__r=0,fi=0,hi=Xl(!1),pi=Xl(!0),Gl=0;var vn,ke,vi,ec,Sr=0,tc=[],Yo=[],Ve=le,nc=Ve.__b,rc=Ve.__r,oc=Ve.diffed,sc=Ve.__c,ic=Ve.unmount,ac=Ve.__;function Xn(e,t){Ve.__h&&Ve.__h(ke,e,Sr||t),Sr=0;var n=ke.__H||(ke.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Yo}),n.__[e]}function Ke(e){return Sr=1,kr(cc,e)}function kr(e,t,n){var r=Xn(vn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):cc(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=ke,!ke.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=!1;return d.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};ke.u=!0;var s=ke.shouldComponentUpdate,i=ke.componentWillUpdate;ke.componentWillUpdate=function(a,l,c){if(this.__e){var d=s;s=void 0,o(a,l,c),s=d}i&&i.call(this,a,l,c)},ke.shouldComponentUpdate=o}return r.__N||r.__}function Me(e,t){var n=Xn(vn++,3);!Ve.__s&&Ai(n.__H,t)&&(n.__=e,n.i=t,ke.__H.__h.push(n))}function xn(e,t){var n=Xn(vn++,4);!Ve.__s&&Ai(n.__H,t)&&(n.__=e,n.i=t,ke.__h.push(n))}function pe(e){return Sr=5,ut(function(){return{current:e}},[])}function xi(e,t,n){Sr=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 ut(e,t){var n=Xn(vn++,7);return Ai(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Vn(e,t){return Sr=8,ut(function(){return e},t)}function rn(e){var t=ke.context[e.__c],n=Xn(vn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ke)),t.props.value):e.__}function Ci(e,t){Ve.useDebugValue&&Ve.useDebugValue(t?t(e):e)}function W$(e){var t=Xn(vn++,10),n=Ke();return t.__=e,ke.componentDidCatch||(ke.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Si(){var e=Xn(vn++,11);if(!e.__){for(var t=ke.__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 q$(){for(var e;e=tc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xo),e.__H.__h.forEach(ki),e.__H.__h=[]}catch(t){e.__H.__h=[],Ve.__e(t,e.__v)}}Ve.__b=function(e){ke=null,nc&&nc(e)},Ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ac&&ac(e,t)},Ve.__r=function(e){rc&&rc(e),vn=0;var t=(ke=e.__c).__H;t&&(vi===ke?(t.__h=[],ke.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Yo,n.__N=n.i=void 0})):(t.__h.forEach(Xo),t.__h.forEach(ki),t.__h=[],vn=0)),vi=ke},Ve.diffed=function(e){oc&&oc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(tc.push(t)!==1&&ec===Ve.requestAnimationFrame||((ec=Ve.requestAnimationFrame)||K$)(q$)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Yo&&(n.__=n.__V),n.i=void 0,n.__V=Yo})),vi=ke=null},Ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Xo),n.__h=n.__h.filter(function(r){return!r.__||ki(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ve.__e(r,n.__v)}}),sc&&sc(e,t)},Ve.unmount=function(e){ic&&ic(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Xo(r)}catch(o){t=o}}),n.__H=void 0,t&&Ve.__e(t,n.__v))};var lc=typeof requestAnimationFrame=="function";function K$(e){var t,n=function(){clearTimeout(r),lc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);lc&&(t=requestAnimationFrame(n))}function Xo(e){var t=ke,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ke=t}function ki(e){var t=ke;e.__c=e.__(),ke=t}function Ai(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function cc(e,t){return typeof t=="function"?t(e):t}function uc(e,t){for(var n in t)e[n]=t[n];return e}function Ei(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 Qo(e,t){this.props=e,this.context=t}function dc(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Ei(this.props,o)}function r(o){return this.shouldComponentUpdate=n,$(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Qo.prototype=new Gt).isPureReactComponent=!0,Qo.prototype.shouldComponentUpdate=function(e,t){return Ei(this.props,e)||Ei(this.state,t)};var fc=le.__b;le.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fc&&fc(e)};var Z$=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ar(e){function t(n){var r=uc({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Z$,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var hc=function(e,t){return e==null?null:bn(bn(e).map(t))},pc={map:hc,forEach:hc,count:function(e){return e?bn(e).length:0},only:function(e){var t=bn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:bn},J$=le.__e;le.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}J$(e,t,n,r)};var $c=le.unmount;function mc(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=uc({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return mc(r,t,n)})),e}function gc(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return gc(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 ao(){this.__u=0,this.t=null,this.__b=null}function wc(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _c(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return $(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Er(){this.u=null,this.o=null}le.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$c&&$c(e)},(ao.prototype=new Gt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=wc(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=gc(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},ao.prototype.componentWillUnmount=function(){this.t=[]},ao.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]=mc(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&$(ze,null,e.fallback);return o&&(o.__u&=-33),[$(ze,null,t.__a?null:e.children),o]};var yc=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 Y$(e){return this.getChildContext=function(){return e.context},e.children}function X$(e){var t=this,n=e.i;t.componentWillUnmount=function(){Pn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Pn($(Y$,{context:t.context},e.__v),t.l)}function bc(e,t){var n=$(X$,{__v:e,i:t});return n.containerInfo=t,n}(Er.prototype=new Gt).__a=function(e){var t=this,n=wc(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),yc(t,e,r)):o()};n?n(s):s()}},Er.prototype.render=function(e){this.u=null,this.o=new Map;var t=bn(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){yc(e,n,t)})};var vc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Q$=/^(?: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]/,em=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tm=/[A-Z0-9]/g,nm=typeof document<"u",rm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function xc(e,t,n){return t.__k==null&&(t.textContent=""),Pn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Cc(e,t,n){return yi(e,t),typeof n=="function"&&n(),e?e.__c:null}Gt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Gt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Sc=le.event;function om(){}function sm(){return this.cancelBubble}function im(){return this.defaultPrevented}le.event=function(e){return Sc&&(e=Sc(e)),e.persist=om,e.isPropagationStopped=sm,e.isDefaultPrevented=im,e.nativeEvent=e};var Ii,am={enumerable:!1,configurable:!0,get:function(){return this.class}},kc=le.vnode;le.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||nm&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||rm(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":em.test(s)?s=a:r.indexOf("-")===-1&&Q$.test(s)?s=s.replace(tm,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=bn(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=bn(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",am)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=vc,kc&&kc(e)};var Ac=le.__r;le.__r=function(e){Ac&&Ac(e),Ii=e.__c};var Ec=le.diffed;le.diffed=function(e){Ec&&Ec(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),Ii=null};var Ic={ReactCurrentDispatcher:{current:{readContext:function(e){return Ii.__n[e.__c].props.value},useCallback:Vn,useContext:rn,useDebugValue:Ci,useDeferredValue:Oi,useEffect:Me,useId:Si,useImperativeHandle:xi,useInsertionEffect:Ri,useLayoutEffect:xn,useMemo:ut,useReducer:kr,useRef:pe,useState:Ke,useSyncExternalStore:Pi,useTransition:Di}}},lm="17.0.2";function Tc(e){return $.bind(null,e)}function Ir(e){return!!e&&e.$$typeof===vc}function Nc(e){return Ir(e)&&e.type===ze}function Mc(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ti(e){return Ir(e)?bi.apply(null,arguments):e}function Oc(e){return!!e.__k&&(Pn(null,e),!0)}function Dc(e){return e&&(e.base||e.nodeType===1&&e)||null}var Rc=function(e,t){return e(t)},Ni=function(e,t){return e(t)},Pc=ze;function Mi(e){e()}function Oi(e){return e}function Di(){return[!1,Mi]}var Ri=xn,Fc=Ir;function Pi(e,t){var n=t(),r=Ke({h:{__:n,v:t}}),o=r[0].h,s=r[1];return xn(function(){o.__=n,o.v=t,Fi(o)&&s({h:o})},[e,n,t]),Me(function(){return Fi(o)&&s({h:o}),e(function(){Fi(o)&&s({h:o})})},[e]),n}function Fi(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var K={useState:Ke,useId:Si,useReducer:kr,useEffect:Me,useLayoutEffect:xn,useInsertionEffect:Ri,useTransition:Di,useDeferredValue:Oi,useSyncExternalStore:Pi,startTransition:Mi,useRef:pe,useImperativeHandle:xi,useMemo:ut,useCallback:Vn,useContext:rn,useDebugValue:Ci,version:"17.0.2",Children:pc,render:xc,hydrate:Cc,unmountComponentAtNode:Oc,createPortal:bc,createElement:$,createContext:Fn,createFactory:Tc,cloneElement:Ti,createRef:$i,Fragment:ze,isValidElement:Ir,isElement:Fc,isFragment:Nc,isMemo:Mc,findDOMNode:Dc,Component:Gt,PureComponent:Qo,memo:dc,forwardRef:Ar,flushSync:Ni,unstable_batchedUpdates:Rc,StrictMode:Pc,Suspense:ao,SuspenseList:Er,lazy:_c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ic};const Vi=Object.freeze(Object.defineProperty({__proto__:null,Children:pc,Component:Gt,Fragment:ze,PureComponent:Qo,StrictMode:Pc,Suspense:ao,SuspenseList:Er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ic,cloneElement:Ti,createContext:Fn,createElement:$,createFactory:Tc,createPortal:bc,createRef:$i,default:K,findDOMNode:Dc,flushSync:Ni,forwardRef:Ar,hydrate:Cc,isElement:Fc,isFragment:Nc,isMemo:Mc,isValidElement:Ir,lazy:_c,memo:dc,render:xc,startTransition:Mi,unmountComponentAtNode:Oc,unstable_batchedUpdates:Rc,useCallback:Vn,useContext:rn,useDebugValue:Ci,useDeferredValue:Oi,useEffect:Me,useErrorBoundary:W$,useId:Si,useImperativeHandle:xi,useInsertionEffect:Ri,useLayoutEffect:xn,useMemo:ut,useReducer:kr,useRef:pe,useState:Ke,useSyncExternalStore:Pi,useTransition:Di,version:lm},Symbol.toStringTag,{value:"Module"})),cm=e=>{Me(()=>{const t=e();return()=>{t.Dispose()}})},um=(e,t)=>{Me(()=>{const n=e();return()=>{n.Dispose()}},t)},dm=e=>{xn(()=>{const t=e();return()=>{t.Dispose()}})},T=K,fm=cm,Vc=um,hm=dm;function pm(e,t,n,r){const o=T.memo(e,Se(pt(Vt(On,n),Ne())));return xr(s=>{e.displayName=s},Ys(t)),s=>{const i=$m(r,s);return T.createElement(o,i)}}function $m(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function lo(e){return{Dispose(){e()}}}function mm(e,t){Vc(e,t)}function gm(e){hm(t=>(e(),lo(()=>{})))}function Li(e){const t=T.useRef(!1);_m(()=>{t.current||(t.current=!0,e())},[])}function Lc(e){const t=T.useRef(void 0),n=T.useRef(!1),r=T.useRef(!1);n.current&&(r.current=!0),mm(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ht(e()),o=r.current?t.current:void 0),{Dispose(){xr(s=>{Ce(s)},Ys(o))}}},[])}function wm(e){fm(t=>(e(),lo(()=>{})))}function _m(e,t){Vc(n=>(e(),lo(()=>{})),t)}function ym(e,t){const n=pt(t,[]);return T.useCallback(e,n)}function Bc(e){return T.useRef(e)}function bm(e,t,n){return pm(e,void 0,Js(n),Js(t))}function vm(e,t){const n=T.createContext(pt(t,void 0));return xr(r=>{n.displayName=r},Ys(e)),n}function xm(e,t,n){return T.createElement(e.Provider,{value:t},...n)}function Qn(e){return T.useContext(e)}function Uc(e){const t=Bc(e),n=ym(r=>t.current(r),[]);return gm(()=>{t.current=e}),n}function Tr(e){return T.useState(e)}class zc{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class es extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,es.prototype)}}class Bi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Bi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Cn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new es);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(To(n))}});else try{e(t)}catch(n){t.onError(To(n))}}}function Cm(e,t){return Cn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(To(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Sm(e){return Cn(t=>t.onSuccess(e))}class km{Bind(t,n){return Cm(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Cn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Sm(t)}ReturnFrom(t){return t}TryFinally(t,n){return Cn(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Cn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(To(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Cn(t=>t.onSuccess(void 0))}}const J=new km;function Ui(e){}function Am(e){return new zc(!1)}function Em(e){e.cancel()}function Im(e){return e!=null&&e.isCancelled}const Hc=new zc;function Tm(e){return Cn(t=>{e({onSuccess:n=>t.onSuccess(Up(n)),onError:n=>t.onSuccess(zp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Nm(e){return Cn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Mm(e){return Cn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new es)})})}function Om(e,t){return jc(e,t)}function Nr(e,t){return Om(e,t)}function jc(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Bi;e({onSuccess:t||Ui,onError:n||Ui,onCancel:r||Ui,cancelToken:o||Hc,trampoline:s})}function Dm(e,t){return new Promise((n,r)=>jc(e,n,r,r,Hc))}class Gc{constructor(t,n){this.k=t,this.v=n}}function ts(e,t){return new Gc(e,t)}function yt(e){return e.k}function Mt(e){return e.v}class Ye extends Gc{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function ns(e,t,n,r,o){return new Ye(e,t,n,r,o)}function bt(e){return e.left}function vt(e){return e.right}function er(e){return e.h}function hb(){}function Wc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=O(r);if(o instanceof Ye){const s=o;e=Wc(n+1,bt(s)),t=vt(s);continue e}else return n+1|0}else return n|0}}function Rm(e){return Wc(0,e)}function Wt(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=O(a);i=u instanceof Ye?(o=u,er(o)):1}else i=0;let l;const c=r;if(c!=null){const u=O(c);l=u instanceof Ye?(s=u,er(s)):1}else l=0;const d=(i<l?l:i)|0;return d===0?ts(t,n):ns(t,n,e,r,d+1)}function qc(e,t,n,r){let o,s,i,a,l,c,d,u,h;const f=e;if(f!=null){const g=O(f);h=g instanceof Ye?(o=g,er(o)):1}else h=0;let p;const _=r;if(_!=null){const g=O(_);p=g instanceof Ye?(s=g,er(s)):1}else p=0;if(p>h+2){const g=O(r);if(g instanceof Ye){const v=g;if(i=bt(v),(i!=null?(a=O(i),a instanceof Ye?(l=a,er(l)):1):0)>h+1){const b=O(bt(v));if(b instanceof Ye){const S=b;return Wt(Wt(e,t,n,bt(S)),yt(S),Mt(S),Wt(vt(S),yt(v),Mt(v),vt(v)))}else throw new Error("internal error: Map.rebalance")}else return Wt(Wt(e,t,n,bt(v)),yt(v),Mt(v),vt(v))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const g=O(e);if(g instanceof Ye){const v=g;if(c=vt(v),(c!=null?(d=O(c),d instanceof Ye?(u=d,er(u)):1):0)>p+1){const b=O(vt(v));if(b instanceof Ye){const S=b;return Wt(Wt(bt(v),yt(v),Mt(v),bt(S)),yt(S),Mt(S),Wt(vt(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(bt(v),yt(v),Mt(v),Wt(vt(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(e,t,n,r)}function Mr(e,t,n,r){if(r!=null){const o=O(r),s=e.Compare(t,yt(o))|0;if(o instanceof Ye){const i=o;return s<0?qc(Mr(e,t,n,bt(i)),yt(i),Mt(i),vt(i)):s===0?ns(t,n,bt(i),vt(i),er(i)):qc(bt(i),yt(i),Mt(i),Mr(e,t,n,vt(i)))}else return s<0?ns(t,n,void 0,r,2):s===0?ts(t,n):ns(t,n,r,void 0,2)}else return ts(t,n)}function Kc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=O(s),a=r.Compare(o,yt(i))|0;if(a===0)return ht(Mt(i));if(i instanceof Ye){const l=i;e=r,t=o,n=a<0?bt(l):vt(l);continue e}else return}else return}}function Pm(e,t,n){const r=Kc(e,t,n);if(r==null)throw new Error;return O(r)}function Fm(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=O(s),a=r.Compare(o,yt(i))|0;if(i instanceof Ye){const l=i;if(a<0){e=r,t=o,n=bt(l);continue e}else{if(a===0)return!0;e=r,t=o,n=vt(l);continue e}}else return a===0}else return!1}}function Zc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=O(r);if(o instanceof Ye){const s=o;Zc(n,bt(s)),n(yt(s),Mt(s)),e=n,t=vt(s);continue e}else n(yt(o),Mt(o))}break}}function Vm(e,t){Zc(e,t)}function Lm(e,t,n){let r=n;Vm((o,s)=>{zt(t,r,[o,s]),r=r+1|0},e)}function Bm(e,t){return mn((n,r)=>Mr(e,r[0],r[1],n),void 0,t)}function Um(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Mr(r,i[0],i[1],o),n=s;continue e}else return o}}function zm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=Re(r,t);n=Mr(e,o[0],o[1],n)}return n}function Jc(e,t){if(Qt(t))return zm(e,t);if(t instanceof _t)return Bm(e,t);{const n=Pe(t);try{return Um(e,void 0,n)}finally{Ce(n)}}}class Hm extends we{constructor(t,n){super(),this.stack=t,this.started=n}}function Yc(e){e:for(;;){const t=e;if(Z(t))return He();{const n=y(t),r=L(t);if(r!=null){const o=O(r);if(o instanceof Ye){const s=o;e=Fe([bt(s),ts(yt(s),Mt(s)),vt(s)],n);continue e}else return t}else{e=n;continue e}}}}function Xc(e){return new Hm(Yc(ie(e)),!1)}function jm(){throw new Error("enumeration not started")}function Gm(){throw new Error("enumeration already finished")}function Qc(e){if(e.started){const t=e.stack;if(Z(t))return Gm();if(L(t)!=null){const n=O(L(t));if(n instanceof Ye)throw new Error("Please report error: Map iterator, unexpected stack for current");return[yt(n),Mt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return jm()}function Wm(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(L(t)!=null){if(O(L(t))instanceof Ye)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Yc(y(t)),!Z(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function eu(e){let t=Xc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Qc(t)},"System.Collections.IEnumerator.get_Current"(){return Qc(t)},"System.Collections.IEnumerator.MoveNext"(){return Wm(t)},"System.Collections.IEnumerator.Reset"(){t=Xc(e)},Dispose(){}}}class rs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Jm(this)|0}Equals(t){const n=this;if(t instanceof rs){const r=t,o=Pe(n);try{const s=Pe(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return Je(l[0],c[0])&&Je(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{Ce(s)}}finally{Ce(o)}}else return!1}toString(){return"map ["+he("; ",qe(n=>sl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return eu(this.tree)}[Symbol.iterator](){return Kr(Pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return eu(this.tree)}CompareTo(t){const n=this;if(t instanceof rs)return Np((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:Ft(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return nu(n,t[0])&&Je(tu(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Lm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return zi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return zi(this)|0}get size(){return zi(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return qe(n=>[n[0],n[1]],this)}get(t){return tu(this,t)}has(t){return nu(this,t)}keys(){return qe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return qe(n=>n[1],this)}forEach(t,n){const r=this;xr(o=>{t(o[1],o[0],r)},r)}}function os(e,t){return new rs(e,t)}function qm(e){return os(e,void 0)}function Km(e,t,n){return os(e.comparer,Mr(e.comparer,t,n,e.tree))}function tu(e,t){return Pm(e.comparer,t,e.tree)}function zi(e){return Rm(e.tree)}function nu(e,t){return Fm(e.comparer,t,e.tree)}function Zm(e,t){return Kc(e.comparer,t,e.tree)}function Jm(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=Pe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,dn(o[0]))|0,n=t(n,dn(o[1]))|0}}finally{Ce(r)}return n|0}function Ym(e,t,n){return Km(n,e,t)}function Xm(e,t){return Zm(t,e)}function Qm(e,t){return os(t,Jc(t,e))}function e0(e,t){return os(t,Jc(t,e))}function ru(e){return qm(e)}class Ae extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ou(e,t){const n=Bc(Am());return Lc(()=>lo(()=>{Em(n.current)})),Uc(r=>{Im(n.current)||Nr(J.Delay(()=>J.TryWith(J.Delay(()=>(t(new Ae(1,[])),J.Bind(e(r),o=>(t(new Ae(2,[o])),J.Zero())))),o=>(t(new Ae(3,[o])),J.Zero()))),n.current)})}class t0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function n0(e,t){t.Subscribe(new t0(e))}class r0{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 s0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let o0=class extends r0{};function s0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class i0{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 o0}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 a0(e,t){console.error(ht(e),t)}function l0(e,t){let n,r=new i0(e);r.AutoReset=!1,n=r,n0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function su(e,t,n){Ho(r=>{try{r(t)}catch(o){e(o)}},n)}function kt(){return He()}function tt(e){return ie(e)}function c0(e,t,n,r){return ie(o=>{e(J.Delay(()=>J.Bind(Tm(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),J.Zero()})))})}function u0(e){l0(1,t=>{Nr(e)})}function Or(e,t){if(t.indexOf(e)===0)return t}function iu(e,t){if(Th(t,e))return t}function d0(e){return e===1?t=>{let n,r,o,s,i,a;return n=Or("/",t),n!=null?(r=n,"#"+r):(o=Or("#/",t),o!=null?(s=o,s):(i=Or("#",t),i!=null?(a=i,"#/"+ll(a,1,a.length-1)):"#/"+t))}:t=>{let n,r;return n=Or("/",t),n!=null?(r=n,r):"/"+t}}function M(e,t){return d0(t)(he("/",to(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function mt(e,t,n){history.pushState(void 0,"",M(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function au(e,t){return qh(n=>{if(al(n))return He();{const r=Oh(n,"#");if(r==="?")return He();if(Or("?",r)!=null)return ie(r);{const o=r.split("?");if(!ei((s,i)=>s===i,o)&&o.length===1){const s=Re(0,o);return ie(decodeURIComponent(s))}else if(!ei((s,i)=>s===i,o)&&o.length===2)if(Re(1,o)===""){const s=Re(0,o);return ie(decodeURIComponent(s))}else{const s=Re(0,o),i=Re(1,o);return C([decodeURIComponent(s),"?"+i])}else return He()}}},C(Zs(Or("#",e)!=null?ll(e,1,e.length-1):t===1&&(iu("#",e)!=null||iu("#/",e)!=null)?"":e,["/"],void 0,0)))}function f0(e,t,n){return t(au(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const h0=bm(e=>{const t=Uc(r=>{const o=pt(e.onUrlChanged,s=>{});f0(pt(e.hashMode,1),o)});Lc(()=>(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),lo(()=>{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)}))),Li(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Ne()});class Sn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class tr extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function lu(e){return e.tag===0?new tr(1,[]):new tr(0,[])}class co extends q{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const p0=new co(new Sn(1,[]),new tr(0,[]));function $0(e){return[e.fields[0],e.fields[1]]}function cu(e){return e.fields[0]}function uu(e){return e.fields[1]}function du(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new co(new Sn(1,[]),lu(r)):new co(new Sn(1,[]),new tr(0,[])):n.tag===0?new co(new Sn(0,[]),lu(r)):new co(new Sn(0,[]),new tr(0,[]))}class fu extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const m0=new fu("");function g0(e){return new fu(e.trim())}function hu(e){return e.fields[0]}class w0 extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function _0(e){return new w0(e)}function pu(e){return e.fields[0]}class Hi extends we{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class y0 extends q{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function b0(e){return[e.fields[0],e.fields[1]]}function v0(e,t){return new y0(e,t)}function x0(e){const t=b0(e);return[t[0],t[1]]}function C0(){return new Vp([],{Equals:Je,GetHashCode:Of})}function S0(e,t){let n,r=Ne();if(n=[Sl(e,t,new St(()=>r,o=>{r=o})),r],n[0])return n[1]}function $u(e,t,n){return e.set(t,n),e}class k0 extends we{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function A0(e){const t=Rl(e.Name);if(t.tag===1)return new w(1,[t.fields[0]]);{const n=f$(e.Website);if(n.tag===1)return new w(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=w$(o);r=s.tag===1?new w(1,[s.fields[0]]):new w(0,[s.fields[0]])}else r=new w(0,[void 0]);return r.tag===1?new w(1,[r.fields[0]]):new w(0,[new k0(new Ol(e.StreamId),t.fields[0],n.fields[0],r.fields[0],_$(e.Notes))])}}}function mu(e,t){return Jh(n=>jt(n.StreamId)===wl(t),e)}class k extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","PartnerWorkspace","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","AccountWorkspace","NotFound"]}}function gu(e){let t,n,r,o,s,i,a,l,c,d,u,h,f,p,_,g,v,b,S,R,V,ee,$e,me;if(Z(e))t=16;else if(L(e)==="account-registry")if(Z(y(e)))t=16;else if(L(y(e))==="partners")if(Z(y(y(e))))t=0;else if(Z(y(y(y(e)))))t=1,n=L(y(y(e)));else switch(L(y(y(y(e))))){case"accounts":{if(Z(y(y(y(y(e))))))t=2,r=L(y(y(e)));else if(Z(y(y(y(y(y(e)))))))t=8,c=L(y(y(y(y(e))))),d=L(y(y(e)));else switch(L(y(y(y(y(y(e))))))){case"directory":{Z(y(y(y(y(y(y(e)))))))?(t=9,u=L(y(y(y(y(e))))),h=L(y(y(e)))):t=16;break}case"imports":{Z(y(y(y(y(y(y(e)))))))?(t=10,f=L(y(y(y(y(e))))),p=L(y(y(e)))):t=16;break}case"super-configuration":{Z(y(y(y(y(y(y(e)))))))?(t=11,_=L(y(y(y(y(e))))),g=L(y(y(e)))):t=16;break}case"benefits-onboarding-configuration":{Z(y(y(y(y(y(y(e)))))))?(t=12,v=L(y(y(y(y(e))))),b=L(y(y(e)))):t=16;break}case"bank-details-configuration":{Z(y(y(y(y(y(y(e)))))))?(t=13,S=L(y(y(y(y(e))))),R=L(y(y(e)))):t=16;break}case"salary-packaging-configuration":{Z(y(y(y(y(y(y(e)))))))?(t=14,V=L(y(y(y(y(e))))),ee=L(y(y(e)))):t=16;break}case"workspace":{Z(y(y(y(y(y(y(e)))))))?(t=15,$e=L(y(y(y(y(e))))),me=L(y(y(e)))):t=16;break}default:t=16}break}case"super-configuration":{Z(y(y(y(y(e)))))?(t=3,o=L(y(y(e)))):t=16;break}case"benefits-onboarding-configuration":{Z(y(y(y(y(e)))))?(t=4,s=L(y(y(e)))):t=16;break}case"directory":{Z(y(y(y(y(e)))))?(t=5,i=L(y(y(e)))):t=16;break}case"bank-details-configuration":{Z(y(y(y(y(e)))))?(t=6,a=L(y(y(e)))):t=16;break}case"workspace":{Z(y(y(y(y(e)))))?(t=7,l=L(y(y(e)))):t=16;break}default:t=16}else t=16;else t=16;switch(t){case 0:return new k(0,[]);case 1:return new k(1,[Be(n)]);case 2:return new k(3,[Be(r)]);case 3:return new k(4,[Be(o)]);case 4:return new k(5,[Be(s)]);case 5:return new k(2,[Be(i)]);case 6:return new k(6,[Be(a)]);case 7:return new k(7,[Be(l)]);case 8:return new k(8,[Be(d),nn(c)]);case 9:return new k(9,[Be(h),nn(u)]);case 10:return new k(10,[Be(p),nn(f)]);case 11:return new k(11,[Be(g),nn(_)]);case 12:return new k(12,[Be(b),nn(v)]);case 13:return new k(13,[Be(R),nn(S)]);case 14:return new k(14,[Be(ee),nn(V)]);case 15:return new k(15,[Be(me),nn($e)]);default:return new k(16,[])}}function E(e){switch(e.tag){case 3:return C(["account-registry","partners",ve(e.fields[0]),"accounts"]);case 4:return C(["account-registry","partners",ve(e.fields[0]),"super-configuration"]);case 5:return C(["account-registry","partners",ve(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return C(["account-registry","partners",ve(e.fields[0]),"bank-details-configuration"]);case 2:return C(["account-registry","partners",ve(e.fields[0]),"directory"]);case 7:return C(["account-registry","partners",ve(e.fields[0]),"workspace"]);case 8:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1])]);case 9:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"directory"]);case 10:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"imports"]);case 11:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"super-configuration"]);case 12:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"benefits-onboarding-configuration"]);case 13:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"bank-details-configuration"]);case 14:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"salary-packaging-configuration"]);case 15:return C(["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"workspace"]);case 16:case 0:return C(["account-registry","partners"]);default:return C(["account-registry","partners",ve(e.fields[0])])}}function wu(e){switch(e.tag){case 3:{const t=["account-registry","partners",ve(e.fields[0]),"accounts"];return tt(n=>{mt(C(t),1,1)})}case 4:{const t=["account-registry","partners",ve(e.fields[0]),"super-configuration"];return tt(n=>{mt(C(t),1,1)})}case 5:{const t=["account-registry","partners",ve(e.fields[0]),"benefits-onboarding-configuration"];return tt(n=>{mt(C(t),1,1)})}case 6:{const t=["account-registry","partners",ve(e.fields[0]),"bank-details-configuration"];return tt(n=>{mt(C(t),1,1)})}case 2:{const t=["account-registry","partners",ve(e.fields[0]),"directory"];return tt(n=>{mt(C(t),1,1)})}case 7:{const t=["account-registry","partners",ve(e.fields[0]),"workspace"];return tt(n=>{mt(C(t),1,1)})}case 8:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1])];return tt(n=>{mt(C(t),1,1)})}case 9:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"directory"];return tt(n=>{mt(C(t),1,1)})}case 10:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"imports"];return tt(n=>{mt(C(t),1,1)})}case 11:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"super-configuration"];return tt(n=>{mt(C(t),1,1)})}case 12:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"benefits-onboarding-configuration"];return tt(n=>{mt(C(t),1,1)})}case 13:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"bank-details-configuration"];return tt(n=>{mt(C(t),1,1)})}case 14:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"salary-packaging-configuration"];return tt(n=>{mt(C(t),1,1)})}case 15:{const t=["account-registry","partners",ve(e.fields[0]),"accounts",$t(e.fields[1]),"workspace"];return tt(n=>{mt(C(t),1,1)})}case 0:case 16:return kt();default:{const t=["account-registry","partners",ve(e.fields[0])];return tt(n=>{mt(C(t),1,1)})}}}function E0(e,t){switch(t.tag){case 1:return new Ae(1,[]);case 2:return t.fields[0].tag===1?new Ae(2,[new w(1,[t.fields[0].fields[0]])]):new Ae(2,[new w(0,[e(t.fields[0].fields[0])])]);case 3:return new Ae(3,[t.fields[0]]);default:return new Ae(0,[])}}class _u extends we{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function I0(e){return new _u($l("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:pr}),$l("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:pr}))}const T0=new _u(!1,!1);class W extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class nr extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function yu(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function N0(e,t){switch(e.tag){case 2:return kh(yu(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return yu(t)}}function bu(e,t){M0(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function M0(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 O0(){return bu(-621355968e5,0)}function D0(e){const[t,n]=qa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return bu(t.getTime(),r)}function R0(e,t){try{return t.contents=D0(e),!0}catch{return!1}}function vu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return P0(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function P0(e){return Number(BigInt(e)/10000n)}function F0(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 vu(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*vu(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function V0(e,t){try{return t.contents=F0(e),!0}catch{return!1}}class xu{constructor(t){this.k=t}}function Ot(e){return new xu(e)}function te(e){return e.k}class xe extends xu{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Dt(e,t,n,r){return new xe(e,t,n,r)}function Oe(e){return e.left}function Ee(e){return e.right}function Dr(e){return e.h}function pb(){}function Cu(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=O(n);if(o instanceof xe){const s=o;e=Oe(s),t=Cu(Ee(s),r+1);continue e}else return r+1|0}else return r|0}}function L0(e){return Cu(e,0)}function qt(e,t,n){let r,o,s;const i=e;if(i!=null){const d=O(i);s=d instanceof xe?(r=d,Dr(r)):1}else s=0;let a;const l=n;if(l!=null){const d=O(l);a=d instanceof xe?(o=d,Dr(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?Ot(t):Dt(t,e,n,c+1)}function Su(e,t,n){let r,o,s,i,a,l,c,d,u;const h=e;if(h!=null){const _=O(h);u=_ instanceof xe?(r=_,Dr(r)):1}else u=0;let f;const p=n;if(p!=null){const _=O(p);f=_ instanceof xe?(o=_,Dr(o)):1}else f=0;if(f>u+2){const _=O(n);if(_ instanceof xe){const g=_;if(s=Oe(g),(s!=null?(i=O(s),i instanceof xe?(a=i,Dr(a)):1):0)>u+1){const v=O(Oe(g));if(v instanceof xe){const b=v;return qt(qt(e,t,Oe(b)),te(b),qt(Ee(b),te(g),Ee(g)))}else throw new Error("internal error: Set.rebalance")}else return qt(qt(e,t,Oe(g)),te(g),Ee(g))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const _=O(e);if(_ instanceof xe){const g=_;if(l=Ee(g),(l!=null?(c=O(l),c instanceof xe?(d=c,Dr(d)):1):0)>f+1){const v=O(Ee(g));if(v instanceof xe){const b=v;return qt(qt(Oe(g),te(g),Oe(b)),te(b),qt(Ee(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return qt(Oe(g),te(g),qt(Ee(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return qt(e,t,n)}function Rr(e,t,n){if(n!=null){const r=O(n),o=e.Compare(t,te(r))|0;if(r instanceof xe){const s=r;return o<0?Su(Rr(e,t,Oe(s)),te(s),Ee(s)):o===0?n:Su(Oe(s),te(s),Rr(e,t,Ee(s)))}else{const s=e.Compare(t,te(r))|0;return s<0?Dt(t,void 0,n,2):s===0?n:Dt(t,n,void 0,2)}}else return Ot(t)}function ku(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=O(s),a=r.Compare(o,te(i))|0;if(i instanceof xe){const l=i;if(a<0){e=r,t=o,n=Oe(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Ee(l);continue e}}else return a===0}else return!1}}function Au(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=O(r);if(o instanceof xe){const s=o;Au(n,Oe(s)),n(te(s)),e=n,t=Ee(s);continue e}else n(te(o))}break}}class B0 extends we{constructor(t,n){super(),this.stack=t,this.started=n}}function Eu(e){e:for(;;){const t=e;if(Z(t))return He();{const n=L(t),r=y(t);if(n!=null){const o=O(n);if(o instanceof xe){const s=o;e=Fe([Oe(s),Ot(te(s)),Ee(s)],r);continue e}else return t}else{e=r;continue e}}}}function Iu(e){return new B0(Eu(ie(e)),!1)}function U0(){throw new Error("Enumeration not started")}function z0(){throw new Error("Enumeration already started")}function Tu(e){if(e.started){const t=e.stack;if(Z(t))return z0();if(L(t)!=null){const n=O(L(t));return te(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return U0()}function H0(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(L(t)!=null){if(O(L(t))instanceof xe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Eu(y(t)),!Z(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function Nu(e){let t=Iu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Tu(t)},"System.Collections.IEnumerator.get_Current"(){return Tu(t)},"System.Collections.IEnumerator.MoveNext"(){return H0(t)},"System.Collections.IEnumerator.Reset"(){t=Iu(e)},Dispose(){}}}function j0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(Z(o))return Z(s)?0:-1;if(Z(s))return 1;if(L(s)!=null)if(L(o)!=null){const i=O(L(o)),a=O(L(s));if(i instanceof xe){const l=i;if(Oe(l)==null)if(a instanceof xe){const c=a;if(Oe(c)==null){const d=r.Compare(te(l),te(c))|0;if(d!==0)return d|0;e=r,t=Tt(Ee(l),y(o)),n=Tt(Ee(c),y(s));continue e}else{let d,u,h,f,p;switch(Z(o)?Z(s)?d=2:L(s)!=null?(d=1,f=y(s),p=O(L(s))):d=2:L(o)!=null?(d=0,u=y(o),h=O(L(o))):Z(s)?d=2:L(s)!=null?(d=1,f=y(s),p=O(L(s))):d=2,d){case 0:if(h instanceof xe){const _=h;e=r,t=Fe([Oe(_),Dt(te(_),void 0,Ee(_),0)],u),n=s;continue e}else{e=r,t=Fe([void 0,Ot(te(h))],u),n=s;continue e}case 1:if(p instanceof xe){const _=p;e=r,t=o,n=Fe([Oe(_),Dt(te(_),void 0,Ee(_),0)],f);continue e}else{e=r,t=o,n=Fe([void 0,Ot(te(p))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(te(l),te(a))|0;if(c!==0)return c|0;e=r,t=Tt(Ee(l),y(o)),n=Tt(void 0,y(s));continue e}else{let c,d,u,h,f;switch(Z(o)?Z(s)?c=2:L(s)!=null?(c=1,h=y(s),f=O(L(s))):c=2:L(o)!=null?(c=0,d=y(o),u=O(L(o))):Z(s)?c=2:L(s)!=null?(c=1,h=y(s),f=O(L(s))):c=2,c){case 0:if(u instanceof xe){const p=u;e=r,t=Fe([Oe(p),Dt(te(p),void 0,Ee(p),0)],d),n=s;continue e}else{e=r,t=Fe([void 0,Ot(te(u))],d),n=s;continue e}case 1:if(f instanceof xe){const p=f;e=r,t=o,n=Fe([Oe(p),Dt(te(p),void 0,Ee(p),0)],h);continue e}else{e=r,t=o,n=Fe([void 0,Ot(te(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof xe){const l=a;if(Oe(l)==null){const c=r.Compare(te(i),te(l))|0;if(c!==0)return c|0;e=r,t=Tt(void 0,y(o)),n=Tt(Ee(l),y(s));continue e}else{let c,d,u,h,f;switch(Z(o)?Z(s)?c=2:L(s)!=null?(c=1,h=y(s),f=O(L(s))):c=2:L(o)!=null?(c=0,d=y(o),u=O(L(o))):Z(s)?c=2:L(s)!=null?(c=1,h=y(s),f=O(L(s))):c=2,c){case 0:if(u instanceof xe){const p=u;e=r,t=Fe([Oe(p),Dt(te(p),void 0,Ee(p),0)],d),n=s;continue e}else{e=r,t=Fe([void 0,Ot(te(u))],d),n=s;continue e}case 1:if(f instanceof xe){const p=f;e=r,t=o,n=Fe([Oe(p),Dt(te(p),void 0,Ee(p),0)],h);continue e}else{e=r,t=o,n=Fe([void 0,Ot(te(f))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(te(i),te(a))|0;if(l!==0)return l|0;e=r,t=y(o),n=y(s);continue e}}else{O(L(s));let i,a,l,c,d;switch(Z(o)?Z(s)?i=2:L(s)!=null?(i=1,c=y(s),d=O(L(s))):i=2:L(o)!=null?(i=0,a=y(o),l=O(L(o))):Z(s)?i=2:L(s)!=null?(i=1,c=y(s),d=O(L(s))):i=2,i){case 0:if(l instanceof xe){const u=l;e=r,t=Fe([Oe(u),Dt(te(u),void 0,Ee(u),0)],a),n=s;continue e}else{e=r,t=Fe([void 0,Ot(te(l))],a),n=s;continue e}case 1:if(d instanceof xe){const u=d;e=r,t=o,n=Fe([Oe(u),Dt(te(u),void 0,Ee(u),0)],c);continue e}else{e=r,t=o,n=Fe([void 0,Ot(te(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(L(o)!=null){O(L(o));let i,a,l,c,d;switch(Z(o)?Z(s)?i=2:L(s)!=null?(i=1,c=y(s),d=O(L(s))):i=2:L(o)!=null?(i=0,a=y(o),l=O(L(o))):Z(s)?i=2:L(s)!=null?(i=1,c=y(s),d=O(L(s))):i=2,i){case 0:if(l instanceof xe){const u=l;e=r,t=Fe([Oe(u),Dt(te(u),void 0,Ee(u),0)],a),n=s;continue e}else{e=r,t=Fe([void 0,Ot(te(l))],a),n=s;continue e}case 1:if(d instanceof xe){const u=d;e=r,t=o,n=Fe([Oe(u),Dt(te(u),void 0,Ee(u),0)],c);continue e}else{e=r,t=o,n=Fe([void 0,Ot(te(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=y(o),n=y(s);continue e}}}function Mu(e,t,n){return t==null?n==null?0:-1:n==null?1:j0(e,ie(t),ie(n))|0}function G0(e,t,n){let r=n;Au(o=>{zt(t,r,o),r=r+1|0},e)}function W0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Rr(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function q0(e,t){return Uo((n,r)=>Rr(e,r,n),void 0,t)}function K0(e,t){return mn((n,r)=>Rr(e,r,n),void 0,t)}function Ou(e,t){if(Qt(t))return q0(e,t);if(t instanceof _t)return K0(e,t);{const n=Pe(t);try{return W0(e,void 0,n)}finally{Ce(n)}}}class ji{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Y0(this)|0}Equals(t){let n;const r=this;return t instanceof ji&&(n=t,Mu(Pr(r),Kt(r),Kt(n))===0)}toString(){return"set ["+he("; ",qe(n=>wt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Mu(Pr(n),Kt(n),Kt(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 ku(Pr(n),t,Kt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){G0(Kt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Gi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Gi(this)|0}GetEnumerator(){return Nu(Kt(this))}[Symbol.iterator](){return Kr(Pe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Nu(Kt(this))}get size(){return Gi(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 Du(this,t)}keys(){return qe(n=>n,this)}values(){return qe(n=>n,this)}entries(){return qe(n=>[n,n],this)}forEach(t,n){const r=this;xr(o=>{t(o,o,r)},r)}}function ss(e,t){return new ji(e,t)}function Pr(e){return e.comparer}function Kt(e){return e.tree}function Z0(e){return ss(e,void 0)}function J0(e,t){return ss(Pr(e),Rr(Pr(e),t,Kt(e)))}function Gi(e){return L0(Kt(e))}function Du(e,t){return ku(Pr(e),t,Kt(e))}function Y0(e){let t=0;const n=Pe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+dn(r)+631|0}}finally{Ce(n)}return Math.abs(t)|0}function Wi(e,t){return Du(t,e)}function X0(e,t){return J0(t,e)}function Q0(e){return Z0(e)}function eg(e,t){return ss(t,Ou(t,e))}function tg(e,t){return ss(t,Ou(t,e))}function uo(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
4
4
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
5
- `:" ")}}function p0(e,t){const n=t.tag===2?lr(t.fields[0],t.fields[1],!0):t.tag===1?lr(t.fields[0],t.fields[1],!1)+`
6
- Reason: `+t.fields[2]:t.tag===3?lr(t.fields[0],t.fields[1],!0):t.tag===4?lr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
5
+ `:" ")}}function ng(e,t){const n=t.tag===2?uo(t.fields[0],t.fields[1],!0):t.tag===1?uo(t.fields[0],t.fields[1],!1)+`
6
+ Reason: `+t.fields[2]:t.tag===3?uo(t.fields[0],t.fields[1],!0):t.tag===4?uo(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
7
7
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
8
8
 
9
- `+W(`
9
+ `+he(`
10
10
 
11
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:lr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ql(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new m(1,[p0(o[0],o[1])])}else return new m(0,[r.fields[0]])}function cr(e,t){try{return Ql("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function ec(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new R(0,["a string",t])]])}function m0(e,t){if(typeof t=="string"){const n=t;return n.length===1?new m(0,[n[0]]):new m(1,[[e,new R(0,["a single character string",t])]])}else return new m(1,[[e,new R(0,["a char",t])]])}function g0(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[xd(t,new Re(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new R(0,["a guid",t])]])}else return new m(1,[[e,new R(0,["a guid",t])]])}function w0(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new R(0,["null",t])]])}const tc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new m(0,[(o+128&255)-128]):new m(1,[[n,new R(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new m(1,[[n,new R(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!1,8,new Re(()=>s,i=>{s=i|0})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["a sbyte",r])]])}else return new m(1,[[n,new R(0,["a sbyte",r])]])},nc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new m(0,[o&255]):new m(1,[[n,new R(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new m(1,[[n,new R(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!0,8,new Re(()=>s,i=>{s=i})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["a byte",r])]])}else return new m(1,[[n,new R(0,["a byte",r])]])},rc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new m(0,[(o+32768&65535)-32768]):new m(1,[[n,new R(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new m(1,[[n,new R(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!1,16,new Re(()=>s,i=>{s=i|0})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["an int16",r])]])}else return new m(1,[[n,new R(0,["an int16",r])]])},oc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new m(0,[o&65535]):new m(1,[[n,new R(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new m(1,[[n,new R(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!0,16,new Re(()=>s,i=>{s=i})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["an uint16",r])]])}else return new m(1,[[n,new R(0,["an uint16",r])]])},sc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new m(0,[~~o]):new m(1,[[n,new R(1,["an int",o,"Value was either too large or too small for an int"])]]):new m(1,[[n,new R(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!1,32,new Re(()=>s,i=>{s=i|0})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["an int",r])]])}else return new m(1,[[n,new R(0,["an int",r])]])},ic=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new m(0,[o>>>0]):new m(1,[[n,new R(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new m(1,[[n,new R(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[bn(r,511,!0,32,new Re(()=>s,i=>{s=i})),s],o[0]?new m(0,[o[1]]):new m(1,[[n,new R(0,["an uint32",r])]])}else return new m(1,[[n,new R(0,["an uint32",r])]])};function _0(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new R(0,["a boolean",t])]])}function y0(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new R(0,["a float",t])]])}function b0(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new R(0,["a float32",t])]])}function v0(e,t){if(typeof t=="string"){let n,r=ef();return n=[nf(t,new Re(()=>r,o=>{r=o})),r],n[0]?new m(0,[rf(n[1])]):new m(1,[[e,new R(0,["a datetime",t])]])}else return new m(1,[[e,new R(0,["a datetime",t])]])}function x0(e,t){if(typeof t=="string"){let n,r=Gp();return n=[qp(t,new Re(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new R(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new R(0,["a datetime",t])]])}function C0(e,t){if(typeof t=="string"){let n,r=0;return n=[Jp(t,new Re(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new R(0,["a timespan",t])]])}else return new m(1,[[e,new R(0,["a timespan",t])]])}function ac(e,t,n,r){let o;const s=n+".["+Ht(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,ce(e,i)):new m(1,[[s,new R(5,["a longer array. Need index `"+Ht(e)+"` but there are only `"+(o=i.length,Ht(o))+"` entries",r])]])}else return new m(1,[[s,new R(0,["an array",r])]])}function k0(e,t,n){return n==null?new m(0,[void 0]):bt(ke,e(t,n))}function lc(e,t,n){if(Array.isArray(n)){let r=-1;return bt(Or,Rr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Ht(r)+"]",s);return i.tag===0?new m(0,[He(i.fields[0],o.fields[0])]):new m(1,[i.fields[0]])}else return o},new m(0,[ue()]),n))}else return new m(1,[[t,new R(0,["a list",n])]])}function S0(e,t,n){if(Array.isArray(n)){let r=-1;return bt(cd,Rr((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Ht(r)+"]",s);return i.tag===0?new m(0,[P([i.fields[0]],o.fields[0])]):new m(1,[i.fields[0]])}else return o},new m(0,[[]]),n))}else return new m(1,[[t,new R(0,["a seq",n])]])}function cc(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Rr((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],l=e(t+".["+Ht(r)+"]",i);return l.tag===0?(wt(a,r,l.fields[0]),new m(0,[a])):new m(1,[l.fields[0]])}else return s},new m(0,[Bo(new Array(o.length),0,o.length,null)]),o)}else return new m(1,[[t,new R(0,["an array",n])]])}function A0(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(F(i))return new m(1,[[t,new R(7,[a])]]);{const l=Ql(t,ee(M(i)),n);if(l.tag===1){o=_(i),s=$e(a,j(l.fields[0]));continue e}else return new m(0,[l.fields[0]])}}})(e,ue())}function E0(e,t,n){return new m(0,[e])}function uc(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new m(1,[o.fields[0]])}function I0(e,t,n,r){const o=t(n,r);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[e(o.fields[0])])}function T0(e,t){let n;const r=e;return n=o=>s=>ac(0,r,o,s),o=>s=>uc(So(i=>{let a;const l=t;return a=c=>f=>ac(1,l,c,f),c=>f=>uc((u,h,d)=>E0([i,u]),ee(a),c,f)}),ee(n),o,s)}function $0(e){return fp(e,{Compare:qe})}function N0(e){return h0(e,{Compare:qe})}function M0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?$i((r,o)=>{const s=r[0];return o.tag===0?bt(i=>He(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new m(0,[ue()])):new m(1,[[t,new R(0,["an object",n])]])}function D0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Go((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new m(0,[He([i.fields[0],a.fields[0]],o.fields[0])]):new m(1,[a.fields[0]])}else return new m(1,[i.fields[0]])}else return o},new m(0,[ue()]),Object.keys(r)):new m(1,[[n,new R(0,["an object",r])]])}function fc(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new m(1,[[n,new R(6,[(o=r.length|0,gt(mt("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new m(0,[ue()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],c=gt(mt("%s[%i]"))(n)(a),f=ce(a-e,t),u=ce(a,r);i=bt(h=>He(h,l),f(c)(u))}return bt(Or,i)}}function dc(e,t,n,r,o,s){const i=_f(a=>$o(a)===r,Fu(n));if(i!=null){const a=i,l=Kn(c=>rt(e,t,!1,c[1]),Uu(a));return bt(c=>Hu(a,zt(c)),l.length===0&&s.length<=1?new m(0,[ue()]):fc(1,l,o,s))}else return new m(1,[[o,new R(6,["Cannot find case "+r+" in "+be(n)])]])}function hc(e,t,n,r){let o;const s=new Re(Q());let i;const a=be(r);i=a===""?e:cp(a,s,e);let l;if(Vu(r)){const c=Kn(f=>[jp(t,$o(f)),rt(i,t,!1,f[1])],$r(r));l=f=>u=>bt(h=>ju(r,zt(h)),M0(c,f,u))}else if(Lu(r))l=c=>f=>{if(typeof f=="string")return dc(i,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return Ff(h=>dc(i,t,r,h,c,u),ec(c+"[0]",ce(0,u)))}else return new m(1,[[c,new R(0,["a string or array",f])]])};else if(n)l=c=>f=>new m(1,[[c,new R(2,["an extra coder for "+be(r),f])]]);else throw new Error((o=be(r),gt(mt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
11
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:uo(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ru(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new w(1,[ng(o[0],o[1])])}else return new w(0,[r.fields[0]])}function Fr(e,t){try{return Ru("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function Pu(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new W(0,["a string",t])]])}function rg(e,t){if(typeof t=="string"){const n=t;return n.length===1?new w(0,[n[0]]):new w(1,[[e,new W(0,["a single character string",t])]])}else return new w(1,[[e,new W(0,["a char",t])]])}function og(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Wp(t,new St(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new W(0,["a guid",t])]])}else return new w(1,[[e,new W(0,["a guid",t])]])}function sg(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new W(0,["null",t])]])}const Fu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new w(0,[(o+128&255)-128]):new w(1,[[n,new W(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new w(1,[[n,new W(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!1,8,new St(()=>s,i=>{s=i|0})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["a sbyte",r])]])}else return new w(1,[[n,new W(0,["a sbyte",r])]])},Vu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new w(0,[o&255]):new w(1,[[n,new W(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new w(1,[[n,new W(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!0,8,new St(()=>s,i=>{s=i})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["a byte",r])]])}else return new w(1,[[n,new W(0,["a byte",r])]])},Lu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new w(0,[(o+32768&65535)-32768]):new w(1,[[n,new W(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new w(1,[[n,new W(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!1,16,new St(()=>s,i=>{s=i|0})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["an int16",r])]])}else return new w(1,[[n,new W(0,["an int16",r])]])},Bu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new w(0,[o&65535]):new w(1,[[n,new W(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new w(1,[[n,new W(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!0,16,new St(()=>s,i=>{s=i})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["an uint16",r])]])}else return new w(1,[[n,new W(0,["an uint16",r])]])},Uu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new w(0,[~~o]):new w(1,[[n,new W(1,["an int",o,"Value was either too large or too small for an int"])]]):new w(1,[[n,new W(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!1,32,new St(()=>s,i=>{s=i|0})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["an int",r])]])}else return new w(1,[[n,new W(0,["an int",r])]])},zu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new w(0,[o>>>0]):new w(1,[[n,new W(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new w(1,[[n,new W(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Cr(r,511,!0,32,new St(()=>s,i=>{s=i})),s],o[0]?new w(0,[o[1]]):new w(1,[[n,new W(0,["an uint32",r])]])}else return new w(1,[[n,new W(0,["an uint32",r])]])};function ig(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new W(0,["a boolean",t])]])}function ag(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new W(0,["a float",t])]])}function lg(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new W(0,["a float32",t])]])}function cg(e,t){if(typeof t=="string"){let n,r=yh();return n=[vh(t,new St(()=>r,o=>{r=o})),r],n[0]?new w(0,[xh(n[1])]):new w(1,[[e,new W(0,["a datetime",t])]])}else return new w(1,[[e,new W(0,["a datetime",t])]])}function ug(e,t){if(typeof t=="string"){let n,r=O0();return n=[R0(t,new St(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new W(0,["a datetimeoffset",t])]])}else return new w(1,[[e,new W(0,["a datetime",t])]])}function dg(e,t){if(typeof t=="string"){let n,r=0;return n=[V0(t,new St(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new W(0,["a timespan",t])]])}else return new w(1,[[e,new W(0,["a timespan",t])]])}function Hu(e,t,n,r){let o;const s=n+".["+Gn(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,Re(e,i)):new w(1,[[s,new W(5,["a longer array. Need index `"+Gn(e)+"` but there are only `"+(o=i.length,Gn(o))+"` entries",r])]])}else return new w(1,[[s,new W(0,["an array",r])]])}function fg(e,t,n){return n==null?new w(0,[void 0]):gn(ht,e(t,n))}function ju(e,t,n){if(Array.isArray(n)){let r=-1;return gn(zo,Uo((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Gn(r)+"]",s);return i.tag===0?new w(0,[Tt(i.fields[0],o.fields[0])]):new w(1,[i.fields[0]])}else return o},new w(0,[He()]),n))}else return new w(1,[[t,new W(0,["a list",n])]])}function hg(e,t,n){if(Array.isArray(n)){let r=-1;return gn(Op,Uo((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Gn(r)+"]",s);return i.tag===0?new w(0,[G([i.fields[0]],o.fields[0])]):new w(1,[i.fields[0]])}else return o},new w(0,[[]]),n))}else return new w(1,[[t,new W(0,["a seq",n])]])}function Gu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Uo((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],l=e(t+".["+Gn(r)+"]",i);return l.tag===0?(zt(a,r,l.fields[0]),new w(0,[a])):new w(1,[l.fields[0]])}else return s},new w(0,[Qs(new Array(o.length),0,o.length,null)]),o)}else return new w(1,[[t,new W(0,["an array",n])]])}function pg(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(Z(i))return new w(1,[[t,new W(7,[a])]]);{const l=Ru(t,Se(L(i)),n);if(l.tag===1){o=y(i),s=ct(a,ie(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,He())}function $g(e,t,n){return new w(0,[e])}function Wu(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new w(1,[o.fields[0]])}function mg(e,t,n,r){const o=t(n,r);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[e(o.fields[0])])}function gg(e,t){let n;const r=e;return n=o=>s=>Hu(0,r,o,s),o=>s=>Wu(Ls(i=>{let a;const l=t;return a=c=>d=>Hu(1,l,c,d),c=>d=>Wu((u,h,f)=>$g([i,u]),Se(a),c,d)}),Se(n),o,s)}function wg(e){return Qm(e,{Compare:Ft})}function _g(e){return tg(e,{Compare:Ft})}function yg(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?dl((r,o)=>{const s=r[0];return o.tag===0?gn(i=>Tt(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new w(0,[He()])):new w(1,[[t,new W(0,["an object",n])]])}function bg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ii((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new w(0,[Tt([i.fields[0],a.fields[0]],o.fields[0])]):new w(1,[a.fields[0]])}else return new w(1,[i.fields[0]])}else return o},new w(0,[He()]),Object.keys(r)):new w(1,[[n,new W(0,["an object",r])]])}function qu(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new w(1,[[n,new W(6,[(o=r.length|0,pn(hn("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new w(0,[He()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],c=pn(hn("%s[%i]"))(n)(a),d=Re(a-e,t),u=Re(a,r);i=gn(h=>Tt(h,l),d(c)(u))}return gn(zo,i)}}function Ku(e,t,n,r,o,s){const i=Vh(a=>js(a)===r,rh(n));if(i!=null){const a=i,l=_r(c=>Zt(e,t,!1,c[1]),ah(a));return gn(c=>lh(a,qn(c)),l.length===0&&s.length<=1?new w(0,[He()]):qu(1,l,o,s))}else return new w(1,[[o,new W(6,["Cannot find case "+r+" in "+at(n)])]])}function Zu(e,t,n,r){let o;const s=new St(Ne());let i;const a=at(r);i=a===""?e:Ym(a,s,e);let l;if(ih(r)){const c=_r(d=>[N0(t,js(d)),Zt(i,t,!1,d[1])],Po(r));l=d=>u=>gn(h=>ch(r,qn(h)),yg(c,d,u))}else if(sh(r))l=c=>d=>{if(typeof d=="string")return Ku(i,t,r,d,c,[]);if(Array.isArray(d)){const u=d;return op(h=>Ku(i,t,r,h,c,u),Pu(c+"[0]",Re(0,u)))}else return new w(1,[[c,new W(0,["a string or array",d])]])};else if(n)l=c=>d=>new w(1,[[c,new W(2,["an extra coder for "+at(r),d])]]);else throw new Error((o=at(r),pn(hn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
12
 
13
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=l,l}function rt(e,t,n,r){let o,s,i,a;const l=be(r),c=up(l,e);if(c==null)if(Mu(r)){const f=rt(e,t,!1,Tr(r));return u=>h=>cc(ee(f),u,h)}else if(ii(r))switch(be(Ru(r))){case"System.SByte":return u=>h=>{const d=r,g=u,y=h,w=tc(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0]|0;return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,x.toString())]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>h=>{const d=r,g=u,y=h,w=nc(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0];return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,x.toString())]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>h=>{const d=r,g=u,y=h,w=rc(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0]|0;return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,uu(x))]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>h=>{const d=r,g=u,y=h,w=oc(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0];return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,x.toString())]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>h=>{const d=r,g=u,y=h,w=sc(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0]|0;return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,Ht(x))]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>h=>{const d=r,g=u,y=h,w=ic(g)(y);if(w.tag===1)return new m(1,[w.fields[0]]);{const x=w.fields[0];return _n(x,dn(d),{Equals:(v,k)=>v===k,GetHashCode:Ye})?new m(0,[hn(d,x.toString())]):new m(1,[[g,new R(1,[be(d),y,"Unkown value provided for the enum"])]])}};default:{const u=be(r),h=cf(mt(`Cannot generate auto decoder for %s.
13
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=l,l}function Zt(e,t,n,r){let o,s,i,a;const l=at(r),c=Xm(l,e);if(c==null)if(Xf(r)){const d=Zt(e,t,!1,Ro(r));return u=>h=>Gu(Se(d),u,h)}else if(za(r))switch(at(th(r))){case"System.SByte":return u=>h=>{const f=r,p=u,_=h,g=Fu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0]|0;return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,v.toString())]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>h=>{const f=r,p=u,_=h,g=Vu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0];return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,v.toString())]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>h=>{const f=r,p=u,_=h,g=Lu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0]|0;return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,Ef(v))]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>h=>{const f=r,p=u,_=h,g=Bu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0];return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,v.toString())]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>h=>{const f=r,p=u,_=h,g=Uu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0]|0;return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,Gn(v))]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>h=>{const f=r,p=u,_=h,g=zu(p)(_);if(g.tag===1)return new w(1,[g.fields[0]]);{const v=g.fields[0];return vr(v,mr(f),{Equals:(b,S)=>b===S,GetHashCode:Bt})?new w(0,[gr(f,v.toString())]):new w(1,[[p,new W(1,[at(f),_,"Unkown value provided for the enum"])]])}};default:{const u=at(r),h=Eh(hn(`Cannot generate auto decoder for %s.
14
14
  Thoth.Json.Net only support the following enum types:
15
15
  - sbyte
16
16
  - byte
@@ -19,7 +19,7 @@ Thoth.Json.Net only support the following enum types:
19
19
  - int
20
20
  - uint32
21
21
  If you can't use one of these types, please pass an extra decoder.
22
- `))(u);return d=>h(d)}}else if(Du(r))if(ai(r)){const f=Kn(u=>rt(e,t,!1,u),Bu(r));return u=>h=>Array.isArray(h)?bt(d=>zu(zt(d)),fc(0,f,u,h)):new m(1,[[u,new R(0,["an array",h])]])}else switch(be(Pu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=rt(e,t,!0,ce(0,pt(r))),u=>h=>k0(ee(o),u,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=rt(e,t,!1,ce(0,pt(r))),u=>h=>lc(ee(s),u,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=rt(e,t,!1,ce(0,pt(r))),u=>h=>S0(ee(i),u,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=rt(e,t,!1,ce(0,pt(r))),h=rt(e,t,!1,ce(1,pt(r)));let d;const g=b([y=>w=>D0(ee(u),ee(h),y,w),(a=T0(ee(u),ee(h)),y=>w=>lc(ee(a),y,w))]);return d=y=>w=>A0(g,y,w),y=>w=>I0($0,ee(d),y,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=rt(e,t,!1,ce(0,pt(r)));return h=>d=>{const g=cc(ee(u),h,d);return g.tag===0?new m(0,[N0(g.fields[0])]):new m(1,[g.fields[0]])}}default:return hc(e,t,n,r)}else switch(l){case"System.Boolean":return f=>u=>_0(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>w0(f,u);case"System.String":return f=>u=>ec(f,u);case"System.Char":return f=>u=>m0(f,u);case"System.SByte":return tc;case"System.Byte":return nc;case"System.Int16":return rc;case"System.UInt16":return oc;case"System.Int32":return sc;case"System.UInt32":return ic;case"System.Double":return f=>u=>y0(f,u);case"System.Single":return f=>u=>b0(f,u);case"System.DateTime":return f=>u=>v0(f,u);case"System.DateTimeOffset":return f=>u=>x0(f,u);case"System.TimeSpan":return f=>u=>C0(f,u);case"System.Guid":return f=>u=>g0(f,u);case"System.Object":return f=>u=>new m(0,[u]);default:return hc(e,t,n,r)}else{const f=c;return u=>h=>f.contents(u)(h)}}function P0(e){return vl({Compare:xr})}function ur(e,t,n){const r=Se(t,new Tn(0,[]));return rt(P0(),r,!1,e)}class R0 extends K{constructor(t){super(),this.Roles=t}}function O0(){return Pt("AccountRegistry.AdminUI.Jwt.JwtPayload",[],R0,()=>[["Roles",To(z)]])}function F0(e){const t=Ro(e??"",["."],void 0,0);if(!Lo((n,r)=>n===r,t)&&t.length===3){let n;const r=ce(1,t);return n=atob(r),cr(ee(ur(O0(),new Tn(1,[]))),n)}else return new m(1,["Failed to decode access token"])}function pc(e,t,n,r){return vp(o=>{xp(o)},e,t,o=>o.tag===1?r(o.fields[0]):n(o.fields[0]))}function B0(){return ue()}function $s(e){return W("/",e)}function L0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+$s(t),n])}function mc(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+$s(t),r])}}function V0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+$s(n),o]);return}}function U0(e,t){Fr(n=>{mc(e,n[0],n[1])},t)}function gc(e,t,n,r,o,s){return Fr(i=>{L0(e,i)},n),Fr(i=>{mc(e,i[0],i[1])},r),$e(o,Di(i=>V0(e,t,i[0],i[1]),s))}function H0(){return[ue(),f0({Compare:qe}),ue()]}function j0(e,t,n,r,o){return Ts(e,r)?[He(e,n),r,o]:[n,u0(e,r),He([e,t],o)]}function z0(e){return Cf((t,n)=>j0(t[0],t[1],n[0],n[1],n[2]),e,H0())}const G0=ue();function wc(e,t){const n=d0(Yn(i=>i[0],e),{Compare:qe}),r=z0(t),o=r[1],s=r[0];if(n.Equals(o))return[s,ue(),e,ue()];{const i=Mf(a=>Ts(a[0],o),e);return[s,i[1],i[0],Mi(a=>!Ts(a[0],n),r[2])]}}function W0(e,t,n,r){const o=qe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=qe(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function q0(e,t,n,r,o){const s=W0(t,n,r,o);return T(()=>id(s,e))}function Z0(e,t,n){return q0(e,t,n,0,(r,o)=>r+o)}class Dn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class K0{constructor(t){this.state=new Dn(0,[Bo(new Array(Ti(t,10)),0,Ti(t,10),null),0])}}function J0(e){return new K0(e)}function _c(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Dn(0,[o,n]):e.state=new Dn(1,[o,n,s]),ke(ce(r,o))}else return}function Y0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];wt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Dn(1,[X0(e,o,s),s.length,0]):e.state=new Dn(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];wt(o,r,t);const s=(r+1)%o.length|0;e.state=new Dn(1,[o,s,r])}}function X0(e,t,n){return Array.from(T(()=>P(ud(t,n),T(()=>P(fd(t,n),T(()=>dd(r=>$(Q()),Z0(0,1,n.length))))))))}class Ns extends K{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function Ms(e,t,n){return new Ns(e,t,r=>B0(),n,ee(r=>{const o=Dt(n)(r);return s=>{o(s)}}),r=>{yp(r[0],r[1])},[r=>!1,r=>{}])}function Q0(e,t){return new Ns(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function em(e){return e.init}function tm(e,t,n,r,o,s,i){const a=Dt(e)(i.init),l=Ao(t)(Dt(i.update)),c=Ao(n)(Dt(i.view)),f=Ao(r)(Dt(i.setState));return new Ns(a,ee(l),Dt(o)(i.subscribe),ee(c),ee(f),i.onError,s(i.termination))}function nm(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,l=J0(10);let c=!1,f=s,u=G0,h=!1;const d=w=>{h||(Y0(l,w),c||(c=!0,y(),c=!1))},g=Dt(e)(d),y=()=>{let w,x=_c(l);for(;!h&&x!=null;){const v=S(x);if(a[0](v))U0(n.onError,u),a[1](f),h=!0;else{const k=n.update(v,f),O=k[0],U=n.subscribe(O);n.setState(O,g),Cl(oe=>{n.onError([gt(mt("Error handling the message: %A"))(v),oe])},g,k[1]),f=O,u=(w=wc(u,U),gc(n.onError,g,w[0],w[1],w[2],w[3])),x=_c(l)}}};c=!0,n.setState(s,g),Cl(w=>{n.onError([gt(mt("Error intitializing:")),w])},g,o[1]),u=(r=wc(u,i),gc(n.onError,g,r[0],r[1],r[2],r[3])),y(),c=!1}function rm(e,t){nm(ee(n=>n),e,t)}function om(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var yc={exports:{}},bc={};const sm=om(vs);/**
22
+ `))(u);return f=>h(f)}}else if(Qf(r))if(Ha(r)){const d=_r(u=>Zt(e,t,!1,u),oh(r));return u=>h=>Array.isArray(h)?gn(f=>uh(qn(f)),qu(0,d,u,h)):new w(1,[[u,new W(0,["an array",h])]])}else switch(at(eh(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Zt(e,t,!0,Re(0,fn(r))),u=>h=>fg(Se(o),u,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Zt(e,t,!1,Re(0,fn(r))),u=>h=>ju(Se(s),u,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Zt(e,t,!1,Re(0,fn(r))),u=>h=>hg(Se(i),u,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Zt(e,t,!1,Re(0,fn(r))),h=Zt(e,t,!1,Re(1,fn(r)));let f;const p=C([_=>g=>bg(Se(u),Se(h),_,g),(a=gg(Se(u),Se(h)),_=>g=>ju(Se(a),_,g))]);return f=_=>g=>pg(p,_,g),_=>g=>mg(wg,Se(f),_,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Zt(e,t,!1,Re(0,fn(r)));return h=>f=>{const p=Gu(Se(u),h,f);return p.tag===0?new w(0,[_g(p.fields[0])]):new w(1,[p.fields[0]])}}default:return Zu(e,t,n,r)}else switch(l){case"System.Boolean":return d=>u=>ig(d,u);case"Microsoft.FSharp.Core.Unit":return d=>u=>sg(d,u);case"System.String":return d=>u=>Pu(d,u);case"System.Char":return d=>u=>rg(d,u);case"System.SByte":return Fu;case"System.Byte":return Vu;case"System.Int16":return Lu;case"System.UInt16":return Bu;case"System.Int32":return Uu;case"System.UInt32":return zu;case"System.Double":return d=>u=>ag(d,u);case"System.Single":return d=>u=>lg(d,u);case"System.DateTime":return d=>u=>cg(d,u);case"System.DateTimeOffset":return d=>u=>ug(d,u);case"System.TimeSpan":return d=>u=>dg(d,u);case"System.Guid":return d=>u=>og(d,u);case"System.Object":return d=>u=>new w(0,[u]);default:return Zu(e,t,n,r)}else{const d=c;return u=>h=>d.contents(u)(h)}}function vg(e){return ru({Compare:Eo})}function Vr(e,t,n){const r=pt(t,new nr(0,[]));return Zt(vg(),r,!1,e)}class xg extends we{constructor(t){super(),this.Roles=t}}function Cg(){return en("AccountRegistry.AdminUI.Jwt.JwtPayload",[],xg,()=>[["Roles",Hs(se)]])}function Sg(e){const t=Zs(e??"",["."],void 0,0);if(!ei((n,r)=>n===r,t)&&t.length===3){let n;const r=Re(1,t);return n=atob(r),Fr(Se(Vr(Cg(),new nr(1,[]))),n)}else return new w(1,["Failed to decode access token"])}function Ju(e,t,n,r){return c0(o=>{u0(o)},e,t,o=>o.tag===1?r(o.fields[0]):n(o.fields[0]))}function kg(){return He()}function qi(e){return he("/",e)}function Ag(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+qi(t),n])}function Yu(e,t,n){try{Ce(n)}catch(r){e(["Error stopping subscription: "+qi(t),r])}}function Eg(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+qi(n),o]);return}}function Ig(e,t){Ho(n=>{Yu(e,n[0],n[1])},t)}function Xu(e,t,n,r,o,s){return Ho(i=>{Ag(e,i)},n),Ho(i=>{Yu(e,i[0],i[1])},r),ct(o,pl(i=>Eg(e,t,i[0],i[1]),s))}function Tg(){return[He(),Q0({Compare:Ft}),He()]}function Ng(e,t,n,r,o){return Wi(e,r)?[Tt(e,n),r,o]:[n,X0(e,r),Tt([e,t],o)]}function Mg(e){return jh((t,n)=>Ng(t[0],t[1],n[0],n[1],n[2]),e,Tg())}const Og=He();function Qu(e,t){const n=eg(to(i=>i[0],e),{Compare:Ft}),r=Mg(t),o=r[1],s=r[0];if(n.Equals(o))return[s,He(),e,He()];{const i=Qh(a=>Wi(a[0],o),e);return[s,i[1],i[0],hl(a=>!Wi(a[0],n),r[2])]}}function Dg(e,t,n,r){const o=Ft(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=Ft(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function Rg(e,t,n,r,o){const s=Dg(t,n,r,o);return D(()=>Tp(s,e))}function Pg(e,t,n){return Rg(e,t,n,0,(r,o)=>r+o)}class Lr extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Fg{constructor(t){this.state=new Lr(0,[Qs(new Array(ul(t,10)),0,ul(t,10),null),0])}}function Vg(e){return new Fg(e)}function ed(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Lr(0,[o,n]):e.state=new Lr(1,[o,n,s]),ht(Re(r,o))}else return}function Lg(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];zt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Lr(1,[Bg(e,o,s),s.length,0]):e.state=new Lr(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];zt(o,r,t);const s=(r+1)%o.length|0;e.state=new Lr(1,[o,s,r])}}function Bg(e,t,n){return Array.from(D(()=>G(Dp(t,n),D(()=>G(Rp(t,n),D(()=>Pp(r=>P(Ne()),Pg(0,1,n.length))))))))}class Ki extends we{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function Zi(e,t,n){return new Ki(e,t,r=>kg(),n,Se(r=>{const o=On(n)(r);return s=>{o(s)}}),r=>{a0(r[0],r[1])},[r=>!1,r=>{}])}function Ug(e,t){return new Ki(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function zg(e){return e.init}function Hg(e,t,n,r,o,s,i){const a=On(e)(i.init),l=Bs(t)(On(i.update)),c=Bs(n)(On(i.view)),d=Bs(r)(On(i.setState));return new Ki(a,Se(l),On(o)(i.subscribe),Se(c),Se(d),i.onError,s(i.termination))}function jg(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,l=Vg(10);let c=!1,d=s,u=Og,h=!1;const f=g=>{h||(Lg(l,g),c||(c=!0,_(),c=!1))},p=On(e)(f),_=()=>{let g,v=ed(l);for(;!h&&v!=null;){const b=O(v);if(a[0](b))Ig(n.onError,u),a[1](d),h=!0;else{const S=n.update(b,d),R=S[0],V=n.subscribe(R);n.setState(R,p),su(ee=>{n.onError([pn(hn("Error handling the message: %A"))(b),ee])},p,S[1]),d=R,u=(g=Qu(u,V),Xu(n.onError,p,g[0],g[1],g[2],g[3])),v=ed(l)}}};c=!0,n.setState(s,p),su(g=>{n.onError([pn(hn("Error intitializing:")),g])},p,o[1]),u=(r=Qu(u,i),Xu(n.onError,p,r[0],r[1],r[2],r[3])),_(),c=!1}function Gg(e,t){jg(Se(n=>n),e,t)}function Wg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var td={exports:{}},nd={};const qg=Wg(Vi);/**
23
23
  * @license React
24
24
  * use-sync-external-store-shim.production.min.js
25
25
  *
@@ -27,10 +27,13 @@ If you can't use one of these types, please pass an extra decoder.
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */var Pn=sm;function im(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var am=typeof Object.is=="function"?Object.is:im,lm=Pn.useState,cm=Pn.useEffect,um=Pn.useLayoutEffect,fm=Pn.useDebugValue;function dm(e,t){var n=t(),r=lm({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return um(function(){o.value=n,o.getSnapshot=t,Ds(o)&&s({inst:o})},[e,n,t]),cm(function(){return Ds(o)&&s({inst:o}),e(function(){Ds(o)&&s({inst:o})})},[e]),fm(n),n}function Ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!am(e,n)}catch{return!0}}function hm(e,t){return t()}var pm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?hm:dm;bc.useSyncExternalStore=Pn.useSyncExternalStore!==void 0?Pn.useSyncExternalStore:pm,yc.exports=bc;var mm=yc.exports;class gm{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=em(o)(this.arg);let l=a[0],c=a[1];i=[[l,f=>{const u=this.finalDispatch;u==null?s.push(f):u(f)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const h=Co(this.state[0]);return rm(this.arg,Q0((d,g)=>{const y=this.state;this.finalDispatch=g,this.state=[d,y[1],!0,s],d!==y[0]&&f()},tm((d,g)=>{const y=this.cmd;return this.cmd=Fe(),[this.state[0],y]},(d,g,y)=>d(g)(this.state[0]),So(d=>d),So(d=>d),ee(d=>d),d=>[g=>d[0](g)?!0:h&&u,g=>{const y=g;Co(y)?Z(y):d[1](g)}],o))),()=>{u=!0}}}}function vc(e,t,n){return new gm(e,t,n)}function wm(e){return e.state}function _m(e){return e.subscribe}function ym(e,t,n){return he(e.arg,t)?!he(e.dependencies,n):!0}function Ps(e,t,n){const r=Ke(()=>vc(e,t,n)),o=r[0];ym(o,t,n)&&r[1](vc(e,t,n));const s=mm.useSyncExternalStore(_m(o),()=>wm(o)),i=s[2],a=s[3],l=s[1];return xe(()=>{if(i&&a.length>0){let c=ie(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Z(c)}yu(a)}},[i,a]),[s[0],l]}class fr extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class xc extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class bm extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class to extends K{constructor(t,n,r,o,s,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Rn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Cc extends K{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function vm(e){return new xc("Authorization",e)}const tn=new to("",new fr(0,[]),ue(),!1,void 0,void 0,void 0,new bm(0,[]));new Cc(0,"","","",vl({Compare:xr}),new Rn(0,[""]));function kc(e,t){return ki(t)?new Array(0):Ro(t,[e],void 0,0)}function xm(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 no(e){return new to(e,tn.method,tn.headers,tn.withCredentials,tn.overridenMimeType,tn.overridenResponseType,tn.timeout,tn.content)}function ro(e,t){return new to(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Sc(e,t){return new to(t.url,t.method,$e(t.headers,j(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ac(e){return jh(t=>{const n=new XMLHttpRequest;n.open(xm(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,u,h,d,g;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,h=(d=n.responseType,d===""?new Rn(0,[n.responseText]):d==="text"?new Rn(0,[n.responseText]):d==="arraybuffer"?new Rn(2,[n.response]):d==="blob"?new Rn(1,[n.response]):new Rn(3,[n.response])),g=dp(yf(y=>{const w=b(kc(":",y));if(!F(w))return[M(w).toLocaleLowerCase(),W(":",_(w)).trim()]},kc(`\r
31
- `,n.getAllResponseHeaders())),{Compare:xr}),new Cc(f,l,u,n.responseURL,g,h)))};const r=ie(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Z(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ke(a.fields[0]));break}case 3:{n.send(ke(a.fields[0]));break}case 2:{n.send(ke(a.fields[0]));break}default:n.send()}})}function Cm(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(s)){const i=r;return i.tag===1?new m(1,[i.fields[0]]):new m(0,[Or(i.fields[0])])}else{let i;const a=o(M(s));if(a.tag===1)i=new m(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new m(1,[l.fields[0]]):new m(0,[He(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=_(s);continue e}}}function km(e,t){return Cm(new m(0,[ue()]),e,t)}function Sm(e){return km(t=>t,e)}function Rs(e){return new Xi(vt(e))}function oo(e){return`${e}/account-registry/admin`}function so(e,t){return L.Delay(()=>{const n=Sc(vm(gt(mt("Bearer %s"))(e)),t);let r;const o=Ac(n);return r=L.Bind(o,s=>L.Return(new m(0,[s]))),L.Bind(r,s=>{const i=s;if(i.tag===1)return L.Return(new m(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Ac(n);return L.Bind(l,c=>L.Return(new m(0,[c])))}else return L.Return(new m(0,[a]))}})})}function Am(e,t){return L.Delay(()=>{const n=so(t,ro(new fr(0,[]),no(`${oo(e)}/partners`)));return L.Bind(n,r=>{const o=r;if(o.tag===1)return L.Return(new m(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=cr(ee(ur(To(zd()),new Tn(1,[]))),s.responseText);return i=a.tag===1?new m(1,[a.fields[0]]):Sm(Yn(Lp,a.fields[0])),L.Return(i)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Em(e,t,n,r){const o=vt(n),s=it(r);return L.Delay(()=>{const i=so(t,ro(new fr(0,[]),no(`${oo(e)}/partners/${o}/accounts/${s}`)));return L.Bind(i,a=>{const l=a;if(l.tag===1)return L.Return(new m(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const f=cr(ee(ur(Wd(),new Tn(1,[]))),c.responseText);return L.Return(f)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Os(e,t,n,r,o){return L.Delay(()=>{let s,i,a,l;const c="?"+W("&",Di(u=>u,b([(s=Nl(r.SearchText),Si(s)?void 0:`search=${encodeURIComponent(s)}`),(i=Ep(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=Ml(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),f=so(t,(l=ro(new fr(0,[]),no(`${oo(e)}/partners/${at(n)}/accounts${c}`)),o==null?l:Sc(new xc("token",o),l)));return L.Bind(f,u=>{const h=u;if(h.tag===1)return L.Return(new m(1,[h.fields[0]]));{const d=h.fields[0];if(d.statusCode===200){const g=cr(ee(ur(Kd(),new Tn(1,[]))),d.responseText);return L.Return(g)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Im(e,t,n){const r=it(n);return L.Delay(()=>{const o=so(t,ro(new fr(0,[]),no(`${oo(e)}/search-by-id/${r}`)));return L.Bind(o,s=>{const i=s;if(i.tag===1)return L.Return(new m(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=cr(ee(ur(Yd(),new Tn(1,[]))),a.responseText);return L.Return(l)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Tm(e,t){return p("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),p("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const $m=Zr(Tm);class Le extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function Nm(e,t,n){let r,o;return p("li",D(b([["key",e],["className","flex"],(r=[p("div",D(b([["className","flex items-center"],(o=me(T(()=>{let s;return P(n?Ze():$((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},p($m,s))),T(()=>$(p("a",D(me(T(()=>P($(["children",e]),T(()=>P(t!=null?$(["href",N(S(t),1)]):Ze(),T(()=>$(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))}function Mm(e){let t,n;return p("nav",D(b([["className","pt-2"],["aria-label","Breadcrumb"],(t=[p("ol",D(b([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Ef((r,o)=>Nm(o.fields[0][0],o.fields[0][1],r===0),e),["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function Ec(){return new Le(["Partners",E(new C(0,[]))])}function Ic(e,t){return new Le([t,E(new C(1,[e]))])}function Dm(e){return new Le(["Super",E(new C(4,[e]))])}function Pm(e){return new Le(["Benefits",E(new C(5,[e]))])}function Rm(e){return new Le(["Bank Details",E(new C(6,[e]))])}function Om(e){return new Le(["Directory",E(new C(2,[e]))])}function Fm(e){return new Le(["Accounts",E(new C(3,[e]))])}function Bm(e){return new Le([e,void 0])}function Lm(e,t){let n;return new Le(["Directory",E((n=[e,t],new C(8,[n[0],n[1]])))])}function Vm(e,t){let n;return new Le(["Imports",E((n=[e,t],new C(9,[n[0],n[1]])))])}function Um(e,t){let n;return new Le(["Super",E((n=[e,t],new C(10,[n[0],n[1]])))])}function Hm(e,t){let n;return new Le(["Benefits",E((n=[e,t],new C(11,[n[0],n[1]])))])}function jm(e,t){let n;return new Le(["Bank Details",E((n=[e,t],new C(12,[n[0],n[1]])))])}function zm(e,t){let n;return new Le(["Salary Packaging",E((n=[e,t],new C(13,[n[0],n[1]])))])}function dr(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,d=h.Name;n=d.tag===2?d.fields[0].tag===1?Fi(h.Id):Vo(d.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,d=h.Name;o=d.tag===2?d.fields[0].tag===1?Bi(h.Id):Vo(d.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,f,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,f=a),c){case 0:{i=b([Ec(),Ic(f.Id,n),Fm(f.Id),Bm(o)]);break}case 1:{i=b([Ec(),Ic(u.Id,n)]);break}default:i=ue()}return Mm((t=e.page,t.tag===14||t.tag===1||t.tag===3?i:t.tag===4?$e(i,j(Dm(t.fields[0]))):t.tag===5?$e(i,j(Pm(t.fields[0]))):t.tag===6?$e(i,j(Rm(t.fields[0]))):t.tag===2?$e(i,j(Om(t.fields[0]))):t.tag===7?i:t.tag===8?$e(i,j(Lm(t.fields[0],t.fields[1]))):t.tag===9?$e(i,j(Vm(t.fields[0],t.fields[1]))):t.tag===10?$e(i,j(Um(t.fields[0],t.fields[1]))):t.tag===11?$e(i,j(Hm(t.fields[0],t.fields[1]))):t.tag===12?$e(i,j(jm(t.fields[0],t.fields[1]))):t.tag===13?$e(i,j(zm(t.fields[0],t.fields[1]))):i))}class Gm extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function Wm(e){return new Gm(e)}function qm(e){return e.fields[0]}function I(e,t){const n=(t!=null?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return Wm(p("a",D(me(T(()=>P($(["key",e]),T(()=>P($(["children",e]),T(()=>P($(["className",n]),T(()=>t!=null?$(["href",N(j(S(t)),1)]):Ze())))))))))))}function Tc(e){let t,n;return p("div",D(b([["className","border-b border-gray-200"],(t=[p("nav",D(b([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=de(qm,e),["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}class Zm extends K{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const nn=Dh();let rn=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class Km{constructor(t){this.props=t}}function Jm(e){return new Km(e)}function $c(e){return t=>n=>L.Delay(()=>{const r=Rs(e.props.partnerId);return L.Bind(Os(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new rn(2,[new Y(2,[o])])),L.Zero()))})}function Ym(e){return t=>n=>r=>L.Delay(()=>{const o=Rs(e.props.partnerId);return L.Bind(Os(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new rn(3,[s])),L.Zero()))})}function Xm(e,t,n){return Os(e.props.backendUrl,e.props.accessToken,Rs(e.props.partnerId),t,void 0)}let On=class extends K{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function Qm(){return[new On(new Y(0,[]),Ip,Ap,Np(20)),Fe()]}function eg(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new On(new Y(1,[]),n.SearchText,a,n.PageSize),Ee(l=>{const c=new As(n.SearchText,a,n.PageSize);An($c(e)(c)(l))})]}case 2:return[new On(t.fields[0],n.SearchText,n.Sort,n.PageSize),Fe()];case 3:{const a=t.fields[0];return[new On((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new Y(2,[new m(1,[o.fields[0]])]):new Y(2,[new m(0,[new sa($e(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new Y(2,[new m(1,[s.fields[0]])]):new Y(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new Y(2,[new m(1,[i.fields[0]])]):new Y(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Fe()]}case 4:return[new On(new Y(1,[]),n.SearchText,n.Sort,n.PageSize),Ee(a=>{const l=new As(n.SearchText,n.Sort,n.PageSize);An($c(e)(l)(a))})];default:return[new On(n.Data,Tp(t.fields[0]),n.Sort,n.PageSize),Fe()]}}function Nc(e,t,n,r){let o,s;return p("div",D(b([["className",W(" ",["flex-grow","max-w-md"])],(o=[p("label",{for:"search",children:"Search",className:W(" ",["block","text-sm","font-medium","text-gray-700"])}),p("div",D(b([["className","mt-1"],(s=[p("input",{id:"search",name:"search",type:"text",className:W(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))}function tg(e){let t,n;return p("div",D(b([["className","pt-6"],(t=[p("div",D(b([["className",W(" ",["flex","justify-end"])],(n=[p("button",{type:"search",children:"Search",className:W(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}class ng extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function Mc(e){return new ng(e)}function Dc(e){return e.fields[0]}class rg extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function Fn(e){return new rg(e)}function Pc(e){return e.fields[0]}function og(){return["scope","col"]}function on(e){return Mc(p("th",D(b([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],og(),["children",e]]))))}function sg(e,t){let n;return Fn(p("td",D(b([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[p("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",A.Children.toArray(Array.from(n))])]))))}function io(e,t){return Fn(p("td",{className:W(" ",P(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function ig(e,t){let n,r,o,s,i,a,l;return p("div",D(b([["className","flex flex-col mt-4"],(n=[p("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[p("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[p("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[p("table",D(b([["className","min-w-full divide-y divide-gray-200"],(i=[p("thead",{className:"bg-gray-50",children:(a=de(Dc,e),p("tr",{children:A.Children.toArray(Array.from(a))}))}),(l=ji((c,f)=>(u=>{let h;return p("tr",D(b([["className",c%2===0?"bg-white":"bg-gray-50"],(h=de(Pc,u),["children",A.Children.toArray(Array.from(h))])])))})(f),t),p("tbody",{children:A.Children.toArray(Array.from(l))}))],["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))}function Rc(e){return["fillRule",e]}function Oc(e){return["clipRule",e]}const ag=p("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(p("path",D(b([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Rc("evenodd"),Oc("evenodd")]))));return["children",A.Children.toArray(Array.from(t))]})()]))),lg=p("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(p("path",D(b([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Rc("evenodd"),Oc("evenodd")]))));return["children",A.Children.toArray(Array.from(t))]})()]))),Fc=p("svg",D(b([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=j(p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",A.Children.toArray(Array.from(e))]})()])));function cg(e,t,n){return e?$e(n,t):n}function Bc(e,t,n,r){let o,s,i;return Mc(p("th",D(b([["className",W(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[p("a",D(b([["className",W(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,p("span",D(b([["className",W(" ",cg(!e,j("invisible"),b(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=me(T(()=>$(t?ag:lg))),["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])]))))}function ug(e,t){return Bc(he(El(e.Sort),new It(1,[])),he(Il(e.Sort),new en(0,[])),n=>{t(new rn(1,[Tl(new It(1,[]),e.Sort)]))},"Name")}function fg(e,t){return Bc(he(El(e.Sort),new It(0,[])),he(Il(e.Sort),new en(0,[])),n=>{t(new rn(1,[Tl(new It(0,[]),e.Sort)]))},"Id")}function dg(e,t){let n;return Fn(p("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[p("span",{children:[e]}),p("br",{}),p("span",{children:[t]})],["children",A.Children.toArray(Array.from(n))])]))))}function hg(e,t,n){let r;return Fn(p("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=me(T(()=>{let o;return P($(p("div",D(b([["className",W(" ",["font-medium"])],(o=[p("span",{children:[e]})],["children",A.Children.toArray(Array.from(o))])])))),T(()=>{let s;return P((s=t,s==null?$(Q()):$(p("span",{children:["Legal Entity: "+s]}))),T(()=>{const i=n;if(i==null)return $(Q());{const a=i;return P($(p("br",{})),T(()=>$(p("span",{children:["ABN: "+a]}))))}}))}))})),["children",A.Children.toArray(Array.from(r))])]))))}function pg(e){return Fn(p("td",{className:W(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function mg(e,t,n,r){let o;return Fn(p("td",D(b([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=me(T(()=>P($(p("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),T(()=>{let s,i;return P((s=r,s==null?$(Q()):(i=s,P($(p("br",{})),T(()=>$(p("span",{children:[`Channel ID: ${i}`]})))))),T(()=>{const a=n;if(a==null)return $(Q());{const l=a;return P($(p("br",{})),T(()=>$(p("span",{children:[`External ID: ${l}`]}))))}}))})))),["children",A.Children.toArray(Array.from(o))])]))))}function gg(e,t,n){const r=xt(n.AccountId);return me(T(()=>{let o;return P($(mg(N(E((o=[e,r],new C(7,[o[0],o[1]]))),1),n.AccountId,n.ExternalId,n.ChannelId)),T(()=>P($(hg(n.Name,n.BusinessName,n.BusinessNumber)),T(()=>P(t.ReadProtectedData?$(dg(Se(n.Contact,""),Se(n.ContactMobilePhone,""))):Ze(),T(()=>$(pg(n.Website))))))))}))}class wg extends K{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class Lc extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class Vc extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function _g(e){let t;return p("thead",{className:"bg-gray-50",children:(t=de(Dc,e),p("tr",{children:A.Children.toArray(Array.from(t))}))})}function yg(e,t){let n;return p("tr",D(b([["className",e%2===0?"bg-white":"bg-gray-50"],(n=de(Pc,t),["children",A.Children.toArray(Array.from(n))])])))}function bg(e,t,n,r,o,s){let i,a,l,c,f,u,h;const d=t!=null&&n!=null?(i=t|0,a=n|0,me(T(()=>P($("Showing "),T(()=>P($(p("span",{className:"font-medium",children:`${i}`})),T(()=>P($(" to "),T(()=>P($(p("span",{className:"font-medium",children:`${a}`})),T(()=>P($(" of "),T(()=>r.tag===1?j(" many"):b([p("span",{className:"font-medium",children:Ie(r.fields[0])})," results"])))))))))))))):j(Q()),g=me(T(()=>{let y,w;return P((y=s,y==null?$(Q()):(w=y,$(p("a",{className:W(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:w,children:"Previous "})))),T(()=>{const x=o;if(x==null)return $(Q());{const v=x;return $(p("a",{className:W(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:v,children:" Next"}))}}))}));return p("tfoot",D(b([["className",W(" ",["w-full"])],(l=[p("tr",D(j((c=[p("td",D(b([["colSpan",e],(f=[p("nav",D(b([["className",W(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[p("div",D(b([["className",W(" ",["hidden","sm:block"])],(h=[p("p",{className:W(" ",["text-sm","text-gray-700"]),children:A.Children.toArray(Array.from(d))})],["children",A.Children.toArray(Array.from(h))])]))),p("div",{className:W(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:A.Children.toArray(Array.from(g))})],["children",A.Children.toArray(Array.from(u))])])))],["children",A.Children.toArray(Array.from(f))])])))],["children",A.Children.toArray(Array.from(c))]))))],["children",A.Children.toArray(Array.from(l))])])))}function vg(e,t){const n=ir(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;bi(mt("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function xg(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,f=Rf(a,i.Data),u=vg(mn(f),i.LoadNext),h=u[0]|0,d=u[1];let g;const y=Nf(h-1,f);g=y==null?new Lc(1,[]):new Lc(0,[y]);const w=mn(i.Data)|0,x=i.LoadNext==null?new Vc(0,[w]):new Vc(1,[]),v=g.tag===1?void 0:w>=1?(h-1)*a+1:void 0,k=g.tag===1?void 0:w>=1?(h-1)*a+mn(g.fields[0]):void 0,O=h===1?void 0:u[2],U=h===mn(f)?i.LoadNext!=null?d:void 0:h<mn(f)?d:void 0;return p("div",D(b([["className","flex flex-col mt-4"],(t=[p("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[p("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[p("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[p("table",D(b([["className","min-w-full divide-y divide-gray-200"],(s=me(T(()=>P($(_g(c)),T(()=>{let oe,we;return P((oe=g,oe.tag===1?$(Q()):$((we=ji(yg,l(oe.fields[0])),p("tbody",{children:A.Children.toArray(Array.from(we))})))),T(()=>$(bg(mn(c),v,k,x,U,O))))})))),["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function sn(e){const t=e.error,n=j(p("span",{children:[t]}));return p("div",{children:A.Children.toArray(Array.from(n))})}function ao(){const e=j(p("span",{children:["Please wait..."]}));return p("div",{children:A.Children.toArray(Array.from(e))})}function Cg(e){let t,n,r,o,s,i,a;const l=Sn(nn),c=Jm({accessToken:l.AccessToken,backendUrl:l.BackendUrl,partnerId:e.partnerId}),f=Ps(()=>Ms(Qm,(O,U)=>eg(c,O,U),(O,U)=>{}),void 0,void 0),u=f[0],h=f[1],d=new As(u.SearchText,u.Sort,u.PageSize);xs((t=[()=>Xm(c,d),O=>{h(new rn(2,[O]))}],xl(t[0],t[1])));const g=O=>{h(new rn(4,[]))},y=u.Data;let w,x,v,k;switch(y.tag){case 0:case 1:{w=2;break}case 3:{w=3,k=y.fields[0];break}default:y.fields[0].tag===1?(w=1,v=y.fields[0].fields[0]):(w=0,x=y.fields[0].fields[0])}switch(w){case 0:{const O=b([p("div",D(b([["className",W(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(n=[p("div",D(b([["className",W(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[Nc(Nl(u.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",U=>{h(new rn(0,[U]))},g),tg(g)],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])]))),(o=x,s=me(T(()=>P($(fg(u,h)),T(()=>P($(ug(u,h)),T(()=>P(l.Roles.ReadProtectedData?$(on("Contact")):Ze(),T(()=>$(on("Website")))))))))),i=new wg(o.Accounts,Xe(U=>()=>{An(Ym(c)(d)(U)(h))},o.Token)),a=Ml(u.PageSize)|0,p(xg,{columnHeaders:s,renderRowCells:U=>Yn(oe=>gg(e.partnerId,l.Roles,oe),U),pageSize:a,data:i}))]);return p("div",{children:A.Children.toArray(Array.from(O))})}case 1:return p(sn,{error:v});case 2:return p(ao,null);default:{const O=Ie(k);return p(sn,{error:O})}}}let lo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Uc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new lo(1,[t]),new lo(0,[n]),new lo(2,[vt(o)]),Xe(i=>new lo(3,[it(i)]),r)]);return p("superhero-super-configuration",Wt(s,1))}let co=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Hc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new co(1,[t]),new co(0,[n]),new co(2,[vt(o)]),Xe(i=>new co(3,[it(i)]),r)]);return p("superhero-benefits-onboarding-configuration",Wt(s,1))}let uo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function jc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new uo(1,[t]),new uo(0,[n]),new uo(2,[vt(o)]),Xe(i=>new uo(3,[it(i)]),r)]);return p("superhero-bank-details",Wt(s,1))}let fo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function zc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new fo(1,[t]),new fo(0,[n]),new fo(2,[vt(o)]),Xe(i=>new fo(3,[it(i)]),r)]);return p("superhero-profile-directory-app",Wt(s,1))}var kg=Object.defineProperty,Sg=(e,t,n)=>t in e?kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fs=(e,t,n)=>(Sg(e,typeof t!="symbol"?t+"":t,n),n);let Ag=class{constructor(){Fs(this,"current",this.detect()),Fs(this,"handoffState","pending"),Fs(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ho=new Ag,hr=(e,t)=>{ho.isServer?xe(e,t):Ft(e,t)};function Bn(e){let t=Ne(e);return hr(()=>{t.current=e},[e]),t}let Tt=function(e){let t=Bn(e);return je.useCallback((...n)=>t.current(...n),[t])};function Eg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function pr(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Eg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=pr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Gc(){let[e]=Ke(pr);return xe(()=>()=>e.dispose(),[e]),e}function Ig(){let e=typeof document>"u";return"useSyncExternalStore"in vs?(t=>t.useSyncExternalStore)(vs)(()=>()=>{},()=>!1,()=>!e):!1}function Wc(){let e=Ig(),[t,n]=Ke(ho.isHandoffComplete);return t&&ho.isHandoffComplete===!1&&n(!1),xe(()=>{t!==!0&&n(!0)},[t]),xe(()=>ho.handoff(),[]),e?!1:t}function lt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lt),r}let Tg=Symbol();function qc(...e){let t=Ne(e);xe(()=>{t.current=e},[e]);let n=Tt(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Tg]))?void 0:n}function po(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Zc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zc||{}),Bt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Bt||{});function Kc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??$g;let l=Jc(t,e);if(s)return mo(l,n,r,i,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return mo(u,n,r,i,a)}if(c&1){let{unmount:f=!0,...u}=l;return lt(f?0:1,{0(){return null},1(){return mo({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return mo(l,n,r,i,a)}function mo(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...l}=Ls(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let h=!1,d=[];for(let[g,y]of Object.entries(t))typeof y=="boolean"&&(h=!0),y===!0&&d.push(g);h&&(u["data-headlessui-state"]=d.join(" "))}if(s===Ae&&Object.keys(Yc(l)).length>0){if(!kn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(`
32
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(`
30
+ */var Br=qg;function Kg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zg=typeof Object.is=="function"?Object.is:Kg,Jg=Br.useState,Yg=Br.useEffect,Xg=Br.useLayoutEffect,Qg=Br.useDebugValue;function ew(e,t){var n=t(),r=Jg({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Xg(function(){o.value=n,o.getSnapshot=t,Ji(o)&&s({inst:o})},[e,n,t]),Yg(function(){return Ji(o)&&s({inst:o}),e(function(){Ji(o)&&s({inst:o})})},[e]),Qg(n),n}function Ji(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zg(e,n)}catch{return!0}}function tw(e,t){return t()}var nw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tw:ew;nd.useSyncExternalStore=Br.useSyncExternalStore!==void 0?Br.useSyncExternalStore:nw,td.exports=nd;var rw=td.exports;class ow{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=zg(o)(this.arg);let l=a[0],c=a[1];i=[[l,d=>{const u=this.finalDispatch;u==null?s.push(d):u(d)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=d=>{let u=!1;const h=Fs(this.state[0]);return Gg(this.arg,Ug((f,p)=>{const _=this.state;this.finalDispatch=p,this.state=[f,_[1],!0,s],f!==_[0]&&d()},Hg((f,p)=>{const _=this.cmd;return this.cmd=kt(),[this.state[0],_]},(f,p,_)=>f(p)(this.state[0]),Ls(f=>f),Ls(f=>f),Se(f=>f),f=>[p=>f[0](p)?!0:h&&u,p=>{const _=p;Fs(_)?Ce(_):f[1](p)}],o))),()=>{u=!0}}}}function rd(e,t,n){return new ow(e,t,n)}function sw(e){return e.state}function iw(e){return e.subscribe}function aw(e,t,n){return Je(e.arg,t)?!Je(e.dependencies,n):!0}function Yi(e,t,n){const r=Ke(()=>rd(e,t,n)),o=r[0];aw(o,t,n)&&r[1](rd(e,t,n));const s=rw.useSyncExternalStore(iw(o),()=>sw(o)),i=s[2],a=s[3],l=s[1];return Me(()=>{if(i&&a.length>0){let c=Pe(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const d=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Ce(c)}Ff(a)}},[i,a]),[s[0],l]}class fo extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class od extends q{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class lw extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class is extends we{constructor(t,n,r,o,s,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Ur extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class sd extends we{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function id(e){return new od("Authorization",e)}const rr=new is("",new fo(0,[]),He(),!1,void 0,void 0,void 0,new lw(0,[]));new sd(0,"","","",ru({Compare:Eo}),new Ur(0,[""]));function ad(e,t){return il(t)?new Array(0):Zs(t,[e],void 0,0)}function cw(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 ho(e){return new is(e,rr.method,rr.headers,rr.withCredentials,rr.overridenMimeType,rr.overridenResponseType,rr.timeout,rr.content)}function as(e,t){return new is(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Xi(e,t){return new is(t.url,t.method,ct(t.headers,ie(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Qi(e){return Nm(t=>{const n=new XMLHttpRequest;n.open(cw(e.method),e.url),n.onreadystatechange=()=>{let l,c,d,u,h,f,p;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),d=n.status|0,u=n.responseType,h=(f=n.responseType,f===""?new Ur(0,[n.responseText]):f==="text"?new Ur(0,[n.responseText]):f==="arraybuffer"?new Ur(2,[n.response]):f==="blob"?new Ur(1,[n.response]):new Ur(3,[n.response])),p=e0(Lh(_=>{const g=C(ad(":",_));if(!Z(g))return[L(g).toLocaleLowerCase(),he(":",y(g)).trim()]},ad(`\r
31
+ `,n.getAllResponseHeaders())),{Compare:Eo}),new sd(d,l,u,n.responseURL,p,h)))};const r=Pe(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{Ce(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ht(a.fields[0]));break}case 3:{n.send(ht(a.fields[0]));break}case 2:{n.send(ht(a.fields[0]));break}default:n.send()}})}function uw(e,t,n){e:for(;;){const r=e,o=t,s=n;if(Z(s)){const i=r;return i.tag===1?new w(1,[i.fields[0]]):new w(0,[zo(i.fields[0])])}else{let i;const a=o(L(s));if(a.tag===1)i=new w(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new w(1,[l.fields[0]]):new w(0,[Tt(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=y(s);continue e}}}function dw(e,t){return uw(new w(0,[He()]),e,t)}function fw(e){return dw(t=>t,e)}function ea(e){return new Ol(tn(e))}function ls(e){return`${e}/account-registry/admin`}function cs(e,t){return J.Delay(()=>{const n=Xi(id(pn(hn("Bearer %s"))(e)),t);let r;const o=Qi(n);return r=J.Bind(o,s=>J.Return(new w(0,[s]))),J.Bind(r,s=>{const i=s;if(i.tag===1)return J.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Qi(n);return J.Bind(l,c=>J.Return(new w(0,[c])))}else return J.Return(new w(0,[a]))}})})}function hw(e,t){return J.Delay(()=>{const n=cs(t,as(new fo(0,[]),ho(`${ls(e)}/partners`)));return J.Bind(n,r=>{const o=r;if(o.tag===1)return J.Return(new w(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=Fr(Se(Vr(Hs(A$()),new nr(1,[]))),s.responseText);return i=a.tag===1?new w(1,[a.fields[0]]):fw(to(A0,a.fields[0])),J.Return(i)}else return J.Return(new w(1,["Unexpected response from backend"]))}})})}function pw(e,t,n,r){const o=tn(n),s=Ht(r);return J.Delay(()=>{const i=cs(t,as(new fo(0,[]),ho(`${ls(e)}/partners/${o}/accounts/${s}`)));return J.Bind(i,a=>{const l=a;if(l.tag===1)return J.Return(new w(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const d=Fr(Se(Vr(I$(),new nr(1,[]))),c.responseText);return J.Return(d)}else return J.Return(new w(1,["Unexpected response from backend"]))}})})}function ta(e,t,n,r,o){return J.Delay(()=>{let s,i,a,l;const c="?"+he("&",pl(u=>u,C([(s=hu(r.SearchText),al(s)?void 0:`search=${encodeURIComponent(s)}`),(i=$0(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=pu(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),d=cs(t,(l=as(new fo(0,[]),ho(`${ls(e)}/partners/${jt(n)}/accounts${c}`)),o==null?l:Xi(new od("token",o),l)));return J.Bind(d,u=>{const h=u;if(h.tag===1)return J.Return(new w(1,[h.fields[0]]));{const f=h.fields[0];if(f.statusCode===200){const p=Fr(Se(Vr(M$(),new nr(1,[]))),f.responseText);return J.Return(p)}else return J.Return(new w(1,["Unexpected response from backend"]))}})})}function $w(e,t,n){const r=Ht(n);return J.Delay(()=>{const o=cs(t,as(new fo(0,[]),ho(`${ls(e)}/search-by-id/${r}`)));return J.Bind(o,s=>{const i=s;if(i.tag===1)return J.Return(new w(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=Fr(Se(Vr(D$(),new nr(1,[]))),a.responseText);return J.Return(l)}else return J.Return(new w(1,["Unexpected response from backend"]))}})})}function mw(e,t){return $("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}const gw=Ar(mw);function ww(e,t){return $("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const _w=Ar(ww);function yw(e,t){return $("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))}const bw=Ar(yw);class gt extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function vw(e,t,n){let r,o;return $("li",z(C([["key",e],["className","flex"],(r=[$("div",z(C([["className","flex items-center"],(o=Ue(D(()=>{let s;return G(n?Nt():P((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},$(_w,s))),D(()=>P($("a",z(Ue(D(()=>G(P(["children",e]),D(()=>G(t!=null?P(["href",M(O(t),1)]):Nt(),D(()=>P(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))}function xw(e){let t,n;return $("nav",z(C([["className","pt-2"],["aria-label","Breadcrumb"],(t=[$("ol",z(C([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Kh((r,o)=>vw(o.fields[0][0],o.fields[0][1],r===0),e),["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function ld(){return new gt(["Partners",E(new k(0,[]))])}function cd(e,t){return new gt([t,E(new k(1,[e]))])}function Cw(e){return new gt(["Super",E(new k(4,[e]))])}function Sw(e){return new gt(["Benefits",E(new k(5,[e]))])}function kw(e){return new gt(["Bank Details",E(new k(6,[e]))])}function Aw(e){return new gt(["Directory",E(new k(2,[e]))])}function Ew(e){return new gt(["Workspace",E(new k(7,[e]))])}function Iw(e){return new gt(["Accounts",E(new k(3,[e]))])}function Tw(e){return new gt([e,void 0])}function Nw(e,t){let n;return new gt(["Directory",E((n=[e,t],new k(9,[n[0],n[1]])))])}function Mw(e,t){let n;return new gt(["Imports",E((n=[e,t],new k(10,[n[0],n[1]])))])}function Ow(e,t){let n;return new gt(["Super",E((n=[e,t],new k(11,[n[0],n[1]])))])}function Dw(e,t){let n;return new gt(["Benefits",E((n=[e,t],new k(12,[n[0],n[1]])))])}function Rw(e,t){let n;return new gt(["Bank Details",E((n=[e,t],new k(13,[n[0],n[1]])))])}function Pw(e,t){let n;return new gt(["Salary Packaging",E((n=[e,t],new k(14,[n[0],n[1]])))])}function Fw(e,t){let n;return new gt(["Workspace",E((n=[e,t],new k(15,[n[0],n[1]])))])}function po(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,f=h.Name;n=f.tag===2?f.fields[0].tag===1?wl(h.Id):ti(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,f=h.Name;o=f.tag===2?f.fields[0].tag===1?_l(h.Id):ti(f.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,d,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,d=a),c){case 0:{i=C([ld(),cd(d.Id,n),Iw(d.Id),Tw(o)]);break}case 1:{i=C([ld(),cd(u.Id,n)]);break}default:i=He()}return xw((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?ct(i,ie(Cw(t.fields[0]))):t.tag===5?ct(i,ie(Sw(t.fields[0]))):t.tag===6?ct(i,ie(kw(t.fields[0]))):t.tag===2?ct(i,ie(Aw(t.fields[0]))):t.tag===7?ct(i,ie(Ew(t.fields[0]))):t.tag===8?i:t.tag===9?ct(i,ie(Nw(t.fields[0],t.fields[1]))):t.tag===10?ct(i,ie(Mw(t.fields[0],t.fields[1]))):t.tag===11?ct(i,ie(Ow(t.fields[0],t.fields[1]))):t.tag===12?ct(i,ie(Dw(t.fields[0],t.fields[1]))):t.tag===13?ct(i,ie(Rw(t.fields[0],t.fields[1]))):t.tag===14?ct(i,ie(Pw(t.fields[0],t.fields[1]))):t.tag===15?ct(i,ie(Fw(t.fields[0],t.fields[1]))):i))}class Vw extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function Lw(e){return new Vw(e)}function Bw(e){return e.fields[0]}function I(e,t){const n=(t!=null?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return Lw($("a",z(Ue(D(()=>G(P(["key",e]),D(()=>G(P(["children",e]),D(()=>G(P(["className",n]),D(()=>t!=null?P(["href",M(ie(O(t)),1)]):Nt())))))))))))}function ud(e){let t,n;return $("div",z(C([["className","border-b border-gray-200"],(t=[$("nav",z(C([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=qe(Bw,e),["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}class Uw extends we{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const Ln=vm();let or=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class zw{constructor(t){this.props=t}}function Hw(e){return new zw(e)}function dd(e){return t=>n=>J.Delay(()=>{const r=ea(e.props.partnerId);return J.Bind(ta(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new or(2,[new Ae(2,[o])])),J.Zero()))})}function jw(e){return t=>n=>r=>J.Delay(()=>{const o=ea(e.props.partnerId);return J.Bind(ta(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new or(3,[s])),J.Zero()))})}function Gw(e,t,n){return ta(e.props.backendUrl,e.props.accessToken,ea(e.props.partnerId),t,void 0)}let zr=class extends we{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function Ww(){return[new zr(new Ae(0,[]),m0,p0,_0(20)),kt()]}function qw(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new zr(new Ae(1,[]),n.SearchText,a,n.PageSize),tt(l=>{const c=new Hi(n.SearchText,a,n.PageSize);Nr(dd(e)(c)(l))})]}case 2:return[new zr(t.fields[0],n.SearchText,n.Sort,n.PageSize),kt()];case 3:{const a=t.fields[0];return[new zr((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new Ae(2,[new w(1,[o.fields[0]])]):new Ae(2,[new w(0,[new Ul(ct(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new Ae(2,[new w(1,[s.fields[0]])]):new Ae(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new Ae(2,[new w(1,[i.fields[0]])]):new Ae(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),kt()]}case 4:return[new zr(new Ae(1,[]),n.SearchText,n.Sort,n.PageSize),tt(a=>{const l=new Hi(n.SearchText,n.Sort,n.PageSize);Nr(dd(e)(l)(a))})];default:return[new zr(n.Data,g0(t.fields[0]),n.Sort,n.PageSize),kt()]}}function fd(e,t,n,r){let o,s;return $("div",z(C([["className",he(" ",["flex-grow"])],(o=[$("label",{for:"search",children:"Search",className:he(" ",["block","text-sm","font-medium","text-gray-700"])}),$("div",z(C([["className","mt-1"],(s=[$("input",{id:"search",name:"search",type:"text",className:he(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))}function Kw(e){let t,n;return $("div",z(C([["className","pt-6"],(t=[$("div",z(C([["className",he(" ",["flex","justify-end"])],(n=[$("button",{type:"search",children:"Search",className:he(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function hd(e){return["fillRule",e]}function pd(e){return["clipRule",e]}const Zw=$("svg",z(C([["className",he(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ie($("path",z(C([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),hd("evenodd"),pd("evenodd")]))));return["children",T.Children.toArray(Array.from(t))]})()]))),Jw=$("svg",z(C([["className",he(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ie($("path",z(C([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),hd("evenodd"),pd("evenodd")]))));return["children",T.Children.toArray(Array.from(t))]})()]))),$d=$("svg",z(C([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=ie($("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",T.Children.toArray(Array.from(e))]})()]))),Yw=$("svg",z(C([["className",he(" ",["h-5","w-5"])],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=ie($("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));return["children",T.Children.toArray(Array.from(e))]})()])));class Xw{constructor(t,n){this.accessToken=n,this.adminUrl=`${t}/account-registry/admin`}QueryAnzsic(t){const n=this;return Dm(J.Delay(()=>J.Bind(e1(n,ho(`${n.adminUrl}/anzsic?maxRecordCount=15&search=${t}`)),r=>{const o=Fr(Se(Vr(B$(),new nr(1,[]))),r.responseText);return J.Return(o.tag===1?new Array(0):o.fields[0].tag===0?o.fields[0].fields[0]:new Array(0))})))}}function Qw(e,t){return new Xw(e,t)}function e1(e,t){return Qi(Xi(id(`Bearer ${e.accessToken}`),t))}var t1=0;function oe(e,t,n,r,o,s){t||(t={});var i,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?i=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--t1,__i:-1,__u:0,__source:o,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)l[a]===void 0&&(l[a]=i[a]);return le.vnode&&le.vnode(c),c}var $o=e=>e.type==="checkbox",sr=e=>e instanceof Date,xt=e=>e==null;const md=e=>typeof e=="object";var je=e=>!xt(e)&&!Array.isArray(e)&&md(e)&&!sr(e),gd=e=>je(e)&&e.target?$o(e.target)?e.target.checked:e.target.value:e,n1=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wd=(e,t)=>e.has(n1(t)),r1=e=>{const t=e.constructor&&e.constructor.prototype;return je(t)&&t.hasOwnProperty("isPrototypeOf")},na=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(na&&(e instanceof Blob||r))&&(n||je(e)))if(t=n?[]:{},!n&&!r1(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=At(e[o]));else return e;return t}var us=e=>Array.isArray(e)?e.filter(Boolean):[],Ge=e=>e===void 0,B=(e,t,n)=>{if(!t||!je(e))return n;const r=us(t.split(/[,[\].]+?/)).reduce((o,s)=>xt(o)?o:o[s],e);return Ge(r)||r===e?Ge(e[t])?n:e[t]:r},Lt=e=>typeof e=="boolean",ra=e=>/^\w*$/.test(e),_d=e=>us(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{let r=-1;const o=ra(t)?[t]:_d(t),s=o.length,i=s-1;for(;++r<s;){const a=o[r];let l=n;if(r!==i){const c=e[a];l=je(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}return e};const ds={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},kn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o1=K.createContext(null),oa=()=>K.useContext(o1);var yd=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==Jt.all&&(t._proxyFormState[i]=!r||Jt.all),n&&(n[i]=!0),e[i]}});return o},Et=e=>je(e)&&!Object.keys(e).length,bd=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return Et(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(i=>t[i]===(!r||Jt.all))},mo=e=>Array.isArray(e)?e:[e],vd=(e,t,n)=>!e||!t||e===t||mo(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function sa(e){const t=K.useRef(e);t.current=e,K.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function s1(e){const t=oa(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[i,a]=K.useState(n._formState),l=K.useRef(!0),c=K.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=K.useRef(o);return d.current=o,sa({disabled:r,next:u=>l.current&&vd(d.current,u.name,s)&&bd(u,c.current,n._updateFormState)&&a({...n._formState,...u}),subject:n._subjects.state}),K.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),K.useMemo(()=>yd(i,n,c.current,!1),[i,n])}var on=e=>typeof e=="string",xd=(e,t,n,r,o)=>on(e)?(r&&t.watch.add(e),B(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),B(n,s))):(r&&(t.watchAll=!0),n);function i1(e){const t=oa(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:i}=e||{},a=K.useRef(r);a.current=r,sa({disabled:s,subject:n._subjects.values,next:d=>{vd(a.current,d.name,i)&&c(At(xd(a.current,n._names,d.values||n._formValues,!1,o)))}});const[l,c]=K.useState(n._getWatch(r,o));return K.useEffect(()=>n._removeUnmounted()),l}function Cd(e){const t=oa(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s}=e,i=wd(o._names.array,n),a=i1({control:o,name:n,defaultValue:B(o._formValues,n,B(o._defaultValues,n,e.defaultValue)),exact:!0}),l=s1({control:o,name:n,exact:!0}),c=K.useRef(o.register(n,{...e.rules,value:a,...Lt(e.disabled)?{disabled:e.disabled}:{}})),d=K.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!B(l.validatingFields,n)},error:{enumerable:!0,get:()=>B(l.errors,n)}}),[l,n]),u=K.useMemo(()=>({name:n,value:a,...Lt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:h=>c.current.onChange({target:{value:gd(h),name:n},type:ds.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:B(o._formValues,n),name:n},type:ds.BLUR}),ref:h=>{const f=B(o._fields,n);f&&h&&(f._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:p=>h.setCustomValidity(p),reportValidity:()=>h.reportValidity()})}}),[n,o._formValues,r,l.disabled,a,o._fields]);return K.useEffect(()=>{const h=o._options.shouldUnregister||s,f=(p,_)=>{const g=B(o._fields,p);g&&g._f&&(g._f.mount=_)};if(f(n,!0),h){const p=At(B(o._options.defaultValues,n));Ie(o._defaultValues,n,p),Ge(B(o._formValues,n))&&Ie(o._formValues,n,p)}return!i&&o.register(n),()=>{(i?h&&!o._state.action:h)?o.unregister(n):f(n,!1)}},[n,o,i,s]),K.useEffect(()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})},[r,n,o]),K.useMemo(()=>({field:u,formState:l,fieldState:d}),[u,l,d])}var a1=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Sd=e=>({isOnSubmit:!e||e===Jt.onSubmit,isOnBlur:e===Jt.onBlur,isOnChange:e===Jt.onChange,isOnAll:e===Jt.all,isOnTouch:e===Jt.onTouched}),kd=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const go=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=B(e,o);if(s){const{_f:i,...a}=s;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(go(a,t))break}else if(je(a)&&go(a,t))break}}};var l1=(e,t,n)=>{const r=mo(B(e,n));return Ie(r,"root",t[n]),Ie(e,n,r),e},ia=e=>e.type==="file",sn=e=>typeof e=="function",fs=e=>{if(!na)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},hs=e=>on(e),aa=e=>e.type==="radio",ps=e=>e instanceof RegExp;const Ad={value:!1,isValid:!1},Ed={value:!0,isValid:!0};var Id=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ge(e[0].attributes.value)?Ge(e[0].value)||e[0].value===""?Ed:{value:e[0].value,isValid:!0}:Ed:Ad}return Ad};const Td={isValid:!1,value:null};var Nd=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Td):Td;function Md(e,t,n="validate"){if(hs(e)||Array.isArray(e)&&e.every(hs)||Lt(e)&&!e)return{type:n,message:hs(e)?e:"",ref:t}}var Hr=e=>je(e)&&!ps(e)?e:{value:e,message:""},Od=async(e,t,n,r,o,s)=>{const{ref:i,refs:a,required:l,maxLength:c,minLength:d,min:u,max:h,pattern:f,validate:p,name:_,valueAsNumber:g,mount:v}=e._f,b=B(n,_);if(!v||t.has(_))return{};const S=a?a[0]:i,R=j=>{o&&S.reportValidity&&(S.setCustomValidity(Lt(j)?"":j||""),S.reportValidity())},V={},ee=aa(i),$e=$o(i),me=ee||$e,ue=(g||ia(i))&&Ge(i.value)&&Ge(b)||fs(i)&&i.value===""||b===""||Array.isArray(b)&&!b.length,Y=a1.bind(null,_,r,V),de=(j,ne,_e,N=kn.maxLength,ge=kn.minLength)=>{const ae=j?ne:_e;V[_]={type:j?N:ge,message:ae,ref:i,...Y(j?N:ge,ae)}};if(s?!Array.isArray(b)||!b.length:l&&(!me&&(ue||xt(b))||Lt(b)&&!b||$e&&!Id(a).isValid||ee&&!Nd(a).isValid)){const{value:j,message:ne}=hs(l)?{value:!!l,message:l}:Hr(l);if(j&&(V[_]={type:kn.required,message:ne,ref:S,...Y(kn.required,ne)},!r))return R(ne),V}if(!ue&&(!xt(u)||!xt(h))){let j,ne;const _e=Hr(h),N=Hr(u);if(!xt(b)&&!isNaN(b)){const ge=i.valueAsNumber||b&&+b;xt(_e.value)||(j=ge>_e.value),xt(N.value)||(ne=ge<N.value)}else{const ge=i.valueAsDate||new Date(b),ae=Te=>new Date(new Date().toDateString()+" "+Te),Le=i.type=="time",ye=i.type=="week";on(_e.value)&&b&&(j=Le?ae(b)>ae(_e.value):ye?b>_e.value:ge>new Date(_e.value)),on(N.value)&&b&&(ne=Le?ae(b)<ae(N.value):ye?b<N.value:ge<new Date(N.value))}if((j||ne)&&(de(!!j,_e.message,N.message,kn.max,kn.min),!r))return R(V[_].message),V}if((c||d)&&!ue&&(on(b)||s&&Array.isArray(b))){const j=Hr(c),ne=Hr(d),_e=!xt(j.value)&&b.length>+j.value,N=!xt(ne.value)&&b.length<+ne.value;if((_e||N)&&(de(_e,j.message,ne.message),!r))return R(V[_].message),V}if(f&&!ue&&on(b)){const{value:j,message:ne}=Hr(f);if(ps(j)&&!b.match(j)&&(V[_]={type:kn.pattern,message:ne,ref:i,...Y(kn.pattern,ne)},!r))return R(ne),V}if(p){if(sn(p)){const j=await p(b,n),ne=Md(j,S);if(ne&&(V[_]={...ne,...Y(kn.validate,ne.message)},!r))return R(ne.message),V}else if(je(p)){let j={};for(const ne in p){if(!Et(j)&&!r)break;const _e=Md(await p[ne](b,n),S,ne);_e&&(j={..._e,...Y(ne,_e.message)},R(_e.message),r&&(V[_]=j))}if(!Et(j)&&(V[_]={ref:S,...j},!r))return V}}return R(!0),V};function c1(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ge(e)?r++:e[t[r++]];return e}function u1(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ge(e[t]))return!1;return!0}function Xe(e,t){const n=Array.isArray(t)?t:ra(t)?[t]:_d(t),r=n.length===1?e:c1(e,n),o=n.length-1,s=n[o];return r&&delete r[s],o!==0&&(je(r)&&Et(r)||Array.isArray(r)&&u1(r))&&Xe(e,n.slice(0,-1)),e}var la=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},ca=e=>xt(e)||!md(e);function Bn(e,t){if(ca(e)||ca(t))return e===t;if(sr(e)&&sr(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const s=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const i=t[o];if(sr(s)&&sr(i)||je(s)&&je(i)||Array.isArray(s)&&Array.isArray(i)?!Bn(s,i):s!==i)return!1}}return!0}var Dd=e=>e.type==="select-multiple",d1=e=>aa(e)||$o(e),ua=e=>fs(e)&&e.isConnected,Rd=e=>{for(const t in e)if(sn(e[t]))return!0;return!1};function $s(e,t={}){const n=Array.isArray(e);if(je(e)||n)for(const r in e)Array.isArray(e[r])||je(e[r])&&!Rd(e[r])?(t[r]=Array.isArray(e[r])?[]:{},$s(e[r],t[r])):xt(e[r])||(t[r]=!0);return t}function Pd(e,t,n){const r=Array.isArray(e);if(je(e)||r)for(const o in e)Array.isArray(e[o])||je(e[o])&&!Rd(e[o])?Ge(t)||ca(n[o])?n[o]=Array.isArray(e[o])?$s(e[o],[]):{...$s(e[o])}:Pd(e[o],xt(t)?{}:t[o],n[o]):n[o]=!Bn(e[o],t[o]);return n}var wo=(e,t)=>Pd(e,t,$s(t)),Fd=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ge(e)?e:t?e===""?NaN:e&&+e:n&&on(e)?new Date(e):r?r(e):e;function da(e){const t=e.ref;return ia(t)?t.files:aa(t)?Nd(e.refs).value:Dd(t)?[...t.selectedOptions].map(({value:n})=>n):$o(t)?Id(e.refs).value:Fd(Ge(t.value)?e.ref.value:t.value,e)}var f1=(e,t,n,r)=>{const o={};for(const s of e){const i=B(t,s);i&&Ie(o,s,i._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},_o=e=>Ge(e)?e:ps(e)?e.source:je(e)?ps(e.value)?e.value.source:e.value:e;const Vd="AsyncFunction";var h1=e=>!!e&&!!e.validate&&!!(sn(e.validate)&&e.validate.constructor.name===Vd||je(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Vd)),p1=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ld(e,t,n){const r=B(e,n);if(r||ra(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),i=B(t,s),a=B(e,s);if(i&&!Array.isArray(i)&&n!==s)return{name:n};if(a&&a.type)return{name:s,error:a};o.pop()}return{name:n}}var $1=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,m1=(e,t)=>!us(B(e,t)).length&&Xe(e,t);const g1={mode:Jt.onSubmit,reValidateMode:Jt.onChange,shouldFocusError:!0};function w1(e={}){let t={...g1,...e},n={submitCount:0,isDirty:!1,isLoading:sn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=je(t.defaultValues)||je(t.values)?At(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:At(o),i={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:la(),array:la(),state:la()},h=Sd(t.mode),f=Sd(t.reValidateMode),p=t.criteriaMode===Jt.all,_=m=>x=>{clearTimeout(c),c=setTimeout(m,x)},g=async m=>{if(!t.disabled&&(d.isValid||m)){const x=t.resolver?Et((await me()).errors):await Y(r,!0);x!==n.isValid&&u.state.next({isValid:x})}},v=(m,x)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((m||Array.from(a.mount)).forEach(A=>{A&&(x?Ie(n.validatingFields,A,x):Xe(n.validatingFields,A))}),u.state.next({validatingFields:n.validatingFields,isValidating:!Et(n.validatingFields)}))},b=(m,x=[],A,H,U=!0,F=!0)=>{if(H&&A&&!t.disabled){if(i.action=!0,F&&Array.isArray(B(r,m))){const Q=A(B(r,m),H.argA,H.argB);U&&Ie(r,m,Q)}if(F&&Array.isArray(B(n.errors,m))){const Q=A(B(n.errors,m),H.argA,H.argB);U&&Ie(n.errors,m,Q),m1(n.errors,m)}if(d.touchedFields&&F&&Array.isArray(B(n.touchedFields,m))){const Q=A(B(n.touchedFields,m),H.argA,H.argB);U&&Ie(n.touchedFields,m,Q)}d.dirtyFields&&(n.dirtyFields=wo(o,s)),u.state.next({name:m,isDirty:j(m,x),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ie(s,m,x)},S=(m,x)=>{Ie(n.errors,m,x),u.state.next({errors:n.errors})},R=m=>{n.errors=m,u.state.next({errors:n.errors,isValid:!1})},V=(m,x,A,H)=>{const U=B(r,m);if(U){const F=B(s,m,Ge(A)?B(o,m):A);Ge(F)||H&&H.defaultChecked||x?Ie(s,m,x?F:da(U._f)):N(m,F),i.mount&&g()}},ee=(m,x,A,H,U)=>{let F=!1,Q=!1;const fe={name:m};if(!t.disabled){const ot=!!(B(r,m)&&B(r,m)._f&&B(r,m)._f.disabled);if(!A||H){d.isDirty&&(Q=n.isDirty,n.isDirty=fe.isDirty=j(),F=Q!==fe.isDirty);const st=ot||Bn(B(o,m),x);Q=!!(!ot&&B(n.dirtyFields,m)),st||ot?Xe(n.dirtyFields,m):Ie(n.dirtyFields,m,!0),fe.dirtyFields=n.dirtyFields,F=F||d.dirtyFields&&Q!==!st}if(A){const st=B(n.touchedFields,m);st||(Ie(n.touchedFields,m,A),fe.touchedFields=n.touchedFields,F=F||d.touchedFields&&st!==A)}F&&U&&u.state.next(fe)}return F?fe:{}},$e=(m,x,A,H)=>{const U=B(n.errors,m),F=d.isValid&&Lt(x)&&n.isValid!==x;if(t.delayError&&A?(l=_(()=>S(m,A)),l(t.delayError)):(clearTimeout(c),l=null,A?Ie(n.errors,m,A):Xe(n.errors,m)),(A?!Bn(U,A):U)||!Et(H)||F){const Q={...H,...F&&Lt(x)?{isValid:x}:{},errors:n.errors,name:m};n={...n,...Q},u.state.next(Q)}},me=async m=>{v(m,!0);const x=await t.resolver(s,t.context,f1(m||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(m),x},ue=async m=>{const{errors:x}=await me(m);if(m)for(const A of m){const H=B(x,A);H?Ie(n.errors,A,H):Xe(n.errors,A)}else n.errors=x;return x},Y=async(m,x,A={valid:!0})=>{for(const H in m){const U=m[H];if(U){const{_f:F,...Q}=U;if(F){const fe=a.array.has(F.name),ot=U._f&&h1(U._f);ot&&d.validatingFields&&v([H],!0);const st=await Od(U,a.disabled,s,p,t.shouldUseNativeValidation&&!x,fe);if(ot&&d.validatingFields&&v([H]),st[F.name]&&(A.valid=!1,x))break;!x&&(B(st,F.name)?fe?l1(n.errors,st,F.name):Ie(n.errors,F.name,st[F.name]):Xe(n.errors,F.name))}!Et(Q)&&await Y(Q,x,A)}}return A.valid},de=()=>{for(const m of a.unMount){const x=B(r,m);x&&(x._f.refs?x._f.refs.every(A=>!ua(A)):!ua(x._f.ref))&&Tn(m)}a.unMount=new Set},j=(m,x)=>!t.disabled&&(m&&x&&Ie(s,m,x),!Bn(rt(),o)),ne=(m,x,A)=>xd(m,a,{...i.mount?s:Ge(x)?o:on(m)?{[m]:x}:x},A,x),_e=m=>us(B(i.mount?s:o,m,t.shouldUnregister?B(o,m,[]):[])),N=(m,x,A={})=>{const H=B(r,m);let U=x;if(H){const F=H._f;F&&(!F.disabled&&Ie(s,m,Fd(x,F)),U=fs(F.ref)&&xt(x)?"":x,Dd(F.ref)?[...F.ref.options].forEach(Q=>Q.selected=U.includes(Q.value)):F.refs?$o(F.ref)?F.refs.length>1?F.refs.forEach(Q=>(!Q.defaultChecked||!Q.disabled)&&(Q.checked=Array.isArray(U)?!!U.find(fe=>fe===Q.value):U===Q.value)):F.refs[0]&&(F.refs[0].checked=!!U):F.refs.forEach(Q=>Q.checked=Q.value===U):ia(F.ref)?F.ref.value="":(F.ref.value=U,F.ref.type||u.values.next({name:m,values:{...s}})))}(A.shouldDirty||A.shouldTouch)&&ee(m,U,A.shouldTouch,A.shouldDirty,!0),A.shouldValidate&&Te(m)},ge=(m,x,A)=>{for(const H in x){const U=x[H],F=`${m}.${H}`,Q=B(r,F);(a.array.has(m)||je(U)||Q&&!Q._f)&&!sr(U)?ge(F,U,A):N(F,U,A)}},ae=(m,x,A={})=>{const H=B(r,m),U=a.array.has(m),F=At(x);Ie(s,m,F),U?(u.array.next({name:m,values:{...s}}),(d.isDirty||d.dirtyFields)&&A.shouldDirty&&u.state.next({name:m,dirtyFields:wo(o,s),isDirty:j(m,F)})):H&&!H._f&&!xt(F)?ge(m,F,A):N(m,F,A),kd(m,a)&&u.state.next({...n}),u.values.next({name:i.mount?m:void 0,values:{...s}})},Le=async m=>{i.mount=!0;const x=m.target;let A=x.name,H=!0;const U=B(r,A),F=()=>x.type?da(U._f):gd(m),Q=fe=>{H=Number.isNaN(fe)||sr(fe)&&isNaN(fe.getTime())||Bn(fe,B(s,A,fe))};if(U){let fe,ot;const st=F(),jn=m.type===ds.BLUR||m.type===ds.FOCUS_OUT,cb=!p1(U._f)&&!t.resolver&&!B(n.errors,A)&&!U._f.deps||$1(jn,B(n.touchedFields,A),n.isSubmitted,f,h),Na=kd(A,a,jn);Ie(s,A,st),jn?(U._f.onBlur&&U._f.onBlur(m),l&&l(0)):U._f.onChange&&U._f.onChange(m);const Ma=ee(A,st,jn,!1),ub=!Et(Ma)||Na;if(!jn&&u.values.next({name:A,type:m.type,values:{...s}}),cb)return d.isValid&&(t.mode==="onBlur"&&jn?g():jn||g()),ub&&u.state.next({name:A,...Na?{}:Ma});if(!jn&&Na&&u.state.next({...n}),t.resolver){const{errors:vf}=await me([A]);if(Q(st),H){const db=Ld(n.errors,r,A),xf=Ld(vf,r,db.name||A);fe=xf.error,A=xf.name,ot=Et(vf)}}else v([A],!0),fe=(await Od(U,a.disabled,s,p,t.shouldUseNativeValidation))[A],v([A]),Q(st),H&&(fe?ot=!1:d.isValid&&(ot=await Y(r,!0)));H&&(U._f.deps&&Te(U._f.deps),$e(A,ot,fe,Ma))}},ye=(m,x)=>{if(B(n.errors,x)&&m.focus)return m.focus(),1},Te=async(m,x={})=>{let A,H;const U=mo(m);if(t.resolver){const F=await ue(Ge(m)?m:U);A=Et(F),H=m?!U.some(Q=>B(F,Q)):A}else m?(H=(await Promise.all(U.map(async F=>{const Q=B(r,F);return await Y(Q&&Q._f?{[F]:Q}:Q)}))).every(Boolean),!(!H&&!n.isValid)&&g()):H=A=await Y(r);return u.state.next({...!on(m)||d.isValid&&A!==n.isValid?{}:{name:m},...t.resolver||!m?{isValid:A}:{},errors:n.errors}),x.shouldFocus&&!H&&go(r,ye,m?U:a.mount),H},rt=m=>{const x={...i.mount?s:o};return Ge(m)?x:on(m)?B(x,m):m.map(A=>B(x,A))},Ct=(m,x)=>({invalid:!!B((x||n).errors,m),isDirty:!!B((x||n).dirtyFields,m),error:B((x||n).errors,m),isValidating:!!B(n.validatingFields,m),isTouched:!!B((x||n).touchedFields,m)}),Yt=m=>{m&&mo(m).forEach(x=>Xe(n.errors,x)),u.state.next({errors:m?n.errors:{}})},ft=(m,x,A)=>{const H=(B(r,m,{_f:{}})._f||{}).ref,U=B(n.errors,m)||{},{ref:F,message:Q,type:fe,...ot}=U;Ie(n.errors,m,{...ot,...x,ref:H}),u.state.next({name:m,errors:n.errors,isValid:!1}),A&&A.shouldFocus&&H&&H.focus&&H.focus()},In=(m,x)=>sn(m)?u.values.subscribe({next:A=>m(ne(void 0,x),A)}):ne(m,x,!0),Tn=(m,x={})=>{for(const A of m?mo(m):a.mount)a.mount.delete(A),a.array.delete(A),x.keepValue||(Xe(r,A),Xe(s,A)),!x.keepError&&Xe(n.errors,A),!x.keepDirty&&Xe(n.dirtyFields,A),!x.keepTouched&&Xe(n.touchedFields,A),!x.keepIsValidating&&Xe(n.validatingFields,A),!t.shouldUnregister&&!x.keepDefaultValue&&Xe(o,A);u.values.next({values:{...s}}),u.state.next({...n,...x.keepDirty?{isDirty:j()}:{}}),!x.keepIsValid&&g()},Xt=({disabled:m,name:x,field:A,fields:H})=>{(Lt(m)&&i.mount||m||a.disabled.has(x))&&(m?a.disabled.add(x):a.disabled.delete(x),ee(x,da(A?A._f:B(H,x)._f),!1,!1,!0))},Nn=(m,x={})=>{let A=B(r,m);const H=Lt(x.disabled)||Lt(t.disabled);return Ie(r,m,{...A||{},_f:{...A&&A._f?A._f:{ref:{name:m}},name:m,mount:!0,...x}}),a.mount.add(m),A?Xt({field:A,disabled:Lt(x.disabled)?x.disabled:t.disabled,name:m}):V(m,!0,x.value),{...H?{disabled:x.disabled||t.disabled}:{},...t.progressive?{required:!!x.required,min:_o(x.min),max:_o(x.max),minLength:_o(x.minLength),maxLength:_o(x.maxLength),pattern:_o(x.pattern)}:{},name:m,onChange:Le,onBlur:Le,ref:U=>{if(U){Nn(m,x),A=B(r,m);const F=Ge(U.value)&&U.querySelectorAll&&U.querySelectorAll("input,select,textarea")[0]||U,Q=d1(F),fe=A._f.refs||[];if(Q?fe.find(ot=>ot===F):F===A._f.ref)return;Ie(r,m,{_f:{...A._f,...Q?{refs:[...fe.filter(ua),F,...Array.isArray(B(o,m))?[{}]:[]],ref:{type:F.type,name:m}}:{ref:F}}}),V(m,!1,void 0,F)}else A=B(r,m,{}),A._f&&(A._f.mount=!1),(t.shouldUnregister||x.shouldUnregister)&&!(wd(a.array,m)&&i.action)&&a.unMount.add(m)}}},re=()=>t.shouldFocusError&&go(r,ye,a.mount),be=m=>{Lt(m)&&(u.state.next({disabled:m}),go(r,(x,A)=>{const H=B(r,A);H&&(x.disabled=H._f.disabled||m,Array.isArray(H._f.refs)&&H._f.refs.forEach(U=>{U.disabled=H._f.disabled||m}))},0,!1))},Ze=(m,x)=>async A=>{let H;A&&(A.preventDefault&&A.preventDefault(),A.persist&&A.persist());let U=At(s);if(a.disabled.size)for(const F of a.disabled)Ie(U,F,void 0);if(u.state.next({isSubmitting:!0}),t.resolver){const{errors:F,values:Q}=await me();n.errors=F,U=Q}else await Y(r);if(Xe(n.errors,"root"),Et(n.errors)){u.state.next({errors:{}});try{await m(U,A)}catch(F){H=F}}else x&&await x({...n.errors},A),re(),setTimeout(re);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Et(n.errors)&&!H,submitCount:n.submitCount+1,errors:n.errors}),H)throw H},cn=(m,x={})=>{B(r,m)&&(Ge(x.defaultValue)?ae(m,At(B(o,m))):(ae(m,x.defaultValue),Ie(o,m,At(x.defaultValue))),x.keepTouched||Xe(n.touchedFields,m),x.keepDirty||(Xe(n.dirtyFields,m),n.isDirty=x.defaultValue?j(m,At(B(o,m))):j()),x.keepError||(Xe(n.errors,m),d.isValid&&g()),u.state.next({...n}))},Mn=(m,x={})=>{const A=m?At(m):o,H=At(A),U=Et(m),F=U?o:H;if(x.keepDefaultValues||(o=A),!x.keepValues){if(x.keepDirtyValues){const Q=new Set([...a.mount,...Object.keys(wo(o,s))]);for(const fe of Array.from(Q))B(n.dirtyFields,fe)?Ie(F,fe,B(s,fe)):ae(fe,B(F,fe))}else{if(na&&Ge(m))for(const Q of a.mount){const fe=B(r,Q);if(fe&&fe._f){const ot=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(fs(ot)){const st=ot.closest("form");if(st){st.reset();break}}}}r={}}s=t.shouldUnregister?x.keepDefaultValues?At(o):{}:At(F),u.array.next({values:{...F}}),u.values.next({values:{...F}})}a={mount:x.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!x.keepIsValid||!!x.keepDirtyValues,i.watch=!!t.shouldUnregister,u.state.next({submitCount:x.keepSubmitCount?n.submitCount:0,isDirty:U?!1:x.keepDirty?n.isDirty:!!(x.keepDefaultValues&&!Bn(m,o)),isSubmitted:x.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:U?{}:x.keepDirtyValues?x.keepDefaultValues&&s?wo(o,s):n.dirtyFields:x.keepDefaultValues&&m?wo(o,m):x.keepDirty?n.dirtyFields:{},touchedFields:x.keepTouched?n.touchedFields:{},errors:x.keepErrors?n.errors:{},isSubmitSuccessful:x.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qr=(m,x)=>Mn(sn(m)?m(s):m,x);return{control:{register:Nn,unregister:Tn,getFieldState:Ct,handleSubmit:Ze,setError:ft,_executeSchema:me,_getWatch:ne,_getDirty:j,_updateValid:g,_removeUnmounted:de,_updateFieldArray:b,_updateDisabledField:Xt,_getFieldArray:_e,_reset:Mn,_resetDefaultValues:()=>sn(t.defaultValues)&&t.defaultValues().then(m=>{qr(m,t.resetOptions),u.state.next({isLoading:!1})}),_updateFormState:m=>{n={...n,...m}},_disableForm:be,_subjects:u,_proxyFormState:d,_setErrors:R,get _fields(){return r},get _formValues(){return s},get _state(){return i},set _state(m){i=m},get _defaultValues(){return o},get _names(){return a},set _names(m){a=m},get _formState(){return n},set _formState(m){n=m},get _options(){return t},set _options(m){t={...t,...m}}},trigger:Te,register:Nn,handleSubmit:Ze,watch:In,setValue:ae,getValues:rt,reset:qr,resetField:cn,clearErrors:Yt,unregister:Tn,setError:ft,setFocus:(m,x={})=>{const A=B(r,m),H=A&&A._f;if(H){const U=H.refs?H.refs[0]:H.ref;U.focus&&(U.focus(),x.shouldSelect&&sn(U.select)&&U.select())}},getFieldState:Ct}}function _1(e={}){const t=K.useRef(void 0),n=K.useRef(void 0),[r,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:sn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:sn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...w1(e),formState:r});const s=t.current.control;return s._options=e,sa({subject:s._subjects.state,next:i=>{bd(i,s._proxyFormState,s._updateFormState,!0)&&o({...s._formState})}}),K.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),K.useEffect(()=>{if(s._proxyFormState.isDirty){const i=s._getDirty();i!==r.isDirty&&s._subjects.state.next({isDirty:i})}},[s,r.isDirty]),K.useEffect(()=>{e.values&&!Bn(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,o(i=>({...i}))):s._resetDefaultValues()},[e.values,s]),K.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),K.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),K.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=yd(r,s),t.current}function yo(e,t,n){let r=n.initialDeps??[],o;return()=>{var s,i,a,l;let c;n.key&&((s=n.debug)!=null&&s.call(n))&&(c=Date.now());const d=e();if(!(d.length!==r.length||d.some((f,p)=>r[p]!==f)))return o;r=d;let h;if(n.key&&((i=n.debug)!=null&&i.call(n))&&(h=Date.now()),o=t(...d),n.key&&((a=n.debug)!=null&&a.call(n))){const f=Math.round((Date.now()-c)*100)/100,p=Math.round((Date.now()-h)*100)/100,_=p/16,g=(v,b)=>{for(v=String(v);v.length<b;)v=" "+v;return v};console.info(`%c⏱ ${g(p,5)} /${g(f,5)} ms`,`
32
+ font-size: .6rem;
33
+ font-weight: bold;
34
+ color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,o),o}}function fa(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const y1=(e,t)=>Math.abs(e-t)<1,b1=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},v1=e=>e,x1=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},C1=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=i=>{const{width:a,height:l}=i;t({width:Math.round(a),height:Math.round(l)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(i=>{const a=i[0];if(a!=null&&a.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},Bd={passive:!0},S1=typeof window>"u"?!0:"onscrollend"in window,k1=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=S1?()=>{}:b1(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),i=c=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),t(o,c)},a=i(!0),l=i(!1);return l(),n.addEventListener("scroll",a,Bd),n.addEventListener("scrollend",l,Bd),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",l)}},A1=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},E1=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const i=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:i,behavior:n})};class I1{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:v1,rangeExtractor:x1,onChange:()=>{},measureElement:A1,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...n}},this.notify=(n,r)=>{var o,s;const{startIndex:i,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},l=this.calculateRange();(n||i!==(l==null?void 0:l.startIndex)||a!==(l==null?void 0:l.endIndex))&&((s=(o=this.options).onChange)==null||s.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const i=this.isScrolling;this.isScrolling=s,this.notify(i!==s,s)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let i=r-1;i>=0;i--){const a=n[i];if(o.has(a.lane))continue;const l=s.get(a.lane);if(l==null||a.end>l.end?s.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=yo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,o,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=yo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s,enabled:i},a)=>{var l;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,c);for(let u=c;u<n;u++){let h=(l=this.measurementsCache[u])==null?void 0:l.measureElement;h||(h=R=>{const V=s(u),ee=this.elementsCache.get(V);if(!R){ee&&(this.observer.unobserve(ee),this.elementsCache.delete(V));return}ee!==R&&(ee&&this.observer.unobserve(ee),this.observer.observe(R),this.elementsCache.set(V,R)),R.isConnected&&this.resizeItem(u,this.options.measureElement(R,void 0,this))});const f=s(u),p=this.options.lanes===1?d[u-1]:this.getFurthestMeasurement(d,u),_=p?p.end+this.options.gap:r+o,g=a.get(f),v=typeof g=="number"?g:this.options.estimateSize(u),b=_+v,S=p?p.lane:u%this.options.lanes;d[u]={index:u,start:_,size:v,end:b,key:f,lane:S,measureElement:h}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=yo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,o)=>this.range=n.length>0&&r>0?T1({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=yo(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),s=this.getMeasurements()[o];if(!s||!n.isConnected){this.elementsCache.forEach((a,l)=>{a===n&&(this.observer.unobserve(n),this.elementsCache.delete(l))});return}const i=this.elementsCache.get(s.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(s.key,n)),this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.getMeasurements()[n];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,i=r-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=yo(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,i=n.length;s<i;s++){const a=n[s],l=r[a];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return fa(r[Ud(0,r.length-1,o=>fa(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize(),s=this.getScrollOffset();r==="auto"&&(n<=s?r="start":n>=s+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-o;return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getMeasurements()[n];if(!o)return;const s=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(o.end>=i+s-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const a=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(n,r);if(!s)return;const[i,a]=s;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[c]=fa(this.getOffsetForIndex(n,a));y1(c,this.getScrollOffset())||this.scrollToIndex(n,{align:a,behavior:o})}else this.scrollToIndex(n,{align:a,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t)}}const Ud=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function T1({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=Ud(0,r,a=>e[a].start,n);let i=s;for(;i<r&&e[i].end<n+t;)i++;return{startIndex:s,endIndex:i}}const N1=typeof document<"u"?xn:Me;function M1(e){const t=kr(()=>({}),{})[1],n={...e,onChange:(o,s)=>{var i;s?Ni(t):t(),(i=e.onChange)==null||i.call(e,o,s)}},[r]=Ke(()=>new I1(n));return r.setOptions(n),Me(()=>r._didMount(),[]),N1(()=>r._willUpdate()),r}function O1(e){return M1({observeElementRect:C1,observeElementOffset:k1,scrollToFn:E1,...e})}var D1=Object.defineProperty,R1=(e,t,n)=>t in e?D1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ha=(e,t,n)=>(R1(e,typeof t!="symbol"?t+"":t,n),n);let P1=class{constructor(){ha(this,"current",this.detect()),ha(this,"handoffState","pending"),ha(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ir=new P1,Qe=(e,t)=>{ir.isServer?Me(e,t):xn(e,t)};function an(e){let t=pe(e);return Qe(()=>{t.current=e},[e]),t}function pa(e,t){let[n,r]=Ke(e),o=an(e);return Qe(()=>r(o.current),[o,r,...t]),n}let ce=function(e){let t=an(e);return K.useCallback((...n)=>t.current(...n),[t])};function F1(e,t,n){let[r,o]=Ke(n),s=e!==void 0,i=pe(s),a=pe(!1),l=pe(!1);return s&&!i.current&&!a.current?(a.current=!0,i.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&i.current&&!l.current&&(l.current=!0,i.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:r,ce(c=>(s||o(c),t==null?void 0:t(c)))]}function V1(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ar(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return V1(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=ar();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function bo(){let[e]=Ke(ar);return Me(()=>()=>e.dispose(),[e]),e}function L1(){let e=typeof document>"u";return"useSyncExternalStore"in Vi?(t=>t.useSyncExternalStore)(Vi)(()=>()=>{},()=>!1,()=>!e):!1}function $a(){let e=L1(),[t,n]=Ke(ir.isHandoffComplete);return t&&ir.isHandoffComplete===!1&&n(!1),Me(()=>{t!==!0&&n(!0)},[t]),Me(()=>ir.handoff(),[]),e?!1:t}var zd;let vo=(zd=K.useId)!=null?zd:function(){let e=$a(),[t,n]=K.useState(e?()=>ir.nextId():null);return Qe(()=>{t===null&&n(ir.nextId())},[t]),t!=null?""+t:void 0};function dt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,dt),r}function ma(e){return ir.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Hd=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var B1=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(B1||{}),U1=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(U1||{}),z1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(z1||{}),jd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(jd||{});function H1(e,t=0){var n;return e===((n=ma(e))==null?void 0:n.body)?!1:dt(t,{0(){return e.matches(Hd)},1(){let r=e;for(;r!==null;){if(r.matches(Hd))return!0;r=r.parentElement}return!1}})}var j1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(j1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function G1(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function W1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function q1(){return/Android/gi.test(window.navigator.userAgent)}function Gd(){return W1()||q1()}function ms(e,t,n){let r=an(t);Me(()=>{function o(s){r.current(s)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function K1(e,t,n){let r=an(t);Me(()=>{function o(s){r.current(s)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Z1(e,t,n=!0){let r=pe(!1);Me(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(i,a){if(!r.current||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:d.current;if(u!=null&&u.contains(l)||i.composed&&i.composedPath().includes(u))return}return!H1(l,jd.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let s=pe(null);ms("pointerdown",i=>{var a,l;r.current&&(s.current=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ms("mousedown",i=>{var a,l;r.current&&(s.current=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ms("click",i=>{Gd()||s.current&&(o(i,()=>s.current),s.current=null)},!0),ms("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),K1("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function J1(...e){return ut(()=>ma(...e),[...e])}function Wd(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Y1(e,t){let[n,r]=Ke(()=>Wd(e));return Qe(()=>{r(Wd(e))},[e.type,e.as]),Qe(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let X1=Symbol();function lr(...e){let t=pe(e);Me(()=>{t.current=e},[e]);let n=ce(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[X1]))?void 0:n}function qd(e){return[e.screenX,e.screenY]}function Q1(){let e=pe([-1,-1]);return{wasMoved(t){let n=qd(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=qd(t)}}}function e_({container:e,accept:t,walk:n,enabled:r=!0}){let o=pe(t),s=pe(n);Me(()=>{o.current=t,s.current=n},[t,n]),Qe(()=>{if(!e||!r)return;let i=ma(e);if(!i)return;let a=o.current,l=s.current,c=Object.assign(u=>a(u),{acceptNode:a}),d=i.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;d.nextNode();)l(d.currentNode)},[e,r,o,s])}function Kd(e,t){let n=pe([]),r=ce(e);Me(()=>{let o=[...n.current];for(let[s,i]of t.entries())if(n.current[s]!==i){let a=r(t,o);return n.current=t,a}},[r,...t])}function gs(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ws=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ws||{}),Un=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Un||{});function An({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??t_;let l=Zd(t,e);if(s)return _s(l,n,r,i,a);let c=o??0;if(c&2){let{static:d=!1,...u}=l;if(d)return _s(u,n,r,i,a)}if(c&1){let{unmount:d=!0,...u}=l;return dt(d?0:1,{0(){return null},1(){return _s({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return _s(l,n,r,i,a)}function _s(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...l}=wa(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},d=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let h=!1,f=[];for(let[p,_]of Object.entries(t))typeof _=="boolean"&&(h=!0),_===!0&&f.push(p);h&&(u["data-headlessui-state"]=f.join(" "))}if(s===ze&&Object.keys(ga(l)).length>0){if(!Ir(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(_=>` - ${_}`).join(`
35
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(_=>` - ${_}`).join(`
33
36
  `)].join(`
34
- `));let h=f.props,d=typeof(h==null?void 0:h.className)=="function"?(...y)=>po(h==null?void 0:h.className(...y),l.className):po(h==null?void 0:h.className,l.className),g=d?{className:d}:{};return ps(f,Object.assign({},Jc(f.props,Yc(Ls(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},g))}return p(s,Object.assign({},Ls(l,["ref"]),s!==Ae&&c,s!==Ae&&u),f)}function $g(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Jc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bs(e){var t;return Object.assign(Zr(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ls(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Vs=rr(null);Vs.displayName="OpenClosedContext";var $t=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($t||{});function Xc(){return Xt(Vs)}function Ng({value:e,children:t}){return je.createElement(Vs.Provider,{value:e},t)}function Us(){let e=Ne(!1);return hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mg(e=0){let[t,n]=Ke(e),r=Us(),o=Yt(l=>{r.current&&n(c=>c|l)},[t,r]),s=Yt(l=>!!(t&l),[t]),i=Yt(l=>{r.current&&n(c=>c&~l)},[n,r]),a=Yt(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function Dg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Hs(e,...t){e&&t.length>0&&e.classList.add(...t)}function js(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Pg(e,t){let n=pr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Rg(e,t,n,r){let o=n?"enter":"leave",s=pr(),i=r!==void 0?Dg(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=lt(o,{enter:()=>t.enter,leave:()=>t.leave}),l=lt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=lt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return js(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Hs(e,...t.base,...a,...c),s.nextFrame(()=>{js(e,...t.base,...a,...c),Hs(e,...t.base,...a,...l),Pg(e,()=>(js(e,...t.base,...a),Hs(e,...t.base,...t.entered),i()))}),s.dispose}function Og({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=Us(),a=Gc(),l=Bn(n);hr(()=>{e&&(l.current="enter")},[e]),hr(()=>{let c=pr();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&i.current)return c.dispose(),o.current(l.current),c.add(Rg(f,r.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function Lt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let go=rr(null);go.displayName="TransitionContext";var Fg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Fg||{});function Bg(){let e=Xt(go);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Lg(){let e=Xt(wo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let wo=rr(null);wo.displayName="NestingContext";function _o(e){return"children"in e?_o(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qc(e,t){let n=Bn(e),r=Ne([]),o=Us(),s=Gc(),i=Tt((d,g=Bt.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===d);y!==-1&&(lt(g,{[Bt.Unmount](){r.current.splice(y,1)},[Bt.Hidden](){r.current[y].state="hidden"}}),s.microTask(()=>{var w;!_o(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=Tt(d=>{let g=r.current.find(({el:y})=>y===d);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:d,state:"visible"}),()=>i(d,Bt.Unmount)}),l=Ne([]),c=Ne(Promise.resolve()),f=Ne({enter:[],leave:[],idle:[]}),u=Tt((d,g,y)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([w])=>w!==d)),t==null||t.chains.current[g].push([d,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[g].push([d,new Promise(w=>{Promise.all(f.current[g].map(([x,v])=>v)).then(()=>w())})]),g==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(g)):y(g)}),h=Tt((d,g,y)=>{Promise.all(f.current[g].splice(0).map(([w,x])=>x)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(g))});return Jt(()=>({children:r,register:a,unregister:i,onStart:u,onStop:h,wait:c,chains:f}),[a,i,r,u,h,f,c])}function Vg(){}let Ug=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function eu(e){var t;let n={};for(let r of Ug)n[r]=(t=e[r])!=null?t:Vg;return n}function Hg(e){let t=Ne(eu(e));return xe(()=>{t.current=eu(e)},[e]),t}let jg="div",tu=Zc.RenderStrategy;function zg(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:h,leaveFrom:d,leaveTo:g,...y}=e,w=Ne(null),x=qc(w,t),v=(n=y.unmount)==null||n?Bt.Unmount:Bt.Hidden,{show:k,appear:O,initial:U}=Bg(),[oe,we]=Ke(k?"visible":"hidden"),Ve=Lg(),{register:se,unregister:Ce}=Ve;xe(()=>se(w),[se,w]),xe(()=>{if(v===Bt.Hidden&&w.current){if(k&&oe!=="visible"){we("visible");return}return lt(oe,{hidden:()=>Ce(w),visible:()=>se(w)})}},[oe,w,se,Ce,k,v]);let ct=Bn({base:Lt(y.className),enter:Lt(l),enterFrom:Lt(c),enterTo:Lt(f),entered:Lt(u),leave:Lt(h),leaveFrom:Lt(d),leaveTo:Lt(g)}),ot=Hg({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),Vt=Wc();xe(()=>{if(Vt&&oe==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,oe,Vt]);let ln=U&&!O,Hn=O&&k&&U,wr=!Vt||ln?"idle":k?"enter":"leave",Mt=Mg(0),_r=Tt(Je=>lt(Je,{enter:()=>{Mt.addFlag($t.Opening),ot.current.beforeEnter()},leave:()=>{Mt.addFlag($t.Closing),ot.current.beforeLeave()},idle:()=>{}})),yr=Tt(Je=>lt(Je,{enter:()=>{Mt.removeFlag($t.Opening),ot.current.afterEnter()},leave:()=>{Mt.removeFlag($t.Closing),ot.current.afterLeave()},idle:()=>{}})),Ut=Qc(()=>{we("hidden"),Ce(w)},Ve),cn=Ne(!1);Og({immediate:Hn,container:w,classes:ct,direction:wr,onStart:Bn(Je=>{cn.current=!0,Ut.onStart(w,Je,_r)}),onStop:Bn(Je=>{cn.current=!1,Ut.onStop(w,Je,yr),Je==="leave"&&!_o(Ut)&&(we("hidden"),Ce(w))})});let ut=y,br={ref:x};return Hn?ut={...ut,className:po(y.className,...ct.current.enter,...ct.current.enterFrom)}:cn.current&&(ut.className=po(y.className,(r=w.current)==null?void 0:r.className),ut.className===""&&delete ut.className),je.createElement(wo.Provider,{value:Ut},je.createElement(Ng,{value:lt(oe,{visible:$t.Open,hidden:$t.Closed})|Mt.flags},Kc({ourProps:br,theirProps:ut,defaultTag:jg,features:tu,visible:oe==="visible",name:"Transition.Child"})))}function Gg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=Ne(null),a=qc(i,t);Wc();let l=Xc();if(n===void 0&&l!==null&&(n=(l&$t.Open)===$t.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=Ke(n?"visible":"hidden"),u=Qc(()=>{f("hidden")}),[h,d]=Ke(!0),g=Ne([n]);hr(()=>{h!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),d(!1))},[g,n]);let y=Jt(()=>({show:n,appear:r,initial:h}),[n,r,h]);xe(()=>{if(n)f("visible");else if(!_o(u))f("hidden");else{let k=i.current;if(!k)return;let O=k.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&f("hidden")}},[n,u]);let w={unmount:o},x=Tt(()=>{var k;h&&d(!1),(k=e.beforeEnter)==null||k.call(e)}),v=Tt(()=>{var k;h&&d(!1),(k=e.beforeLeave)==null||k.call(e)});return je.createElement(wo.Provider,{value:u},je.createElement(go.Provider,{value:y},Kc({ourProps:{...w,as:Ae,children:je.createElement(nu,{ref:a,...w,...s,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:Ae,features:tu,visible:c==="visible",name:"Transition"})))}function Wg(e,t){let n=Xt(go)!==null,r=Xc()!==null;return je.createElement(je.Fragment,null,!n&&r?je.createElement(zs,{ref:t,...e}):je.createElement(nu,{ref:t,...e}))}let zs=Bs(Gg),nu=Bs(zg),qg=Bs(Wg),Zg=Object.assign(zs,{Child:qg,Root:zs}),Nt=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function Kg(e){const t=Wt(e,1);return p(Zg,t)}function yo(e,t){let n;return p("div",D(b([["className","px-4 py-4 sm:px-0"],(n=[p("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),Se(Xe(r=>p("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),Q())],["children",A.Children.toArray(Array.from(n))])])))}function _e(e,t){let n;return p("div",D(b([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[p("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),p("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",A.Children.toArray(Array.from(n))])])))}function Gs(e){let t,n;const r=e.value,o=e.label,s=ir(!1),i=s[0],a=s[1];return Th(()=>{An(L.Delay(()=>i?L.Bind(zh(2e3),()=>(a(!1),L.Zero())):L.Zero()))}),p("div",D(b([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[p("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),p("dd",D(b([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[Kg(b([new Nt(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new Nt(2,[i]),new Nt(4,["transition-opacity ease-in duration-100"]),new Nt(5,["opacity-0"]),new Nt(6,["opacity-90"]),new Nt(7,["transition-opacity ease-out duration-500"]),new Nt(8,["opacity-90"]),new Nt(9,["opacity-0"]),new Nt(10,[[p("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),p("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",A.Children.toArray(Array.from(n))]),["onClick",l=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",A.Children.toArray(Array.from(t))])])))}function bo(e,t){let n;const r=b([e,p("div",D(b([["className","mt-2 border-b border-gray-200"],(n=[p("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:A.Children.toArray(Array.from(t))})],["children",A.Children.toArray(Array.from(n))])])))]);return p("div",{children:A.Children.toArray(Array.from(r))})}function Jg(e){const t=Sn(nn);return bo(yo("Partner Information",void 0),me(T(()=>{let n;return P($((n=["ID",at(e.StreamId)],p(Gs,{label:n[0],value:n[1]}))),T(()=>{let r;return P($((r=["Name",Vr(e.Name)],_e(r[0],r[1]))),T(()=>{let o,s,i;return P(t.Roles.ReadProtectedData?(o=e.ContactDetails,o!=null?(s=o,P($((i=["Contact",`${ta(s.FirstName)} ${na(s.LastName)}`],_e(i[0],i[1]))),T(()=>{let a;return $((a=["Phone",ra(s.MobilePhone)],_e(a[0],a[1])))}))):Ze()):Ze(),T(()=>{let a;return P($((a=["Website",ea(e.Website)],_e(a[0],a[1]))),T(()=>{let l;return $((l=["Notes",Se(Vd(e.Notes),"")],_e(l[0],l[1])))}))}))}))}))})))}let Ln=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory"]}};class Yg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Xg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Qg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class ew extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function tw(e){let t,n,r,o,s,i;return Tc(e.tag===1?(t=e.fields[0],b([I("Details",N(E(new C(1,[t.partnerId])),1)),I("Accounts",void 0),I("Super",N(E(new C(4,[t.partnerId])),1)),I("Benefits",N(E(new C(5,[t.partnerId])),1)),I("Bank Details",N(E(new C(6,[t.partnerId])),1)),I("Directory",N(E(new C(2,[t.partnerId])),1))])):e.tag===2?(n=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[n])),1)),I("Accounts",N(E(new C(3,[n])),1)),I("Super",void 0),I("Benefits",N(E(new C(5,[n])),1)),I("Bank Details",N(E(new C(6,[n])),1)),I("Directory",N(E(new C(2,[n])),1))])):e.tag===3?(r=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[r])),1)),I("Accounts",N(E(new C(3,[r])),1)),I("Super",N(E(new C(4,[r])),1)),I("Benefits",void 0),I("Bank Details",N(E(new C(6,[r])),1)),I("Directory",N(E(new C(2,[r])),1))])):e.tag===4?(o=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[o])),1)),I("Accounts",N(E(new C(3,[o])),1)),I("Super",N(E(new C(4,[o])),1)),I("Benefits",N(E(new C(5,[o])),1)),I("Bank Details",void 0),I("Directory",N(E(new C(2,[o])),1))])):e.tag===5?(s=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[s])),1)),I("Accounts",N(E(new C(3,[s])),1)),I("Super",N(E(new C(4,[s])),1)),I("Benefits",N(E(new C(5,[s])),1)),I("Bank Details",N(E(new C(6,[s])),1)),I("Directory",void 0)])):(i=e.fields[0],b([I("Details",void 0),I("Accounts",N(E(new C(3,[pe(at(i.StreamId))])),1)),I("Super",N(E(new C(4,[pe(at(i.StreamId))])),1)),I("Benefits",N(E(new C(5,[pe(at(i.StreamId))])),1)),I("Bank Details",N(E(new C(6,[pe(at(i.StreamId))])),1)),I("Directory",N(E(new C(2,[pe(at(i.StreamId))])),1))])))}function nw(e){switch(e.tag){case 1:return p(Cg,e.fields[0]);case 2:return p(Uc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return p(Hc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return p(jc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return p(zc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return p(Jg,e.fields[0])}}function ru(e){let t;const n=e.mode;return p("div",D(j((t=[tw(n),nw(n)],["children",A.Children.toArray(Array.from(t))]))))}let vo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function rw(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new vo(1,[t]),new vo(0,[n]),new vo(2,[vt(o)]),Xe(i=>new vo(3,[it(i)]),r)]);return p("superhero-import-app",Wt(s,1))}class Ws extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function ow(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=wn(s=>s,[new Ws(1,[t]),new Ws(0,[n]),Xe(s=>new Ws(2,[it(s)]),r)]);return p("superhero-salpac-profile-admin",Wt(o,1))}function sw(e){const t=Sn(nn);return bo(yo("Account Information",void 0),me(T(()=>{let n;return P($((n=["ID",e.StreamId],p(Gs,{label:n[0],value:n[1]}))),T(()=>{let r;return P($((r=["Name",e.Name],p(Gs,{label:r[0],value:r[1]}))),T(()=>{let o;return P($((o=["External ID",Se(e.ExternalId,"")],_e(o[0],o[1]))),T(()=>{let s;return P($((s=["Channel ID",Se(e.ChannelId,"")],_e(s[0],s[1]))),T(()=>{let i;if(t.Roles.ReadProtectedData){const a=e.ContactDetails;if(a!=null){const l=a;return P($((i=["Contact",`${l.FirstName} ${l.LastName}`],_e(i[0],i[1]))),T(()=>{let c;return P($((c=["Phone",l.MobilePhone],_e(c[0],c[1]))),T(()=>{let f;return $((f=["Email",l.Email],_e(f[0],f[1])))}))}))}else return Ze()}else return Ze()}))}))}))}))})))}function iw(e){let t,n,r,o,s,i,a;if(e==null)return Q();{const l=e;return bo(yo("Legal Entity",void 0),b([(t=["Business Name",l.BusinessName],_e(t[0],t[1])),(n=["Business Number",l.BusinessNumber],_e(n[0],n[1])),(r=["Address Line 1",l.Address1],_e(r[0],r[1])),(o=["Address Line 2",Se(l.Address2,"")],_e(o[0],o[1])),(s=["City",l.City],_e(s[0],s[1])),(i=["State",Se(l.State,"")],_e(i[0],i[1])),(a=["Postcode",l.Postcode],_e(a[0],a[1]))]))}}function aw(e){let t;if(e==null)return Q();{const n=e;return bo(yo("Legal Entity",void 0),j((t=["Notes",n],_e(t[0],t[1]))))}}function lw(e){const t=b([p(sw,e),iw(e.LegalEntity),aw(e.Notes)]);return p("div",{children:A.Children.toArray(Array.from(t))})}class an extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration"]}}function cw(e,t,n){let r,o,s,i,a,l,c,f,u,h,d,g,y,w,x,v,k,O,U,oe,we,Ve,se,Ce,ct,ot,Vt,ln,Hn,wr,Mt,_r,yr,Ut,cn,ut,br,Je,Zs,Ks,Js,Ys;const H=[e,t];return Tc(n.tag===1?b([I("Details",N(E((r=H,new C(7,[r[0],r[1]]))),1)),I("Directory",void 0),I("Imports",N(E((o=H,new C(9,[o[0],o[1]]))),1)),I("Super",N(E((s=H,new C(10,[s[0],s[1]]))),1)),I("Benefits",N(E((i=H,new C(11,[i[0],i[1]]))),1)),I("Bank Details",N(E((a=H,new C(12,[a[0],a[1]]))),1)),I("Salary Packaging",N(E((l=H,new C(13,[l[0],l[1]]))),1))]):n.tag===2?b([I("Details",N(E((c=H,new C(7,[c[0],c[1]]))),1)),I("Directory",N(E((f=H,new C(8,[f[0],f[1]]))),1)),I("Imports",void 0),I("Super",N(E((u=H,new C(10,[u[0],u[1]]))),1)),I("Benefits",N(E((h=H,new C(11,[h[0],h[1]]))),1)),I("Bank Details",N(E((d=H,new C(12,[d[0],d[1]]))),1)),I("Salary Packaging",N(E((g=H,new C(13,[g[0],g[1]]))),1))]):n.tag===3?b([I("Details",N(E((y=H,new C(7,[y[0],y[1]]))),1)),I("Directory",N(E((w=H,new C(8,[w[0],w[1]]))),1)),I("Imports",N(E((x=H,new C(9,[x[0],x[1]]))),1)),I("Super",void 0),I("Benefits",N(E((v=H,new C(11,[v[0],v[1]]))),1)),I("Bank Details",N(E((k=H,new C(12,[k[0],k[1]]))),1)),I("Salary Packaging",N(E((O=H,new C(13,[O[0],O[1]]))),1))]):n.tag===4?b([I("Details",N(E((U=H,new C(7,[U[0],U[1]]))),1)),I("Directory",N(E((oe=H,new C(8,[oe[0],oe[1]]))),1)),I("Imports",N(E((we=H,new C(9,[we[0],we[1]]))),1)),I("Super",N(E((Ve=H,new C(10,[Ve[0],Ve[1]]))),1)),I("Benefits",void 0),I("Bank Details",N(E((se=H,new C(12,[se[0],se[1]]))),1)),I("Salary Packaging",N(E((Ce=H,new C(13,[Ce[0],Ce[1]]))),1))]):n.tag===5?b([I("Details",N(E((ct=H,new C(7,[ct[0],ct[1]]))),1)),I("Directory",N(E((ot=H,new C(8,[ot[0],ot[1]]))),1)),I("Imports",N(E((Vt=H,new C(9,[Vt[0],Vt[1]]))),1)),I("Super",N(E((ln=H,new C(10,[ln[0],ln[1]]))),1)),I("Benefits",N(E((Hn=H,new C(11,[Hn[0],Hn[1]]))),1)),I("Bank Details",void 0),I("Salary Packaging",N(E((wr=H,new C(13,[wr[0],wr[1]]))),1))]):n.tag===6?b([I("Details",N(E((Mt=H,new C(7,[Mt[0],Mt[1]]))),1)),I("Directory",N(E((_r=H,new C(8,[_r[0],_r[1]]))),1)),I("Imports",N(E((yr=H,new C(9,[yr[0],yr[1]]))),1)),I("Super",N(E((Ut=H,new C(10,[Ut[0],Ut[1]]))),1)),I("Benefits",N(E((cn=H,new C(11,[cn[0],cn[1]]))),1)),I("Bank Details",N(E((ut=H,new C(12,[ut[0],ut[1]]))),1)),I("Salary Packaging",void 0)]):b([I("Details",void 0),I("Directory",N(E((br=H,new C(8,[br[0],br[1]]))),1)),I("Imports",N(E((Je=H,new C(9,[Je[0],Je[1]]))),1)),I("Super",N(E((Zs=H,new C(10,[Zs[0],Zs[1]]))),1)),I("Benefits",N(E((Ks=H,new C(11,[Ks[0],Ks[1]]))),1)),I("Bank Details",N(E((Js=H,new C(12,[Js[0],Js[1]]))),1)),I("Salary Packaging",N(E((Ys=H,new C(13,[Ys[0],Ys[1]]))),1))]))}function uw(e){const t=e.account,n=e.mode,r=e.props,o=Sn(nn);switch(n.tag){case 1:{const s=r.accountDetails;return p(zc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 2:{const s=r.accountDetails;return p(rw,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 3:{const s=r.accountDetails;return p(Uc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 4:{const s=r.accountDetails;return p(Hc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 5:{const s=r.accountDetails;return p(jc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 6:return p(ow,{accountId:r.accountDetails[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken});default:{let s,i,a;switch(t.tag){case 0:case 1:{s=2;break}case 3:{s=3,a=t.fields[0];break}default:t.fields[0].tag===0?(s=0,i=t.fields[0].fields[0]):s=1}switch(s){case 0:return p(lw,i);case 1:return p(sn,{error:"There was an error retrieving account "});case 2:return p(ao,null);default:{const l=Ie(a);return p(sn,{error:l})}}}}}function fw(e){let t,n;const r=e.account,o=e.mode,s=e.props;return p("div",D(j((t=[(n=s.accountDetails,cw(n[0],n[1],o)),p(uw,{props:s,mode:o,account:r})],["children",A.Children.toArray(Array.from(t))]))))}class Vn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Started","Finished","Failed"]}}let xo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateAccountId","Search","SearchSuccess","SearchFailure"]}},Un=class extends K{constructor(t,n){super(),this.AccountId=t,this.AccountDetails=n}};function dw(){return[new Un(void 0,new Vn(0,[])),Fe()]}function hw(e,t,n,r){switch(n.tag){case 1:{const o=r.AccountId;if(o!=null){const s=o;return[new Un(r.AccountId,new Vn(1,[])),pc(()=>Im(e,t,s),void 0,i=>new xo(2,[i]),i=>new xo(3,[i]))]}else return[new Un(r.AccountId,new Vn(3,["Account Id is required"])),Fe()]}case 2:{const o=n.fields[0];return[new Un(r.AccountId,new Vn(2,[o])),Ee(s=>{Be(j(`#/account-registry/partners/${o.PartnerId}/accounts/${o.AccountId}`),1,2)})]}case 3:return[new Un(r.AccountId,new Vn(3,["Account not found"])),Fe()];default:return[new Un(xt(n.fields[0]),r.AccountDetails),Fe()]}}const pw=p("h3",{className:"text-base font-semibold text-gray-900",id:"modal-title",children:"Account Search"}),mw=p("div",D(b([["className","mt-2"],(()=>{let e;const t=[p("p",D(b([["className","text-sm text-gray-500 whitespace-pre-line"],(e=`Enter an Account Id below to search for an account.
37
+ `));let h=d.props,f=typeof(h==null?void 0:h.className)=="function"?(..._)=>gs(h==null?void 0:h.className(..._),l.className):gs(h==null?void 0:h.className,l.className),p=f?{className:f}:{};return Ti(d,Object.assign({},Zd(d.props,ga(wa(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},p))}return $(s,Object.assign({},wa(l,["ref"]),s!==ze&&c,s!==ze&&u),d)}function t_(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Zd(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function ln(e){var t;return Object.assign(Ar(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ga(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let n_="div";var Jd=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Jd||{});function r_(e,t){var n;let{features:r=1,...o}=e,s={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return An({ourProps:s,theirProps:o,slot:{},defaultTag:n_,name:"Hidden"})}let o_=ln(r_),_a=Fn(null);_a.displayName="OpenClosedContext";var Rt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rt||{});function ya(){return rn(_a)}function Yd({value:e,children:t}){return K.createElement(_a.Provider,{value:e},t)}function s_(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let cr=[];s_(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&cr[0]!==t.target&&(cr.unshift(t.target),cr=cr.filter(n=>n!=null&&n.isConnected),cr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function i_(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&a_(n)?!1:r}function a_(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function l_(e){throw new Error("Unexpected object: "+e)}var et=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(et||{});function Xd(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{for(let s=o-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=o+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:l_(e)}}function Qd(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))tf(n,ef(t,r),o);return n}function ef(e,t){return e?e+"["+t+"]":t}function tf(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())tf(e,ef(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Qd(n,t,e)}var Pt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Pt||{}),c_={},u_=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u_||{}),d_=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(d_||{}),f_=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(f_||{}),h_=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(h_||{});function ba(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&r[0].dataRef.current.order!==null?r.sort((i,a)=>i.dataRef.current.order-a.dataRef.current.order):G1(r,i=>i.dataRef.current.domRef.current),s=n?o.indexOf(n):null;return s===-1&&(s=null),{options:o,activeOptionIndex:s}}let p_={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,r,o,s,i;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((o=e.dataRef.current)!=null&&o.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let d=t.focus===et.Specific?t.idx:Xd(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var h,f;return(f=(h=e.activeOptionIndex)!=null?h:e.virtual.options.findIndex(p=>!e.virtual.disabled(p)))!=null?f:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),u=(s=t.trigger)!=null?s:2;return e.activeOptionIndex===d&&e.activationTrigger===u?e:{...e,activeOptionIndex:d,activationTrigger:u}}let a=ba(e);if(a.activeOptionIndex===null){let d=a.options.findIndex(u=>!u.dataRef.current.disabled);d!==-1&&(a.activeOptionIndex=d)}let l=t.focus===et.Specific?t.idx:Xd(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled}),c=(i=t.trigger)!=null?i:2;return e.activeOptionIndex===l&&e.activationTrigger===c?e:{...e,...a,activeOptionIndex:l,activationTrigger:c}},3:(e,t)=>{var n,r,o;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,i=ba(e,l=>(l.push(s),l));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.payload.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(s));let a={...e,...i,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(a.activeOptionIndex=0),a},4:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(o=>o.id!==t.id)};let r=ba(e,o=>{let s=o.findIndex(i=>i.id===t.id);return s!==-1&&o.splice(s,1),o});return{...e,...r,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if(((n=e.virtual)==null?void 0:n.options)===t.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?r=o:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:t.options})}}},va=Fn(null);va.displayName="ComboboxActionsContext";function xo(e){let t=rn(va);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xo),n}return t}let nf=Fn(null);function $_(e){var t;let n=ur("VirtualProvider"),[r,o]=ut(()=>{let l=n.optionsRef.current;if(!l)return[0,0];let c=window.getComputedStyle(l);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[n.optionsRef.current]),s=O1({scrollPaddingStart:r,scrollPaddingEnd:o,count:n.virtual.options.length,estimateSize(){return 40},getScrollElement(){var l;return(l=n.optionsRef.current)!=null?l:null},overscan:12}),[i,a]=Ke(0);return Qe(()=>{a(l=>l+1)},[(t=n.virtual)==null?void 0:t.options]),K.createElement(nf.Provider,{value:s},K.createElement("div",{style:{position:"relative",width:"100%",height:`${s.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&c_.JEST_WORKER_ID!==void 0||n.activationTrigger===0)return;n.activeOptionIndex!==null&&n.virtual.options.length>n.activeOptionIndex&&s.scrollToIndex(n.activeOptionIndex)}}},s.getVirtualItems().map(l=>{var c;return K.createElement(ze,{key:l.key},K.cloneElement((c=e.children)==null?void 0:c.call(e,{option:n.virtual.options[l.index],open:n.comboboxState===0}),{key:`${i}-${l.key}`,"data-index":l.index,"aria-setsize":n.virtual.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}}))})))}let xa=Fn(null);xa.displayName="ComboboxDataContext";function ur(e){let t=rn(xa);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ur),n}return t}function m_(e,t){return dt(t.type,p_,e,t)}let g_=ze;function w_(e,t){let{value:n,defaultValue:r,onChange:o,form:s,name:i,by:a=null,disabled:l=!1,__demoMode:c=!1,nullable:d=!1,multiple:u=!1,immediate:h=!1,virtual:f=null,...p}=e,_=!1,g=null,[v=u?[]:void 0,b]=F1(n,o,r),[S,R]=kr(m_,{dataRef:$i(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),V=pe(!1),ee=pe({static:!1,hold:!1}),$e=pe(null),me=pe(null),ue=pe(null),Y=pe(null),de=ce(typeof a=="string"?(re,be)=>{let Ze=a;return(re==null?void 0:re[Ze])===(be==null?void 0:be[Ze])}:a??((re,be)=>re===be)),j=ce(re=>S.options.findIndex(be=>de(be.dataRef.current.value,re))),ne=Vn(re=>dt(N.mode,{1:()=>v.some(be=>de(be,re)),0:()=>de(v,re)}),[v]),_e=ce(re=>S.activeOptionIndex===j(re)),N=ut(()=>({...S,immediate:_,optionsPropsRef:ee,labelRef:$e,inputRef:me,buttonRef:ue,optionsRef:Y,value:v,defaultValue:r,disabled:l,mode:u?1:0,virtual:S.virtual,get activeOptionIndex(){if(V.current&&S.activeOptionIndex===null&&S.options.length>0){let re=S.options.findIndex(be=>!be.dataRef.current.disabled);if(re!==-1)return re}return S.activeOptionIndex},calculateIndex:j,compare:de,isSelected:ne,isActive:_e,nullable:d,__demoMode:c}),[v,r,l,u,d,c,S,g]);Qe(()=>{},[g,void 0]),Qe(()=>{S.dataRef.current=N},[N]),Z1([N.buttonRef,N.inputRef,N.optionsRef],()=>In.closeCombobox(),N.comboboxState===0);let ge=ut(()=>{var re,be,Ze;return{open:N.comboboxState===0,disabled:l,activeIndex:N.activeOptionIndex,activeOption:N.activeOptionIndex===null?null:N.virtual?N.virtual.options[(re=N.activeOptionIndex)!=null?re:0]:(Ze=(be=N.options[N.activeOptionIndex])==null?void 0:be.dataRef.current.value)!=null?Ze:null,value:v}},[N,l,v]),ae=ce(()=>{if(N.activeOptionIndex!==null){if(N.virtual)Yt(N.virtual.options[N.activeOptionIndex]);else{let{dataRef:re}=N.options[N.activeOptionIndex];Yt(re.current.value)}In.goToOption(et.Specific,N.activeOptionIndex)}}),Le=ce(()=>{R({type:0}),V.current=!0}),ye=ce(()=>{R({type:1}),V.current=!1}),Te=ce((re,be,Ze)=>(V.current=!1,re===et.Specific?R({type:2,focus:et.Specific,idx:be,trigger:Ze}):R({type:2,focus:re,trigger:Ze}))),rt=ce((re,be)=>(R({type:3,payload:{id:re,dataRef:be}}),()=>{N.isActive(be.current.value)&&(V.current=!0),R({type:4,id:re})})),Ct=ce(re=>(R({type:5,id:re}),()=>R({type:5,id:null}))),Yt=ce(re=>dt(N.mode,{0(){return b==null?void 0:b(re)},1(){let be=N.value.slice(),Ze=be.findIndex(cn=>de(cn,re));return Ze===-1?be.push(re):be.splice(Ze,1),b==null?void 0:b(be)}})),ft=ce(re=>{R({type:6,trigger:re})}),In=ut(()=>({onChange:Yt,registerOption:rt,registerLabel:Ct,goToOption:Te,closeCombobox:ye,openCombobox:Le,setActivationTrigger:ft,selectActiveOption:ae}),[]),Tn=t===null?{}:{ref:t},Xt=pe(null),Nn=bo();return Me(()=>{Xt.current&&r!==void 0&&Nn.addEventListener(Xt.current,"reset",()=>{b==null||b(r)})},[Xt,b]),K.createElement(va.Provider,{value:In},K.createElement(xa.Provider,{value:N},K.createElement(Yd,{value:dt(N.comboboxState,{0:Rt.Open,1:Rt.Closed})},i!=null&&v!=null&&Qd({[i]:v}).map(([re,be],Ze)=>K.createElement(o_,{features:Jd.Hidden,ref:Ze===0?cn=>{var Mn;Xt.current=(Mn=cn==null?void 0:cn.closest("form"))!=null?Mn:null}:void 0,...ga({key:re,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:l,name:re,value:be})})),An({ourProps:Tn,theirProps:p,slot:ge,defaultTag:g_,name:"Combobox"}))))}let __="input";function y_(e,t){var n,r,o,s,i;let a=vo(),{id:l=`headlessui-combobox-input-${a}`,onChange:c,displayValue:d,type:u="text",...h}=e,f=ur("Combobox.Input"),p=xo("Combobox.Input"),_=lr(f.inputRef,t),g=J1(f.inputRef),v=pe(!1),b=bo(),S=ce(()=>{p.onChange(null),f.optionsRef.current&&(f.optionsRef.current.scrollTop=0),p.goToOption(et.Nothing)}),R=function(){var N;return typeof d=="function"&&f.value!==void 0?(N=d(f.value))!=null?N:"":typeof f.value=="string"?f.value:""}();Kd(([N,ge],[ae,Le])=>{if(v.current)return;let ye=f.inputRef.current;ye&&((Le===0&&ge===1||N!==ae)&&(ye.value=N),requestAnimationFrame(()=>{if(v.current||!ye||(g==null?void 0:g.activeElement)!==ye)return;let{selectionStart:Te,selectionEnd:rt}=ye;Math.abs((rt??0)-(Te??0))===0&&Te===0&&ye.setSelectionRange(ye.value.length,ye.value.length)}))},[R,f.comboboxState,g]),Kd(([N],[ge])=>{if(N===0&&ge===1){if(v.current)return;let ae=f.inputRef.current;if(!ae)return;let Le=ae.value,{selectionStart:ye,selectionEnd:Te,selectionDirection:rt}=ae;ae.value="",ae.value=Le,rt!==null?ae.setSelectionRange(ye,Te,rt):ae.setSelectionRange(ye,Te)}},[f.comboboxState]);let V=pe(!1),ee=ce(()=>{V.current=!0}),$e=ce(()=>{b.nextFrame(()=>{V.current=!1})}),me=ce(N=>{switch(v.current=!0,N.key){case Pt.Enter:if(v.current=!1,f.comboboxState!==0||V.current)return;if(N.preventDefault(),N.stopPropagation(),f.activeOptionIndex===null){p.closeCombobox();return}p.selectActiveOption(),f.mode===0&&p.closeCombobox();break;case Pt.ArrowDown:return v.current=!1,N.preventDefault(),N.stopPropagation(),dt(f.comboboxState,{0:()=>p.goToOption(et.Next),1:()=>p.openCombobox()});case Pt.ArrowUp:return v.current=!1,N.preventDefault(),N.stopPropagation(),dt(f.comboboxState,{0:()=>p.goToOption(et.Previous),1:()=>{p.openCombobox(),b.nextFrame(()=>{f.value||p.goToOption(et.Last)})}});case Pt.Home:if(N.shiftKey)break;return v.current=!1,N.preventDefault(),N.stopPropagation(),p.goToOption(et.First);case Pt.PageUp:return v.current=!1,N.preventDefault(),N.stopPropagation(),p.goToOption(et.First);case Pt.End:if(N.shiftKey)break;return v.current=!1,N.preventDefault(),N.stopPropagation(),p.goToOption(et.Last);case Pt.PageDown:return v.current=!1,N.preventDefault(),N.stopPropagation(),p.goToOption(et.Last);case Pt.Escape:return v.current=!1,f.comboboxState!==0?void 0:(N.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&N.stopPropagation(),f.nullable&&f.mode===0&&f.value===null&&S(),p.closeCombobox());case Pt.Tab:if(v.current=!1,f.comboboxState!==0)return;f.mode===0&&f.activationTrigger!==1&&p.selectActiveOption(),p.closeCombobox();break}}),ue=ce(N=>{c==null||c(N),f.nullable&&f.mode===0&&N.target.value===""&&S(),p.openCombobox()}),Y=ce(N=>{var ge,ae,Le;let ye=(ge=N.relatedTarget)!=null?ge:cr.find(Te=>Te!==N.currentTarget);if(v.current=!1,!((ae=f.optionsRef.current)!=null&&ae.contains(ye))&&!((Le=f.buttonRef.current)!=null&&Le.contains(ye))&&f.comboboxState===0)return N.preventDefault(),f.mode===0&&(f.nullable&&f.value===null?S():f.activationTrigger!==1&&p.selectActiveOption()),p.closeCombobox()}),de=ce(N=>{var ge,ae,Le;let ye=(ge=N.relatedTarget)!=null?ge:cr.find(Te=>Te!==N.currentTarget);(ae=f.buttonRef.current)!=null&&ae.contains(ye)||(Le=f.optionsRef.current)!=null&&Le.contains(ye)||f.disabled||f.immediate&&f.comboboxState!==0&&(p.openCombobox(),b.nextFrame(()=>{p.setActivationTrigger(1)}))}),j=pa(()=>{if(f.labelId)return[f.labelId].join(" ")},[f.labelId]),ne=ut(()=>({open:f.comboboxState===0,disabled:f.disabled}),[f]),_e={ref:_,id:l,role:"combobox",type:u,"aria-controls":(n=f.optionsRef.current)==null?void 0:n.id,"aria-expanded":f.comboboxState===0,"aria-activedescendant":f.activeOptionIndex===null?void 0:f.virtual?(r=f.options.find(N=>{var ge;return!((ge=f.virtual)!=null&&ge.disabled(N.dataRef.current.value))&&f.compare(N.dataRef.current.value,f.virtual.options[f.activeOptionIndex])}))==null?void 0:r.id:(o=f.options[f.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":j,"aria-autocomplete":"list",defaultValue:(i=(s=e.defaultValue)!=null?s:f.defaultValue!==void 0?d==null?void 0:d(f.defaultValue):null)!=null?i:f.defaultValue,disabled:f.disabled,onCompositionStart:ee,onCompositionEnd:$e,onKeyDown:me,onChange:ue,onFocus:de,onBlur:Y};return An({ourProps:_e,theirProps:h,slot:ne,defaultTag:__,name:"Combobox.Input"})}let b_="button";function v_(e,t){var n;let r=ur("Combobox.Button"),o=xo("Combobox.Button"),s=lr(r.buttonRef,t),i=vo(),{id:a=`headlessui-combobox-button-${i}`,...l}=e,c=bo(),d=ce(_=>{switch(_.key){case Pt.ArrowDown:return _.preventDefault(),_.stopPropagation(),r.comboboxState===1&&o.openCombobox(),c.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case Pt.ArrowUp:return _.preventDefault(),_.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),c.nextFrame(()=>{r.value||o.goToOption(et.Last)})),c.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case Pt.Escape:return r.comboboxState!==0?void 0:(_.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&_.stopPropagation(),o.closeCombobox(),c.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})}));default:return}}),u=ce(_=>{if(i_(_.currentTarget))return _.preventDefault();r.comboboxState===0?o.closeCombobox():(_.preventDefault(),o.openCombobox()),c.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})})}),h=pa(()=>{if(r.labelId)return[r.labelId,a].join(" ")},[r.labelId,a]),f=ut(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),p={ref:s,id:a,type:Y1(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":h,disabled:r.disabled,onClick:u,onKeyDown:d};return An({ourProps:p,theirProps:l,slot:f,defaultTag:b_,name:"Combobox.Button"})}let x_="label";function C_(e,t){let n=vo(),{id:r=`headlessui-combobox-label-${n}`,...o}=e,s=ur("Combobox.Label"),i=xo("Combobox.Label"),a=lr(s.labelRef,t);Qe(()=>i.registerLabel(r),[r]);let l=ce(()=>{var d;return(d=s.inputRef.current)==null?void 0:d.focus({preventScroll:!0})}),c=ut(()=>({open:s.comboboxState===0,disabled:s.disabled}),[s]);return An({ourProps:{ref:a,id:r,onClick:l},theirProps:o,slot:c,defaultTag:x_,name:"Combobox.Label"})}let S_="ul",k_=ws.RenderStrategy|ws.Static;function A_(e,t){let n=vo(),{id:r=`headlessui-combobox-options-${n}`,hold:o=!1,...s}=e,i=ur("Combobox.Options"),a=lr(i.optionsRef,t),l=ya(),c=l!==null?(l&Rt.Open)===Rt.Open:i.comboboxState===0;Qe(()=>{var f;i.optionsPropsRef.current.static=(f=e.static)!=null?f:!1},[i.optionsPropsRef,e.static]),Qe(()=>{i.optionsPropsRef.current.hold=o},[i.optionsPropsRef,o]),e_({container:i.optionsRef.current,enabled:i.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let d=pa(()=>{var f,p;return(p=i.labelId)!=null?p:(f=i.buttonRef.current)==null?void 0:f.id},[i.labelId,i.buttonRef.current]),u=ut(()=>({open:i.comboboxState===0,option:void 0}),[i]),h={"aria-labelledby":d,role:"listbox","aria-multiselectable":i.mode===1?!0:void 0,id:r,ref:a};return i.virtual&&i.comboboxState===0&&Object.assign(s,{children:K.createElement($_,null,s.children)}),An({ourProps:h,theirProps:s,slot:u,defaultTag:S_,features:k_,visible:c,name:"Combobox.Options"})}let E_="li";function I_(e,t){var n;let r=vo(),{id:o=`headlessui-combobox-option-${r}`,disabled:s=!1,value:i,order:a=null,...l}=e,c=ur("Combobox.Option"),d=xo("Combobox.Option"),u=c.virtual?c.activeOptionIndex===c.calculateIndex(i):c.activeOptionIndex===null?!1:((n=c.options[c.activeOptionIndex])==null?void 0:n.id)===o,h=c.isSelected(i),f=pe(null),p=an({disabled:s,value:i,domRef:f,order:a}),_=rn(nf),g=lr(t,f,_?_.measureElement:null),v=ce(()=>d.onChange(i));Qe(()=>d.registerOption(o,p),[p,o]);let b=pe(!(c.virtual||c.__demoMode));Qe(()=>{if(!c.virtual||!c.__demoMode)return;let Y=ar();return Y.requestAnimationFrame(()=>{b.current=!0}),Y.dispose},[c.virtual,c.__demoMode]),Qe(()=>{if(!b.current||c.comboboxState!==0||!u||c.activationTrigger===0)return;let Y=ar();return Y.requestAnimationFrame(()=>{var de,j;(j=(de=f.current)==null?void 0:de.scrollIntoView)==null||j.call(de,{block:"nearest"})}),Y.dispose},[f,u,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let S=ce(Y=>{var de;if(s||(de=c.virtual)!=null&&de.disabled(i))return Y.preventDefault();v(),Gd()||requestAnimationFrame(()=>{var j;return(j=c.inputRef.current)==null?void 0:j.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>d.closeCombobox())}),R=ce(()=>{var Y;if(s||(Y=c.virtual)!=null&&Y.disabled(i))return d.goToOption(et.Nothing);let de=c.calculateIndex(i);d.goToOption(et.Specific,de)}),V=Q1(),ee=ce(Y=>V.update(Y)),$e=ce(Y=>{var de;if(!V.wasMoved(Y)||s||(de=c.virtual)!=null&&de.disabled(i)||u)return;let j=c.calculateIndex(i);d.goToOption(et.Specific,j,0)}),me=ce(Y=>{var de;V.wasMoved(Y)&&(s||(de=c.virtual)!=null&&de.disabled(i)||u&&(c.optionsPropsRef.current.hold||d.goToOption(et.Nothing)))}),ue=ut(()=>({active:u,selected:h,disabled:s}),[u,h,s]);return An({ourProps:{id:o,ref:g,role:"option",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:S,onFocus:R,onPointerEnter:ee,onMouseEnter:ee,onPointerMove:$e,onMouseMove:$e,onPointerLeave:me,onMouseLeave:me},theirProps:l,slot:ue,defaultTag:E_,name:"Combobox.Option"})}let T_=ln(w_),N_=ln(v_),M_=ln(y_),O_=ln(C_),D_=ln(A_),R_=ln(I_),Co=Object.assign(T_,{Input:M_,Button:N_,Label:O_,Options:D_,Option:R_});function Ca(){let e=pe(!1);return Qe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function P_(e=0){let[t,n]=Ke(e),r=Ca(),o=Vn(l=>{r.current&&n(c=>c|l)},[t,r]),s=Vn(l=>!!(t&l),[t]),i=Vn(l=>{r.current&&n(c=>c&~l)},[n,r]),a=Vn(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function F_(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Sa(e,...t){e&&t.length>0&&e.classList.add(...t)}function ka(e,...t){e&&t.length>0&&e.classList.remove(...t)}function V_(e,t){let n=ar();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function L_(e,t,n,r){let o=n?"enter":"leave",s=ar(),i=r!==void 0?F_(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=dt(o,{enter:()=>t.enter,leave:()=>t.leave}),l=dt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=dt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ka(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Sa(e,...t.base,...a,...c),s.nextFrame(()=>{ka(e,...t.base,...a,...c),Sa(e,...t.base,...a,...l),V_(e,()=>(ka(e,...t.base,...a),Sa(e,...t.base,...t.entered),i()))}),s.dispose}function B_({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=Ca(),a=bo(),l=an(n);Qe(()=>{e&&(l.current="enter")},[e]),Qe(()=>{let c=ar();a.add(c.dispose);let d=t.current;if(d&&l.current!=="idle"&&i.current)return c.dispose(),o.current(l.current),c.add(L_(d,r.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function zn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ys=Fn(null);ys.displayName="TransitionContext";var U_=(e=>(e.Visible="visible",e.Hidden="hidden",e))(U_||{});function z_(){let e=rn(ys);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function H_(){let e=rn(bs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let bs=Fn(null);bs.displayName="NestingContext";function vs(e){return"children"in e?vs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function rf(e,t){let n=an(e),r=pe([]),o=Ca(),s=bo(),i=ce((f,p=Un.Hidden)=>{let _=r.current.findIndex(({el:g})=>g===f);_!==-1&&(dt(p,{[Un.Unmount](){r.current.splice(_,1)},[Un.Hidden](){r.current[_].state="hidden"}}),s.microTask(()=>{var g;!vs(r)&&o.current&&((g=n.current)==null||g.call(n))}))}),a=ce(f=>{let p=r.current.find(({el:_})=>_===f);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:f,state:"visible"}),()=>i(f,Un.Unmount)}),l=pe([]),c=pe(Promise.resolve()),d=pe({enter:[],leave:[],idle:[]}),u=ce((f,p,_)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([g])=>g!==f)),t==null||t.chains.current[p].push([f,new Promise(g=>{l.current.push(g)})]),t==null||t.chains.current[p].push([f,new Promise(g=>{Promise.all(d.current[p].map(([v,b])=>b)).then(()=>g())})]),p==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>_(p)):_(p)}),h=ce((f,p,_)=>{Promise.all(d.current[p].splice(0).map(([g,v])=>v)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>_(p))});return ut(()=>({children:r,register:a,unregister:i,onStart:u,onStop:h,wait:c,chains:d}),[a,i,r,u,h,d,c])}function j_(){}let G_=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function of(e){var t;let n={};for(let r of G_)n[r]=(t=e[r])!=null?t:j_;return n}function W_(e){let t=pe(of(e));return Me(()=>{t.current=of(e)},[e]),t}let q_="div",sf=ws.RenderStrategy;function K_(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:d,entered:u,leave:h,leaveFrom:f,leaveTo:p,..._}=e,g=pe(null),v=lr(g,t),b=(n=_.unmount)==null||n?Un.Unmount:Un.Hidden,{show:S,appear:R,initial:V}=z_(),[ee,$e]=Ke(S?"visible":"hidden"),me=H_(),{register:ue,unregister:Y}=me;Me(()=>ue(g),[ue,g]),Me(()=>{if(b===Un.Hidden&&g.current){if(S&&ee!=="visible"){$e("visible");return}return dt(ee,{hidden:()=>Y(g),visible:()=>ue(g)})}},[ee,g,ue,Y,S,b]);let de=an({base:zn(_.className),enter:zn(l),enterFrom:zn(c),enterTo:zn(d),entered:zn(u),leave:zn(h),leaveFrom:zn(f),leaveTo:zn(p)}),j=W_({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),ne=$a();Me(()=>{if(ne&&ee==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,ee,ne]);let _e=V&&!R,N=R&&S&&V,ge=!ne||_e?"idle":S?"enter":"leave",ae=P_(0),Le=ce(ft=>dt(ft,{enter:()=>{ae.addFlag(Rt.Opening),j.current.beforeEnter()},leave:()=>{ae.addFlag(Rt.Closing),j.current.beforeLeave()},idle:()=>{}})),ye=ce(ft=>dt(ft,{enter:()=>{ae.removeFlag(Rt.Opening),j.current.afterEnter()},leave:()=>{ae.removeFlag(Rt.Closing),j.current.afterLeave()},idle:()=>{}})),Te=rf(()=>{$e("hidden"),Y(g)},me),rt=pe(!1);B_({immediate:N,container:g,classes:de,direction:ge,onStart:an(ft=>{rt.current=!0,Te.onStart(g,ft,Le)}),onStop:an(ft=>{rt.current=!1,Te.onStop(g,ft,ye),ft==="leave"&&!vs(Te)&&($e("hidden"),Y(g))})});let Ct=_,Yt={ref:v};return N?Ct={...Ct,className:gs(_.className,...de.current.enter,...de.current.enterFrom)}:rt.current&&(Ct.className=gs(_.className,(r=g.current)==null?void 0:r.className),Ct.className===""&&delete Ct.className),K.createElement(bs.Provider,{value:Te},K.createElement(Yd,{value:dt(ee,{visible:Rt.Open,hidden:Rt.Closed})|ae.flags},An({ourProps:Yt,theirProps:Ct,defaultTag:q_,features:sf,visible:ee==="visible",name:"Transition.Child"})))}function Z_(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=pe(null),a=lr(i,t);$a();let l=ya();if(n===void 0&&l!==null&&(n=(l&Rt.Open)===Rt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=Ke(n?"visible":"hidden"),u=rf(()=>{d("hidden")}),[h,f]=Ke(!0),p=pe([n]);Qe(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let _=ut(()=>({show:n,appear:r,initial:h}),[n,r,h]);Me(()=>{if(n)d("visible");else if(!vs(u))d("hidden");else{let S=i.current;if(!S)return;let R=S.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&d("hidden")}},[n,u]);let g={unmount:o},v=ce(()=>{var S;h&&f(!1),(S=e.beforeEnter)==null||S.call(e)}),b=ce(()=>{var S;h&&f(!1),(S=e.beforeLeave)==null||S.call(e)});return K.createElement(bs.Provider,{value:u},K.createElement(ys.Provider,{value:_},An({ourProps:{...g,as:ze,children:K.createElement(af,{ref:a,...g,...s,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:ze,features:sf,visible:c==="visible",name:"Transition"})))}function J_(e,t){let n=rn(ys)!==null,r=ya()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(Aa,{ref:t,...e}):K.createElement(af,{ref:t,...e}))}let Aa=ln(Z_),af=ln(K_),Y_=ln(J_),X_=Object.assign(Aa,{Child:Y_,Root:Aa});function Q_({name:e,control:t,queryAnzsic:n}){const[r,o]=Ke(""),[s,i]=Ke([]),[a,l]=Ke(null),c=async()=>{try{if(r.length>=2){const h=await n(r);i(h)}else i([])}catch(h){console.error("Error fetching data:",h),i([])}};Me(()=>{const h=setTimeout(()=>{c()},500);return()=>clearTimeout(h)},[r]);const{field:d,fieldState:u}=Cd({name:e,control:t,rules:{required:!0}});return oe("div",{children:oe(Co,{onChange:d.onChange,value:d.value??"",name:d.name,children:[oe(Co.Label,{className:"block text-sm font-medium text-gray-900",children:"Industry"}),oe("div",{className:"relative mt-2",children:[oe("div",{className:"grid grid-cols-1",children:[oe(Co.Input,{className:"col-start-1 row-start-1 block w-full rounded-md bg-white py-[9px] pl-9 pr-2 text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm",onChange:h=>o(h.target.value),onBlur:()=>o(""),placeholder:"Type to search industries",displayValue:h=>a!=null&&a.ClassTitle?`${a.ClassCode} ${a.ClassTitle}`:""}),oe(bw,{className:"pointer-events-none col-start-1 row-start-1 ml-3 self-center text-gray-400 size-4"})]}),s.length>0&&oe(Co.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-black/5 focus:outline-none",children:s.map(h=>oe(ze,{children:[oe("div",{className:"flex items-center text-xs text-gray-500 font-semibold mb-1 mx-3 mt-2 uppercase",children:[oe("span",{className:"self-start",children:h.GroupCode}),oe("span",{className:"ml-2",children:h.GroupTitle})]}),h.Classes.map(f=>oe(Co.Option,{value:f.ClassCode,onClick:p=>l(f),className:"group relative cursor-pointer select-none py-2 pl-3 pr-9 text-gray-900 hover:bg-indigo-600 hover:text-white hover:outline-none",children:[oe("div",{className:`flex items-center text-sm ${(a==null?void 0:a.ClassCode)===f.ClassCode?"font-semibold":"font-normal"}`,children:[oe("span",{className:"self-start",children:f.ClassCode}),oe("span",{className:"ml-2",children:f.ClassTitle})]}),oe("span",{className:`absolute inset-y-0 right-0 items-center pr-4 text-indigo-600 group-hover:text-white ${(a==null?void 0:a.ClassCode)==f.ClassCode?"flex":"hidden"}`,children:oe(gw,{className:"size-5"})})]},f.ClassCode))]}))}),r.length>1&&s.length===0&&oe("div",{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 shadow-lg ring-1 ring-black/5 focus:outline-none",children:oe("div",{className:"group relative cursor-default select-none py-2 pl-3 pr-9 text-gray-400 text-sm",children:"Keep typing to search industries"})})]}),u.invalid&&oe("p",{className:"mt-2 text-sm text-red-600",children:"Industry is required"})]})})}function xs({label:e,name:t,control:n,validate:r,placeholder:o,optional:s}){const{field:i,fieldState:a}=Cd({name:t,control:n,rules:{validate:r}});return oe("div",{children:[oe("div",{className:"flex justify-between",children:[oe("label",{className:"block text-sm font-medium",children:e}),s&&oe("p",{className:"text-sm text-gray-500 font-normal",children:"Optional"})]}),oe("div",{className:"mt-2",children:oe("input",{...i,placeholder:o,className:"block w-full rounded-md bg-white px-2 py-[9px] outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm"})}),a.invalid&&oe("p",{className:"mt-2 text-sm text-red-600",children:[e," is invalid"]})]})}function ey({validateAccountName:e,validateLegalEntityName:t,validateAbn:n,validateSalesforceParentRecordId:r,queryAnzsic:o,closeModal:s}){const{handleSubmit:i,control:a}=_1({mode:"onChange"});return oe(ze,{children:[oe("div",{className:"font-bold text-lg mb-4",children:"Account details"}),oe("form",{className:"space-y-6",onSubmit:i(c=>console.log(c)),children:[oe("div",{children:[oe(xs,{label:"Account name",name:"accountName",control:a,placeholder:"e.g. Acme Co",validate:e}),oe("p",{className:"mt-2 text-sm font-normal text-gray-500",children:"This will be used as a display name."})]}),oe(xs,{label:"Legal entity name",name:"legalEntityName",control:a,placeholder:"e.g. ACME LTD PTY",validate:t}),oe("div",{className:"grid grid-cols-2 gap-3",children:[oe(xs,{label:"ABN",name:"abn",control:a,validate:n}),oe(xs,{label:"Salesforce parent RecordID",name:"salesforceParentRecordId",control:a,validate:r})]}),oe(Q_,{name:"industry",control:a,queryAnzsic:o}),oe("div",{className:"flex flex-row-reverse pt-4 pb-6 gap-3 border-t -mx-6 px-6",children:[oe("button",{type:"submit",className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Next"}),oe("button",{type:"button",className:"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:s,children:"Cancel"})]})]})]})}function ty(e){let t,n,r,o;const s=C([$("div",{className:"pt-6 px-6 pb-4 border-b font-bold text-xl",children:"Add a new account"}),$("div",z(C([["className","pt-4 px-6 text-sm font-normal text-gray-500"],(t=["All fields are required unless labelled as ",$("span",{className:"font-semibold",children:"optional"}),"."],["children",T.Children.toArray(Array.from(t))])]))),$("div",z(C([["className","pt-4 mx-6"],(n=Ue(D(()=>e)),["children",T.Children.toArray(Array.from(n))])])))]),i=[$("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),$("div",z(C([["className","fixed inset-0 z-10 w-screen overflow-y-auto h-full flex items-center justify-center"],(r=[$("div",z(C([["className","w-[480px] bg-white shadow-xl rounded-lg"],(o=Ue(D(()=>s)),["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))];return $(ze,{},...i)}function ny(e){const t=e.closeModal,n=Qn(Ln),r=Qw(n.BackendUrl,n.AccessToken);return ty([$(ey,{validateAccountName:o=>jo(Rl(o)),validateLegalEntityName:o=>jo(b$(o)),validateAbn:o=>jo(v$(o)),validateSalesforceParentRecordId:o=>jo(S$(o)),queryAnzsic:o=>r.QueryAnzsic(o),closeModal:t})])}function ry(){const e=Tr(!1),t=e[1],n=Ue(D(()=>{let r;return G(P($("button",z(C([["type","button"],(r="inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",o=>{t(!0)}],["children",T.Children.toArray([Yw,"Add account"])]])))),D(()=>e[0]?P($(ny,{closeModal:()=>{t(!1)}})):Nt()))}));return $(ze,{},...n)}class oy extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function lf(e){return new oy(e)}function cf(e){return e.fields[0]}class sy extends q{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function jr(e){return new sy(e)}function uf(e){return e.fields[0]}function iy(){return["scope","col"]}function dr(e){return lf($("th",z(C([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],iy(),["children",e]]))))}function ay(e,t){let n;return jr($("td",z(C([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[$("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",T.Children.toArray(Array.from(n))])]))))}function Cs(e,t){return jr($("td",{className:he(" ",G(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function ly(e,t){let n,r,o,s,i,a,l;return $("div",z(C([["className","flex flex-col mt-4"],(n=[$("div",z(C([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[$("div",z(C([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[$("div",z(C([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[$("table",z(C([["className","min-w-full divide-y divide-gray-200"],(i=[$("thead",{className:"bg-gray-50",children:(a=qe(cf,e),$("tr",{children:T.Children.toArray(Array.from(a))}))}),(l=Cl((c,d)=>(u=>{let h;return $("tr",z(C([["className",c%2===0?"bg-white":"bg-gray-50"],(h=qe(uf,u),["children",T.Children.toArray(Array.from(h))])])))})(d),t),$("tbody",{children:T.Children.toArray(Array.from(l))}))],["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))}function cy(e,t,n){return e?ct(n,t):n}function df(e,t,n,r){let o,s,i;return lf($("th",z(C([["className",he(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[$("a",z(C([["className",he(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,$("span",z(C([["className",he(" ",cy(!e,ie("invisible"),C(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=Ue(D(()=>P(t?Zw:Jw))),["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])]))))}function uy(e,t){return df(Je(cu(e.Sort),new Sn(1,[])),Je(uu(e.Sort),new tr(0,[])),n=>{t(new or(1,[du(new Sn(1,[]),e.Sort)]))},"Name")}function dy(e,t){return df(Je(cu(e.Sort),new Sn(0,[])),Je(uu(e.Sort),new tr(0,[])),n=>{t(new or(1,[du(new Sn(0,[]),e.Sort)]))},"Id")}function fy(e,t){let n;return jr($("td",z(C([["className",he(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[$("span",{children:[e]}),$("br",{}),$("span",{children:[t]})],["children",T.Children.toArray(Array.from(n))])]))))}function hy(e,t,n){let r;return jr($("td",z(C([["className",he(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=Ue(D(()=>{let o;return G(P($("div",z(C([["className",he(" ",["font-medium"])],(o=[$("span",{children:[e]})],["children",T.Children.toArray(Array.from(o))])])))),D(()=>{let s;return G((s=t,s==null?P(Ne()):P($("span",{children:["Legal Entity: "+s]}))),D(()=>{const i=n;if(i==null)return P(Ne());{const a=i;return G(P($("br",{})),D(()=>P($("span",{children:["ABN: "+a]}))))}}))}))})),["children",T.Children.toArray(Array.from(r))])]))))}function py(e){return jr($("td",{className:he(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function $y(e,t,n,r){let o;return jr($("td",z(C([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=Ue(D(()=>G(P($("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),D(()=>{let s,i;return G((s=r,s==null?P(Ne()):(i=s,G(P($("br",{})),D(()=>P($("span",{children:[`Channel ID: ${i}`]})))))),D(()=>{const a=n;if(a==null)return P(Ne());{const l=a;return G(P($("br",{})),D(()=>P($("span",{children:[`External ID: ${l}`]}))))}}))})))),["children",T.Children.toArray(Array.from(o))])]))))}function my(e,t,n){const r=nn(n.AccountId);return Ue(D(()=>{let o;return G(P($y(M(E((o=[e,r],new k(8,[o[0],o[1]]))),1),n.AccountId,n.ExternalId,n.ChannelId)),D(()=>G(P(hy(n.Name,n.BusinessName,n.BusinessNumber)),D(()=>G(t.ReadProtectedData?P(fy(pt(n.Contact,""),pt(n.ContactMobilePhone,""))):Nt(),D(()=>P(py(n.Website))))))))}))}class gy extends we{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class ff extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class hf extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function wy(e){let t;return $("thead",{className:"bg-gray-50",children:(t=qe(cf,e),$("tr",{children:T.Children.toArray(Array.from(t))}))})}function _y(e,t){let n;return $("tr",z(C([["className",e%2===0?"bg-white":"bg-gray-50"],(n=qe(uf,t),["children",T.Children.toArray(Array.from(n))])])))}function yy(e,t,n,r,o,s){let i,a,l,c,d,u,h;const f=t!=null&&n!=null?(i=t|0,a=n|0,Ue(D(()=>G(P("Showing "),D(()=>G(P($("span",{className:"font-medium",children:`${i}`})),D(()=>G(P(" to "),D(()=>G(P($("span",{className:"font-medium",children:`${a}`})),D(()=>G(P(" of "),D(()=>r.tag===1?ie(" many"):C([$("span",{className:"font-medium",children:wt(r.fields[0])})," results"])))))))))))))):ie(Ne()),p=Ue(D(()=>{let _,g;return G((_=s,_==null?P(Ne()):(g=_,P($("a",{className:he(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:g,children:"Previous "})))),D(()=>{const v=o;if(v==null)return P(Ne());{const b=v;return P($("a",{className:he(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:b,children:" Next"}))}}))}));return $("tfoot",z(C([["className",he(" ",["w-full"])],(l=[$("tr",z(ie((c=[$("td",z(C([["colSpan",e],(d=[$("nav",z(C([["className",he(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[$("div",z(C([["className",he(" ",["hidden","sm:block"])],(h=[$("p",{className:he(" ",["text-sm","text-gray-700"]),children:T.Children.toArray(Array.from(f))})],["children",T.Children.toArray(Array.from(h))])]))),$("div",{className:he(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:T.Children.toArray(Array.from(p))})],["children",T.Children.toArray(Array.from(u))])])))],["children",T.Children.toArray(Array.from(d))])])))],["children",T.Children.toArray(Array.from(c))]))))],["children",T.Children.toArray(Array.from(l))])])))}function by(e,t){const n=Tr(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;nl(hn("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function vy(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,d=np(a,i.Data),u=by(yr(d),i.LoadNext),h=u[0]|0,f=u[1];let p;const _=Xh(h-1,d);p=_==null?new ff(1,[]):new ff(0,[_]);const g=yr(i.Data)|0,v=i.LoadNext==null?new hf(0,[g]):new hf(1,[]),b=p.tag===1?void 0:g>=1?(h-1)*a+1:void 0,S=p.tag===1?void 0:g>=1?(h-1)*a+yr(p.fields[0]):void 0,R=h===1?void 0:u[2],V=h===yr(d)?i.LoadNext!=null?f:void 0:h<yr(d)?f:void 0;return $("div",z(C([["className","flex flex-col mt-4"],(t=[$("div",z(C([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[$("div",z(C([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[$("div",z(C([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[$("table",z(C([["className","min-w-full divide-y divide-gray-200"],(s=Ue(D(()=>G(P(wy(c)),D(()=>{let ee,$e;return G((ee=p,ee.tag===1?P(Ne()):P(($e=Cl(_y,l(ee.fields[0])),$("tbody",{children:T.Children.toArray(Array.from($e))})))),D(()=>P(yy(yr(c),b,S,v,V,R))))})))),["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function fr(e){const t=e.error,n=ie($("span",{children:[t]}));return $("div",{children:T.Children.toArray(Array.from(n))})}function Ss(){const e=ie($("span",{children:["Please wait..."]}));return $("div",{children:T.Children.toArray(Array.from(e))})}function xy(e){let t,n,r,o,s,i,a;const l=Qn(Ln),c=Hw({accessToken:l.AccessToken,backendUrl:l.BackendUrl,partnerId:e.partnerId}),d=Yi(()=>Zi(Ww,(R,V)=>qw(c,R,V),(R,V)=>{}),void 0,void 0),u=d[0],h=d[1],f=new Hi(u.SearchText,u.Sort,u.PageSize);Li((t=[()=>Gw(c,f),R=>{h(new or(2,[R]))}],ou(t[0],t[1])));const p=R=>{h(new or(4,[]))},_=u.Data;let g,v,b,S;switch(_.tag){case 0:case 1:{g=2;break}case 3:{g=3,S=_.fields[0];break}default:_.fields[0].tag===1?(g=1,b=_.fields[0].fields[0]):(g=0,v=_.fields[0].fields[0])}switch(g){case 0:{const R=C([$("div",z(C([["className",he(" ",["flex","justify-between","items-end","pt-2","sm:-mr-6","lg:mr-0"])],(n=[$("div",z(C([["className",he(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0","w-[560px]"])],(r=[fd(hu(u.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",V=>{h(new or(0,[V]))},p),Kw(p)],["children",T.Children.toArray(Array.from(r))])]))),$(ry,null)],["children",T.Children.toArray(Array.from(n))])]))),(o=v,s=Ue(D(()=>G(P(dy(u,h)),D(()=>G(P(uy(u,h)),D(()=>G(l.Roles.ReadProtectedData?P(dr("Contact")):Nt(),D(()=>P(dr("Website")))))))))),i=new gy(o.Accounts,Vt(V=>()=>{Nr(jw(c)(f)(V)(h))},o.Token)),a=pu(u.PageSize)|0,$(vy,{columnHeaders:s,renderRowCells:V=>to(ee=>my(e.partnerId,l.Roles,ee),V),pageSize:a,data:i}))]);return $("div",{children:T.Children.toArray(Array.from(R))})}case 1:return $(fr,{error:b});case 2:return $(Ss,null);default:{const R=wt(S);return $(fr,{error:R})}}}let ks=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function pf(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=Kn(i=>i,[new ks(1,[t]),new ks(0,[n]),new ks(2,[tn(o)]),Vt(i=>new ks(3,[Ht(i)]),r)]);return $("superhero-super-configuration",Rn(s,1))}let As=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function $f(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=Kn(i=>i,[new As(1,[t]),new As(0,[n]),new As(2,[tn(o)]),Vt(i=>new As(3,[Ht(i)]),r)]);return $("superhero-benefits-onboarding-configuration",Rn(s,1))}let Es=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function mf(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=Kn(i=>i,[new Es(1,[t]),new Es(0,[n]),new Es(2,[tn(o)]),Vt(i=>new Es(3,[Ht(i)]),r)]);return $("superhero-bank-details",Rn(s,1))}let Is=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function gf(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=Kn(i=>i,[new Is(1,[t]),new Is(0,[n]),new Is(2,[tn(o)]),Vt(i=>new Is(3,[Ht(i)]),r)]);return $("superhero-profile-directory-app",Rn(s,1))}let Ts=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function wf(e){const t=e.accountId,n=e.partnerId,r=e.accessToken,o=e.backendUrl,s=Kn(i=>i,[new Ts(1,[r]),new Ts(0,[o]),new Ts(2,[tn(n)]),Vt(i=>new Ts(3,[Ht(i)]),t)]);return $("workspace-account-registry-app",Rn(s,1))}let En=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function Cy(e){const t=Rn(e,1);return $(X_,t)}function Ns(e,t){let n;return $("div",z(C([["className","px-4 py-4 sm:px-0"],(n=[$("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),pt(Vt(r=>$("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),Ne())],["children",T.Children.toArray(Array.from(n))])])))}function nt(e,t){let n;return $("div",z(C([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[$("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),$("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",T.Children.toArray(Array.from(n))])])))}function Ea(e){let t,n;const r=e.value,o=e.label,s=Tr(!1),i=s[0],a=s[1];return wm(()=>{Nr(J.Delay(()=>i?J.Bind(Mm(2e3),()=>(a(!1),J.Zero())):J.Zero()))}),$("div",z(C([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[$("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),$("dd",z(C([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[Cy(C([new En(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new En(2,[i]),new En(4,["transition-opacity ease-in duration-100"]),new En(5,["opacity-0"]),new En(6,["opacity-90"]),new En(7,["transition-opacity ease-out duration-500"]),new En(8,["opacity-90"]),new En(9,["opacity-0"]),new En(10,[[$("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),$("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",T.Children.toArray(Array.from(n))]),["onClick",l=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",T.Children.toArray(Array.from(t))])])))}function Ms(e,t){let n;const r=C([e,$("div",z(C([["className","mt-2 border-b border-gray-200"],(n=[$("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:T.Children.toArray(Array.from(t))})],["children",T.Children.toArray(Array.from(n))])])))]);return $("div",{children:T.Children.toArray(Array.from(r))})}function Sy(e){const t=Qn(Ln);return Ms(Ns("Partner Information",void 0),Ue(D(()=>{let n;return G(P((n=["ID",jt(e.StreamId)],$(Ea,{label:n[0],value:n[1]}))),D(()=>{let r;return G(P((r=["Name",qo(e.Name)],nt(r[0],r[1]))),D(()=>{let o,s,i;return G(t.Roles.ReadProtectedData?(o=e.ContactDetails,o!=null?(s=o,G(P((i=["Contact",`${Fl(s.FirstName)} ${Vl(s.LastName)}`],nt(i[0],i[1]))),D(()=>{let a;return P((a=["Phone",Ll(s.MobilePhone)],nt(a[0],a[1])))}))):Nt()):Nt(),D(()=>{let a;return G(P((a=["Website",Pl(e.Website)],nt(a[0],a[1]))),D(()=>{let l;return P((l=["Notes",pt(y$(e.Notes),"")],nt(l[0],l[1])))}))}))}))}))})))}let hr=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory","Workspace"]}};class ky extends we{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Ay extends we{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Ey extends we{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Iy extends we{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Ty extends we{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function Ny(e){let t,n,r,o,s,i,a;const l=c=>I("Workspace",M(E(new k(7,[c])),1));return ud(e.tag===1?(t=e.fields[0],C([I("Details",M(E(new k(1,[t.partnerId])),1)),I("Accounts",void 0),I("Super",M(E(new k(4,[t.partnerId])),1)),I("Benefits",M(E(new k(5,[t.partnerId])),1)),I("Bank Details",M(E(new k(6,[t.partnerId])),1)),I("Directory",M(E(new k(2,[t.partnerId])),1)),l(t.partnerId)])):e.tag===2?(n=e.fields[0].PartnerId,C([I("Details",M(E(new k(1,[n])),1)),I("Accounts",M(E(new k(3,[n])),1)),I("Super",void 0),I("Benefits",M(E(new k(5,[n])),1)),I("Bank Details",M(E(new k(6,[n])),1)),I("Directory",M(E(new k(2,[n])),1)),l(n)])):e.tag===3?(r=e.fields[0].PartnerId,C([I("Details",M(E(new k(1,[r])),1)),I("Accounts",M(E(new k(3,[r])),1)),I("Super",M(E(new k(4,[r])),1)),I("Benefits",void 0),I("Bank Details",M(E(new k(6,[r])),1)),I("Directory",M(E(new k(2,[r])),1)),l(r)])):e.tag===4?(o=e.fields[0].PartnerId,C([I("Details",M(E(new k(1,[o])),1)),I("Accounts",M(E(new k(3,[o])),1)),I("Super",M(E(new k(4,[o])),1)),I("Benefits",M(E(new k(5,[o])),1)),I("Bank Details",void 0),I("Directory",M(E(new k(2,[o])),1)),l(o)])):e.tag===5?(s=e.fields[0].PartnerId,C([I("Details",M(E(new k(1,[s])),1)),I("Accounts",M(E(new k(3,[s])),1)),I("Super",M(E(new k(4,[s])),1)),I("Benefits",M(E(new k(5,[s])),1)),I("Bank Details",M(E(new k(6,[s])),1)),I("Directory",void 0),l(s)])):e.tag===6?(i=e.fields[0].PartnerId,C([I("Details",M(E(new k(1,[i])),1)),I("Accounts",M(E(new k(3,[i])),1)),I("Super",M(E(new k(4,[i])),1)),I("Benefits",M(E(new k(5,[i])),1)),I("Bank Details",M(E(new k(6,[i])),1)),I("Directory",M(E(new k(2,[i])),1)),I("Workspace",void 0)])):(a=e.fields[0],C([I("Details",void 0),I("Accounts",M(E(new k(3,[Be(jt(a.StreamId))])),1)),I("Super",M(E(new k(4,[Be(jt(a.StreamId))])),1)),I("Benefits",M(E(new k(5,[Be(jt(a.StreamId))])),1)),I("Bank Details",M(E(new k(6,[Be(jt(a.StreamId))])),1)),I("Directory",M(E(new k(2,[Be(jt(a.StreamId))])),1)),l(Be(jt(a.StreamId)))])))}function My(e){switch(e.tag){case 1:return $(xy,e.fields[0]);case 2:return $(pf,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return $($f,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return $(mf,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return $(gf,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 6:return $(wf,{backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken,partnerId:e.fields[0].PartnerId});default:return $(Sy,e.fields[0])}}function _f(e){let t;const n=e.mode;return $("div",z(ie((t=[Ny(n),My(n)],["children",T.Children.toArray(Array.from(t))]))))}let Os=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Oy(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=Kn(i=>i,[new Os(1,[t]),new Os(0,[n]),new Os(2,[tn(o)]),Vt(i=>new Os(3,[Ht(i)]),r)]);return $("superhero-import-app",Rn(s,1))}class Ia extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function Dy(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=Kn(s=>s,[new Ia(1,[t]),new Ia(0,[n]),Vt(s=>new Ia(2,[Ht(s)]),r)]);return $("superhero-salpac-profile-admin",Rn(o,1))}function Ry(e){const t=Qn(Ln);return Ms(Ns("Account Information",void 0),Ue(D(()=>{let n;return G(P((n=["ID",e.StreamId],$(Ea,{label:n[0],value:n[1]}))),D(()=>{let r;return G(P((r=["Name",e.Name],$(Ea,{label:r[0],value:r[1]}))),D(()=>{let o;return G(P((o=["External ID",pt(e.ExternalId,"")],nt(o[0],o[1]))),D(()=>{let s;return G(P((s=["Channel ID",pt(e.ChannelId,"")],nt(s[0],s[1]))),D(()=>{let i;if(t.Roles.ReadProtectedData){const a=e.ContactDetails;if(a!=null){const l=a;return G(P((i=["Contact",`${l.FirstName} ${l.LastName}`],nt(i[0],i[1]))),D(()=>{let c;return G(P((c=["Phone",l.MobilePhone],nt(c[0],c[1]))),D(()=>{let d;return P((d=["Email",l.Email],nt(d[0],d[1])))}))}))}else return Nt()}else return Nt()}))}))}))}))})))}function Py(e){let t,n,r,o,s,i,a;if(e==null)return Ne();{const l=e;return Ms(Ns("Legal Entity",void 0),C([(t=["Business Name",l.BusinessName],nt(t[0],t[1])),(n=["Business Number",l.BusinessNumber],nt(n[0],n[1])),(r=["Address Line 1",l.Address1],nt(r[0],r[1])),(o=["Address Line 2",pt(l.Address2,"")],nt(o[0],o[1])),(s=["City",l.City],nt(s[0],s[1])),(i=["State",pt(l.State,"")],nt(i[0],i[1])),(a=["Postcode",l.Postcode],nt(a[0],a[1]))]))}}function Fy(e){let t;if(e==null)return Ne();{const n=e;return Ms(Ns("Legal Entity",void 0),ie((t=["Notes",n],nt(t[0],t[1]))))}}function Vy(e){const t=C([$(Ry,e),Py(e.LegalEntity),Fy(e.Notes)]);return $("div",{children:T.Children.toArray(Array.from(t))})}class Hn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration","Workspace"]}}function Ly(e,t,n){let r,o,s,i,a,l,c,d,u,h,f,p,_,g,v,b,S,R,V,ee,$e,me,ue,Y,de,j,ne,_e,N,ge,ae,Le,ye,Te,rt,Ct,Yt,ft,In,Tn,Xt,Nn,re,be,Ze,cn,Mn,qr,Rs,Ps;const X=[e,t],m=I("Workspace",M(E((r=X,new k(15,[r[0],r[1]]))),1));return ud(n.tag===1?C([I("Details",M(E((o=X,new k(8,[o[0],o[1]]))),1)),I("Directory",void 0),I("Imports",M(E((s=X,new k(10,[s[0],s[1]]))),1)),I("Super",M(E((i=X,new k(11,[i[0],i[1]]))),1)),I("Benefits",M(E((a=X,new k(12,[a[0],a[1]]))),1)),I("Bank Details",M(E((l=X,new k(13,[l[0],l[1]]))),1)),I("Salary Packaging",M(E((c=X,new k(14,[c[0],c[1]]))),1)),m]):n.tag===2?C([I("Details",M(E((d=X,new k(8,[d[0],d[1]]))),1)),I("Directory",M(E((u=X,new k(9,[u[0],u[1]]))),1)),I("Imports",void 0),I("Super",M(E((h=X,new k(11,[h[0],h[1]]))),1)),I("Benefits",M(E((f=X,new k(12,[f[0],f[1]]))),1)),I("Bank Details",M(E((p=X,new k(13,[p[0],p[1]]))),1)),I("Salary Packaging",M(E((_=X,new k(14,[_[0],_[1]]))),1)),m]):n.tag===3?C([I("Details",M(E((g=X,new k(8,[g[0],g[1]]))),1)),I("Directory",M(E((v=X,new k(9,[v[0],v[1]]))),1)),I("Imports",M(E((b=X,new k(10,[b[0],b[1]]))),1)),I("Super",void 0),I("Benefits",M(E((S=X,new k(12,[S[0],S[1]]))),1)),I("Bank Details",M(E((R=X,new k(13,[R[0],R[1]]))),1)),I("Salary Packaging",M(E((V=X,new k(14,[V[0],V[1]]))),1)),m]):n.tag===4?C([I("Details",M(E((ee=X,new k(8,[ee[0],ee[1]]))),1)),I("Directory",M(E(($e=X,new k(9,[$e[0],$e[1]]))),1)),I("Imports",M(E((me=X,new k(10,[me[0],me[1]]))),1)),I("Super",M(E((ue=X,new k(11,[ue[0],ue[1]]))),1)),I("Benefits",void 0),I("Bank Details",M(E((Y=X,new k(13,[Y[0],Y[1]]))),1)),I("Salary Packaging",M(E((de=X,new k(14,[de[0],de[1]]))),1)),m]):n.tag===5?C([I("Details",M(E((j=X,new k(8,[j[0],j[1]]))),1)),I("Directory",M(E((ne=X,new k(9,[ne[0],ne[1]]))),1)),I("Imports",M(E((_e=X,new k(10,[_e[0],_e[1]]))),1)),I("Super",M(E((N=X,new k(11,[N[0],N[1]]))),1)),I("Benefits",M(E((ge=X,new k(12,[ge[0],ge[1]]))),1)),I("Bank Details",void 0),I("Salary Packaging",M(E((ae=X,new k(14,[ae[0],ae[1]]))),1)),m]):n.tag===6?C([I("Details",M(E((Le=X,new k(8,[Le[0],Le[1]]))),1)),I("Directory",M(E((ye=X,new k(9,[ye[0],ye[1]]))),1)),I("Imports",M(E((Te=X,new k(10,[Te[0],Te[1]]))),1)),I("Super",M(E((rt=X,new k(11,[rt[0],rt[1]]))),1)),I("Benefits",M(E((Ct=X,new k(12,[Ct[0],Ct[1]]))),1)),I("Bank Details",M(E((Yt=X,new k(13,[Yt[0],Yt[1]]))),1)),I("Salary Packaging",void 0),m]):n.tag===7?C([I("Details",M(E((ft=X,new k(8,[ft[0],ft[1]]))),1)),I("Directory",M(E((In=X,new k(9,[In[0],In[1]]))),1)),I("Imports",M(E((Tn=X,new k(10,[Tn[0],Tn[1]]))),1)),I("Super",M(E((Xt=X,new k(11,[Xt[0],Xt[1]]))),1)),I("Benefits",M(E((Nn=X,new k(12,[Nn[0],Nn[1]]))),1)),I("Bank Details",M(E((re=X,new k(13,[re[0],re[1]]))),1)),I("Salary Packaging",M(E((be=X,new k(14,[be[0],be[1]]))),1)),I("Workspace",void 0)]):C([I("Details",void 0),I("Directory",M(E((Ze=X,new k(9,[Ze[0],Ze[1]]))),1)),I("Imports",M(E((cn=X,new k(10,[cn[0],cn[1]]))),1)),I("Super",M(E((Mn=X,new k(11,[Mn[0],Mn[1]]))),1)),I("Benefits",M(E((qr=X,new k(12,[qr[0],qr[1]]))),1)),I("Bank Details",M(E((Rs=X,new k(13,[Rs[0],Rs[1]]))),1)),I("Salary Packaging",M(E((Ps=X,new k(14,[Ps[0],Ps[1]]))),1)),m]))}function By(e){const t=e.account,n=e.mode,r=e.props,o=Qn(Ln);switch(n.tag){case 1:{const s=r.accountDetails;return $(gf,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 2:{const s=r.accountDetails;return $(Oy,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 3:{const s=r.accountDetails;return $(pf,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 4:{const s=r.accountDetails;return $($f,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 5:{const s=r.accountDetails;return $(mf,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 6:return $(Dy,{accountId:r.accountDetails[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken});case 7:{const s=r.accountDetails;return $(wf,{backendUrl:o.BackendUrl,accessToken:o.AccessToken,partnerId:s[0],accountId:s[1]})}default:{let s,i,a;switch(t.tag){case 0:case 1:{s=2;break}case 3:{s=3,a=t.fields[0];break}default:t.fields[0].tag===0?(s=0,i=t.fields[0].fields[0]):s=1}switch(s){case 0:return $(Vy,i);case 1:return $(fr,{error:"There was an error retrieving account "});case 2:return $(Ss,null);default:{const l=wt(a);return $(fr,{error:l})}}}}}function Uy(e){let t,n;const r=e.account,o=e.mode,s=e.props;return $("div",z(ie((t=[(n=s.accountDetails,Ly(n[0],n[1],o)),$(By,{props:s,mode:o,account:r})],["children",T.Children.toArray(Array.from(t))]))))}class Gr extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Started","Finished","Failed"]}}let Ds=class extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateAccountId","Search","SearchSuccess","SearchFailure"]}},Wr=class extends we{constructor(t,n){super(),this.AccountId=t,this.AccountDetails=n}};function zy(){return[new Wr(void 0,new Gr(0,[])),kt()]}function Hy(e,t,n,r){switch(n.tag){case 1:{const o=r.AccountId;if(o!=null){const s=o;return[new Wr(r.AccountId,new Gr(1,[])),Ju(()=>$w(e,t,s),void 0,i=>new Ds(2,[i]),i=>new Ds(3,[i]))]}else return[new Wr(r.AccountId,new Gr(3,["Account Id is required"])),kt()]}case 2:{const o=n.fields[0];return[new Wr(r.AccountId,new Gr(2,[o])),tt(s=>{mt(ie(`#/account-registry/partners/${o.PartnerId}/accounts/${o.AccountId}`),1,2)})]}case 3:return[new Wr(r.AccountId,new Gr(3,["Account not found"])),kt()];default:return[new Wr(nn(n.fields[0]),r.AccountDetails),kt()]}}const jy=$("h3",{className:"text-base font-semibold text-gray-900",id:"modal-title",children:"Account Search"}),Gy=$("div",z(C([["className","mt-2"],(()=>{let e;const t=[$("p",z(C([["className","text-sm text-gray-500 whitespace-pre-line"],(e=`Enter an Account Id below to search for an account.
35
38
 
36
- If the account is found you will be redirected to the account details page.`,["children",e])])))];return["children",A.Children.toArray(Array.from(t))]})()])));function gw(e){let t,n,r,o;return p("div",D(b([["className","absolute right-0 top-0 hidden pr-4 pt-4 sm:block"],(t=[p("button",D(b([(n="rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",["className",n]),["type","button"],["onClick",e],(r=[p("span",{className:"sr-only",children:"Close"}),p("svg",D(b([["className","h-6 w-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],(o=j(p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})),["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(t))])])))}function ww(e,t,n,r){let o,s,i;return p("div",D(b([["className","mt-5 sm:flex sm:items-center"],(o=[p("div",D(b([["className","w-full sm:max-w-xs"],(s=[p("label",{className:"sr-only",for:"account-id",children:"Account Id"}),p("input",D(me(T(()=>P($(["id","account-id"]),T(()=>P($(["autoComplete","off"]),T(()=>{let a;return P($((a="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6",["className",a])),T(()=>P($(["placeholder","Account Id"]),T(()=>P($(["disabled",!n]),T(()=>P($(["onChange",l=>{e(l.target.value)}]),T(()=>{const l=r;return l==null?Ze():$(["value",Bi(l)])}))))))))}))))))))],["children",A.Children.toArray(Array.from(s))])]))),p("button",D(b([["className",W(" ",["mt-3 inline-flex w-full items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600","sm:ml-3 sm:mt-0 sm:w-auto","disabled:opacity-50"])],(i=me(T(()=>$(n?p("span",{children:["Search"]}):p("span",{children:["Searching..."]})))),["children",A.Children.toArray(Array.from(i))]),["onClick",t],["disabled",!n]])))],["children",A.Children.toArray(Array.from(o))])])))}function _w(e){let t,n,r,o,s,i,a;const l=e.closeModal,c=Sn(nn),f=Ps(()=>Ms(dw,(w,x)=>hw(c.BackendUrl,c.AccessToken,w,x),(w,x)=>{}),void 0,void 0),u=f[0],h=f[1],d=ww(w=>{h(new xo(0,[w]))},w=>{h(new xo(1,[]))},!he(u.AccountDetails,new Vn(1,[])),u.AccountId);let g;const y=u.AccountDetails;return g=y.tag===3?p("div",{className:W(" ",["mt-2 text-sm text-red-600"]),children:y.fields[0]}):Q(),p("div",D(b([["className","relative z-10"],["role",W(" ",["dialog"])],(t=[p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),p("div",D(b([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(n=[p("div",D(b([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],["onClick",l],(r=[p("div",D(b([(o="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",o]),["onClick",w=>{w.preventDefault(),w.stopPropagation()}],(s=[gw(l),p("div",D(b([["className","sm:flex sm:items-start"],(i=[p("div",D(b([(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",["className",a]),["children",A.Children.toArray([Fc])]]))),p("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:A.Children.toArray([pw,mw,d,g])})],["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function yw(e,t){return Mi(n=>{const r=e.toLocaleLowerCase();return at(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:Vr(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function bw(e){const t=Sn(nn),n=Pf(c=>Vr(c.Name).toLocaleLowerCase(),e.partnerList,{Compare:xr}),r=ir(n),o=ir(""),s=ir(!1),i=s[1],a=me(T(()=>P($(on("ID")),T(()=>P($(on("Name")),T(()=>P(t.Roles.ReadProtectedData?P($(on("Contact")),T(()=>$(on("Phone")))):Ze(),T(()=>$(on("Website")))))))))),l=me(T(()=>P(s[0]?$(p(_w,{closeModal:c=>{i(!1)}})):$(Q()),T(()=>{let c;return P($(p("div",D(b([["className","flex items-end place-content-between"],(c=[Nc(o[0],"Partner ID or Name",f=>{o[1](f),r[1](yw(f,n))},()=>{}),p("button",{className:W(" ",["max-h-10 inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"]),type:"button",onClick:f=>{i(!0)},children:A.Children.toArray(["Account Search ",Fc])})],["children",A.Children.toArray(Array.from(c))])])))),T(()=>$(ig(a,Yn(f=>{const u=at(f.StreamId),h=pe(u);return me(T(()=>{let d;return P($((d=[N(E(new C(1,[h])),1),u],sg(d[0],d[1]))),T(()=>P($(io(["text-gray-500"],Vr(f.Name))),T(()=>P(t.Roles.ReadProtectedData?P($(io(["text-gray-500"],Se(Xe(g=>`${ta(g.FirstName)} ${na(g.LastName)}`,f.ContactDetails),""))),T(()=>$(io(["text-gray-500"],Se(Xe(g=>ra(g.MobilePhone),f.ContactDetails),""))))):Ze(),T(()=>$(io(["text-gray-500"],ea(f.Website)))))))))}))},r[0])))))}))));return p("div",{children:A.Children.toArray(Array.from(l))})}const vw=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-8{bottom:2rem}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.order-none{order:0}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-6{width:1.5rem;height:1.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-10{max-height:2.5rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[45px\\]{width:45px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.w-screen{width:100vw}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-md{max-width:28rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xs{max-width:20rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-sm\\/6{font-size:.875rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,xw=Ie(vw);function qs(){return(qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Cw=["context","children"];function kw(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)o.indexOf(s=l[i])>=0||(a[s]=r[s]);return a}(e,Cw);return ss(t,n)}function Sw(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(kw,qs({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[ou(a[i].name)]=a[i].value);for(i=l.length;i--;){var c=t(l[i],null),f=l[i].slot;f?s[f]=p(su,{name:f},c):o[i]=c}var u=r?p(su,null,o):o;return p(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?os:Ot)(this._vdom,this._root)}function ou(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Aw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ou(e)]=n,this._vdom=ss(this._vdom,r),Ot(this._vdom,this._root)}}function Ew(){Ot(this._vdom=null,this._root)}function su(e,t){var n=this;return p("slot",qs({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Iw(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Sw,o.prototype.attributeChangedCallback=Aw,o.prototype.disconnectedCallback=Ew,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function Tw(e,t){Iw(e,t,void 0,{shadow:!0})}class mr extends K{constructor(t,n,r,o){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r,this.Roles=o}}class gr extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function $w(e){let t;const n=Rl(Sl(window.location.hash,1)),r=n.tag===14?Ol(new C(0,[])):Fe();return[new mr(new Y(0,[]),Op(),n,(t=F0(e),t.tag===1?(bi(`Failed to decode jwt: ${t.fields[0]}`),Hp):Up(t.fields[0]))),r]}function Nw(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=pc(e,r,s=>new gr(2,[r,new m(0,[s])]),s=>new gr(2,[r,new m(1,["Failed to retrieve account name"])]));return[new mr(n.Partners,Dl(n.Accounts,r,new Y(1,[])),n.CurrentPage,n.Roles),o]}case 2:return[new mr(n.Partners,Dl(n.Accounts,t.fields[0],new Y(2,[t.fields[1]])),n.CurrentPage,n.Roles),Fe()];case 0:{const r=t.fields[0];return r.tag===14?[n,Ol(r)]:[new mr(n.Partners,n.Accounts,r,n.Roles),Fe()]}default:return[new mr(t.fields[0],n.Accounts,n.CurrentPage,n.Roles),Fe()]}}function Mw(e){let t,n,r,o;const s=$w(e.accessToken);o=Ps(()=>Ms(()=>s,(v,k)=>Nw(O=>{const U=Rp(O);return Em(e.backendUrl,e.accessToken,U[0],U[1])},v,k),(v,k)=>{}),void 0,void 0);const i=o[0],a=o[1];xs(xl(()=>Am(e.backendUrl,e.accessToken),v=>{a(new gr(3,[v]))}));const l=v=>{let k;const O=i.Partners;switch(O.tag){case 0:return new Y(0,[]);case 1:return new Y(1,[]);case 3:return new Y(3,[O.fields[0]]);default:return O.fields[0].tag===1?new Y(2,[new m(1,[gt(yi("Unknown partner: %A%P()",[v]))])]):new Y(2,[(k=Pl(O.fields[0].fields[0],v),k==null?new m(1,[gt(yi("Unknown partner: %A%P()",[v]))]):new m(0,[k.Name]))])}},c=v=>p(dr,{page:i.CurrentPage,partner:{Id:v,Name:l(v)}}),f=(v,k)=>{const O=p(ru,{mode:k});return[c(v),O]},u=(v,k)=>{let O,U,oe;const we=v[0],Ve=v[1];let se,Ce;const ct=[we,Ve];Ce=Pp(ct[0],ct[1]),se=mf(Fp(i.Accounts,Ce),()=>(a(new gr(1,[Ce])),new Y(0,[])));let ot;return ot=p(fw,{props:{accountDetails:[we,Ve]},mode:k,account:se}),[(O=[we,Ve,se],U=O[0],p(dr,(oe={Id:U,Name:l(U)},{account:{Id:O[1],Name:Vp(ln=>Oi(ln.Name),O[2])},page:i.CurrentPage,partner:Oo(oe)}))),ot]};let h;const d=i.Partners;let g,y,w,x;switch(d.tag){case 2:{d.fields[0].tag===1?(g=2,w=d.fields[0].fields[0]):(g=1,y=d.fields[0].fields[0]);break}case 3:{g=3,x=d.fields[0];break}default:g=0}switch(g){case 0:{h=[p(ao,null),p(ao,null)];break}case 1:{const v=i.CurrentPage;switch(v.tag){case 1:{const k=v.fields[0],O=c(k),U=Pl(y,k);h=U==null?[O,p(sn,{error:"Unknown Partner"})]:[O,(t=new Ln(0,[U]),p(ru,{mode:t}))];break}case 3:{const k=v.fields[0];h=f(k,new Ln(1,[{partnerId:k}]));break}case 4:{const k=v.fields[0];h=f(k,new Ln(2,[new Yg(k,e.backendUrl,e.accessToken)]));break}case 5:{const k=v.fields[0];h=f(k,new Ln(3,[new Xg(k,e.backendUrl,e.accessToken)]));break}case 6:{const k=v.fields[0];h=f(k,new Ln(4,[new Qg(k,e.backendUrl,e.accessToken)]));break}case 2:{const k=v.fields[0];h=f(k,new Ln(5,[new ew(k,e.backendUrl,e.accessToken)]));break}case 7:{h=u([v.fields[0],v.fields[1]],new an(0,[]));break}case 8:{h=u([v.fields[0],v.fields[1]],new an(1,[]));break}case 9:{h=u([v.fields[0],v.fields[1]],new an(2,[]));break}case 10:{h=u([v.fields[0],v.fields[1]],new an(3,[]));break}case 11:{h=u([v.fields[0],v.fields[1]],new an(4,[]));break}case 12:{h=u([v.fields[0],v.fields[1]],new an(5,[]));break}case 13:{h=u([v.fields[0],v.fields[1]],new an(6,[]));break}default:h=[p(dr,{page:i.CurrentPage}),p(bw,{partnerList:y})]}break}case 2:{h=[p(dr,{page:i.CurrentPage}),p(sn,{error:w})];break}default:h=[p(dr,{page:i.CurrentPage}),(n=Ie(x),p(sn,{error:n}))]}return Ph(nn,new Zm(i.Roles,e.backendUrl,e.accessToken),j((r=b([p("style",{children:[xw]}),Sp({onUrlChanged:v=>{a(new gr(0,[Rl(v)]))},application:p(Ae,{},h[0],h[1])})]),p("div",{children:A.Children.toArray(Array.from(r))}))))}Tw(e=>p(Mw,e),"superhero-account-registry")})();
39
+ If the account is found you will be redirected to the account details page.`,["children",e])])))];return["children",T.Children.toArray(Array.from(t))]})()])));function Wy(e){let t,n,r,o;return $("div",z(C([["className","absolute right-0 top-0 hidden pr-4 pt-4 sm:block"],(t=[$("button",z(C([(n="rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",["className",n]),["type","button"],["onClick",e],(r=[$("span",{className:"sr-only",children:"Close"}),$("svg",z(C([["className","h-6 w-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],(o=ie($("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})),["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(t))])])))}function qy(e,t,n,r){let o,s,i;return $("div",z(C([["className","mt-5 sm:flex sm:items-center"],(o=[$("div",z(C([["className","w-full sm:max-w-xs"],(s=[$("label",{className:"sr-only",for:"account-id",children:"Account Id"}),$("input",z(Ue(D(()=>G(P(["id","account-id"]),D(()=>G(P(["autoComplete","off"]),D(()=>{let a;return G(P((a="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6",["className",a])),D(()=>G(P(["placeholder","Account Id"]),D(()=>G(P(["disabled",!n]),D(()=>G(P(["onChange",l=>{e(l.target.value)}]),D(()=>{const l=r;return l==null?Nt():P(["value",_l(l)])}))))))))}))))))))],["children",T.Children.toArray(Array.from(s))])]))),$("button",z(C([["className",he(" ",["mt-3 inline-flex w-full items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600","sm:ml-3 sm:mt-0 sm:w-auto","disabled:opacity-50"])],(i=Ue(D(()=>P(n?$("span",{children:["Search"]}):$("span",{children:["Searching..."]})))),["children",T.Children.toArray(Array.from(i))]),["onClick",t],["disabled",!n]])))],["children",T.Children.toArray(Array.from(o))])])))}function Ky(e){let t,n,r,o,s,i,a;const l=e.closeModal,c=Qn(Ln),d=Yi(()=>Zi(zy,(g,v)=>Hy(c.BackendUrl,c.AccessToken,g,v),(g,v)=>{}),void 0,void 0),u=d[0],h=d[1],f=qy(g=>{h(new Ds(0,[g]))},g=>{h(new Ds(1,[]))},!Je(u.AccountDetails,new Gr(1,[])),u.AccountId);let p;const _=u.AccountDetails;return p=_.tag===3?$("div",{className:he(" ",["mt-2 text-sm text-red-600"]),children:_.fields[0]}):Ne(),$("div",z(C([["className","relative z-10"],["role",he(" ",["dialog"])],(t=[$("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),$("div",z(C([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(n=[$("div",z(C([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],["onClick",l],(r=[$("div",z(C([(o="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",o]),["onClick",g=>{g.preventDefault(),g.stopPropagation()}],(s=[Wy(l),$("div",z(C([["className","sm:flex sm:items-start"],(i=[$("div",z(C([(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",["className",a]),["children",T.Children.toArray([$d])]]))),$("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:T.Children.toArray([jy,Gy,f,p])})],["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function Zy(e,t){return hl(n=>{const r=e.toLocaleLowerCase();return jt(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:qo(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function Jy(e){const t=Qn(Ln),n=tp(c=>qo(c.Name).toLocaleLowerCase(),e.partnerList,{Compare:Eo}),r=Tr(n),o=Tr(""),s=Tr(!1),i=s[1],a=Ue(D(()=>G(P(dr("ID")),D(()=>G(P(dr("Name")),D(()=>G(t.Roles.ReadProtectedData?G(P(dr("Contact")),D(()=>P(dr("Phone")))):Nt(),D(()=>P(dr("Website")))))))))),l=Ue(D(()=>G(s[0]?P($(Ky,{closeModal:c=>{i(!1)}})):P(Ne()),D(()=>{let c;return G(P($("div",z(C([["className","flex items-end place-content-between"],(c=[fd(o[0],"Partner ID or Name",d=>{o[1](d),r[1](Zy(d,n))},()=>{}),$("button",{className:he(" ",["max-h-10 inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"]),type:"button",onClick:d=>{i(!0)},children:T.Children.toArray(["Account Search ",$d])})],["children",T.Children.toArray(Array.from(c))])])))),D(()=>P(ly(a,to(d=>{const u=jt(d.StreamId),h=Be(u);return Ue(D(()=>{let f;return G(P((f=[M(E(new k(1,[h])),1),u],ay(f[0],f[1]))),D(()=>G(P(Cs(["text-gray-500"],qo(d.Name))),D(()=>G(t.Roles.ReadProtectedData?G(P(Cs(["text-gray-500"],pt(Vt(p=>`${Fl(p.FirstName)} ${Vl(p.LastName)}`,d.ContactDetails),""))),D(()=>P(Cs(["text-gray-500"],pt(Vt(p=>Ll(p.MobilePhone),d.ContactDetails),""))))):Nt(),D(()=>P(Cs(["text-gray-500"],Pl(d.Website)))))))))}))},r[0])))))}))));return $("div",{children:T.Children.toArray(Array.from(l))})}const Yy=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-8{bottom:2rem}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.order-none{order:0}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[45px\\]{width:45px}.w-\\[480px\\]{width:480px}.w-\\[560px\\]{width:560px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.w-screen{width:100vw}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-3{padding-left:.75rem}.pl-9{padding-left:2.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black\\/5{--tw-ring-color: rgb(0 0 0 / .05)}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-600:hover{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\\:outline-none:hover{outline:2px solid transparent;outline-offset:2px}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-indigo-600:focus{outline-color:#4f46e5}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xs{max-width:20rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-sm\\/6{font-size:.875rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,Xy=wt(Yy);function Ta(){return(Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qy=["context","children"];function eb(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)o.indexOf(s=l[i])>=0||(a[s]=r[s]);return a}(e,Qy);return bi(t,n)}function tb(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=$(eb,Ta({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[yf(a[i].name)]=a[i].value);for(i=l.length;i--;){var c=t(l[i],null),d=l[i].slot;d?s[d]=$(bf,{name:d},c):o[i]=c}var u=r?$(bf,null,o):o;return $(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?yi:Pn)(this._vdom,this._root)}function yf(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function nb(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[yf(e)]=n,this._vdom=bi(this._vdom,r),Pn(this._vdom,this._root)}}function rb(){Pn(this._vdom=null,this._root)}function bf(e,t){var n=this;return $("slot",Ta({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function ob(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=tb,o.prototype.attributeChangedCallback=nb,o.prototype.disconnectedCallback=rb,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function sb(e,t){ob(e,t,void 0,{shadow:!0})}class So extends we{constructor(t,n,r,o){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r,this.Roles=o}}class ko extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function ib(e){let t;const n=gu(au(window.location.hash,1)),r=n.tag===16?wu(new k(0,[])):kt();return[new So(new Ae(0,[]),C0(),n,(t=Sg(e),t.tag===1?(nl(`Failed to decode jwt: ${t.fields[0]}`),T0):I0(t.fields[0]))),r]}function ab(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=Ju(e,r,s=>new ko(2,[r,new w(0,[s])]),s=>new ko(2,[r,new w(1,["Failed to retrieve account name"])]));return[new So(n.Partners,$u(n.Accounts,r,new Ae(1,[])),n.CurrentPage,n.Roles),o]}case 2:return[new So(n.Partners,$u(n.Accounts,t.fields[0],new Ae(2,[t.fields[1]])),n.CurrentPage,n.Roles),kt()];case 0:{const r=t.fields[0];return r.tag===16?[n,wu(r)]:[new So(n.Partners,n.Accounts,r,n.Roles),kt()]}default:return[new So(t.fields[0],n.Accounts,n.CurrentPage,n.Roles),kt()]}}function lb(e){let t,n,r,o;const s=ib(e.accessToken);o=Yi(()=>Zi(()=>s,(b,S)=>ab(R=>{const V=x0(R);return pw(e.backendUrl,e.accessToken,V[0],V[1])},b,S),(b,S)=>{}),void 0,void 0);const i=o[0],a=o[1];Li(ou(()=>hw(e.backendUrl,e.accessToken),b=>{a(new ko(3,[b]))}));const l=b=>{let S;const R=i.Partners;switch(R.tag){case 0:return new Ae(0,[]);case 1:return new Ae(1,[]);case 3:return new Ae(3,[R.fields[0]]);default:return R.fields[0].tag===1?new Ae(2,[new w(1,[pn(tl("Unknown partner: %A%P()",[b]))])]):new Ae(2,[(S=mu(R.fields[0].fields[0],b),S==null?new w(1,[pn(tl("Unknown partner: %A%P()",[b]))]):new w(0,[S.Name]))])}},c=b=>$(po,{page:i.CurrentPage,partner:{Id:b,Name:l(b)}}),d=(b,S)=>{const R=$(_f,{mode:S});return[c(b),R]},u=(b,S)=>{let R,V,ee;const $e=b[0],me=b[1];let ue,Y;const de=[$e,me];Y=v0(de[0],de[1]),ue=Dh(S0(i.Accounts,Y),()=>(a(new ko(1,[Y])),new Ae(0,[])));let j;return j=$(Uy,{props:{accountDetails:[$e,me]},mode:S,account:ue}),[(R=[$e,me,ue],V=R[0],$(po,(ee={Id:V,Name:l(V)},{account:{Id:R[1],Name:E0(_e=>gl(_e.Name),R[2])},page:i.CurrentPage,partner:Js(ee)}))),j]};let h;const f=i.Partners;let p,_,g,v;switch(f.tag){case 2:{f.fields[0].tag===1?(p=2,g=f.fields[0].fields[0]):(p=1,_=f.fields[0].fields[0]);break}case 3:{p=3,v=f.fields[0];break}default:p=0}switch(p){case 0:{h=[$(Ss,null),$(Ss,null)];break}case 1:{const b=i.CurrentPage;switch(b.tag){case 3:{const S=b.fields[0];h=d(S,new hr(1,[{partnerId:S}]));break}case 4:{const S=b.fields[0];h=d(S,new hr(2,[new ky(S,e.backendUrl,e.accessToken)]));break}case 5:{const S=b.fields[0];h=d(S,new hr(3,[new Ay(S,e.backendUrl,e.accessToken)]));break}case 6:{const S=b.fields[0];h=d(S,new hr(4,[new Ey(S,e.backendUrl,e.accessToken)]));break}case 2:{const S=b.fields[0];h=d(S,new hr(5,[new Iy(S,e.backendUrl,e.accessToken)]));break}case 7:{const S=b.fields[0];h=d(S,new hr(6,[new Ty(S,e.backendUrl,e.accessToken)]));break}case 8:{h=u([b.fields[0],b.fields[1]],new Hn(0,[]));break}case 9:{h=u([b.fields[0],b.fields[1]],new Hn(1,[]));break}case 10:{h=u([b.fields[0],b.fields[1]],new Hn(2,[]));break}case 11:{h=u([b.fields[0],b.fields[1]],new Hn(3,[]));break}case 12:{h=u([b.fields[0],b.fields[1]],new Hn(4,[]));break}case 13:{h=u([b.fields[0],b.fields[1]],new Hn(5,[]));break}case 14:{h=u([b.fields[0],b.fields[1]],new Hn(6,[]));break}case 15:{h=u([b.fields[0],b.fields[1]],new Hn(7,[]));break}case 0:case 16:{h=[$(po,{page:i.CurrentPage}),$(Jy,{partnerList:_})];break}default:{const S=b.fields[0],R=c(S),V=mu(_,S);h=V==null?[R,$(fr,{error:"Unknown Partner"})]:[R,(t=new hr(0,[V]),$(_f,{mode:t}))]}}break}case 2:{h=[$(po,{page:i.CurrentPage}),$(fr,{error:g})];break}default:h=[$(po,{page:i.CurrentPage}),(n=wt(v),$(fr,{error:n}))]}return xm(Ln,new Uw(i.Roles,e.backendUrl,e.accessToken),ie((r=C([$("style",{children:[Xy]}),h0({onUrlChanged:b=>{a(new ko(0,[gu(b)]))},application:$(ze,{},h[0],h[1])})]),$("div",{children:T.Children.toArray(Array.from(r))}))))}sb(e=>$(lb,e),"superhero-account-registry")})();